1 2002-01-27 Gaius Mulley <gaius@glam.ac.uk>
3 Add two switches -a and -g to control the antialiasing bits for
4 text and graphics, respectively.
6 * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
8 * src/devices/grohtml/grohtml.man: Document them.
9 * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
11 (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
12 (setupAntiAlias): New function.
13 (createAllPages): Updated.
14 (scanArguments): Handle `-a' and `-g'.
15 (main): Call `setupAntiAlias'.
18 2002-01-27 Werner LEMBERG <wl@gnu.org>
20 * doc/groff.texinfo (Def*): Call index function after deffn.
22 * tmac/html.tmac: Call `nroff' request.
24 2002-01-26 Larry Kollar <kollar@alltel.net>
26 * tmac/groff_ms.man: Add some omissions.
28 2002-01-25 Larry Kollar <kollar@alltel.net>
30 * tmac/groff_ms.man: Typographical improvements.
32 2002-01-25 Werner LEMBERG <wl@gnu.org>
34 * doc/groff.texinfo: Updated version and copyright.
35 * src/devices/grops/grops.man: Updated.
37 * tmac/groff_tmac.man: Fix `ig' macro.
39 * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
41 Use `.ne' unconditionally everywhere.
42 (TS): Only insert some vertical space. Doing a page break is no
43 longer necessary due to the redefinition of the `ne' request.
45 * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
46 warning for unknown subcommands but parse and pass them to the
49 2002-01-24 Werner LEMBERG <wl@gnu.org>
51 * tmac/groff_www.man, NEWS: Fix typos.
53 2002-01-21 Werner LEMBERG <wl@gnu.org>
55 Complete revision of color support:
57 Adapt programs to the new libdriver/input.cc.
59 Color spaces are no longer converted to RGB but transferred as-is
60 in the troff intermediate output format.
62 Handle default color gracefully. troff now supports a `default'
63 color (which can't be changed).
65 grops will now use the proper color space functions if available.
69 Note that currently grohtml doesn't handle colors properly. This
72 * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
73 (ui_to_a): New function.
74 * src/include/lib.h: Updated.
76 * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
77 (color): Simplified; removed all `double' members and methods.
78 A new array `components' now holds the color parameters.
79 (color::is_default, color::get_components): New methods.
80 (color::operator==, color:operator!=): New.
81 (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
82 to make access to the `components' array more comprehensible.
83 * src/libs/libgroff/color.cc: Implement new color support.
85 (color::read_encoding): Simplified for new troff intermediate color
87 (default_color): New global variable.
89 * src/roff/troff/input.cc (default_symbol): New global variable.
90 (lookup_color): Use it.
91 (default_black): Removed.
92 (do_glyph_color, do_fill_color): Simplified.
93 (define_color): Handle default color.
95 (do_if_request): Handle default color.
96 * src/roff/troff/env.cc (environment::environment): Initialize
97 colors with `default_color'.
98 * src/roff/troff/node.cc (troff_output_file::put): Add method
100 (troff_output_file::hex): Removed.
101 (troff_output_file::fill_color, troff_output_file::glyph_color):
102 Updated to include/color.h and libdriver/input.cc.
104 * src/preproc/pic/object.cc (draw_arrow): New parameter to set
105 fill color properly (identically to the outline color). \D'f...'
106 doesn't work any more.
107 All function calls to it updated.
109 * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
111 * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
114 * src/devices/grops/ps.cc (ps_output::put_color): New method.
115 (ps_printer::sbuf_color): Make a real member instead of pointer.
116 (ps_printer::fill_color, ps_printer::output_color): Removed.
117 (ps_printer::ps_printer): Updated.
118 (ps_printer::set_char): Ditto.
119 (ps_printer::set_color): Use various color schemes.
120 Use `put_color' method.
121 (ps_printer::flush_sbuf): Don't set color.
122 (ps_printer::fill_path): Take `environment' as parameter.
123 Simplify color handling.
124 (ps_printer::set_line_thickness): Renamed to ...
125 (ps_printer::set_line_thickness_and_color): This (and updated).
126 (ps_printer::set_color): Change second parameter from `complete'
127 to `fill' which better describes what it does.
128 (ps_printer::draw): Call `flush_sbuf' to output graphic commands
129 and text in the right order.
131 Remove branches for `f' and `F'; this is handled by
133 * src/devices/grops/ps.h: Updated.
134 * font/devps/prologue (FL): Redefined
135 ({F,C}r,k,g: New color functions (with and without filling).
137 * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
138 * man/groff_diff.man, man/groff.man, man/groff_out.man,
139 doc/groff.texinfo, NEWS: Updated.
141 2002-01-20 Bernd Warken <bwarken@mayn.de>
143 * src/libs/libdriver/input.cc: Completely rewritten. See comments
144 in this file for what has been changed.
146 2002-01-19 Werner LEMBERG <wl@gnu.org>
148 * test-groff: Fix GROFF_FONT_PATH.
149 * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
150 is read before .TH or .Dd is parsed.
152 2002-01-18 Gaius Mulley <gaius@glam.ac.uk>
154 * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
157 2002-01-18 Werner LEMBERG <wl@gnu.org>
159 * devices/grops/ps.cc: Aargh! Fix the fix of the incorrectly
162 2002-01-17 Ruslan Ermilov <ru@FreeBSD.org>
164 * tmac/doc.common: Initialize %I register for the %I macro to
165 avoid (harmless) warning.
166 * tmac/doc.tmac (Bd): There is no reason to enforce -compact
167 when in the SYNOPSIS section.
169 2002-01-17 Bruno Haible <haible@clisp.cons.org>
171 * src/preproc/pic/lex.cc (get_token): Fix typo.
173 2002-01-17 Werner LEMBERG <wl@gnu.org>
175 * devices/grops/ps.cc: Fix incorrectly applied last patch.
177 2002-01-17 Larry Kollar <kollar@alltel.net>
179 * tmac/groff_ms.man: Completely rewritten.
181 2002-01-16 Werner LEMBERG <wl@gnu.org>
183 * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
185 2002-01-15 Gaius Mulley <gaius@glam.ac.uk>
187 * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
189 (ps_printer::draw): Ditto.
191 2002-01-14 Ruslan Ermilov <ru@FreeBSD.org>
193 * tmac/groff_mdoc.man: Minor fixes.
195 2002-01-13 Werner LEMBERG <wl@gnu.org>
197 * man/groff_out.man: Some fixes.
199 2002-01-13 Gaius Mulley <gaius@glam.ac.uk>
201 * doc/pic.ms: Fix typos.
203 2002-01-12 Werner LEMBERG <wl@gnu.org>
205 * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
207 2002-01-10 Werner LEMBERG <wl@gnu.org>
209 * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
213 2002-01-09 Bernd Warken <bwarken@mayn.de>
215 * man/groff_out.man: Revised.
216 * man/roff.man: Minor fixes.
217 * src/roff/troff/troff.man: Some reordering.
219 2002-01-09 Werner LEMBERG <wl@gnu.org>
221 * tmac/an-old.tmac: Add dummy macros for equation support.
223 2002-01-07 Werner LEMBERG <wl@gnu.org>
225 doc/groff.texinfo: Fix documentation of glyph searching algorithm.
227 * tmac/an-old.tmac: Revert change 2001-12-23. This breaks too many
229 * tmac/groff_man.man: Small improvements.
231 2002-01-07 Bernd Warken <bwarken@mayn.de>
233 * man/groff_diff.man: Revised.
235 2002-01-06 Werner LEMBERG <wl@gnu.org>
237 * tmac/www.tmac: Remove extraneous backslash.
239 2002-01-06 Bernd Warken <bwarken@mayn.de>
241 * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
243 2002-01-05 Werner LEMBERG <wl@gnu.org>
245 Integrated groffer, contributed by Bernd Warken.
247 * contrib/groffer/*: New.
248 * Makefile.in, NEWS: Updated.
250 2002-01-04 Werner LEMBERG <wl@gnu.org>
252 * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
253 registers defined in macro packages.
254 Revising the ms part.
256 2002-01-04 Larry Kollar <kollar@alltel.net>
258 * doc/groff.texinfo: Add documentation for ms macros.
260 2002-01-02 Werner LEMBERG <wl@gnu.org>
262 First step in adding PS support for the Euro symbol. `eu' is the
263 official Euro logo, `Eu' is a font-specific glyph variant.
265 * font/devps/text.enc: Add `Euro' at position 9.
266 * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
267 * font/devps/symbolmap: Regenerated.
271 2002-01-02 Bernd Warken <bwarken@mayn.de>
273 * man/roff.man: Revised.
275 2002-01-01 Bernd Warken <bwarken@mayn.de>
277 * src/roff/groff/groff.man: Completely rewritten.
279 2001-12-31 Werner LEMBERG <wl@gnu.org>
281 * doc/Makefile: Updated.
283 2001-12-30 Werner LEMBERG <wl@gnu.org>
285 * tmac/www.tmac: Make all names of internal macros/registers/strings
286 lowercase, and prepend `www-'.
288 * src/roff/troff/troff.man: Add preprocessor string at BOF.
290 2001-12-30 Gaius Mulley <gaius@glam.ac.uk>
292 Implement option `-b' in grohtml to set the HTML background colour.
294 * src/devices/grohtml/post-html.cc (default_background): New global
296 (html_printer::html_printer): Initialize `background' to
297 `default_background'.
298 (main): Implement option `-b'.
300 * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
302 * src/devices/grohtml/grohtml.man: Updated.
303 * doc/Makefile (.ms.html): Use `-b'.
304 * tmac/html.tmac: Don't set background color.
306 Add new grohtml tag `.html-tl'.
308 * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
310 (title_desc::title_desc): Updated.
311 (html_printer::troff_tag): Handle `.html-tl'.
312 (html_printer::write_title): Use `with_h1'.
313 * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
314 (HTML-TL): New macro.
316 Add support for unordered lists in HTML.
318 * tmac/www.tmac (www-level): New auxiliary register.
319 (www-level1, www-level2, www-level3): New auxiliary strings.
320 (www-push-level, www-pop-level): New auxiliary macros
321 (UL-BEGIN, UL-END, LI): User macros for unordered lists.
325 * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
326 (DEFAULT_VERTICAL_OFFSET): Removed.
327 (IMAGE_BOARDER_PIXELS): Set to 0.
328 (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
329 (vertical_offset): Initialize with 0.
330 (gsPaper): New global variable.
331 (get_resolution): Scan for and return unsigned int.
332 (get_papersize): New function to get paper length from devps/DESC.
333 (determine_vertical_offset): New function.
334 (createAllPages): Produce gray-level images and use proper page
336 (createImage): Use `-quiet' option of pnmcrop.
337 (addZ): Fix passing of `-Z'.
338 (scanArguments): Fix handling of `-o'.
339 (main): Call `determine_vertical_offset'.
340 * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
343 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
344 * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
345 glyph descenders properly.
347 * doc/homepage.ms: Include `gnubw.eps'.
348 * doc/Makefile (gnubw.eps): New rule.
349 (homepage.html): Depend on `gnubw.eps'.
351 2001-12-25 Werner LEMBERG <wl@gnu.org>
353 * src/roff/troff/input.cc (default_black): Fix return value.
355 2001-12-24 Ruslan Ermilov <ru@FreeBSD.org>
357 * tmac/doc-common (Dt): Change output of architecture strings.
358 Do some syntax cleanup.
359 * tmac/groff_mdoc.man: Updated.
361 2001-12-23 Werner LEMBERG <wl@gnu.org>
363 Adding an `itc' request (input line trap accepting \c).
365 * src/roff/troff/env.h (environment): New member
366 `continued_input_trap'.
367 Make `do_input_trap' a friend function instead of `input_trap'.
368 * src/roff/troff/env.cc (environment::environment,
369 environment::copy): Updated.
370 (environment::newline): Implement it.
371 (do_input_trap): New function.
372 (input_trap): Call `do_input_trap'.
373 (input_trap_continued): New function.
374 (init_env_requests): Updated.
375 * src/roff/troff/TODO: Updated.
377 * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
380 * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
382 2001-12-22 Ruslan Ermilov <ru@FreeBSD.org>
384 * tmac/doc-common, tmac/doc-syms: Small updates.
386 2001-12-22 Colin Watson <cjwatson@debian.org>
388 * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
390 2001-12-22 Bernd Warken <bwarken@mayn.de>
392 * MANIFEST: New file.
394 2001-12-22 Werner LEMBERG <wl@gnu.org>
396 * src/preproc/grn/grn.man: Updated.
398 2001-12-22 Solar Designer <solar@openwall.com>
400 * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
403 2001-12-19 Werner LEMBERG <wl@gnu.org>
405 Implement a fallback character request `.fchar'.
407 * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
408 (is_fallback): New inline function.
409 * src/roff/troff/input.cc (do_define_character): New function.
410 (define_character): Call `do_define_character'.
411 (define_fallback_character): New function.
412 (init_input_requests): Add `fchar'.
413 (charinfo::charinfo): Updated.
414 (charinfo::set_macro): New argument to set `fallback' flag.
415 * src/roff/troff/node.cc (make_glyph_node, make_node,
416 node::add_char): Check `fallback' flag.
417 * NEWS, man/groff_diff.man, man/groff_man: Updated.
419 2001-12-16 Werner LEMBERG <wl@gnu.org>
421 * groff.texinfo: Document exact search algorithm for glyphs.
423 2001-12-15 Werner LEMBERG <wl@gnu.org>
425 * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
426 the left side of $(MANPAGES) rule to make it always non-empty.
428 2001-12-14 Werner LEMBERG <wl@gnu.org>
430 * src/roff/troff/input.cc (default_black): Define default color
431 `black' if not yet defined.
433 2001-12-13 Werner LEMBERG <wl@gnu.org>
435 Implement new string-valued register `.fn' to return the current
436 real (internal) font name.
438 * env.cc (environment::get_font_name_string): New function.
439 (init_env_requests): Add `.fn' register.
440 * env.h (environment): Updated.
441 * node.cc (font_info): Make `get_font_name' a friend.
442 (get_font_name): New function.
445 * man/groff_diff.man, man/groff.man, NEWS: Updated.
447 2001-12-12 Ralph Corderoy <ralph@inputplus.demon.co.uk>
449 * src/preproc/eqn/main.cc (inline_equation): Fix typos.
451 2001-12-12 Werner LEMBERG <wl@gnu.org>
453 * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
455 2001-12-10 Gaius Mulley <gaius@glam.ac.uk>
457 * man/groff_diff.man: Adding documentation for \O.
459 2001-12-10 Werner LEMBERG <wl@gnu.org>
461 * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
462 (scanArguments): Use PROG_PREFIX for the name of the troff binary.
464 2001-12-09 Werner LEMBERG <wl@gnu.org>
466 * man/roff.man: Revised.
467 * src/roff/groff/groff.man: Replace man page references with a
470 2001-12-09 Bernd Warken <bwarken@mayn.de>
472 * man/roff.man: Completely rewritten.
474 2001-12-06 Ralph Corderoy <ralph@inputplus.demon.co.uk>
476 * src/preproc/eqn/main.cc (inline_equation): Improve error message.
478 2001-12-05 Werner LEMBERG <wl@gnu.org>
480 * src/roff/troff/input.cc (get_delim_file_name): Removed since no
482 * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
483 order of initializers.
486 2001-12-05 Gaius Mulley <gaius@glam.ac.uk>
488 * doc/groff.texinfo: Fix documentation of \O.
490 * src/devices/grohtml/html-text.cc (html_text::do_indent,
491 html_text::do_table, html_text::do_emittext, html_text::do_para):
492 Use `const' for first argument.
493 (html_text::do_table): Use cast.
494 * src/devices/grohtml/html-text.h: Updated.
495 * src/devices/grohtml/output.cc (simple_output::put_string): Add
496 method for `const string &s'.
497 * src/devices/grohtml/html.h: Updated.
498 * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
499 (ANCHOR_TEMPLATE): Modified.
500 (manufacture_headings): New global variable to handle `-h' option.
501 (is_subsection): Removed.
502 (char_buffer::add_string): Add `const' to first argument.
503 Protect against invalid string argument.
504 Add method for `const string &s'.
505 (text_glob): Completely redesigned.
506 (page): Use `const' for strings and remove string length variable.
507 (page::add_html): Removed.
508 (page::add_end_encode): New member function.
509 (to_unicode): Moved upwards.
510 (title_desc, header_desc): Updated.
511 (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
513 (html_printer::is_bold, html_printer::make_bold): New member
515 (html_printer::end_of_line): Updated.
516 (generate_img_src, html_printer::do_auto_image,
517 html_printer::do_title, html_printer::write_header,
518 html_printer::determine_header_level, html_printer::do_heading,
519 html_printer::do_linelength, html_printer::do_pageoffset,
520 html_printer::do_indentation, html_printer::do_tempindent,
521 html_printer::do_indentedparagraph, html_printer::do_break,
522 html_printer::flush_sbuf, get_html_translation,
523 html_printer::begin_page, html_printer::special): Rewritten to get
524 rid of static string length limit.
525 (html_printer::troff_tag): Added `.no-auto-rule'.
526 (html_printer::flush_globs): Small fix.
527 (html_printer::determine_space): Don't compute `space_width'.
528 (html_printer::translate_to_html): Renamed to ...
529 (html_printer::emit_html): This (with updates).
530 (html_printer::write_header): Implement `-h' option.
531 (html_printer::draw): Remove commented-out code. Handle `F'
533 (html_printer::add_char_to_sbuf): Removed.
534 (html_printer::add_to_sbuf): Rewritten.
535 (html_printer::sbuf_continuation): Fixed.
536 (html_printer::seen_backwards_escape, reverse,
537 html_printer::remove_last_char_from_sbuf): Removed.
538 (char_translate_to_html, str_translate_to_html): Removed.
539 (html_printer::overstrike): New function member.
540 (html_printer::set_char): Use it.
541 (html_printer::do_body): New function member.
542 (html_printer::~html_printer): Use it.
543 (main): Handle `-h' option.
545 * src/devices/grohtml/grohtml.man: Document -h switch.
547 * src/preproc/html/pre-html.cc: Include searchpath.h
548 Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
549 (get_resolution): New function.
550 (checkImageDir): Use `0777' permissions in mkdir()
551 (write_start_image): Rewritten to use `\O[5...]'.
552 (createImage, generateImages): Updated.
553 (main): Handle `F' and `h' options.
554 Use `get_resolution'.
556 * src/roff/troff/input.cc (begin, end, image): Removed.
557 (do_suppress): Take parameter.
558 Handle modified syntax of `\O'.
559 (token::next): Updated.
560 (init_markup_requests): Removed.
563 * src/roff/troff/div.h: Add declaration for begin_page().
565 * tmac/color-html.tmac: Removed. Contents moved to...
566 * tmac/html.tmac: Here. Set background color.
567 * tmac/color.tmac: Removed. Contents moved to...
568 * tmac/ps.tmac: Here.
569 * tmac/www.tmac: Remove the title command when generating images
571 (NO_AUTO_RULE): New macro.
572 (HTML_DO_IMAGE): Use revised `\O' escapes.
573 * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
575 2001-12-02 Werner LEMBERG <wl@gnu.org>
577 * tmac/groff_mdoc.man: Fix typo.
579 2001-12-01 Colin Watson <cjwatson@debian.org>
581 * man/roff.man: Fix typo.
583 2001-11-29 Werner LEMBERG <wl@gnu.org>
585 * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
588 * src/roff/troff/input.cc (read_draw_node): Emit error message if
589 more than one argument to \D'f ...'.
591 * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
593 2001-11-28 Werner LEMBERG <wl@gnu.org>
595 * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
598 * tmac/groff_man.man: Minor cosmetic fix.
600 2001-11-27 Werner LEMBERG <wl@gnu.org>
602 * src/roff/groff/groff.man, tmac/groff_tmac.man,
603 tmac/groff_www.man: s/mwww/www/.
605 2001-11-26 Werner LEMBERG <wl@gnu.org>
607 * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
608 * configure: Regenerated.
609 * win32-diffs: Updated.
611 * tmac/groff_mwww.tmac: Renamed to ...
612 * tmac/groff_www.tmac: This.
613 * tmac/mwww.tmac: Removed.
614 * NEWS, tmac/Makefile.sub: Updated.
616 2001-11-21 Werner LEMBERG <wl@gnu.org>
618 * doc/groff.texinfo: Improve documentation of the `\v' escape.
619 Fix explanation of `\D' and `rt'.
621 2001-11-20 Werner LEMBERG <wl@gnu.org>
623 * tmac/an-old.tmac (an-header): Set header length equal to page
625 * doc/groff.texinfo: Improve documentation of `ne' request. Other
629 2001-11-19 Werner LEMBERG <wl@gnu.org>
631 * NEWS, man/Makefile.sub: Updated.
633 2001-11-19 Bernd Warken <bwarken@mayn.de>
635 * man/ditroff.man: New file.
637 2001-11-17 Werner LEMBERG <wl@gnu.org>
639 * man/groff_differences.man: Renamed to ...
640 * man/groff_diff.man: This. Updated.
641 * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
643 * src/preproc/html/pushbackbuffer.cc: Renamed to ...
644 * src/preproc/html/pushback.cc: This. Updated.
645 * src/preproc/html/pushbackbuffer.h: Renamed to ...
646 * src/preproc/html/pushback.h: This.
647 * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
650 * src/libs/libgroff/htmlindicate.cc: Renamed to ...
651 * src/libs/libgroff/htmlhint.cc: This.
652 * src/libs/libgroff/Makefile.sub: Updated.
654 * tmac/an-old.tmac (an-end): Fix page length.
656 2001-11-16 Werner LEMBERG <wl@gnu.org>
658 * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
659 * man/Makefile.sub: Include groff_differences.man.
660 * VERSION: Set to 1.18.
661 * REVISION: Set to 0.
663 2001-11-16 Bernd Warken <bwarken@mayn.de>
665 * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
666 the second dot (or ending macro name) to end a macro.
667 * doc/groff.texinfo: Doc fix.
669 2001-11-16 Ruslan Ermilov <ru@FreeBSD.org>
671 * tmac/doc-common (doc-header): Handle very long document titles
674 2001-11-16 Werner LEMBERG <wl@gnu.org>
676 * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
678 2001-11-15 Werner LEMBERG <wl@gnu.org>
680 * src/roff/troff/troff.man: Revised and split into troff.man and...
681 * man/groff_differences.man: New file.
684 2001-11-13 Werner LEMBERG <wl@gnu.org>
686 * tmac/an-old.tmac (TS, TE): New macros for table support.
688 2001-11-12 Werner LEMBERG <wl@gnu.org>
690 * src/include/lib.h: Provide a fix for emx to not include
693 2001-10-27 Werner LEMBERG <wl@gnu.org>
695 * src/roff/troff/input.cc (substring_macro): Fix computation of
698 2001-10-20 Werner LEMBERG <wl@gnu.org>
700 Undo change from 2001-08-28.
702 * src/roff/troff/input.cc (have_input): New global variable.
703 (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
704 in compatibility mode.
705 (process_input_stack): Use it.
707 2001-10-19 Ruslan Ermilov <ru@FreeBSD.org>
709 * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
710 being handled as end-of-sentence characters,
712 2001-10-10 Gaius Mulley <gaius@glam.ac.uk>
714 * src/roff/troff/input.cc (file_iterator): New members
715 `suppress_newline_flag' and `seen_escape'.
716 (file_iterator::next_file): Updated.
717 (file_iterator::fill): Use it.
718 (string_iterator): New member `suppress_newline_flag'.
719 (string_iterator::fill): Set it.
720 (get_color_element): Use MAX_COLOR_VAL.
721 * src/roff/troff/env.cc (environment): Remove `need_eol'.
722 (no_fill): Don't set `env->ignore_next_eol'.
723 (environment::newline): Handle `eol' tag properly.
725 (environment::add_html_tag): Set `env->ignore_next_eol'.
727 * src/roff/troff/env.h (environment): Updated.
729 * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
731 (html_printer::outstanding_eol): New member function.
732 (html_printer::do_title): Use new functions.
733 (html_printer::troff_tag): Test `id_eol_ce'.
735 2001-10-10 Werner LEMBERG <wl@gnu.org>
737 * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
738 files work with -C also.
740 2001-10-05 Werner LEMBERG <wl@gnu.org>
742 * doc/pic.ms: Minor fix.
743 * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
744 as a valid command line switch.
745 * src/devices/grohtml/post-html.cc (main): Ditto.
747 * src/devices/grohtml/grohtml.man: Updated.
748 * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
750 2001-10-04 Werner LEMBERG <wl@gnu.org>
752 Implementing color support in troff, pic, grops, and grohtml. These
753 changes are based on a major patch provided by Gaius Mulley
756 New request: `defcolor', supporting rgb, cmy, cmyk, and gray
757 definitions with both hex values and fractions.
759 New escapes: \m and \M for drawing and background color,
760 respectively. This corresponds to the troff output commands `m'
763 groff and troff accept command line switch `-c' to disable color
764 output (which is automatically disabled in compatibility mode).
766 New scaling indicator `f' for fractions (1f = 65536u).
768 New conditional operator `m' to test for defined colors with `if'
771 New keywords `color' (or `colour', `colored', `coloured'), `outline'
772 (or `outlined'), and `shaded' added to pic.
774 * src/include/color.h: New file.
775 * src/include/driver.h: Include it.
776 * src/include/printer.h: Include color.h.
777 (environment): New members `col' and `fill'.
778 (printer): Remove `adjust_arc_center' member function.
779 * src/include/Makefile.sub: Updated.
781 * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
783 Handle `m' and `DF' troff commands.
784 * src/libs/libgroff/color.cc: New file.
785 * src/libs/libgroff/Makefile.sub: Updated.
787 * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
789 (createImage): Fix computation of `y2'.
791 (buffer::write_file_html): Remove calls to `stop'.
793 * src/preproc/pic/common.h (common_output): New abstract function
794 members `set_color', `reset_color', `get_last_filled', and
796 * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
797 (object_spec): Add members `shaded' and `outlined'.
798 * src/preproc/pic/output.h (output): `command' is now abstract.
799 New function members `set_color', `reset_color', `get_last_filled',
800 and `get_outline_color'.
801 * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
802 `outline[d]', and `shaded'.
803 * src/preproc/pic/object.cc (output::command): Removed.
804 (output::set_location): Moved to output.h.
805 (graphic_object): Add protected members `outline_color' and
807 Add member functions `set_outline_color', `get_outline_color', and
809 (closed_object): Add member function `set_fill_color'.
810 Add member `color_fill'.
811 (graphic_object::print_text): Use `out->set_color' and
813 (box_object::print, ellipse_object::print, circle_object::print,
814 line_object::print, spline_object::print, arc_object::print): Ditto.
815 (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
816 * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
817 `SHADED', making them `%left'.
818 Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
819 * src/preproc/pic/tex.cc (tex_output): New dummy function members
820 `set_color', `reset_color', `get_last_filled', and
822 * src/preproc/pic/troff.cc (simple_output): New abstract function
823 members `set_color', `reset_color', and `get_last_filled'.
824 (simple_output::polygon, simple_output::circle,
825 simple_output::ellipse): Use `get_last_filled'.
826 (troff_output): New members `last_filled' and `last_outlined'.
827 New function members `set_color', `reset_color', `get_last_filled',
828 and `get_outline_color'.
829 (troff_output::finish_picture): Use `reset_color'.
830 (troff_output::set_fill): Test `last_filled'.
831 * src/preproc/pic/pic.man: Updated.
833 * src/roff/groff/groff.cc (main): Implement `-c' option.
834 (synopsis, help): Updated.
835 src/roff/groff/groff.man: Updated.
837 * src/roff/troff/troff.h: Include color.h.
838 (warning_type): Add WARN_COLOR.
839 * src/roff/troff/env.h (environment): New members
840 `{cur,prev}_{glyph,fill}_color'.
841 New member functions `get_{prev_,}{glyph,fill}_color'.
842 * src/roff/troff/env.cc: Initialize and implement them.
843 * src/roff/troff/input.cc: New global variable `disable_color_flag'.
844 Replace `NULL' with `0' everywhere for consistency.
845 (lookup_color, default_black, do_glyph_color, do_fill_color,
846 get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
847 define_color): New functions.
848 (token::next): Implement \M and \m escapes.
849 (do_if_request): Implement `m' operator.
851 (main): Implement `-c' option.
852 (init_markup_requests): Add `defcolor' request.
853 (warning_table): Add `color' warning.
854 * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
856 * src/roff/troff/node.cc (troff_output_file): New members
857 `current_{page,glyph}color'. New member functions `put_hex',
858 `glyph_color', and `fill_color'.
859 (glyph_color_node::*, fill_color_node::*): Implement it.
860 * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
861 (parse_term): Add support for `f'.
862 * src/roff/troff/troff.man: Updated.
864 * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
866 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
867 * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
869 * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
870 (tag_definition): Use `void *' for arg1.
871 (html_text): New member functions `do_color' and `done_color'.
872 Use `void *' for second parameter of `push_para' member function.
873 New `push_para' member function with a single parameter.
874 Use `char *' for parameter of `issue_table_begin' member funtion.
875 New `issue_color_begin' member function.
876 * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
878 (html_text::issue_color_begin): New function.
879 (html_text::issue_table_begin): Use `char *' for parameter.
880 (html_text::start_tag, html_text::shutdown,
881 html_text::check_emit_text): Updated.
882 (html_text::push_para): Use `void *' for second parameter.
883 Add same function with only one parameter.
884 (html_text::do_*): Updated.
885 (html_text::do_color, html_text::done_color): New functions.
886 * src/devices/grohtml/post-html.cc (style): New member `col'.
887 Mew member `style' with 6 parameters.
888 (style::style, style::operator==): Updated.
889 (html_printer::do_font): Use it.
890 (html_printer::draw): Add dummy entry for `F'.
891 (html_printer::set_char): Updated.
892 * src/devices/grohtml/grohtml.man: Updated.
894 * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
895 trailing zeroes removed.
896 (ps_printer): New members `sbuf_color', `fill_color', and
898 Removed member `fill'.
899 New member function `set_color'.
900 (ps_printer::ps_printer, ps_printer::set_char): Updated.
901 (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
902 ps_printer::fill_path, ps_printer::draw): Use `set_color'.
904 * tmac/color-html.tmac, tmac/color.tmac: New files.
905 * tmac/troffrc: Include them.
906 * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
907 * tmac/Makefile.sub: Updated.
909 * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
910 man/groff.man: Updated.
911 * font/devps/prologue.ps: Define FC and CO functions.
913 2001-10-04 Gaius Mulley <gaius@glam.ac.uk>
915 Fix incorrect cropping of images and incorrect handling of special
916 characters. Fix handling of file names in \O.
918 * src/include/geometry.h: New file.
919 * src/libs/libgroff/geometry.cc: New file.
920 * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
922 * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
924 (do_suppress): Updated.
925 * src/roff/troff/node.cc: Include geometry.h.
926 (troff_output_file::flush_tbuf): Fixed parameters to
927 `check_output_limits'.
928 (troff_output_file::check_charinfo): Ditto.
929 (troff_output_file::determine_line_limits): Add support for `Da'
932 * src/devices/grohtml/post-html.cc (str_translate_to_html):
933 Add new parameter `is_special' to decode special characters from
935 (html_printer::do_title, html_printer::do_heading,
936 html_printer::do_indentedparagraph,
937 html_printer::translate_to_html, html_printer::special): Updated.
939 2001-10-03 Werner LEMBERG <wl@gnu.org>
941 * Makefile.sub (DISTCLEANFILES): Add stamp-h.
942 Fix entry for config.h.
943 * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
944 * tmac/troffrc: Translate nonbreakable space character to `\~'.
945 * src/preproc/eqn/eqn.man: Document -d command line option.
947 2001-09-27 Werner LEMBERG <wl@gnu.org>
957 instead of the old code (`.ad .hy' after the table) to suppress
958 incorrect hyphenation for grohtml output.
960 2001-09-22 Werner LEMBERG <wl@gnu.org>
962 * man/groff_font.man, man/groff_out.man: Minor fixes.
964 2001-09-20 Werner LEMBERG <wl@gnu.org>
966 * PROBLEMS: Updated, reordered. Improved EPS section (thanks to
967 Arnold Robbins <arnold@skeeve.com>).
969 2001-09-09 Werner LEMBERG <wl@gnu.org>
971 * configure: Regenerated with autoconf 2.52.
973 * doc/groff.texinfo: Complete revision of indices.
975 2001-09-07 Werner LEMBERG <wl@gnu.org>
977 * doc/Makefile (clean): Updated to delete all indices.
979 2001-09-05 Werner LEMBERG <wl@gnu.org>
981 * src/roff/troff/troff.man: Remove superfluous line.
983 * tmac/s.tmac: Enable all warnings only if no -W or -w option is
984 given on the command line (or rather, if only the default warnings
987 2001-09-03 Werner LEMBERG <wl@gnu.org>
989 * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
990 use .ne for TTY devices.
992 2001-08-31 Werner LEMBERG <wl@gnu.org>
994 * src/roff/troff/token.h, src/roff/troff/input.cc:
995 s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
997 2001-08-28 Werner LEMBERG <wl@gnu.org>
999 * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
1000 * src/roff/troff/input.cc (token::next): Return
1001 TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
1003 (token::description): Updated.
1004 (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
1005 (token::add_to_node_list, token::process): Ignore
1006 TOKEN_TRANSPARENT_ESCAPE.
1008 2001-08-27 Werner LEMBERG <wl@gnu.org>
1010 * tmac/an-old.tmac: Fix `S' string.
1012 2001-08-26 Werner LEMBERG <wl@gnu.org>
1014 * src/roff/troff/troff.man: Don't use .ne for TTY devices.
1016 2001-08-25 Werner LEMBERG <wl@gnu.org>
1018 * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
1020 Many other minor fixes.
1022 * configure.ac: Add message at end to inform how to compile
1024 * configure: Regenerated.
1026 2001-08-24 Werner LEMBERG <wl@gnu.org>
1028 * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
1029 Updated to latest version of libc.
1031 2001-08-23 Werner LEMBERG <wl@gnu.org>
1033 * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
1034 Autoconf 2.50 and newer can handle this.
1035 * configure: Regenerated.
1037 2001-08-21 Werner LEMBERG <wl@gnu.org>
1039 * doc/pic.ms: Fix typo.
1040 * src/preproc/tbl/tbl.man: Document case of global options.
1042 2001-08-21 Gaius Mulley <gaius@glam.ac.uk>
1044 * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
1045 handling of `CR' font.
1047 2001-08-20 Werner LEMBERG <wl@gnu.org>
1049 Use a config.h file.
1051 * src/include/lib.h: Include config.h.
1052 * All C files: Ditto (if necessary).
1053 * All C++ source and header files: Include lib.h first (if
1056 * src/include/config.hin: New file (autogenerated by autoheader).
1057 * stamp-h.in: New file.
1058 * configure.ac: Updated.
1059 * aclocal.m4: Add third parameters to AC_DEFINE macros.
1060 (GROFF_ARRAY_DELETE): Simplified.
1061 * Makefile.sub (DISTCLEANFILES): Updated.
1062 Added targets for remaking config.status, config.hin, config.h,
1063 stamp-h.in, and stamp-h.
1064 * configure: Regenerated.
1066 2001-08-19 Werner LEMBERG <wl@gnu.org>
1070 2001-08-18 Sebastian Krahmer <krahmer@suse.de>
1072 * src/preproc/pic/pic.y (format_number): Use do_sprintf().
1073 (do_sprintf): Use snprintf().
1075 2001-08-18 Werner LEMBERG <wl@gnu.org>
1077 * src/libs/snprintf/*: Added an snprintf module written by Mark
1079 * src/libs/libgroff/Makefile.sub: Updated.
1080 * configure.ac: Add test for snprintf().
1081 * Makefile.in: Updated.
1082 * configure: Regenerated.
1084 * src/preproc/html/pre-html.cc (make_message): Reactivate code which
1087 2001-08-14 Ruslan Ermilov <ru@FreeBSD.org>
1089 * tmac/doc.tmac (Ex): New implementation.
1090 * tmac/doc-common, tmac/groff_tmac.man: Updated.
1092 2001-08-13 Ruslan Ermilov <ru@FreeBSD.org>
1094 * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
1096 * tmac/groff_tmac.man: Updated.
1098 2001-08-13 Werner LEMBERG <wl@gnu.org>
1100 * src/preproc/tbl/tbl.man: Minor documentation update.
1102 2001-08-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
1104 * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
1105 * configure.ac: Add declaration test for gettimeofday().
1106 * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
1107 * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
1108 * configure: Regenerated.
1110 2001-08-11 Werner LEMBERG <wl@gnu.org>
1112 * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
1113 * configure.ac: Add declaration test for strcasecmp().
1114 * Makefile.in: Updated.
1115 * configure: Regenerated.
1116 * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
1117 this is necessary because groff's mkstemp.cc is C++.
1118 Add declaration conditionally for strcasecmp().
1120 2001-08-10 Werner LEMBERG <wl@gnu.org>
1122 Integrated pic2graph, contributed by Eric S. Raymond.
1124 * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
1126 * Makefile.in, NEWS: Updated.
1128 * src/preproc/tbl/tbl.man: Revised.
1130 2001-08-09 Eric S. Raymond <esr@thyrsus.com>
1132 * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
1134 2001-08-09 Werner LEMBERG <wl@gnu.org>
1136 * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
1139 2001-08-08 Paul Eggert <eggert@twinsun.com>
1141 * Makefile.sub (configure): Depend on configure.ac, not
1143 * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
1145 2001-08-07 Werner LEMBERG <wl@gnu.org>
1147 * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
1150 2001-08-06 Werner LEMBERG <wl@gnu.org>
1152 * src/roff/troff/troff.man: Improve documentation of -E option.
1154 2001-07-28 Ralph Corderoy <ralph@inputplus.demon.co.uk>
1156 * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
1159 2001-07-27 Werner LEMBERG <wl@gnu.org>
1161 * src/preproc/refer/refer.cc: Undo last change.
1162 * src/devices/grohtml/post-html.cc: Ditto.
1164 2001-07-26 Werner LEMBERG <wl@gnu.org>
1166 * src/preproc/refer/refer.cc: Include `lib.h'.
1167 * src/devices/grohtml/post-html.cc: Ditto.
1169 2001-07-25 Gaius Mulley <gaius@glam.ac.uk>
1171 * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
1172 * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
1173 * Makefile.in: Comment updated.
1174 * configure: Regenerated.
1176 2001-07-25 Werner LEMBERG <wl@gnu.org>
1178 * src/preproc/pic/pic.cc: Removed.
1179 * src/preproc/pic/pic_tab.h: Removed.
1180 * src/preproc/refer/label.cc: Removed.
1182 * doc/Makefile (.ms.html): Don't use a file name extension in
1183 argument to grohtml's -I option.
1184 * Makefile.in (dist): Remove CVS directories.
1185 Call `distfiles' target.
1187 * src/devices/grohtml/grohtml.man: Add information about valid
1188 versions of pnmtopng.
1189 * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
1190 name instead of number.
1192 2001-07-24 Werner LEMBERG <wl@gnu.org>
1194 * doc/groff.texinfo: Minor fixes.
1196 2001-07-21 Gaius Mulley <gaius@glam.ac.uk>
1198 * doc/Makefile (.ms.html): Put image files into a subdirectory.
1201 2001-07-20 Werner LEMBERG <wl@gnu.org>
1203 * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
1204 * src/libs/libgroff/mkstemp.cc: New file.
1205 * src/libs/libgroff/mksdir.cc: New file.
1206 * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
1207 (xtmpfile) [!HAVE_MKSTEMP]: Removed.
1208 * src/libs/libgroff/Makefile.sub: Updated.
1209 * src/include/lib.h: Add mksdir() prototype.
1210 * src/include/posix.h: Define S_IXUSR if not yet defined.
1212 * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
1213 (createAllPages): Use mksdir() instead of current code.
1214 * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
1215 (main): [!HAVE_MKSTEMP]: Removed.
1217 * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
1218 (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
1220 * configure.ac: Add tests for stdint.h, sys/time.h, and
1222 Call new GROFF_xxx macros.
1223 * configure: Regenerated.
1224 * Makefile.in: Comments updated.
1226 2001-07-20 Gaius Mulley <gaius@glam.ac.uk>
1228 * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
1229 instead of current code.
1230 * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
1231 * src/roff/groff/groff.cc (possible_command::insert_args): New
1233 (main): Use it for predriver handling instead of insert_arg().
1235 2001-07-19 Werner LEMBERG <wl@gnu.org>
1237 * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
1240 * src/include/posix.h: Define S_IWUSR if not yet defined.
1242 2001-07-18 Werner LEMBERG <wl@gnu.org>
1246 2001-07-18 Ruslan Ermilov <ru@FreeBSD.org>
1248 * tmac/groff_mdoc.man: Document new -width and -column syntax.
1249 Some other minor fixes.
1250 * tmac/an-old.tmac: Add `AT' and `UC' macros.
1252 2001-07-17 Gaius Mulley <gaius@glam.ac.uk>
1254 Replace call to `troff' with `groff -Z' to make it aware of
1257 * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
1258 (troff_command, command_prefix): Removed.
1259 (alterDeviceTo): Use groff.
1260 (addZ): New function.
1261 (char_buffer::do_html): Use it.
1262 (scanArguments): Use TROFF_COMMAND.
1263 (findPrefix): Removed.
1265 * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
1267 2001-07-17 Eric S. Raymond <esr@snark.thyrsus.com>
1269 * doc/pic.ms: Documentation fixes.
1271 2001-07-17 Werner LEMBERG <wl@gnu.org>
1273 Replace atexit() with global destructor.
1275 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
1276 (xtmpfile_list_init): New global structure to deallocate
1277 xtmpfile_list on exit. Its destructor inherits most code from
1279 (remove_tmp_files): Deleted.
1280 (add_tmp_file): Simplified.
1282 2001-07-16 Werner LEMBERG <wl@gnu.org>
1284 Replace strdup() with strsave().
1286 * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
1287 (set_papersize): Use strsave() and a_delete.
1288 (main): Use strsave().
1289 * src/preproc/html/pre-html.cc (make_message, createAllPages,
1290 removeAllPages): Use strsave() and a_delete.
1292 * configure.ac: Remove test for strdup.
1293 * Makefile.in: Comment updated.
1294 * configure: Regenerated.
1296 2001-07-15 Werner LEMBERG <wl@gnu.org>
1298 * win32-diffs: Updated.
1300 2001-07-14 Werner LEMBERG <wl@gnu.org>
1302 * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
1303 removing the old one.
1304 * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
1306 2001-07-14 Ralph Corderoy <ralph@inputplus.demon.co.uk>
1308 * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
1310 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>
1312 Merge -xwidth into -width. Add -xwidth functionality to -column
1315 * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
1317 (doc-do-Bl-args): Merge -xwidth code with -width. Test whether
1318 string immediately following a leading dot starts with a valid mdoc
1320 Add similar code to the -column branch.
1321 (doc-Bl-usage): Updated.
1322 * groff_mdoc.man: s/-xwidth/-width/.
1324 2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
1326 * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
1327 running into centered or non-formatted text.
1329 2001-07-11 Werner LEMBERG <wl@gnu.org>
1331 Introduce short and long prefixes to have the selection at run-time
1332 whether there is a 8+3 limit for names of temporary files.
1334 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
1335 (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
1336 (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
1338 (temp_init): New global structure to initialize above three
1340 (xtmptemplate): Use two parameters for long and short prefix.
1341 Simplify code use above three variables.
1342 (xtmpfile): Use long and short prefixes as parameters.
1343 * src/include/lib.h: Updated.
1345 * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
1347 ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
1348 (createAllPages, makeTempFiles): Updated.
1350 2001-07-09 Werner LEMBERG <wl@gnu.org>
1352 * REVISION: Increased to 3.
1354 Version 1.17.2 released
1355 =======================
1357 2001-07-07 Werner LEMBERG <wl@gnu.org>
1359 * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
1362 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
1364 * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
1366 * tmac/groff_mdoc.man: Fix synopsis.
1368 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
1370 * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
1371 Restore `doc-Pa-font'.
1373 2001-07-04 Werner LEMBERG <wl@gnu.org>
1375 * src/utils/indxbib/dirnamemax.c: Moved to ...
1376 * src/libs/libgroff/maxfilename.cc: Here.
1377 s/dir_name_max/file_name_max/.
1379 * src/include/lib.h: Add file_name_max.
1380 * src/utils/indxbib/indxbib.cc: Updated.
1381 * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
1384 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
1386 (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
1388 * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
1389 REGION_TEMPLATE): New macros.
1390 (createAllPages, makeTempFiles): Use them.
1391 Include `nonposix.h'.
1392 (html_system): New function.
1393 (createAllPages, createImage): Use it.
1396 * tmac/www.tmac: Fix typos.
1398 2001-07-03 Werner LEMBERG <wl@gnu.org>
1400 * tmac/www.tmac: Disable hyphenation in normal text only if output
1402 (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
1403 * tmac/groff_mwww.man, NEWS: Updated.
1405 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
1407 * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
1410 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
1412 * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
1413 doc-display-ps-stack): Implement font and font size stack for
1416 2001-07-02 Werner LEMBERG <wl@gnu.org>
1418 * REVISION: Increased to 2.
1419 * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
1421 * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
1422 beginning of a line.
1423 * src/groff/grog/grog.sh: Ditto.
1425 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
1427 * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
1430 2001-06-27 Werner LEMBERG <wl@gnu.org>
1432 Fix problems with preprocessor string for `man' program.
1434 * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
1435 Updated/added copyright.
1436 Moved Emacs's local variable to identify nroff mode to the end of
1437 the file; add local variable if missing.
1439 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
1441 * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
1442 AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
1443 * configure: Regenerated.
1445 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
1447 * aclocal.m4 (GROFF_PAGE): Fix page detection code.
1448 * configure: Regenerated.
1450 2001-06-24 Werner LEMBERG <wl@gnu.org>
1452 * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
1454 * doc/pic.ms: Fix typos.
1456 Version 1.17.1 released
1457 =======================
1459 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
1461 * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
1462 * configure: Updated.
1464 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
1466 * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
1468 * src/roff/troff/dic.cc (blank_line): Add html tag.
1470 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
1472 * src/roff/troff/input.cc (do_suppress): Fix typo.
1474 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
1476 Added two new options (-D and -I) to specify image names and a
1477 subdirectory to place the images in.
1479 Change syntax from \\Ox to \\O[x].
1481 * src/devices/grohtml/post-html.cc (main): Add options.
1483 * src/preproc/html/pre-html.cc: Include `stdarg.h'.
1484 Use `NULL' instead of `0' for null string pointers.
1485 (MAX_RETRIES): New macro.
1486 (lengthOfintToStr, intToStr, make_message): New functions.
1487 (makeFileName): Make function static.
1488 Implement -D and -I options.
1489 (checkImageDir): New function.
1490 (write_end_image, write_start_image): Use new syntax of \O.
1491 (createAllPages, removeAllPages): Implement -D and -I options. Use
1493 (createImage): Use make_message().
1494 (addps4html): Add guard for malloc().
1495 (usage, scanArguments): Updated.
1496 (makeTempFiles): Use mkstemp().
1497 (removeTempFiles): Use unlink().
1498 (findPrefix): Add guard for malloc().
1500 * src/roff/troff/input.cc (get_delim_file_name): New function to
1502 (do_suppress): Updated to parse new syntax.
1503 * src/devices/grohtml/grohtml.man: Updated.
1504 * tmac/www.tmac: Updated to new syntax.
1508 2001-06-15 Werner LEMBERG <wl@gnu.org>
1510 * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
1512 * src/devices/grohtml/grohtml.man: Minor improvements.
1514 2001-06-14 Werner LEMBERG <wl@gnu.org>
1516 * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
1518 2001-06-11 Werner LEMBERG <wl@gnu.org>
1520 * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
1521 line to specify preprocessor options -- mandb 2.3.1 only recognizes
1523 * src/preproc/grn/grn.man: Add proper '\" string.
1525 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
1527 * test-groff: Don't use PATH but GROFF_BIN_PATH.
1529 2001-06-08 Werner LEMBERG <wl@gnu.org>
1531 Updated to autoconf 2.50.
1533 * configure.in: Renamed to...
1534 * configure.ac: This.
1535 * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
1536 (GROFF_OS390): Updated.
1537 * configure: Regenerated.
1539 2001-05-18 Werner LEMBERG <wl@gnu.org>
1541 * src/roff/troff/env.c, src/roff/troff/env.h,
1542 src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
1545 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
1547 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
1549 2001-05-16 Werner LEMBERG <wl@gnu.org>
1551 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
1552 less than or equal zero; set it to 1 then.
1553 * src/roff/troff/node.h (node::node): Initialize `last'.
1555 2001-05-08 Werner LEMBERG <wl@gnu.org>
1557 * tmac/an-old.tmac: Make predefined strings work in compatibility
1559 Add troff version guard.
1560 * tmac/doc.tmac: Simplify version guard.
1562 2001-05-07 Werner LEMBERG <wl@gnu.org>
1564 The .ns and .rs requests are now honoured not only in the top-level
1565 but in all diversions (similar to UNIX troff).
1567 This change is based on a patch from Tadziu Hoffmann
1568 <hoffmann@usm.uni-muenchen.de>.
1570 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
1571 (top_level_diversion): Remove `no_space_mode' member.
1572 * src/roff/troff/div.cc (diversion::diversion,
1573 top_level_diversion::top_level_diversion): Updated.
1574 (macro_diversion::output): Reset `no_space_mode'.
1575 (no_space, restore_spacing): Use `curdiv' unconditionally.
1576 (space_request, blank_line): Check `curdiv->no_space_mode'.
1577 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
1578 `curdiv' unconditionally.
1579 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
1582 2001-05-06 Werner LEMBERG <wl@gnu.org>
1584 Added two new requests `de1' and `am1' which are similar to `de' and
1585 `am' with the difference that compatibility mode is saved on entry,
1586 switched off during macro execution, and restored on exit.
1588 * src/roff/troff/input.h: Added two new special characters
1589 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
1590 * src/roff/troff/input.cc (input_iterator): Added two member
1591 functions `save_compatible_flag' and `get_compatible_flag'.
1592 (input_stack): Ditto.
1593 (string_iterator): Ditto. Also add private member
1594 `saved_compatible_flag'.
1595 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
1596 (calling_mode): New enumeration.
1597 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
1598 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
1599 (define_macro, define_indirect_macro, append_macro, ignore): Use
1601 (define_nocomp_macro, append_nocomp_macro): New functions.
1602 (init_input_requests): Updated.
1603 (do_request): Rename local variable `saved_compatible_flag' to
1604 `old_compatible_flag'.
1605 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
1607 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
1608 public and trap-invoked macros. As a consequence, the man macros
1609 work in compatibility mode also.
1611 2001-05-06 Solar Designer <solar@openwall.com>
1613 * Makefile.in: Use $(mandir).
1615 2001-05-06 Alexios Zavras <zvr@pobox.com>
1617 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
1619 2001-05-05 Werner LEMBERG <wl@gnu.org>
1621 Added `.ns' number register: Returns 1 in no-space mode (if in
1622 top-level diversion), 0 otherwise.
1624 * src/roff/troff/div.cc (no_space_mode_reg): New class.
1625 (init_div_requests): Updated.
1626 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
1629 2001-05-04 Werner LEMBERG <wl@gnu.org>
1631 * src/roff/nroff/nroff.man: Improved documentation (especially
1634 2001-05-02 Werner LEMBERG <wl@gnu.org>
1636 Added `brp' request: This is \p as a request.
1638 * src/roff/troff/env.cc (environment::do_break): Add parameter
1640 (do_break_request): New function (was `break_request').
1641 (break_request): Calls `do_break_request'.
1642 (break_spread_request): New; calls `do_break_request'.
1643 (init_env_requests): Updated.
1644 * src/roff/troff/env.h: Updated.
1645 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
1647 * REVISION: Increased to 1.
1648 * win32-diffs: Updated.
1650 2001-05-01 Werner LEMBERG <wl@gnu.org>
1652 * tmac/an-old.tmac: Fix minor compatibility mode issue.
1653 * tmac/troffrc-end: Make it really work in compatibility mode.
1655 2001-04-27 Werner LEMBERG <wl@gnu.org>
1657 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
1660 2001-04-22 Werner LEMBERG <wl@gnu.org>
1662 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
1663 latest versions from glibc CVS archive.
1665 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
1666 <c.zeelenberg@hccnet.nl>.
1668 2001-04-21 Werner LEMBERG <wl@gnu.org>
1670 * configure.in: Move check for mkstemp() to...
1671 * aclocal.m4 (GROFF_MKSTEMP): This new function.
1672 * configure: Regenerated.
1674 * src/include/groff-getopt.h: Don't use variable names in
1677 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
1678 * src/devices/grohtml/Makefile.sub,
1679 src/devices/grohtml/post-html.cc: Updated.
1681 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
1683 * configure.in: Add special check for mkstemp().
1684 * src/libs/libgroff/tmpfile.cc: Use it.
1685 * src/utils/indxbib/indxbib.cc: Ditto.
1686 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
1687 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
1690 2001-04-20 Bruce Lilly <blilly@erols.com>
1692 `Version_string' as C++ object was not visible to linker from C
1694 Add `const' to `Version_string'.
1696 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
1697 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
1698 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
1699 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
1700 (scanArguments), src/preproc/refer/refer.cc (main),
1701 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
1702 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
1703 (main), src/devices/grohtml/post-html.cc (main),
1704 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
1705 (main), src/utils/hpftodit/hpftodit.cc (main),
1706 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
1707 (main), src/utils/lkbib/lkbib.cc (main),
1708 src/utils/addftinfo/addftinfo.cc (main): Implement it.
1710 * src/roff/groff/pipeline.c: Add _UWIN.
1711 * src/include/nonposix.h: Ditto.
1713 2001-04-20 Werner LEMBERG <wl@gnu.org>
1715 * src/include/lib.h: Use HAVE_STRERROR.
1716 * src/roff/groff/pipeline.c: Ditto.
1717 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
1718 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
1719 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
1720 * win32-diffs: Updated.
1721 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
1723 2001-04-19 Werner LEMBERG <wl@gnu.org>
1725 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
1726 instead of hardwired `"troff"'.
1727 (char_buffer::read_file): Remove unused variables.
1728 (char_buffer::write_file_troff): Ditto.
1729 (char_buffer::write_file_html): Ditto.
1730 (generateImages): Ditto.
1732 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
1734 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
1736 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
1737 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
1738 index_search_item::search1): Ditto.
1739 * src/roff/troff/node.h (width_list): Reorder members.
1740 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
1741 (lookup_warning): Ditto.
1742 (prepend_string): Commented out.
1743 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
1744 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
1745 * src/preproc/tbl/main.cc (process_format): Ditto.
1746 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
1748 * src/preproc/pic/pic.cc: Updated.
1749 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
1750 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
1751 * src/preproc/refer/command.cc (execute_command): Ditto.
1752 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
1753 * src/preproc/refer/token.cc (lookup_token): Ditto.
1754 * src/preproc/soelim/soelim.cc: Ditto.
1755 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
1756 (isHexDigit): Commented out.
1757 (pushBackBuffer::isString): Remove unused variable.
1758 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
1760 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
1761 resource_manager::read_resource_arg, read_one_of, parse_extensions):
1763 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
1764 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
1765 lookup_paper_size): Ditto.
1766 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
1767 (text_glob, element_list): Reorder members.
1768 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
1770 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
1771 return value to `void'.
1772 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
1774 * src/devices/grohtml/html.h (simple_output::check_newline,
1775 simple_output::space_or_newline, simple_output::enable_newlines):
1777 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
1779 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
1780 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
1781 output_ligatures, output_charset, read_map): Ditto.
1782 * src/utils/lookbib/lookbib.cc (main): Ditto.
1783 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
1784 (do_file): Fix typo (`=' -> `==').
1785 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
1786 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
1788 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
1790 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
1791 Fix usage of GROFF_BIN_PATH.
1792 * src/roff/nroff/nroff.man: Updated.
1794 2001-04-18 Werner LEMBERG <wl@gnu.org>
1796 * NEWS: Fixing typos.
1799 Version 1.17 released
1800 =====================
1802 2001-04-17 Werner LEMBERG <wl@gnu.org>
1804 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
1805 directory, not in $(srcdir).
1807 2001-04-16 Werner LEMBERG <wl@gnu.org>
1809 * doc/groff.texinfo: More info on conditionals.
1811 2001-04-15 Werner LEMBERG <wl@gnu.org>
1813 * doc/groff.texinfo: Added some info about groff internals.
1815 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
1816 about missing special character only if the name is non-null.
1818 2001-04-14 Werner LEMBERG <wl@gnu.org>
1820 Removing the grohtml-old device driver which is now obsolete.
1822 * src/devices/grohtml-old/*: Removed.
1823 * font/devhtml-old/*: Removed.
1824 * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
1826 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
1827 * test-groff (PATH): Updated.
1828 * tmac/Makefile.sub (NORMALFILES): Updated.
1829 * tmac/an-old.tmac: Remove special code for html-old device.
1830 Replace `html-or-html-old' register with `an-html'.
1831 * tmac/eqnrc: Updated.
1832 * tmac/html-old.tmac: Removed.
1833 * tmac/troffrc, tmac/troffrc-end: Updated.
1834 * tmac/www.tmac: Remove special code for html-old device.
1835 Replace `html-or-html-old' register with `www-html'.
1837 * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
1838 src/libs/libgroff/htmlindicate.cc (graphic_end),
1839 include/htmlindicate.h, src/preproc/grn/*.cc,
1840 src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
1841 single argument for consistency with rest of source code.
1843 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
1845 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
1847 * src/roff/troff/troff.man: Fixing typos.
1849 2001-04-13 Werner LEMBERG <wl@gnu.org>
1851 * doc/pic.ms: Fixing many font switches.
1852 * doc/groff.texinfo: Fixes, additions.
1853 * MORE.STUFF: Updated.
1855 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
1857 * src/devices/grohtml/grohtml.man: Updated manual page regarding
1859 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
1861 (removeTempFiles): New function to tidy up temporary files.
1862 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
1863 Many fixes to do with the new inline suppress node and image regions
1865 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
1866 (generate_img_src): New function.
1867 (html_printer::do_auto_image): Utilizes it.
1868 (do_heading, do_title): Include inline images within their contents.
1869 (html_printer::begin_page): Tidied up comments that are issued to
1870 the html output file.
1871 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
1873 (text_glob::is_br): New method used by do_heading.
1874 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
1875 equivalent diversion.
1876 * src/include/html-strings.h: Altered image tags to reflect the
1878 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
1880 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
1881 it is already inside a pic image. Only emit tags if the argument
1882 `-Tps:html' is present.
1883 * src/preproc/tbl/main.cc: Changes to reflect additional
1884 `html_end_suppress' parameter.
1885 * src/roff/troff/env.cc: Only emit eol tag if a node has been
1886 emitted since the last eol tag was written.
1887 * src/roff/troff/env.h: New boolean `emitted_node'.
1888 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
1889 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
1890 * src/roff/troff/node.cc (check_charinfo): New method.
1891 (troff_output_file::determine_line_limits): Alterations to limit
1893 * tmac/www.tmac: Changes to reflect new suppress nodes.
1895 2001-04-12 Bruno Haible <haible@clisp.cons.org>
1897 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
1898 Escape the html_glyph in the buffer.
1899 (str_translate_to_html): Output the unescaped escaped_char.
1900 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
1901 `frame=void', not `frame=none'. Add `border=0'.
1903 2001-04-12 Werner LEMBERG <wl@gnu.org>
1905 * PROBLEMS: Add some words on how to avoid wrapper macros.
1907 2001-04-11 Blake McBride <blake@florida-software.com>
1909 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
1911 2001-04-11 Werner LEMBERG <wl@gnu.org>
1913 * font/devlbp/Makefile.sub (CLEANADD): Set it.
1914 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
1915 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
1916 * Makefile.sub (DISTCLEANFILES): Here.
1918 * libs/libgroff/new.cc: Include `nonposix.h'.
1919 * win32-diffs: Updated.
1921 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
1923 Added skeleton macro for defunct macros.
1925 Updated documentation.
1927 When inside displays, an empty input line warning should be
1928 suppressed. If another macro call is put inside a display,
1929 all subsequent empty lines found in that display caused a
1930 warning to be emitted.
1932 * tmac/doc.tmac (doc-defunct-macro): New macro.
1933 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
1934 (doc-restore-global-vars): Fixed typo.
1935 (doc-empty-line): Check the `doc-display-depth' register to
1936 determine whether we are inside display or not.
1938 * tmac/doc-common: Removed `Or' and `Sf' registers.
1939 Moved obsolete `Ds' macro to doc.tmac.
1941 * tmac/groff_mdoc.man: Bump document date.
1942 Document `.Vt' under ``Variable Types''.
1943 Removed documentation for obsolete `.Or' macro.
1945 2001-04-10 Werner LEMBERG <wl@gnu.org>
1948 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
1950 2001-04-10 Bruno Haible <haible@clisp.cons.org>
1952 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
1953 (usage): Add stream argument. Don't exit.
1954 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
1955 Write --version output to stdout, not stderr.
1956 (usage): Add stream argument. Don't exit.
1957 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
1958 (usage): Add stream argument. Don't exit.
1959 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
1961 (usage): Add stream argument. Don't exit.
1962 (main): Write --help output to stdout, not stderr.
1963 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
1964 (usage): Add stream argument. Don't exit.
1965 * src/devices/grops/ps.cc (main): Accept --help and --version.
1966 (usage): Add stream argument. Don't exit.
1967 * src/devices/grotty/tty.cc (main): Accept --help and --version.
1968 (usage): Add stream argument. Don't exit.
1969 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
1970 (main): Accept --help and --version.
1971 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
1972 (main): Accept --help and --version.
1973 * src/preproc/html/pre-html.cc (usage): Add stream argument.
1974 (scanArguments): Accept --help and --version.
1975 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
1976 (main): Accept --help and --version.
1977 * src/preproc/refer/refer.cc (main): Accept --help and --version.
1978 (usage): Add stream argument. Don't exit.
1979 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
1981 (main): Accept --help and --version.
1982 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
1983 (main): Accept --help and --version.
1984 * src/roff/groff/groff.cc (main): Accept --help and --version.
1985 (synopsis): Add stream argument.
1986 (help): Write --help output to stdout, not stderr.
1987 (usage): Add stream argument. Don't exit.
1988 * src/roff/grog/grog.pl: Accept --help and --version.
1990 * src/roff/grog/grog.sh: Accept --help and --version.
1991 * src/roff/nroff/nroff.sh: Accept --help and --version.
1992 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
1993 (usage): Add stream argument. Don't exit.
1994 (main): Accept --help and --version.
1995 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
1996 (usage): New function with stream argument, doesn't exit.
1997 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
1998 (usage): New function with stream argument, doesn't exit.
1999 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
2000 (usage): Add stream argument. Don't exit.
2001 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
2002 (main): Accept --help and --version.
2003 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
2005 (main): Accept --help and --version.
2006 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
2007 (main): Accept --help and --version.
2008 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
2009 (usage): Add stream argument. Don't exit.
2011 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
2013 Fix indentation in SYNOPSIS.
2015 Updated to include changes of latest BSD mdoc version (basically,
2016 the only change is that `.Fn' and `.Fc' put a final semicolon after
2017 a function declaration in the SYNOPSIS section).
2019 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
2020 (doc-in-synopsis-section): New variable. Updated all related
2022 (doc-indent-synopsis-active): New register.
2023 (Nd, Fn, Fo): Use it.
2024 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
2025 `.Cd' with long argument line produces indented wrapped lines.
2026 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
2027 undesirable line break to be output.
2028 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
2030 (Fn, Fc): Add final `;' to output.
2031 (doc-save-global-vars, doc-restore-global-vars): Updated.
2032 * tmac/doc-common: Remove `Ex' register.
2034 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
2037 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
2039 * tmac/doc.tmac (Cd): Simplify code.
2040 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
2042 2001-04-06 Werner LEMBERG <wl@gnu.org>
2044 Implement continuous underlining for nroff mode. To do that, a new
2045 request in the ditroff language has been added: `x u N' (N is 0
2048 \X and \Y are now transparent to end-of-sentence recognition.
2050 * src/include/printer.h (printer): Add `type' parameter to `special'
2052 * src/libs/libdriver/printer.cc (printer::special): Updated.
2053 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
2055 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
2056 specials of type `p'.
2057 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
2058 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
2059 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
2060 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
2061 (glyph::order): New method.
2062 (tty_printer::add_char): Use it.
2063 (tty_printer::special): New method.
2064 (tty_printer::end_page): Implement it.
2066 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
2067 * src/roff/troff/node.cc (special_node::special_node): Add parameter
2068 to set `no_init_string'.
2069 (special_node::tprint_start): Use it.
2070 (special_node::same, special_node::copy): Updated.
2071 (special_node::ends_sentence): New method.
2072 (troff_output_file::start_special): Add parameter to include
2073 inititialization of special conditionally.
2075 * src/roff/troff/env.h (environment): New member `underline_spaces'.
2076 * src/roff/troff/env.cc (do_underline_special): New function.
2077 (environment::set_font): Use it.
2078 (do_underline): Use it. This was `underline()'.
2079 (underline): Call `do_underline()'.
2080 (continuous_underline): New function which calls `do_underline()'.
2081 (environment::newline): Use `do_underline_special()'.
2082 (init_env_requests): Updated.
2084 * NEWS, man/troff_out.man: Updated.
2086 2001-04-06 Bruno Haible <haible@clisp.cons.org>
2088 * font/devutf8/R.proto: Fix code of 'shc'.
2090 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
2092 Many fixes. Diag lists can now be nested also; additionally,
2093 `-compact' and `-offset' are supported.
2095 * tmac/doc.tmac (doc-have-indent): Replaced with ...
2096 (doc-list-have-indent-stackXXX): A new register stack.
2097 (doc-have-diag-list): Removed.
2098 (Bl): Use `doc-list-have-indent-stackXXX'.
2100 (doc-diag-list): Use `doc-compact-list-stackXXX'.
2101 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
2102 (doc-set-vertical-and-indent): Ditto.
2103 (doc-next-list-depth): Removed.
2104 (doc-increment-list-stack): Updated.
2105 (doc-decrement-list-stack): Use `doc-list-depth' instead of
2106 `doc-next-list-depth'.
2107 (doc-end-list, doc-end-column-list): Don't use
2108 `doc-increment-list-stack'.
2109 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
2110 (doc-save-global-vars, doc-restore-global-vars): Updated.
2111 * tmac/doc-common: Updated.
2112 * tmac/groff_mdoc.man: Updated.
2115 2001-04-02 Werner LEMBERG <wl@gnu.org>
2117 * src/devices/grotty/grotty.man: Fix grammatical error.
2119 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
2121 Remove .Ld from mdoc package; replace it with special handling of
2124 * tmac/doc-common: Remove `Ld' register.
2125 Uncomment `doc-volume-ds-*' strings.
2126 Remove `doc-operating-system-default'.
2128 * tmac/doc-syms (Ld): Removed.
2129 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
2133 * tmac/groff_mdoc.man: Many fixes and updates.
2135 2001-03-29 Werner LEMBERG <wl@gnu.org>
2137 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
2138 Bond <tkb@tkb.mpl.com>.
2139 * tmac/www.tmac: Save compatibility mode.
2141 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
2143 * tmac/groff_mdoc.man: Many fixes.
2145 2001-03-28 Werner LEMBERG <wl@gnu.org>
2147 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
2150 2001-03-27 Werner LEMBERG <wl@gnu.org>
2152 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
2153 diversion. This fixes overlong tags.
2155 2001-03-26 Werner LEMBERG <wl@gnu.org>
2157 * doc/groff.texinfo: Fixed and improved documentation of fonts.
2158 * tmac/doc-syms: Fix error messages.
2159 * tmac/an-old.tmac: Remove incorrect double backslashes.
2161 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
2163 * tmac/Makefile.sub: Strip mdoc.local also
2164 * tmac/strip.sed: Fixed.
2166 2001-03-24 Werner LEMBERG <wl@gnu.org>
2168 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
2169 selecting the font size.
2170 * tmac/groff_mdoc.man, NEWS: Document it.
2172 2001-03-23 Werner LEMBERG <wl@gnu.org>
2174 * src/roff/troff/div.cc (save_vertical_space): Add default argument
2176 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
2177 argument to restore previous font family.
2178 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
2180 * doc/groff.texinfo: More fixes and additions (mainly for font
2181 manipulating commands).
2183 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
2184 * tmac/groff_mdoc.man: This. The quick reference has been removed.
2185 * tmac/Makefile.sub, NEWS: Updated.
2187 2001-03-23 Werner LEMBERG <wl@gnu.org>
2189 Replaced mdoc implementation. The new version is `state of the
2190 art', using almost all new features of groff 1.17 -- it won't run
2191 with older versions.
2193 * tmac/doc.tmac: Completely rewritten.
2194 * tmac/doc-common: Ditto.
2195 * tmac/doc-nroff: Ditto.
2196 * tmac/doc-ditroff: Ditto.
2197 * tmac/doc-syms: Ditto.
2198 * tmac/mdoc.local: New file.
2199 * tmac/groff_mdoc.samples.man: Replaced with ...
2200 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
2201 * tmac/strip.sed: Updated.
2202 * tmac/Makefile.sub: Updated.
2205 * tmac/groff_man.man: Add `man.local' to the FILES section.
2207 2001-03-22 Werner LEMBERG <wl@gnu.org>
2209 * doc/groff.texinfo: Added many @noindent.
2210 Replaced @end_Example -> @endExample.
2211 Added info whether registers are r/o.
2212 Many other additions and fixes.
2214 2001-03-21 Werner LEMBERG <wl@gnu.org>
2216 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
2217 in makeinfo of texinfo 4.0) to be used in @Def* macros.
2218 Improved @Def* macros: Now the exact syntax of request, register,
2219 and escapes is shown.
2220 Added macros for parentheses and brackets to be used in @Def*.
2221 Many fixes and improvements of the documentation.
2223 2001-03-20 Werner LEMBERG <wl@gnu.org>
2225 * doc/groff.texinfo: Added new index: `st' (for strings).
2226 Added macros @Defstr(x).
2227 Added macro @Example (adding @group).
2228 Other minor improvements.
2230 2001-03-19 Werner LEMBERG <wl@gnu.org>
2232 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
2233 `rq' for requests. `fn' is no longer used.
2234 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
2237 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
2238 number with name of man page.
2240 2001-03-19 Larry Kollar <kollar@alltel.net>
2242 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
2245 2001-03-19 Werner LEMBERG <wl@gnu.org>
2247 * man/groff_font.man: Document `prepro', `postpro', and `print'.
2248 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
2249 * src/devices/grohtml/grohtml.man: Fixing typos.
2251 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
2253 * tmac/s.tmac (@IP): Pass `.ip' html tag.
2254 * tmac/groff_mwww.man: Remove .LINE macro
2255 * tmac/www.tmac (LINE): Add `.ti'.
2257 * src/devices/grohtml/post-html.cc (html_printer): New member
2259 (html_printer::emit_raw): Use it.
2260 (html_printer::do_linelength): Ditto.
2261 (html_printer::do_pageoffset): Ditto.
2262 (html_printer::do_indentation): Ditto.
2263 (html_printer::do_tempindent): Ditto.
2264 (html_printer::do_break): Ditto.
2265 (html_printer::begin_page): Ditto.
2266 (html_printer::do_indentedparagraph): New function.
2267 (html_printer::troff_tag): Handle `.ip'.
2268 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
2269 Add `<td width=...>' handling.
2270 (html_text::do_table): Add parameter.
2271 (html_text::do_indent): Updated.
2272 * src/devices/groohtml/html-text.h: Updated.
2274 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
2276 Introduced simple html tables to implement indentation.
2278 * src/devices/grohtml/html.h (word, word_list): New structures.
2279 (simple_output): Use it.
2280 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
2281 (html_printer): Improve indentation handling.
2282 (html_printer::emit_raw): Set `in_table' element. Handle
2284 (html_printer::write_header): Move conditional downwards.
2285 Don't allow whitespace in tags.
2286 (html_printer::do_linelength): Handle line length and indentation
2288 (html_printer::do_pageoffset): Handle indentation conditionally.
2289 (html_printer::do_indentation): Ditto.
2290 (html_printer::do_tempindent): New function member.
2291 (html_printer::do_fill): Take care of indentation.
2292 (html_printer::do_flush): Finish table.
2293 (html_printer::do_links): Ditto.
2294 (html_printer::do_break): New function for handling `.br' and `.ti'.
2295 (html_printer::troff_tag): Use it.
2297 (html_printer::flush_globs): Fix.
2298 (html_printer::flush_page): Finish table.
2299 (html_printer::html_printer): Fix error message. Set up
2301 (html_printer::add_to_sbuf): Remove special handling of character
2303 (to_unicode): Remove `stop()'.
2304 (html_printer::write_title): Cleanup.
2305 (html_printer::begin_page): Use `put_string()'. Handle indentation.
2306 (html_printer::~html_printer): Flush text and end the line.
2308 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
2309 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
2311 (html_text::start_tag): Disable newlines.
2312 (html_text::table_is_void): New function.
2313 (html_text::issue_table_begin): Ditto.
2314 (html_text::issue_table_end): Ditto.
2315 (html_text::push_para): Better table handling.
2316 (html_text::do_indent): New function.
2317 (html_text::do_table): Ditto.
2318 (html_text::done_table): Ditto.
2319 (html_text::do_tt): Handle PRE_TAG.
2320 (html_text::is_in_table): New function.
2321 (html_text::check_emit_text): Handle tables.
2322 (html_text::do_emittext): Use `nl()'.
2323 (html_text::do_para): Handle table.
2324 (html_text::remove_def): New function.
2325 * src/devices/grohtml/output.cc (word, word_list): Implement
2327 (simple_output::end_line): Flush last word.
2328 (simple_output::simple_comment): Ditto.
2329 (simple_output::begin_comment): Recoded.
2330 (simple_output::end_comment): Ditto.
2331 (simple_output::comment_arg): Removed.
2332 (simple_output::check_newline): Improve test and flush last word.
2333 (simple_output::space_or_newline): Improved.
2334 (simple_output::write_newline): Replaced with...
2335 (simple_output::nl): This.
2336 (simple_output::put_raw_char): Flush last word.
2337 (simple_output::check_space): Removed.
2338 (simple_output::put_translated_string): Ditto.
2339 (simple_output::put_string): Simplified.
2340 (simple_output::put_number): Updated.
2341 (simple_output::put_float): Ditto.
2342 (simple_output::put_symbol): Removed.
2343 (simple_output::enable_newlines): Add `check_newline()'.
2344 (simple_output::flush_last_word): New function.
2346 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
2347 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
2349 * tmac/s.tmac (@PP, @IP): Add html conditional code.
2350 * tmac/an-old.tmac (TP): Ditto.
2352 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
2354 * mdate.sh: Make it POSIX compliant.
2356 2001-03-09 Werner LEMBERG <wl@gnu.org>
2358 Added the `return' request to end a macro immediately. It simply
2359 pops iterators from the input stack until a macro iterator is found.
2361 * src/roff/troff/input.cc (input_iterator::is_macro,
2362 macro_iterator::is_macro): New member.
2363 (input_return_boundary): New class to signal an immediate return
2365 (input_stack::add_return_boundary, input_stack::is_return_boundary):
2367 (input_stack::clear): Use it.
2368 (input_stack::pop_macro): New function.
2369 (while_request): Use `is_return_boundary()'.
2370 (return_macro_request): New function.
2371 (init_input_requests): Use it.
2373 * src/roff/troff/TODO: Updated.
2374 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2376 2001-03-08 Werner LEMBERG <wl@gnu.org>
2378 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
2381 2001-03-07 Werner LEMBERG <wl@gnu.org>
2383 Make `\B' more rigid.
2385 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
2387 (get_number_rigidly): New function.
2388 * src/roff/troff/input.cc (do_expr_test): Use it.
2389 * src/roff/troff/token.h: Updated.
2391 * src/roff/troff/request.h: Fix typo (init_html_request ->
2392 init_markup_request).
2394 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
2396 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
2397 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
2398 are now `.begin', `.end', `.image'.
2400 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
2401 (html_printer::add_to_sbuf): Changing type of `code' parameter.
2402 Use add_char_to_sbuf().
2403 (to_unicode): New function.
2404 (char_translate_to_html): Changing type of `ch' parameter.
2406 (html_printer::~html_printer): Comment out doctype string.
2407 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
2408 instead of `.html-end'.
2409 (write_start_image): Use `.begin' and `.image' instead of
2410 `.html-begin' and `.html-image'.
2411 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
2412 (html_begin): Renamed to ...
2414 (html_end): Renamed to ...
2416 (html_image): Renamed to ...
2418 (init_html_requests): Renamed to ...
2419 (init_markup_requests): This.
2420 * tmac/www.tmac: Updated.
2422 2001-02-28 Bram <bram@avontuur.org>
2424 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
2427 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
2429 * doc/meref.me: Fixing some typos.
2431 2001-02-16 Werner LEMBERG <wl@gnu.org>
2433 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
2434 method. Return `HYPHEN_MIDDLE' if it was `\:'.
2435 * src/roff/troff/node.h: Updated.
2437 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
2439 * tmac/groff_tmac.man: Fix typo.
2441 2001-02-16 Werner LEMBERG <wl@gnu.org>
2443 Fixing a bug which prevented proper end-of-sentence recognition
2444 between an `unformatted' box and the following text. As a
2445 consequence, vertical line distances are no longer preserved in
2446 boxes after a call to `.unformat' -- because boxes aren't
2447 line-oriented (contrary to diversions), this doesn't make sense
2450 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
2452 (vertical_size_node::set_unformat_flag): New method.
2453 * src/roff/troff/node.hh: Updated.
2454 * src/roff/troff/input.cc (word_space_node::reread,
2455 hmotion_node::reread): Reset `unformat' flag after usage.
2456 (unformat_macro): Append only if `set_unformat_flag()' returns
2458 * src/roff/troff/troff.man: Updated.
2460 2001-02-15 Werner LEMBERG <wl@gnu.org>
2462 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
2463 documentation of `asciify' and `unformat' requests.
2465 2001-02-13 Werner LEMBERG <wl@gnu.org>
2467 Redesigned the `unformat' request. It is no longer connected with
2468 `asciify' but rather uses new `reread()' methods if the `unformat'
2469 flag is set. Additionally, the handling of space characters after
2470 unformatting has been fixed so that they retain their width.
2472 * src/roff/troff/node.h (width_list): New structure to store
2473 original widths of spaces.
2474 (node): Added `unformat' member.
2475 Replaced `num_spaces' variable with `orig_width' list.
2476 * src/roff/troff/node.cc (*node::asciify,
2477 asciify_reverse_node_list): Removed `unformat_only' flag and related
2479 (word_space_node::asciify, word_space_node::word_space_node): Use
2481 (word_space_node::~word_space_node): New destructor.
2482 (word_space_node::copy): Updated to handle `orig_width'.
2483 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
2484 (*node::merge_space): Update `orig_width' list if necessary.
2485 (*node::set_unformat_flag): New methods to set the `unformat' flag.
2486 * src/roff/troff/enc.cc (environment::space_newline): Use
2488 (environment::space): Added method to handle space width and
2489 sentence space width as parameters. Use `width_list'.
2490 (environment::make_tab_node): Updated.
2491 * src/roff/troff/env.h: Updated.
2492 * src/roff/troff/input.cc (word_space_node::reread,
2493 unbreakable_space_node::reread, hmotion_node::reread): New methods
2494 to handle nodes specially if `unformat' flag is set.
2495 (do_asciify_macro): Renamed back to ...
2496 (asciify_macro): This.
2497 (unformat_macro): New implementation to simply set the `unformat'
2500 * MORE.STUFF: Added more info about deroff.
2502 2001-02-08 Werner LEMBERG <wl@gnu.org>
2504 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
2505 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
2506 and `add_self()' methods to avoid hyphenation. For example, the
2507 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
2508 soft hyphen after `foo'. Now the hyphen list is correctly
2509 `foo<ignore><ignore>bar'.
2511 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
2513 * tmac/groff_tmac.man: Fix `BIR' macro.
2515 2001-02-04 Werner LEMBERG <wl@gnu.org>
2517 A new escape sequence `\:', inserting a zero-width break point.
2519 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
2520 * src/roff/troff/input.cc (get_copy, token::next, asciify):
2522 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
2524 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
2525 and `asciify()' methods.
2526 * src/roff/troff/node.cc (space_node::space_node): Updated.
2527 (space_node::asciify): Handle `was_escape_colon'.
2528 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2530 Handle `\~' similar to other comparable requests.
2532 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
2534 (token::next): Move creation of an unbreakable_space_node to...
2535 (token::add_to_node_list): Here.
2537 Fix a bug which sometimes prevented hyphenation of words connected
2538 with `\~' or `\ ' (and other escape sequences handled as
2539 TOKEN_NODE). This also fixes a hyphenation problem with boxes
2540 (after a call to the `unformat' request).
2542 * src/roff/troff/env.h (environment::possibly_break_line,
2543 environment::hyphenate_line): Introducing `start_here' parameter.
2544 * src/roff/troff/env.cc (environment::space_newline,
2545 environment::space): Use it.
2546 (environment::possibly_break_line, environment::hyphenate_line):
2548 * src/roff/troff/input.cc (process_input_stack): Use it.
2549 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
2550 space_char_hmotion_node, overstrike_node): Add
2551 `get_hyphenation_type()' method.
2552 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
2553 if `unformat_only' is active.
2555 2001-01-30 Werner LEMBERG <wl@gnu.org>
2557 Implemented new read-only number register `.linetabs' which
2558 returns 1 if in line-tabs mode, 0 otherwise.
2560 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
2561 * src/roff/troff/env.cc (get_line_tabs): New function.
2562 (init_env_requests): Use it.
2563 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2565 * VERSION, REVISION: Changing to 1.17.0.
2567 2001-01-28 Werner LEMBERG <wl@gnu.org>
2569 Fixed a bug which prevented hyphenation of words which are finished
2572 * src/roff/troff/token.h (token): Add enum type
2573 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
2574 * src/roff/troff/input.cc (token::next, token::description,
2575 get_line_arg, token::add_to_node_list, token::process): Use it.
2577 2001-01-27 Werner LEMBERG <wl@gnu.org>
2579 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
2580 * src/roff/troff/div.cc (do_divert): Use it.
2582 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
2584 2001-01-25 Werner LEMBERG <wl@gnu.org>
2586 Adding the `linetabs' request. If set, tab distances are not
2587 computed relative to the input line but relative to the output line.
2589 * src/roff/troff/env.h (environment): New member `line_tabs'.
2590 * src/roff/troff/env.cc (line_tabs_request): Implement request.
2591 (environment::environment, environment::copy): Updated.
2592 (environment::distance_to_next_tab): Use `line_tabs'.
2593 (init_env_requests): Register request.
2594 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
2597 2001-01-24 Werner LEMBERG <wl@gnu.org>
2599 Introducing a new read-only register `.int' which is set to a
2600 positive value if the last output line is interrupted (i.e., if it
2603 * src/roff/troff/env.cc (init_env_requests): Add it.
2604 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2606 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
2608 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
2609 * src/preproc/html/pre-html.cc (findPrefix): New function which
2610 generates the troff executable name via the system prefix.
2611 * src/preproc/eqn/main.cc: Modified warning message.
2613 2001-01-23 Werner LEMBERG <wl@gnu.org>
2615 troff's `box' and `boxa' requests didn't preserve temporary
2618 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
2619 `saved_target_text_length' members.
2620 * src/roff/troff/div.cc (do_divert): Use them.
2622 Tabs (but not yet leaders and fields) are now handled correctly by
2625 * node.h (hmotion_node): Add field `was_tab'.
2626 * env.cc (environment::make_tab_node): Set it.
2627 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
2629 Added new request `unformat' which will, contrary to `asciify',
2630 preserve font information after unformatting (i.e., only nodes
2631 dealing with horizontal space are converted back to input
2634 * input.cc (asciify_macro): Renamed to ...
2635 (do_asciify_macro): this, having a new parameter `unformat_only'.
2636 (asciify_macro, unformat_macro): New; using do_asciify_macro.
2637 (init_input_requests): Added `unformat'.
2638 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
2639 parameter to control asciification process.
2640 * node.h (*_node::asciify): Ditto.
2641 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2643 2001-01-20 Werner LEMBERG <wl@gnu.org>
2645 * doc/groff.texinfo: Minor improvement of `.in' documentation.
2647 2001-01-18 Werner LEMBERG <wl@gnu.org>
2649 * tmac/ps.tmac: Remove call of psold.tmac.
2650 * tmac/psold.tmac: Comment updated.
2651 * tmac/psnew.tmac: Removed since no longer needed.
2652 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
2654 * font/devutf8/R.proto: Adding `shc' glyph.
2655 * font/devutf8/NOTES: Updated.
2657 * test-groff: Updated.
2659 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
2661 First cut of the new html device driver. Changes to pre-html and
2662 the new grohtml are too numerous to be documented here.
2664 Stuff related to `html' has been renamed to `html-old' and `html2'
2665 stuff has been renamed to `html' (including directories). The new
2666 html device driver is therefore invoked as `-Thtml'.
2668 Added new `\O' escape to suppress output (needed by html driver).
2670 Added functions and code to pass info about input-level commands
2671 (`.in', `.fl', etc.) to html driver.
2673 Three new functions (.html-begin, .html-end, and .html-image) for
2674 better html handling: `html-begin' will execute the remaining line
2675 if at the outermost nesting level, increasing an internal counter.
2676 `html-end' does the same but decreases the internal counter.
2677 `html_image' puts its arguments into a special node (suppress_node)
2678 to define an image region.
2680 The `output' request has been removed.
2682 * tmac/html-tags.tmac: Removed.
2683 * tmac/arkup.tmac: Updated and renamed to ...
2684 * tmac/www.tmac: New file.
2685 * tmac/markup.tmac Updated and renamed to ...
2686 * tmac/mwww.tmac: New file.
2687 * tmac/Makefile.sub: Updated.
2688 * tmac/an-old.tmac: Updated.
2689 * tmac/eqnrc: Updated.
2690 * tmac/groff_man.man
2691 * tmac/groff_markup.man: Updated and renamed to ...
2692 * tmac/groff_mwww.man: New file.
2693 * tmac/groff_tmac.man: Updated.
2694 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
2695 * tmac/html.tmac: Updated and renamed from html2.tmac.
2696 * tmac/pspic.tmac: Updated html support.
2697 * tmac/s.tmac: Added html output support.
2698 * tmac/troffrc, tmac/troffrc-end: Updated.
2700 * Makefile.in, doc/Makefile: Updated.
2701 * doc/groff.texinfo: Added info about new `\O' escape.
2702 * doc/homepage.ms: Use `MAILTO' macro.
2704 * font/devhtml/DESC.proto: Add `C' font.
2705 * font/devhtml/Makefile.sub: Updated.
2706 * font/devhtml/R.proto: Minor fixes.
2707 * font/devhtml-old/Makefile.sub: Updated.
2709 * src/devices/grohtml-old/Makefile.sub: Updated.
2711 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
2713 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
2714 graphic_start): Add `inline' parameter. Update.
2715 (html_end_suppress, graphic_end): Update.
2717 * src/include/html-strings.h: New file.
2718 * src/include/htmlindicate.h: Comments updated.
2719 * src/include/printer.h: Updated.
2721 * src/preproc/eqn/main.cc (do_file, main): Updated.
2722 * src/preproc/pic/troff.cc (troff_output::start_picture,
2723 troff_output::finish_picture): Updated.
2724 * src/preproc/tbl/main.cc (process_input_file): Updated.
2726 * src/roff/groff/groff.cc (main): Updated.
2727 Pass device arguments to predrivers also.
2728 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
2729 * src/roff/troff/env.h (environment): Updated.
2730 New elements `need_eol' and `ignore_next_eol' (for html output).
2731 * src/roff/troff/env.cc (environment::environment): Add initializers
2732 for `need_eol' and `ignore_next_eol'.
2733 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
2735 (point_size, fill, no_fill, center, right_justify, line_length,
2736 indent, temporary_indent, break_request, handle_tab): Use
2738 (set_tabs): Use `add_html_tag_tabs()'.
2739 (environment::add_html_tag): Updated.
2740 (environment::do_break): Updated.
2741 * src/roff/troff/div.cc (space_request, flush_output): Use
2742 `environment::add_html_tag()'.
2743 * src/roff/troff/input.cc: Updated.
2744 New variable `html_level' to indicate nested `html-begin' requests.
2745 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
2746 (non_interpreted_char_node, token_node, non_interpreted_node): Add
2747 `force_tprint()' method.
2748 (token::next): Handle `\O'.
2749 (do_suppress): Implement it.
2750 (html_begin, html_end, html_image): New functions.
2751 (init_output_requests): Renamed to ...
2752 (init_html_requests): this.
2754 (macro::append_str, macro::append_unsigned, macro::append_int): New
2756 New variable `output_low_mark_miny' to limit minimal value of y.
2757 (reset_output_registers): Use it.
2758 (output_request): Removed.
2759 (get_output_registers): New function.
2760 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
2761 (*_node): Added `force_tprint()' if necessary.
2762 (special_node): New elements `tf' and `get_tfont()'.
2763 (suppress_node): New class.
2764 * src/roff/troff/node.cc:
2765 New global variables `image_no' and `suppress_start_page'.
2766 (real_output_file): New method `is_on()'.
2767 (troff_output_file): New method `start_special(tfont)'.
2768 (troff_output_file::really_print_line): Use `tprint' conditionally.
2769 (real_output_file::print_line): Updated.
2770 (real_output_file::on): Updated.
2771 (*_node): Added `force_tprint()'.
2772 (special_node::special_node): Initializer updated.
2773 (special_node::same, special_node::copy, special_node::tprint_start):
2775 (get_reg_int, get_reg_str): New functions.
2776 (suppress_node::*): New methods.
2777 New global variables last_position, last_image_filename;
2778 (min): New inline function.
2779 * src/roff/troff/reg.h, src/roff/troff/request.h,
2780 src/roff/troff/troff.h: Updated.
2782 2001-01-13 Werner LEMBERG <wl@gnu.org>
2784 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
2785 documentation of `asciify' request.
2787 2001-01-12 Werner LEMBERG <wl@gnu.org>
2789 * src/roff/troff/input.cc: Move definition of special characters
2790 like `ESCAPE_TILDE' to ...
2791 * src/roff/troff/input.h: New file.
2792 * src/roff/troff/Makefile.sub (HDRS): Add it.
2794 Extending the .asciify request to `unformat' space characters also.
2796 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
2797 to count input space characters.
2798 Update constructors to take care of it.
2799 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
2800 `ESCAPE_SPACE' instead of normal space.
2801 (word_space_node::asciify): New method.
2802 (unbreakable_space_node::asciify): New method.
2803 (word_space_node::merge_space): New method.
2804 * src/roff/troff/env.cc (environment::space_newline,
2805 environment::space): Add code to initialize `num_spaces' (using the
2806 constructor of `word_space_node').
2807 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
2810 2001-01-09 Werner LEMBERG <wl@gnu.org>
2812 * man/groff_char.man: Use table header traps only conditionally.
2814 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
2816 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
2818 2001-01-08 Werner LEMBERG <wl@gnu.org>
2820 Introducing the `box' and `boxa' requests which are similar to
2821 `di' resp. `da' but omitting a partially filled line (which is
2822 restored after ending the diversion).
2824 * src/roff/troff/div.h (diversion): Add elements to save partially
2826 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
2827 partially filled line.
2828 (divert, divert_append): Updated.
2829 (box, box_append): New functions.
2830 (init_div_requests): Use them.
2831 * src/roff/troff/env.h (environment): do_divert() is now a friend.
2832 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2834 * doc/groff.texinfo: Fix documentation of `lf' request.
2836 2000-12-25 Werner LEMBERG <wl@gnu.org>
2838 * src/roff/troff/troff.man, NEWS: Document `writem' request.
2840 2000-12-21 Werner LEMBERG <wl@gnu.org>
2842 Ignore `ss' request if in compatibility mode.
2844 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
2845 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
2846 * src/roff/troff/env.cc (space_size): Use it.
2848 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
2849 `ss' request in nroff mode.
2851 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
2854 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
2856 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
2858 2000-12-13 Werner LEMBERG <wl@gnu.org>
2860 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
2861 * src/preproc/eqn/neqn.man: Small fixes and additions.
2863 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
2865 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
2868 * src/preproc/eqn/neqn.man: New file.
2870 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
2873 * tmac/e.tmac: Add `T&' macro.
2874 Fix `indent cannot be negative' warning.
2875 * tmac/s.tmac: Fix `indent cannot be negative' warning.
2877 2000-12-07 Werner LEMBERG <wl@gnu.org>
2879 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
2881 2000-12-06 Werner LEMBERG <wl@gnu.org>
2883 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
2886 * MORE.STUFF: Added info about deroff for djgpp.
2888 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
2889 documentation of -rcR switch.
2891 2000-12-03 Werner LEMBERG <wl@gnu.org>
2893 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
2894 if -rcR=1 (which is now the default in nroff mode), a single, very
2895 long page is created instead of multiple pages: All `ne' and `wh'
2896 requests are put into conditionals; a new macro `an-end' is added to
2897 be called with `em'.
2899 Some other minor cleanups.
2901 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
2903 2000-12-02 Werner LEMBERG <wl@gnu.org>
2905 Fixing a bug which prevented hyphenation in words followed
2906 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
2908 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
2909 Adding possibly_break_line().
2910 * src/roff/troff/env.h (environment): Make possibly_break_line()
2913 Make `\~' usable in .tr request.
2915 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
2916 (token): Add stretchable_space().
2917 * src/roff/troff/input.cc (token::next, token::delimiter,
2918 token::description, process_input_stack, do_translate,
2919 add_to_node_list, token::process): Use it.
2920 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
2921 for adjusting the space.
2922 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
2923 for stretchable space.
2924 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
2925 (make_node): Add code for stretchable space.
2926 * src/roff/troff/env.cc (environment::add_char): Use it.
2927 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
2928 (get_copy, token::next, transparent_translate, asciify): Use it.
2930 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
2931 doc/groff.texinfo: Updated.
2932 * man/groff.man: Small reorderings.
2934 2000-11-23 Werner LEMBERG <wl@gnu.org>
2937 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
2939 * src/roff/troff/input.cc (main): Add `config_macro_path' and
2940 `safer_macro_path' to -M option.
2941 * src/roff/troff/troff.man: Fixes.
2943 2000-11-22 Werner LEMBERG <wl@gnu.org>
2945 Use safer path (except for config files) if -U isn't specified. Add
2946 a special macro path (without home and current directory) for config
2947 files. Add home directory to unsafe path for consistency. Don't
2948 include the home directory in the font path.
2950 * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
2952 * src/include/macropath.h: Add `config_macrp_path'.
2953 * src/libs/libgroff/fontfile.cc: Fix font path.
2954 * src/roff/troff/input.cc (process_startup_file): Use
2955 `config_macro_path'.
2956 (main): Select unsafe path if -U is given.
2958 * src/preproc/eqn/main.cc (main): Fixing search path for
2960 * src/preproc/eqn/eqn.man: Updated.
2962 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
2965 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
2966 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
2967 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
2968 src/devices/grotty/grotty.man: Updated.
2970 * Makefile.in: Fix comments.
2972 2000-11-17 Werner LEMBERG <wl@gnu.org>
2974 * tmac/safer.tmac: Empty file added (again) for compatibility
2976 * tmac/Makefile.sub: Updated.
2978 2000-11-16 Werner LEMBERG <wl@gnu.org>
2980 * src/devices/grodvi/dvi.cc (main),
2981 src/devices/grohtml2/post-html.cc (main),
2982 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
2983 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
2984 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
2985 (main), src/preproc/html2/pre-html.cc (main),
2986 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
2987 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
2988 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
2989 (main), src/utils/hpftodit/hpftodit.cc (main),
2990 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
2991 (main), src/utils/lookbib/lookbib.cc (main),
2992 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
2993 (main): Use stdout for -v.
2994 * src/roff/groff/groff.cc (run_commands),
2995 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
2996 to make direct printing to stdout possible.
2997 * src/roff/groff/pipeline.h: Updated.
2999 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
3000 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
3001 * src/utils/afmtodit/afmtodit.man: Updated.
3003 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
3004 (version): New function.
3006 * src/utils/addftinfo/addftinfo.man: Updated.
3008 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
3009 Fixing copyright dates.
3011 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
3014 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
3017 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
3019 2000-11-15 Werner LEMBERG <wl@gnu.org>
3021 In all programs, make -v return immediately with exit status 0 to
3022 be compliant with the GNU standard.
3024 * src/devices/grodvi/dvi.cc (main),
3025 src/devices/grohtml2/post-html.cc (main),
3026 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
3027 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
3028 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
3029 (main), src/preproc/html2/pre-html.cc (main),
3030 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
3031 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
3032 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
3033 (main): Implement it.
3036 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
3037 and postprocessors to the -v option.
3039 * src/roff/grog/grog.pl: Implement -v.
3040 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
3041 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
3043 * src/roff/nroff/nroff.sh: Implement -v.
3044 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
3045 * src/roff/nroff/nroff.man: Updated.
3047 * src/preproc/eqn/main.cc (main): Fix comment typo.
3049 * MORE.STUFF: Added info about djgpp port of grap.
3051 2000-11-14 Werner LEMBERG <wl@gnu.org>
3053 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
3054 mode (or rather, implemented non-compatibility mode).
3055 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
3057 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
3058 replacing it -- we don't find gxditview otherwise.
3059 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
3061 * src/preproc/pic/depend: Removed. Unnecessary.
3063 Implemented dummy keyword `solid' in pic for compatibility with
3066 * lex.cc (lookup_keyword): Added `solid'.
3067 * pic.y: Added SOLID with dummy rule.
3068 * pic.cc, pic_tab.h: Regenerated.
3069 * doc/pic.ms: Updated.
3071 2000-11-13 Werner LEMBERG <wl@gnu.org>
3073 For security reasons, don't use the current directory but the home
3074 directory while searching and scanning troffrc and troffrc-end.
3075 Similarly, replace the current directory with the home directory
3078 * Makefile.in (fontpath, tmacpath): Remove current directory.
3080 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
3081 two parameters `add_home' and `add_current'.
3082 (search_path::~search_path, search_path::command_line_dir,
3083 search_path::open_file): Remove tests for `dirs' being zero.
3084 * src/include/searchpath.h: Adjust.
3085 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
3087 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
3089 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
3090 * src/roff/troff/input.cc: Use `mac_path', initialized with
3092 (process_startup_file): Set `mac_path' to `safer_macro_path'.
3093 * src/roff/troff/env.cc: Use `mac_path'.
3095 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
3097 * NEWS, man/roff.man, src/roff/troff/troff.man,
3098 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
3101 2000-11-12 Werner LEMBERG <wl@gnu.org>
3103 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
3105 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
3106 * configure.in: Fix typo in comment.
3107 * configure: Regenerated.
3109 * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
3112 2000-11-08 Werner LEMBERG <wl@gnu.org>
3114 Add system tmac directory (/usr/local/lib/groff/site-tmac).
3116 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
3117 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
3120 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
3121 * tmac/Makefile.sub (install_data): Create
3122 $(systemtmacdir) and $(localtmacdir).
3123 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
3124 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
3125 NEWS, doc/groff.texinfo: Updated and minor fixes.
3127 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
3128 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
3129 $(systemtmacdir) since the wrapper files are platform-dependent.
3131 2000-11-01 Werner LEMBERG <wl@gnu.org>
3133 * doc/groff.texinfo: Fix typo.
3135 2000-10-26 Werner LEMBERG <wl@gnu.org>
3137 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
3138 tmac.doc.old -> doc-old.tmac
3139 tmac.an.old -> an-old.tmac
3141 * tmac/tmac.*: Moved to ...
3142 * tmac/*.tmac: this.
3143 * tmac/man.local: Fix comment.
3144 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
3145 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
3146 Added some `FILES' sections. More use of @...@ directives. Other
3148 * arch/djgpp/README, font/devutf8/NOTES: Updated.
3149 * doc/homepage.ms, doc/groff.texinfo: Updated.
3150 * man/groff.man, man/roff.man: Updated.
3151 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
3152 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
3153 src/devices/grotty/grotty.man: Updated.
3154 * src/preproc/pic/pic.man: Updated.
3155 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
3156 instead of -mdoc.old.
3157 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
3158 * src/roff/nroff/nroff.man: Updated.
3161 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
3163 * tmac/mm.diff: Removed -- it has no use now since the mm package
3166 * tmac/*: Removed trailing spaces.
3168 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
3169 the tmac subdirectory also).
3171 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
3172 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
3173 stuff since it is no longer needed.
3175 * README, PROBLEMS: Updated.
3177 2000-10-25 Werner LEMBERG <wl@gnu.org>
3179 Invert current behaviour: Search first FOOBAR.tmac, then
3182 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
3183 (open_mac_file, macro_source): Implement it.
3184 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
3185 doc/groff.texinfo, NEWS: Document it.
3187 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
3188 Small documentation improvements.
3190 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
3193 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
3195 2000-10-24 Werner LEMBERG <wl@gnu.org>
3197 Add local tmac directory (groff/site-tmac).
3199 * Makefile.in: Add $(localtmacdir).
3200 (uninstall_dirs): Add $(localtmacdir).
3201 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
3202 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
3203 in $(localtmacdir). Create $(localtmacdir).
3204 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
3205 Updated and minor fixes.
3207 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
3209 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
3211 2000-10-23 Werner LEMBERG <wl@gnu.org>
3213 Move hyphen.us to tmac directory.
3215 * src/roff/troff/hyphen.us: Removed.
3216 * src/tmac/hyphen.us: Added.
3217 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
3219 Change installation structure for data files from .../groff/... to
3220 .../groff/<version><revision>/... to be conform with other GNU
3223 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
3224 doc/Makefile: Implement it.
3225 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
3226 * configure: Updated.
3227 * arch/djgpp/README, font/devutf8/NOTES: Use it.
3228 * NEWS: Document it.
3229 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
3230 @MACRODIR@ instead of hard-coded directories.
3232 2000-10-22 Werner LEMBERG <wl@gnu.org>
3234 Implement $GROFF_BIN_PATH environment variable (which defaults to
3235 $bindir) used for child programs of groff and similar wrappers.
3237 * gendefs.sh: Improve documentation.
3238 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
3239 src/preproc/eqn/Makefile.sub (neqn),
3240 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
3241 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
3243 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
3244 $GROFF_PATH__ (the latter for communication with troff).
3245 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
3247 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
3248 doc/groff.texinfo: Document it.
3250 * doc/groff.texinfo: Improve documentation of troff's -a option.
3252 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
3254 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
3255 non-intrusive eol marker.
3256 (troff_output_file::determine_line_limits): New function.
3257 (troff_output_file::draw): Use it.
3258 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
3259 output_pending_lines() instead of output_line().
3260 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
3261 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
3262 createImage): Small fixes.
3264 2000-10-14 Werner LEMBERG <wl@gnu.org>
3266 Replace tmac.safer with a real secure solution.
3268 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
3269 system_request, pipe_output): Disable requests if in safer mode.
3270 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
3271 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
3272 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
3273 doc/groff.texinfo, src/roff/groff/groff.man,
3274 src/roff/troff/troff.man, arch/djgpp/README: Updated.
3276 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
3277 (resource_manager::output_prolog): Replace setenv() with putenv().
3279 2000-10-09 Werner LEMBERG <wl@gnu.org>
3281 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
3282 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
3283 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
3284 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
3285 compilation errors with some compilers. It seems that this code
3286 is no longer necessary -- if yes, it is easy to add some #ifdef's
3287 for that particular old-fashioned compiler.
3289 * MORE.STUFF: Added info about Meta-tbl.
3291 * doc/groff.texinfo: Added more info about `.if "..."..."'.
3293 2000-10-07 Werner LEMBERG <wl@gnu.org>
3295 Adding a new escape sequence \B'...': If the string between
3296 the delimiters is a valid numeric expression, return the character
3297 `1', and `0' otherwise. This is an analogon to \A.
3299 * src/roff/troff/input.cc (do_expr_test): Implement it.
3300 (token::next): Use it.
3301 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
3303 * tmac/tmac.trace: Made independent from escape character.
3305 2000-10-06 Werner LEMBERG <wl@gnu.org>
3307 Adding a new request .dei: define indirect. The first and second
3308 parameter of .dei are taken from string registers instead directly;
3309 this very special request is needed to make tmac.trace independent
3310 from the escape character (which might even be disabled).
3312 * src/roff/troff/input.cc (do_define_macro): Implement it.
3313 (define_macro_indirect): New function.
3314 (init_input_requests): Use it.
3316 Adding two requests .ecs and .ecr: Save and restore the escape
3317 character. These two requests are needed to make tmac.trace
3318 independent from the escape character (which might even be
3321 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
3323 (init_input_requests): Use it.
3325 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
3327 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
3329 Adding a new option -P and new environment variable GROPS_PROLOGUE
3330 to grops, selecting a different prologue file (minor modifications
3333 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
3334 src/devices/grops/ps.cc (main): Implement it.
3335 * src/devices/grops/grops.man, NEWS: Document it.
3337 2000-09-22 Werner LEMBERG <wl@gnu.org>
3339 * INSTALL: Add info about selecting paper format.
3341 2000-09-21 Werner LEMBERG <wl@gnu.org>
3343 * src/roff/troff/input.cc (main): Fixing compiler warning.
3344 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
3345 strings.h from the former to the latter.
3346 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
3347 stuff from the former to the latter.
3349 2000-09-11 Werner LEMBERG <wl@gnu.org>
3351 Implementing two new requests .tm1 and .tmc: The former is similar
3352 to .tm but can output leading spaces; its syntax is similar to
3353 defining a string, i.e., a `"' can be used to mark the beginning of
3354 the string to be written to stderr: `.tm1 " test'. The latter is
3355 similar to .tm1 but doesn't write out a final newline character.
3357 * src/roff/troff/input.cc (terminal1, terminal_continue,
3358 do_terminal): New functions.
3359 (init_input_requests): Use them.
3360 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
3362 2000-09-09 Werner LEMBERG <wl@gnu.org>
3364 * tmac/groff_mdoc.samples.man: Small fixes.
3366 2000-09-08 Werner LEMBERG <wl@gnu.org>
3368 * tmac/groff_mdoc.man: Fixing typo.
3370 2000-09-02 Werner LEMBERG <wl@gnu.org>
3372 Implementing a .nop request which does nothing.
3374 * src/roff/troff/input.cc (nop_request): New function.
3375 (init_input_requests): Use it.
3376 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
3378 2000-09-01 Werner LEMBERG <wl@gnu.org>
3380 * doc/groff.texinfo: Added some comments.
3382 2000-08-30 Werner LEMBERG <wl@gnu.org>
3384 * src/roff/troff/TODO: Updated.
3386 2000-08-25 Werner LEMBERG <wl@gnu.org>
3388 * doc/groff.texinfo: Fix comment how to compile the DVI file.
3390 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
3392 * font/devps/generate/Makefile (SHELL): Define explicitly to
3393 "/bin/sh", for non-Unix platforms.
3394 (extraclean): Use a more portable "" quoting instead of a
3395 backslash (which doesn't work on DOS/Windows).
3397 * font/devlj4/generate/Makefile (extraclean): Ditto.
3399 * font/devdvi/generate/Makefile (extraclean): Ditto.
3401 2000-08-25 Werner LEMBERG <wl@gnu.org>
3403 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
3404 src/roff/troff/troff.man: Document Eli's latest changes.
3406 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
3408 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
3409 macro file names of the form NAME.tmac as well as tmac.NAME.
3411 2000-08-25 Werner LEMBERG <wl@gnu.org>
3413 * src/include/posix.h: Remove definition of FILENAME_MAX.
3415 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
3416 `sys_fatal' and `stop' function().
3418 * test-groff: Updated.
3420 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
3422 Added the new troff command .output <arg> to suppress output (while
3423 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
3424 registers (for passing the output dimensions to the output device).
3426 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
3428 * src/roff/troff/node.h, src/roff/troff/node.cc
3429 (troff_output_file::really_print_line,
3430 ascii_output_file::really_print_line,
3431 supress_output_file::really_print_line): Use `width' parameter.
3432 (troff_output_file::really_on, troff_output_file::really_off,
3433 output_file::on, output_file::off, real_output_file::on,
3434 real_output_file::off, real_output_file::really_on,
3435 real_output_file::really_off): New functions.
3436 (real_output_file:public output_file): New variable `output_on'.
3437 (real_output_file::begin_page, real_output_file::copy_file,
3438 real_output_file::transparent_char, real_output_file::print_line):
3440 (real_output_file::print_line): Use check_output_limits.
3441 * src/roff/troff/reg.h, src/roff/troff/request.h,
3442 src/roff/troff/input.cc (assign_registers): New function to remove
3444 (do_ps_file): Use it.
3445 (check_output_limits, reset_output_registers, output_request,
3446 init_output_requests): New functions.
3447 (init_input_requests): Updated.
3449 Added new grohtml2 device and html2 preprocessor (coding
3450 not yet finished) which will eventually replace grohtml.
3452 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
3454 * src/include/htmlindicate.h, src/include/htmlindicate
3455 (html_begin_suppress, html_end_suppress): New functions.
3456 * src/preproc/tbl/main.cc: Use it.
3457 * src/roff/groff/groff.cc: Add support for html2 device (which will
3458 automatically invoke the html2 preprocessor).
3459 * src/roff/troff/input.cc (is_html2): New variable.
3460 * src/roff/troff/troff.h, src/roff/troff/env.h,
3461 src/roff/troff/env.cc (environment::add_html_tag): New function
3463 (environment::do_break): Use it.
3464 * font/devhtml2/*: New files.
3465 * src/devices/grohtml2: New device.
3466 * src/preproc/html2: New preprocessor.
3467 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
3469 2000-08-23 Werner LEMBERG <wl@gnu.org>
3471 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
3473 2000-08-22 Werner LEMBERG <wl@gnu.org>
3475 * src/include/lib.h: Provide a fix for IRIX to not include
3478 2000-08-18 Werner LEMBERG <wl@gnu.org>
3480 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
3481 since some non-GNU sed programs can't handle null regexps.
3482 * configure, src/preproc/eqn/Makefile.sub,
3483 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
3485 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
3486 bug (string.h and strings.h are both needed according to latest
3489 * MORE.STUFF: Added info about unroff and troffcvt.
3491 2000-08-08 Werner LEMBERG <wl@gnu.org>
3493 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
3496 * tmac/tmac.man.old: Remove unused number register.
3498 * tmac.doc: Minor documentation fix.
3500 2000-08-07 Paul Eggert <eggert@twinsun.com>
3502 * src/roff/groff/pipeline.c (is_system_shell):
3503 Fix typo: "monocased_shell" no longer exists.
3505 2000-08-07 Paul Eggert <eggert@twinsun.com>
3507 Remove FILENAME_MAX limits.
3509 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
3510 that the argument length is less than FILENAME_MAX.
3511 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
3512 Use struct hack to allocate and free file name.
3513 (struct xtmpfile_list): fname is now part of the structure,
3514 not a pointer to another string.
3516 2000-08-07 Tom Schmidt <tschmidt@micron.com>
3518 * src/include/posix.h: Add a default value for FILENAME_MAX.
3520 2000-08-06 Paul Eggert <eggert@twinsun.com>
3522 Add support for new BSD-style man pages (with ".Dd" instead of
3523 ".TH"), so that "groff -man" understands both styles, even
3524 when running "groff -man" on a host whose system man page
3525 macros don't support ".Dd".
3527 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
3528 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
3529 in case the system man macros don't define Dd or TH.
3531 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
3532 * tmac/tmac.an: New one-line file.
3533 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
3535 2000-08-06 Werner LEMBERG <wl@gnu.org>
3537 * src/roff/troff/troff.man: Fixing typos.
3539 Version 1.16.1 released
3540 =======================
3542 2000-07-31 Werner LEMBERG <wl@gnu.org>
3544 Preparing release 1.16.1.
3546 * REVISION: Revision number set to 1.
3547 * MORE.STUFF: Added info about port to DOS.
3548 * NEWS, win32-diffs: Updated.
3550 * src/include/nonposix.h: Remove first line -- this file is used
3553 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
3556 2000-07-30 Werner LEMBERG <wl@gnu.org>
3558 * doc/texinfo.tex: Update to latest version.
3560 2000-06-28 Paul Eggert <eggert@twinsun.com>
3562 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
3563 commands that fail. Don't assume that "export a=b" is valid shell
3564 syntax. This is needed for Solaris 2.5.1.
3566 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
3567 comment about missing Solaris headers.
3569 * PROBLEMS: Add section about problems with Sun Make and VPATH.
3571 2000-06-25 Werner LEMBERG <wl@gnu.org>
3573 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
3576 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
3578 * win32-diffs: Updated.
3579 * README.WIN32: Added CRs to make all Windows editors happy.
3581 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
3582 src/roff/groff/pipeline.c).
3584 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
3586 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
3587 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
3589 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
3591 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
3592 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
3594 (main): Support non-Posix systems with several different styles of
3595 slash characters in file names.
3597 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
3598 (main) [SET_BINARY]: Switch stdin into binary mode.
3600 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
3601 (main): Support file names with several possible slash-type
3602 characters, as given by DIR_SEPS[] in nonposix.h.
3603 (main) [__MSDOS__]: If renaming the temporary index file fails
3604 because it has more than one dot in its trunk, replace the dot
3605 with an underscore and try again.
3606 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
3608 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
3610 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
3611 (File::File): Open the input file in binary mode. Strip CR
3612 characters from each CR-LF pair.
3613 (xbasename): Support file names with several possible slash-type
3614 characters, as given by DIR_SEPS[] in nonposix.h.
3616 * src/include/Makefile.sub (HDRS): Add nonposix.h.
3618 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
3619 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
3620 [!_POSIX_VERSION]: Define for traditional Unix systems.
3621 (real_output_file::real_output_file): Remove the MSVC-specific
3622 call to popen, use instead POPEN_WT, appropriately defined on
3623 nonposix.h. #include nonposix.h.
3624 (real_output_file::~real_output_file): Remove the MSVC-specific
3625 call to pclose, a suitable macro is now defined on nonposix.h.
3626 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
3627 and WEXITSTATUS instead of assuming traditional Unix
3628 interpretation of the status returned by pclose.
3630 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
3631 call to popen, use POPEN_RT instead (appropriately defined on
3632 nonposix.h). #include nonposix.h.
3633 (ps_bbox_request): Open the PostScript file in binary mode.
3634 Close the file after processing it.
3635 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
3638 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
3639 A version of run_pipeline that doesn't use `fork'.
3640 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
3641 (system_shell_name, system_shell_dash_c)
3642 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
3643 the ugliness of testing DOS/Windows file names for equality, and
3644 support both stock shells and ports of Unix shells.
3646 * src/roff/groff/groff.cc: #include nonposix.h.
3647 (BSHELL): Definition moved to nonposix.h.
3648 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
3649 instead of a literal "-c".
3650 (xbasename): Support file names with several possible slash-type
3651 characters, as given by DIR_SEPS[] in nonposix.h.
3652 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
3655 * src/preproc/soelim/soelim.cc: #include nonposix.h.
3656 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
3658 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
3661 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
3663 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
3666 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
3668 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
3669 P_tmpdir is defined, use it instead of the literal "/tmp".
3670 (remove_tmp_files, add_tmp_file): New functions.
3671 (xtmpfile): Record temporary files and register an atexit function
3672 to delete them explicitly, instead of relying on the OS to do
3673 that, which doesn't work on non-Unix systems.
3675 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
3676 (search_path::search_path): Use PATH_SEP instead of a literal
3678 (search_path::command_line_dir): Ditto.
3679 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
3680 to support non-Posix systems.
3682 * src/libs/libbib/search.cc: #include nonposix.h.
3683 (search_list::add_file): Open the file in binary mode.
3685 * src/libs/libbib/linear.cc: #include nonposix.h.
3686 (file_buffer::load): Remove \r characters preceding \n from the
3689 * src/libs/libbib/index.cc: #include nonposix.h.
3690 (make_index_search_item): Open index_filename in O_BINARY mode.
3691 (index_search_item_iterator::get_tag): Ditto. Remove \r
3692 characters before \n characters.
3693 (index_search_item::check_files): Open files in binary mode.
3694 (index_search_item::munge_filename): Support DOS-style file names
3695 with backslashes and drive letters, use IS_ABSOLUTE.
3697 * src/devices/grops/ps.cc: #include nonposix.h.
3698 (main) [SET_BINARY]: Switch stdout to binary mode.
3700 * src/devices/grolj4/lj4.cc: #include nonposix.h.
3701 (main) [SET_BINARY]: Switch stdout to binary mode.
3703 * src/devices/grolbp/lbp.cc: #include nonposix.h
3704 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
3706 * src/devices/grodvi/dvi.cc: #include nonposix.h.
3707 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
3709 (main) [SET_BINARY]: Switch stdout to binary mode.
3710 [_MSC_VER]: Remove an explicit call to _setmode.
3712 * src/include/nonposix.h: New file.
3714 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
3715 operation when building with DJGPP.
3716 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
3717 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
3720 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
3722 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
3723 etc. can include a semi-colon on DOS/Windows.
3724 (depend.temp): Use depend1.temp instead of depend.temp1, to
3725 prevent files from overerwiting each other on 8+3 filesystems.
3727 * gendef.sh (t): Change definition to work with DOS/Windows.
3729 doc/groff.texinfo: Apart of some typo corrections, I also changed
3730 some index entris, to make them more non-ambiguous, and also put
3731 @ignore around some parts that are not yet written, to allow the
3732 Info output be readable.
3734 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
3736 Replaced specific checks for function declarations with a generic
3737 routine taken from GNU bfd.
3739 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
3740 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
3741 * configure.in: Use it.
3742 * src/devices/grolbp/lbp.cc, src/include/lib.h,
3743 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
3744 src/roff/groff/groff.cc: Use it.
3745 * Makefile.in, configure: Updated.
3747 2000-06-07 Paco Andres Verdu <pandres@dragonet.es>
3749 * src/devides/grolbp/lbp.h: Removed unused variables.
3751 2000-05-31 Keith Thompson <kst@sdsc.edu>
3753 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
3756 2000-05-31 Werner LEMBERG <wl@gnu.org>
3758 * aclocal.m4 (GROFF_SRAND): New function to test the return value
3759 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
3760 * configure.in: Use it.
3761 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
3762 * configure, Makefile.in: Updated.
3764 * configure.in: Add test for strncasecmp().
3765 * src/include/lib.h: Use it.
3767 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
3769 * src/preproc/grn/Makefile.sub: Add MLIB.
3771 2000-05-29 Nix <nix@esperi.demon.co.uk>
3773 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
3775 2000-05-29 Werner LEMBERG <wl@gnu.org>
3777 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
3779 * PROBLEMS: Small update.
3781 * src/devices/grolbp/lbp.cc: Various small fixes.
3783 2000-05-28 Keith Thompson <kst@sdsc.edu>
3785 * src/roff/nroff/nroff.sh: Fix main loop syntax.
3787 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
3789 2000-05-25 Werner LEMBERG <wl@gnu.org>
3791 * man/roff.man: Removed unused macro.
3793 2000-05-24 Werner LEMBERG <wl@gnu.org>
3795 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
3796 This is needed e.g. if you do
3797 `make distclean; ./configure; make dist'.
3799 Version 1.16 released
3800 =====================
3802 2000-05-23 Werner LEMBERG <wl@gnu.org>
3804 Adding font CWI (constant width italic) to devdvi.
3806 * font/devdvi/CWI: New file.
3807 * font/devdvi/generate/Makefile: Add generating rule.
3808 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
3809 tmac/tmac.dvi: Use it.
3810 * NEWS: Announce it.
3812 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
3813 * font/devlj4/generate/Makefile: Cosmetic changes only.
3815 * man/groff.man: Removed most of the redundant description of
3816 special characters (which is in groff_char.man). Added font
3817 translation CB->CR for devdvi. Other minor fixes.
3819 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
3820 (registered) symbols.
3822 2000-05-22 Werner LEMBERG <wl@gnu.org>
3824 * doc/Makefile: Added rule for creating info files.
3826 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
3828 * font/devdvi/generate/Makefile: Fixed dependencies.
3830 * font/devps/*: Regenerated. Heavy changes for Bookman and
3831 NewCentury Schoolbook!
3832 * font/devps/generate/afmname: Will now run with GNU awk.
3833 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
3834 * font/devps/generate/Makefile: Cosmetic changes only.
3836 2000-05-21 Werner LEMBERG <wl@gnu.org>
3838 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
3839 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
3840 `.SS' now produces a heading with a smaller size than `.SH'.
3841 Completely formatted.
3842 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
3844 * man/groff.man: Improved table appearance. Use of `eo' request
3845 to reduce number of doubled backslashes in macro definitions.
3846 Replacing `\e' with `\(rs'. Other minor fixes.
3848 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
3849 to have correct line number.
3851 * INSTALL: Small improvement.
3853 2000-05-20 Bernd Warken <bwarken@mayn.de>
3855 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
3858 2000-05-19 Bernd Warken <bwarken@mayn.de>
3860 * man/groff.man: Complete update (with a lot of corrections by WL).
3862 2000-05-18 Werner LEMBERG <wl@gnu.org>
3864 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
3866 * font/*/*: Implement it.
3867 * man/groff_char.man, NEWS: Document it.
3869 * src/include/unix.h: Removed. It isn't used.
3871 * doc/groff.texinfo: Slight improvements.
3873 2000-05-17 Werner LEMBERG <wl@gnu.org>
3875 * README, win32-diffs: Small fixes and improvements.
3877 2000-05-16 Werner LEMBERG <wl@gnu.org>
3879 * FDL: New file (the Free Documentation License version 1.1).
3881 * doc/groff.texinfo: Added many start-up values for gtroff.
3882 Some structural improvements of the source code.
3884 2000-05-15 Werner LEMBERG <wl@gnu.org>
3886 * src/roff/troff/input.cc: Added small comment about troffrc-end.
3887 * src/roff/troff/troff.man: Added info about troffrc-end.
3889 2000-05-14 Werner LEMBERG <wl@gnu.org>
3891 * Makefile.in (EXTRADIRS): Fix typos.
3892 (dist): Handle deletion of old .tar.gz file correctly.
3893 (DISTDIRS): Include all tty output devices.
3895 * doc/groff.texinfo: Adding more cross references; countless other
3898 2000-05-13 Werner LEMBERG <wl@gnu.org>
3900 * MORE.STUFF: Added Robert Marks's utilities.
3902 2000-05-12 Werner LEMBERG <wl@gnu.org>
3904 Added win32 port contributed by Blake McBride
3905 <blake@florida-software.com>.
3907 * README.WIN32, win32-diffs: New files.
3910 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
3911 (tmove, tmove2): Added parentheses to avoid compiler warnings.
3912 (change): Removed unused variables.
3914 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
3915 (savebounds): Changed return value from `int' to `void'.
3916 * src/preproc/grn/hdb.cc: Ditto.
3918 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
3919 final backslash in comment to avoid compiler warning.
3921 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
3923 * doc/groff.texinfo: More fixes.
3925 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
3927 * tmac/tmac.doc: Documentation fix.
3929 2000-05-11 Werner LEMBERG <wl@gnu.org>
3931 * doc/groff.texinfo: Reading the source code shows up a lot of
3932 omissions and incorrect data... More conversion to @Deffn macros.
3934 2000-05-10 Werner LEMBERG <wl@gnu.org>
3936 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
3939 * src/roff/troff/request.h: Removing unused `no_break_flag'.
3941 2000-05-09 Werner LEMBERG <wl@gnu.org>
3943 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
3946 * doc/groff.texinfo: Extended history section. More conversion to
3947 @Deffn macros. More .tr documentation.
3949 2000-05-07 Werner LEMBERG <wl@gnu.org>
3951 * doc/groff.texinfo: Completed tab section. Added info about
3954 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
3956 * PROBLEMS: Describe configure script fix for OS/390 Unix.
3958 2000-05-05 Werner LEMBERG <wl@gnu.org>
3960 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
3962 * NEWS: Document it.
3964 * man/troff.man: Minor optical improvements.
3966 2000-05-03 Werner LEMBERG <wl@gnu.org>
3968 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
3970 * font/*/*: Implement it.
3971 * man/groff_char.man, NEWS: Document it.
3973 2000-05-02 Werner LEMBERG <wl@gnu.org>
3975 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
3977 * NEWS: Document the three new man pages.
3979 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
3980 * configure: Updated.
3982 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
3984 2000-05-01 Werner LEMBERG <wl@gnu.org>
3986 Added grap support to grog.
3988 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
3989 * src/roff/grog/grog.man: Document it.
3991 * doc/groff.texinfo, NEWS: Add info about grap support.
3993 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
3994 (with slight fixes by me).
3996 * tmac/groff_tmac.man: New file documenting tmac mechanism.
3997 * tmac/Makefile.sub: Add groff_tmac.man.
3998 * man/roff.man: New file giving overview of roff system.
3999 * man/troff.man: A short reference of troff.
4000 * man/Makefile.sub: Add roff.man and troff.man.
4002 2000-04-30 Werner LEMBERG <wl@gnu.org>
4004 Added grap support to groff.
4006 * src/roff/groff/groff.cc: Implement it.
4007 * src/roff/groff/groff.man: Document it.
4009 * src/devices/grotty/grotty.man: Add cp1047 device.
4010 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
4012 * src/roff/groff/groff.man: Ditto.
4013 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
4014 * doc/groff.texinfo: Ditto.
4016 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
4019 2000-04-29 Werner LEMBERG <wl@gnu.org>
4021 * man/groff_char.man: Add `pc' glyph.
4022 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
4023 * tmac/tmac.tty: Add `pc' glyph.
4024 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
4025 we use cp1047 output device.
4027 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
4028 there are still hardcoded latin1->unicode values in utf8's font
4030 * configure: Updated.
4031 * NEWS: Minor clarification. Updated.
4033 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
4036 2000-04-28 Werner LEMBERG <wl@gnu.org>
4038 Adding EBCDIC code page 1047.
4040 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
4041 font/devcp1047/DESC.proto: New files.
4043 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
4044 either ascii/latin1 or cp1047.
4045 * Makefile.in: Use it.
4046 * configure: Updated.
4048 Replacing and/or adding `md' (mathdot) glyph with `pc'
4049 (periodcentered) in all text fonts.
4051 * font/*/*: Change it.
4053 2000-04-27 Werner LEMBERG <wl@gnu.org>
4055 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
4057 * configure.in: Add check for strings.h.
4058 * src/include/driver.h: Use HAVE_STRINGS_H.
4059 * src/devices/grolbp/lpb.cc: Remove string.h.
4061 * src/include/groff-getopt.h: New file. It will be used instead of
4062 getopt.h (to be included in lib.h) to avoid endless problems with
4063 picky C++ compilers.
4064 * src/include/lib.h: Use groff-getopt.h.
4065 * src/include/Makefile.sub: Updated.
4067 * configure: Updated.
4068 * Makefile.in: Updated.
4070 * NEWS: Mention EBCDIC support.
4072 2000-04-26 Werner LEMBERG <wl@gnu.org>
4074 * TODO: Some additions.
4076 2000-04-25 Werner LEMBERG <wl@gnu.org>
4078 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
4081 2000-04-23 Werner LEMBERG <wl@gnu.org>
4083 * src/roff/troff/troff.man: Minor fixes.
4085 2000-04-22 Werner LEMBERG <wl@gnu.org>
4087 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
4088 `.T' string register and the incompatible definition of the `.T'
4089 number register (compared to Unix troff).
4091 * man/groff_char.man: Add some missing characters.
4092 * font/devutf8/NOTES: Update.
4094 2000-04-21 Werner LEMBERG <wl@gnu.org>
4096 * src/include/htmlindicate.h, src/include/lib.h,
4097 src/include/posix.h: Fix copyright.
4099 * src/include/Makefile.sub: Update.
4101 2000-04-20 Werner LEMBERG <wl@gnu.org>
4103 * src/roff/troff/input.cc (input_char_description): Removing
4104 superfluous space char.
4106 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
4108 * doc/groff.texinfo: Document EBCDIC.
4110 2000-04-19 Werner LEMBERG <wl@gnu.org>
4112 Introducing `shc' as the glyph name for the soft hyphen character.
4114 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
4115 font/devlatin1/R.proto: Use it.
4119 2000-04-18 Werner LEMBERG <wl@gnu.org>
4121 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
4122 dependency on ASCII order.
4124 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
4126 * src/libs/libgroff/illegal.c: Added EBCDIC table.
4127 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
4129 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
4130 to increase portability.
4132 2000-04-15 Werner LEMBERG <wl@gnu.org>
4134 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
4135 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
4136 the generic `\n' if under OS/390 Unix.
4138 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
4140 * configure: Regenerated.
4142 2000-04-14 Werner LEMBERG <wl@gnu.org>
4144 * doc/groff.texinfo: More conversions to @Deffn.
4146 2000-04-12 Werner LEMBERG <wl@gnu.org>
4148 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
4151 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
4153 2000-04-10 Werner LEMBERG <wl@gnu.org>
4155 * doc/groff.texinfo: More conversions to @Deffn.
4157 2000-04-08 Werner LEMBERG <wl@gnu.org>
4159 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
4160 Updated to latest version (glibc 2.1.3).
4162 2000-04-07 Werner LEMBERG <wl@gnu.org>
4164 * doc/Makefile (clean): Include more index files.
4165 Add rule texinfo->dvi.
4167 2000-04-05 Werner LEMBERG <wl@gnu.org>
4169 * doc/groff.texinfo: Added new index `op' for operators. More
4170 info on end of sentence characters. More use of @Deffn.
4172 2000-03-30 Werner LEMBERG <wl@gnu.org>
4174 * */*.man: Adding a note that a whitespace can be inserted between
4175 a command line option and its parameter -- we are using GNU getopt.
4177 * src/roff/groff/groff.man: Add example of `-m mandoc'.
4179 2000-03-28 Werner LEMBERG <wl@gnu.org>
4181 Correct anachronism of calling the man macro file with `-man'
4182 instead of `-m man' etc.
4184 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
4185 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
4186 load tmac.<package>.
4188 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
4192 * doc/groff.texinfo: Updated.
4194 * tmac/groff_man.man: Copyright added.
4196 2000-03-27 Werner LEMBERG <wl@gnu.org>
4198 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
4199 typeset the request resp. escape name with a tt font -- due to a
4200 bug in texinfo.tex it is necessary to use the `-e' switch with
4203 Improving info about usage of groff units.
4207 2000-03-20 Werner LEMBERG <wl@gnu.org>
4209 * doc/groff.texinfo: Added section about man macro package
4210 (I've basically taken groff_man.man). Introducing new indices `ma'
4211 for macros/strings and `gl' for glyph names. Other minor fixes.
4213 * tmac/groff_man.man: Fixed some typos.
4215 2000-03-19 Werner LEMBERG <wl@gnu.org>
4217 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
4220 * doc/texinfo.tex: New file.
4222 2000-03-18 Werner LEMBERG <wl@gnu.org>
4224 * doc/groff.texinfo: Improved section on number registers. Other
4227 2000-03-16 Werner LEMBERG <wl@gnu.org>
4229 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
4232 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
4233 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
4234 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
4235 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
4237 * src/preproc/grn/grn.man: Better synopsis; added copyright.
4239 * src/roff/grog/grog.man: Updated copyright date.
4241 2000-03-14 Francisco Andres Verdu <pandres@dragonet.es>
4243 * configure.in: Added test for strdup.
4245 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
4248 Replaced dynamic allocation of arrays `[...]' with `new' operator.
4252 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
4254 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
4256 2000-03-11 Werner LEMBERG <wl@gnu.org>
4258 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
4260 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
4261 * src/include/lib.h: Remove some spaces.
4263 2000-03-10 Werner LEMBERG <wl@gnu.org>
4265 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
4266 initializers from arguments (some compilers don't like this).
4268 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
4270 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
4271 used by pic and eqn to tell grohtml where the graphic regions start
4273 * src/libs/libgroff/Makefile.sub: Use it.
4274 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
4275 graphic_start() and graphic_end() from htmlindicate.cc.
4277 2000-03-09 Werner LEMBERG <wl@gnu.org>
4279 * tmac/tmac.safer: Will now work correctly in compatibility mode.
4280 * tmac/groff_man.man: More fixes.
4282 2000-03-08 Werner LEMBERG <wl@gnu.org>
4284 * doc/Makefile: Added texput.log to the `clean' target.
4285 * doc/groff.texinfo: Added info about delimiters for escapes.
4287 2000-03-08 Bernd Warken <bwarken@mayn.de>
4289 * src/preproc/pic/pic.man: Add info on conversion of pic images to
4290 other graphic formats.
4292 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
4294 * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
4295 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
4296 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
4299 2000-03-07 Werner LEMBERG <wl@gnu.org>
4301 * doc/groff.texinfo: Spelling fixes.
4303 2000-03-06 Werner LEMBERG <wl@gnu.org>
4305 * tmac/groff_man.man: Completely revised to cover everything in
4308 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
4309 Other minor fixings.
4310 * src/roff/troff/env.cc (environment_copy): Improve error message and
4312 * src/roff/troff/TODO: Updated.
4314 * doc/Makefile: Bug fixes -- this is still provisional, though...
4316 * tmac/eqnrc: Small fixes.
4318 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
4320 Adding a request `evc' to copy environments.
4322 * src/roff/troff/env.cc (environment::copy, environment_copy):
4324 * src/roff/troff/env.h: Add prototype.
4326 2000-03-05 Francisco Andres Verdu <pandres@dragonet.es>
4328 Adding strsep() -- Solaris 8 doesn't have it.
4330 * configure.in: Test it.
4331 * src/devices/grolbp/lbp.cc: Add code.
4333 2000-03-05 Werner LEMBERG <wl@gnu.org>
4335 * src/roff/troff/div.cc (macro_diversion::output,
4336 top_level_diversion::output): Fixing an incompatibility with
4337 original troff: \x'0' updates the .a register also. Thanks to
4338 <Andries.Brouwer@cwi.nl> for pointing this out.
4339 * doc/groff.texinfo: Document it.
4341 * Makefile.in: Create Makefile.dep if necessary before calling the
4342 submake process to avoid warning about nonexistent file.
4344 * NEWS, PROJECTS: Updated.
4346 2000-03-04 Werner LEMBERG <wl@gnu.org>
4348 * tmac/troffrc: Add tmac.lbp.
4350 2000-03-03 Francisco Andres Verdu <pandres@dragonet.es>
4352 * tmac/tmac.lbp: New file.
4353 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
4356 2000-03-03 Werner LEMBERG <wl@gnu.org>
4358 * Makefile.in: Fixing $(subdir).
4360 * README, NEWS: Small fixes.
4362 * test-groff: Adding path to grolbp.
4364 * configure.in: The (new) file src/xditview/Imakefile.in will be
4365 also configured -- it is now possible to build gxditview in a
4366 directory different from $srcdir.
4368 2000-03-02 Blake McBride <blake@florida-software.com>
4370 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
4372 * MORE.STUFF: Added website of bell labs and info about plot2dev.
4374 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
4376 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
4379 2000-02-29 Werner LEMBERG <wl@gnu.org>
4381 Adding GNU getopt to the groff distribution.
4383 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
4385 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
4386 * aclocal.a4: Remove GROFF_GETOPT function.
4387 * configure.in, Makefile.in, PROBLEMS: Update.
4388 * src/include/lib.h: Replace getopt tests with getopt.h.
4389 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
4391 * doc/groff.texinfo: Further checking/updating. Adding more index
4394 * man/groff_out.man: Fix nroff mode activation (for emacs).
4395 * man/groff_font.man: Add missing ligature.
4397 2000-02-28 Werner LEMBERG <wl@gnu.org>
4399 * doc/groff.texinfo: Further checking/updating. Adding more index
4402 * src/devices/grolbp/grolbp.man: Added a comment line at the
4403 beginning of the file (similar to shell scripts) which indicates
4404 that `tbl' should be used as a preprocessor.
4406 2000-02-27 Blake McBride <blake@florida-software.com>
4408 Adapting groff to MS Visual C++ 6.0 compiler (tested with
4409 Windows NT 4.0). Uses _MSC_VER define where necessary.
4411 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
4412 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
4413 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
4414 src/include/lib.h, src/libs/libgroff/errarg.cc,
4415 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
4416 src/preproc/refer/label.y, src/preproc/refer/label.cc,
4417 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
4418 src/roff/troff/div.cc, src/roff/troff/env.cc,
4419 src/roff/troff/input.cc, src/roff/troff/node.cc,
4420 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
4421 if_to_a() to avoid name clashes.
4422 * src/include/posix.h: Don't use unistd.h.
4423 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
4424 clause for integrating non-Unix xtmpfile() code.
4425 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
4426 structure; use "rt" for popen() in pipe_source(); add getpid()
4428 * src/roff/troff/node.cc: Use special versions of popen() in
4429 real_output_file() and pclose() in ~real_output_file().
4431 2000-02-27 Werner LEMBERG <wl@gnu.org>
4433 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
4434 LBP-8 series laser printers). This code has been contributed by
4435 Francisco Andres Verdu <pandres@dragonet.es>.
4437 * src/devices/grolbp/*: The grolbp output device.
4438 * font/devlpb/*: The font description files.
4439 * Makefile.in: Add grolpb and devlbp subdirectories.
4441 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
4442 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
4445 * doc/groff.texinfo: Further checking/updating. Adding more index
4450 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
4452 * man/groff_font.man: Adding info about obsolete DESC keywords.
4453 * src/devices/grolj4/grolj4.man: Documenting additional DESC
4456 2000-02-26 Werner LEMBERG <wl@gnu.org>
4458 * src/preproc/grn/grn.man: Added info about the gremlin file format
4459 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
4461 2000-02-25 Werner LEMBERG <wl@gnu.org>
4463 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
4464 friends to be non-integer.
4466 * src/preproc/grn/grn.man: Document it.
4468 * doc/groff.texinfo: Further checking/updating. Adding more index
4471 2000-02-24 Werner LEMBERG <wl@gnu.org>
4473 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
4474 line thicknesses to be integer multiples of this value.
4476 * src/preproc/grn/grn.man: Commenting out the -s option -- the
4477 corresponding code doesn't work (yet).
4479 * doc/groff.texinfo: Further checking/updating. Adding more index
4482 2000-02-23 Werner LEMBERG <wl@gnu.org>
4484 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
4485 specify line thickness instead of base units. The new default
4486 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
4487 thick lines respectively.
4489 Removed unused variable `prevval'.
4491 * src/preproc/grn/grn.man: Updated.
4493 2000-02-22 Werner LEMBERG <wl@gnu.org>
4495 * src/preproc/grn/main.cc: Slight formatting.
4497 * src/roff/groff/groff.man: Formatting fix.
4498 * src/preproc/grn/grn.man: Ditto.
4500 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
4502 * doc/groff.texinfo: Further checking/updating.
4504 2000-02-21 Werner LEMBERG <wl@gnu.org>
4506 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
4508 * test-groff: Added grn subdir to path.
4510 * doc/groff.texinfo: Some restructing and other small improvements.
4512 * src/roff/groff/groff.cc (help): Fixed info string.
4514 2000-02-20 Werner LEMBERG <wl@gnu.org>
4516 * doc/meref.me: Fix description of .GS request.
4518 * src/roff/troff/troff.man: Fixing typo.
4520 Adding the `grn' preprocessor for gremlin graphic files.
4522 * src/preproc/grn/*: This is the Berkeley distribution written by
4523 David Slattengren and Barry Roitblat, adapted to groff by Daniel
4524 Senderowicz and Werner Lemberg.
4526 * doc/grnexampl.{me,g}: A sample for grn.
4528 * Makefile.in: Added subdirectory entry for grn.
4530 * src/roff/groff/groff.cc: Added support for grn. It can be now
4531 called with the switch `-g'.
4533 * src/roff/groff/groff.man: Updated.
4535 * src/roff/grog/grog.{man,pl,sh}: Updated.
4539 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
4541 * src/include/lib.h: Added xtmptemplate and made xtmpfile
4542 parametrically polymorphic.
4544 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
4545 and the alterations to xtmpfile.
4546 xtmpfile can be requested to return the filename created
4547 and asked not to unlink the temp file. The default behaviour
4548 if parameters are absent is exactly the same as before.
4550 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
4552 A new request `length' is available which returns the length of a
4553 string in a number register:
4555 * src/roff/troff/input.cc (length_macro): Implement it.
4556 * src/roff/troff/input.cc (init_input_requests): Register it.
4558 2000-02-11 Werner LEMBERG <wl@gnu.org>
4560 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
4561 of the `substring' request.
4563 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
4566 * src/roff/troff/TODO, NEWS: Updated.
4568 2000-02-09 Werner LEMBERG <wl@gnu.org>
4570 * src/roff/groff/groff.man: Added an example.
4572 2000-02-06 Werner LEMBERG <wl@gnu.org>
4574 I've considerably modified the directory structure of the
4575 distribution to get a more vertical layout. For example, the number
4576 of top level directories has been reduced from 42 to 6.
4578 As a consequence, many changes, especially to the makefiles, were
4581 * The makefile variables `top_builddir' and `top_srcdir' have been
4582 introduced. Virtually all relative paths have been replaced with
4583 absolute ones using these two variables.
4585 * Dependencies (in the files `Makefile.dep') are no longer part of
4586 the distribution. Instead, they are created during a `make install'
4587 in the build directory.
4589 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
4590 make `top_srcdir' and `top_builddir' absolute.
4594 * Man pages no depend on the files `VERSION' and `REVISION'.
4596 * The added shell script `mkinstalldirs' will replace `mkdir' in
4599 * VERSION: Version number increased to 1.16.
4601 2000-02-04 Werner LEMBERG <wl@gnu.org>
4603 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
4605 * Makefile.in: Removed $(tmac_m) since it is no longer needed
4606 (after an update of the mm stuff).
4608 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
4610 2000-02-03 Werner LEMBERG <wl@gnu.org>
4612 The .psbb request will now also accept Mac PS images (i.e. using LF
4613 as the EOL character).
4615 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
4616 (with slight modifications).
4617 * troff/input.cc (do_ps_file): Use it.
4619 * test-groff: Add grohtml and grolj4 output devices to PATH.
4621 2000-01-30 Werner LEMBERG <wl@gnu.org>
4623 * NEWS, MORE.STUFF: Updated.
4625 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
4627 Add the `srand' command to pic.
4629 * pic/lex.cc, pic/pic.y: Implement it.
4630 * pic/pic.man: Document it.
4631 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
4633 2000-01-30 Werner LEMBERG <wl@gnu.org>
4635 Add a new request `.psbb'. This does exactly what the external
4636 program psbb did. It scans a PostScript image file for a
4637 %%BoundingBox comment and extracts the bounding box values (in
4638 PostScript units) which are then stored in the four new (read-only)
4639 number registers `llx', `lly', `urx', and `ury'.
4641 This will allow the usage of the .PSPIC macro without worrying
4642 about unsafe behaviour of groff, i.e., it will work without the
4643 `-U' switch of groff.
4645 * troff/input.cc: Implement it.
4646 * tmac/tmac.pspic: Use it.
4647 * troff/troff.man, grops/grops.man, NEWS: Document it.
4648 * psbb/*, Makefile.in: Remove it since it is no longer needed.
4650 This is bloody C code simply adapted from psbb.c! Any improvements
4653 2000-01-29 Werner LEMBERG <wl@gnu.org>
4655 * man/groff_font.man: Minor clarifications.
4659 2000-01-28 Werner LEMBERG <wl@gnu.org>
4661 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
4663 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
4665 * man/groff_font.man: Brought up to date regarding tcommand
4667 * libgroff/font.cc: Handle everything after `--' as a comment
4669 * devps/*: Added comment delimiter inside devps font files.
4671 2000-01-28 Werner LEMBERG <wl@gnu.org>
4673 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
4674 \fC...\fP (which now works as expected).
4676 * troff/troff.man: Fix typo.
4678 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
4680 Completed the pass_filenames implementation in troff.
4682 * libdriver/input.cc: Will read the new `F' tcommand.
4683 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
4684 * troff/input.cc: Use it.
4686 2000-01-26 Werner LEMBERG <wl@gnu.org>
4688 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
4689 font will now be updated even if an invalid font is selected.
4691 2000-01-24 Werner LEMBERG <wl@gnu.org>
4693 * doc/homepage.ms: Updated for new tmac.arkup.
4695 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
4697 * tmac/tmac.arkup: Cleanup.
4699 Added `\&' to .HTML macro to `leave vertical mode', so to say.
4701 Removed obsolete .LINK macro completely.
4703 The macros .URL, .FTP, and .MAILTO now accept a third argument which
4704 will be immediately appended to the second argument (to be used with
4705 punctuation, for example).
4707 Disabled .CDFTP macro temporarily for security reasons.
4709 * tmac/groff_markup.man: Complete revision for latest changes in
4710 tmac.arkup -- note that it does not yet format correctly with
4713 2000-01-23 Bruno Haible <haible@clisp.cons.org>
4715 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
4716 * devutf8/R.proto: Add mappings for wp, lh, rh.
4717 * devutf8/NOTES: Updated.
4719 2000-01-23 Werner LEMBERG <wl@gnu.org>
4721 * doc/groff.texinfo: Updated version/copyright info.
4723 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
4725 Added support for two new directives in device descriptions:
4726 `pass_filenames' (to pass the input file name to the output device)
4727 and `use_charnames_in_special' (to support e.g. accented characters
4728 in the `X' request).
4730 * include/font.h, troff/charinfo.h: Declare it.
4732 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
4734 * devhtml/DESC: Use it.
4736 * troff/input.cc: New function encoded_char.
4738 * troff/token.h: Add test for `specialness'.
4740 2000-01-21 Werner LEMBERG <wl@gnu.org>
4742 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
4743 mistake from the list of files to be installed.
4745 2000-01-18 Werner LEMBERG <wl@gnu.org>
4747 * README: Added info how to apply patches.
4749 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
4751 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
4753 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
4755 * troff/input.cc: Add support for troffrc-end.
4757 * tbl/main.cc: Altered to issue table-start and table-end special
4758 characters if using the html device.
4760 * devhtml/*: Modified font files to incorporate html encoding of
4763 * tmac/groff_markup.man: New file documenting tmac.arkup.
4765 * tmac/troffrc-end: New file. This is invoked after all user
4766 specified macros. Currently used by the html device to include
4767 tmac.html. Thus no need for users to specify -mhtml anymore.
4769 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
4770 (MAN7): Add groff_markup.man.
4772 * tmac/tmac.an, tmac/tmac.html: Small html updates.
4774 * tmac/troffrc: tmac.arkup will now be called for the html device.
4776 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
4777 extra device specific information about fonts.
4779 * doc/homepage.ms: New file. It is an example how an HTML home page
4780 could look like with grohtml.
4782 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
4784 2000-01-12 Bruno Haible <haible@clisp.cons.org>
4786 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
4789 * devutf8/NOTES: Updated.
4791 2000-01-08 Bruno Haible <haible@clisp.cons.org>
4793 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
4794 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
4795 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
4796 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
4797 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
4798 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
4799 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
4800 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
4803 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
4805 2000-01-12 Fabrizio Polacco <fab@prosa.it>
4807 grolj4: Paper size will be searched case-insensitively.
4809 * include/lib.h: Add check for strcasecmp().
4810 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
4811 * configure.in: Check for strcasecmp().
4813 2000-01-11 Werner LEMBERG <wl@gnu.org>
4815 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
4818 2000-01-10 Werner LEMBERG <wl@gnu.org>
4820 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
4823 Add a new read-only register, `.Y', which contains the groff
4826 * troff/input.cc (init_input_requests): Define it.
4827 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
4828 * doc/groff.texinfo, troff/troff.man: Document it.
4830 * libgroff/Makefile.sub (version.cc): Add definition of
4831 `Version_string[]', consisting of `<major>.<minor>.<revision>'
4832 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
4833 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
4834 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
4835 troff/input.cc, pfbtops/pfbtops.c: Use it.
4837 2000-01-10 Fabrizio Polacco <fab@prosa.it>
4839 Add a revision scheme to the groff package.
4841 * REVISION: New file.
4842 * libgroff/Makefile.sub (version.cc): Use it to define
4843 `revision_string[]'.
4844 * grops/psrm.cc: Use revision_string (converted to an unsigned
4845 integer) in constructor of resource_manager.
4847 2000-01-10 Bruno Haible <haible@clisp.cons.org>
4849 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
4851 * Makefile.in (DEVDIRS): Add devutf8.
4852 * grotty/tty.cc: Include device.h.
4853 (glyph): Change type of `code' to `unsigned int'.
4854 (tty_printer): New field is_utf8. Constructor takes device argument.
4855 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
4856 (tty_printer::add_char): Change type of first arg to `unsigned int'.
4857 (tty_printer::put_char): New function.
4858 (tty_printer::end_page): Use put_char() instead of ::putchar().
4859 (make_printer): Pass device to tty_printer constructor.
4860 * nroff.sh: Determine default device by calling 'locale'. As a
4861 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
4862 Recognize UTF-8 locales.
4863 * tmac/eqnrc: Recognize utf8 like latin1.
4864 * tmac/troffrc: Device utf8 needs tmac.tty.
4866 2000-01-07 Werner LEMBERG <wl@gnu.org>
4868 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
4870 2000-01-07 Paul Eggert <eggert@twinsun.com>
4872 Add a new predefined writeable number register, `year',
4873 which contains the current year.
4875 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
4876 * tmac/tmac.s: Use it.
4877 * troff/input.cc (init_registers): Initialize it.
4879 2000-01-06 Werner LEMBERG <wl@gnu.org>
4881 * PROBLEMS: Fixed typo.
4883 2000-01-04 Paul Eggert <eggert@twinsun.com>
4885 * PROBLEMS: Add Y2k advice for the yr number register.
4887 2000-01-03 Paul Eggert <eggert@twinsun.com>
4889 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
4891 2000-01-02 Werner LEMBERG <wl@gnu.org>
4893 * tmac/tmac.arkup: Slight modification of macros to provide better
4894 appearance for non-HTML formats.
4896 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
4898 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
4899 does not automatically translate to malloc(n) on all OSes
4900 (e.g., SunOS) so do it explicitly. Also, check the returned
4903 2000-01-01 Werner LEMBERG <wl@gnu.org>
4905 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
4907 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
4908 expects this variable
4910 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
4912 * doc/Makefile: Added instructions to create HTML and text
4913 versions of some files.
4915 1999-12-31 Werner LEMBERG <wl@gnu.org>
4917 * Updated INSTALL.gen.
4919 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
4920 better resp. correctly with non-HTML devices.
4922 Version 1.15 released
4923 =====================
4925 1999-12-28 Werner LEMBERG <wl@gnu.org>
4927 * NEWS, VERSION: Changed to 1.15
4929 1999-12-27 Paul Eggert <eggert@twinsun.com>
4931 * nroff/nroff.man: -S is safer, not safe.
4933 * groff/groff.cc (main): Use `safer', not `safe', in variable
4934 names. This does not change the behavior.
4936 * troff/input.cc (main): Likewise.
4938 * nroff/nroff.sh: Likewise.
4940 * troff/input.cc (prepend_string): New function.
4941 (main): Prepend -msafer, so that we check macro libraries for
4944 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
4946 Version 1.14 released
4947 =====================
4949 1999-12-26 Werner LEMBERG <wl@gnu.org>
4951 * NEWS, VERSION: Changed to 1.14.
4953 1999-12-24 Werner LEMBERG <wl@gnu.org>
4955 * refer/refer.cc: Fixing the last fix.
4957 Version 1.13 released
4958 =====================
4960 1999-12-23 Werner LEMBERG <wl@gnu.org>
4962 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
4967 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
4969 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
4970 document conventions, the version number must be a real.
4972 Version 1.12.1 released
4973 =======================
4975 1999-12-22 Werner LEMBERG <wl@gnu.org>
4977 * VERSION: Changed to 1.12.1.
4979 1999-12-22 Alan Rooks <arooks@istar.ca>
4981 * refer/refer.cc (do_file): Slight modification to satisfy the
4982 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
4985 1999-12-20 Werner LEMBERG <wl@gnu.org>
4987 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
4990 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
4991 list of unsafe requests.
4993 * pic/pic.man: Fixed a typo.
4995 * man/groff_out.man: Fixed a typo.
4997 1999-12-18 Werner LEMBERG <wl@gnu.org>
4999 * Makefile.in: Doc fixes.
5001 1999-12-17 Fabrizio Polacco <fab@prosa.it>
5003 * groff/groff.cc: Missing `U' option added to getopt().
5005 * troff/troff.man: Missing `U' option added to synopsis.
5007 Version 1.12 released
5008 =====================
5010 1999-12-14 Werner LEMBERG <wl@gnu.org>
5012 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
5015 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
5016 with the more appropriate terms `safer' and `unsafe'.
5018 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
5019 sys_nerr and sys_errlist[].
5021 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
5023 * pic/pic.y, pic/pic.cc: Added check for fmod().
5025 1999-12-13 Werner LEMBERG <wl@gnu.org>
5027 * VERSION: Changed to 1.12.
5029 Here some patches from various sources; most of them taken from
5030 the Debian distribution.
5032 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
5033 tmac/Makefile.sub: New files copied directly from the NetBSD
5034 distribution. Probably, some additional adaptation later on is
5037 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
5040 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
5041 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
5042 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
5043 (`-S') is now the default.
5045 * README, NEWS: Updated.
5047 1999-12-09 Werner LEMBERG <wl@gnu.org>
5049 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
5051 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
5053 1999-12-06 Werner LEMBERG <wl@gnu.org>
5055 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
5056 grief than relief today. Additionally, it is against the GNU
5059 * configure: Recreated.
5061 1999-12-05 Werner LEMBERG <wl@gnu.org>
5063 * configure.in: Added GROFF_LIBM.
5065 * configure: Recreated.
5067 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
5070 * Makefile.in: Added definition of $(LIBM).
5072 * Makefile.comm (LIBM): Removed.
5074 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
5076 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
5078 * doc/Makefile: Added rule for generation pic.html.
5080 (clean): Files produced by grohtml will be removed also.
5082 * doc/pic.ms: Small fix.
5084 * tmac/tmac.html: Fixed suppression of headers.
5086 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
5088 * tmac/tmac.html: Fixing horizontal arrows.
5090 Turning off hyphenation.
5092 * tmac/tmac.an: Improved support for grohtml; better indentation,
5095 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
5097 * tmac/tmac.arkup: Added CDFTP macro
5099 * tmac/tmac.html: All headers are turned off for ms, me, and mm
5102 * tmac/troffrc: Some additions for HTML stuff.
5104 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
5106 * tmac/tmac.html: Small changes.
5108 1999-09-26 Werner LEMBERG <wl@gnu.org>
5110 * doc/groff.texinfo: Minor fixes.
5112 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
5114 * devhtml/TR: Changed spacewidth to 3.
5116 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
5118 * tmac/tmac.html: Moved markup macros to tmap.arkup.
5120 * tmac/tmac.arkup: New file.
5122 * grohtml/ChangeLog: New file.
5124 1999-09-16 Werner LEMBERG <wl@gnu.org>
5126 * doc/groff.texinfo (Common Features): Added Copying chapter.
5127 Changed format to @smallbook.
5129 1999-09-15 Werner LEMBERG <wl@gnu.org>
5131 * NEWS: Added info about groff.texinfo.
5133 * doc/groff.texinfo: Will now compile (using texi2dvi) without
5136 1999-09-14 Werner LEMBERG <wl@gnu.org>
5138 * groff/groff.man: More updates.
5140 1999-09-13 Werner LEMBERG <wl@gnu.org>
5142 * doc/groff.texinfo: New file. This manual is still very
5143 rudimentary. It has been originally contributed by Trent
5144 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
5147 * INSTALL: Added information about the `doc' subdir
5149 * troff/troff.man: Minor fixes.
5151 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
5154 * troff/input.cc (usage): Added missing `-ffam' to usage message.
5156 * Makefile.in (dist): groff-$(version).tar.gz must be removed
5157 also, otherwise it is included itself in another call of `make
5160 * groff/groff.cc (synopsis): Removed superfluous space.
5162 * PROJECTS, PROBLEMS, NEWS: Updated.
5164 * VERSION: Updated to 1.12beta.
5166 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
5168 * README: Updated: Included documentation about CVS repository,
5169 mailing lists, and daily snapshots.
5171 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
5173 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
5175 * tmac/tmac.an: If the tag didn't fit into the space that the
5176 macro `TP' specifies, the rest of the tag went into the space for
5179 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
5181 * grolj4/lj4.cc: Added duplex printing (option `-d').
5183 * grolj4/grolj4.man: Document duplex printing.
5185 1999-09-12 Werner LEMBERG <wl@gnu.org>
5187 * doc/Makefile (pic.ps): Fixed rule which caused problems with
5188 non-GNUish sed programs.
5190 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
5193 * configure.in (LIBS): Added `-lc'
5195 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
5197 * pic/tex.cc (solid_arc): Casting M_PI to double.
5199 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
5201 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
5202 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
5203 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
5205 * groff/groff_man.man: New file. This manual page was originally
5206 written for the Debian GNU/Linux system by Susan G. Kleinmann
5209 * eqn/list.cc (list_box::compute_metrics,
5210 list_box::compute_sublist_width): Removed variable declaration to
5211 avoid shadowing warnings.
5213 * grops/psrm.cc (resource_manager::process_file): Ditto.
5215 * tfmtodit/tfmtodit.cc (main): Ditto.
5217 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
5218 to avoid shadowing warnings.
5220 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
5221 shadowing loop variable.
5223 * groff/groff.man, troff/troff.man: Added doc about grohtml.
5225 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
5227 New grohtml frontend to convert groff input to html.
5229 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
5231 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
5233 * tmac/eqnrc: Added html device.
5235 * tmac/tmac.html: New file.
5237 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
5238 (troff_output::start_picture, troff_output::finish_picture),
5239 tbl/main.cc (process_input_file):
5240 Surrounded output with `graphics_start' and `graphics_end' so that
5241 the html driver can identify non-text portions.
5243 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
5244 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
5245 grotty/tty.ps (tty_printer::set_char): Additional parameter
5248 * include/printer.h: Class printer: New function
5249 set_char_and_width; new variables (is_char_named, is_named_set,
5250 named_command, named_char_s, named_char_n) to hold information
5251 about named characters -- needed by the html driver.
5253 * libdriver/printer.cc (printer::set_ascii_char,
5254 printer::set_special_char): Use set_char_and_width.
5256 * devhtml/*: New device files for html driver.
5258 * grohtml/*: New driver grohtml.
5260 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
5262 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
5265 1999-09-11 Luke Mewburn <lukem@netbsd.org>
5267 * libgroff/string.cc (search): Small fix to test against NULL
5270 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
5272 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
5273 \b'abc') were stacked in reverse order when processed in a
5276 * troff/node.h: Added `*last' to struct `node' to make the above
5279 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
5280 The default scale for the 'f' and 't' graphics functions were 'm'
5281 rather than 'u' (i.e., no scaling).
5283 1999-09-11 Peter Miller <peterm@jna.com.au>
5285 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
5286 do_file), soelim/soelim.man: Added `-I file' option to soelim,
5287 defining include paths.
5289 * soelim/soelim.cc (include_path_append): New function.
5291 1999-09-11 Larry Jones <larry.jones@sdrc.com>
5293 * tbl/main.cc (process_options): Unix (at least Documenter's
5294 Workbench) tbl allows arbitrary non-alpha characters between
5297 1999-09-11 Paul Eggert <eggert@twinsun.com>
5299 Y2k fixes. Don't assume that the current year precedes 2000.
5301 * doc/meref.me: Add \n(y2, \n(y4.
5303 * tmac/doc-common (Yr): New number register.
5304 (Dd): Don't assume current year precedes 2000.
5306 * tmac/tmac.e (td): Likewise.
5307 (y2, y4): New number registers.
5309 * pic/pic.man: Update reference for pic paper to May, 1991
5312 1999-09-11 Werner LEMBERG <wl@gnu.org>
5314 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
5315 Removed quotation marks which prevented correct expansion of
5318 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
5320 1999-09-10 Werner LEMBERG <wl@gnu.org>
5322 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
5325 * Removed configure.old.
5327 1999-08-31 Werner LEMBERG <wl@gnu.org>
5329 * VERSION: Updated to 1.11.1
5331 1999-05-27 Werner LEMBERG <wl@gnu.org>
5333 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
5335 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
5336 added quotations around $(tmac_wrap) to avoid syntax error if
5339 * configure: Newly generated using autoconf 2.13.
5341 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
5343 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
5345 * README, PROJECTS, NEWS, INSTALL, VERSION,
5346 doc/Makefile. doc/pic.ms, groff/groff.man:
5347 Prepare for 1.11 release. No code changes.
5348 Documentation for pic added (doc/pic.ms).
5350 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
5352 * Version 1.10 released.
5354 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
5356 * afmtodit/afmtodit.pl: Avoid comment on first line.
5358 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
5360 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
5361 * configure.in: Call it.
5363 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
5364 (distfiles): Doesn't depend on config.log or config.cache.
5366 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
5368 * grog/grog.sh: Use print "" rather than print in END rule.
5370 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
5372 * tbl/main.cc (process_data): Don't give error for excess data
5373 entries that are comments.
5375 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
5377 * tbl/main.cc (process_data): Fix case where new for-scope rules
5378 silently change meaning of code.
5380 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
5382 * troff/env.cc (hyphenate): Loop over all consecutive sequences
5383 of non-zero hyphenation codes.
5385 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
5387 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
5389 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
5391 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
5393 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
5395 * tmac/tmac.andoc: Make it work in compatibility mode.
5397 * refer/token.h (token_info::is_range_sep): New function.
5398 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
5399 * refer/ref.cc (reference::output): More sophisticated check for
5402 * devps/prologue.ps (MANUAL): New procedure.
5403 * grops/ps.cc (main): New -m option.
5404 (usage): Include -m.
5405 (ps_printer::~ps_printer): Implement -m.
5407 * aclocal.m4 (GROFF_G): New macro.
5408 * configure.in: Call it.
5409 * Makefile.in (g): Provided by configure.
5411 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
5413 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
5416 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
5417 (tmac_m, tmac_s): Deleted.
5418 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
5419 tmac_s_prefix): New variables.
5420 (MDEFINES): Change accordingly.
5421 * Makefile.comm (.man.n): Use new TMAC_* variables.
5422 * configure.in (GROFF_TMAC): Call.
5423 * aclocal.m4 (GROFF_TMAC): Define.
5424 * tmac/Makefile.sub (stamp_wrap): New target.
5425 (install_data, uninstall_sub): Handle macro wrapping.
5427 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
5429 * tbl/main.cc (main): Ignore -T option.
5431 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
5433 * devlj4/generate/special.map: Add definition of \(nb.
5435 * tmac/tmac.dvi: Add definition of \(nb.
5437 * troff/dictionary.c (dictionary::dictionary): association::v gets
5438 initialized by association::association.
5440 * tmac/Makefile.sub: Avoid using temporary files when installing.
5442 * troff/env.cc (environment::set_font): Make bad font number a
5445 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
5447 * Makefile.in (datadir): Use share rather than lib.
5449 * groff/groff.cc (basename): Rename to xbasename.
5451 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
5453 * Makefile (CCLIBS): Don't use.
5454 * Makefile.ccpg: Likewise.
5456 * acgroff.m4: Rename to...
5457 * aclocal.m4: Modify extensively for autoconf 2.
5458 * configure.in: Likewise.
5459 * Makefile.in: Likewise.
5461 * groff/pipeline.c (const): Declare as empty if __STDC__ not
5463 (xstrsignal): Check for definition of NSIG. Conditionalize
5464 on SYS_SIGLIST_DECLARED. Make return type const.
5466 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
5468 * troff/input.cc (interpolate_macro): Rephrase missing space
5471 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
5473 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
5474 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
5475 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
5476 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
5477 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
5478 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
5479 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
5480 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
5481 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
5482 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
5483 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
5486 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
5488 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
5490 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
5492 (macro_iterator::macro_iterator): Add additional argument.
5494 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
5496 * troff/div.cc (vertical_size::vertical_size): In place of integer
5497 specifying line spacing use cunits specifying post vertical
5499 (macro_diversion::output, top_level_diversion::output): Likewise.
5500 * troff/div.h: Change declarations accordingly.
5501 * troff/env.cc (pending_output_line): Replace ls field by post_vs
5503 (pending_output_line::pending_output_line,
5504 pending_output_line::output, environment::output,
5505 environment::output_line, environment::output_title,
5506 environment::hyphenate_line): In place of
5507 integer specifying line spacing use cunits specifying post vertical
5509 (environment::environment): Add post_vertical_spacing and
5510 prev_post_vertical_spacing arguments.
5511 (environment::get_post_vertical_spacing): New function.
5512 (environment::total_post_vertical_spacing): New function.
5513 (environment::post_vertical_spacing): New function.
5514 (init_env_requests): Initialize pvs request and .pvs register.
5515 * troff/env.h: Change declarations.
5517 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
5519 * tmac/tmac.pspic: Immediately remove the temporary file.
5521 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
5523 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
5524 height is specified.
5526 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
5528 * tbl/table.c (struct vertical rule, class table_entry): Use int
5529 not short for start_row and end_row.
5531 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
5533 * troff/input.cc (trapping_blank_line, blank_line_macro): New
5535 (diverted_space_node::reread, process_input_stack): Call
5536 trapping_blank_line() rather than blank_line().
5537 (init_input_requests): Bind "blm" to blank_line_macro().
5539 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
5541 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
5543 * troff/env.cc (environment::possibly_break_line): Require that
5544 width total excluding width of final space node be greater than
5545 the target text length.
5547 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
5549 * troff/node.cc (kern_pair_node::vertical_extent): New function.
5551 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
5553 * troff/node.cc (charinfo_node): New class.
5554 (glyph_node, composite_node): Derive from charinfo_node. Change
5555 member functions accordingly.
5557 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
5559 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
5561 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
5563 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
5565 * devps/generate/textmap (notsubset): Add.
5567 * tmac/tmac.a4: New file.
5569 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
5571 * pic/main.cc (had_parse_error): New variable.
5572 (do_picture, do_whole_file): Set had_parse_error if yyparse()
5574 (main): Return 1 if had_parse_error is true.
5576 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
5578 * grolj4/lj4.cc (main): Avoid use of strtoul.
5580 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
5582 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
5583 iso_8859_1 or $LESSCHARSET is latin1.
5585 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
5587 * hpftodit: New directory.
5588 * Makefile.in (CCPROGDIRS): Add hpftodit.
5589 * devlj4/generate: New directory.
5591 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
5593 * configure.in: Don't use AC_VFORK.
5594 * groff/pipeline.c (run_pipeline): Use fork() always.
5596 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
5598 * grops/ps.cc (main): Use %1 not %s in error message for -w.
5600 * Makefile.in (CCPROGDIRS): Add grolj4.
5601 (DEVDIRS): Add devlj4.
5602 * grolj4, devlj4: New directories.
5603 * tmac/troffrc: Handle lj4.
5604 * tmac/tmac.lj4: New file.
5606 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
5608 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
5610 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
5612 * troff/input.cc (do_if_request): At end of second string, switch
5613 environments before getting next token.
5615 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
5617 * devps/psstrip.sed: Split rule that strips whitespace on either
5620 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
5622 * troff/node.h (font_family::make_definition): Add return value to
5623 declaration. * troff/symbol.h (symbol::operator==,
5624 symbol::operator!=): Likewise.
5626 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
5628 * groff/groff.cc (main, help, synopsis): Handle -S.
5629 (possible_command::insert_arg): New function.
5631 * tmac/tmac.safer: New file.
5632 * tmac/msafer.man: New file.
5633 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
5635 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
5637 * pic/pic.h, pic/main.cc (safer_flag): New variable.
5638 * pic/pic.y (placeless_element): Avoid unsafe operations if
5639 `safer_flag' is set.
5640 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
5642 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
5644 * eqn/lex.cc (get_token): Put call to add_context() in block to
5645 work around Sun C++ 4.0 bug.
5647 * include/stringclass.h (operator +): Use ?: instead of `if' to
5648 work around Sun C++ 4.0 bug.
5650 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
5652 * tbl/main.cc (process_format): Accept - as a synonym for the _
5655 * libbib/index.cc (minus_one): Don't declare as const.
5657 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
5659 * troff/input.cc (get_char_for_escape_name): Push back a newline.
5661 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
5663 * troff/input.cc (write_macro_request): New function.
5664 (init_input_requests): Bind write_macro_request to writem.
5666 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
5668 * tmac/tmac.s (@EN): Turn filling back on even if there was no
5671 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
5673 * tmac/tmac.s (@TS): Renamed from TS.
5674 (TS): Call LP then TS again.
5675 (cov*ab-init): Alias @TS to TS.
5677 * tmac/tmac.s: Allow QP or RS to initialize.
5679 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
5680 Move initializations of PS and LL here.
5681 (par@init): Don't initialize HY. Avoid changing environment 0.
5682 (par*env-init): Don't all par@reset.
5684 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
5686 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
5688 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
5690 * Makefile.in (MDEFINES): Add LDFLAGS.
5691 (LDFLAGS): Add definition line.
5693 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
5695 * troff/input.cc (get_optional_char): Split off error check into...
5696 (check_missing_character): New function.
5697 * troff/token.h: Declare it.
5698 * troff/env.cc (margin_character): Don't call get_optional_char.
5699 Only call tok.next() after making the node.
5701 * include/lib.h (getopt): Make 2nd argument char *const *.
5703 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
5705 * nroff/conftest.sh: Deleted.
5707 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
5709 * pic/make-dos-dist: Deleted.
5711 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
5713 * devps/psstrip.sed: Strip comments before stripping trailing
5716 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
5718 * Version 1.09 released.
5720 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
5722 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
5724 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
5726 * libgroff/font.cc (font::load_desc): Fix typo in error message.
5728 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
5730 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
5731 about returning without a value.
5733 * troff/charinfo.h (charinfo::get_special_translation): Cast
5734 TRANSLATE_NONE to int.
5736 * refer/token.cc (lookup_token, store_token): Remove bogus loop
5737 test. Fix test so that it works with n unsigned.
5739 * pic/pic.y (defaults_table): Fully bracket initializer.
5740 * pic/lex.cc (lookup_keyword): Likewise.
5741 * eqn/lex.cc (token_table, def_table): Likewise.
5742 * eqn/box.cc (param_table): Likewise.
5743 * troff/input.cc (warning_table): Likewise.
5744 * libgroff/font.cc (table): Likewise.
5745 * grops/ps.cc (ps_printer::special): Likewise.
5746 * grops/psrm.cc (resource_manager::process_file): Likewise.
5747 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
5748 * refer/command.cc (command_table): Likewise.
5749 * addftinfo/addftinfo.cc (param_table): Likewise.
5751 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
5752 about temp's being unused.
5753 (unused): New function.
5755 * groff/pipeline.cc: Declare c_fatal.
5757 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
5760 * libbib/index.cc (index_search_item::load): Prevent compiler
5761 warnings about fd_closer's being unused.
5762 (unused): New function.
5764 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
5766 * troff/input.cc (copy_mode_error): Make `prefix' static.
5769 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
5771 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
5772 HAVE_CC_OSFCN_H and modify accordingly.
5774 * troff/input.cc (init_charset_table): radicalex overlaps
5777 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
5778 udodo!hans@relay.NL.net).
5779 * groff/configure.in: Call it.
5781 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
5782 * groff/configure.in: Call it.
5783 * include/lib.h: Conditionalize declaration of pclose.
5785 * troff/div.cc (last_page_number): New global variable.
5786 (top_level_diversion::begin_page): Exit if we just printed the
5788 * troff/div.h (last_page_number): Declare it.
5789 * troff/input.cc (parse_output_page_list): Set last_page_number.
5791 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
5792 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
5793 tmac/tmac.X: Likewise.
5794 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
5795 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
5797 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
5799 * tmac/doc-ditroff (hK): Remove groff specific code which
5800 prevented page-breaks between separate manual entries. If this is
5801 the first page, don't set the page number to 1.
5803 * acgroff.m4 (GROFF_POSIX): New macro.
5804 * configure.in: Use it.
5806 * troff/node.cc (class real_output_file,
5807 real_output_file::real_output_file,
5808 real_output_file::~real_output_file): Conditionalize use of
5809 popen/pclose on POPEN_MISSING.
5810 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
5811 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
5812 (pipe_source): Similarily.
5814 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
5816 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
5817 presence of declarations by trying to compile example with
5818 conflicting declarations. (gcc only gives a warning for missing
5821 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
5823 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
5824 (from Ulrich Lauther).
5826 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
5828 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
5830 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
5832 * indxbib/indxbib.cc (write_hash_table): Add code for case where
5833 pointers and ints have different sizes.
5835 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
5837 * tmac/tmac.s (par*env-init): Call par@reset.
5839 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
5841 * tmac/tmac.s (@IP): Switch to a new environment when diverting
5843 (par*push-tag-env, par*pop-tag-env): New macros.
5845 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
5847 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
5848 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
5850 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
5851 comment. Include <time.h>.
5853 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
5855 * grops/ps.cc (is_small_h, is_small_v): Deleted.
5856 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
5859 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
5861 * troff/input.cc (read_request): Only print a prompt if reading
5862 from the terminal. Also clearerr on EOF if reading from the
5863 terminal. Declare isatty.
5865 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
5867 * refer/label.y: Rename map_t to map_func and extractor_t to
5870 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
5872 * include/assert.h: Don't use volatile.
5873 * libgroff/assert.cc: Likewise.
5875 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
5877 * troff/input.cc (abort_request): Look at character in tok before
5880 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
5882 * troff/troff.h (NO_RETURN): Deleted.
5883 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
5884 * troff/input.cc (exit_troff): Likewise
5886 * Makefile.in: Remove `Making ...' messages since GNU make now
5889 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
5891 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
5893 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
5896 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
5898 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
5900 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
5902 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
5903 MARK_REG if there was no left delimiter.
5905 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
5907 * pic/troff.cc (troff_output::text): Set line thickness to
5908 relative before outputting text.
5910 * tmac/tmac.e (@k): Don't zero ?T.
5913 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
5915 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
5917 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
5919 * troff/input.cc (decode_args): Warn about unquoted tabs (from
5922 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
5924 * troff/input.cc (ignoring): New variable.
5925 (ignore): Set ignoring during call to do_define_macro.
5926 (do_define_macro): Clear ignoring before interpolating terminating
5928 (copy_mode_error): New function.
5929 (get_char_for_escape_name, read_long_escape_name,
5930 interpolate_arg): Use copy_mode_error.
5931 (warning_table): Add WARN_IG.
5932 * troff/troff.h (WARN_IG): Declare.
5933 (WARN_TOTAL): Change accordingly.
5935 * groff/pipeline.c (strsignal): Rename to xstrsignal.
5936 * groff/groff.cc (strsignal): Delete declaration.
5938 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
5940 * troff/div.cc (page_offset): Use 'm' as default scaling.
5942 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
5944 * nroff/nroff.sh: Ignore -u.
5946 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
5948 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
5950 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
5952 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
5954 (B2): With -Tascii, leave additional vertical space before
5955 and after. Ensure that the left and right indent is restored to
5956 what it was even if the point size changes. Don't call
5957 par@finish. Change the indent, line length and title length
5958 directly. With -Tascii, make the width of the box 1n less.
5959 (B1): Remember 1n at the current point size. Don't call
5960 par@reset. Change the indent, line length and title length
5961 directly. Ensure that the temporary indent is preserved.
5962 (par*box-mark-top): Turn off no spacing mode.
5964 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
5966 * Makefile.in (dist): Use .gz suffix.
5968 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
5970 * troff/input.cc (main): Add return 0.
5971 * pic/main.cc (main): Use return instead of exit.
5972 * tbl/main.cc (main): Likewise.
5973 * eqn/main.cc (main): Likewise.
5974 * grops/ps.cc (main): Likewise.
5975 * grotty/tty.cc (main): Likewise.
5976 * groff/groff.cc (main): Likewise.
5977 * grodvi/dvi.cc (main): Likewise.
5978 * refer/refer.cc (main): Likewise.
5979 * indxbib/indxbib.cc (main): Likewise.
5980 * lkbib/lkbib.cc (main): Likewise.
5981 * soelim/soelim.cc (main): Likewise.
5982 * addftinfo/addftinfo.cc (main): Likewise.
5983 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
5984 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
5986 * troff/token.h (process_input_stack): Don't declare as static.
5987 * troff/input.cc: Likewise.
5989 * troff/node.c (invalidate_fontno): Make it a static member of
5990 class font_family. Change callers.
5991 * troff/node.c: Change declaration.
5993 * tbl/main.cc (struct input_entry_format): Add explicit public
5995 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
5996 struct double_hline_stuff): Likewise.
5997 * tbl/table.h (struct entry_format): Likewise.
5998 * pic/object.h (struct saved_state): Likewise.
6000 * include/stringclass.h: Add forward declarations of friend
6001 functions that are later declared as inline. Don't include inline
6002 specifier in friend declaration.
6004 * libgroff/lib.h: Declare popen and pclose.
6005 * acgroff.m4 (GROFF_POPEN): New macro.
6006 * configure.in: Call it.
6008 * include/lib.h (PI): New constant. Undef first if necessary.
6009 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
6010 * grops/ps.cc (degrees, radians): Likewise.
6011 * libgroff/font.cc (font::get_skew): Likewise.
6013 * grops/ps.cc (is_ascii): New function.
6014 (ps_output::put_string): Use is_ascii. Use csprint rather than
6016 (ps_printer::define_encoding): Use csspace.
6017 * libgroff/strtol.c (ISASCII): New macro.
6018 (strtol): Cast arguments to is*() and tolower() to unsigned char.
6019 Use ISASCII rather than isascii.
6020 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
6021 * libgroff/cset.cc: Likewise.
6022 * libdriver/input.cc: Include cset.h.
6023 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
6026 * refer/refer.cc (main): Use %ld rather than %d for longs.
6028 * libbib/index.cc (index_search_item_iterator::get_tag): Use
6031 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
6033 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
6035 * troff/input.cc (hyphenation_code): Skip white space between
6038 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
6040 * tbl/table.h (table::entry_list_tailp): New member.
6041 (table::table): Initialize it.
6042 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
6045 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
6047 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
6048 with negative horizontal positions. Remove casts of glyph::hpos to
6050 (USHRT_MAX): Delete definition.
6051 (SHRT_MAX, SHRT_MIN): New definitions.
6052 (glyph::hpos): Change type to short.
6053 (tty_printer::end_page): Output multiple backspaces if necessary.
6054 Remove casts of glyph::hpos to int.
6056 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
6058 * tmac/tmac.s (@RT): New definition.
6060 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
6062 * refer/refer.cc (do_file): Make sure current_filename is set when
6065 * pic/common.cc (common_output::dot_line): Handle zero length
6068 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
6070 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
6071 (par@init): Initialize \n[HY].
6073 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
6075 * troff/dictionary.cc (dictionary::remove): Continue when
6078 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
6080 * Makefile.com (.y.cc): Avoid ending up with two versions of
6083 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
6085 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
6086 (\(,C): Likewise. Also fix typo.
6088 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
6090 * lib.h: Delete extraneous semi-colon.
6092 * Add pso request: `so' from a pipe.
6093 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
6094 (file_iterator::close): New function.
6095 (file_iterator::~file_iterator, file_iterator::next_file): Use
6096 file_iterator::close.
6097 (file_iterator::backtrace): Say `process' rather than `file' when
6098 the stream is popened.
6099 (pipe_source): New function.
6100 (init_input_requests): Bind ".pso" to pipe_source.
6102 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
6104 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
6106 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
6107 digits in lower case.
6109 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
6111 * Version 1.08 released.
6113 * Makefile.in (dist): Insert || true after ln -s commands that
6116 * mm: Update to mm 1.16.
6118 * acgroff.m4 (GROFF_CSH_HACK): New macro.
6119 * configure.in: Call GROFF_CSH_HACK. Substitute for
6121 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
6123 * nroff/Makefile.sub (nroff): New target.
6124 (install_data): Install nroff.
6125 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
6126 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
6128 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
6130 * eqn/Makefile.sub (neqn): Add chmod +x.
6132 * grog/Makefile.sub (grog): Remove spurious semi-colon.
6134 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
6136 * troff/input.cc (string_iterator::string_iterator()): Initialize
6139 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
6141 * troff/div.cc (macro_diversion::space,
6142 top_level_diversion::space): Don't set high_water_mark.
6143 (macro_diversion::output, top_level_diversion::output): Don't
6144 include post line space in high water mark.
6146 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
6148 * eqn/eqn.y: Don't define YYDEBUG.
6149 * pic/pic.y: Likewise.
6151 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
6153 * tmac/tmac.e ([3): Add space after comma following editors.
6154 Change double spaces to single spaces.
6155 ([4): Change double spaces to single spaces.
6157 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
6158 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
6159 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
6160 after %!PS-Adobe- (for Newsprint).
6162 * troff/div.cc (top_level_diversion::begin_page): When
6163 before_first_page is 1, set page_number to 1.
6165 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
6167 * eqn/box.cc (box::top_level): Protect equation with \&.
6169 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
6171 * groff/groff.cc (possible_command::set_name): Delete old name.
6173 * groff/groff.cc (possible_command::~possible_command): Use
6176 * troff/node.cc (troff_output_file::begun_page): New member.
6177 (troff_output_file::troff_output_file): Initialize it.
6178 (troff_output_file::really_begin_page): Only output V command if a
6179 page has been begun.
6181 * pic/pic.y (placeless_element): Delete argument to PRINT after
6184 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
6186 * Make wrapman work.
6187 * troff/div.h (class top_level_diversion): Replace
6188 first_page_begun by before_first_page (with opposite sense).
6189 * Change first_page_begun to before_first_page inverting sense.
6190 * troff/div.cc (class nl_reg): New class.
6191 (init_div_requests): Use class nl_reg for \n(nl.
6192 (top_level_diversion::begin_page): Don't call
6193 output_file::begin_page if before_first_page is 2;
6194 reset before_first_page afterwards. If have_next_page_number is
6195 false, then always increment page_number.
6196 * tmac/tmac.an: Set traps within TH rather than at the top-level.
6197 Restore compatibility mode after loading, and then disable
6198 compatibility mode in TH.
6200 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
6202 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
6204 * troff/node.h (output_file::trailer): Declare.
6205 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
6206 * troff/node.cc (output_file::trailer): New function.
6207 (troff_output_file::~troff_output_file): Move most code into...
6208 (troff_output_file::trailer): New function.
6209 (class troff_output_file): Delete page_length member. Declare
6211 (troff_output_file::really_begin_page): Use current page length
6212 for final V command.
6214 * tbl/main.cc (struct options): New decimal_point_char member.
6215 (options::options): Initialize this.
6216 (process_options): Implement decimalpoint option.
6217 (process_data): Pass decimal_point_char option to table::table.
6218 * tbl/table.h (class table): New decimal_point_char member.
6219 (table::table): Add additional argument.
6220 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
6221 second argument specifying decimal point character. Use this
6223 (table::table): Initialize decimal_point_char.
6224 (table::add_entry): Change call to find_dot.
6226 * troff/input.cc (get_copy, token::next): Implement \V.
6227 (interpolate_environment_variable): New function.
6229 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
6231 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
6232 * pic/pic.y: Likewise.
6234 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
6236 * refer/ref.cc (reference::insert_field, reference::delete_field):
6238 * troff/number.cc (parse_term): Likewise.
6240 * acgroff.m4 (GROFF_PROG_YACC): New macro.
6241 * configure.in: Use GROFF_PROG_YACC.
6243 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
6245 * Makefile.in (OPTIMIZE): New define.
6246 (DEBUG): Empty by default.
6247 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
6249 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
6250 (GROFF_ARRAY_DELETE): Likewise.
6251 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
6253 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
6255 * devps/psstrip.sed: Use different delimiter on last line (so that
6256 it works with BSD 4.4 sed.)
6258 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
6260 * devps/psstrip.sed: Delete comments.
6262 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
6263 optind, opterr, optarg.
6264 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
6267 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
6269 * Makefile.in (check): Dummy target.
6271 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
6273 * Version 1.07 released.
6275 * Integrate mm 1.11.
6277 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
6278 where start_col was meant.
6280 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
6282 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
6284 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
6286 * troff/input.cc (token::next): Make \z\o'...' and similar things
6289 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
6291 (environment): Add margin_character_flags member.
6292 * env.cc (environment::environment(symbol),
6293 environment::environment(const environment *): Initialize
6294 margin_character_flags.
6295 (margin_character): Rewrite.
6296 (environment::output_line): Add a margin character if
6297 margin_character_flags is non-zero. Turn off the
6298 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
6299 zero, use margin_character_node without copying and then set
6300 margin_character_node to 0.
6302 * devps/DESC.in: Change minimum size to 1000.
6304 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
6306 * troff/symbol.h (symbol::hash): Change return type to unsigned
6308 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
6311 * test-groff: Use -r rather than -x.
6313 * grops/psfig.diff: Include in distribution again.
6315 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
6317 * Makefile.in (dist): Use gzip.
6319 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
6321 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
6322 unistd.h as well as in stdlib.h.
6323 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
6324 defined; otherwise include <sys/types.h> and <unistd.h> if
6325 UNISTD_H_DECLARES_GETOPT is defined.
6327 * configure.in: use builtin(include, ... rather than include(...
6328 * configure: Regenerate with autoconf 1.3.
6330 * libdriver/print.cc (printer::adjust_arc_center): Use new
6331 algorithm suggested by Andy Fyfe.
6333 * libdriver/printer.cc (printer::adjust_arc_center): New function.
6334 * include/printer.h: Declare this.
6335 * grops/ps.cc (ps_printer::draw): Use it.
6336 * grodvi/dvi.cc (dvi_printer::draw): Use it.
6338 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
6340 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
6342 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
6344 * eqn/main.cc (main): Handle "eqn -".
6346 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
6348 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
6350 * mm: Integrate version 1.08.
6352 * pic/troff.cc (troff_output::finish_picture): Set
6353 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
6354 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
6355 if it's not defined. Check whether the register is non-zero rather
6356 than whether it's not defined.
6357 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
6359 * indxbib/indxbib.cc: Move all signal handling into...
6360 * indxbib/signal.c: New file.
6361 * configure.in: Call AC_RETSIGTYPE.
6363 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
6364 * configure.in: Call GROFF_STRUCT_EXCEPTION.
6365 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
6367 * troff/input.cc (token::token, token::operator=): Work round SGI
6369 * pic/object.cc (position::position): Likewise.
6371 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
6373 * pic/pic.h: Move declaration of hypot().
6375 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
6377 * pic/pic.h: Declare hypot().
6379 * pic/pic.h: Define M_PI if necessary.
6381 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
6383 * tmac/tmac.e (re): Add alternative version that doesn't use groff
6386 * devps/prologue.ps (RE): Handle the possibility that the old font
6387 doesn't have a FontName entry.
6389 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
6391 * tmac/tmac.e (fam): Redefine to set family in environment 2.
6392 (@C): Use @fam not fam.
6394 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
6396 * lookbib/lookbib.cc (main): Change type of start to const char *.
6397 * lkbib/lkbib.cc (main): Likewise.
6399 * eqn/lex.cc (definition::definition): Don't use member
6400 initializer syntax for members of anonymous unions.
6402 * troff/input.cc (input_stack::backtrace): Change type of to const
6405 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
6407 * include/stringclass.h (class string): Declare inline friend
6408 functions as inline in class declaration.
6409 * troff/hvunits.h (class hunits, class vunits): Likewise.
6410 * include/refid.h (class reference_id): Likewise
6411 * troff/troff.h (points_to_units(units), scale(units, double)):
6412 Delete declarations.
6413 * libdriver/input.cc (get_char): Delete declaration.
6414 * include/lib.h: Change 2nd argument of getopt from const char **
6416 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
6417 char **' before assigning to a `const char **'.
6418 * tbl/table.cc: Delete extra declarations of prints().
6420 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
6422 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
6423 char **' before assigning to a `const char **'.
6425 * libgroff/errarg.cc (errarg::errarg): Don't use member
6426 initializer syntax for members of anonymous unions.
6428 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
6430 * mm: Integrate version 1.07.
6432 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
6434 * troff/input.c (translate2): Rename to
6435 (translate_no_transparent).
6436 (init_input_requests): Rename tr2 to trnt.
6438 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
6440 * troff/charinfo.h (class charinfo): Add transparent_translate field.
6441 (charinfo::set_translation, charinfo::set_special_translation):
6442 Add second argument that specifies value for
6443 transparent_translate.
6444 (charinfo::get_translation, charinfo::get_special_translation):
6445 Add optional second argument that specifies whether translation is
6446 being used for transparent throughput.
6447 * troff/input.cc (charinfo::set_translation,
6448 charinfo::set_special_translation): Handle second argument.
6449 (charinfo::charinfo): Initialize transparent_translate.
6450 (translate): Split main part off into
6451 (do_translate): New function. Pass argument saying whether
6452 translation applies to transparent throughput.
6453 (translate2): New request.
6454 (init_input_requests): Bind translate2 to `tr2'.
6456 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
6458 * tbl/table.h (class table): Add `nokeep' flag.
6459 * tbl/main.cc (process_options): Handle `nokeep' option.
6460 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
6461 table::do_bottom): Don't output keep/release macro definitions or
6462 calls when `nokeep' option has been specified.
6464 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
6466 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
6468 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
6470 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
6471 block_entry::divert, alphabetic_block_entry::divert): Add extra
6472 argument giving column separation.
6473 (table::compute_widths): Pass column separation to
6474 table_entry::divert().
6475 (block_entry::do_divert): If an entry spans multiple columns and a
6476 minimumum width has been specified for each column, then set the
6477 line length to the sum of the widths (plus possibly the column
6480 * troff/input.cc (set_escape_char): Don't set the escape_char
6481 until after calling has_arg().
6483 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
6485 * tbl/table.cc (table::do_top): Add missing \s0 for double box
6488 * tbl/table.cc (table::print_double_hline): Avoid extra new line
6489 in case where r > nrows - 1.
6491 * tbl/table.cc (BODY_HEIGHT): Deleted.
6492 (LINE_SEP): New definition.
6493 (table::print_single_hline, table::print_double_hline,
6494 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
6495 table::do_row, table::do_top): Use LINE_SEP space before a line
6496 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
6498 * tbl/table.cc (text_entry::print_contents): New function.
6499 (text_string_name, right_text_string_name): Deleted.
6500 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
6501 (simple_text_entry::do_width, numeric_text_entry::do_width,
6502 alphabetic_text_entry::do_width): Don't store the contents of the
6504 (left_text_entry::simple_print, right_text_entry::simple_print,
6505 center_text_entry::simple_print,
6506 alphabetic_text_entry::simple_print,
6507 numeric_text_entry::simple_print): Print the entry directly
6508 instead of using the stored string.
6510 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
6512 * devps/Makefile: Strip PostScript files.
6513 * devps/prologue: Rename to...
6514 * devps/prologue.ps.
6515 * devps/psstrip.sed: New file.
6516 * devps/download: Use .pfa rather than .ps for installed versions
6519 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
6521 * troff/env.cc (input_trap): Give a warning if the argument is out
6524 * troff/env.cc (adjust): Treat negative argument as missing. Round
6525 argument > 5 down to 5.
6527 * troff/env.cc (center, right_justify): Make negative argument zero.
6529 * troff/div.cc (page_offset, vertical_position_traps): Treat
6530 invalid argument as missing.
6531 * troff/env.cc (line_spacing, line_length, title_length, indent,
6532 underline, hyphen_line_max_request, control_char,
6533 no_break_control_char, widow_control_request, adjust, input_trap,
6534 point_size): Likewise.
6535 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
6536 constant_space): Likewise.
6537 * troff/input.cc (compatible, shift, warn_request,
6538 set_escape_char): Likewise.
6540 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
6541 * tbl/table.cc (table::table): Likewise.
6543 * Makefile.dev (install_dev): depends on $(DEVFILES).
6545 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
6547 * devX75, devX75-12, devX100, devX100-12: New directories.
6548 * Makefile.in: Add these to DEVDIRS.
6550 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
6551 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
6552 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
6553 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
6555 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
6556 (uninstall): New target.
6557 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
6558 uninstall_prog, uninstall_dev): New targets.
6560 * troff/div.cc (return_request): Treat an invalid argument as
6563 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
6565 * tmac/tmac.e ((f): Set up the environment even when there's a
6566 current diversion. Transperently throughput a call to @N.
6569 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
6571 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
6572 up to vertical resolution.
6574 * tbl/table.cc (table::do_row): Change row number after printing
6577 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
6579 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
6581 * Rename CHANGES to NEWS.
6583 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
6585 * libgroff/new.cc (operator new): Avoid calling malloc(0).
6587 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
6589 * man.ultrix: Removed.
6591 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
6593 * Makefile.comm (extraclean): Delete files whose names begin with
6596 * pic/troff.cc (troff_output::text): Fix typo in implementation of
6599 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
6601 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
6602 * troff/div.cc (page_length, need_space, space_request): Treat
6603 invalid optional argument as missing.
6604 * troff/env.cc (number_lines): If the first argument is present
6605 but not a number, turn on line numbering, don't change the next
6606 line number and parse the remaining arguments.
6608 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
6610 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
6612 * eqn/box.h: Change declaration accordingly.
6613 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
6614 the specified size was bad but don't give an error. Check for
6616 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
6617 * eqn/lex (do_size): Likewise.
6619 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
6621 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
6624 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
6626 * tbl/table.cc (table::init_output): Improve error message when
6627 table won't fit on one page.
6629 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
6631 * pic/troff.cc (troff_output::start_picture): Generate line
6632 containing a horizontal motion equal to the width of the picture.
6634 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
6635 using GROFF_COMMAND_PREFIX environment variable.
6637 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
6639 * mdate.sh: Use $NF rather than $(NF).
6641 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
6643 * pic/main.cc (main): Use %1 not %c in argument to warning.
6645 * eqn/main.cc (main): Output code to check that geqn was given the
6648 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
6650 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
6651 `ln -s ../Makefile .; make; rm -f Makefile'.
6653 * troff/hyphen: Rename to...
6655 * troff/input.cc (main): Delete -H option. Don't call
6657 * troff/env.cc: Include searchpath.h and macropath.h.
6658 (exception_dictionary): Deleted.
6660 (read_hyphen_file): Deleted.
6661 (hyphenation_language): New struct.
6662 (class trie, class hyphen_trie): Move declarations up.
6663 (trie_node::~trie_node): Deleted.
6664 (trie::delete_trie_node): New function.
6665 (trie::do_delete): New pure virtual function.
6666 (hyphen_trie::do_delete): New function.
6667 (trie::~trie): New function.
6668 (hyphen_trie::~hyphen_trie): New function.
6669 (trie::clear): No need to chcek that tp is not 0.
6670 (current_language, language_dictionary): New variables.
6671 (hyphen_word): Give an error if no current language. Use
6672 exceptions dictionary in current language.
6673 (hyphen_trie::read_patterns_file): Find file using macro_path.
6674 Allow comments (starting with %) in patterns file. Don't make it
6675 a fatal error if the file can't be found.
6676 (hyphenate): Return if no current language. Get the exceptions
6677 dictionary and the hyphenation patterns from the current language.
6678 (set_hyphenation_language): New variable.
6679 (hyphenation_patterns_file): New function.
6680 (hyphenation_language_reg): New class.
6681 (hyphenation_language_reg::get_string): New function.
6682 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
6683 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
6685 * groff/groff.cc (main, help, synopsis): Delete -H option.
6686 * include/Makefile.sub: Don't define HYPHENFILE.
6687 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
6688 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
6689 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
6690 hyphenation patterns.
6692 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
6694 * eqn/neqn.sh: New file.
6695 * eqn/Makefile.sub: Handle neqn.sh.
6697 * eqn/eqn.h: Declare `nroff' variable.
6698 * eqn/box.cc (param_table): Add `nroff' param.
6700 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
6702 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
6704 * troff/troff.h (WARN_FONT): New warning.
6705 (WARN_TOTAL): Change accordingly.
6706 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
6707 (warning_table): Add WARN_FONT.
6708 * troff/node.cc (mount_font_no_translate): Pass argument to
6709 font::load_font. If this is non-zero, give a warning.
6710 Don't give an error message when accessing a font that has already
6711 been found to be invalid.
6712 * include/font.h (font::load, font::load_font): Add additional
6713 optional argument which suppresses error message if the font is
6715 * libgroff/font.cc (font::load_font): Handle additional argument.
6716 (font::load): Add additional argument. If this is non-null, set it
6717 to 1 and don't give error message.
6719 * include/printer.h (printer::end_page): Add argument giving
6721 * libdriver/input.cc (do_file): Pass this.
6722 * grops/ps.cc (ps_printer::end_page): Add argument.
6723 * grodvi/dvi.cc (dvi_printer::end_page,
6724 draw_dvi_printer::end_page): Add argument.
6725 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
6726 columns_per_page members. New member nlines.
6727 (DEFAULT_LINES_PER_PAGE): Deleted.
6728 (tty_printer::tty_printer): Don't compute lines_per_page from
6729 font::paperlength. Don't compute columns_per_page from
6731 (tty_printer::add_char): Don't check horizontal position against
6732 columns_per_page. Grow glyphs vector if neccessary.
6733 (tty_printer::end_page): Add argument giving page_length in units.
6734 Discard lines past end of page.
6736 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
6738 * tmac/tmac.tty-char: Fix definition of \(/l.
6740 * tmac/tmac.X: Define \(en.
6742 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
6744 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
6745 lpq, then use lp rather than lpr.
6747 * tmac/tmac.s (par@reset): Don't call `ad'.
6748 (par*env-init): Call `ad'.
6750 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
6752 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
6755 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
6756 * indxbib/indxbib.cc: Likewise.
6758 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
6760 * libgroff/putenv.c: New file.
6761 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
6762 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
6763 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
6764 stdlib.h with AC_HAVE_HEADERS.
6766 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
6768 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
6771 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
6773 * eqn/box.cc (gsize): Make it an int.
6774 (set_gsize): Parse argument handling increment or decrement.
6775 (box::top_level): Convert gsize to a string.
6777 * troff/input.cc (exit_troff): Make buf unsigned char [].
6778 Call to make_temp_iterator casts buf to char*.
6780 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
6782 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
6783 * Makefile.cpg (depend.temp): Likewise.
6785 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
6787 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
6789 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
6791 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
6793 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
6795 * Version 1.06 released.
6797 * Integrate mm 1.04.
6799 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
6801 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
6803 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
6805 * afmtodit/afmtodit.pl: Add -n option that disables generation of
6807 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
6808 afmtodit. Regenerate.
6810 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
6811 @f back past the current position.
6813 * tmac/tmac.e: Change calls to @R so that comments are not part of
6816 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
6818 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
6820 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
6821 check that we can link a call to a function declared in <stdio.h>.
6822 (GROFF_UNISTD_H): New macro.
6823 * configure.in: Call it.
6824 * Makefile.in: Document it.
6825 * include/posix.h: New file.
6826 * troff/troff.h: Don't include <osfcn.h>
6827 * troff/input.cc: Include posix.h.
6828 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
6830 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
6831 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
6833 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
6834 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
6835 * libbib/search.cc (O_RDONLY): Delete definition.
6836 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
6837 Don't include <osfcn.h>.
6839 * acgroff.m4 (GROFF_TIME_T): New macro.
6840 * configure.in: Call it.
6841 * Makefile.in: Document it.
6843 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
6844 * configure.in: Call it.
6845 * Makefile.in: Document -DTRADITIONAL_CPP.
6846 * include/ptable.h: Don't include generic.h.
6849 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
6850 Afterwards remove [T1 and [T2.
6851 (ref*spec!0, ref*spec!2): Use T1 rather than T.
6852 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
6853 (ref*add-T2): Renamed from ref*add-T.
6854 (ref*add-T1): New macro.
6856 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
6858 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
6860 * libbib/index.cc: Include <fcntl.h>.
6861 (O_RDONLY): Define if necessary.
6862 (make_index_search_item, index_search_item_iterator::get_tag,
6863 index_search_item::check_files): Use O_RDONLY.
6864 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
6865 (O_RDONLY): Define if necessary.
6866 (search_list::add_file): Use O_RDONLY.
6867 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
6869 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
6872 * libbib/index.cc (S_ISREG): Define it if necessary.
6873 (index_search_item::load): Use S_ISREG.
6875 * include/driver.h: Include <errno.h>.
6877 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
6879 * eqn/box.cc (body_height): Increase default value to 85.
6880 (body_depth): Increase default value to 35.
6882 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
6884 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
6885 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
6886 protected from expansion with \E.
6888 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
6890 * Makefile (Makefile): New target.
6892 * Makefile.sub (configure, distfiles): New targets.
6894 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
6897 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
6899 * eqn/box.cc (param_table): Add body_height and body_depth.
6901 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
6903 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
6905 * psbb/Makefile.sub: Don't link with libgroff.a.
6907 * acgroff.m4 (GROFF_PUTENV): New macro.
6908 * configure.in: Call GROFF_PUTENV.
6909 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
6910 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
6913 * troff/env.cc (distribute_space): Rename force_forward argument
6914 to force_reverse. Reverse the list if force_reverse is true.
6916 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
6918 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
6920 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
6921 height or depth to be negative. Guard against SUP_RAISE quantity
6924 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
6926 * devps/generate/textmap: Add `an' (arrowhorizex).
6927 * tmac/tmac.ps: \(an overlaps horizontally.
6928 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
6930 * devps/symbolchars: Add arrowverttp, arrowvertbt.
6931 * devps/textmap: Add arrowvertex.
6932 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
6933 updownarrow delimiters.
6934 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
6936 * tbl/table.cc (simple_entry::position_vertically,
6937 block_entry::position_vertically): For a centered entry, perform
6938 the motion in two stages.
6940 * refer/refer.cc (split_punct): Don't call lookup_token if there
6943 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
6945 * troff/input.cc (token::next): Delete token_node after copying
6948 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
6951 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
6953 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
6955 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
6957 * grops/ps.cc (usage): -b option takes an argument.
6959 * devps/prologue (PLG): New procedure.
6960 * grops/ps.cc (main, usage): New -g option.
6961 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
6964 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
6966 * include/cset.h: Include <limits.h> if we have it.
6968 * libgroff/illegal.cc: New file.
6969 * include/lib.h (illegal_input_char): Use table.
6970 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
6971 * pic/lex.cc (ARG1): Renumber to 14.
6972 * eqn/lex.cc (ARG1: Likewise.
6974 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
6975 (eg 1.05.90) correctly.
6977 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
6979 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
6980 Rename $r and $R registers to $v and $V.
6981 ($r, $R): Initialize to 0.
6982 (@v, @V): New macros.
6986 * troff/input.cc (main, usage): Add -R option that says not to
6988 * eqn/main.cc (main, usage): Rename -n to -R.
6990 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
6992 * devps/DESC.in: Leave font positions 5-9 blank.
6993 * devdvi/DESC.in: Likewise.
6995 * grog/grog.pl: Handle `.PS <file' correctly.
6997 * troff/input.cc (input_stack::push): Improve error message when
6998 input stack limit exceeded.
7000 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
7002 * refer/refer.cc (main): Fix typo in handling of `a' option.
7004 * refer/refer.cc (do_bib): In state START after a newline remain
7007 * groff/groff.sh: Deleted.
7008 * groff/Makefile.sub: Delete handling of groff.sh.
7010 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
7011 to determine whether to use \X'ps:...'.
7012 * tmac/troffrc: Set 0p register to 0.
7013 * tmac/tmac.ps: Set 0p register to 1.
7015 * groff/groff.cc: Support -X option. Give warning for -TXps and
7016 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
7017 * tmac/troffrc: Support -r.X=1.
7019 * pic/troff.cc (troff_output::dot): Don't test
7020 zero_length_line_flag.
7022 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
7024 * include/lib.h: Declare getopt() and friends unless
7025 STDLIB_H_DECLARES_GETOPT is defined.
7027 * doc/chars.tr: Delete.
7028 * man/groff_char.man: New file.
7030 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
7032 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
7033 user has changed register format.
7035 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
7037 * groff/groff.cc: Get rid of device_table. Get postprocessor from
7038 `postpro' command in DESC file. Get spooler command from `print'
7039 command in DESC file. Execute spooler command with /bin/sh.
7041 * groff/groff.cc: Split Unix-specific parts into...
7042 * groff/pipeline.c: New file.
7045 * COPYING: New file.
7046 * all files: Update copyright notices.
7048 * Rearrange files. Redo Makefiles. Use autoconf.
7050 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
7052 * troff/input.c (charinfo_to_node_list): Interpret character
7053 definition with escape_char of `\'.
7055 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
7057 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
7058 Define INT_DIGITS as big enough for 64-bit integer.
7059 * lib/strtol.c: Don't include lib.h.
7060 * lib/lib.h: Delete ifdef __cplusplus stuff.
7062 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
7064 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
7065 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
7066 get DESC from current directory.
7068 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
7070 * tbl/main.c (main): Always reset the line number when reading
7073 * tbl/table.c (table::print_single_hline, table::print_double_hline,
7074 table::define_bottom_macro, table::do_row, table::do_top): Round
7075 vertical spacing up to vertical resolution.
7077 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
7079 * ps/ps.h (enum resource_type): Avoid comma at end of
7081 * dvi/dvi.c (class dvi_printer): Likewise.
7082 * dvi/tfmtodit.c (gf::load): Likewise.
7083 * refer/label.y (struct expression): Likewise.
7084 * refer/refer.c (class label_processing_state): Likewise.
7085 * refer/indxbib.c (do_file): Likewise.
7086 * troff/troff.c (enum warning_type): Likewise.
7087 * tbl/main.c (process_data): Likewise.
7088 * troff/charinfo.h (class charinfo):
7090 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
7092 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
7094 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
7096 * groff.c: Move to new groff subdirectory.
7097 * groff/Makefile: New file.
7098 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
7100 * man/mdate.sh: Use ls -L if supported.
7102 * Consolidate all header files produced by gendef into lib/defs.h.
7103 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
7104 Don't include path.h.
7105 * lib/Makefile (path.h): Don't generate.
7106 * troff/input.c: Include defs.h. Don't include config.h.
7107 * troff/Makefile (config.h): Don't generate.
7108 * refer/index.h: Don't include suffix.h.
7109 * refer/index.c: Include defs.h.
7110 * refer/indxbib.c: Include defs.h.
7111 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
7113 * refer/Makefile (suffix.h, path.h): Don't generate.
7114 * groff.c: Don't include config.h. Include defs.h.
7115 * Makefile (config.h): Don't generate.
7116 (lib/defs.h): Generate.
7117 (topclean): Remove lib/defs.h.
7119 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
7121 * lib/malloc.c, lib/getpagesize.h: Deleted.
7122 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
7124 * lib/Makefile: Delete malloc-related stuff.
7125 * lib/new.c: Workaround COOKIE_BUG if necessary.
7127 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
7128 needed header files directly.
7129 * refer/refer.h: Omit definition of DEFAULT_INDEX.
7130 * Makefile: Include definition of DEFAULT_INDEX in path.h.
7132 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
7134 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
7136 * lib/font (font::load_desc, font::load): Don't split argument of
7138 (font::handle_unknown_font_command): Change type.
7139 * ps/ps.c (ps_font::handle_unknown_font_command,
7140 handle_unknown_desc_command): Change type.
7141 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
7143 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
7145 * lib/font.h (font::handle_unknown_font_command): Add file and
7147 * lib/font.c (font::handle_unknown_font_command):
7148 * ps/ps.c (ps_font::handle_unknown_font_command):
7149 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
7150 lineno arguments. Use _with_file_and_line functions for error
7153 * lib/fontfile.c (font::unknown_desc_command_handler): New static
7155 * lib/font.c (font::set_unknown_desc_command_handler): New
7157 (font::load_desc): For unknown commands, call
7158 unknown_desc_command_handler if not null.
7159 * lib/font.h (class font): Declare them.
7160 (FONT_COMMAND_HANDLER): New typedef.
7161 * ps/ps.c (handle_unknown_desc_command): New function.
7162 (main): Set bflag if we had a -b option. Call
7163 font::set_unknown_desc_command_handler.
7164 (broken.h): Don't include.
7165 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
7167 * ps/devps/Makefile: Add `broken' command to DESC file using
7168 BROKEN_SPOOLER_FLAGS.
7170 * macros/tmac.e ([, ]): Add as synonyms for { and }.
7172 * macros/tmac.e ($p): Only exdent if \$3 > 0.
7174 * macros/tmac.e (@R, @S): New macros.
7175 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
7176 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
7177 Declare $H, $[0-9], .. macros with @S.
7178 Declare |0, |1, |2, |3 strings with @S.
7180 * macros/tmac.e (@S): Rename to @U.
7182 * macros/tmac.e (@z): Define @b and bp as empty instead of
7185 * macros/tmac.e (@m): Deleted.
7186 (@h): Don't call @m.
7187 (@z): Don't set @m trap.
7189 * macros/tmac.e ($h, $f): Define |z as empty string.
7191 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
7194 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
7196 ()f): Likewise for * register.
7198 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
7199 argument is missing, don't change $R. Call sr with three
7200 arguments when initializing.
7202 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
7204 * macros/tmac.e (sr): New macro.
7205 Initialize $r and $R using sr.
7207 * macros/tmac.e (,): Delete \*(#[.
7209 * troff/env.c (set_tabs): Read the tab type even if the position
7210 is bad. Allow the position of the first tab stop to be negative.
7212 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
7214 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
7216 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
7217 rather than -DPATHCONF_MISSING.
7218 * Makefile: Get rid of PATHCONF_MISSING.
7220 * refer/map.c: New file.
7221 * refer/index.c: Interface to mmap through map.c. Rename map_size
7223 * refer/Makefile: Handle map.c.
7224 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
7226 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
7228 * Makefile: RANLIB should be `true' if there is no ranlib.
7229 * lib/Makefile (libgroff.a): Simplify.
7230 * driver/Makefile (libdriver.a): Simplify.
7232 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
7233 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
7236 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
7238 * troff/env.c (compare_ranges): Declare as extern "C".
7240 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
7242 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
7244 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
7246 * pic/troff.c (troff_output::text): Merge in grops_output::text,
7247 but conditionalize use of \X based on \*(.T.
7248 (grops_output::*): Deleted.
7249 * pic/output.h: Delete declaration of make_grops_output.
7250 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
7251 by default. -n sets it to 0.
7252 (usage): Corresponding changes.
7253 * groff.c (main): Don't pass -x or -p to pic.
7254 * groff.sh: Likewise.
7256 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
7259 * ps/devps/afmtodit: Change calculation of asc_boundary and
7260 desc_boundary. Make these bounds inclusive.
7261 * ps/devps: Regenerate font files.
7263 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
7265 * macros/tmac.latin1: New file.
7266 * macros/tmac.tty-char: Use tmac.latin1.
7267 (tmac.tty-tr): Deleted.
7268 * macros/Makefile: Install tmac.latin1.
7269 * macros/tmac.dvi: Use tmac.latin1.
7270 * macros/troffrc: Translate \[char160] onto no-break space here.
7271 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
7273 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
7275 * macros/tmac.Xps: Use `do' request.
7277 * macros/tmac.ps: Use `do' request.
7279 * macros/tmac.e (@C): Use `do' request.
7281 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
7282 * macros/Makefile: Install tmac.X*.
7284 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
7285 * tty/Makefile: Don't install tmac.tty*.
7286 * macros/Makefile: Install tmac.tty*.
7288 * dvi/tmac.dvi: Move to macros.
7289 * dvi/Makefile: Don't install tmac.dvi.
7290 * macros/Makefile: Install tmac.dvi.
7292 * ps/tmac.ps*: Move to macros.
7293 * ps/Makefile: Don't install tmac.ps*.
7294 * macros/Makefile: Install tmac.ps*.
7296 * eqn/box.c: Provide draw_lines parameter corresponding to -D
7298 * macros/eqnrc: Set draw_lines parameter based on device.
7299 * groff.c: Don't pass -D flag to eqn.
7300 * groff.sh: Likewise.
7301 * eqn/main.c: Warn about use of -D.
7303 * troff/input.c (process_startup_file): New function.
7304 (main): Call process_startup_file().
7305 * macros/troffrc: New file.
7306 * macros/Makefile: Install troffrc.
7307 * groff.c (main): Don't pass extra -m option to troff. For a
7308 pseudo device pass the name of the pseudo device to troff using
7310 * groff.sh: Likewise.
7311 * groff.c (possible_command::prepend_arg): Deleted.
7313 * troff/input.c (do_request): New function.
7314 (init_input_requests): Bind "do" to do_request.
7316 * eqn/main.c (main): Instead of loading eqnchar from device directory,
7317 load eqnrc from macro directory.
7318 * macros/eqnrc: New file.
7319 * macros/Makefile: Install eqnrc.
7320 * ps/devps/eqnchar: Deleted.
7321 * ps/devps/Makefile: Don't install eqnchar.
7322 * dvi/devdvi/eqnchar: Deleted.
7323 * dvi/devdvi/Makefile: Don't install eqnchar.
7324 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
7327 * lib/device.[ch]: New files.
7328 * lib/font.h (font::set_device_name, font::get_device_name):
7330 * lib/fontfile.c: Use device.h.
7331 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
7332 * troff/input.c: Delete definition of `device'.
7333 (main): Don't initialize device.
7334 * troff/troff.h: Include device.h rather than declaring device.
7335 * troff/Makefile: No need to handle DEVICE.
7336 * driver/input.c: Include device.h. Don't use
7337 font::{set,get}_device_name.
7338 * groff.c, Makefile: Rename device.h to config.h.
7339 * groff.c: Use library device variable.
7340 * eqn/main.c: Use library device variable.
7341 * eqn/Makefile: No need to handle DEVICE.
7343 * lib/searchpath.[ch]: New files.
7344 * lib/Makefile: Handle searchpath.[ch].
7345 * troff/input.c (open_file, init_dirs): Deleted.
7346 (macro_dirs): Deleted.
7347 (open_mac_file, macro_source): Use class search_path.
7348 (add_string, struct string_list): Move definition.
7349 (main): Change -M option to use macro_path. Delete call to
7351 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
7352 Rewrite to use class search_path.
7353 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
7354 * lib/Makefile: fontfile.c depends on searchpath.h.
7355 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
7357 * lib/macropath.[ch]: New files.
7358 * troff/Makefile: No need to handle MACROPATH.
7360 * troff/input.c: Delete DUMP code.
7361 * lib/fontfile.c, lib/font.h: Delete
7362 font::forget_command_line_font_dirs.
7364 * troff/input.c (push_token): New function.
7365 (handle_first_page_transition): Use push_token().
7366 (process_input_stack): Change handling of a space at the beginning
7369 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
7371 * troff/input.c (font_dirs): Delete unused variable.
7373 * eqn/lex.c (do_set): Correct error messages.
7375 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
7377 * troff/input.c (do_define_string): Allow the string name to be
7378 followed immediately by a tab.
7379 (define_character): Likewise.
7381 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
7383 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
7386 * troff/input.c (input_iterator::is_file): New virtual function.
7387 (file_iterator::is_file): New function.
7388 (input_stack::end_file): New function.
7389 (input_stack::next_file): Handle the situation where there is no
7390 file on the input stack correctly. Avoid making two passes over
7392 (next_file): Make the filename optional; in this case call
7393 input_stack::end_file().
7395 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
7397 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
7398 produce a real _ charater when the current font is CW and _
7401 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
7402 expression to work around gcc 2.2 bug.
7404 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
7406 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
7408 * troff/env.c (environment::add_padding): New function.
7409 (environment::add_char): Use add_padding().
7410 (environment::space): Likewise.
7411 (environment::wrap_up_field): Add some padding if there is none
7412 and there's no current tab.
7413 * troff/env.h: Declare environment::add_padding.
7415 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
7417 * pic/pic.y: undef fmod and rand before declaring them.
7419 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
7421 * troff/input.c (main): If the DESC file specifies a font name of
7422 0, then leave the corresponding font position empty.
7424 * nroff.sh: New file.
7425 * Makefile (install.nobin): Install nroff.sh.
7427 * tty/devlatin1/R.proto: Add ao as synonym for de.
7428 * tty/tmac.tty-char: Define ao as o.
7430 * tty/dev{ascii,latin1}/R.proto: Add aq.
7431 * tty/tmac.tty-char: Delete definition of aq.
7433 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
7435 * troff/input.c (init_charset_table): Don't translate 0240.
7436 * ps/tmac.ps: Translate char160 to space.
7437 * dvi/tmac.dvi: Likewise.
7438 * tty/tmac.tty: Likewise.
7440 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
7442 * dvi/tmac.dvi: Add support for all Latin-1 characters.
7444 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
7445 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
7448 * tty/tmac.tty-char: Add \(ah.
7450 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
7451 No need to define \(FM and \(!/. Conditionalize all character
7454 * ps/devps/lgreekmap: Add +h, +f, +p.
7456 * ps/tmac.psnew: New file.
7457 * ps/Makefile: Install tmac.psnew.
7459 * troff/input.c (charinfo_to_node_list): Don't ever interpret
7460 character definitions in compatible mode.
7462 * troff/input.c (remove_character): New function.
7463 (init_input_requests): Bind remove_character to "rchar".
7465 * ps/tmac.psold: New file.
7466 * ps/Makefile: Install tmac.psold.
7467 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
7468 characters into tmac.psold. Make these definitions unconditional.
7470 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
7472 * ps/tmac.ps: Don't define \('c and \('C.
7474 * ps/devps/textmap: Move Greek characters to...
7475 * ps/devps/symbolchars:
7477 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
7479 * ps/devps/text.enc: Add quotesingle.
7480 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
7481 * tty/tmac.tty-char: Likewise.
7482 * dvi/devdvi/texmi.map: Add +h, +f, +p.
7483 * dvi/devdvi/texi.map: Add Fn.
7484 * dvi/devdvi/msam.map: Add lz.
7485 * dvi/tmac.dvi: Handle Bq, bq, aq.
7487 * pic/lex.c (get_token): Recognize 'th.
7488 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
7490 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
7492 * ps/devps/textmap: Move di, mu, +- to...
7493 * ps/devps/symbolchars:
7495 * macros/tmac.s (@XS): Don't call par@reset or fi.
7496 (XA): Call LP. Turn off adjustment. Reduce line length.
7498 * macros/tmac.s: Initially alias XS to LP.
7499 (XS): Rename to @XS.
7500 (cov*ab-init): Alias XS to @XS.
7502 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
7504 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
7505 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
7506 (token::is_size, token::changes_env): Deleted.
7507 * troff/number.c (parse_term): No need to process \s explicitly.
7508 Call tok.next() only after scale indicator has been processed.
7509 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
7511 (token::next): Handle \s, \f, \S, \H immediately rather than
7512 returning them as tokens.
7513 (token::operator==, token::description, token::add_to_node_list,
7514 token::process): Remove handling of deleted tokens.
7516 * troff/env.c (environment::add_char): When adding padding
7517 indicator character, call start_line() if necessary.
7519 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
7521 * ps/devps/afmtodit: Don't output 0 kerns.
7523 * ps/devps/afmtodit: Remove directory from name of encoding in
7524 font description file.
7526 * ps/devps/afmtodit: Improve error messages.
7528 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
7530 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
7531 * ps/devps/FontMakefile: Deleted.
7532 * ps/devps/afmname: New file.
7534 * ps/devps/symbol.sed: New file.
7535 * ps/devps/symbol.diff: Deleted.
7536 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
7537 Generate zapfdr.afm from zapfd.afm.
7539 * tty/tmac.tty (tty-char): Prefix definition with ".
7541 * macros/tmac.an (TP): Don't start a diversion if one has already
7544 * tty/tmac.tty-char: Add Latin-1 characters.
7546 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
7548 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
7550 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
7551 Move declaration of struct horizontal_span.
7553 * tbl/table.c (table::table): Initialize span_list.
7554 (table::~table): Delete span_list.
7556 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
7558 * ps/devps/Makefile: Avoid dependency on GNU make.
7560 * ps/tmac.ps: Check that character does not already exist before
7563 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
7564 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
7565 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
7568 * tty/tmac.tty-char: New file.
7569 * tty/Makefile: Install tmac.tty-char.
7570 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
7573 * tty/tmac.tty: Fix definition of \(34.
7575 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
7576 bracket-drawing characters onto |. Add *o.
7578 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
7579 only if current_field.
7581 * troff/dictionary.c (dictionary::lookup): Free old_table after
7584 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
7586 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
7587 whose glyphs are identical to glyphs of some Roman character.
7589 * tty/devlatin1/R.proto (bu): Deleted.
7590 * tty/devascii/R.proto (bu): Deleted.
7591 * tty/tmac.tty: Add definition of \(bu.
7593 * eqn/main.c (do_file): Pass FILE as argument.
7594 (main): Automatically load eqnchar. New options -F and -n.
7595 Pass do_file an opened FILE.
7596 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
7597 No need to include font.h.
7598 * groff.sh: Likewise. Don't need to use - for standard input.
7599 Prefix files with -- if first file starts with -.
7601 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
7603 * troff/env.c (environment::possibly_break_line): Don't set line
7604 to 0 across call to output_line(). Don't call output_line() until
7605 after discarding nodes after break.
7607 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
7609 * request.h (macro::empty): Declare it.
7610 * input.c (macro::empty): New method.
7611 (interpolate_macro): Don't give a WARN_SPACE if the two-character
7614 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
7616 * troff/env.c (environment::start_field): Decrement space_total
7617 when a space is frozen.
7619 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
7621 * macros/tmac.an (R): Delete macro.
7623 * troff/input.c (get_copy, token::next): Support \# (like \" but
7624 newline is ignored).
7626 * troff/input.c (token::next): Fix error message in 'Y' case.
7628 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
7630 * eqn/delim.c (define_extensible_string): Recognize any prefix of
7633 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
7635 * c++test.c: Include <osfcn.h>.
7637 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
7640 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
7642 * tbl/table.c (table::divide_span): Don't count column separation
7643 if expand was specified.
7645 * tbl/main.c (process_format): Don't ignore width specs in
7646 continued format. Give warning for changing equal widths or
7647 column separation in continued format.
7648 (process_data): Set column separation, minimum width, equal
7649 columns at end of table.
7651 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
7653 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
7654 node::add_discretionary_hyphen): Use soft_hyphen_char.
7655 (set_soft_hyphen_char): New function.
7656 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
7658 * Makefile (c++tested): Give more helpful message if test fails.
7660 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
7662 * troff/input.c (init_charset_table): Translate 0240 to
7663 an unbreakable space.
7665 * troff/token.h (token::hyphen_indicator): New function.
7666 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
7668 * troff/input.c (translate): Allow translation to \%.
7669 * troff/node.c (node::add_char): Handle
7670 TRANSLATE_HYPHEN_INDICATOR.
7671 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
7673 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
7676 * tty/devlatin1/R.proto: \(hy and - should print as 055.
7678 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
7680 * groff.c (run_commands): If the last command gets a SIGPIPE send
7681 a SIGPIPE to all children than haven't yet terminated. When
7682 command terminates, set pid field to -1.
7684 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
7686 * groff.c (main): Pass an appropriate -filename option to gxditview.
7688 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
7690 * Makefile.bd (install): Remove existing program before copying.
7692 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
7693 programs which have Unix counterparts to be installed with
7694 user-specified prefix.
7696 * troff/input.c (exit_troff): Don't check if exit_started.
7697 (exit_request): Don't call exit_troff if exit_started.
7699 * Makefile.bd (install.mm): Rename to install.dwbmm.
7701 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
7703 * driver/input.c (do_file): Add missing break for '#' case.
7705 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
7707 * troff/input.c (input_stack::clear): Clear past any boundaries and
7708 then add the boundaries back.
7710 * troff/input.c (exit_troff): Return immediately if already
7713 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
7715 (pg*end-page): If the text has ended and there are no more
7716 footnotes or keeps, exit.
7718 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
7720 * troff/input.c (init_charset_table): Make \(rq transparent by
7723 * macros/tmac.an: Define lq and rq strings.
7725 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
7727 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
7729 * troff/env.c (environment::final_break): New function.
7730 (environment::newline): Set prev_line_interrupted to 2 if
7732 * troff/env.h: Declare environment::final_break.
7733 * troff/input.c (exit_troff): Call environment::final_break()
7734 instead of environment::do_break().
7736 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
7737 doesn't already exist.
7738 * macros/man.local: New file.
7739 * macros/tmac.an: Load man.local.
7740 * macros/man.ultrix: New file.
7742 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
7744 * troff/input.c (exit_groff): Rename to...
7745 (exit_troff): New function.
7747 * troff/div.c (exit_started, done_end_macro,
7748 seen_last_page_ejector): New global variables.
7749 (began_page_in_end_macro): New static variable.
7750 (exit_flag): Deleted.
7751 (top_level_diversion::top_level_diversion): Initialize
7753 (top_level_diversion): More elaborate test for whether
7754 cleanup_and_exit() should be called.
7755 Set began_page_in_end_macro if the end macro isn't yet finished.
7756 * troff/div.h (top_level_diversion::last_page_count): New data
7758 (top_level_diversion::set_last_page): New function.
7759 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
7760 * troff/env.c (do_break): Zero prev_line_interrupted.
7761 * troff/input.c (exit_flag): Delete declaration.
7762 (LAST_PAGE_EJECTOR): New magic cookie.
7763 (token::next): Handle LAST_PAGE_EJECTOR.
7764 (exit_groff): Set exit_started and done_end_macro instead of
7765 exit_flag. Call top_level_diversion::set_last_page. Push a
7766 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
7767 another ejection after setting seen_last_page_ejector.
7769 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
7771 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
7773 * macros/tmac.e (TH): Make sure there's room for the initial
7776 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
7777 Set FVS in points rather than units.
7779 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
7781 * troff/div.c (top_level_diversion::add_trap): Don't consider the
7782 position of empty slots.
7784 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
7786 * ps/devps/S: Fix height and depth of parenrightex.
7787 * ps/devps/symbol.diff: Regenerate.
7789 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
7791 * tmac.e (u): Do underlining as in -mgs.
7793 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
7795 * tty/tty.c (tty_printer::end_page): If overstriking is
7796 suppressed, still turn overstruck horizontal and vertical lines
7799 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
7802 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
7804 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
7806 * Version 1.05 released.
7808 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
7810 * tty/tty.c: Instead of keeping an array of glyphs and then
7811 sorting it, keep a ordered linked list of glyphs for each line.
7813 * driver/driver.h: Include stddef.h.
7815 * tty/tty.c (compare_glyph):
7816 * refer/refer.c (rcompare):
7817 * troff/env.c (compare_ranges): Arguments of qsort comparison
7818 function should be const void *.
7820 * troff/number.c (parse_term):
7821 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
7824 * refer/label.y (consider_authors): Don't access variables
7825 constructed under a condition outside that condition: put braces
7826 round for statement containing declaration; redeclare use of same
7829 * pic/pic.y (text_expr): Delete production that allows
7830 parenthesised text_expr.
7831 (expr): Allow a conditional_expr to appear in parentheses.
7832 (conditional_expr): Rename to any_expr.
7834 * mm: Install new version 1.01 from jh.
7836 * lib/font.c (font::get_width): Cache scaled widths.
7837 (font::font): Initialize widths_cache.
7838 (font::~font): Destroy widths_cache.
7839 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
7841 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
7843 * c++test.c, c++test.ref: New files.
7844 * Makefile: Check that the C++ compiler works.
7846 * ps/tmac.pspic (PSPIC): Do a break.
7848 * ps/tmac.ps: Move definition of PSPIC into...
7849 * ps/tmac.pspic: New file.
7850 (PSPIC): Draw box around picture, but make it invisible to grops.
7851 * ps/tmac.ps: Load tmac.pspic.
7852 * ps/Makefile: Install tmac.pspic.
7854 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
7856 * lib/font.c (scale_round): If n is negative,
7857 subtract .5 before truncating floating point result.
7859 * lib/fontfile.c: Include <errno.h>.
7861 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
7863 * driver/input.c (get_char): Inline. Don't update current_lineno.
7864 Change callers to up date current_lineno if necessary.
7865 Use get_char() instead of getc(current_file).
7867 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
7869 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
7871 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
7873 * tty/tty.c (tmac.tty): Define \(rg as (R).
7875 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
7877 * lib/lib.h: New define a_delete.
7878 * Use a_delete instead of delete when deleting an array of objects
7879 without destructors.
7881 * lib/lib.h: Rename adelete to ad_delete.
7882 * Change uses of adelete.
7884 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
7886 * eqn/eqn.y: Include lib.h.
7888 * troff/node.c (grow_font_table): Delete old_font_table.
7890 * mm: Install new version from jh.
7892 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
7894 * tbl/table.h (format_type): Make global instead of local to class
7895 entry_format. Prefix enumerators with FORMAT_.
7896 * tbl/table.c, tbl/main.c: Corresponding changes.
7897 * refer/token.h (token_type): Make global. Prefix enumerators
7899 * refer/token.[ch]: Corresponding changes.
7900 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
7902 * troff/div.c (node::set_vertical_size): Don't name argument.
7904 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
7906 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
7907 * lib/lib.h: Define adelete accordingly.
7908 * pic/object.c (graphic_object::graphic_object):
7909 * tbl/main.c (format::~format):
7910 * tbl/table.c (table::~table):
7911 * refer/ref.c (reference::~reference, reference::merge,
7912 reference::insert_field, reference::delete_field): Use adelete.
7914 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
7916 * tbl/table.h: Corresponding changes.
7918 * common.c (common_output::dashed_arc, common_output::dotted_arc):
7919 Ensure total_angle is positive.
7921 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
7923 * refer/ref.c (reference::merge, reference::insert_field,
7924 reference::delete_field): Avoid delete[0].
7926 * refer/token.c (init_special_chars): Move calls to cmupper
7927 outside calls to init_two_char_letter to work around bug in gcc
7930 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
7932 * lib/new.c (operator new): Use __builtin_new for g++.
7934 * pic/object.c (graphic_object::~graphic_object): Don't use
7937 * pic/object.c (output::compute_scale): Initialize max_width and
7940 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
7942 * troff/input.c (write_request): Call fflush.
7944 * troff/node.h (class composite_node): Move declaration to node.c
7945 * troff/input.c (charinfo_to_node): Rename to ...
7946 (charinfo_to_node_list): Return node list rather than composite
7948 * troff/node.c (make_composite_node): New function.
7949 (make_node, add_char): Call make_composite_node instead of
7951 (class composite_node): Add a tfont * member. Delete font_size
7953 (composite_node::composite_node, composite_node::copy,
7954 composite_node::size): Corresponding changes.
7955 (composite_node::tprint): Provide constant spacing, emboldening
7956 and track kerning as specified in tfont.
7957 (composite_node::width): Change width calculation accordingly.
7958 * troff/env.h (environment::composite): New member.
7959 (environment::is_composite, environment::set_composite): New
7961 * troff/env.c (environment::environment): Initialize composite.
7962 * troff/input.c (charinfo_to_node): Call
7963 environment::set_composite.
7964 * troff/node.c (make_composite_node, make_glyph_node): Use the
7965 plain version of the tfont if the environment is composite.
7967 * troff/node.c (font_info::get_space_width): Additional argument
7968 giving space_size. Handle constant space correctly. Scale by
7969 space_size unless constant spaced.
7970 (env_sentence_space_width): New function.
7971 * troff/node.h: Declare it.
7972 * troff/env.h (environment::get_space_size,
7973 environment::get_sentence_space_size,
7974 environment::get_narrow_space_width,
7975 environment::get_half_narrow_space_width): Make inline.
7976 (environment::get_space_width): Make inline. Just call
7978 * troff/env.c: Delete definitions for funtions made inline.
7979 (environment::space_newline, environment::space): Use
7980 env_sentence_space_width(). Don't scale by space_size.
7981 * troff/node.h: Move declarations of env*space_width() functions
7984 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
7986 * macros/tmac.s (PS): Don't try to set negative indent.
7988 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
7990 * pic/pic.y: Fix min function.
7992 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
7994 * man/mdate.sh: Clear LANGUAGE.
7996 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
7998 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
7999 * pic/lex.c: New COMMAND keyword.
8000 * pic/pic.y (print_args, print_arg): New rules.
8001 (placeless_element): Use print_args for PRINT.
8002 New COMMAND element.
8004 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
8006 * troff/input.c (terminal): Handle missing argument correctly.
8008 * pic/pic.y (text_expr): New rule.
8010 * pic/pic.y: Implement := operator.
8012 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
8014 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
8017 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
8019 * ps/devps/dingbatsrmap: Include this in the distribution.
8021 * macros/tmac.doc: Replace with new version from 2nd Networking
8022 Release. Fix loading of doc-* files.
8023 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
8024 * macros/tmac.doc.old: New file. Apply fixes that had been
8025 applied to old tmac.doc.
8026 * macros/tmac.andoc: Check that we're running under groff.
8027 * macros/Makefile: Rework.
8029 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
8031 * tbl/table.h (format_type):
8032 * refer/token.h (token_type): If NESTED_TYPES is defined, use
8033 typedef to make these types visible at file scope.
8034 * Makefile: Add NESTED_TYPES configuration option.
8036 * troff/div.c (mark): At the top level use the value of
8037 nl_reg_contents rather than the current vertical position.
8039 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
8041 * tty/tty.c: Implement \D for horizontal or vertical lines.
8042 (tty_printer::set_char): Use vec_used+2 as serial number.
8043 Don't allow size of vector to exceed USHRT_MAX-2.
8044 Split off part into...
8045 (tty_printer::add_char): New function.
8046 (tty_printer::draw): New function.
8047 (compare_glyph): Handle equal serial numbers.
8048 (tty_printer::end_page): Handle overstruck characters from \D.
8049 (main, usage): Implement -d option.
8051 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
8053 * tbl/main.c (process_format):
8054 * eqn/text.c (split_text):
8055 * troff/input.c (token::next): Use inner block for declarations
8056 with initializers in switch statement.
8058 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
8060 * pic/common.c (common_output::dash_line): Cope with zero-length
8063 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
8065 * Version 1.04 released.
8067 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
8069 * macros/tmac.an (TH): Define a macro an-init to define variables
8070 based on command line arguments.
8071 (an-header): Call it.
8073 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
8075 * Makefile (install.mm): Rename to install.dwbmm.
8077 * Makefile: Integrate mm.
8078 * mm: New directory.
8080 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
8082 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
8085 * pic/troff.c (troff_output::simple_spline,
8086 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
8087 shadowing parameter.
8089 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
8091 * lib/ptable.h: Add explicit casts when converting from unsigned
8094 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
8095 * dvi/devdvi/Makefile: Install SA, SB.
8097 * refer/indxbib.c: Add declaration of mktemp.
8099 * refer/lookbib.c: Add declaration of isatty.
8101 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
8103 * pic/lex.c (interpolate_macro_with_args): While collecting
8104 arguments, keep track of whether we're in a string.
8106 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
8108 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
8109 down with \v, so as to avoid problems with top of page trap
8110 setting no space mode.
8112 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
8114 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
8116 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
8118 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
8119 Improve error message.
8121 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
8123 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
8126 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
8128 * groff.c (possible_command::execp): Always use _exit() after a
8131 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
8132 NO_SYS_WAIT_H configuration options.
8133 * groff.c: Use these options. Use POSIX-style macros to extract
8134 fields from the status returned by wait().
8136 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
8138 * tbl/table.c (table::compute_separation_factor): Allow the
8139 separation factor to drop to 0.
8141 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
8143 * refer/search.c: Include <errno.h>.
8145 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
8147 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
8149 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
8152 * pic/lex.c (input_stack::bol): Move definition out of class body.
8154 * pic/main.c: On MSDOS munge argv[0].
8156 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
8158 * lib/ptable.c (hash_string): Use unsigned long rather than
8160 (next_ptable_size): Use unsigned rather than int. Give an error
8161 message if we've hit the largest table size.
8162 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
8165 * pic/object.h (object_spec): Make flags unsigned long. Declare
8166 flags as const unisgned long rather than as enums.
8168 * pic/output.c: Deleted.
8170 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
8172 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
8173 Add additional argument.
8174 (line_entry::note_double_vrule_on_{left,right}): Set value of
8175 douvle_vrule_on_{right,left} flag according to argument.
8176 (simple_line_entry::simple_print,
8177 simple_line_entry::double_line_print): If adjacent to double vrule
8178 on a corner extend rather than shorten the rule by half the double
8181 * troff/number.c (parse_term): In checking for overflow, handle the
8182 case where the current horizontal position is negative.
8184 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
8186 * pic/object.c (draw_arrow): Check for object having zero length.
8188 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
8190 * eqn/main.c (do_file): Split off inline equation handling into...
8191 (inline_equation): New function. Search for starting delimiter
8193 (delim_search): New function. Don't recognize a delimiter that
8194 occurs in the name of an escape sequence, number register, string
8197 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
8199 * eqn/delim.c (delim_box::compute_metrics): Don't call
8200 define_extensible_string if left is 0.
8201 (delim_box::output): Don't print the left delimiter if left is 0.
8202 (delim_box::debug_print): Check for left == 0 before calling printf.
8204 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
8206 * troff/Makefile (majorminor.c): Include only digits in
8209 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
8211 * refer/dirnamemax.c: new file.
8212 * refer/genlimits.c: Deleted.
8213 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
8214 Don't check path length.
8215 * refer/Makefile: Add dir_name_max.o; delete genlimits.
8216 * Makefile: Add PATHCONF_MISSING option.
8218 * refer/indxbib.c (get_cwd): New function.
8219 (main): Use get_cwd().
8220 * lib/getcwd.c: New file.
8221 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
8223 * lib/Makefile: Compile getcwd.o.
8225 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
8228 * refer/indxbib.c (main): Check success of mktemp.
8230 * lib/tmpfile.c: New file.
8231 * lib/Makefile: Add tmpfile.c.
8232 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
8233 * ps/ps.h: Delete declaration of mktemp().
8234 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
8235 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
8236 * driver/driver.h: No need now to include errno.h.
8238 * everywhere: Set errno to 0 before calling fopen().
8240 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
8241 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
8242 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
8244 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
8246 * troff/env.h (translate_space_to_dummy): Declare it.
8247 * troff/env.c (environment::space_newline, environment::space):
8248 If translate_space_to_dummy is set then make the width of spaces 0.
8249 * troff/input.c (translate): If the second character of a
8250 translation is a space, translate to unbreakable space. If the
8251 first character is a space, set or clear translate_space_to_dummy
8252 according to whether the second character is \&. Weird!
8254 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
8256 * groff.c (run_commands): Don't use non-zero exit code because a
8257 command gets SIGPIPE.
8259 * groff.c, groff.sh: Use -mXps with -TXps.
8261 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
8262 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
8263 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
8264 (ps_printer::special): New specials invis and endinvis.
8265 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
8266 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
8267 (ps_printer::end_page): Check that invis_count == 0.
8268 (ps_printer::invis_count): New member.
8269 (ps_printer::ps_printer): Initialize invis_count to 0.
8271 * troff/env.c (environment::hyphenate_line): Hyphenation
8272 indicator at beginning of word inhibits splitting after -, \(em
8275 * pic/pic.y (element): Allow another element to follow } without
8276 any intervening separator.
8278 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
8280 * pic/lex.c (get_delimited): Allow tabs before delimiter.
8282 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
8284 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
8285 declaration of wait() in header files.
8286 * Makefile: Get rid of -DHAVE_UNION_WAIT.
8288 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
8290 * lib/lib.h: Declare return type of strerror as char *.
8292 * man/Makefile: Add g flag to sed substitutions.
8293 * Makefile (shgroff, bindist): Likewise.
8295 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
8297 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
8298 * ps/devps/prologue (PBEGIN): Define showpage after pushing
8301 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
8303 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
8306 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
8308 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
8311 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
8313 * troff/input.c (define_number_reg): If currently undefined,
8314 don't define it if the argument is an invalid expression.
8316 * Makefile: Ignore return value of `if' commands without `else'
8319 * Makefile: Split up CPPDEFINES into a series of separate
8320 configuration options.
8322 * troff/input.c (init_registers): Use time_t instead of long
8323 unless LONG_FOR_TIME_T is defined. Use returned result rather
8324 than passing pointer.
8325 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
8327 * lib/Makefile (fontpath.h): Use gendef.
8329 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
8331 * troff/input.c (input_iterator::shift): Delete argument name.
8332 * troff/node.c (suppress_output_file::really_begin_page,
8333 suppress_output_file::really_transparent_char, node::ascii_print,
8334 node::tprint): Delete names of unused arguments.
8336 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
8338 * refer/label.y (string): Pass $4 to command_error.
8340 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
8342 * Version 1.03 released.
8344 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
8346 * Makefile: Pass definition of SHELL in SUBFLAGS.
8349 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
8350 ps/Makefile: Use gendef to construct header files that are
8351 constructed from the Makefile.
8353 * macros/Makefile: make all should build stripped version of tmac.e.
8355 * refer/Makefile (clean): Remove y.output.
8357 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
8359 * ps/pfbtops.c (main): Add -v option which prints out a version
8361 * ps/Makefile (pfbtops): Link with libgroff.a.
8363 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
8365 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
8366 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
8368 * refer/lkbib.c (main): Always terminate reference with blank
8370 * refer/lookbib.c (main): Likewise.
8372 * refer/linear.c (file_buffer::load): Check that the file is not a
8375 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
8376 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
8377 Delete second inclusion of <sys/param.h>.
8379 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
8381 * troff/token.h (token::special): Deleted.
8383 * tbl/main.c (process_format): Rework so that opt->tab_char is
8384 recognized only when appropriate.
8386 * ps/Makefile (clean): Remove pfbtops.
8388 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
8390 * lib/font.c (text_file::next): Don't return if we have got a
8393 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
8395 * refer/refer.c (store_reference): Get hash code from old_table[i]
8396 when rehashing the table.
8398 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
8400 * eqn/box.c (box::top_level): Save size and prev size using \R and
8401 restore it afterwards. Set the size to the size at the beginning
8403 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
8404 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
8406 * refer/Makefile (limits.h): Use ./genlimits.
8408 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
8410 * refer/index.c: Delete declarations of stat() and fstat().
8412 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
8414 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
8416 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
8418 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
8420 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
8422 * troff/input.c (token::get_char): Handle \e.
8424 * refer/linear.c: Delete declarations of fstat() and stat().
8426 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
8428 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
8429 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
8431 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
8433 * troff/input.c (do_define_macro): Improve error handling for end
8434 of file while defining macro.
8436 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
8438 * eqn/box.h: Fix declaration of set_gsize.
8439 * eqn/box.c (set_gsize): Make argument const char *.
8440 (gsize): Declare as char *.
8441 * eqn/main.c (main): Don't convert gsize to int.
8442 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
8444 * Version 1.02 released.
8446 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
8448 * macros/tmac.andoc: New file.
8449 * macros/Makefile: Install tmac.andoc.
8451 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
8452 operator new and delete on OP_DELETE_BROKEN not being defined.
8453 * Makefile: Mention OP_DELETE_BROKEN.
8455 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
8457 * Makefile (bindist): Pass SUBFLAGS.
8459 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
8461 * Makefile, groff.c: Pass definitions to groff.c via device.h.
8463 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
8466 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
8468 * ps/ps.h, ps/psrm.c: Make comment_table and
8469 header_comment_table local to resource_manager::process_file.
8471 * groff.sh: With -TXps pass -printCommand option to gxditview.
8473 * groff.c (possible_command::print): Implement using
8474 append_arg_to_string.
8476 * xditview: Merge in new implementation with own ChangeLog.
8478 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
8480 * groff.c (main): Implement PRINT_OPTION.
8481 (append_arg_to_string): New command.
8482 (device_table): Set PRINT_OPTION flag for Xps.
8484 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
8486 * troff/groff.h: Rename to troff.h.
8488 * pic/lex.c (lookup_keyword, docmp): New functions.
8489 (get_token): Use new lookup_keyword.
8490 Don't include key.h.
8491 * pic/key.[ch], pic/pic.gperf: Deleted.
8492 * pic/Makefile: Remove gperf stuff.
8494 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
8496 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
8498 * troff/Makefile, troff/node.c: Move definition of
8499 STORE_WIDTH into node.c.
8501 * etc/grog.pl, etc/grog.sh: Support -mdoc.
8503 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
8505 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
8506 dvi/devdvi/texb.map: Add lq and rq.
8507 dvi/devdvi: Regenerate fonts.
8508 * ps/devps/textmap: Add lq and rq.
8509 * ps/devps: Regenerate fonts.
8510 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
8511 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
8513 * pic/object.c (position_rectangle): When checking radius
8514 cope with possiblity that width or height is negative.
8515 (box_object::box_object): Have separate xrad and yrad with
8516 signs matching signs of dim components.
8517 (box_object::{north,south}_{east,west}): Use xrad and yrad.
8518 (box_object::print): With rounded boxes use absolute values
8519 for dim and rad arguments.
8521 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
8524 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
8526 * various files: Add explicit destructors to keep Saber CC +d
8529 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
8531 * eqn/box.c (box::top_level): Restore fonts correctly after
8532 font changes in line containing inline equation. Also
8533 restore previous font as well as current font.
8534 * eqn/pbox.h: Define necessary string and register names.
8536 * troff/input.c (token::next): Case 'R' calls do_register.
8537 (do_register): New function.
8539 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
8541 * groff.c, groff.sh: Support Xps device. Allow each device
8542 to have a pseudo_name and a real_name.
8544 * groff.c (run_commands): Don't print `Broken pipe' messages.
8546 * ps/pfbtops.c: New file.
8547 * ps/Makefile: Add pfbtops.
8549 * troff/number.c (parse_term): Improved error message.
8551 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
8553 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
8555 * Makefile: Integrate refer.
8556 * refer: New directory.
8557 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
8558 man/lkbib.man: New files.
8559 * man/Makefile: Support refer man pages.
8561 * lib/lib.h: Declare is_prime.
8562 * lib/prime.c: New file.
8564 * troff/input.c (macro_source): New function.
8565 (init_input_requests): Bind "mso" to macro_source.
8567 * troff/env.c (environment::possibly_break_line): Maintain
8568 pointer to pointer to node to be split in ndp so as to avoid
8569 using address of freed node.
8571 * troff/env.c (environment::hyphenate_line): Maintain pointer to
8572 pointer to first node to be hyphenated in startp so as to
8573 avoid using address of freed node.
8575 * troff/env.c (class trie, class hyphen_trie): Make the
8576 elements of the trie be of type char not unsigned char.
8577 Declare arguments to be const char* instead of unsigned char *.
8579 * troff/env.c (hyphenate): Initialize hbuf[0].
8581 * troff/input.c (set_string): Declare p to be char * and cast
8582 *p to unsigned char when necessary.
8584 * troff/input.c (do_define_macro): Declare s to be const
8585 char*. Cast element to unisgned char when necessary, Declare
8586 d to be an int. Handle EOF better.
8588 * troff/Makefile, troff/input.c: Different scheme for passing
8589 definitions of MACROPATH, HYPHENFILE and DEVICE.
8591 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
8593 * tty/devascii/R.proto: Delete entry for em.
8594 * tty/devlatin1/R.proto: Likewise.
8596 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
8598 * troff/input.c (translate): Stop when we get a space. Treat eof
8601 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
8603 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
8605 * tbl/main.c (process_format): A font name following a `f'
8606 modifier that starts with a digit can be only one character long.
8607 Also deal with EOF on the second character of the font name.
8609 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
8611 * troff/input.c (token::next): Turn \~ into an
8612 unbreakable_space_node.
8613 * troff/node.c (unbreakable_space_node): New class.
8614 * troff/node.h: Declare it.
8616 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
8618 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
8619 it's >= 0, before outputting it as a single byte.
8621 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
8623 * lib/font.c: Make font_char_metric::code an int.
8624 (font::get_code): Change return type to int.
8625 (font::load): Allow code to be arbitrary integer.
8626 * lib/font.h (font::get_code): Change return type to int.
8627 (font::number_to_index): Change argument type to int.
8628 * troff/input.c (token::next): In case 'N', allow any value.
8629 Store value in token::val.
8630 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
8631 (token::get_char, token::add_to_node_list, token::process): Get
8633 (charinfo::set_number): Change argument to int.
8634 (charinfo::get_number): Require that NUMBERED flag be set.
8635 (get_charinfo_by_number): Store numbered characters not between 0
8636 and 255 in a dictionary.
8637 * troff/charinfo.h (get_charinfo_by_number): Change argument type
8639 (charinfo::number): Change type to int.
8640 (charinfo::set_number): Change type of set_number to int.
8641 * troff/node.c (troff_output_file::put_char_width,
8642 troff_output_file::put_char): Test whether character is numbered
8643 using charinfo::numbered().
8644 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
8646 * lib/nametoindex.c: New implementation to cope with arbitrary
8649 * troff/input.c (token::operator==): Test val for
8650 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
8653 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
8654 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
8656 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
8658 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
8661 * all Makefiles: rm targets of cp and >.
8663 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
8666 * eqn/lex.c (def_table): Add dollar.
8668 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
8670 * troff/input.c (do_width): Push back newline before closing delim
8673 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
8675 * groff.c (possible_command::prepend_arg): New function.
8676 (main): Prepend device -m option.
8677 * groff.sh: Put device -m options before command-line options.
8679 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
8681 * macros/tmac.an (IP): Quote argument to TP.
8683 * ps/ps.c (main): New option -b, which sets...
8684 (broken_flags): New variable.
8685 (ps_printer::~ps_printer): Incorporate the setup section in the
8686 prolog if (broken_flags & NO_SETUP_SECTION).
8687 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
8688 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
8689 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
8690 ps_printer::print_needed_font_comment,
8691 ps_printer::print_supplied_font_comment,
8692 ps_printer::print_include_font_comments,
8693 ps_printer::lookup_doc_font, ps_printer::download_fonts,
8694 ps_printer::read_download_file, read_document_fonts, add_font,
8695 skip_line, parse_fonts_arg, document_font::document_font,
8696 document_font::~document_font, document_font::download,
8697 ps_output::include_file): Deleted.
8698 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
8699 rather than %!PS-Adobe-2.0. Make calls to
8700 resource_manager::need_font for each font that we used. Replace
8701 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
8702 print_supplied_font_comment, print_needed_font_comment by call to
8703 resource_manager::print_header_comments. Output %%Orientation
8704 comment. Output %%Requirements: numcopies comment if ncopies > 1.
8705 Don't output the prolog directly. Instead call
8706 resource_manager::output_prolog. Only define #copies when ncopies
8707 > 1. Delete calls to print_include_font_comments and
8708 download_fonts. Add call to resource_manager::document_setup.
8709 (ps_printer::do_file): Call resource_manager::import_file instead
8710 of including it ourselves.
8711 (ps_printer::do_import): Likewise. Also don't call
8712 merge_import_fonts. Push userdict on the dictionary stack before
8713 and pop it afterwards.
8714 Move declaration of ps_output into ps.h.
8715 * ps/psrm.c: New file implementing resource_manager class.
8716 * ps/ps.h: New file declaring ps_output and resource_manager
8718 * ps/devps/zapfdr.ps:
8719 * ps/devps/symbolsl.ps:
8720 * ps/devps/prologue: Use 3.0 conventions.
8721 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
8722 Add default definition of BROKEN_SPOOLER_FLAGS.
8723 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
8724 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
8726 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
8728 * etc/grog.pl: New file.
8729 * Makefile (GROG): New variable.
8730 Add GROG to SUBFLAGS.
8731 * etc/Makefile (GROG): New variable.
8732 (install.nobin): Install $(GROG) rather than grog.sh.
8734 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
8736 * eqn/special.c (special_box::compute_metrics): Make the input and
8737 output strings the same. Get the new height and depth from the
8738 predefined height and depth registers. Also make subscript kern
8740 (special_box::compute_subscript_kern, special_box::compute_skew):
8743 * eqn/box.c (pointer_box::compute_skew,
8744 simple_box::compute_metrics, box::top_level)
8745 * eqn/text.c (prime_box::compute_metrics,
8746 prime_box::comput_subscript_kern)
8747 * eqn/limit.c (limit_box::compute_metrics):
8748 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
8749 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
8750 negative numbers in `nr' requests with a leading 0.
8752 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
8754 * eqn/special.c: New file.
8755 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
8756 Add new rule for simple.
8757 * eqn/lex.c (token_table): Add SPECIAL.
8758 * eqn/box.h: Declare make_special_box.
8759 * eqn/Makefile: Add special.[co].
8761 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
8763 * ps/devps/prologue: Possibly set packing to true while defining.
8764 Create grops dictionary here. Initialize local variables before
8765 defining procedures.
8766 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
8767 the dictionary stack. Set strokeadjust and overprint to false if
8768 the relevant operators are defined.
8769 (PEND): New procedure.
8770 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
8771 prologue. Do everything else in the setup section.
8772 (ps_printer::do_import): Just call PBEGIN and PEND around the
8773 picture. Also push userdict before, and pop it afterwards.
8775 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
8777 * troff/node.c (bracket_node::tprint): Brackets were being printed
8780 * macros/tmac.an (SH, SS): Set fill mode.
8782 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
8784 * troff/div.c (top_level_diversion::begin_page): Set
8785 high_water_mark to 0.
8787 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
8789 * man/mdate.sh: New file.
8790 * man/mdate.c: Deleted.
8791 * man/Makefile: Use mdate.sh instead of mdate.
8794 * eqn/lex.c (do_gsize): Supply missing argument to error message.
8796 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
8798 * man/mdate.c: New file.
8799 * man/*.man: Replace modification date by @MDATE@.
8800 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
8801 (mdate): New target.
8803 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
8804 Remove illegal input characters.
8806 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
8808 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
8810 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
8812 * troff/div.c (begin_page): Change behaviour when
8813 !first_page_begun and !break_flag.
8815 * troff/input.c (do_name_test): Return 0 if argument is empty.
8817 * troff/input.c (read_long_escape_name): Require closing ] to be
8818 at same input level as opening [.
8820 * troff/input.c (read_increment_and_escape_name): New function.
8821 (get_copy, process_input_stack): Use this for \n.
8823 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
8825 * troff/div.c (top_level_diversion::begin_page): Ignore the
8826 current value of page_number if !first_page_begun.
8828 * groff.c (main): Fix declaration of buf.
8830 * troff/input.c (do_name_test): New function.
8831 (token::next): Implement \A.
8832 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
8833 (token::description, token::add_to_node_list, token::process):
8834 Handle TOKEN_ESCAPE.
8835 * troff/token.h: New token TOKEN_ESCAPE.
8837 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
8839 * pic/main.c (do_picture): Allow space before and after filename
8840 following `<'. Check that the filename is not empty.
8842 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
8844 * Version 1.01 released.
8846 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
8848 * dvi/tmac.dvi: ftr HR to H.
8850 * macros/tmac.e: Round up computation of $r.
8852 * xditview/tmac.X: Don't give up completely in compatibility mode.
8853 Use \n(.s instead of \n[.s].
8855 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
8856 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
8857 Add u to factors inside \s[...]. Rename frac to dvi-frac.
8858 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
8859 short names in the char definitions.
8861 * ps/tmac.ps: Don't give up completely in compatibility mode.
8862 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
8863 quote in front of \n(.s. Add u to factors inside \s[...].
8865 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
8867 * tty/tmac.tty: Call the nroff request.
8869 * macros/tmac.e ((x, )x): Better definitions that work properly
8871 (@0, @1): Helper macros for (x.
8873 * macros/tmac.e ($s, hl): Use \l rather than \D.
8875 * tty/tmac.tty: Make it work better in compatibility mode.
8876 (pchar): Rename to tty-char.
8878 * macros/tmac.e (@E): New macro.
8879 (r, i, b, rb, bi): Use @E.
8881 * macros/tmac.e (@F): Don't use (;...) syntax.
8883 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
8884 it was modified for groff.
8886 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
8888 * macros/tmac.e (<., .>): Removed.
8889 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
8891 * macros/tmac.e: Remove check that groff is being used.
8893 * macros/tmac.e (@C): Change families only if using groff; turn
8894 compatibility mode off while changing familes. Save compatibility
8895 mode before changing families and restore it afterwards.
8897 * macros/tmac.e (@h): Remove test for offset + line length.
8899 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
8900 (lo, th, ac): Define to call @S instead of using als.
8902 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
8903 the ratio of the vertical spacing to the point size in units
8904 expressed as a percentage. Use these instead of $10r and $10R,
8905 Delete $10r and $10R.
8907 * lib/font.c (font::load): In default computation of space_width,
8908 divide by sizescale. Use scale_round.
8910 * macros/tmac.an (TP): Don't call `nf'.
8911 (an-do-tag): Don't call `fi'.
8913 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
8915 * troff/input.c (process_input_stack): Handle the case where
8916 spaces at the beginning of an input line are followed by a
8919 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
8921 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
8922 * groff.sh: Use pic -x with the dvi device.
8924 * dvi/devdvi/FontMakefile (H): Don't use -s.
8926 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
8927 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
8928 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
8931 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
8933 * ps/psfig.diff: New file.
8934 * ps/tmac.psfig: New file.
8936 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
8938 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
8939 (]-): Don't call ref*do-tl.
8941 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
8943 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
8944 (fn@do-FS): Rename to fn*do-FS.
8946 * troff/input.c (transparent_translate): New function.
8947 (process_input_stack): Apply transparent_translate before calling
8948 diversion::transparent_output(unsigned char).
8950 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
8952 * troff/input.c (do_define_macro): Define the macro before calling
8955 * xditview/Makefile: Add DEVICES variable. Change install target
8958 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
8960 * groff.c (run_commands): Handle the possibility that there are
8961 child processes other than those forked by us.
8963 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
8965 * lib/string.c (string::append): New function.
8966 * lib/stringclass.h: Declare it.
8968 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
8970 * eqn/main.c (main): New option -N which sets
8971 no_newline_in_delim_flag.
8972 (do_file): If no_newline_in_delim_flag is set don't allow newlines
8974 * groff.c (main): Pass -N on to eqn.
8975 (help, synopsis): Mention -N.
8976 * groff.sh: Implement -N.
8978 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
8980 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
8981 (]-): Call ref*do-tl if ref*need-tl is non-zero.
8982 (XP): Allow as initializer.
8984 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
8986 * troff/env.c (environment::wrap_up_field): If field_spaces are
8987 non-zero and we have a current_tab, subtract padding from
8988 tab_distance. If this makes tab_distance <= 0, use the next tab
8989 stop instead. If there isn't any next tab or it's a left tab,
8990 wrap up the current tab.
8991 (environment::start_field): Initialize tab_precedes_field.
8992 (environment::wrap_up_tab): If there's a current field, update
8993 pre_field_width, field_distance and tab_precedes_field.
8994 * troff/env.h (environment::tab_precedes_field): New member.
8996 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
8998 * ps/ps.c (ps_printer::do_file): New function.
8999 (ps_printer::special): Bind to `file' special.
9000 (ps_printer::do_exec): Set ndefined_styles to 0.
9002 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
9004 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
9005 Avoid stripping first character from the start of unrecognized
9006 escapes. Use lex_error instead of error to report errors.
9007 * eqn/lex.c (get_token): Rework handling of escapes.
9008 (lex_error): Move declaration into...
9011 * xditview/xditview.c (main): Make -page option work.
9013 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
9015 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
9017 * macros/tmac.s (B2): Correct size of box.
9019 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
9021 * macros/tmac.s (B2): Postpone drawing the box until in the
9022 top-level diversion.
9024 * tty/tmac.tty: Add font translations for C, CR, CW.
9026 * groff.c (synopsis, help): Document -i.
9027 * groff.sh: Implement -i.
9029 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
9030 Simplify the construction of SN.
9032 * troff/number.c (parse_term): Give `|' a higher precedence.
9033 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
9036 * macros/tmac.s (B2): Use par@finish instead of par@reset.
9038 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
9040 * lib/string.c (string::move): New function.
9041 * lib/stringclass.h: Declare it.
9043 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
9045 * troff/env.c (distribute_space): Add optional argument
9047 (environment::wrap_up_field): Call distribute_space with
9048 `force_forward' argument of 1.
9050 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
9052 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
9053 Inline it. Move reallocation into...
9054 (string::grow1): New function.
9055 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
9056 dependencies to include library header files.
9057 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
9059 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
9061 * macros/tmac.s (@NH): Use the same number registers than -ms does
9062 for the heading level counters. Use the same string that -ms does
9063 for the number for this heading.
9065 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
9067 * lib/new.c (operator new): Cast result of malloc to char *.
9069 * troff/input.c (spring_trap, lookup_request): Add assert that nm
9072 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
9074 * groff.c (main): Support -i.
9076 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
9078 * pic/pic.h: Include <osfcn.h>.
9080 * ps/ps.c: Add declaration of mktemp.
9082 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
9083 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
9084 argument as union wait *.
9085 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
9086 argument to union wait *.
9088 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
9090 * tty/tmac.tty: Add definition of \(co.
9092 * pic/object.c (make_arc): Only increase radius when radius
9093 strictly less than d.
9094 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
9097 * troff/env.c (environment::environment(symbol),
9098 environment::environment(const environment *)): Initialize
9101 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
9103 * tbl/main.c (main): Add exit(0).
9105 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
9107 * pic/main.c (main):
9108 * eqn/main.c (main):
9109 * tbl/main.c (main):
9110 * etc/soelim.c (main):
9111 * driver/printer.c (printer::~printer):
9112 * troff/node.c (real_output_file::~real_output_file,
9113 real_output_file::flush): Check for errors on stdout.
9115 * most files: Add 1991 to copyright notice.
9117 * macros/tmac.s: Don't test \n(.x and \n(.y.
9119 * troff/input.c (token::next): Rename `escape_char' label to
9120 `handle_escape_char' and `normal_char' label to
9121 `handle_normal_char'.
9123 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
9125 * groff.c (main, synopsis, help): Support -a option.
9126 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
9127 to trflags while parsing options.
9129 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
9131 * troff/number.c (parse_term): With `m', `M' and `n' scale
9132 indicators, convert scale factor to hunits before scaling.
9134 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
9136 * lib/font.c (scale_round): Better test for overflow when n is
9139 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
9141 * tbl/main.c (process_format): Add second argument of type
9142 options*. Change callers. Allow opt->tab_char as well as '\t'
9143 between format items.
9145 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
9147 * macros/tmac.an (PD): With no arguments, make sure register PD is
9149 (TH): Call PD with no argument, instead of setting register PD
9152 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
9154 * Version 1.00 released.
9156 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
9158 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
9160 * dvi/devdvi/DESC: Mount CW instead of CR.
9162 * dvi/tmac.dvi: Add definition of \(tm.
9164 * dvi/devdvi/texsy.map: Add lh, and rh.
9165 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
9166 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
9168 * dvi/devdvi/FontMakefile: Generate H from cmss10.
9169 * dvi/devdvi/Makefile: Install H.
9170 * dvi/devdvi/H: New file.
9172 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
9174 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
9177 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
9179 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
9181 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
9183 * macros/tmac.s (@EN): Handle the case where the equation is empty
9184 but the label is not.
9186 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
9188 * troff/groff.h: New warning category WARN_SPACE.
9189 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
9190 WARN_SPACE to warning_table.
9191 (interpolate_macro): Give a warning of type WARN_SPACE if the name
9192 is longer than two characters and is not defined, but the first
9193 two characters do make a defined name.
9195 * PROBLEMS: New file.
9197 * CHANGES: New file.
9198 * README-0.6, README-1.00: Deleted.
9200 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
9201 * xditview/devX75/Makefile: Make devX75-12.
9202 * xditview/devX100/Makefile: Make devX100-12.
9204 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
9205 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
9207 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
9209 * README-0.7: Rename to README-1.00.
9211 * macros/tmac.pic: New file.
9212 * macros/Makefile (install.nobin): Install tmac.pic.
9214 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
9216 * troff/env.c (hyphen_word): Correct the test for whether the
9217 token is a hyphen. Reset npos to 0.
9219 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
9221 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
9223 * macros/tmac.s (ds*common-end): Call par*reset.
9225 (par@reset-indent): Deleted.
9227 * macros/tmac.s (@IP): Divert the label.
9229 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
9231 * xditview/draw.c (setGC): Use a line width of .1m rather than
9232 .04m by default; round rather than truncate value.
9234 * tbl/table.c (class empty_entry): New class.
9235 (empty_entry::empty_entry, empty_entry::line_type): New functions.
9236 (table::add_entry): Represent empty entries by objects of type
9238 (table_entry::line_type): Return -1.
9239 (table::determine_row_type): Ignore entries with line_type 0.
9240 Treat type -1 as non-lines.
9242 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
9244 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
9245 macros/tmac.s: Rename \(-d to \(Sd.
9247 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
9249 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
9250 * xditview/libXdvi/DviChar.c: Likewise.
9251 * dvi/devdvi/texsy.map: Add `<<', `>>'.
9253 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
9255 * troff/div.c (top_level_diversion::begin_page): Call
9256 init_output() if the_output is 0.
9258 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
9260 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
9262 (get_copy): Turn \E into ESCAPE_E.
9263 (token::process, asciify): Handle ESCAPE_E.
9265 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
9267 (DS): Implement `.DS R'.
9269 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
9271 * macros/tmac.s (FS): New macro.
9273 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
9275 * macros/tmac.s (cov*tl-init): Remove after first execution
9276 instead of aliasing to @nop. Call top of page macro explicitly
9277 instead of setting trap; call @init first. Set pg@top as top of
9279 (cov*auto-init): Deleted. Set cov*tl-init instead of
9280 cov*auto-init as top of page trap.
9281 (TL, LP): Do a break instead of calling cov*tl-init.
9282 (cov*print): With RP format but no TL, alias FS and FE to @FS and
9283 @FE; in this case also give a warning and always start another
9284 page. No need to set pg@top here.
9285 (cov*tl-init): Rename to cov*first-page-init.
9287 * macros/tmac.s (RP): Do `.pn 0'.
9288 (cov*tl-init): With RP format don't do `.pn 0'.
9290 * macros/tmac.s (pg@cs-top): Set no space mode.
9292 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
9293 (cov*ab-init): Alias TL, AU and AI to these.
9295 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
9297 * macros/tmac.s (@EQ): Move the space before the equation into @EN
9298 (@EN): Do nothing unless \n[dl] is > 0.
9300 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
9302 * pic/object.c (ellipse_object::radius): New function.
9304 * VERSION: Change version to 0.7.
9306 * tbl/table.c (block_entry::do_divert): Declare return type as
9308 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
9310 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
9312 * troff/column.c: New file.
9313 * troff/Makefile: Corresponding changes.
9315 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
9318 * troff/div.c (top_level_diversion::space): If the space causes
9319 the first-page transition and springs a trap, truncate the space
9322 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
9324 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
9327 * pic/troff.c (troff_output::line_thickness,
9328 troff_output::set_fill): Do a horizontal motion to compensate for
9329 the width of the \D escape sequence.
9331 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
9333 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
9336 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
9339 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
9340 Supply empty definition.
9341 (text_entry::simple_print, simple_text_entry::simple_print):
9342 Delete declarations.
9343 (table::add_entry): Represent empty entries by objects of type
9346 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
9348 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
9350 * tbl/table.c (left_text_entry::add_tab): New function.
9352 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
9355 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
9357 * troff/env.c (environment::start_field): Give an error message if
9358 there is no next tab.
9360 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
9362 * troff/env.c (hyphenate): Skip initial elements with zero
9365 * macros/tmac.s (par@init): Keep VS in points rather than units.
9367 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
9369 * pic/main.c (main): Implement `-c' option.
9370 * pic/output.h: Declare make_tpic_output().
9371 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
9373 (tpic_output): New class.
9374 (tpic_output::tpic_output, tpic_output::set_pen_size,
9375 tpic_output::command, make_tpic_output): New functions.
9377 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
9379 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
9380 if they're not already defined.
9381 * tbl/table.c (init_output): Don't test \n(.g.
9383 * troff/input.c (do_if_request): Delete `g' condition. Recognize
9384 `d', `r' and `c' conditions even in compatibility mode.
9386 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
9388 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
9391 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
9393 * troff/env.h (environment::prev_line_interrupted): New member.
9394 (environment::get_prev_line_interrupted): New function.
9395 * troff/env.c (environment::newline): Set prev_line_interrupted.
9396 (environment::environment(const environment *),
9397 environment::environment(symbol)): Initialize
9398 prev_line_interrupted.
9399 * troff/input.c (process_input_stack): Don't give special
9400 treatment to space and newline at the beginning of the line if the
9401 previous line was interrupted.
9403 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
9405 * eqn/eqn.y: Disallow PRIME by itself.
9406 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
9408 (def_table): Remove definition of '. Define prime to be `.
9410 * eqn/eqn.y: Split off part of rule `script' into a new rule
9413 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
9415 * macros/tmac.s ({, }): New string aliases.
9417 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
9419 * README-0.7: New file.
9421 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
9423 * macros/tmac.s: New file.
9424 * man/groff_ms.man: New file.
9425 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
9426 * Makefile.bd: Similarily.
9427 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
9428 definition of TMAC_S.
9429 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
9430 * macros/TODO: New file.
9432 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
9434 * troff/env.c (right_justify): New function.
9435 (init_env_requests): Bind this to request "rj".
9436 (center_lines): Set right_justify_lines to 0. If we get a bad
9437 integer, center 1 line.
9438 (environment::environment(symbol), environment::environment(const
9439 environment *)): Initialize right_justify_lines.
9440 (environment::get_right_justify_lines): New function.
9441 (init_env_requests): Bind this to number_register ".rj".
9443 * troff/env.c (environment::choose_breakpoint): Implement
9444 hyphenation_margin and hyphenation_space.
9445 (environment::get_hyphenation_space,
9446 environment::get_hyphenation_margin): New functions.
9447 (init_env_requests): Bind these to .hys and .hym.
9448 (hyphenation_space_request, hyphenation_margin_request): New
9450 (init_env_requests): Bind these to hys and hym.
9451 (environment::environment(symbol), environment::environment(const
9452 environment *)): Initialize hyphenation_margin and
9454 * troff/env.h: Corresponding changes to class environment.
9456 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
9458 * troff/div.c (blank_line): Always do a break.
9460 * eqn/box.c (do_text): Turn off escapes while appending text to
9463 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
9465 * troff/input.c (while_break_request, while_continue_request): New
9467 (init_input_requests): Bind these to "break" and "continue".
9468 (while_depth, while_break_flag): New variables.
9469 (while_request): Update while_depth. Break out of loop if
9470 while_break_flag is set.
9472 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
9474 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
9477 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
9479 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
9481 * stringify: New file.
9482 * Makefile (groff.o): Use stringify.
9484 * xditview/tmac.X: Remove definition of \(rn.
9485 * xditview/libXdvi/DviChar.c: Remove radicalex from
9488 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
9490 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
9491 (alphabetic_block_entry::alphabetic_block_entry,
9492 alphabetic_block_entry::divert, alphabetic_block_entry::print):
9494 (block_entry::divert): Split off body into ...
9495 (block_entry::do_divert): If the block is alphabetic, subtract 2n
9496 from the line length; also update the span width to dl+2n, and the
9497 alphabetic span width to dl.
9499 * driver/input.c (do_file): While reading argument to D command,
9500 when expanding buffer, multiply szp by sizeof(int) rather than 2
9501 in the argument to memcpy.
9503 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
9504 width of alphabetic columns.
9506 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
9508 * troff/node.c (lookup_family): Supply second argument to lookup.
9510 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
9511 search, return immediately if v is 0.
9513 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
9514 (troff_output::start_picture): Set this reg.
9515 (troff_output::end_picture): Remove this reg
9516 * eqn/box.c (box::extra_space): Don't produce `\x's if
9517 EQN_NO_EXTRA_SPACE_REG is defined.
9519 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
9520 * eqn/text.c (split_text): Map ' to \(fm when it's the first
9523 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
9525 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
9528 * troff/div.c (top_level_diversion::top_level_diversion):
9529 Initialize page_number to 0.
9531 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
9533 * groff/troff (environment::environment(const environment *)):
9534 Initialize name to e->name, rather than "anonymous".
9536 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
9538 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
9539 requested_page. Split middle part into ...
9540 (FindPage): New function.
9541 (SetValues): If we don't yet know the last page, and the requested
9542 page is greater than the current page, call FindPage.
9543 Update the font_map_string before doing this.
9545 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
9546 Translate \(lh and \(rh into left and right double arrows.
9548 * troff/node.c (class hyphen_inhibitor_node): New class.
9549 (hyphen_inhibitor_node::hyphen_inhibitor_node,
9550 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
9551 hyphen_inhibitor_node::type,
9552 hyphen_inhibitor_node::get_hyphenation_type): New functions.
9553 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
9554 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
9557 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
9559 * troff/node.h (dummy_node::get_hyphenation_type,
9560 transparent_dummy_node::get_hyphenation_type): Declare them.
9561 * troff/node.c: (dummy_node::get_hyphenation_type,
9562 transparent_dummy_node::get_hyphenation_type): New functions.
9564 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
9566 * xditview/libXdvi/draw.c: If M_PI not defined after including
9567 math.h, then define it.
9569 * xditview/Makefile: Add definition of AR. Pass it to the submake
9571 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
9573 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
9575 * troff/dictionary.h (object_dictionary::alias): Declare return
9577 * troff/dictionary.c (object_dictionary::alias): Return non-zero
9578 if the old name was defined.
9579 * troff/input.c (alias_macro): Give a warning if the old name was
9581 * troff/reg.c (alias_reg): Likewise.
9583 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
9585 * troff/input.c (token::next): Delete implementation of \R.
9587 * macros/Makefile: Strip comments from tmac.e while installing it.
9589 * troff/input.c: New variable `nroff_mode'.
9590 (troff_request, nroff_request): New functions.
9591 (init_input_requests): Bind `troff' and `nroff' to troff_request
9593 (do_if_request): Compute results of t and n conditions from
9596 * text/text.c (split_text): Fix typo in >=.
9598 * eqn/lex.c: Add definition of `==' to def_table.
9600 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
9602 * pic/tex.c (tex_output::start_picture): Change the definitions of
9603 \graph and \graphtemp so that they work properly with Plain TeX.
9605 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
9606 argument to `ar' is not less than the first.
9608 * pic/pic.y: Allow a comma between elements of the variable list
9609 in the argument to `reset'.
9611 * pic/object.c (arc_object::arc_object): Fix computation of
9614 * eqn/main.c (main): Add exit(0).
9616 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
9618 * troff/div.c (begin_page): Test no_space_mode after doing the
9619 break, but still push the page ejector cookie before doing the
9620 break. Also set the next page number after doing the break.
9622 * xditview/xditview.c (NewFile): Don't set the title and icon name
9623 if this is the first file and its name is `-'.
9624 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
9625 the X75 and X100 devices.
9626 (main): If a device has the XT_OPTION flag set and there's exactly
9627 one file argument, pass the driver -xrm and -title options to set
9628 the icon name and window title to the name of the file.
9630 * troff/env.c (environment_switch): If there was an argument but
9631 it wasn't a valid number or name, then pop an environment but
9632 don't give an error message on underflow.
9634 * troff/number.c (start_number): Correct spelling in error message.
9636 * troff/input.c (token::delimiter): Don't print an error message
9639 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
9640 ParseDrawFunction if dw->display_enable is true.
9642 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
9644 * pic/pic.y: Parse text positioning like normal attributes, so as
9645 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
9646 positioning attribute.
9648 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
9650 * tbl/main.c (process_data): When in state START while reading a
9651 text block, don't change to state MIDDLE if c is a newline.
9653 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
9655 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
9656 so as to avoid shadowing parameter.
9658 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
9660 * tbl/table.c (trim_space): Deleted.
9661 (table::add_entry): Don't call trim_space.
9663 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
9665 * VERSION: Change version to 0.6.
9667 * troff/number.c (parse_expr): Make == work.
9669 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
9671 * man/grog.man: New file.
9672 * man/Makefile: Add grog.n to MAN1PAGES.
9673 * etc/grog.sh: New file.
9674 * etc/Makefile: Install grog.sh as grog.
9676 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
9678 * troff/input.c (token::next): Implement \E.
9680 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
9682 * xditview/tmac.X: Change font translations to match tmac.ps.
9684 * troff/input.c (non_empty_name_warning): Don't give a warning if
9685 `\{' terminates the name.
9687 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
9689 * ps/devps/symbol.diff: New file.
9690 * ps/devps/FontMakefile: Mention symbol.diff.
9692 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
9694 * troff/node.c (font_position): Use get_long_name to read the
9697 * troff/env.c (environment_switch): If we get a number that's < 0
9698 or >= NENVIRONMENTS, treat it like a name.
9699 Change NENVIRONMENTS to 10.
9701 * troff/groff.h: Remove definition of FONTS_MAX.
9702 * troff/node.h (class font_family): Make map a pointer instead of
9703 an array. Add a map_size member. Make it a class. Make nm const
9704 and public. Make invalidate_fontno a friend.
9705 * troff/node.c: Define font_table_size. Make font_info a pointer
9706 rather than an array.
9707 (class troff_output_file): Allocate font_position dynamically. Add
9708 nfont_positions member.
9709 (troff_output_file::set_font): Grow font_position if necessary.
9710 (troff_output_file::~troff_output_file): Delete font_position.
9711 (troff_output_file::troff_output_file): Allocate font_position.
9712 (grow_font_table): New function.
9713 (troff_output_file::really_begin_page,
9714 troff_output_file:really_copy_page): Use nfont_positions rather
9716 (mount_font_no_translate, mount_style): Call grow_font_table if
9718 (font_family::font_family): Allocate map.
9719 (font_family::make_definite): Grow map if necessary. Use
9720 font_table_size instead of FONTS_MAX.
9721 (font_family::~font_family): New function.
9722 (invalidate_fontno): Use font_family::map_size.
9723 (get_fontno, env_space_width, env_half_narrow_space_width,
9724 env_narrow_space_width, symbol_fotno, is_good_fontno,
9725 get_bold_fontno, make_glyph_node): Use font_table_size rather than
9727 (next_available_font_position): Never return 0.
9729 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
9731 * ps/tmac.ps: Add font translations for compatibility with dpost.
9733 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
9735 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
9736 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
9737 Move definitions baseline_sep, shift_down, column_sep,
9738 matrix_side_sep into...
9739 * eqn/box.c: Add them to param_table.
9740 * eqn/pbox.h: Add declarations to pbox.h.
9742 * troff/input.c (set_string): Cast value to unsigned char *.
9744 * troff/token.h (process_input_stack): Declare it static before
9745 declaring it a friend.
9747 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
9749 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
9751 * dvi/devdvi/EX: Regenerate.
9753 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
9756 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
9758 * eqn/lex.c: In defaults_table, make definition of `dot' call
9759 `dot_def'. Don't explicitly make it roman. Similarily for other
9762 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
9764 (for_input::get, for_input::peek): Use this.
9765 (do_for): Add by_is_multiplicative argument.
9766 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
9767 Change semantic value of optional_by to be a double plus a flag
9768 saying whethet the by clause is multiplicative.
9770 * eqn/lex.c (get_delimited_text): Remember location of start of
9771 definition. Improve error handling when EOF is encountered.
9773 * lib/font.h: Rename handle_x_command to
9774 handle_unknown_font_command.
9775 * lib/font.c (font::load): Call handle_unknown_font_command for
9776 any unknown command in the font description file. Don't call
9777 handle_x_command. Include the name of the command in the argv.
9778 Improve message for unknown command after kernpairs or charset
9780 * ps/ps.c (ps_font::handle_x_command): Rename to
9781 handle_unknown_font_command. Remove message about `x download'
9782 command. Give error message for wrong number of arguments.
9783 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
9784 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
9785 handle_unknown_font_command. Give an error message for wrong
9786 number of arguments. Rename design_size to designsize.
9787 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
9788 checksum', `designsize' instead of `design_size'.
9790 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
9792 * eqn/*.[chy]: Change underaccent to uaccent.
9794 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
9795 give it the same precedence as ACCENT.
9796 * eqn/other.c (make_underaccent_box): New function.
9797 * eqn/box.h: Declare it.
9798 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
9801 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
9803 * pic/pic.y (reset_all): New function. Called in rule for RESET.
9804 (parse_init): Call reset_all.
9805 (define_variable): When defining scale reset only those
9806 pre-defined variables that are scaled.
9807 (defaults_table): Add `scale' as non-scaled value.
9809 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
9810 together with the text; allow any number of positioning words;
9811 allow center as a positioning word.
9813 * pic/object.c (output::compute_scale): Get picture maximum height
9814 and width from variables called maxpswid and maxpsht.
9815 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
9817 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
9819 * pic/object.c (object_spec::make_text): Multiply textht by number
9822 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
9824 (do_sprintf): New function.
9825 (pic.gperf): Add sprintf token.
9826 (text, sprintf): New rules.
9828 * pic/pic.y: `rand()' with no arguments returns a random number
9831 * pic/pic.y: Allow a bare expression to be an attribute: change
9832 precedences to support this. Change optional_ordinal rule to
9833 optional_ordinal_last to avoid reduce/reduce conflict.
9834 * pic/object.c (object_spec::object_spec): Initialize direction.
9836 * pic/pic.y: Implement ^ operator meaning exponentiation.
9838 * troff/node.h: Add default argument to mount_font.
9839 * troff/node.c (font_position): Read an optional third argument
9840 giving the external_name.
9841 (mount_font): Add optional argument giving the external_name.
9842 (mount_font_not_translate): Have additional argument giving
9843 external name. Use this name to load the font. Pass both names
9844 to font_info::font_info.
9845 (font_info::font_info): Have additional argument giving
9847 (class tfont): New member external_name.
9848 (font_info::get_tfont): Use external name to construct tfont_spec.
9850 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
9852 * eqn/lex.c (init_table): Add argument giving device. Define
9853 name of device to be "1".
9854 (do_ifdef): Counts as true if the argument has been defined with
9856 * eqn/main.c (main): Call init_table with device argument. Make
9857 device local to main.
9858 * eqn/eqn.h: Change declaration of init_table. Remove declaration
9861 * pic/lex.c (get_delimited): Allow text to be delimited by
9862 matching {}s. Don't recognize ending delimiter within a string.
9864 * troff/input.c (get_delim_name): New function.
9865 (token::next): Implement \C.
9867 * lib/font.c (font::load): Grok ---. Add an alias for each
9868 character based on its code.
9869 (font::get_code_width): Deleted.
9870 * lib/font.h (class font): Declare font::number_to_index().
9871 Remove declaration of font::get_code_width.
9872 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
9873 to indices of named characters.
9874 (font::number_to_index): New function.
9875 * troff/input.c (font::number_to_index): New function.
9876 (get_charinfo_by_number, charinfo::get_number,
9877 charinfo::set_number): New functions.
9878 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
9879 (token::process, token::description, token::get_char,
9880 token::add_to_node_list, token::operator==): Handle
9881 TOKEN_NUMBERED_CHAR.
9882 * troff/charinfo.h: Declare get_charinfo_by_number,
9883 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
9885 (charinfo::numbered): New function.
9886 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
9887 * troff/env.h (class environment): Remove declaration of ...
9888 * troff/env.c (environment::make_numbered_char_node): Deleted.
9889 * troff/node.c (make_numbered_node): Deleted.
9890 (class numbered_glyph_node): Remove.
9891 (troff_output_file::put_char_width, troff_output_file::put_char):
9892 Handle numbered chars.
9893 (troff_output_file::numbered_char): Removed.
9894 (tfont::get_code_width): Removed.
9895 (make_glyph_node): Don't search special fonts for numbered
9897 * troff/node.h: Remove declaration of make_numbered_node.
9898 * driver/input.c (do_file): Handle N command.
9899 * driver/printer.h: Add declaration of ...
9900 * driver/printer.c (printer::set_numbered_char): New function.
9901 * dvi/tfmtodit.c (main): Generate unnamed entries.
9902 * ps/devps/afmtodit: Likewise.
9903 * xditview/xtotroff.c (MapFont): Likewise.
9904 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
9906 * tbl/main.c (process_format): If multiple widths are specified
9907 for a column but all the widths are the same, don't give an error
9910 * tbl/table.c (table::do_row): If the current row is all lines and
9911 the stuff doesn't contains a line, mark the top of the row after
9912 printing stuff before the row. If the current row is not all
9913 lines and the stuff doesn't contain a line, don't unnecessarily
9914 mark the top of the row before printing the stuff.
9916 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
9918 * troff/groff.h: Remove MAX_PATH.
9919 * troff/input.c (open_file): Dynamically allocate space for the
9921 (open_mac_file, process_macro_file): Corresponding changes.
9923 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
9925 * troff/node.h (class output_file): Make copy_file pure. Add
9926 vspace method ifdef COLUMN. Add is_printing method.
9927 * troff/node.c: Add class printing_reg. Add class
9928 real_output_file. Derive other output_file classes from
9929 real_output_file; in these classes rename begin_page to
9930 really_begin_page, print_line to really_print_line, copy_file to
9931 really_copy_file, transparent_char to really_transparent_char.
9932 Move output_file::flush to real_output_file. Add printing member
9933 to class output_file.
9934 * troff/div.h: Remove printing member from top_level_diversion.
9935 Add vspace member function to class diversion ifdef COLUMN. Add
9936 some declarations ifdef COLUMN.
9937 * troff/div.c (top_level_diversion::copy_file,
9938 top_level_diversion::transparent_output,
9939 top_level_diversion::output): Don't test printing member before
9941 * troff/input.c: Handle initial variable_space_request ifdef
9943 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
9946 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
9948 * troff/div.c (diversion::need): Make any space forced. If we
9949 sprung a trap, set truncated_space to minus the distance to the
9950 trap and set needed_space to the amount that was needed.
9951 (top_level_diversion::space): A forced space turns no_space_mode
9953 (class constant_vunits_reg): New class.
9954 (init_div_requests): Implement number registers .trunc and .ne
9955 using constant_vunits_reg.
9956 (class truncated_space_reg): Deleted.
9958 * troff/div.h: Don't have a no_space_mode member in diversion.
9959 Instead have it in top_level_diversion.
9960 * troff/div.c (diversion::diversion): Don't initialize
9962 (top_level_diversion::top_level_diversion): Initialize
9964 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
9965 (macro_diversion::output): Don't clear no_space_mode.
9967 * troff/input.c (diverted_space_node::reread): Don't call
9968 environment::do_break. In fill mode, act like a blank line.
9969 (diverted_copy_file_node::reread): Don't call
9970 environment::do_break.
9972 * troff/div.c (blank_line): New function.
9973 * troff/div.h: Declare it.
9974 * troff/input.c (process_input_stack): Call it.
9976 * troff/div.c (truncated_space_reg::get_string): New function.
9977 (init_div_requests): Bind to .trunc.
9978 (space_request, top_level_diversion::space,
9979 top_level_diversion::output, macro_diversion::space,
9980 macro_diversion::output): Update truncated_space.
9981 (macro_diversion::output): Redo calculations when trap sprung.
9982 (macro_diversion::output, macro_diversion::space): No need for
9985 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
9986 after truncating post line spacing.
9988 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
9990 * ps/devps/prologue (MF, SF): Make them work even if setfont is
9991 defined as a procedure rather than as an operator.
9993 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
9995 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
9997 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
9999 * troff/div.c (top_level_diversion::output): Merge
10000 output_file::print_line and output_file::end_of_line member
10002 * troff/div.h (class output_file):
10003 * troff/node.c (troff_output_file::print_line,
10004 troff_output_file::end_of_line, output_file::end_of_line,
10005 ascii_output_file::print_line, suppress_output_file::print_line):
10006 Corresponding changes.
10008 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
10010 * troff/input.c (token::next): Don't give a warning for `\.'.
10012 * troff/env.c (environment::get_center_lines): New function.
10013 (init_env_requests): Bind number register .ce to it.
10014 * troff/env.h: Declare it.
10015 * tbl/table.c (table::init_output): Define reset macro to restore
10016 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
10018 (table::print): If center option not given, then imply center
10019 option if SAVED_CENTER_REG > 0.
10021 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
10023 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
10024 Troff.ps from DOWNLOAD.
10026 * troff/Makefile: Change comment in DEFINES to avoid confusing
10029 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
10030 code. Don't try to catch errors with stopped.
10031 (check_line_lengths): New function.
10032 * ps/devps/prologue (EXEC): Deleted.
10033 (EBEGIN, EEND): New procedures.
10035 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
10037 * troff/input.c: Include request.h before node.h.
10038 * troff/node.c: Likewise.
10039 * troff/env.c: Likewise.
10040 * troff/div.c: Likewise.
10041 * troff/node.h (class special_node): Store argument as a macro
10042 rather than a char *.
10043 * troff/node.c (special_node::special_node, special_node::copy):
10045 (special_node::~special_node): Deleted.
10046 (special_node::tprint): Deleted.
10047 (special_node::tprint_start, special_node::tprint_end,
10048 special_node::tprint_char): New functions.
10049 (troff_output_file::special): Deleted.
10050 (troff_output_file::start_special, troff_output_file::end_special,
10051 troff_output_file::special_char): New functions.
10052 * troff/input.c (special_node::tprint): New function.
10053 (do_special): Use macro not char *.
10054 (do_transparent_macro): Deleted.
10055 (token::next): Don't call do_transparent_macro.
10057 * troff/input.c (token::next): Add 'Y' case.
10058 (do_transparent_macro): New function.
10059 * troff/node.c (troff_output_file::special): Handle newlines with
10060 argument using new continuation convention.
10061 * driver/input.c (get_string): Cope with continuation convention.
10062 (do_file): Don't call skip_line after calling get_string(1).
10063 * ps/ps.c (ps_printer::special, ps_printer::do_import,
10064 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
10066 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
10069 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
10071 * troff/input.c (asciify): By default, illegal input characters
10072 should return empty string.
10074 * troff/input.c (copy_file): Handle first page transition like title.
10075 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
10077 * troff/input.c (token::next): Improve error message for EOF after
10079 (input_char_description): New function.
10080 (get_char_for_escape_name): Use input_char_description.
10081 (token::next): Warn about unrecognized escape sequences.
10082 (warning_table): Add WARN_ESCAPE.
10083 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
10086 * troff/token.h: Remove declaration of process_input_stack.
10088 * troff/input.c: Remove declaration of init_hyphen_requests.
10089 * troff/request.h: Correct spelling in declaration of same.
10091 * troff/input.c (token::next): Check whether escape_char is 0.
10093 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
10095 * groff.c (main, usage, help): Implement -P and -L options.
10096 * groff.sh: Likewise.
10098 * troff/input.c (token::next): Use some gotos to avoid code
10101 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
10102 Avoid calling symbol::symbol if name empty.
10104 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
10106 * troff/input.c (init_input_requests): Make \n(.x return the major
10107 version number and \n(.y return the minor version number.
10108 * troff/Makefile: Construct file majorminor.c defining
10109 major_version and minor_version automatically from ../VERSION.
10111 * troff/node.c (class glyph_node): Make operator new and operator
10113 (class ligature_node): Similarily.
10115 * troff/input.c (operator==(const macro &, const macro &)): New
10117 (non_interpreted_node::same): Use this.
10118 (string_iterator::string_iterator): Make macro& argument const.
10120 * troff/input.c (input_iterator::get): New function. Don't make
10121 asciify_macro or class non_interpreted_node friends of class
10123 (non_interpreted_node::interpret): Use input_iterator::get.
10124 (asciify_macro): Likewise.
10126 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
10127 ~non_interpreted_node): Deleted.
10128 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
10131 * troff/symbol.h: Make all symbol member functions const.
10133 * lib/strtol.c: New file.
10134 * lib/Makefile: Add strtol.c.
10135 * Makefile: Define STRTOL as strtol.o to include strtol in
10138 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
10140 * pic/troff.c (troff_output::simple_circle): Divide by scale.
10142 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
10144 * troff/input.c (do_special): Use input_level.
10146 * troff/token.h (TOKEN_BACKSPACE): New token.
10147 (token::backspace): New function.
10148 * troff/input.c (token::description, token::next, token::process):
10149 Grok TOKEN_BACKSPACE.
10150 (do_special): Turn TOKEN_BACKSPACE back into \b.
10152 * troff/token.h (token::leader): New function.
10153 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
10155 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
10157 * troff/input.c (do_special): Use token::description in error
10160 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
10162 * troff/input.c (decode_args): Combine quoted and
10163 quote_input_level variables. Make it a for (;;) loop.
10165 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
10167 * troff/input.c (read_long_escape_name): The test for whether to
10168 expand buffer was off by 1.
10169 (read_string): Similarily.
10171 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
10173 * troff/input.c: Use `const int' rather than `static const int'.
10175 * troff/div.h (diversion::copy_file): Declare as pure virtual.
10176 (macro_diversion::copy_file): New function.
10177 * troff/node.h: New class diverted_copy_file_node.
10178 * troff/node.c: Implement it.
10179 * troff/input.c (copy_file): Use diversion::copy_file. Handle
10180 first page transition by pushing a diverted_copy_file_node.
10181 * troff/input.c (token::next, process_input_stack): Don't handle
10184 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
10186 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
10187 whether space widths need adjusting.
10189 * troff/charinfo.h: Generalize translated_to_space to
10190 special_translation so as to allow translation to \&.
10191 * troff/input.c (translate): Allow translation to \&.
10192 (charinfo::*): Corresponding changes.
10193 * troff/node.c (make_node, node::add_char): Corresponding changes.
10194 * troff/node.h (dummy_node::dummy_node): Allow optional first
10197 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
10198 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
10200 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
10201 TOKEN_REQUEST with an argument of TITLE_REQUEST.
10202 (token::process): Grok that.
10203 * troff/input.c (copy_file): Handle first page transition like
10204 title by pushing a COPY_FILE_REQUEST cookie.
10205 (token::next, process_input_stack): Grok that.
10206 * troff/node.h (output_file::copy_file): Add x and y arguments.
10208 * troff/div.c (top_level_diversion::copy_file): Supply them.
10209 * troff/node.c (troff_output_file::copy_file): Add x and y
10210 arguments; moveto specified position. Invalidate font_position
10211 array after copying file.
10212 (output_file::copy_file): New function.
10213 (suppressed_output_file::copy_file, ascii_output::copy_file):
10215 * troff/input.c (transparent_file): New function.
10216 (init_input_requests): Bind to "trf".
10217 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
10218 (process_input_stack): Likewise.
10220 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
10222 * troff/node.c (init_node_requests): New number registers .kern
10223 pointing to global_kern_mode, and .lg pointing to
10224 global_ligature_mode.
10226 * troff/node.c (ligature): Don't change it if we get a bad
10229 * troff/input.c (do_define_string): Don't strip tabs.
10231 * troff/input.c (asciify_macro): Make the string_iterator auto.
10233 * troff/node.c (init_font_requests): Rename to...
10234 (init_node_requests):
10235 * troff/node.h: Change declaration.
10236 * troff/input.c (main): Change call.
10238 * troff/input.c (node::reread, diverted_space_node::reread): New
10240 (process_input_stack): Call reread rather than
10241 get_diverted_space_node.
10242 * troff/node.c (node::get_diverted_space_node,
10243 diverted_space_node::get_diverted_space_node): Removed.
10244 * troff/node.h: Declare reread methods instead of
10245 get_diverted_space_node methods. Make `n' member private.
10246 * troff/input.c: (token::diverted_space): Removed.
10247 * troff/token.h: Removed declaration.
10250 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
10252 * eqn/script.c (script_box::compute_metrics): Don't let
10253 SUP_RAISE_FORMAT become negative.
10255 * tbl/table.c (table::do_row): Entries that don't end in the
10256 this row shouldn't make the row non-blank.
10258 * tbl/table.c (table::make_columns_equal): Only set the width of
10259 columns which are marked as equal.
10261 * tbl/main.c (process_data): Before issuing excess data error,
10262 if last character was a newline unget it; then get it again after
10263 the error. Also include the contents of the entry in the message.
10265 * groff.c: New file.
10266 * Makefile: Build groff from groff.c. Make it possible to use
10267 either groff.sh or groff.c as groff.
10268 * Makefile.bd: Similarily.
10270 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
10272 * groff.sh: Don't delay expansion of $@ in assignment to files.
10273 Remove occurrences of \".
10275 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
10277 * all Makefiles: Simplify and rearrange.
10279 * Makefile: Handle fmod like malloc.
10280 * lib/Makefile: Similarily.
10281 * lib/fmod.c: Remove #ifdef NEED_FMOD.
10283 * Makefile: Rename OPTIMISE to OPTIMIZE.
10285 * groff.sh: Remove assignment to PATH.
10286 * Makefile: Remove SHPATH variable.
10287 * Makefile.bd: Similarily.
10289 * groff.sh: Add -V option to print the pipeline instead of
10292 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
10294 * lib/font.c: Split off file searching into ...
10295 * lib/fontfile.c: New file.
10297 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
10299 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
10301 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
10302 Also change misleading comment.
10303 (table::do_vspan): Change similarily misleading comment.
10304 * tbl/main.c (process_data): A format row with an explicit `s'
10305 uses up a data line, even if all the other columns are `_' or `='.
10307 * troff/input.c (token::description): Fix description of
10308 TOKEN_DUMMY and TOKEN_EMPTY.
10310 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
10312 * groff.sh: Fix description of -Z in help message.
10314 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
10316 * pic/object.c (object_spec::make_object): Allow negative and zero
10318 * pic/pic.y: Give linethick default value of -1.0.
10319 * pic/troff.c (troff_output::troff_output): Initialize
10320 last_line_thickness to BAD_THICKNESS.
10321 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
10322 (troff_output::line_thickness): Canonicalize negative thicknesses
10323 to RELATIVE_THICKNESS.
10324 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
10325 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
10327 (tex_output::start_picture): Set pen_size to -2.0.
10329 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
10330 0, then use 0 linewidth.
10331 (ps_printer::ps_printer): Initialize line_thickness to -1.
10333 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
10335 * ps/devps/symbolchars: Remove `or'.
10336 * ps/tmac.ps: Implement \(or with .char.
10338 * ps/devps/symbolchars: Move most characters into textmap.
10339 * ps/devps/textmap: Add names for troff bracket characters. Remove
10342 * ps/devps/TSymbol.ps: Removed.
10343 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
10344 * ps/tmac.ps: Do with .char what TSymbol did.
10345 * ps/devps/download: Remove TSymbol.
10347 * ps/devps/T: Removed.
10348 * ps/devps/Troff.ps: Removed.
10349 * ps/devps/Troff.afm: Removed.
10350 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
10351 * ps/devps/download: Remove Troff.
10352 * ps/devps/FontMakefile: Remove T target.
10353 * ps/devps/DESC-A4: Remove T from font list.
10354 * ps/devps/DESC-letter: Likewise.
10356 * troff/input.c (macro_to_node): Rename to ...
10357 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
10358 character's definition while processing it.
10359 * troff/node.c (node::add_char, make_node): Change calls to
10360 macro_to_node accordingly.
10362 * troff/input.c (token::next): Translate \_ to \(ul.
10364 * tty/devascii/R.proto: Add `|'.
10365 * tty/devlatin1/R.proto: Likewise.
10367 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
10369 * man: Put the version number in all the man pages.
10371 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
10373 * Makefile.bd: New file.
10374 * README.bd: New file.
10376 * VERSION: New file.
10377 * lib/version.c: Removed.
10378 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
10381 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
10382 environment variable.
10384 * all Makefiles: Split install target into install.bin for
10385 binaries, and install.nobin for everything else.
10386 * Makefile: Add bindist target.
10388 * man/afmtodit.man: New file.
10389 * man/Makefile: Add afmtodit.n to MAN1PAGES.
10390 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
10392 * ps/Makefile: Pass BINDIR to make install in devps.
10394 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
10395 the space character.
10397 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
10399 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
10401 * ps/ps.c: Redo font downloading.
10402 * ps/devps/download: New file.
10403 * ps/devps/Makefile: Add download to DEVICEFILES.
10404 * ps/devps/afmtodit: Remove -d option.
10405 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
10406 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
10407 * ps/devps/zapfdr.ps: Likewise.
10408 * ps/devps/TSymbol.ps: Likewise.
10410 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
10412 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
10414 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
10416 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
10417 then strip the first line if it starts with %.
10418 * Makefile: Add a comment about this.
10420 * man/tfmtodit.man: New file.
10421 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
10422 * dvi/Makefile: Install tfmtodit in BINDIR.
10424 * dvi/tfmtodit.c (usage): Mention -v option.
10426 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
10428 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
10429 * troff/node.c (troff_output_file::transparent_char): Don't call
10432 * eqn: Add check_tabs method to most box classes.
10433 * eqn/box.c (box::top_level): Call check_tabs.
10435 * eqn/script.c (script_box::output): Use \Z.
10436 * eqn/limit.c (limit_box::output): Use \Z.
10438 * eqn/box.c (box::top_level): Use itoa.
10440 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
10442 * dvi/tmac.dvi: Add font translations for CR, C, TT.
10443 * dvi/devdvi/Makefile: Don't make links to CW.
10445 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
10447 * xditview/tmac.X: Likewise.
10449 * troff/node.c: Add font translation feature.
10450 (get_font_translation): New function.
10451 (symbol_fontno): Translate the font name.
10452 (mount_font_no_translate): Rename to mount_font to this.
10453 (mount_font): New function.
10454 (font_family::make_definite): Call mount_font_no_translate instead
10456 (mount_style): Translate the font name.
10457 (font_translate): New function.
10458 (init_font_requests): Bind "ftr" to font_translate.
10460 * ps/devps/prologue (SN): New procedure that rounds a position to
10461 the nearest (pixel + (.25,.25)).
10462 (DL): Use SN to round endpoints.
10464 * lib/version.c: Changed version to 0.5.
10466 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
10468 * Makefile: Move definition of PAGE to the very beginning, so that
10469 people are less likely to miss it.
10471 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
10473 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
10475 * troff/env.c (environment::choose_breakpoint): Make `can't find
10476 breakpoint' error a warning of type WARN_BREAK. Change message to
10477 `can't break line'.
10478 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
10480 * troff/input.c: Add WARN_BREAK to warning_table. Include
10481 WARN_BREAK in DEFAULT_WARNING_MASK.
10483 * tty/tmac.tty: Add definition of \(+-.
10485 * groff.sh: Remove `--' option to set command.
10487 * dvi/devdvi/texsy.map: Remove duplicate md entry.
10489 * ps/devps/eqnchar: Better definition of cdot using md.
10490 * dvi/devdvi/eqnchar: Likewise.
10491 * xditview/devX100/eqnchar: Likewise.
10492 * xditview/devX75/eqnchar: Likewise.
10493 * eqn/lex.c: Add definition of cdot.
10495 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
10497 * troff/input.c (get_optional_char): New function.
10498 * troff/input.c (set_page_character): Use get_optional_char(),
10499 rather than has_arg() and tok.get_char(1).
10500 * troff/env.c (tab_character, leader_character, hyphen_char,
10501 field_characters): Likewise.
10502 (margin_character): Likewise. Also always delete the
10503 margin_character_node.
10505 * troff/input.c (token::get_char): Use token::description.
10507 * troff/input.c (has_arg): Don't skip over tab and \}.
10508 * troff/number.c (start_number): Give a warning if the number
10509 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
10511 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
10513 * troff/input.c (empty_name_warning, non_empty_name_warning): New
10515 (get_name, get_long_name): Use these. Rename `warn' argument to
10518 * troff/node.c (get_fontno): Test that the symbol is not null.
10520 * troff/input.c (token::description): New function.
10521 * troff/number.c (parse_term): Use token::description in `numeric
10522 expression expected' message.
10523 * troff/groff.h: Add WARN_MISSING.
10524 * troff/number.c (start_number): New function.
10525 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
10526 get_incr_number): Use start_number().
10527 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
10529 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
10530 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
10532 * troff/input.c (token::get_char): Use WARN_MISSING.
10533 * troff/input.c (token::delimiter): Use token::description.
10534 * troff/env.c (environment_switch): Back out Aug 3 change.
10535 * troff/input.c (has_arg): Skip over \}s and tabs but give a
10537 * troff/token.h (token::tab): New function.
10538 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
10539 * troff/reg.c (alter_format): Likewise.
10540 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
10542 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
10544 * troff (most files): Redo warnings. Divide warnings into various
10545 categories; warning() has an additional first argument indicating
10546 the category it falls into.
10547 * troff/input.c (main): -w now takes an argument. New option -W.
10548 (enable_warning, disable_warning): New functions.
10550 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
10551 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
10553 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
10555 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
10556 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
10557 * xditview/devX75/eqnchar: Likewise.
10558 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
10560 * eqn/other.c: When bar or over applies to a single character
10561 don't produce an overline_box or an underline_box. Instead produce
10562 an accent_box or an underaccent_box, with the accent a line
10563 whose width is accent_width. New classes underaccent_box,
10564 overline_char_box and underline_char_box.
10565 * eqn/box.h: Move overline_box, underline_box, accent_box class
10566 declarations into eqn/other.c. Add declarations of
10567 make_underline_box, make_overline_box, make_accent_box.
10568 * eqn/eqn.y: Call make_overline_box, make_underline_box
10569 make_accent_box instead of constructors.
10570 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
10572 * eqn/other.c: Add accent_box::~accent_box.
10573 * eqn/box.h: Declare it.
10575 * groff.sh: With -Tps, use eqn -D.
10577 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
10579 (underline_box::output): Similarily.
10580 (accent_box::output): Use \Z.
10582 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
10585 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
10587 * troff/div.c (top_level_diversion::transparent_output(unsigned
10588 char)): Use asciify.
10589 * troff/input.c (asciify): Don't make it static.
10590 * troff/token.h (asciify): Declare it.
10592 * troff/input.c (get_name, get_long_name, token::get_char,
10593 token::delimiter): Add an extra default argument which says
10594 whether a warning should be printed.
10595 * troff: Pass a non-zero argument to one of these rather than
10596 printing a warning directly.
10598 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
10600 * troff: Consistently use symbol::is_null.
10602 * troff/dictionary.h: Move some inline functions into
10605 * troff/request.h: Move inline functions into input.c.
10606 (request_or_macro::invoke): Make it pure.
10608 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
10609 * troff/input.c (init_input_requests): Use class constant_int_reg.
10610 (class compatible_reg): Deleted.
10611 * troff/div.c (init_div_requests): Use class constant_int_reg.
10612 (class last_post_line_extra_space_reg): Deleted.
10614 * troff/env.c (tab_character): Don't change the tab character if
10615 we get an invalid argument.
10616 (hyphen_char): Similarily.
10618 * troff/reg.c (alter_format): Check that nm is not null.
10620 * Makefile, groff.sh: Make it possible to customize the commands
10621 used for printing PostScript and dvi files. Also make it possible
10622 to customize the path used by groff.sh.
10624 * eqn/eqn.y: Make `left' right associative.
10626 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
10628 * pic/pic.h: Added definition of M_SQRT2 for those systems that
10631 * pic/pic.h: Removed definition of INT_MAX.
10633 * troff/node.c (italic_corrected_node::vertical_extent): Omit
10636 * troff/input.c (token::next): Handle \R like \n.
10638 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
10640 * ps/tmac.pc (PSPIC): Simplify.
10642 * troff/env.c (tab_stops::to_string):
10643 * pic/pic.y (object_type_name):
10644 * pic/troff.c (simple_output::line):
10645 * pic/tex.c (tex_output::spline):
10646 * pic/object.c (object_spec::make_object):
10647 * tbl/main.c (process_data): Add cases to switch statements to
10648 avoid cfront warnings. (Some of these are spurious, since the
10649 switch already has a default case.)
10651 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
10652 `ps-'. Don't test systat; instead check number of arguments to
10655 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
10657 * macros/tmac.e: Do not decrease the page offset by 0.5i.
10659 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
10660 Unlink the file as soon as we have opened it, so that we don't
10661 have to bother with signal handlers.
10662 (handler): Deleted.
10663 (fatal_error_exit): Deleted.
10664 (main): Don't call signal.
10666 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
10668 * dvi/devdvi/Makefile: Use the -k option with S and MI.
10670 * pic/pic.y: If there is a label, or an nth construction before
10671 the first `.' in the argument to `with', ignore it and generate a
10673 * pic/lex.c (lex_warning): New function.
10675 * tbl/table.c (table::init_output): In section keep and release
10676 macro, use 0 indent when diverting and the correct indent when
10679 * troff/input.c (interpolate_number_format): Do not interpolate
10680 anything if the number register is not defined.
10682 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
10684 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
10686 * ps/devps/prologue (PICTURE): Set components of graphics state to
10687 their default values.
10689 * ps/devps/text.enc: Add trademark
10690 * ps/devps/textmap: Add names for club, spade, heart, diamond,
10691 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
10692 * ps/devps/symbolchars: Add names for summation and product.
10694 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
10695 suchthat. Add pp. Add upper-case letters.
10697 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
10698 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
10701 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
10702 rA (right angle bracket) to ra. Introduce names for double-headed
10703 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
10704 * ps/devps/textmap: Likewise for ps device.
10705 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
10706 * tty/devascii/R.proto: Rename lA to la and rA to ra.
10707 * tty/devascii/R.proto: Likewise.
10708 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
10710 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
10712 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
10714 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
10717 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
10719 * troff/div.c (when_request): Use symbol::is_null rather than
10720 has_arg to determine whether we have an argument.
10721 (change_trap): Remove the trap if we get an invalid number. Give
10722 an error if we don't get at least the macro name.
10723 (diversion_trap): Remove trap if we get an invalid name or number.
10725 * troff/env.c (environment_switch): Pop if we get an invalid
10726 symbol or numeric expression.
10728 * troff/input.c (do_define_macro): If EOF is encoutered while
10729 defining the macro, do tok.next() before returning.
10731 * troff/token.h (has_arg): Move definition from here, to ...
10732 * troff/input.c (has_arg): ... here
10734 * troff/env.c (space_size): Do nothing if we get an invalid argument.
10735 * troff/input.c (shift): Likewise.
10737 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
10740 * pic/troff.c (troff_output::start_picture): Comment out calls to
10743 * eqn/main.c (do_file): Subtract 1 from current_lineno if
10744 interpret_lf_args succeeds.
10746 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
10747 \\. This avoids problems with \$N.
10749 * groff.sh: Pass -C to preprocessors.
10751 * lib/lf.c (interpret_lf_args): Be more flexible.
10753 * tbl/main.c (main): Add -C option.
10754 (table_input::get): Do not recognize TE if followed by character
10755 other than a space or newline unless -C option given.
10756 (process_input_file): Likewise for lf, TS.
10757 (process_data): Likewise for lf in text blocks.
10759 * eqn/main.c (main): Add -C option.
10760 (do_file): Don't recognize EQ, EN or lf if followed by character
10761 other than space or newline unless -C option given.
10762 * eqn/lex.c (file_input::read_line): Similarily.
10763 * eqn/eqn.h: Declare compatible_flag.
10765 * etc/soelim.c (main): Add -C option.
10766 (interpret_lf_args): Use version in libgroff.
10769 * pic/main.c (main): Add -C option, which sets compatible_flag.
10770 (top_input::get), (top_input::peek): If -C option not given,
10771 do not recognize .PS/.PE/.PF/.lf if followed by a character
10772 other than space or newline.
10773 * pic/lex.c (file_input::read_line): Similarily.
10774 * pic/pic.h: Add declaration of compatible_flag.
10776 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
10778 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
10780 * troff/node.c, troff/node.h: Add `asciify' methods to classes
10781 derived from node. New class space_char_hmotion_node.
10782 * troff/input.c (asciify_macro): New function.
10783 * troff/input.c (init_input_requests): New request `asciify' bound
10785 * macros/mm.diff: New file.
10786 * Makefile: In install.mm target use `patch' to apply
10789 * troff/input.c (macro::print_size): Just print the size in bytes.
10791 * troff/div.c (return_request): Correct the argument
10794 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
10796 * troff/node.h (class composite_node): Add sz member.
10797 * troff/node.c (composite_node::size): Return sz.
10798 * troff/input.c (macro_to_node): Use the initial size in the
10799 environment as the size of the composite_node.
10801 * troff/node.c (node::zero_width_tprint): Provide a reasonable
10804 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
10806 * troff/div.c (change_trap): If we get a bad number expression,
10809 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
10811 * lib/matherr.c (matherr): Define this only if math.h defines
10814 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
10816 * troff/div.c (macro_diversion::distance_to_next_trap): If there
10817 no diversion trap return vunits(INT_MAX - vresolution).
10819 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
10821 * troff/input.c (do_zero_width): New implementation that doesn't
10822 use a temporary environment. Use instead:
10823 (token::add_to_node_list): New function.
10824 * troff/env.c (environment::get_prev_char_height),
10825 (environment::get_prev_char_height),
10826 (environment::get_prev_char_skew): New functions.
10827 (environment::get_prev_char): New function.
10828 (environment::get_prev_char_width): Change to use get_prev_char.
10829 (init_env_request): Implement new registers .cht, .cdp, .csk.
10830 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
10831 \Z being processed in a separate environment.
10833 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
10835 * tbl/table.c: Removed TABLE_BOTTOM_REG.
10837 * tbl/table.c (table::init_output): In the section release macro,
10838 give a warning message if the section won't fit on one page.
10840 * tbl/table.c (table::do_top): Emit table keep only if table is
10842 (table::do_bottom): Likewise for table release.
10843 (table::table), (table::add_vertical_rule): Remove reference to
10845 * tbl/table.h: Remove keep member.
10847 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
10848 SECTION_RELEASE_MACRO, if there's not enough space before the next
10849 trap to output the diversion, call T# ourselves, set
10850 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
10851 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
10852 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
10853 vertical position and return to it before turning traps on again.
10855 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
10857 * troff/node.c, troff/node.h: In classes derived from node,
10858 replace prev_char_width method by last_char_node method.
10859 * troff/env.c (environment::get_prev_char_width): Use
10860 node::last_char_node rather than node::get_prev_char_width.
10862 * Makefile: Added comment about -fno-inline on 68030-based
10865 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
10866 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
10867 expressions using sizeof to int.
10868 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
10870 * macros/tmac.e (TS): Don't move @f back past the current
10873 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
10875 * ps/ps.c (main): Buffer stderr.
10876 * dvi/dvi.c (main): Likewise.
10877 * tty/tty.c (main): Likewise.
10879 * ps/ps.c (ps_printer::do_import): Improve error handling.
10881 * troff/input.c (abort_request): Use asciify.
10883 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
10884 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
10885 type of first argument int rather than char. This works around a
10886 bug on the 68030 based Apollo using g++ 1.37.1.
10888 * tbl/table.h (class table): Add `keep' member.
10889 * tbl/table.c (table::table): Initialize `keep'.
10890 (table::add_vertical_rule): Set `keep' to 1.
10891 (table::do_top): Only emit table keep macro is `keep' is non-zero.
10892 (table::do_bottom): Likewise for table release macro.
10893 (table::do_row): Emit section keep macro even if the row is 0.
10895 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
10897 * macros/tmac.e (@C): Preserve the font family across the change
10900 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
10902 * lib/font.c: Initialize font::hor and font::vert to 1.
10903 (font::load_desc): Check the values of font::hor and font::vert.
10905 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
10906 be included in a C compilation.
10907 (iftoa): Use INT_DIGITS. Include lib.h.
10909 (as_string): Likewise.
10910 * tbl/table.c: Removed definition of INT_DIGITS.
10911 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
10912 * troff/input.c (input_input_requests): Likewise.
10913 * ps/ps.c (make_encoding_name): Likewise.
10914 (ps_printer::set_style): Likewise.
10915 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
10917 * tty/devascii/R.proto: Map fm onto '.
10918 * tty/devlatin1/R.proto: Likewise.
10920 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
10922 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
10923 argument to \w is at a different input level.
10925 * tbl/table.c (table::init_output): Define a new macro
10926 REPEATED_VPT_MACRO, like vpt but if in a diversion also
10927 transparently outputs itself.
10928 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
10930 (table::do_row): Likewise.
10932 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
10933 TRANSPARENT_STRING_NAME.
10935 * tbl/table.c (table::init_output): In the table release macro
10936 print an error message and don't produce any output if after
10937 issuing the need request the table still will not fit. Also
10938 remove the diversion after bringing it back.
10940 * tbl/table.c (table::init_output): Define a new macro
10941 REPEATED_MARK_MACRO, like mk but if in a diversion also
10942 transparently outputs itself.
10943 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
10944 is necessary because .TH might not call .T#.
10945 (table::do_top): Likewise TOP_REG.
10946 (table::define_bottom_macro): If TOP_REG is no longer valid, use
10947 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
10948 table header might contain just the two top rules.
10950 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
10952 * troff/div.c: Implement new request `ptr' to print all traps.
10954 * troff/env.c (init_env_requests): Implement `.tabs' reg with
10955 init_string_env_reg.
10956 * troff/env.c (class tab_reg): Deleted.
10958 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
10960 * troff/div.c: New number register .pn returns the number of the
10961 next page as set by the pn request.
10963 * macros/tmac.an: Redid headers and footers. Number each manual
10964 entry starting from 1 unless \nC is > 0, like Sun. Added an
10965 optional 5th argument to .TH which specifies the manual name and
10966 appears in the center of the header. Understand the X, P and D
10967 registers like Sun.
10969 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
10971 * troff/env.c (init_env_requests): New number register `.lt' to
10972 return the title length.
10974 * troff/node.h (class transparent_dummy_node): New class.
10975 * troff/node.c (class transparent_dummy_node): Provide member
10977 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
10980 * troff/input.c (token::next): New escape sequence \).
10981 * troff/input.c (get_copy): Recognize \) in copy mode.
10983 * troff/input.c (input_stack::clear): New function.
10984 * troff/input.c (exit_request): Use input_stack::clear.
10986 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
10987 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
10989 * troff/env.c: Move set_page_character to input.c. Move
10990 page_character to input.c also.
10991 * troff/env.c (title): Split off the reading of the parts of the
10992 title into read_title_parts.
10993 * troff/input.c (read_title_parts): New function. Check the
10994 input_level when testing whether a token matches the delimiter.
10996 * troff/input.c (exit_request): New function.
10997 * troff/input.c (init_input_requests): Bind ex request to
10998 exit_request rather than exit_groff.
11000 * troff/input.c (exit_groff): Call tok.next() before
11001 process_input_stack().
11003 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
11005 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
11006 * troff/env.h: ditto.
11007 * troff/input.c: ditto.
11009 * troff/env.c (environment::is_empty): Test pending_lines.
11011 * troff/env.c (environment::have_pending_lines): Removed.
11013 * troff/input.c: Add request to flush pending lines from the
11016 * troff/env.c, troff/env.h: Add automatic widow control feature.
11018 * troff/input.c (exit_groff): Do process_input_stack() after
11019 do_break() but before setting exit_flag to 2.
11021 * troff/input.c: Remove FLUSH_PENDING_LINES and
11022 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
11023 environment after END_TRAP token seen, but only if there aren't
11024 any more traps still unfinished.
11025 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
11027 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
11029 * troff/env.c: Rename the `retain_size' member of class
11030 pending_output_line to `no_fill'.
11032 * troff/env.c (title): When the line is output, make the
11033 retain_size argument !fill.
11035 * troff/node.h: Add `hyphenated' member to struct breakpoint.
11036 * troff/node.c (space_node::get_breakpoints),
11037 (dbreak_node::get_breakpoints): Fill this in.
11038 * troff/env.c: Allow specification of maximum number of
11039 consecutive hyphenated lines.
11041 * troff/env.c (environment::is_empty): Add test for !current_tab.
11043 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
11045 * troff/env.c (environment::hyphenate_line): Don't completely give
11046 up if the word is not to be hyphenated; continue so that breaks
11047 can be made at break_char_node's.
11049 * lib/lib.h: Only define INT_MAX if it's not already defined;
11050 undef INT_MIN if it's already defined.
11052 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
11054 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
11055 This works around a bug in AT&T C++ 2.0 used with an ANSI C
11058 * macros/tmac.an (an-header): Set no-space mode.
11060 * macros/tmac.an (TH): Start a new page if necessary.
11062 * Started using ChangeLog at version 0.4.
11065 version-control: never