1 2001-12-24 Ruslan Ermilov <ru@FreeBSD.org>
3 * tmac/doc-common (Dt): Change output of architecture strings.
4 Do some syntax cleanup.
5 * tmac/groff_mdoc.man: Updated.
7 2001-12-23 Werner LEMBERG <wl@gnu.org>
9 Adding an `itc' request (input line trap accepting \c).
11 * src/roff/troff/env.h (environment): New member
12 `continued_input_trap'.
13 Make `do_input_trap' a friend function instead of `input_trap'.
14 * src/roff/troff/env.cc (environment::environment,
15 environment::copy): Updated.
16 (environment::newline): Implement it.
17 (do_input_trap): New function.
18 (input_trap): Call `do_input_trap'.
19 (input_trap_continued): New function.
20 (init_env_requests): Updated.
21 * src/roff/troff/TODO: Updated.
23 * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
26 * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
28 2001-12-22 Ruslan Ermilov <ru@FreeBSD.org>
30 * tmac/doc-common, tmac/doc-syms: Small updates.
32 2001-12-22 Colin Watson <cjwatson@debian.org>
34 * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
36 2001-12-22 Bernd Warken <bwarken@mayn.de>
40 2001-12-22 Werner LEMBERG <wl@gnu.org>
42 * src/preproc/grn/grn.man: Updated.
44 2001-12-22 Solar Designer <solar@openwall.com>
46 * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
49 2001-12-19 Werner LEMBERG <wl@gnu.org>
51 Implement a fallback character request `.fchar'.
53 * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
54 (is_fallback): New inline function.
55 * src/roff/troff/input.cc (do_define_character): New function.
56 (define_character): Call `do_define_character'.
57 (define_fallback_character): New function.
58 (init_input_requests): Add `fchar'.
59 (charinfo::charinfo): Updated.
60 (charinfo::set_macro): New argument to set `fallback' flag.
61 * src/roff/troff/node.cc (make_glyph_node, make_node,
62 node::add_char): Check `fallback' flag.
63 * NEWS, man/groff_diff.man, man/groff_man: Updated.
65 2001-12-16 Werner LEMBERG <wl@gnu.org>
67 * groff.texinfo: Document exact search algorithm for glyphs.
69 2001-12-15 Werner LEMBERG <wl@gnu.org>
71 * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
72 the left side of $(MANPAGES) rule to make it always non-empty.
74 2001-12-14 Werner LEMBERG <wl@gnu.org>
76 * src/roff/troff/input.cc (default_black): Define default color
77 `black' if not yet defined.
79 2001-12-13 Werner LEMBERG <wl@gnu.org>
81 Implement new string-valued register `.fn' to return the current
82 real (internal) font name.
84 * env.cc (environment::get_font_name_string): New function.
85 (init_env_requests): Add `.fn' register.
86 * env.h (environment): Updated.
87 * node.cc (font_info): Make `get_font_name' a friend.
88 (get_font_name): New function.
91 * man/groff_diff.man, man/groff.man, NEWS: Updated.
93 2001-12-12 Ralph Corderoy <ralph@inputplus.demon.co.uk>
95 * src/preproc/eqn/main.cc (inline_equation): Fix typos.
97 2001-12-12 Werner LEMBERG <wl@gnu.org>
99 * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
101 2001-12-10 Gaius Mulley <gaius@glam.ac.uk>
103 * man/groff_diff.man: Adding documentation for \O.
105 2001-12-10 Werner LEMBERG <wl@gnu.org>
107 * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
108 (scanArguments): Use PROG_PREFIX for the name of the troff binary.
110 2001-12-09 Werner LEMBERG <wl@gnu.org>
112 * man/roff.man: Revised.
113 * src/roff/groff/groff.man: Replace man page references with a
116 2001-12-09 Bernd Warken <bwarken@mayn.de>
118 * man/roff.man: Completely rewritten.
120 2001-12-06 Ralph Corderoy <ralph@inputplus.demon.co.uk>
122 * src/preproc/eqn/main.cc (inline_equation): Improve error message.
124 2001-12-05 Werner LEMBERG <wl@gnu.org>
126 * src/roff/troff/input.cc (get_delim_file_name): Removed since no
128 * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
129 order of initializers.
132 2001-12-05 Gaius Mulley <gaius@glam.ac.uk>
134 * doc/groff.texinfo: Fix documentation of \O.
136 * src/devices/grohtml/html-text.cc (html_text::do_indent,
137 html_text::do_table, html_text::do_emittext, html_text::do_para):
138 Use `const' for first argument.
139 (html_text::do_table): Use cast.
140 * src/devices/grohtml/html-text.h: Updated.
141 * src/devices/grohtml/output.cc (simple_output::put_string): Add
142 method for `const string &s'.
143 * src/devices/grohtml/html.h: Updated.
144 * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
145 (ANCHOR_TEMPLATE): Modified.
146 (manufacture_headings): New global variable to handle `-h' option.
147 (is_subsection): Removed.
148 (char_buffer::add_string): Add `const' to first argument.
149 Protect against invalid string argument.
150 Add method for `const string &s'.
151 (text_glob): Completely redesigned.
152 (page): Use `const' for strings and remove string length variable.
153 (page::add_html): Removed.
154 (page::add_end_encode): New member function.
155 (to_unicode): Moved upwards.
156 (title_desc, header_desc): Updated.
157 (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
159 (html_printer::is_bold, html_printer::make_bold): New member
161 (html_printer::end_of_line): Updated.
162 (generate_img_src, html_printer::do_auto_image,
163 html_printer::do_title, html_printer::write_header,
164 html_printer::determine_header_level, html_printer::do_heading,
165 html_printer::do_linelength, html_printer::do_pageoffset,
166 html_printer::do_indentation, html_printer::do_tempindent,
167 html_printer::do_indentedparagraph, html_printer::do_break,
168 html_printer::flush_sbuf, get_html_translation,
169 html_printer::begin_page, html_printer::special): Rewritten to get
170 rid of static string length limit.
171 (html_printer::troff_tag): Added `.no-auto-rule'.
172 (html_printer::flush_globs): Small fix.
173 (html_printer::determine_space): Don't compute `space_width'.
174 (html_printer::translate_to_html): Renamed to ...
175 (html_printer::emit_html): This (with updates).
176 (html_printer::write_header): Implement `-h' option.
177 (html_printer::draw): Remove commented-out code. Handle `F'
179 (html_printer::add_char_to_sbuf): Removed.
180 (html_printer::add_to_sbuf): Rewritten.
181 (html_printer::sbuf_continuation): Fixed.
182 (html_printer::seen_backwards_escape, reverse,
183 html_printer::remove_last_char_from_sbuf): Removed.
184 (char_translate_to_html, str_translate_to_html): Removed.
185 (html_printer::overstrike): New function member.
186 (html_printer::set_char): Use it.
187 (html_printer::do_body): New function member.
188 (html_printer::~html_printer): Use it.
189 (main): Handle `-h' option.
191 * src/devices/grohtml/grohtml.man: Document -h switch.
193 * src/preproc/html/pre-html.cc: Include searchpath.h
194 Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
195 (get_resolution): New function.
196 (checkImageDir): Use `0777' permissions in mkdir()
197 (write_start_image): Rewritten to use `\O[5...]'.
198 (createImage, generateImages): Updated.
199 (main): Handle `F' and `h' options.
200 Use `get_resolution'.
202 * src/roff/troff/input.cc (begin, end, image): Removed.
203 (do_suppress): Take parameter.
204 Handle modified syntax of `\O'.
205 (token::next): Updated.
206 (init_markup_requests): Removed.
209 * src/roff/troff/div.h: Add declaration for begin_page().
211 * tmac/color-html.tmac: Removed. Contents moved to...
212 * tmac/html.tmac: Here. Set background color.
213 * tmac/color.tmac: Removed. Contents moved to...
214 * tmac/ps.tmac: Here.
215 * tmac/www.tmac: Remove the title command when generating images
217 (NO_AUTO_RULE): New macro.
218 (HTML_DO_IMAGE): Use revised `\O' escapes.
219 * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
221 2001-12-02 Werner LEMBERG <wl@gnu.org>
223 * tmac/groff_mdoc.man: Fix typo.
225 2001-12-01 Colin Watson <cjwatson@debian.org>
227 * man/roff.man: Fix typo.
229 2001-11-29 Werner LEMBERG <wl@gnu.org>
231 * src/lib/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
234 * src/roff/troff/input.cc (read_draw_node): Emit error message if
235 more than one argument to \D'f ...'.
237 * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
239 2001-11-28 Werner LEMBERG <wl@gnu.org>
241 * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
244 * tmac/groff_man.man: Minor cosmetic fix.
246 2001-11-27 Werner LEMBERG <wl@gnu.org>
248 * src/roff/groff/groff.man, tmac/groff_tmac.man,
249 tmac/groff_www.man: s/mwww/www/.
251 2001-11-26 Werner LEMBERG <wl@gnu.org>
253 * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
254 * configure: Regenerated.
255 * win32-diffs: Updated.
257 * tmac/groff_mwww.tmac: Renamed to ...
258 * tmac/groff_www.tmac: This.
259 * tmac/mwww.tmac: Removed.
260 * NEWS, tmac/Makefile.sub: Updated.
262 2001-11-21 Werner LEMBERG <wl@gnu.org>
264 * doc/groff.texinfo: Improve documentation of the `\v' escape.
265 Fix explanation of `\D' and `rt'.
267 2001-11-20 Werner LEMBERG <wl@gnu.org>
269 * tmac/an-old.tmac (an-header): Set header length equal to page
271 * doc/groff.texinfo: Improve documentation of `ne' request. Other
275 2001-11-19 Werner LEMBERG <wl@gnu.org>
277 * NEWS, man/Makefile.sub: Updated.
279 2001-11-19 Bernd Warken <bwarken@mayn.de>
281 * man/ditroff.man: New file.
283 2001-11-17 Werner LEMBERG <wl@gnu.org>
285 * man/groff_differences.man: Renamed to ...
286 * man/groff_diff.man: This. Updated.
287 * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
289 * src/preproc/html/pushbackbuffer.cc: Renamed to ...
290 * src/preproc/html/pushback.cc: This. Updated.
291 * src/preproc/html/pushbackbuffer.h: Renamed to ...
292 * src/preproc/html/pushback.h: This.
293 * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
296 * src/libs/libgroff/htmlindicate.cc: Renamed to ...
297 * src/libs/libgroff/htmlhint.cc: This.
298 * src/libs/libgroff/Makefile.sub: Updated.
300 * tmac/an-old.tmac (an-end): Fix page length.
302 2001-11-16 Werner LEMBERG <wl@gnu.org>
304 * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
305 * man/Makefile.sub: Include groff_differences.man.
306 * VERSION: Set to 1.18.
307 * REVISION: Set to 0.
309 2001-11-16 Bernd Warken <bwarken@mayn.de>
311 * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
312 the second dot (or ending macro name) to end a macro.
313 * doc/groff.texinfo: Doc fix.
315 2001-11-16 Ruslan Ermilov <ru@FreeBSD.org>
317 * tmac/doc-common (doc-header): Handle very long document titles
320 2001-11-16 Werner LEMBERG <wl@gnu.org>
322 * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
324 2001-11-15 Werner LEMBERG <wl@gnu.org>
326 * src/roff/troff/troff.man: Revised and split into troff.man and...
327 * man/groff_differences.man: New file.
330 2001-11-13 Werner LEMBERG <wl@gnu.org>
332 * tmac/an-old.tmac (TS, TE): New macros for table support.
334 2001-11-12 Werner LEMBERG <wl@gnu.org>
336 * src/include/lib.h: Provide a fix for emx to not include
339 2001-10-27 Werner LEMBERG <wl@gnu.org>
341 * src/roff/troff/input.cc (substring_macro): Fix computation of
344 2001-10-20 Werner LEMBERG <wl@gnu.org>
346 Undo change from 2001-08-28.
348 * src/roff/troff/input.cc (have_input): New global variable.
349 (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
350 in compatibility mode.
351 (process_input_stack): Use it.
353 2001-10-19 Ruslan Ermilov <ru@FreeBSD.org>
355 * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
356 being handled as end-of-sentence characters,
358 2001-10-10 Gaius Mulley <gaius@glam.ac.uk>
360 * src/roff/troff/input.cc (file_iterator): New members
361 `suppress_newline_flag' and `seen_escape'.
362 (file_iterator::next_file): Updated.
363 (file_iterator::fill): Use it.
364 (string_iterator): New member `suppress_newline_flag'.
365 (string_iterator::fill): Set it.
366 (get_color_element): Use MAX_COLOR_VAL.
367 * src/roff/troff/env.cc (environment): Remove `need_eol'.
368 (no_fill): Don't set `env->ignore_next_eol'.
369 (environment::newline): Handle `eol' tag properly.
371 (environment::add_html_tag): Set `env->ignore_next_eol'.
373 * src/roff/troff/env.h (environment): Updated.
375 * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
377 (html_printer::outstanding_eol): New member function.
378 (html_printer::do_title): Use new functions.
379 (html_printer::troff_tag): Test `id_eol_ce'.
381 2001-10-10 Werner LEMBERG <wl@gnu.org>
383 * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
384 files work with -C also.
386 2001-10-05 Werner LEMBERG <wl@gnu.org>
388 * doc/pic.ms: Minor fix.
389 * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
390 as a valid command line switch.
391 * src/devices/grohtml/post-html.cc (main): Ditto.
393 * src/devices/grohtml/grohtml.man: Updated.
394 * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
396 2001-10-04 Werner LEMBERG <wl@gnu.org>
398 Implementing color support in troff, pic, grops, and grohtml. These
399 changes are based on a major patch provided by Gaius Mulley
402 New request: `defcolor', supporting rgb, cmy, cmyk, and gray
403 definitions with both hex values and fractions.
405 New escapes: \m and \M for drawing and background color,
406 respectively. This corresponds to the troff output commands `m'
409 groff and troff accept command line switch `-c' to disable color
410 output (which is automatically disabled in compatibility mode).
412 New scaling indicator `f' for fractions (1f = 65536u).
414 New conditional operator `m' to test for defined colors with `if'
417 New keywords `color' (or `colour', `colored', `coloured'), `outline'
418 (or `outlined'), and `shaded' added to pic.
420 * src/include/color.h: New file.
421 * src/include/driver.h: Include it.
422 * src/include/printer.h: Include color.h.
423 (environment): New members `col' and `fill'.
424 (printer): Remove `adjust_arc_center' member function.
425 * src/include/Makefile.sub: Updated.
427 * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
429 Handle `m' and `DF' troff commands.
430 * src/libs/libgroff/color.cc: New file.
431 * src/libs/libgroff/Makefile.sub: Updated.
433 * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
435 (createImage): Fix computation of `y2'.
437 (buffer::write_file_html): Remove calls to `stop'.
439 * src/preproc/pic/common.h (common_output): New abstract function
440 members `set_color', `reset_color', `get_last_filled', and
442 * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
443 (object_spec): Add members `shaded' and `outlined'.
444 * src/preproc/pic/output.h (output): `command' is now abstract.
445 New function members `set_color', `reset_color', `get_last_filled',
446 and `get_outline_color'.
447 * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
448 `outline[d]', and `shaded'.
449 * src/preproc/pic/object.cc (output::command): Removed.
450 (output::set_location): Moved to output.h.
451 (graphic_object): Add protected members `outline_color' and
453 Add member functions `set_outline_color', `get_outline_color', and
455 (closed_object): Add member function `set_fill_color'.
456 Add member `color_fill'.
457 (graphic_object::print_text): Use `out->set_color' and
459 (box_object::print, ellipse_object::print, circle_object::print,
460 line_object::print, spline_object::print, arc_object::print): Ditto.
461 (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
462 * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
463 `SHADED', making them `%left'.
464 Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
465 * src/preproc/pic/tex.cc (tex_output): New dummy function members
466 `set_color', `reset_color', `get_last_filled', and
468 * src/preproc/pic/troff.cc (simple_output): New abstract function
469 members `set_color', `reset_color', and `get_last_filled'.
470 (simple_output::polygon, simple_output::circle,
471 simple_output::ellipse): Use `get_last_filled'.
472 (troff_output): New members `last_filled' and `last_outlined'.
473 New function members `set_color', `reset_color', `get_last_filled',
474 and `get_outline_color'.
475 (troff_output::finish_picture): Use `reset_color'.
476 (troff_output::set_fill): Test `last_filled'.
477 * src/preproc/pic/pic.man: Updated.
479 * src/roff/groff/groff.cc (main): Implement `-c' option.
480 (synopsis, help): Updated.
481 src/roff/groff/groff.man: Updated.
483 * src/roff/troff/troff.h: Include color.h.
484 (warning_type): Add WARN_COLOR.
485 * src/roff/troff/env.h (environment): New members
486 `{cur,prev}_{glyph,fill}_color'.
487 New member functions `get_{prev_,}{glyph,fill}_color'.
488 * src/roff/troff/env.cc: Initialize and implement them.
489 * src/roff/troff/input.cc: New global variable `disable_color_flag'.
490 Replace `NULL' with `0' everywhere for consistency.
491 (lookup_color, default_black, do_glyph_color, do_fill_color,
492 get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
493 define_color): New functions.
494 (token::next): Implement \M and \m escapes.
495 (do_if_request): Implement `m' operator.
497 (main): Implement `-c' option.
498 (init_markup_requests): Add `defcolor' request.
499 (warning_table): Add `color' warning.
500 * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
502 * src/roff/troff/node.cc (troff_output_file): New members
503 `current_{page,glyph}color'. New member functions `put_hex',
504 `glyph_color', and `fill_color'.
505 (glyph_color_node::*, fill_color_node::*): Implement it.
506 * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
507 (parse_term): Add support for `f'.
508 * src/roff/troff/troff.man: Updated.
510 * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
512 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
513 * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
515 * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
516 (tag_definition): Use `void *' for arg1.
517 (html_text): New member functions `do_color' and `done_color'.
518 Use `void *' for second parameter of `push_para' member function.
519 New `push_para' member function with a single parameter.
520 Use `char *' for parameter of `issue_table_begin' member funtion.
521 New `issue_color_begin' member function.
522 * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
524 (html_text::issue_color_begin): New function.
525 (html_text::issue_table_begin): Use `char *' for parameter.
526 (html_text::start_tag, html_text::shutdown,
527 html_text::check_emit_text): Updated.
528 (html_text::push_para): Use `void *' for second parameter.
529 Add same function with only one parameter.
530 (html_text::do_*): Updated.
531 (html_text::do_color, html_text::done_color): New functions.
532 * src/devices/grohtml/post-html.cc (style): New member `col'.
533 Mew member `style' with 6 parameters.
534 (style::style, style::operator==): Updated.
535 (html_printer::do_font): Use it.
536 (html_printer::draw): Add dummy entry for `F'.
537 (html_printer::set_char): Updated.
538 * src/devices/grohtml/grohtml.man: Updated.
540 * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
541 trailing zeroes removed.
542 (ps_printer): New members `sbuf_color', `fill_color', and
544 Removed member `fill'.
545 New member function `set_color'.
546 (ps_printer::ps_printer, ps_printer::set_char): Updated.
547 (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
548 ps_printer::fill_path, ps_printer::draw): Use `set_color'.
550 * tmac/color-html.tmac, tmac/color.tmac: New files.
551 * tmac/troffrc: Include them.
552 * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
553 * tmac/Makefile.sub: Updated.
555 * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
556 man/groff.man: Updated.
557 * font/devps/prologue.ps: Define FC and CO functions.
559 2001-10-04 Gaius Mulley <gaius@glam.ac.uk>
561 Fix incorrect cropping of images and incorrect handling of special
562 characters. Fix handling of file names in \O.
564 * src/include/geometry.h: New file.
565 * src/libs/libgroff/geometry.cc: New file.
566 * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
568 * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
570 (do_suppress): Updated.
571 * src/roff/troff/node.cc: Include geometry.h.
572 (troff_output_file::flush_tbuf): Fixed parameters to
573 `check_output_limits'.
574 (troff_output_file::check_charinfo): Ditto.
575 (troff_output_file::determine_line_limits): Add support for `Da'
578 * src/devices/grohtml/post-html.cc (str_translate_to_html):
579 Add new parameter `is_special' to decode special characters from
581 (html_printer::do_title, html_printer::do_heading,
582 html_printer::do_indentedparagraph,
583 html_printer::translate_to_html, html_printer::special): Updated.
585 2001-10-03 Werner LEMBERG <wl@gnu.org>
587 * Makefile.sub (DISTCLEANFILES): Add stamp-h.
588 Fix entry for config.h.
589 * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
590 * tmac/troffrc: Translate nonbreakable space character to `\~'.
591 * src/preproc/eqn/eqn.man: Document -d command line option.
593 2001-09-27 Werner LEMBERG <wl@gnu.org>
603 instead of the old code (`.ad .hy' after the table) to suppress
604 incorrect hyphenation for grohtml output.
606 2001-09-22 Werner LEMBERG <wl@gnu.org>
608 * man/groff_font.man, man/groff_out.man: Minor fixes.
610 2001-09-20 Werner LEMBERG <wl@gnu.org>
612 * PROBLEMS: Updated, reordered. Improved EPS section (thanks to
613 Arnold Robbins <arnold@skeeve.com>).
615 2001-09-09 Werner LEMBERG <wl@gnu.org>
617 * configure: Regenerated with autoconf 2.52.
619 * doc/groff.texinfo: Complete revision of indices.
621 2001-09-07 Werner LEMBERG <wl@gnu.org>
623 * doc/Makefile (clean): Updated to delete all indices.
625 2001-09-05 Werner LEMBERG <wl@gnu.org>
627 * src/roff/troff/troff.man: Remove superfluous line.
629 * tmac/s.tmac: Enable all warnings only if no -W or -w option is
630 given on the command line (or rather, if only the default warnings
633 2001-09-03 Werner LEMBERG <wl@gnu.org>
635 * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
636 use .ne for TTY devices.
638 2001-08-31 Werner LEMBERG <wl@gnu.org>
640 * src/roff/troff/token.h, src/roff/troff/input.cc:
641 s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
643 2001-08-28 Werner LEMBERG <wl@gnu.org>
645 * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
646 * src/roff/troff/input.cc (token::next): Return
647 TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
649 (token::description): Updated.
650 (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
651 (token::add_to_node_list, token::process): Ignore
652 TOKEN_TRANSPARENT_ESCAPE.
654 2001-08-27 Werner LEMBERG <wl@gnu.org>
656 * tmac/an-old.tmac: Fix `S' string.
658 2001-08-26 Werner LEMBERG <wl@gnu.org>
660 * src/roff/troff/troff.man: Don't use .ne for TTY devices.
662 2001-08-25 Werner LEMBERG <wl@gnu.org>
664 * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
666 Many other minor fixes.
668 * configure.ac: Add message at end to inform how to compile
670 * configure: Regenerated.
672 2001-08-24 Werner LEMBERG <wl@gnu.org>
674 * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
675 Updated to latest version of libc.
677 2001-08-23 Werner LEMBERG <wl@gnu.org>
679 * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
680 Autoconf 2.50 and newer can handle this.
681 * configure: Regenerated.
683 2001-08-21 Werner LEMBERG <wl@gnu.org>
685 * doc/pic.ms: Fix typo.
686 * src/preproc/tbl/tbl.man: Document case of global options.
688 2001-08-21 Gaius Mulley <gaius@glam.ac.uk>
690 * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
691 handling of `CR' font.
693 2001-08-20 Werner LEMBERG <wl@gnu.org>
697 * src/include/lib.h: Include config.h.
698 * All C files: Ditto (if necessary).
699 * All C++ source and header files: Include lib.h first (if
702 * src/include/config.hin: New file (autogenerated by autoheader).
703 * stamp-h.in: New file.
704 * configure.ac: Updated.
705 * aclocal.m4: Add third parameters to AC_DEFINE macros.
706 (GROFF_ARRAY_DELETE): Simplified.
707 * Makefile.sub (DISTCLEANFILES): Updated.
708 Added targets for remaking config.status, config.hin, config.h,
709 stamp-h.in, and stamp-h.
710 * configure: Regenerated.
712 2001-08-19 Werner LEMBERG <wl@gnu.org>
716 2001-08-18 Sebastian Krahmer <krahmer@suse.de>
718 * src/preproc/pic/pic.y (format_number): Use do_sprintf().
719 (do_sprintf): Use snprintf().
721 2001-08-18 Werner LEMBERG <wl@gnu.org>
723 * src/libs/snprintf/*: Added an snprintf module written by Mark
725 * src/libs/libgroff/Makefile.sub: Updated.
726 * configure.ac: Add test for snprintf().
727 * Makefile.in: Updated.
728 * configure: Regenerated.
730 * src/preproc/html/pre-html.cc (make_message): Reactivate code which
733 2001-08-14 Ruslan Ermilov <ru@FreeBSD.org>
735 * tmac/doc.tmac (Ex): New implementation.
736 * tmac/doc-common, tmac/groff_tmac.man: Updated.
738 2001-08-13 Ruslan Ermilov <ru@FreeBSD.org>
740 * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
742 * tmac/groff_tmac.man: Updated.
744 2001-08-13 Werner LEMBERG <wl@gnu.org>
746 * src/preproc/tbl/tbl.man: Minor documentation update.
748 2001-08-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
750 * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
751 * configure.ac: Add declaration test for gettimeofday().
752 * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
753 * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
754 * configure: Regenerated.
756 2001-08-11 Werner LEMBERG <wl@gnu.org>
758 * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
759 * configure.ac: Add declaration test for strcasecmp().
760 * Makefile.in: Updated.
761 * configure: Regenerated.
762 * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
763 this is necessary because groff's mkstemp.cc is C++.
764 Add declaration conditionally for strcasecmp().
766 2001-08-10 Werner LEMBERG <wl@gnu.org>
768 Intergrated pic2graph, contributed by Eric S. Raymond.
770 * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
772 * Makefile.in, NEWS: Updated.
774 * src/preproc/tbl/tbl.man: Revised.
776 2001-08-09 Eric S. Raymond <esr@thyrsus.com>
778 * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
780 2001-08-09 Werner LEMBERG <wl@gnu.org>
782 * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
785 2001-08-08 Paul Eggert <eggert@twinsun.com>
787 * Makefile.sub (configure): Depend on configure.ac, not
789 * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
791 2001-08-07 Werner LEMBERG <wl@gnu.org>
793 * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
796 2001-08-06 Werner LEMBERG <wl@gnu.org>
798 * src/roff/troff/troff.man: Improve documentation of -E option.
800 2001-07-28 Ralph Corderoy <ralph@inputplus.demon.co.uk>
802 * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
805 2001-07-27 Werner LEMBERG <wl@gnu.org>
807 * src/preproc/refer/refer.cc: Undo last change.
808 * src/devices/grohtml/post-html.cc: Ditto.
810 2001-07-26 Werner LEMBERG <wl@gnu.org>
812 * src/preproc/refer/refer.cc: Include `lib.h'.
813 * src/devices/grohtml/post-html.cc: Ditto.
815 2001-07-25 Gaius Mulley <gaius@glam.ac.uk>
817 * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
818 * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
819 * Makefile.in: Comment updated.
820 * configure: Regenerated.
822 2001-07-25 Werner LEMBERG <wl@gnu.org>
824 * src/preproc/pic/pic.cc: Removed.
825 * src/preproc/pic/pic_tab.h: Removed.
826 * src/preproc/refer/label.cc: Removed.
828 * doc/Makefile (.ms.html): Don't use a file name extension in
829 argument to grohtml's -I option.
830 * Makefile.in (dist): Remove CVS directories.
831 Call `distfiles' target.
833 * src/devices/grohtml/grohtml.man: Add information about valid
834 versions of pnmtopng.
835 * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
836 name instead of number.
838 2001-07-24 Werner LEMBERG <wl@gnu.org>
840 * doc/groff.texinfo: Minor fixes.
842 2001-07-21 Gaius Mulley <gaius@glam.ac.uk>
844 * doc/Makefile (.ms.html): Put image files into a subdirectory.
847 2001-07-20 Werner LEMBERG <wl@gnu.org>
849 * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
850 * src/libs/libgroff/mkstemp.cc: New file.
851 * src/libs/libgroff/mksdir.cc: New file.
852 * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
853 (xtmpfile) [!HAVE_MKSTEMP]: Removed.
854 * src/libs/libgroff/Makefile.sub: Updated.
855 * src/include/lib.h: Add mksdir() prototype.
856 * src/include/posix.h: Define S_IXUSR if not yet defined.
858 * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
859 (createAllPages): Use mksdir() instead of current code.
860 * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
861 (main): [!HAVE_MKSTEMP]: Removed.
863 * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
864 (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
866 * configure.ac: Add tests for stdint.h, sys/time.h, and
868 Call new GROFF_xxx macros.
869 * configure: Regenerated.
870 * Makefile.in: Comments updated.
872 2001-07-20 Gaius Mulley <gaius@glam.ac.uk>
874 * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
875 instead of current code.
876 * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
877 * src/roff/groff/groff.cc (possible_command::insert_args): New
879 (main): Use it for predriver handling instead of insert_arg().
881 2001-07-19 Werner LEMBERG <wl@gnu.org>
883 * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
886 * src/include/posix.h: Define S_IWUSR if not yet defined.
888 2001-07-18 Werner LEMBERG <wl@gnu.org>
892 2001-07-18 Ruslan Ermilov <ru@FreeBSD.org>
894 * tmac/groff_mdoc.man: Document new -width and -column syntax.
895 Some other minor fixes.
896 * tmac/an-old.tmac: Add `AT' and `UC' macros.
898 2001-07-17 Gaius Mulley <gaius@glam.ac.uk>
900 Replace call to `troff' with `groff -Z' to make it aware of
903 * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
904 (troff_command, command_prefix): Removed.
905 (alterDeviceTo): Use groff.
906 (addZ): New function.
907 (char_buffer::do_html): Use it.
908 (scanArguments): Use TROFF_COMMAND.
909 (findPrefix): Removed.
911 * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
913 2001-07-17 Eric S. Raymond <esr@snark.thyrsus.com>
915 * doc/pic.ms: Documentation fixes.
917 2001-07-17 Werner LEMBERG <wl@gnu.org>
919 Replace atexit() with global destructor.
921 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
922 (xtmpfile_list_init): New global structure to deallocate
923 xtmpfile_list on exit. Its destructor inherits most code from
925 (remove_tmp_files): Deleted.
926 (add_tmp_file): Simplified.
928 2001-07-16 Werner LEMBERG <wl@gnu.org>
930 Replace strdup() with strsave().
932 * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
933 (set_papersize): Use strsave() and a_delete.
934 (main): Use strsave().
935 * src/preproc/html/pre-html.cc (make_message, createAllPages,
936 removeAllPages): Use strsave() and a_delete.
938 * configure.ac: Remove test for strdup.
939 * Makefile.in: Comment updated.
940 * configure: Regenerated.
942 2001-07-15 Werner LEMBERG <wl@gnu.org>
944 * win32-diffs: Updated.
946 2001-07-14 Werner LEMBERG <wl@gnu.org>
948 * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
949 removing the old one.
950 * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
952 2001-07-14 Ralph Corderoy <ralph@inputplus.demon.co.uk>
954 * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
956 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>
958 Merge -xwidth into -width. Add -xwidth functionality to -column
961 * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
963 (doc-do-Bl-args): Merge -xwidth code with -width. Test whether
964 string immediately following a leading dot starts with a valid mdoc
966 Add similar code to the -column branch.
967 (doc-Bl-usage): Updated.
968 * groff_mdoc.man: s/-xwidth/-width/.
970 2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
972 * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
973 running into centered or non-formatted text.
975 2001-07-11 Werner LEMBERG <wl@gnu.org>
977 Introduce short and long prefixes to have the selection at run-time
978 whether there is a 8+3 limit for names of temporary files.
980 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
981 (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
982 (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
984 (temp_init): New global structure to initialize above three
986 (xtmptemplate): Use two parameters for long and short prefix.
987 Simplify code use above three variables.
988 (xtmpfile): Use long and short prefixes as parameters.
989 * src/include/lib.h: Updated.
991 * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
993 ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
994 (createAllPages, makeTempFiles): Updated.
996 2001-07-09 Werner LEMBERG <wl@gnu.org>
998 * REVISION: Increased to 3.
1000 Version 1.17.2 released
1001 =======================
1003 2001-07-07 Werner LEMBERG <wl@gnu.org>
1005 * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
1008 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
1010 * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
1012 * tmac/groff_mdoc.man: Fix synopsis.
1014 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
1016 * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
1017 Restore `doc-Pa-font'.
1019 2001-07-04 Werner LEMBERG <wl@gnu.org>
1021 * src/utils/indxbib/dirnamemax.c: Moved to ...
1022 * src/libs/libgroff/maxfilename.cc: Here.
1023 s/dir_name_max/file_name_max/.
1025 * src/include/lib.h: Add file_name_max.
1026 * src/utils/indxbib/indxbib.cc: Updated.
1027 * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
1030 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
1032 (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
1034 * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
1035 REGION_TEMPLATE): New macros.
1036 (createAllPages, makeTempFiles): Use them.
1037 Include `nonposix.h'.
1038 (html_system): New function.
1039 (createAllPages, createImage): Use it.
1042 * tmac/www.tmac: Fix typos.
1044 2001-07-03 Werner LEMBERG <wl@gnu.org>
1046 * tmac/www.tmac: Disable hyphenation in normal text only if output
1048 (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
1049 * tmac/groff_mwww.man, NEWS: Updated.
1051 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
1053 * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
1056 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
1058 * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
1059 doc-display-ps-stack): Implement font and font size stack for
1062 2001-07-02 Werner LEMBERG <wl@gnu.org>
1064 * REVISION: Increased to 2.
1065 * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
1067 * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
1068 beginning of a line.
1069 * src/groff/grog/grog.sh: Ditto.
1071 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
1073 * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
1076 2001-06-27 Werner LEMBERG <wl@gnu.org>
1078 Fix problems with preprocessor string for `man' program.
1080 * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
1081 Updated/added copyright.
1082 Moved Emacs's local variable to identify nroff mode to the end of
1083 the file; add local variable if missing.
1085 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
1087 * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
1088 AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
1089 * configure: Regenerated.
1091 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
1093 * aclocal.m4 (GROFF_PAGE): Fix page detection code.
1094 * configure: Regenerated.
1096 2001-06-24 Werner LEMBERG <wl@gnu.org>
1098 * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
1100 * doc/pic.ms: Fix typos.
1102 Version 1.17.1 released
1103 =======================
1105 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
1107 * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
1108 * configure: Updated.
1110 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
1112 * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
1114 * src/roff/troff/dic.cc (blank_line): Add html tag.
1116 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
1118 * src/roff/troff/input.cc (do_suppress): Fix typo.
1120 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
1122 Added two new options (-D and -I) to specify image names and a
1123 subdirectory to place the images in.
1125 Change syntax from \\Ox to \\O[x].
1127 * src/devices/grohtml/post-html.cc (main): Add options.
1129 * src/preproc/html/pre-html.cc: Include `stdarg.h'.
1130 Use `NULL' instead of `0' for null string pointers.
1131 (MAX_RETRIES): New macro.
1132 (lengthOfintToStr, intToStr, make_message): New functions.
1133 (makeFileName): Make function static.
1134 Implement -D and -I options.
1135 (checkImageDir): New function.
1136 (write_end_image, write_start_image): Use new syntax of \O.
1137 (createAllPages, removeAllPages): Implement -D and -I options. Use
1139 (createImage): Use make_message().
1140 (addps4html): Add guard for malloc().
1141 (usage, scanArguments): Updated.
1142 (makeTempFiles): Use mkstemp().
1143 (removeTempFiles): Use unlink().
1144 (findPrefix): Add guard for malloc().
1146 * src/roff/troff/input.cc (get_delim_file_name): New function to
1148 (do_suppress): Updated to parse new syntax.
1149 * src/devices/grohtml/grohtml.man: Updated.
1150 * tmac/www.tmac: Updated to new syntax.
1154 2001-06-15 Werner LEMBERG <wl@gnu.org>
1156 * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
1158 * src/devices/grohtml/grohtml.man: Minor improvements.
1160 2001-06-14 Werner LEMBERG <wl@gnu.org>
1162 * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
1164 2001-06-11 Werner LEMBERG <wl@gnu.org>
1166 * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
1167 line to specify preprocessor options -- mandb 2.3.1 only recognizes
1169 * src/preproc/grn/grn.man: Add proper '\" string.
1171 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
1173 * test-groff: Don't use PATH but GROFF_BIN_PATH.
1175 2001-06-08 Werner LEMBERG <wl@gnu.org>
1177 Updated to autoconf 2.50.
1179 * configure.in: Renamed to...
1180 * configure.ac: This.
1181 * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
1182 (GROFF_OS390): Updated.
1183 * configure: Regenerated.
1185 2001-05-18 Werner LEMBERG <wl@gnu.org>
1187 * src/roff/troff/env.c, src/roff/troff/env.h,
1188 src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
1191 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
1193 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
1195 2001-05-16 Werner LEMBERG <wl@gnu.org>
1197 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
1198 less than or equal zero; set it to 1 then.
1199 * src/roff/troff/node.h (node::node): Initialize `last'.
1201 2001-05-08 Werner LEMBERG <wl@gnu.org>
1203 * tmac/an-old.tmac: Make predefined strings work in compatibility
1205 Add troff version guard.
1206 * tmac/doc.tmac: Simplify version guard.
1208 2001-05-07 Werner LEMBERG <wl@gnu.org>
1210 The .ns and .rs requests are now honoured not only in the top-level
1211 but in all diversions (similar to UNIX troff).
1213 This change is based on a patch from Tadziu Hoffmann
1214 <hoffmann@usm.uni-muenchen.de>.
1216 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
1217 (top_level_diversion): Remove `no_space_mode' member.
1218 * src/roff/troff/div.cc (diversion::diversion,
1219 top_level_diversion::top_level_diversion): Updated.
1220 (macro_diversion::output): Reset `no_space_mode'.
1221 (no_space, restore_spacing): Use `curdiv' unconditionally.
1222 (space_request, blank_line): Check `curdiv->no_space_mode'.
1223 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
1224 `curdiv' unconditionally.
1225 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
1228 2001-05-06 Werner LEMBERG <wl@gnu.org>
1230 Added two new requests `de1' and `am1' which are similar to `de' and
1231 `am' with the difference that compatibility mode is saved on entry,
1232 switched off during macro execution, and restored on exit.
1234 * src/roff/troff/input.h: Added two new special characters
1235 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
1236 * src/roff/troff/input.cc (input_iterator): Added two member
1237 functions `save_compatible_flag' and `get_compatible_flag'.
1238 (input_stack): Ditto.
1239 (string_iterator): Ditto. Also add private member
1240 `saved_compatible_flag'.
1241 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
1242 (calling_mode): New enumeration.
1243 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
1244 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
1245 (define_macro, define_indirect_macro, append_macro, ignore): Use
1247 (define_nocomp_macro, append_nocomp_macro): New functions.
1248 (init_input_requests): Updated.
1249 (do_request): Rename local variable `saved_compatible_flag' to
1250 `old_compatible_flag'.
1251 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
1253 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
1254 public and trap-invoked macros. As a consequence, the man macros
1255 work in compatibility mode also.
1257 2001-05-06 Solar Designer <solar@openwall.com>
1259 * Makefile.in: Use $(mandir).
1261 2001-05-06 Alexios Zavras <zvr@pobox.com>
1263 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
1265 2001-05-05 Werner LEMBERG <wl@gnu.org>
1267 Added `.ns' number register: Returns 1 in no-space mode (if in
1268 top-level diversion), 0 otherwise.
1270 * src/roff/troff/div.cc (no_space_mode_reg): New class.
1271 (init_div_requests): Updated.
1272 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
1275 2001-05-04 Werner LEMBERG <wl@gnu.org>
1277 * src/roff/nroff/nroff.man: Improved documentation (especially
1280 2001-05-02 Werner LEMBERG <wl@gnu.org>
1282 Added `brp' request: This is \p as a request.
1284 * src/roff/troff/env.cc (environment::do_break): Add parameter
1286 (do_break_request): New function (was `break_request').
1287 (break_request): Calls `do_break_request'.
1288 (break_spread_request): New; calls `do_break_request'.
1289 (init_env_requests): Updated.
1290 * src/roff/troff/env.h: Updated.
1291 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
1293 * REVISION: Increased to 1.
1294 * win32-diffs: Updated.
1296 2001-05-01 Werner LEMBERG <wl@gnu.org>
1298 * tmac/an-old.tmac: Fix minor compatibility mode issue.
1299 * tmac/troffrc-end: Make it really work in compatibility mode.
1301 2001-04-27 Werner LEMBERG <wl@gnu.org>
1303 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
1306 2001-04-22 Werner LEMBERG <wl@gnu.org>
1308 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
1309 latest versions from glibc CVS archive.
1311 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
1312 <c.zeelenberg@hccnet.nl>.
1314 2001-04-21 Werner LEMBERG <wl@gnu.org>
1316 * configure.in: Move check for mkstemp() to...
1317 * aclocal.m4 (GROFF_MKSTEMP): This new function.
1318 * configure: Regenerated.
1320 * src/include/groff-getopt.h: Don't use variable names in
1323 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
1324 * src/devices/grohtml/Makefile.sub,
1325 src/devices/grohtml/post-html.cc: Updated.
1327 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
1329 * configure.in: Add special check for mkstemp().
1330 * src/libs/libgroff/tmpfile.cc: Use it.
1331 * src/utils/indxbib/indxbib.cc: Ditto.
1332 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
1333 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
1336 2001-04-20 Bruce Lilly <blilly@erols.com>
1338 `Version_string' as C++ object was not visible to linker from C
1340 Add `const' to `Version_string'.
1342 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
1343 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
1344 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
1345 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
1346 (scanArguments), src/preproc/refer/refer.cc (main),
1347 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
1348 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
1349 (main), src/devices/grohtml/post-html.cc (main),
1350 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
1351 (main), src/utils/hpftodit/hpftodit.cc (main),
1352 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
1353 (main), src/utils/lkbib/lkbib.cc (main),
1354 src/utils/addftinfo/addftinfo.cc (main): Implement it.
1356 * src/roff/groff/pipeline.c: Add _UWIN.
1357 * src/include/nonposix.h: Ditto.
1359 2001-04-20 Werner LEMBERG <wl@gnu.org>
1361 * src/include/lib.h: Use HAVE_STRERROR.
1362 * src/roff/groff/pipeline.c: Ditto.
1363 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
1364 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
1365 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
1366 * win32-diffs: Updated.
1367 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
1369 2001-04-19 Werner LEMBERG <wl@gnu.org>
1371 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
1372 instead of hardwired `"troff"'.
1373 (char_buffer::read_file): Remove unused variables.
1374 (char_buffer::write_file_troff): Ditto.
1375 (char_buffer::write_file_html): Ditto.
1376 (generateImages): Ditto.
1378 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
1380 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
1382 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
1383 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
1384 index_search_item::search1): Ditto.
1385 * src/roff/troff/node.h (width_list): Reorder members.
1386 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
1387 (lookup_warning): Ditto.
1388 (prepend_string): Commented out.
1389 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
1390 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
1391 * src/preproc/tbl/main.cc (process_format): Ditto.
1392 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
1394 * src/preproc/pic/pic.cc: Updated.
1395 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
1396 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
1397 * src/preproc/refer/command.cc (execute_command): Ditto.
1398 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
1399 * src/preproc/refer/token.cc (lookup_token): Ditto.
1400 * src/preproc/soelim/soelim.cc: Ditto.
1401 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
1402 (isHexDigit): Commented out.
1403 (pushBackBuffer::isString): Remove unused variable.
1404 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
1406 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
1407 resource_manager::read_resource_arg, read_one_of, parse_extensions):
1409 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
1410 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
1411 lookup_paper_size): Ditto.
1412 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
1413 (text_glob, element_list): Reorder members.
1414 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
1416 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
1417 return value to `void'.
1418 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
1420 * src/devices/grohtml/html.h (simple_output::check_newline,
1421 simple_output::space_or_newline, simple_output::enable_newlines):
1423 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
1425 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
1426 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
1427 output_ligatures, output_charset, read_map): Ditto.
1428 * src/utils/lookbib/lookbib.cc (main): Ditto.
1429 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
1430 (do_file): Fix typo (`=' -> `==').
1431 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
1432 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
1434 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
1436 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
1437 Fix usage of GROFF_BIN_PATH.
1438 * src/roff/nroff/nroff.man: Updated.
1440 2001-04-18 Werner LEMBERG <wl@gnu.org>
1442 * NEWS: Fixing typos.
1445 Version 1.17 released
1446 =====================
1448 2001-04-17 Werner LEMBERG <wl@gnu.org>
1450 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
1451 directory, not in $(srcdir).
1453 2001-04-16 Werner LEMBERG <wl@gnu.org>
1455 * doc/groff.texinfo: More info on conditionals.
1457 2001-04-15 Werner LEMBERG <wl@gnu.org>
1459 * doc/groff.texinfo: Added some info about groff internals.
1461 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
1462 about missing special character only if the name is non-null.
1464 2001-04-14 Werner LEMBERG <wl@gnu.org>
1466 Removing the grohtml-old device driver which is now obsolete.
1468 * src/devices/grohtml-old/*: Removed.
1469 * font/devhtml-old/*: Removed.
1470 * src/libgroff/htmlindicate.cc (graphic_start, graphic_end): Remove
1472 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
1473 * test-groff (PATH): Updated.
1474 * tmac/Makefile.sub (NORMALFILES): Updated.
1475 * tmac/an-old.tmac: Remove special code for html-old device.
1476 Replace `html-or-html-old' register with `an-html'.
1477 * tmac/eqnrc: Updated.
1478 * tmac/html-old.tmac: Removed.
1479 * tmac/troffrc, tmac/troffrc-end: Updated.
1480 * tmac/www.tmac: Remove special code for html-old device.
1481 Replace `html-or-html-old' register with `www-html'.
1483 * src/libgroff/tmpfile.cc (remove_tmp_files),
1484 src/libgroff/htmlindicate.cc (graphic_end), include/htmlindicate.h,
1485 src/preproc/grn/*.cc, src/roff/groff/env.{cc,h}: Remove `void'
1486 parameter if used as a single argument for consistency with rest of
1489 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
1491 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
1493 * src/roff/troff/troff.man: Fixing typos.
1495 2001-04-13 Werner LEMBERG <wl@gnu.org>
1497 * doc/pic.ms: Fixing many font switches.
1498 * doc/groff.texinfo: Fixes, additions.
1499 * MORE.STUFF: Updated.
1501 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
1503 * src/devices/grohtml/grohtml.man: Updated manual page regarding
1505 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
1507 (removeTempFiles): New function to tidy up temporary files.
1508 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
1509 Many fixes to do with the new inline suppress node and image regions
1511 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
1512 (generate_img_src): New function.
1513 (html_printer::do_auto_image): Utilizes it.
1514 (do_heading, do_title): Include inline images within their contents.
1515 (html_printer::begin_page): Tidied up comments that are issued to
1516 the html output file.
1517 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
1519 (text_glob::is_br): New method used by do_heading.
1520 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
1521 equivalent diversion.
1522 * src/include/html-strings.h: Altered image tags to reflect the
1524 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
1526 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
1527 it is already inside a pic image. Only emit tags if the argument
1528 `-Tps:html' is present.
1529 * src/preproc/tbl/main.cc: Changes to reflect additional
1530 `html_end_suppress' parameter.
1531 * src/roff/troff/env.cc: Only emit eol tag if a node has been
1532 emitted since the last eol tag was written.
1533 * src/roff/troff/env.h: New boolean `emitted_node'.
1534 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
1535 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
1536 * src/roff/troff/node.cc (check_charinfo): New method.
1537 (troff_output_file::determine_line_limits): Alterations to limit
1539 * tmac/www.tmac: Changes to reflect new suppress nodes.
1541 2001-04-12 Bruno Haible <haible@clisp.cons.org>
1543 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
1544 Escape the html_glyph in the buffer.
1545 (str_translate_to_html): Output the unescaped escaped_char.
1546 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
1547 `frame=void', not `frame=none'. Add `border=0'.
1549 2001-04-12 Werner LEMBERG <wl@gnu.org>
1551 * PROBLEMS: Add some words on how to avoid wrapper macros.
1553 2001-04-11 Blake McBride <blake@florida-software.com>
1555 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
1557 2001-04-11 Werner LEMBERG <wl@gnu.org>
1559 * font/devlbp/Makefile.sub (CLEANADD): Set it.
1560 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
1561 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
1562 * Makefile.sub (DISTCLEANFILES): Here.
1564 * libs/libgroff/new.cc: Include `nonposix.h'.
1565 * win32-diffs: Updated.
1567 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
1569 Added skeleton macro for defunct macros.
1571 Updated documentation.
1573 When inside displays, an empty input line warning should be
1574 suppressed. If another macro call is put inside a display,
1575 all subsequent empty lines found in that display caused a
1576 warning to be emitted.
1578 * tmac/doc.tmac (doc-defunct-macro): New macro.
1579 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
1580 (doc-restore-global-vars): Fixed typo.
1581 (doc-empty-line): Check the `doc-display-depth' register to
1582 determine whether we are inside display or not.
1584 * tmac/doc-common: Removed `Or' and `Sf' registers.
1585 Moved obsolete `Ds' macro to doc.tmac.
1587 * tmac/groff_mdoc.man: Bump document date.
1588 Document `.Vt' under ``Variable Types''.
1589 Removed documentation for obsolete `.Or' macro.
1591 2001-04-10 Werner LEMBERG <wl@gnu.org>
1594 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
1596 2001-04-10 Bruno Haible <haible@clisp.cons.org>
1598 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
1599 (usage): Add stream argument. Don't exit.
1600 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
1601 Write --version output to stdout, not stderr.
1602 (usage): Add stream argument. Don't exit.
1603 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
1604 (usage): Add stream argument. Don't exit.
1605 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
1607 (usage): Add stream argument. Don't exit.
1608 (main): Write --help output to stdout, not stderr.
1609 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
1610 (usage): Add stream argument. Don't exit.
1611 * src/devices/grops/ps.cc (main): Accept --help and --version.
1612 (usage): Add stream argument. Don't exit.
1613 * src/devices/grotty/tty.cc (main): Accept --help and --version.
1614 (usage): Add stream argument. Don't exit.
1615 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
1616 (main): Accept --help and --version.
1617 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
1618 (main): Accept --help and --version.
1619 * src/preproc/html/pre-html.cc (usage): Add stream argument.
1620 (scanArguments): Accept --help and --version.
1621 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
1622 (main): Accept --help and --version.
1623 * src/preproc/refer/refer.cc (main): Accept --help and --version.
1624 (usage): Add stream argument. Don't exit.
1625 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
1627 (main): Accept --help and --version.
1628 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
1629 (main): Accept --help and --version.
1630 * src/roff/groff/groff.cc (main): Accept --help and --version.
1631 (synopsis): Add stream argument.
1632 (help): Write --help output to stdout, not stderr.
1633 (usage): Add stream argument. Don't exit.
1634 * src/roff/grog/grog.pl: Accept --help and --version.
1636 * src/roff/grog/grog.sh: Accept --help and --version.
1637 * src/roff/nroff/nroff.sh: Accept --help and --version.
1638 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
1639 (usage): Add stream argument. Don't exit.
1640 (main): Accept --help and --version.
1641 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
1642 (usage): New function with stream argument, doesn't exit.
1643 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
1644 (usage): New function with stream argument, doesn't exit.
1645 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
1646 (usage): Add stream argument. Don't exit.
1647 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
1648 (main): Accept --help and --version.
1649 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
1651 (main): Accept --help and --version.
1652 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
1653 (main): Accept --help and --version.
1654 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
1655 (usage): Add stream argument. Don't exit.
1657 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
1659 Fix indentation in SYNOPSIS.
1661 Updated to include changes of latest BSD mdoc version (basically,
1662 the only change is that `.Fn' and `.Fc' put a final semicolon after
1663 a function declaration in the SYNOPSIS section).
1665 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
1666 (doc-in-synopsis-section): New variable. Updated all related
1668 (doc-indent-synopsis-active): New register.
1669 (Nd, Fn, Fo): Use it.
1670 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
1671 `.Cd' with long argument line produces indented wrapped lines.
1672 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
1673 undesirable line break to be output.
1674 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
1676 (Fn, Fc): Add final `;' to output.
1677 (doc-save-global-vars, doc-restore-global-vars): Updated.
1678 * tmac/doc-common: Remove `Ex' register.
1680 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
1683 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
1685 * tmac/doc.tmac (Cd): Simplify code.
1686 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
1688 2001-04-06 Werner LEMBERG <wl@gnu.org>
1690 Implement continuous underlining for nroff mode. To do that, a new
1691 request in the ditroff language has been added: `x u N' (N is 0
1694 \X and \Y are now transparent to end-of-sentence recognition.
1696 * src/include/printer.h (printer): Add `type' parameter to `special'
1698 * src/libs/libdriver/printer.cc (printer::special): Updated.
1699 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
1701 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
1702 specials of type `p'.
1703 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
1704 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
1705 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
1706 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
1707 (glyph::order): New method.
1708 (tty_printer::add_char): Use it.
1709 (tty_printer::special): New method.
1710 (tty_printer::end_page): Implement it.
1712 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
1713 * src/roff/troff/node.cc (special_node::special_node): Add parameter
1714 to set `no_init_string'.
1715 (special_node::tprint_start): Use it.
1716 (special_node::same, special_node::copy): Updated.
1717 (special_node::ends_sentence): New method.
1718 (troff_output_file::start_special): Add parameter to include
1719 inititialization of special conditionally.
1721 * src/roff/troff/env.h (environment): New member `underline_spaces'.
1722 * src/roff/troff/env.cc (do_underline_special): New function.
1723 (environment::set_font): Use it.
1724 (do_underline): Use it. This was `underline()'.
1725 (underline): Call `do_underline()'.
1726 (continuous_underline): New function which calls `do_underline()'.
1727 (environment::newline): Use `do_underline_special()'.
1728 (init_env_requests): Updated.
1730 * NEWS, man/troff_out.man: Updated.
1732 2001-04-06 Bruno Haible <haible@clisp.cons.org>
1734 * font/devutf8/R.proto: Fix code of 'shc'.
1736 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
1738 Many fixes. Diag lists can now be nested also; additionally,
1739 `-compact' and `-offset' are supported.
1741 * tmac/doc.tmac (doc-have-indent): Replaced with ...
1742 (doc-list-have-indent-stackXXX): A new register stack.
1743 (doc-have-diag-list): Removed.
1744 (Bl): Use `doc-list-have-indent-stackXXX'.
1746 (doc-diag-list): Use `doc-compact-list-stackXXX'.
1747 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
1748 (doc-set-vertical-and-indent): Ditto.
1749 (doc-next-list-depth): Removed.
1750 (doc-increment-list-stack): Updated.
1751 (doc-decrement-list-stack): Use `doc-list-depth' instead of
1752 `doc-next-list-depth'.
1753 (doc-end-list, doc-end-column-list): Don't use
1754 `doc-increment-list-stack'.
1755 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
1756 (doc-save-global-vars, doc-restore-global-vars): Updated.
1757 * tmac/doc-common: Updated.
1758 * tmac/groff_mdoc.man: Updated.
1761 2001-04-02 Werner LEMBERG <wl@gnu.org>
1763 * src/devices/grotty/grotty.man: Fix grammatical error.
1765 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
1767 Remove .Ld from mdoc package; replace it with special handling of
1770 * tmac/doc-common: Remove `Ld' register.
1771 Uncomment `doc-volume-ds-*' strings.
1772 Remove `doc-operating-system-default'.
1774 * tmac/doc-syms (Ld): Removed.
1775 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
1779 * tmac/groff_mdoc.man: Many fixes and updates.
1781 2001-03-29 Werner LEMBERG <wl@gnu.org>
1783 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
1784 Bond <tkb@tkb.mpl.com>.
1785 * tmac/www.tmac: Save compatibility mode.
1787 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
1789 * tmac/groff_mdoc.man: Many fixes.
1791 2001-03-28 Werner LEMBERG <wl@gnu.org>
1793 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
1796 2001-03-27 Werner LEMBERG <wl@gnu.org>
1798 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
1799 diversion. This fixes overlong tags.
1801 2001-03-26 Werner LEMBERG <wl@gnu.org>
1803 * doc/groff.texinfo: Fixed and improved documentation of fonts.
1804 * tmac/doc-syms: Fix error messages.
1805 * tmac/an-old.tmac: Remove incorrect double backslashes.
1807 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
1809 * tmac/Makefile.sub: Strip mdoc.local also
1810 * tmac/strip.sed: Fixed.
1812 2001-03-24 Werner LEMBERG <wl@gnu.org>
1814 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
1815 selecting the font size.
1816 * tmac/groff_mdoc.man, NEWS: Document it.
1818 2001-03-23 Werner LEMBERG <wl@gnu.org>
1820 * src/roff/troff/div.cc (save_vertical_space): Add default argument
1822 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
1823 argument to restore previous font family.
1824 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
1826 * doc/groff.texinfo: More fixes and additions (mainly for font
1827 manipulating commands).
1829 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
1830 * tmac/groff_mdoc.man: This. The quick reference has been removed.
1831 * tmac/Makefile.sub, NEWS: Updated.
1833 2001-03-23 Werner LEMBERG <wl@gnu.org>
1835 Replaced mdoc implementation. The new version is `state of the
1836 art', using almost all new features of groff 1.17 -- it won't run
1837 with older versions.
1839 * tmac/doc.tmac: Completely rewritten.
1840 * tmac/doc-common: Ditto.
1841 * tmac/doc-nroff: Ditto.
1842 * tmac/doc-ditroff: Ditto.
1843 * tmac/doc-syms: Ditto.
1844 * tmac/mdoc.local: New file.
1845 * tmac/groff_mdoc.samples.man: Replaced with ...
1846 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
1847 * tmac/strip.sed: Updated.
1848 * tmac/Makefile.sub: Updated.
1851 * tmac/groff_man.man: Add `man.local' to the FILES section.
1853 2001-03-22 Werner LEMBERG <wl@gnu.org>
1855 * doc/groff.texinfo: Added many @noindent.
1856 Replaced @end_Example -> @endExample.
1857 Added info whether registers are r/o.
1858 Many other additions and fixes.
1860 2001-03-21 Werner LEMBERG <wl@gnu.org>
1862 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
1863 in makeinfo of texinfo 4.0) to be used in @Def* macros.
1864 Improved @Def* macros: Now the exact syntax of request, register,
1865 and escapes is shown.
1866 Added macros for parentheses and brackets to be used in @Def*.
1867 Many fixes and improvements of the documentation.
1869 2001-03-20 Werner LEMBERG <wl@gnu.org>
1871 * doc/groff.texinfo: Added new index: `st' (for strings).
1872 Added macros @Defstr(x).
1873 Added macro @Example (adding @group).
1874 Other minor improvements.
1876 2001-03-19 Werner LEMBERG <wl@gnu.org>
1878 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
1879 `rq' for requests. `fn' is no longer used.
1880 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
1883 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
1884 number with name of man page.
1886 2001-03-19 Larry Kollar <kollar@alltel.net>
1888 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
1891 2001-03-19 Werner LEMBERG <wl@gnu.org>
1893 * man/groff_font.man: Document `prepro', `postpro', and `print'.
1894 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
1895 * src/devices/grohtml/grohtml.man: Fixing typos.
1897 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
1899 * tmac/s.tmac (@IP): Pass `.ip' html tag.
1900 * tmac/groff_mwww.man: Remove .LINE macro
1901 * tmac/www.tmac (LINE): Add `.ti'.
1903 * src/devices/grohtml/post-html.cc (html_printer): New member
1905 (html_printer::emit_raw): Use it.
1906 (html_printer::do_linelength): Ditto.
1907 (html_printer::do_pageoffset): Ditto.
1908 (html_printer::do_indentation): Ditto.
1909 (html_printer::do_tempindent): Ditto.
1910 (html_printer::do_break): Ditto.
1911 (html_printer::begin_page): Ditto.
1912 (html_printer::do_indentedparagraph): New function.
1913 (html_printer::troff_tag): Handle `.ip'.
1914 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
1915 Add `<td width=...>' handling.
1916 (html_text::do_table): Add parameter.
1917 (html_text::do_indent): Updated.
1918 * src/devices/groohtml/html-text.h: Updated.
1920 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
1922 Introduced simple html tables to implement indentation.
1924 * src/devices/grohtml/html.h (word, word_list): New structures.
1925 (simple_output): Use it.
1926 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
1927 (html_printer): Improve indentation handling.
1928 (html_printer::emit_raw): Set `in_table' element. Handle
1930 (html_printer::write_header): Move conditional downwards.
1931 Don't allow whitespace in tags.
1932 (html_printer::do_linelength): Handle line length and indentation
1934 (html_printer::do_pageoffset): Handle indentation conditionally.
1935 (html_printer::do_indentation): Ditto.
1936 (html_printer::do_tempindent): New function member.
1937 (html_printer::do_fill): Take care of indentation.
1938 (html_printer::do_flush): Finish table.
1939 (html_printer::do_links): Ditto.
1940 (html_printer::do_break): New function for handling `.br' and `.ti'.
1941 (html_printer::troff_tag): Use it.
1943 (html_printer::flush_globs): Fix.
1944 (html_printer::flush_page): Finish table.
1945 (html_printer::html_printer): Fix error message. Set up
1947 (html_printer::add_to_sbuf): Remove special handling of character
1949 (to_unicode): Remove `stop()'.
1950 (html_printer::write_title): Cleanup.
1951 (html_printer::begin_page): Use `put_string()'. Handle indentation.
1952 (html_printer::~html_printer): Flush text and end the line.
1954 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
1955 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
1957 (html_text::start_tag): Disable newlines.
1958 (html_text::table_is_void): New function.
1959 (html_text::issue_table_begin): Ditto.
1960 (html_text::issue_table_end): Ditto.
1961 (html_text::push_para): Better table handling.
1962 (html_text::do_indent): New function.
1963 (html_text::do_table): Ditto.
1964 (html_text::done_table): Ditto.
1965 (html_text::do_tt): Handle PRE_TAG.
1966 (html_text::is_in_table): New function.
1967 (html_text::check_emit_text): Handle tables.
1968 (html_text::do_emittext): Use `nl()'.
1969 (html_text::do_para): Handle table.
1970 (html_text::remove_def): New function.
1971 * src/devices/grohtml/output.cc (word, word_list): Implement
1973 (simple_output::end_line): Flush last word.
1974 (simple_output::simple_comment): Ditto.
1975 (simple_output::begin_comment): Recoded.
1976 (simple_output::end_comment): Ditto.
1977 (simple_output::comment_arg): Removed.
1978 (simple_output::check_newline): Improve test and flush last word.
1979 (simple_output::space_or_newline): Improved.
1980 (simple_output::write_newline): Replaced with...
1981 (simple_output::nl): This.
1982 (simple_output::put_raw_char): Flush last word.
1983 (simple_output::check_space): Removed.
1984 (simple_output::put_translated_string): Ditto.
1985 (simple_output::put_string): Simplified.
1986 (simple_output::put_number): Updated.
1987 (simple_output::put_float): Ditto.
1988 (simple_output::put_symbol): Removed.
1989 (simple_output::enable_newlines): Add `check_newline()'.
1990 (simple_output::flush_last_word): New function.
1992 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
1993 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
1995 * tmac/s.tmac (@PP, @IP): Add html conditional code.
1996 * tmac/an-old.tmac (TP): Ditto.
1998 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
2000 * mdate.sh: Make it POSIX compliant.
2002 2001-03-09 Werner LEMBERG <wl@gnu.org>
2004 Added the `return' request to end a macro immediately. It simply
2005 pops iterators from the input stack until a macro iterator is found.
2007 * src/roff/troff/input.cc (input_iterator::is_macro,
2008 macro_iterator::is_macro): New member.
2009 (input_return_boundary): New class to signal an immediate return
2011 (input_stack::add_return_boundary, input_stack::is_return_boundary):
2013 (input_stack::clear): Use it.
2014 (input_stack::pop_macro): New function.
2015 (while_request): Use `is_return_boundary()'.
2016 (return_macro_request): New function.
2017 (init_input_requests): Use it.
2019 * src/roff/troff/TODO: Updated.
2020 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2022 2001-03-08 Werner LEMBERG <wl@gnu.org>
2024 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
2027 2001-03-07 Werner LEMBERG <wl@gnu.org>
2029 Make `\B' more rigid.
2031 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
2033 (get_number_rigidly): New function.
2034 * src/roff/troff/input.cc (do_expr_test): Use it.
2035 * src/roff/troff/token.h: Updated.
2037 * src/roff/troff/request.h: Fix typo (init_html_request ->
2038 init_markup_request).
2040 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
2042 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
2043 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
2044 are now `.begin', `.end', `.image'.
2046 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
2047 (html_printer::add_to_sbuf): Changing type of `code' parameter.
2048 Use add_char_to_sbuf().
2049 (to_unicode): New function.
2050 (char_translate_to_html): Changing type of `ch' parameter.
2052 (html_printer::~html_printer): Comment out doctype string.
2053 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
2054 instead of `.html-end'.
2055 (write_start_image): Use `.begin' and `.image' instead of
2056 `.html-begin' and `.html-image'.
2057 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
2058 (html_begin): Renamed to ...
2060 (html_end): Renamed to ...
2062 (html_image): Renamed to ...
2064 (init_html_requests): Renamed to ...
2065 (init_markup_requests): This.
2066 * tmac/www.tmac: Updated.
2068 2001-02-28 Bram <bram@avontuur.org>
2070 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
2073 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
2075 * doc/meref.me: Fixing some typos.
2077 2001-02-16 Werner LEMBERG <wl@gnu.org>
2079 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
2080 method. Return `HYPHEN_MIDDLE' if it was `\:'.
2081 * src/roff/troff/node.h: Updated.
2083 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
2085 * tmac/groff_tmac.man: Fix typo.
2087 2001-02-16 Werner LEMBERG <wl@gnu.org>
2089 Fixing a bug which prevented proper end-of-sentence recognition
2090 between an `unformatted' box and the following text. As a
2091 consequence, vertical line distances are no longer preserved in
2092 boxes after a call to `.unformat' -- because boxes aren't
2093 line-oriented (contrary to diversions), this doesn't make sense
2096 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
2098 (vertical_size_node::set_unformat_flag): New method.
2099 * src/roff/troff/node.hh: Updated.
2100 * src/roff/troff/input.cc (word_space_node::reread,
2101 hmotion_node::reread): Reset `unformat' flag after usage.
2102 (unformat_macro): Append only if `set_unformat_flag()' returns
2104 * src/roff/troff/troff.man: Updated.
2106 2001-02-15 Werner LEMBERG <wl@gnu.org>
2108 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
2109 documentation of `asciify' and `unformat' requests.
2111 2001-02-13 Werner LEMBERG <wl@gnu.org>
2113 Redesigned the `unformat' request. It is no longer connected with
2114 `asciify' but rather uses new `reread()' methods if the `unformat'
2115 flag is set. Additionally, the handling of space characters after
2116 unformatting has been fixed so that they retain their width.
2118 * src/roff/troff/node.h (width_list): New structure to store
2119 original widths of spaces.
2120 (node): Added `unformat' member.
2121 Replaced `num_spaces' variable with `orig_width' list.
2122 * src/roff/troff/node.cc (*node::asciify,
2123 asciify_reverse_node_list): Removed `unformat_only' flag and related
2125 (word_space_node::asciify, word_space_node::word_space_node): Use
2127 (word_space_node::~word_space_node): New destructor.
2128 (word_space_node::copy): Updated to handle `orig_width'.
2129 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
2130 (*node::merge_space): Update `orig_width' list if necessary.
2131 (*node::set_unformat_flag): New methods to set the `unformat' flag.
2132 * src/roff/troff/enc.cc (environment::space_newline): Use
2134 (environment::space): Added method to handle space width and
2135 sentence space width as parameters. Use `width_list'.
2136 (environment::make_tab_node): Updated.
2137 * src/roff/troff/env.h: Updated.
2138 * src/roff/troff/input.cc (word_space_node::reread,
2139 unbreakable_space_node::reread, hmotion_node::reread): New methods
2140 to handle nodes specially if `unformat' flag is set.
2141 (do_asciify_macro): Renamed back to ...
2142 (asciify_macro): This.
2143 (unformat_macro): New implementation to simply set the `unformat'
2146 * MORE.STUFF: Added more info about deroff.
2148 2001-02-08 Werner LEMBERG <wl@gnu.org>
2150 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
2151 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
2152 and `add_self()' methods to avoid hyphenation. For example, the
2153 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
2154 soft hyphen after `foo'. Now the hyphen list is correctly
2155 `foo<ignore><ignore>bar'.
2157 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
2159 * tmac/groff_tmac.man: Fix `BIR' macro.
2161 2001-02-04 Werner LEMBERG <wl@gnu.org>
2163 A new escape sequence `\:', inserting a zero-width break point.
2165 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
2166 * src/roff/troff/input.cc (get_copy, token::next, asciify):
2168 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
2170 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
2171 and `asciify()' methods.
2172 * src/roff/troff/node.cc (space_node::space_node): Updated.
2173 (space_node::asciify): Handle `was_escape_colon'.
2174 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2176 Handle `\~' similar to other comparable requests.
2178 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
2180 (token::next): Move creation of an unbreakable_space_node to...
2181 (token::add_to_node_list): Here.
2183 Fix a bug which sometimes prevented hyphenation of words connected
2184 with `\~' or `\ ' (and other escape sequences handled as
2185 TOKEN_NODE). This also fixes a hyphenation problem with boxes
2186 (after a call to the `unformat' request).
2188 * src/roff/troff/env.h (environment::possibly_break_line,
2189 environment::hyphenate_line): Introducing `start_here' parameter.
2190 * src/roff/troff/env.cc (environment::space_newline,
2191 environment::space): Use it.
2192 (environment::possibly_break_line, environment::hyphenate_line):
2194 * src/roff/troff/input.cc (process_input_stack): Use it.
2195 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
2196 space_char_hmotion_node, overstrike_node): Add
2197 `get_hyphenation_type()' method.
2198 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
2199 if `unformat_only' is active.
2201 2001-01-30 Werner LEMBERG <wl@gnu.org>
2203 Implemented new read-only number register `.linetabs' which
2204 returns 1 if in line-tabs mode, 0 otherwise.
2206 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
2207 * src/roff/troff/env.cc (get_line_tabs): New function.
2208 (init_env_requests): Use it.
2209 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2211 * VERSION, REVISION: Changing to 1.17.0.
2213 2001-01-28 Werner LEMBERG <wl@gnu.org>
2215 Fixed a bug which prevented hyphenation of words which are finished
2218 * src/roff/troff/token.h (token): Add enum type
2219 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
2220 * src/roff/troff/input.cc (token::next, token::description,
2221 get_line_arg, token::add_to_node_list, token::process): Use it.
2223 2001-01-27 Werner LEMBERG <wl@gnu.org>
2225 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
2226 * src/roff/troff/div.cc (do_divert): Use it.
2228 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
2230 2001-01-25 Werner LEMBERG <wl@gnu.org>
2232 Adding the `linetabs' request. If set, tab distances are not
2233 computed relative to the input line but relative to the output line.
2235 * src/roff/troff/env.h (environment): New member `line_tabs'.
2236 * src/roff/troff/env.cc (line_tabs_request): Implement request.
2237 (environment::environment, environment::copy): Updated.
2238 (environment::distance_to_next_tab): Use `line_tabs'.
2239 (init_env_requests): Register request.
2240 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
2243 2001-01-24 Werner LEMBERG <wl@gnu.org>
2245 Introducing a new read-only register `.int' which is set to a
2246 positive value if the last output line is interrupted (i.e., if it
2249 * src/roff/troff/env.cc (init_env_requests): Add it.
2250 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2252 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
2254 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
2255 * src/preproc/html/pre-html.cc (findPrefix): New function which
2256 generates the troff executable name via the system prefix.
2257 * src/preproc/eqn/main.cc: Modified warning message.
2259 2001-01-23 Werner LEMBERG <wl@gnu.org>
2261 troff's `box' and `boxa' requests didn't preserve temporary
2264 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
2265 `saved_target_text_length' members.
2266 * src/roff/troff/div.cc (do_divert): Use them.
2268 Tabs (but not yet leaders and fields) are now handled correctly by
2271 * node.h (hmotion_node): Add field `was_tab'.
2272 * env.cc (environment::make_tab_node): Set it.
2273 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
2275 Added new request `unformat' which will, contrary to `asciify',
2276 preserve font information after unformatting (i.e., only nodes
2277 dealing with horizontal space are converted back to input
2280 * input.cc (asciify_macro): Renamed to ...
2281 (do_asciify_macro): this, having a new parameter `unformat_only'.
2282 (asciify_macro, unformat_macro): New; using do_asciify_macro.
2283 (init_input_requests): Added `unformat'.
2284 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
2285 parameter to control asciification process.
2286 * node.h (*_node::asciify): Ditto.
2287 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2289 2001-01-20 Werner LEMBERG <wl@gnu.org>
2291 * doc/groff.texinfo: Minor improvement of `.in' documentation.
2293 2001-01-18 Werner LEMBERG <wl@gnu.org>
2295 * tmac/ps.tmac: Remove call of psold.tmac.
2296 * tmac/psold.tmac: Comment updated.
2297 * tmac/psnew.tmac: Removed since no longer needed.
2298 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
2300 * font/devutf8/R.proto: Adding `shc' glyph.
2301 * font/devutf8/NOTES: Updated.
2303 * test-groff: Updated.
2305 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
2307 First cut of the new html device driver. Changes to pre-html and
2308 the new grohtml are too numerous to be documented here.
2310 Stuff related to `html' has been renamed to `html-old' and `html2'
2311 stuff has been renamed to `html' (including directories). The new
2312 html device driver is therefore invoked as `-Thtml'.
2314 Added new `\O' escape to suppress output (needed by html driver).
2316 Added functions and code to pass info about input-level commands
2317 (`.in', `.fl', etc.) to html driver.
2319 Three new functions (.html-begin, .html-end, and .html-image) for
2320 better html handling: `html-begin' will execute the remaining line
2321 if at the outermost nesting level, increasing an internal counter.
2322 `html-end' does the same but decreases the internal counter.
2323 `html_image' puts its arguments into a special node (suppress_node)
2324 to define an image region.
2326 The `output' request has been removed.
2328 * tmac/html-tags.tmac: Removed.
2329 * tmac/arkup.tmac: Updated and renamed to ...
2330 * tmac/www.tmac: New file.
2331 * tmac/markup.tmac Updated and renamed to ...
2332 * tmac/mwww.tmac: New file.
2333 * tmac/Makefile.sub: Updated.
2334 * tmac/an-old.tmac: Updated.
2335 * tmac/eqnrc: Updated.
2336 * tmac/groff_man.man
2337 * tmac/groff_markup.man: Updated and renamed to ...
2338 * tmac/groff_mwww.man: New file.
2339 * tmac/groff_tmac.man: Updated.
2340 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
2341 * tmac/html.tmac: Updated and renamed from html2.tmac.
2342 * tmac/pspic.tmac: Updated html support.
2343 * tmac/s.tmac: Added html output support.
2344 * tmac/troffrc, tmac/troffrc-end: Updated.
2346 * Makefile.in, doc/Makefile: Updated.
2347 * doc/groff.texinfo: Added info about new `\O' escape.
2348 * doc/homepage.ms: Use `MAILTO' macro.
2350 * font/devhtml/DESC.proto: Add `C' font.
2351 * font/devhtml/Makefile.sub: Updated.
2352 * font/devhtml/R.proto: Minor fixes.
2353 * font/devhtml-old/Makefile.sub: Updated.
2355 * src/devices/grohtml-old/Makefile.sub: Updated.
2357 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
2359 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
2360 graphic_start): Add `inline' parameter. Update.
2361 (html_end_suppress, graphic_end): Update.
2363 * src/include/html-strings.h: New file.
2364 * src/include/htmlindicate.h: Comments updated.
2365 * src/include/printer.h: Updated.
2367 * src/preproc/eqn/main.cc (do_file, main): Updated.
2368 * src/preproc/pic/troff.cc (troff_output::start_picture,
2369 troff_output::finish_picture): Updated.
2370 * src/preproc/tbl/main.cc (process_input_file): Updated.
2372 * src/roff/groff/groff.cc (main): Updated.
2373 Pass device arguments to predrivers also.
2374 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
2375 * src/roff/troff/env.h (environment): Updated.
2376 New elements `need_eol' and `ignore_next_eol' (for html output).
2377 * src/roff/troff/env.cc (environment::environment): Add initializers
2378 for `need_eol' and `ignore_next_eol'.
2379 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
2381 (point_size, fill, no_fill, center, right_justify, line_length,
2382 indent, temporary_indent, break_request, handle_tab): Use
2384 (set_tabs): Use `add_html_tag_tabs()'.
2385 (environment::add_html_tag): Updated.
2386 (environment::do_break): Updated.
2387 * src/roff/troff/div.cc (space_request, flush_output): Use
2388 `environment::add_html_tag()'.
2389 * src/roff/troff/input.cc: Updated.
2390 New variable `html_level' to indicate nested `html-begin' requests.
2391 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
2392 (non_interpreted_char_node, token_node, non_interpreted_node): Add
2393 `force_tprint()' method.
2394 (token::next): Handle `\O'.
2395 (do_suppress): Implement it.
2396 (html_begin, html_end, html_image): New functions.
2397 (init_output_requests): Renamed to ...
2398 (init_html_requests): this.
2400 (macro::append_str, macro::append_unsigned, macro::append_int): New
2402 New variable `output_low_mark_miny' to limit minimal value of y.
2403 (reset_output_registers): Use it.
2404 (output_request): Removed.
2405 (get_output_registers): New function.
2406 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
2407 (*_node): Added `force_tprint()' if necessary.
2408 (special_node): New elements `tf' and `get_tfont()'.
2409 (suppress_node): New class.
2410 * src/roff/troff/node.cc:
2411 New global variables `image_no' and `suppress_start_page'.
2412 (real_output_file): New method `is_on()'.
2413 (troff_output_file): New method `start_special(tfont)'.
2414 (troff_output_file::really_print_line): Use `tprint' conditionally.
2415 (real_output_file::print_line): Updated.
2416 (real_output_file::on): Updated.
2417 (*_node): Added `force_tprint()'.
2418 (special_node::special_node): Initializer updated.
2419 (special_node::same, special_node::copy, special_node::tprint_start):
2421 (get_reg_int, get_reg_str): New functions.
2422 (suppress_node::*): New methods.
2423 New global variables last_position, last_image_filename;
2424 (min): New inline function.
2425 * src/roff/troff/reg.h, src/roff/troff/request.h,
2426 src/roff/troff/troff.h: Updated.
2428 2001-01-13 Werner LEMBERG <wl@gnu.org>
2430 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
2431 documentation of `asciify' request.
2433 2001-01-12 Werner LEMBERG <wl@gnu.org>
2435 * src/roff/troff/input.cc: Move definition of special characters
2436 like `ESCAPE_TILDE' to ...
2437 * src/roff/troff/input.h: New file.
2438 * src/roff/troff/Makefile.sub (HDRS): Add it.
2440 Extending the .asciify request to `unformat' space characters also.
2442 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
2443 to count input space characters.
2444 Update constructors to take care of it.
2445 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
2446 `ESCAPE_SPACE' instead of normal space.
2447 (word_space_node::asciify): New method.
2448 (unbreakable_space_node::asciify): New method.
2449 (word_space_node::merge_space): New method.
2450 * src/roff/troff/env.cc (environment::space_newline,
2451 environment::space): Add code to initialize `num_spaces' (using the
2452 constructor of `word_space_node').
2453 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
2456 2001-01-09 Werner LEMBERG <wl@gnu.org>
2458 * man/groff_char.man: Use table header traps only conditionally.
2460 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
2462 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
2464 2001-01-08 Werner LEMBERG <wl@gnu.org>
2466 Introducing the `box' and `boxa' requests which are similar to
2467 `di' resp. `da' but omitting a partially filled line (which is
2468 restored after ending the diversion).
2470 * src/roff/troff/div.h (diversion): Add elements to save partially
2472 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
2473 partially filled line.
2474 (divert, divert_append): Updated.
2475 (box, box_append): New functions.
2476 (init_div_requests): Use them.
2477 * src/roff/troff/env.h (environment): do_divert() is now a friend.
2478 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2480 * doc/groff.texinfo: Fix documentation of `lf' request.
2482 2000-12-25 Werner LEMBERG <wl@gnu.org>
2484 * src/roff/troff/troff.man, NEWS: Document `writem' request.
2486 2000-12-21 Werner LEMBERG <wl@gnu.org>
2488 Ignore `ss' request if in compatibility mode.
2490 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
2491 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
2492 * src/roff/troff/env.cc (space_size): Use it.
2494 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
2495 `ss' request in nroff mode.
2497 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
2500 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
2502 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
2504 2000-12-13 Werner LEMBERG <wl@gnu.org>
2506 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
2507 * src/preproc/eqn/neqn.man: Small fixes and additions.
2509 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
2511 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
2514 * src/preproc/eqn/neqn.man: New file.
2516 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
2519 * tmac/e.tmac: Add `T&' macro.
2520 Fix `indent cannot be negative' warning.
2521 * tmac/s.tmac: Fix `indent cannot be negative' warning.
2523 2000-12-07 Werner LEMBERG <wl@gnu.org>
2525 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
2527 2000-12-06 Werner LEMBERG <wl@gnu.org>
2529 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
2532 * MORE.STUFF: Added info about deroff for djgpp.
2534 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
2535 documentation of -rcR switch.
2537 2000-12-03 Werner LEMBERG <wl@gnu.org>
2539 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
2540 if -rcR=1 (which is now the default in nroff mode), a single, very
2541 long page is created instead of multiple pages: All `ne' and `wh'
2542 requests are put into conditionals; a new macro `an-end' is added to
2543 be called with `em'.
2545 Some other minor cleanups.
2547 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
2549 2000-12-02 Werner LEMBERG <wl@gnu.org>
2551 Fixing a bug which prevented hyphenation in words followed
2552 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
2554 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
2555 Adding possibly_break_line().
2556 * src/roff/troff/env.h (environment): Make possibly_break_line()
2559 Make `\~' usable in .tr request.
2561 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
2562 (token): Add stretchable_space().
2563 * src/roff/troff/input.cc (token::next, token::delimiter,
2564 token::description, process_input_stack, do_translate,
2565 add_to_node_list, token::process): Use it.
2566 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
2567 for adjusting the space.
2568 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
2569 for stretchable space.
2570 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
2571 (make_node): Add code for stretchable space.
2572 * src/roff/troff/env.cc (environment::add_char): Use it.
2573 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
2574 (get_copy, token::next, transparent_translate, asciify): Use it.
2576 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
2577 doc/groff.texinfo: Updated.
2578 * man/groff.man: Small reorderings.
2580 2000-11-23 Werner LEMBERG <wl@gnu.org>
2583 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
2585 * src/roff/troff/input.cc (main): Add `config_macro_path' and
2586 `safer_macro_path' to -M option.
2587 * src/roff/troff/troff.man: Fixes.
2589 2000-11-22 Werner LEMBERG <wl@gnu.org>
2591 Use safer path (except for config files) if -U isn't specified. Add
2592 a special macro path (without home and current directory) for config
2593 files. Add home directory to unsafe path for consistency. Don't
2594 include the home directory in the font path.
2596 * src/lib/libgroff/macropath.cc: Add `config_macro_path', change
2598 * src/include/macropath.h: Add `config_macrp_path'.
2599 * src/lib/libgroff/fontfile.cc: Fix font path.
2600 * src/roff/troff/input.cc (process_startup_file): Use
2601 `config_macro_path'.
2602 (main): Select unsafe path if -U is given.
2604 * src/preproc/eqn/main.cc (main): Fixing search path for
2606 * src/preproc/eqn/eqn.man: Updated.
2608 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
2611 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
2612 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
2613 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
2614 src/devices/grotty/grotty.man: Updated.
2616 * Makefile.in: Fix comments.
2618 2000-11-17 Werner LEMBERG <wl@gnu.org>
2620 * tmac/safer.tmac: Empty file added (again) for compatibility
2622 * tmac/Makefile.sub: Updated.
2624 2000-11-16 Werner LEMBERG <wl@gnu.org>
2626 * src/devices/grodvi/dvi.cc (main),
2627 src/devices/grohtml2/post-html.cc (main),
2628 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
2629 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
2630 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
2631 (main), src/preproc/html2/pre-html.cc (main),
2632 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
2633 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
2634 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
2635 (main), src/utils/hpftodit/hpftodit.cc (main),
2636 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
2637 (main), src/utils/lookbib/lookbib.cc (main),
2638 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
2639 (main): Use stdout for -v.
2640 * src/roff/groff/groff.cc (run_commands),
2641 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
2642 to make direct printing to stdout possible.
2643 * src/roff/groff/pipeline.h: Updated.
2645 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
2646 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
2647 * src/utils/afmtodit/afmtodit.man: Updated.
2649 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
2650 (version): New function.
2652 * src/utils/addftinfo/addftinfo.man: Updated.
2654 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
2655 Fixing copyright dates.
2657 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
2660 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
2663 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
2665 2000-11-15 Werner LEMBERG <wl@gnu.org>
2667 In all programs, make -v return immediately with exit status 0 to
2668 be compliant with the GNU standard.
2670 * src/devices/grodvi/dvi.cc (main),
2671 src/devices/grohtml2/post-html.cc (main),
2672 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
2673 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
2674 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
2675 (main), src/preproc/html2/pre-html.cc (main),
2676 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
2677 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
2678 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
2679 (main): Implement it.
2682 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
2683 and postprocessors to the -v option.
2685 * src/roff/grog/grog.pl: Implement -v.
2686 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
2687 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
2689 * src/roff/nroff/nroff.sh: Implement -v.
2690 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
2691 * src/roff/nroff/nroff.man: Updated.
2693 * src/preproc/eqn/main.cc (main): Fix comment typo.
2695 * MORE.STUFF: Added info about djgpp port of grap.
2697 2000-11-14 Werner LEMBERG <wl@gnu.org>
2699 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
2700 mode (or rather, implemented non-compatibility mode).
2701 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
2703 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
2704 replacing it -- we don't find gxditview otherwise.
2705 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
2707 * src/preproc/pic/depend: Removed. Unnecessary.
2709 Implemented dummy keyword `solid' in pic for compatibility with
2712 * lex.cc (lookup_keyword): Added `solid'.
2713 * pic.y: Added SOLID with dummy rule.
2714 * pic.cc, pic_tab.h: Regenerated.
2715 * doc/pic.ms: Updated.
2717 2000-11-13 Werner LEMBERG <wl@gnu.org>
2719 For security reasons, don't use the current directory but the home
2720 directory while searching and scanning troffrc and troffrc-end.
2721 Similarly, replace the current directory with the home directory
2724 * Makefile.in (fontpath, tmacpath): Remove current directory.
2726 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
2727 two parameters `add_home' and `add_current'.
2728 (search_path::~search_path, search_path::command_line_dir,
2729 search_path::open_file): Remove tests for `dirs' being zero.
2730 * src/include/searchpath.h: Adjust.
2731 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
2733 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
2735 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
2736 * src/roff/troff/input.cc: Use `mac_path', initialized with
2738 (process_startup_file): Set `mac_path' to `safer_macro_path'.
2739 * src/roff/troff/env.cc: Use `mac_path'.
2741 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
2743 * NEWS, man/roff.man, src/roff/troff/troff.man,
2744 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
2747 2000-11-12 Werner LEMBERG <wl@gnu.org>
2749 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
2751 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
2752 * configure.in: Fix typo in comment.
2753 * configure: Regenerated.
2755 * src/libgroff/*, src/include/*, src/roff/troff/*: Fixing copyright
2758 2000-11-08 Werner LEMBERG <wl@gnu.org>
2760 Add system tmac directory (/usr/local/lib/groff/site-tmac).
2762 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
2763 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
2766 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
2767 * tmac/Makefile.sub (install_data): Create
2768 $(systemtmacdir) and $(localtmacdir).
2769 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
2770 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
2771 NEWS, doc/groff.texinfo: Updated and minor fixes.
2773 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
2774 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
2775 $(systemtmacdir) since the wrapper files are platform-dependent.
2777 2000-11-01 Werner LEMBERG <wl@gnu.org>
2779 * doc/groff.texinfo: Fix typo.
2781 2000-10-26 Werner LEMBERG <wl@gnu.org>
2783 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
2784 tmac.doc.old -> doc-old.tmac
2785 tmac.an.old -> an-old.tmac
2787 * tmac/tmac.*: Moved to ...
2788 * tmac/*.tmac: this.
2789 * tmac/man.local: Fix comment.
2790 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
2791 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
2792 Added some `FILES' sections. More use of @...@ directives. Other
2794 * arch/djgpp/README, font/devutf8/NOTES: Updated.
2795 * doc/homepage.ms, doc/groff.texinfo: Updated.
2796 * man/groff.man, man/roff.man: Updated.
2797 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
2798 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
2799 src/devices/grotty/grotty.man: Updated.
2800 * src/preproc/pic/pic.man: Updated.
2801 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
2802 instead of -mdoc.old.
2803 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
2804 * src/roff/nroff/nroff.man: Updated.
2807 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
2809 * tmac/mm.diff: Removed -- it has no use now since the mm package
2812 * tmac/*: Removed trailing spaces.
2814 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
2815 the tmac subdirectory also).
2817 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
2818 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
2819 stuff since it is no longer needed.
2821 * README, PROBLEMS: Updated.
2823 2000-10-25 Werner LEMBERG <wl@gnu.org>
2825 Invert current behaviour: Search first FOOBAR.tmac, then
2828 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
2829 (open_mac_file, macro_source): Implement it.
2830 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
2831 doc/groff.texinfo, NEWS: Document it.
2833 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
2834 Small documentation improvements.
2836 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
2839 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
2841 2000-10-24 Werner LEMBERG <wl@gnu.org>
2843 Add local tmac directory (groff/site-tmac).
2845 * Makefile.in: Add $(localtmacdir).
2846 (uninstall_dirs): Add $(localtmacdir).
2847 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
2848 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
2849 in $(localtmacdir). Create $(localtmacdir).
2850 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
2851 Updated and minor fixes.
2853 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
2855 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
2857 2000-10-23 Werner LEMBERG <wl@gnu.org>
2859 Move hyphen.us to tmac directory.
2861 * src/roff/troff/hyphen.us: Removed.
2862 * src/tmac/hyphen.us: Added.
2863 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
2865 Change installation structure for data files from .../groff/... to
2866 .../groff/<version><revision>/... to be conform with other GNU
2869 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
2870 doc/Makefile: Implement it.
2871 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
2872 * configure: Updated.
2873 * arch/djgpp/README, font/devutf8/NOTES: Use it.
2874 * NEWS: Document it.
2875 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
2876 @MACRODIR@ instead of hard-coded directories.
2878 2000-10-22 Werner LEMBERG <wl@gnu.org>
2880 Implement $GROFF_BIN_PATH environment variable (which defaults to
2881 $bindir) used for child programs of groff and similar wrappers.
2883 * gendefs.sh: Improve documentation.
2884 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
2885 src/preproc/eqn/Makefile.sub (neqn),
2886 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
2887 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
2889 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
2890 $GROFF_PATH__ (the latter for communication with troff).
2891 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
2893 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
2894 doc/groff.texinfo: Document it.
2896 * doc/groff.texinfo: Improve documentation of troff's -a option.
2898 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
2900 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
2901 non-intrusive eol marker.
2902 (troff_output_file::determine_line_limits): New function.
2903 (troff_output_file::draw): Use it.
2904 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
2905 output_pending_lines() instead of output_line().
2906 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
2907 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
2908 createImage): Small fixes.
2910 2000-10-14 Werner LEMBERG <wl@gnu.org>
2912 Replace tmac.safer with a real secure solution.
2914 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
2915 system_request, pipe_output): Disable requests if in safer mode.
2916 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
2917 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
2918 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
2919 doc/groff.texinfo, src/roff/groff/groff.man,
2920 src/roff/troff/troff.man, arch/djgpp/README: Updated.
2922 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
2923 (resource_manager::output_prolog): Replace setenv() with putenv().
2925 2000-10-09 Werner LEMBERG <wl@gnu.org>
2927 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
2928 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
2929 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
2930 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
2931 compilation errors with some compilers. It seems that this code
2932 is no longer necessary -- if yes, it is easy to add some #ifdef's
2933 for that particular old-fashioned compiler.
2935 * MORE.STUFF: Added info about Meta-tbl.
2937 * doc/groff.texinfo: Added more info about `.if "..."..."'.
2939 2000-10-07 Werner LEMBERG <wl@gnu.org>
2941 Adding a new escape sequence \B'...': If the string between
2942 the delimiters is a valid numeric expression, return the character
2943 `1', and `0' otherwise. This is an analogon to \A.
2945 * src/roff/troff/input.cc (do_expr_test): Implement it.
2946 (token::next): Use it.
2947 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
2949 * tmac/tmac.trace: Made independent from escape character.
2951 2000-10-06 Werner LEMBERG <wl@gnu.org>
2953 Adding a new request .dei: define indirect. The first and second
2954 parameter of .dei are taken from string registers instead directly;
2955 this very special request is needed to make tmac.trace independent
2956 from the escape character (which might even be disabled).
2958 * src/roff/troff/input.cc (do_define_macro): Implement it.
2959 (define_macro_indirect): New function.
2960 (init_input_requests): Use it.
2962 Adding two requests .ecs and .ecr: Save and restore the escape
2963 character. These two requests are needed to make tmac.trace
2964 independent from the escape character (which might even be
2967 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
2969 (init_input_requests): Use it.
2971 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
2973 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
2975 Adding a new option -P and new environment variable GROPS_PROLOGUE
2976 to grops, selecting a different prologue file (minor modifications
2979 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
2980 src/devices/grops/ps.cc (main): Implement it.
2981 * src/devices/grops/grops.man, NEWS: Document it.
2983 2000-09-22 Werner LEMBERG <wl@gnu.org>
2985 * INSTALL: Add info about selecting paper format.
2987 2000-09-21 Werner LEMBERG <wl@gnu.org>
2989 * src/roff/troff/input.cc (main): Fixing compiler warning.
2990 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
2991 strings.h from the former to the latter.
2992 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
2993 stuff from the former to the latter.
2995 2000-09-11 Werner LEMBERG <wl@gnu.org>
2997 Implementing two new requests .tm1 and .tmc: The former is similar
2998 to .tm but can output leading spaces; its syntax is similar to
2999 defining a string, i.e., a `"' can be used to mark the beginning of
3000 the string to be written to stderr: `.tm1 " test'. The latter is
3001 similar to .tm1 but doesn't write out a final newline character.
3003 * src/roff/troff/input.cc (terminal1, terminal_continue,
3004 do_terminal): New functions.
3005 (init_input_requests): Use them.
3006 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
3008 2000-09-09 Werner LEMBERG <wl@gnu.org>
3010 * tmac/groff_mdoc.samples.man: Small fixes.
3012 2000-09-08 Werner LEMBERG <wl@gnu.org>
3014 * tmac/groff_mdoc.man: Fixing typo.
3016 2000-09-02 Werner LEMBERG <wl@gnu.org>
3018 Implementing a .nop request which does nothing.
3020 * src/roff/troff/input.cc (nop_request): New function.
3021 (init_input_requests): Use it.
3022 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
3024 2000-09-01 Werner LEMBERG <wl@gnu.org>
3026 * doc/groff.texinfo: Added some comments.
3028 2000-08-30 Werner LEMBERG <wl@gnu.org>
3030 * src/roff/troff/TODO: Updated.
3032 2000-08-25 Werner LEMBERG <wl@gnu.org>
3034 * doc/groff.texinfo: Fix comment how to compile the DVI file.
3036 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
3038 * font/devps/generate/Makefile (SHELL): Define explicitly to
3039 "/bin/sh", for non-Unix platforms.
3040 (extraclean): Use a more portable "" quoting instead of a
3041 backslash (which doesn't work on DOS/Windows).
3043 * font/devlj4/generate/Makefile (extraclean): Ditto.
3045 * font/devdvi/generate/Makefile (extraclean): Ditto.
3047 2000-08-25 Werner LEMBERG <wl@gnu.org>
3049 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
3050 src/roff/troff/troff.man: Document Eli's latest changes.
3052 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
3054 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
3055 macro file names of the form NAME.tmac as well as tmac.NAME.
3057 2000-08-25 Werner LEMBERG <wl@gnu.org>
3059 * src/include/posix.h: Remove definition of FILENAME_MAX.
3061 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
3062 `sys_fatal' and `stop' function().
3064 * test-groff: Updated.
3066 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
3068 Added the new troff command .output <arg> to suppress output (while
3069 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
3070 registers (for passing the output dimensions to the output device).
3072 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
3074 * src/roff/troff/node.h, src/roff/troff/node.cc
3075 (troff_output_file::really_print_line,
3076 ascii_output_file::really_print_line,
3077 supress_output_file::really_print_line): Use `width' parameter.
3078 (troff_output_file::really_on, troff_output_file::really_off,
3079 output_file::on, output_file::off, real_output_file::on,
3080 real_output_file::off, real_output_file::really_on,
3081 real_output_file::really_off): New functions.
3082 (real_output_file:public output_file): New variable `output_on'.
3083 (real_output_file::begin_page, real_output_file::copy_file,
3084 real_output_file::transparent_char, real_output_file::print_line):
3086 (real_output_file::print_line): Use check_output_limits.
3087 * src/roff/troff/reg.h, src/roff/troff/request.h,
3088 src/roff/troff/input.cc (assign_registers): New function to remove
3090 (do_ps_file): Use it.
3091 (check_output_limits, reset_output_registers, output_request,
3092 init_output_requests): New functions.
3093 (init_input_requests): Updated.
3095 Added new grohtml2 device and html2 preprocessor (coding
3096 not yet finished) which will eventually replace grohtml.
3098 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
3100 * src/include/htmlindicate.h, src/include/htmlindicate
3101 (html_begin_suppress, html_end_suppress): New functions.
3102 * src/preproc/tbl/main.cc: Use it.
3103 * src/roff/groff/groff.cc: Add support for html2 device (which will
3104 automatically invoke the html2 preprocessor).
3105 * src/roff/troff/input.cc (is_html2): New variable.
3106 * src/roff/troff/troff.h, src/roff/troff/env.h,
3107 src/roff/troff/env.cc (environment::add_html_tag): New function
3109 (environment::do_break): Use it.
3110 * font/devhtml2/*: New files.
3111 * src/devices/grohtml2: New device.
3112 * src/preproc/html2: New preprocessor.
3113 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
3115 2000-08-23 Werner LEMBERG <wl@gnu.org>
3117 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
3119 2000-08-22 Werner LEMBERG <wl@gnu.org>
3121 * src/include/lib.h: Provide a fix for IRIX to not include
3124 2000-08-18 Werner LEMBERG <wl@gnu.org>
3126 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
3127 since some non-GNU sed programs can't handle null regexps.
3128 * configure, src/preproc/eqn/Makefile.sub,
3129 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
3131 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
3132 bug (string.h and strings.h are both needed according to latest
3135 * MORE.STUFF: Added info about unroff and troffcvt.
3137 2000-08-08 Werner LEMBERG <wl@gnu.org>
3139 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
3142 * tmac/tmac.man.old: Remove unused number register.
3144 * tmac.doc: Minor documentation fix.
3146 2000-08-07 Paul Eggert <eggert@twinsun.com>
3148 * src/roff/groff/pipeline.c (is_system_shell):
3149 Fix typo: "monocased_shell" no longer exists.
3151 2000-08-07 Paul Eggert <eggert@twinsun.com>
3153 Remove FILENAME_MAX limits.
3155 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
3156 that the argument length is less than FILENAME_MAX.
3157 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
3158 Use struct hack to allocate and free file name.
3159 (struct xtmpfile_list): fname is now part of the structure,
3160 not a pointer to another string.
3162 2000-08-07 Tom Schmidt <tschmidt@micron.com>
3164 * src/include/posix.h: Add a default value for FILENAME_MAX.
3166 2000-08-06 Paul Eggert <eggert@twinsun.com>
3168 Add support for new BSD-style man pages (with ".Dd" instead of
3169 ".TH"), so that "groff -man" understands both styles, even
3170 when running "groff -man" on a host whose system man page
3171 macros don't support ".Dd".
3173 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
3174 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
3175 in case the system man macros don't define Dd or TH.
3177 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
3178 * tmac/tmac.an: New one-line file.
3179 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
3181 2000-08-06 Werner LEMBERG <wl@gnu.org>
3183 * src/roff/troff/troff.man: Fixing typos.
3185 Version 1.16.1 released
3186 =======================
3188 2000-07-31 Werner LEMBERG <wl@gnu.org>
3190 Preparing release 1.16.1.
3192 * REVISION: Revision number set to 1.
3193 * MORE.STUFF: Added info about port to DOS.
3194 * NEWS, win32-diffs: Updated.
3196 * src/include/nonposix.h: Remove first line -- this file is used
3199 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
3202 2000-07-30 Werner LEMBERG <wl@gnu.org>
3204 * doc/texinfo.tex: Update to latest version.
3206 2000-06-28 Paul Eggert <eggert@twinsun.com>
3208 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
3209 commands that fail. Don't assume that "export a=b" is valid shell
3210 syntax. This is needed for Solaris 2.5.1.
3212 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
3213 comment about missing Solaris headers.
3215 * PROBLEMS: Add section about problems with Sun Make and VPATH.
3217 2000-06-25 Werner LEMBERG <wl@gnu.org>
3219 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
3222 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
3224 * win32-diffs: Updated.
3225 * README.WIN32: Added CRs to make all Windows editors happy.
3227 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
3228 src/roff/groff/pipeline.c).
3230 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
3232 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
3233 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
3235 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
3237 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
3238 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
3240 (main): Support non-Posix systems with several different styles of
3241 slash characters in file names.
3243 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
3244 (main) [SET_BINARY]: Switch stdin into binary mode.
3246 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
3247 (main): Support file names with several possible slash-type
3248 characters, as given by DIR_SEPS[] in nonposix.h.
3249 (main) [__MSDOS__]: If renaming the temporary index file fails
3250 because it has more than one dot in its trunk, replace the dot
3251 with an underscore and try again.
3252 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
3254 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
3256 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
3257 (File::File): Open the input file in binary mode. Strip CR
3258 characters from each CR-LF pair.
3259 (xbasename): Support file names with several possible slash-type
3260 characters, as given by DIR_SEPS[] in nonposix.h.
3262 * src/include/Makefile.sub (HDRS): Add nonposix.h.
3264 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
3265 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
3266 [!_POSIX_VERSION]: Define for traditional Unix systems.
3267 (real_output_file::real_output_file): Remove the MSVC-specific
3268 call to popen, use instead POPEN_WT, appropriately defined on
3269 nonposix.h. #include nonposix.h.
3270 (real_output_file::~real_output_file): Remove the MSVC-specific
3271 call to pclose, a suitable macro is now defined on nonposix.h.
3272 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
3273 and WEXITSTATUS instead of assuming traditional Unix
3274 interpretation of the status returned by pclose.
3276 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
3277 call to popen, use POPEN_RT instead (appropriately defined on
3278 nonposix.h). #include nonposix.h.
3279 (ps_bbox_request): Open the PostScript file in binary mode.
3280 Close the file after processing it.
3281 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
3284 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
3285 A version of run_pipeline that doesn't use `fork'.
3286 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
3287 (system_shell_name, system_shell_dash_c)
3288 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
3289 the ugliness of testing DOS/Windows file names for equality, and
3290 support both stock shells and ports of Unix shells.
3292 * src/roff/groff/groff.cc: #include nonposix.h.
3293 (BSHELL): Definition moved to nonposix.h.
3294 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
3295 instead of a literal "-c".
3296 (xbasename): Support file names with several possible slash-type
3297 characters, as given by DIR_SEPS[] in nonposix.h.
3298 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
3301 * src/preproc/soelim/soelim.cc: #include nonposix.h.
3302 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
3304 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
3307 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
3309 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
3312 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
3314 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
3315 P_tmpdir is defined, use it instead of the literal "/tmp".
3316 (remove_tmp_files, add_tmp_file): New functions.
3317 (xtmpfile): Record temporary files and register an atexit function
3318 to delete them explicitly, instead of relying on the OS to do
3319 that, which doesn't work on non-Unix systems.
3321 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
3322 (search_path::search_path): Use PATH_SEP instead of a literal
3324 (search_path::command_line_dir): Ditto.
3325 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
3326 to support non-Posix systems.
3328 * src/libc/libbib/search.cc: #include nonposix.h.
3329 (search_list::add_file): Open the file in binary mode.
3331 * src/libs/libbib/linear.cc: #include nonposix.h.
3332 (file_buffer::load): Remove \r characters preceding \n from the
3335 * src/libs/libbib/index.cc: #include nonposix.h.
3336 (make_index_search_item): Open index_filename in O_BINARY mode.
3337 (index_search_item_iterator::get_tag): Ditto. Remove \r
3338 characters before \n characters.
3339 (index_search_item::check_files): Open files in binary mode.
3340 (index_search_item::munge_filename): Support DOS-style file names
3341 with backslashes and drive letters, use IS_ABSOLUTE.
3343 * src/devices/grops/ps.cc: #include nonposix.h.
3344 (main) [SET_BINARY]: Switch stdout to binary mode.
3346 * src/devices/grolj4/lj4.cc: #include nonposix.h.
3347 (main) [SET_BINARY]: Switch stdout to binary mode.
3349 * src/devices/grolbp/lbp.cc: #include nonposix.h
3350 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
3352 * src/devices/grodvi/dvi.cc: #include nonposix.h.
3353 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
3355 (main) [SET_BINARY]: Switch stdout to binary mode.
3356 [_MSC_VER]: Remove an explicit call to _setmode.
3358 * src/include/nonposix.h: New file.
3360 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
3361 operation when building with DJGPP.
3362 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
3363 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
3366 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
3368 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
3369 etc. can include a semi-colon on DOS/Windows.
3370 (depend.temp): Use depend1.temp instead of depend.temp1, to
3371 prevent files from overerwiting each other on 8+3 filesystems.
3373 * gendef.sh (t): Change definition to work with DOS/Windows.
3375 doc/groff.texinfo: Apart of some typo corrections, I also changed
3376 some index entris, to make them more non-ambiguous, and also put
3377 @ignore around some parts that are not yet written, to allow the
3378 Info output be readable.
3380 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
3382 Replaced specific checks for function declarations with a generic
3383 routine taken from GNU bfd.
3385 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
3386 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
3387 * configure.in: Use it.
3388 * src/devices/grolbp/lbp.cc, src/include/lib.h,
3389 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
3390 src/roff/groff/groff.cc: Use it.
3391 * Makefile.in, configure: Updated.
3393 2000-06-07 Paco Andres Verdu <pandres@dragonet.es>
3395 * src/devides/grolbp/lbp.h: Removed unused variables.
3397 2000-05-31 Keith Thompson <kst@sdsc.edu>
3399 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
3402 2000-05-31 Werner LEMBERG <wl@gnu.org>
3404 * aclocal.m4 (GROFF_SRAND): New function to test the return value
3405 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
3406 * configure.in: Use it.
3407 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
3408 * configure, Makefile.in: Updated.
3410 * configure.in: Add test for strncasecmp().
3411 * src/include/lib.h: Use it.
3413 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
3415 * src/preproc/grn/Makefile.sub: Add MLIB.
3417 2000-05-29 Nix <nix@esperi.demon.co.uk>
3419 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
3421 2000-05-29 Werner LEMBERG <wl@gnu.org>
3423 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
3425 * PROBLEMS: Small update.
3427 * src/devices/grolbp/lbp.cc: Various small fixes.
3429 2000-05-28 Keith Thompson <kst@sdsc.edu>
3431 * src/roff/nroff/nroff.sh: Fix main loop syntax.
3433 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
3435 2000-05-25 Werner LEMBERG <wl@gnu.org>
3437 * man/roff.man: Removed unused macro.
3439 2000-05-24 Werner LEMBERG <wl@gnu.org>
3441 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
3442 This is needed e.g. if you do
3443 `make distclean; ./configure; make dist'.
3445 Version 1.16 released
3446 =====================
3448 2000-05-23 Werner LEMBERG <wl@gnu.org>
3450 Adding font CWI (constant width italic) to devdvi.
3452 * font/devdvi/CWI: New file.
3453 * font/devdvi/generate/Makefile: Add generating rule.
3454 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
3455 tmac/tmac.dvi: Use it.
3456 * NEWS: Announce it.
3458 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
3459 * font/devlj4/generate/Makefile: Cosmetic changes only.
3461 * man/groff.man: Removed most of the redundant description of
3462 special characters (which is in groff_char.man). Added font
3463 translation CB->CR for devdvi. Other minor fixes.
3465 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
3466 (registered) symbols.
3468 2000-05-22 Werner LEMBERG <wl@gnu.org>
3470 * doc/Makefile: Added rule for creating info files.
3472 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
3474 * font/devdvi/generate/Makefile: Fixed dependencies.
3476 * font/devps/*: Regenerated. Heavy changes for Bookman and
3477 NewCentury Schoolbook!
3478 * font/devps/generate/afmname: Will now run with GNU awk.
3479 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
3480 * font/devps/generate/Makefile: Cosmetic changes only.
3482 2000-05-21 Werner LEMBERG <wl@gnu.org>
3484 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
3485 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
3486 `.SS' now produces a heading with a smaller size than `.SH'.
3487 Completely formatted.
3488 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
3490 * man/groff.man: Improved table appearance. Use of `eo' request
3491 to reduce number of doubled backslashes in macro definitions.
3492 Replacing `\e' with `\(rs'. Other minor fixes.
3494 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
3495 to have correct line number.
3497 * INSTALL: Small improvement.
3499 2000-05-20 Bernd Warken <bwarken@mayn.de>
3501 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
3504 2000-05-19 Bernd Warken <bwarken@mayn.de>
3506 * man/groff.man: Complete update (with a lot of corrections by WL).
3508 2000-05-18 Werner LEMBERG <wl@gnu.org>
3510 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
3512 * font/*/*: Implement it.
3513 * man/groff_char.man, NEWS: Document it.
3515 * src/include/unix.h: Removed. It isn't used.
3517 * doc/groff.texinfo: Slight improvements.
3519 2000-05-17 Werner LEMBERG <wl@gnu.org>
3521 * README, win32-diffs: Small fixes and improvements.
3523 2000-05-16 Werner LEMBERG <wl@gnu.org>
3525 * FDL: New file (the Free Documentation License version 1.1).
3527 * doc/groff.texinfo: Added many start-up values for gtroff.
3528 Some structural improvements of the source code.
3530 2000-05-15 Werner LEMBERG <wl@gnu.org>
3532 * src/roff/troff/input.cc: Added small comment about troffrc-end.
3533 * src/roff/troff/troff.man: Added info about troffrc-end.
3535 2000-05-14 Werner LEMBERG <wl@gnu.org>
3537 * Makefile.in (EXTRADIRS): Fix typos.
3538 (dist): Handle deletion of old .tar.gz file correctly.
3539 (DISTDIRS): Include all tty output devices.
3541 * doc/groff.texinfo: Adding more cross references; countless other
3544 2000-05-13 Werner LEMBERG <wl@gnu.org>
3546 * MORE.STUFF: Added Robert Marks's utilities.
3548 2000-05-12 Werner LEMBERG <wl@gnu.org>
3550 Added win32 port contributed by Blake McBride
3551 <blake@florida-software.com>.
3553 * README.WIN32, win32-diffs: New files.
3556 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
3557 (tmove, tmove2): Added parentheses to avoid compiler warnings.
3558 (change): Removed unused variables.
3560 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
3561 (savebounds): Changed return value from `int' to `void'.
3562 * src/preproc/grn/hdb.cc: Ditto.
3564 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
3565 final backslash in comment to avoid compiler warning.
3567 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
3569 * doc/groff.texinfo: More fixes.
3571 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
3573 * tmac/tmac.doc: Documentation fix.
3575 2000-05-11 Werner LEMBERG <wl@gnu.org>
3577 * doc/groff.texinfo: Reading the source code shows up a lot of
3578 omissions and incorrect data... More conversion to @Deffn macros.
3580 2000-05-10 Werner LEMBERG <wl@gnu.org>
3582 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
3585 * src/roff/troff/request.h: Removing unused `no_break_flag'.
3587 2000-05-09 Werner LEMBERG <wl@gnu.org>
3589 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
3592 * doc/groff.texinfo: Extended history section. More conversion to
3593 @Deffn macros. More .tr documentation.
3595 2000-05-07 Werner LEMBERG <wl@gnu.org>
3597 * doc/groff.texinfo: Completed tab section. Added info about
3600 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
3602 * PROBLEMS: Describe configure script fix for OS/390 Unix.
3604 2000-05-05 Werner LEMBERG <wl@gnu.org>
3606 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
3608 * NEWS: Document it.
3610 * man/troff.man: Minor optical improvements.
3612 2000-05-03 Werner LEMBERG <wl@gnu.org>
3614 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
3616 * font/*/*: Implement it.
3617 * man/groff_char.man, NEWS: Document it.
3619 2000-05-02 Werner LEMBERG <wl@gnu.org>
3621 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
3623 * NEWS: Document the three new man pages.
3625 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
3626 * configure: Updated.
3628 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
3630 2000-05-01 Werner LEMBERG <wl@gnu.org>
3632 Added grap support to grog.
3634 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
3635 * src/roff/grog/grog.man: Document it.
3637 * doc/groff.texinfo, NEWS: Add info about grap support.
3639 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
3640 (with slight fixes by me).
3642 * tmac/groff_tmac.man: New file documenting tmac mechanism.
3643 * tmac/Makefile.sub: Add groff_tmac.man.
3644 * man/roff.man: New file giving overview of roff system.
3645 * man/troff.man: A short reference of troff.
3646 * man/Makefile.sub: Add roff.man and troff.man.
3648 2000-04-30 Werner LEMBERG <wl@gnu.org>
3650 Added grap support to groff.
3652 * src/roff/groff/groff.cc: Implement it.
3653 * src/roff/groff/groff.man: Document it.
3655 * src/devices/grotty/grotty.man: Add cp1047 device.
3656 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
3658 * src/roff/groff/groff.man: Ditto.
3659 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
3660 * doc/groff.texinfo: Ditto.
3662 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
3665 2000-04-29 Werner LEMBERG <wl@gnu.org>
3667 * man/groff_char.man: Add `pc' glyph.
3668 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
3669 * tmac/tmac.tty: Add `pc' glyph.
3670 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
3671 we use cp1047 output device.
3673 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
3674 there are still hardcoded latin1->unicode values in utf8's font
3676 * configure: Updated.
3677 * NEWS: Minor clarification. Updated.
3679 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
3682 2000-04-28 Werner LEMBERG <wl@gnu.org>
3684 Adding EBCDIC code page 1047.
3686 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
3687 font/devcp1047/DESC.proto: New files.
3689 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
3690 either ascii/latin1 or cp1047.
3691 * Makefile.in: Use it.
3692 * configure: Updated.
3694 Replacing and/or adding `md' (mathdot) glyph with `pc'
3695 (periodcentered) in all text fonts.
3697 * font/*/*: Change it.
3699 2000-04-27 Werner LEMBERG <wl@gnu.org>
3701 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
3703 * configure.in: Add check for strings.h.
3704 * src/include/driver.h: Use HAVE_STRINGS_H.
3705 * src/devices/grolbp/lpb.cc: Remove string.h.
3707 * src/include/groff-getopt.h: New file. It will be used instead of
3708 getopt.h (to be included in lib.h) to avoid endless problems with
3709 picky C++ compilers.
3710 * src/include/lib.h: Use groff-getopt.h.
3711 * src/include/Makefile.sub: Updated.
3713 * configure: Updated.
3714 * Makefile.in: Updated.
3716 * NEWS: Mention EBCDIC support.
3718 2000-04-26 Werner LEMBERG <wl@gnu.org>
3720 * TODO: Some additions.
3722 2000-04-25 Werner LEMBERG <wl@gnu.org>
3724 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
3727 2000-04-23 Werner LEMBERG <wl@gnu.org>
3729 * src/roff/troff/troff.man: Minor fixes.
3731 2000-04-22 Werner LEMBERG <wl@gnu.org>
3733 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
3734 `.T' string register and the incompatible definition of the `.T'
3735 number register (compared to Unix troff).
3737 * man/groff_char.man: Add some missing characters.
3738 * font/devutf8/NOTES: Update.
3740 2000-04-21 Werner LEMBERG <wl@gnu.org>
3742 * src/include/htmlindicate.h, src/include/lib.h,
3743 src/include/posix.h: Fix copyright.
3745 * src/include/Makefile.sub: Update.
3747 2000-04-20 Werner LEMBERG <wl@gnu.org>
3749 * src/roff/troff/input.cc (input_char_description): Removing
3750 superfluous space char.
3752 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
3754 * doc/groff.texinfo: Document EBCDIC.
3756 2000-04-19 Werner LEMBERG <wl@gnu.org>
3758 Introducing `shc' as the glyph name for the soft hyphen character.
3760 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
3761 font/devlatin1/R.proto: Use it.
3765 2000-04-18 Werner LEMBERG <wl@gnu.org>
3767 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
3768 dependency on ASCII order.
3770 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
3772 * src/libs/libgroff/illegal.c: Added EBCDIC table.
3773 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
3775 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
3776 to increase portability.
3778 2000-04-15 Werner LEMBERG <wl@gnu.org>
3780 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
3781 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
3782 the generic `\n' if under OS/390 Unix.
3784 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
3786 * configure: Regenerated.
3788 2000-04-14 Werner LEMBERG <wl@gnu.org>
3790 * doc/groff.texinfo: More conversions to @Deffn.
3792 2000-04-12 Werner LEMBERG <wl@gnu.org>
3794 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
3797 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
3799 2000-04-10 Werner LEMBERG <wl@gnu.org>
3801 * doc/groff.texinfo: More conversions to @Deffn.
3803 2000-04-08 Werner LEMBERG <wl@gnu.org>
3805 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
3806 Updated to latest version (glibc 2.1.3).
3808 2000-04-07 Werner LEMBERG <wl@gnu.org>
3810 * doc/Makefile (clean): Include more index files.
3811 Add rule texinfo->dvi.
3813 2000-04-05 Werner LEMBERG <wl@gnu.org>
3815 * doc/groff.texinfo: Added new index `op' for operators. More
3816 info on end of sentence characters. More use of @Deffn.
3818 2000-03-30 Werner LEMBERG <wl@gnu.org>
3820 * */*.man: Adding a note that a whitespace can be inserted between
3821 a command line option and its parameter -- we are using GNU getopt.
3823 * src/roff/groff/groff.man: Add example of `-m mandoc'.
3825 2000-03-28 Werner LEMBERG <wl@gnu.org>
3827 Correct anachronism of calling the man macro file with `-man'
3828 instead of `-m man' etc.
3830 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
3831 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
3832 load tmac.<package>.
3834 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
3838 * doc/groff.texinfo: Updated.
3840 * tmac/groff_man.man: Copyright added.
3842 2000-03-27 Werner LEMBERG <wl@gnu.org>
3844 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
3845 typeset the request resp. escape name with a tt font -- due to a
3846 bug in texinfo.tex it is necessary to use the `-e' switch with
3849 Improving info about usage of groff units.
3853 2000-03-20 Werner LEMBERG <wl@gnu.org>
3855 * doc/groff.texinfo: Added section about man macro package
3856 (I've basically taken groff_man.man). Introducing new indices `ma'
3857 for macros/strings and `gl' for glyph names. Other minor fixes.
3859 * tmac/groff_man.man: Fixed some typos.
3861 2000-03-19 Werner LEMBERG <wl@gnu.org>
3863 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
3866 * doc/texinfo.tex: New file.
3868 2000-03-18 Werner LEMBERG <wl@gnu.org>
3870 * doc/groff.texinfo: Improved section on number registers. Other
3873 2000-03-16 Werner LEMBERG <wl@gnu.org>
3875 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
3878 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
3879 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
3880 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
3881 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
3883 * src/preproc/grn/grn.man: Better synopsis; added copyright.
3885 * src/roff/grog/grog.man: Updated copyright date.
3887 2000-03-14 Francisco Andres Verdu <pandres@dragonet.es>
3889 * configure.in: Added test for strdup.
3891 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
3894 Replaced dynamic allocation of arrays `[...]' with `new' operator.
3898 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
3900 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
3902 2000-03-11 Werner LEMBERG <wl@gnu.org>
3904 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
3906 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
3907 * src/include/lib.h: Remove some spaces.
3909 2000-03-10 Werner LEMBERG <wl@gnu.org>
3911 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
3912 initializers from arguments (some compilers don't like this).
3914 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
3916 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
3917 used by pic and eqn to tell grohtml where the graphic regions start
3919 * src/libs/libgroff/Makefile.sub: Use it.
3920 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
3921 graphic_start() and graphic_end() from htmlindicate.cc.
3923 2000-03-09 Werner LEMBERG <wl@gnu.org>
3925 * tmac/tmac.safer: Will now work correctly in compatibility mode.
3926 * tmac/groff_man.man: More fixes.
3928 2000-03-08 Werner LEMBERG <wl@gnu.org>
3930 * doc/Makefile: Added texput.log to the `clean' target.
3931 * doc/groff.texinfo: Added info about delimiters for escapes.
3933 2000-03-08 Bernd Warken <bwarken@mayn.de>
3935 * src/preproc/pic/pic.man: Add info on conversion of pic images to
3936 other graphic formats.
3938 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
3940 * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
3941 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
3942 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
3945 2000-03-07 Werner LEMBERG <wl@gnu.org>
3947 * doc/groff.texinfo: Spelling fixes.
3949 2000-03-06 Werner LEMBERG <wl@gnu.org>
3951 * tmac/groff_man.man: Completely revised to cover everything in
3954 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
3955 Other minor fixings.
3956 * src/roff/troff/env.cc (environment_copy): Improve error message and
3958 * src/roff/troff/TODO: Updated.
3960 * doc/Makefile: Bug fixes -- this is still provisional, though...
3962 * tmac/eqnrc: Small fixes.
3964 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
3966 Adding a request `evc' to copy environments.
3968 * src/roff/troff/env.cc (environment::copy, environment_copy):
3970 * src/roff/troff/env.h: Add prototype.
3972 2000-03-05 Francisco Andres Verdu <pandres@dragonet.es>
3974 Adding strsep() -- Solaris 8 doesn't have it.
3976 * configure.in: Test it.
3977 * src/devices/grolbp/lbp.cc: Add code.
3979 2000-03-05 Werner LEMBERG <wl@gnu.org>
3981 * src/roff/troff/div.cc (macro_diversion::output,
3982 top_level_diversion::output): Fixing an incompatibility with
3983 original troff: \x'0' updates the .a register also. Thanks to
3984 <Andries.Brouwer@cwi.nl> for pointing this out.
3985 * doc/groff.texinfo: Document it.
3987 * Makefile.in: Create Makefile.dep if necessary before calling the
3988 submake process to avoid warning about nonexistent file.
3990 * NEWS, PROJECTS: Updated.
3992 2000-03-04 Werner LEMBERG <wl@gnu.org>
3994 * tmac/troffrc: Add tmac.lbp.
3996 2000-03-03 Francisco Andres Verdu <pandres@dragonet.es>
3998 * tmac/tmac.lbp: New file.
3999 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
4002 2000-03-03 Werner LEMBERG <wl@gnu.org>
4004 * Makefile.in: Fixing $(subdir).
4006 * README, NEWS: Small fixes.
4008 * test-groff: Adding path to grolbp.
4010 * configure.in: The (new) file src/xditview/Imakefile.in will be
4011 also configured -- it is now possible to build gxditview in a
4012 directory different from $srcdir.
4014 2000-03-02 Blake McBride <blake@florida-software.com>
4016 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
4018 * MORE.STUFF: Added website of bell labs and info about plot2dev.
4020 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
4022 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
4025 2000-02-29 Werner LEMBERG <wl@gnu.org>
4027 Adding GNU getopt to the groff distribution.
4029 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
4031 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
4032 * aclocal.a4: Remove GROFF_GETOPT function.
4033 * configure.in, Makefile.in, PROBLEMS: Update.
4034 * src/include/lib.h: Replace getopt tests with getopt.h.
4035 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
4037 * doc/groff.texinfo: Further checking/updating. Adding more index
4040 * man/groff_out.man: Fix nroff mode activation (for emacs).
4041 * man/groff_font.man: Add missing ligature.
4043 2000-02-28 Werner LEMBERG <wl@gnu.org>
4045 * doc/groff.texinfo: Further checking/updating. Adding more index
4048 * src/devices/grolbp/grolbp.man: Added a comment line at the
4049 beginning of the file (similar to shell scripts) which indicates
4050 that `tbl' should be used as a preprocessor.
4052 2000-02-27 Blake McBride <blake@florida-software.com>
4054 Adapting groff to MS Visual C++ 6.0 compiler (tested with
4055 Windows NT 4.0). Uses _MSC_VER define where necessary.
4057 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
4058 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
4059 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
4060 src/include/lib.h, src/libs/libgroff/errarg.cc,
4061 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
4062 src/preproc/refer/label.y, src/preproc/refer/label.cc,
4063 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
4064 src/roff/troff/div.cc, src/roff/troff/env.cc,
4065 src/roff/troff/input.cc, src/roff/troff/node.cc,
4066 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
4067 if_to_a() to avoid name clashes.
4068 * src/include/posix.h: Don't use unistd.h.
4069 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
4070 clause for integrating non-Unix xtmpfile() code.
4071 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
4072 structure; use "rt" for popen() in pipe_source(); add getpid()
4074 * src/roff/troff/node.cc: Use special versions of popen() in
4075 real_output_file() and pclose() in ~real_output_file().
4077 2000-02-27 Werner LEMBERG <wl@gnu.org>
4079 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
4080 LBP-8 series laser printers). This code has been contributed by
4081 Francisco Andres Verdu <pandres@dragonet.es>.
4083 * src/devices/grolbp/*: The grolbp output device.
4084 * font/devlpb/*: The font description files.
4085 * Makefile.in: Add grolpb and devlbp subdirectories.
4087 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
4088 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
4091 * doc/groff.texinfo: Further checking/updating. Adding more index
4096 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
4098 * man/groff_font.man: Adding info about obsolete DESC keywords.
4099 * src/devices/grolj4/grolj4.man: Documenting additional DESC
4102 2000-02-26 Werner LEMBERG <wl@gnu.org>
4104 * src/preproc/grn/grn.man: Added info about the gremlin file format
4105 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
4107 2000-02-25 Werner LEMBERG <wl@gnu.org>
4109 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
4110 friends to be non-integer.
4112 * src/preproc/grn/grn.man: Document it.
4114 * doc/groff.texinfo: Further checking/updating. Adding more index
4117 2000-02-24 Werner LEMBERG <wl@gnu.org>
4119 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
4120 line thicknesses to be integer multiples of this value.
4122 * src/preproc/grn/grn.man: Commenting out the -s option -- the
4123 corresponding code doesn't work (yet).
4125 * doc/groff.texinfo: Further checking/updating. Adding more index
4128 2000-02-23 Werner LEMBERG <wl@gnu.org>
4130 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
4131 specify line thickness instead of base units. The new default
4132 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
4133 thick lines respectively.
4135 Removed unused variable `prevval'.
4137 * src/preproc/grn/grn.man: Updated.
4139 2000-02-22 Werner LEMBERG <wl@gnu.org>
4141 * src/preproc/grn/main.cc: Slight formatting.
4143 * src/roff/groff/groff.man: Formatting fix.
4144 * src/preproc/grn/grn.man: Ditto.
4146 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
4148 * doc/groff.texinfo: Further checking/updating.
4150 2000-02-21 Werner LEMBERG <wl@gnu.org>
4152 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
4154 * test-groff: Added grn subdir to path.
4156 * doc/groff.texinfo: Some restructing and other small improvements.
4158 * src/roff/groff/groff.cc (help): Fixed info string.
4160 2000-02-20 Werner LEMBERG <wl@gnu.org>
4162 * doc/meref.me: Fix description of .GS request.
4164 * src/roff/troff/troff.man: Fixing typo.
4166 Adding the `grn' preprocessor for gremlin graphic files.
4168 * src/preproc/grn/*: This is the Berkeley distribution written by
4169 David Slattengren and Barry Roitblat, adapted to groff by Daniel
4170 Senderowicz and Werner Lemberg.
4172 * doc/grnexampl.{me,g}: A sample for grn.
4174 * Makefile.in: Added subdirectory entry for grn.
4176 * src/roff/groff/groff.cc: Added support for grn. It can be now
4177 called with the switch `-g'.
4179 * src/roff/groff/groff.man: Updated.
4181 * src/roff/grog/grog.{man,pl,sh}: Updated.
4185 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
4187 * src/include/lib.h: Added xtmptemplate and made xtmpfile
4188 parametrically polymorphic.
4190 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
4191 and the alterations to xtmpfile.
4192 xtmpfile can be requested to return the filename created
4193 and asked not to unlink the temp file. The default behaviour
4194 if parameters are absent is exactly the same as before.
4196 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
4198 A new request `length' is available which returns the length of a
4199 string in a number register:
4201 * src/roff/troff/input.cc (length_macro): Implement it.
4202 * src/roff/troff/input.cc (init_input_requests): Register it.
4204 2000-02-11 Werner LEMBERG <wl@gnu.org>
4206 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
4207 of the `substring' request.
4209 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
4212 * src/roff/troff/TODO, NEWS: Updated.
4214 2000-02-09 Werner LEMBERG <wl@gnu.org>
4216 * src/roff/groff/groff.man: Added an example.
4218 2000-02-06 Werner LEMBERG <wl@gnu.org>
4220 I've considerably modified the directory structure of the
4221 distribution to get a more vertical layout. For example, the number
4222 of top level directories has been reduced from 42 to 6.
4224 As a consequence, many changes, especially to the makefiles, were
4227 * The makefile variables `top_builddir' and `top_srcdir' have been
4228 introduced. Virtually all relative paths have been replaced with
4229 absolute ones using these two variables.
4231 * Dependencies (in the files `Makefile.dep') are no longer part of
4232 the distribution. Instead, they are created during a `make install'
4233 in the build directory.
4235 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
4236 make `top_srcdir' and `top_builddir' absolute.
4240 * Man pages no depend on the files `VERSION' and `REVISION'.
4242 * The added shell script `mkinstalldirs' will replace `mkdir' in
4245 * VERSION: Version number increased to 1.16.
4247 2000-02-04 Werner LEMBERG <wl@gnu.org>
4249 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
4251 * Makefile.in: Removed $(tmac_m) since it is no longer needed
4252 (after an update of the mm stuff).
4254 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
4256 2000-02-03 Werner LEMBERG <wl@gnu.org>
4258 The .psbb request will now also accept Mac PS images (i.e. using LF
4259 as the EOL character).
4261 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
4262 (with slight modifications).
4263 * troff/input.cc (do_ps_file): Use it.
4265 * test-groff: Add grohtml and grolj4 output devices to PATH.
4267 2000-01-30 Werner LEMBERG <wl@gnu.org>
4269 * NEWS, MORE.STUFF: Updated.
4271 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
4273 Add the `srand' command to pic.
4275 * pic/lex.cc, pic/pic.y: Implement it.
4276 * pic/pic.man: Document it.
4277 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
4279 2000-01-30 Werner LEMBERG <wl@gnu.org>
4281 Add a new request `.psbb'. This does exactly what the external
4282 program psbb did. It scans a PostScript image file for a
4283 %%BoundingBox comment and extracts the bounding box values (in
4284 PostScript units) which are then stored in the four new (read-only)
4285 number registers `llx', `lly', `urx', and `ury'.
4287 This will allow the usage of the .PSPIC macro without worrying
4288 about unsafe behaviour of groff, i.e., it will work without the
4289 `-U' switch of groff.
4291 * troff/input.cc: Implement it.
4292 * tmac/tmac.pspic: Use it.
4293 * troff/troff.man, grops/grops.man, NEWS: Document it.
4294 * psbb/*, Makefile.in: Remove it since it is no longer needed.
4296 This is bloody C code simply adapted from psbb.c! Any improvements
4299 2000-01-29 Werner LEMBERG <wl@gnu.org>
4301 * man/groff_font.man: Minor clarifications.
4305 2000-01-28 Werner LEMBERG <wl@gnu.org>
4307 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
4309 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
4311 * man/groff_font.man: Brought up to date regarding tcommand
4313 * libgroff/font.cc: Handle everything after `--' as a comment
4315 * devps/*: Added comment delimiter inside devps font files.
4317 2000-01-28 Werner LEMBERG <wl@gnu.org>
4319 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
4320 \fC...\fP (which now works as expected).
4322 * troff/troff.man: Fix typo.
4324 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
4326 Completed the pass_filenames implementation in troff.
4328 * libdriver/input.cc: Will read the new `F' tcommand.
4329 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
4330 * troff/input.cc: Use it.
4332 2000-01-26 Werner LEMBERG <wl@gnu.org>
4334 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
4335 font will now be updated even if an invalid font is selected.
4337 2000-01-24 Werner LEMBERG <wl@gnu.org>
4339 * doc/homepage.ms: Updated for new tmac.arkup.
4341 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
4343 * tmac/tmac.arkup: Cleanup.
4345 Added `\&' to .HTML macro to `leave vertical mode', so to say.
4347 Removed obsolete .LINK macro completely.
4349 The macros .URL, .FTP, and .MAILTO now accept a third argument which
4350 will be immediately appended to the second argument (to be used with
4351 punctuation, for example).
4353 Disabled .CDFTP macro temporarily for security reasons.
4355 * tmac/groff_markup.man: Complete revision for latest changes in
4356 tmac.arkup -- note that it does not yet format correctly with
4359 2000-01-23 Bruno Haible <haible@clisp.cons.org>
4361 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
4362 * devutf8/R.proto: Add mappings for wp, lh, rh.
4363 * devutf8/NOTES: Updated.
4365 2000-01-23 Werner LEMBERG <wl@gnu.org>
4367 * doc/groff.texinfo: Updated version/copyright info.
4369 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
4371 Added support for two new directives in device descriptions:
4372 `pass_filenames' (to pass the input file name to the output device)
4373 and `use_charnames_in_special' (to support e.g. accented characters
4374 in the `X' request).
4376 * include/font.h, troff/charinfo.h: Declare it.
4378 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
4380 * devhtml/DESC: Use it.
4382 * troff/input.cc: New function encoded_char.
4384 * troff/token.h: Add test for `specialness'.
4386 2000-01-21 Werner LEMBERG <wl@gnu.org>
4388 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
4389 mistake from the list of files to be installed.
4391 2000-01-18 Werner LEMBERG <wl@gnu.org>
4393 * README: Added info how to apply patches.
4395 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
4397 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
4399 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
4401 * troff/input.cc: Add support for troffrc-end.
4403 * tbl/main.cc: Altered to issue table-start and table-end special
4404 characters if using the html device.
4406 * devhtml/*: Modified font files to incorporate html encoding of
4409 * tmac/groff_markup.man: New file documenting tmac.arkup.
4411 * tmac/troffrc-end: New file. This is invoked after all user
4412 specified macros. Currently used by the html device to include
4413 tmac.html. Thus no need for users to specify -mhtml anymore.
4415 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
4416 (MAN7): Add groff_markup.man.
4418 * tmac/tmac.an, tmac/tmac.html: Small html updates.
4420 * tmac/troffrc: tmac.arkup will now be called for the html device.
4422 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
4423 extra device specific information about fonts.
4425 * doc/homepage.ms: New file. It is an example how an HTML home page
4426 could look like with grohtml.
4428 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
4430 2000-01-12 Bruno Haible <haible@clisp.cons.org>
4432 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
4435 * devutf8/NOTES: Updated.
4437 2000-01-08 Bruno Haible <haible@clisp.cons.org>
4439 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
4440 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
4441 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
4442 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
4443 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
4444 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
4445 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
4446 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
4449 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
4451 2000-01-12 Fabrizio Polacco <fab@prosa.it>
4453 grolj4: Paper size will be searched case-insensitively.
4455 * include/lib.h: Add check for strcasecmp().
4456 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
4457 * configure.in: Check for strcasecmp().
4459 2000-01-11 Werner LEMBERG <wl@gnu.org>
4461 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
4464 2000-01-10 Werner LEMBERG <wl@gnu.org>
4466 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
4469 Add a new read-only register, `.Y', which contains the groff
4472 * troff/input.cc (init_input_requests): Define it.
4473 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
4474 * doc/groff.texinfo, troff/troff.man: Document it.
4476 * libgroff/Makefile.sub (version.cc): Add definition of
4477 `Version_string[]', consisting of `<major>.<minor>.<revision>'
4478 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
4479 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
4480 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
4481 troff/input.cc, pfbtops/pfbtops.c: Use it.
4483 2000-01-10 Fabrizio Polacco <fab@prosa.it>
4485 Add a revision scheme to the groff package.
4487 * REVISION: New file.
4488 * libgroff/Makefile.sub (version.cc): Use it to define
4489 `revision_string[]'.
4490 * grops/psrm.cc: Use revision_string (converted to an unsigned
4491 integer) in constructor of resource_manager.
4493 2000-01-10 Bruno Haible <haible@clisp.cons.org>
4495 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
4497 * Makefile.in (DEVDIRS): Add devutf8.
4498 * grotty/tty.cc: Include device.h.
4499 (glyph): Change type of `code' to `unsigned int'.
4500 (tty_printer): New field is_utf8. Constructor takes device argument.
4501 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
4502 (tty_printer::add_char): Change type of first arg to `unsigned int'.
4503 (tty_printer::put_char): New function.
4504 (tty_printer::end_page): Use put_char() instead of ::putchar().
4505 (make_printer): Pass device to tty_printer constructor.
4506 * nroff.sh: Determine default device by calling 'locale'. As a
4507 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
4508 Recognize UTF-8 locales.
4509 * tmac/eqnrc: Recognize utf8 like latin1.
4510 * tmac/troffrc: Device utf8 needs tmac.tty.
4512 2000-01-07 Werner LEMBERG <wl@gnu.org>
4514 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
4516 2000-01-07 Paul Eggert <eggert@twinsun.com>
4518 Add a new predefined writeable number register, `year',
4519 which contains the current year.
4521 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
4522 * tmac/tmac.s: Use it.
4523 * troff/input.cc (init_registers): Initialize it.
4525 2000-01-06 Werner LEMBERG <wl@gnu.org>
4527 * PROBLEMS: Fixed typo.
4529 2000-01-04 Paul Eggert <eggert@twinsun.com>
4531 * PROBLEMS: Add Y2k advice for the yr number register.
4533 2000-01-03 Paul Eggert <eggert@twinsun.com>
4535 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
4537 2000-01-02 Werner LEMBERG <wl@gnu.org>
4539 * tmac/tmac.arkup: Slight modification of macros to provide better
4540 appearance for non-HTML formats.
4542 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
4544 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
4545 does not automatically translate to malloc(n) on all OSes
4546 (e.g., SunOS) so do it explicitly. Also, check the returned
4549 2000-01-01 Werner LEMBERG <wl@gnu.org>
4551 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
4553 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
4554 expects this variable
4556 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
4558 * doc/Makefile: Added instructions to create HTML and text
4559 versions of some files.
4561 1999-12-31 Werner LEMBERG <wl@gnu.org>
4563 * Updated INSTALL.gen.
4565 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
4566 better resp. correctly with non-HTML devices.
4568 Version 1.15 released
4569 =====================
4571 1999-12-28 Werner LEMBERG <wl@gnu.org>
4573 * NEWS, VERSION: Changed to 1.15
4575 1999-12-27 Paul Eggert <eggert@twinsun.com>
4577 * nroff/nroff.man: -S is safer, not safe.
4579 * groff/groff.cc (main): Use `safer', not `safe', in variable
4580 names. This does not change the behavior.
4582 * troff/input.cc (main): Likewise.
4584 * nroff/nroff.sh: Likewise.
4586 * troff/input.cc (prepend_string): New function.
4587 (main): Prepend -msafer, so that we check macro libraries for
4590 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
4592 Version 1.14 released
4593 =====================
4595 1999-12-26 Werner LEMBERG <wl@gnu.org>
4597 * NEWS, VERSION: Changed to 1.14.
4599 1999-12-24 Werner LEMBERG <wl@gnu.org>
4601 * refer/refer.cc: Fixing the last fix.
4603 Version 1.13 released
4604 =====================
4606 1999-12-23 Werner LEMBERG <wl@gnu.org>
4608 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
4613 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
4615 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
4616 document conventions, the version number must be a real.
4618 Version 1.12.1 released
4619 =======================
4621 1999-12-22 Werner LEMBERG <wl@gnu.org>
4623 * VERSION: Changed to 1.12.1.
4625 1999-12-22 Alan Rooks <arooks@istar.ca>
4627 * refer/refer.cc (do_file): Slight modification to satisfy the
4628 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
4631 1999-12-20 Werner LEMBERG <wl@gnu.org>
4633 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
4636 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
4637 list of unsafe requests.
4639 * pic/pic.man: Fixed a typo.
4641 * man/groff_out.man: Fixed a typo.
4643 1999-12-18 Werner LEMBERG <wl@gnu.org>
4645 * Makefile.in: Doc fixes.
4647 1999-12-17 Fabrizio Polacco <fab@prosa.it>
4649 * groff/groff.cc: Missing `U' option added to getopt().
4651 * troff/troff.man: Missing `U' option added to synopsis.
4653 Version 1.12 released
4654 =====================
4656 1999-12-14 Werner LEMBERG <wl@gnu.org>
4658 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
4661 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
4662 with the more appropriate terms `safer' and `unsafe'.
4664 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
4665 sys_nerr and sys_errlist[].
4667 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
4669 * pic/pic.y, pic/pic.cc: Added check for fmod().
4671 1999-12-13 Werner LEMBERG <wl@gnu.org>
4673 * VERSION: Changed to 1.12.
4675 Here some patches from various sources; most of them taken from
4676 the Debian distribution.
4678 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
4679 tmac/Makefile.sub: New files copied directly from the NetBSD
4680 distribution. Probably, some additional adaptation later on is
4683 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
4686 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
4687 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
4688 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
4689 (`-S') is now the default.
4691 * README, NEWS: Updated.
4693 1999-12-09 Werner LEMBERG <wl@gnu.org>
4695 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
4697 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
4699 1999-12-06 Werner LEMBERG <wl@gnu.org>
4701 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
4702 grief than relief today. Additionally, it is against the GNU
4705 * configure: Recreated.
4707 1999-12-05 Werner LEMBERG <wl@gnu.org>
4709 * configure.in: Added GROFF_LIBM.
4711 * configure: Recreated.
4713 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
4716 * Makefile.in: Added definition of $(LIBM).
4718 * Makefile.comm (LIBM): Removed.
4720 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
4722 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
4724 * doc/Makefile: Added rule for generation pic.html.
4726 (clean): Files produced by grohtml will be removed also.
4728 * doc/pic.ms: Small fix.
4730 * tmac/tmac.html: Fixed suppression of headers.
4732 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
4734 * tmac/tmac.html: Fixing horizontal arrows.
4736 Turning off hyphenation.
4738 * tmac/tmac.an: Improved support for grohtml; better indentation,
4741 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
4743 * tmac/tmac.arkup: Added CDFTP macro
4745 * tmac/tmac.html: All headers are turned off for ms, me, and mm
4748 * tmac/troffrc: Some additions for HTML stuff.
4750 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
4752 * tmac/tmac.html: Small changes.
4754 1999-09-26 Werner LEMBERG <wl@gnu.org>
4756 * doc/groff.texinfo: Minor fixes.
4758 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
4760 * devhtml/TR: Changed spacewidth to 3.
4762 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
4764 * tmac/tmac.html: Moved markup macros to tmap.arkup.
4766 * tmac/tmac.arkup: New file.
4768 * grohtml/ChangeLog: New file.
4770 1999-09-16 Werner LEMBERG <wl@gnu.org>
4772 * doc/groff.texinfo (Common Features): Added Copying chapter.
4773 Changed format to @smallbook.
4775 1999-09-15 Werner LEMBERG <wl@gnu.org>
4777 * NEWS: Added info about groff.texinfo.
4779 * doc/groff.texinfo: Will now compile (using texi2dvi) without
4782 1999-09-14 Werner LEMBERG <wl@gnu.org>
4784 * groff/groff.man: More updates.
4786 1999-09-13 Werner LEMBERG <wl@gnu.org>
4788 * doc/groff.texinfo: New file. This manual is still very
4789 rudimentary. It has been originally contributed by Trent
4790 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
4793 * INSTALL: Added information about the `doc' subdir
4795 * troff/troff.man: Minor fixes.
4797 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
4800 * troff/input.cc (usage): Added missing `-ffam' to usage message.
4802 * Makefile.in (dist): groff-$(version).tar.gz must be removed
4803 also, otherwise it is included itself in another call of `make
4806 * groff/groff.cc (synopsis): Removed superfluous space.
4808 * PROJECTS, PROBLEMS, NEWS: Updated.
4810 * VERSION: Updated to 1.12beta.
4812 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
4814 * README: Updated: Included documentation about CVS repository,
4815 mailing lists, and daily snapshots.
4817 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
4819 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
4821 * tmac/tmac.an: If the tag didn't fit into the space that the
4822 macro `TP' specifies, the rest of the tag went into the space for
4825 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
4827 * grolj4/lj4.cc: Added duplex printing (option `-d').
4829 * grolj4/grolj4.man: Document duplex printing.
4831 1999-09-12 Werner LEMBERG <wl@gnu.org>
4833 * doc/Makefile (pic.ps): Fixed rule which caused problems with
4834 non-GNUish sed programs.
4836 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
4839 * configure.in (LIBS): Added `-lc'
4841 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
4843 * pic/tex.cc (solid_arc): Casting M_PI to double.
4845 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
4847 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
4848 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
4849 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
4851 * groff/groff_man.man: New file. This manual page was originally
4852 written for the Debian GNU/Linux system by Susan G. Kleinmann
4855 * eqn/list.cc (list_box::compute_metrics,
4856 list_box::compute_sublist_width): Removed variable declaration to
4857 avoid shadowing warnings.
4859 * grops/psrm.cc (resource_manager::process_file): Ditto.
4861 * tfmtodit/tfmtodit.cc (main): Ditto.
4863 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
4864 to avoid shadowing warnings.
4866 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
4867 shadowing loop variable.
4869 * groff/groff.man, troff/troff.man: Added doc about grohtml.
4871 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
4873 New grohtml frontend to convert groff input to html.
4875 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
4877 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
4879 * tmac/eqnrc: Added html device.
4881 * tmac/tmac.html: New file.
4883 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
4884 (troff_output::start_picture, troff_output::finish_picture),
4885 tbl/main.cc (process_input_file):
4886 Surrounded output with `graphics_start' and `graphics_end' so that
4887 the html driver can identify non-text portions.
4889 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
4890 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
4891 grotty/tty.ps (tty_printer::set_char): Additional parameter
4894 * include/printer.h: Class printer: New function
4895 set_char_and_width; new variables (is_char_named, is_named_set,
4896 named_command, named_char_s, named_char_n) to hold information
4897 about named characters -- needed by the html driver.
4899 * libdriver/printer.cc (printer::set_ascii_char,
4900 printer::set_special_char): Use set_char_and_width.
4902 * devhtml/*: New device files for html driver.
4904 * grohtml/*: New driver grohtml.
4906 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
4908 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
4911 1999-09-11 Luke Mewburn <lukem@netbsd.org>
4913 * libgroff/string.cc (search): Small fix to test against NULL
4916 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
4918 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
4919 \b'abc') were stacked in reverse order when processed in a
4922 * troff/node.h: Added `*last' to struct `node' to make the above
4925 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
4926 The default scale for the 'f' and 't' graphics functions were 'm'
4927 rather than 'u' (i.e., no scaling).
4929 1999-09-11 Peter Miller <peterm@jna.com.au>
4931 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
4932 do_file), soelim/soelim.man: Added `-I file' option to soelim,
4933 defining include paths.
4935 * soelim/soelim.cc (include_path_append): New function.
4937 1999-09-11 Larry Jones <larry.jones@sdrc.com>
4939 * tbl/main.cc (process_options): Unix (at least Documenter's
4940 Workbench) tbl allows arbitrary non-alpha characters between
4943 1999-09-11 Paul Eggert <eggert@twinsun.com>
4945 Y2k fixes. Don't assume that the current year precedes 2000.
4947 * doc/meref.me: Add \n(y2, \n(y4.
4949 * tmac/doc-common (Yr): New number register.
4950 (Dd): Don't assume current year precedes 2000.
4952 * tmac/tmac.e (td): Likewise.
4953 (y2, y4): New number registers.
4955 * pic/pic.man: Update reference for pic paper to May, 1991
4958 1999-09-11 Werner LEMBERG <wl@gnu.org>
4960 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
4961 Removed quotation marks which prevented correct expansion of
4964 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
4966 1999-09-10 Werner LEMBERG <wl@gnu.org>
4968 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
4971 * Removed configure.old.
4973 1999-08-31 Werner LEMBERG <wl@gnu.org>
4975 * VERSION: Updated to 1.11.1
4977 1999-05-27 Werner LEMBERG <wl@gnu.org>
4979 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
4981 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
4982 added quotations around $(tmac_wrap) to avoid syntax error if
4985 * configure: Newly generated using autoconf 2.13.
4987 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
4989 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
4991 * README, PROJECTS, NEWS, INSTALL, VERSION,
4992 doc/Makefile. doc/pic.ms, groff/groff.man:
4993 Prepare for 1.11 release. No code changes.
4994 Documentation for pic added (doc/pic.ms).
4996 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
4998 * Version 1.10 released.
5000 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
5002 * afmtodit/afmtodit.pl: Avoid comment on first line.
5004 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
5006 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
5007 * configure.in: Call it.
5009 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
5010 (distfiles): Doesn't depend on config.log or config.cache.
5012 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
5014 * grog/grog.sh: Use print "" rather than print in END rule.
5016 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
5018 * tbl/main.cc (process_data): Don't give error for excess data
5019 entries that are comments.
5021 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
5023 * tbl/main.cc (process_data): Fix case where new for-scope rules
5024 silently change meaning of code.
5026 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
5028 * troff/env.cc (hyphenate): Loop over all consecutive sequences
5029 of non-zero hyphenation codes.
5031 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
5033 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
5035 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
5037 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
5039 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
5041 * tmac/tmac.andoc: Make it work in compatibility mode.
5043 * refer/token.h (token_info::is_range_sep): New function.
5044 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
5045 * refer/ref.cc (reference::output): More sophisticated check for
5048 * devps/prologue.ps (MANUAL): New procedure.
5049 * grops/ps.cc (main): New -m option.
5050 (usage): Include -m.
5051 (ps_printer::~ps_printer): Implement -m.
5053 * aclocal.m4 (GROFF_G): New macro.
5054 * configure.in: Call it.
5055 * Makefile.in (g): Provided by configure.
5057 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
5059 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
5062 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
5063 (tmac_m, tmac_s): Deleted.
5064 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
5065 tmac_s_prefix): New variables.
5066 (MDEFINES): Change accordingly.
5067 * Makefile.comm (.man.n): Use new TMAC_* variables.
5068 * configure.in (GROFF_TMAC): Call.
5069 * aclocal.m4 (GROFF_TMAC): Define.
5070 * tmac/Makefile.sub (stamp_wrap): New target.
5071 (install_data, uninstall_sub): Handle macro wrapping.
5073 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
5075 * tbl/main.cc (main): Ignore -T option.
5077 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
5079 * devlj4/generate/special.map: Add definition of \(nb.
5081 * tmac/tmac.dvi: Add definition of \(nb.
5083 * troff/dictionary.c (dictionary::dictionary): association::v gets
5084 initialized by association::association.
5086 * tmac/Makefile.sub: Avoid using temporary files when installing.
5088 * troff/env.cc (environment::set_font): Make bad font number a
5091 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
5093 * Makefile.in (datadir): Use share rather than lib.
5095 * groff/groff.cc (basename): Rename to xbasename.
5097 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
5099 * Makefile (CCLIBS): Don't use.
5100 * Makefile.ccpg: Likewise.
5102 * acgroff.m4: Rename to...
5103 * aclocal.m4: Modify extensively for autoconf 2.
5104 * configure.in: Likewise.
5105 * Makefile.in: Likewise.
5107 * groff/pipeline.c (const): Declare as empty if __STDC__ not
5109 (xstrsignal): Check for definition of NSIG. Conditionalize
5110 on SYS_SIGLIST_DECLARED. Make return type const.
5112 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
5114 * troff/input.cc (interpolate_macro): Rephrase missing space
5117 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
5119 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
5120 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
5121 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
5122 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
5123 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
5124 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
5125 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
5126 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
5127 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
5128 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
5129 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
5132 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
5134 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
5136 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
5138 (macro_iterator::macro_iterator): Add additional argument.
5140 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
5142 * troff/div.cc (vertical_size::vertical_size): In place of integer
5143 specifying line spacing use cunits specifying post vertical
5145 (macro_diversion::output, top_level_diversion::output): Likewise.
5146 * troff/div.h: Change declarations accordingly.
5147 * troff/env.cc (pending_output_line): Replace ls field by post_vs
5149 (pending_output_line::pending_output_line,
5150 pending_output_line::output, environment::output,
5151 environment::output_line, environment::output_title,
5152 environment::hyphenate_line): In place of
5153 integer specifying line spacing use cunits specifying post vertical
5155 (environment::environment): Add post_vertical_spacing and
5156 prev_post_vertical_spacing arguments.
5157 (environment::get_post_vertical_spacing): New function.
5158 (environment::total_post_vertical_spacing): New function.
5159 (environment::post_vertical_spacing): New function.
5160 (init_env_requests): Initialize pvs request and .pvs register.
5161 * troff/env.h: Change declarations.
5163 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
5165 * tmac/tmac.pspic: Immediately remove the temporary file.
5167 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
5169 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
5170 height is specified.
5172 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
5174 * tbl/table.c (struct vertical rule, class table_entry): Use int
5175 not short for start_row and end_row.
5177 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
5179 * troff/input.cc (trapping_blank_line, blank_line_macro): New
5181 (diverted_space_node::reread, process_input_stack): Call
5182 trapping_blank_line() rather than blank_line().
5183 (init_input_requests): Bind "blm" to blank_line_macro().
5185 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
5187 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
5189 * troff/env.cc (environment::possibly_break_line): Require that
5190 width total excluding width of final space node be greater than
5191 the target text length.
5193 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
5195 * troff/node.cc (kern_pair_node::vertical_extent): New function.
5197 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
5199 * troff/node.cc (charinfo_node): New class.
5200 (glyph_node, composite_node): Derive from charinfo_node. Change
5201 member functions accordingly.
5203 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
5205 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
5207 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
5209 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
5211 * devps/generate/textmap (notsubset): Add.
5213 * tmac/tmac.a4: New file.
5215 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
5217 * pic/main.cc (had_parse_error): New variable.
5218 (do_picture, do_whole_file): Set had_parse_error if yyparse()
5220 (main): Return 1 if had_parse_error is true.
5222 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
5224 * grolj4/lj4.cc (main): Avoid use of strtoul.
5226 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
5228 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
5229 iso_8859_1 or $LESSCHARSET is latin1.
5231 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
5233 * hpftodit: New directory.
5234 * Makefile.in (CCPROGDIRS): Add hpftodit.
5235 * devlj4/generate: New directory.
5237 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
5239 * configure.in: Don't use AC_VFORK.
5240 * groff/pipeline.c (run_pipeline): Use fork() always.
5242 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
5244 * grops/ps.cc (main): Use %1 not %s in error message for -w.
5246 * Makefile.in (CCPROGDIRS): Add grolj4.
5247 (DEVDIRS): Add devlj4.
5248 * grolj4, devlj4: New directories.
5249 * tmac/troffrc: Handle lj4.
5250 * tmac/tmac.lj4: New file.
5252 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
5254 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
5256 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
5258 * troff/input.cc (do_if_request): At end of second string, switch
5259 environments before getting next token.
5261 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
5263 * devps/psstrip.sed: Split rule that strips whitespace on either
5266 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
5268 * troff/node.h (font_family::make_definition): Add return value to
5269 declaration. * troff/symbol.h (symbol::operator==,
5270 symbol::operator!=): Likewise.
5272 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
5274 * groff/groff.cc (main, help, synopsis): Handle -S.
5275 (possible_command::insert_arg): New function.
5277 * tmac/tmac.safer: New file.
5278 * tmac/msafer.man: New file.
5279 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
5281 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
5283 * pic/pic.h, pic/main.cc (safer_flag): New variable.
5284 * pic/pic.y (placeless_element): Avoid unsafe operations if
5285 `safer_flag' is set.
5286 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
5288 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
5290 * eqn/lex.cc (get_token): Put call to add_context() in block to
5291 work around Sun C++ 4.0 bug.
5293 * include/stringclass.h (operator +): Use ?: instead of `if' to
5294 work around Sun C++ 4.0 bug.
5296 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
5298 * tbl/main.cc (process_format): Accept - as a synonym for the _
5301 * libbib/index.cc (minus_one): Don't declare as const.
5303 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
5305 * troff/input.cc (get_char_for_escape_name): Push back a newline.
5307 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
5309 * troff/input.cc (write_macro_request): New function.
5310 (init_input_requests): Bind write_macro_request to writem.
5312 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
5314 * tmac/tmac.s (@EN): Turn filling back on even if there was no
5317 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
5319 * tmac/tmac.s (@TS): Renamed from TS.
5320 (TS): Call LP then TS again.
5321 (cov*ab-init): Alias @TS to TS.
5323 * tmac/tmac.s: Allow QP or RS to initialize.
5325 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
5326 Move initializations of PS and LL here.
5327 (par@init): Don't initialize HY. Avoid changing environment 0.
5328 (par*env-init): Don't all par@reset.
5330 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
5332 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
5334 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
5336 * Makefile.in (MDEFINES): Add LDFLAGS.
5337 (LDFLAGS): Add definition line.
5339 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
5341 * troff/input.cc (get_optional_char): Split off error check into...
5342 (check_missing_character): New function.
5343 * troff/token.h: Declare it.
5344 * troff/env.cc (margin_character): Don't call get_optional_char.
5345 Only call tok.next() after making the node.
5347 * include/lib.h (getopt): Make 2nd argument char *const *.
5349 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
5351 * nroff/conftest.sh: Deleted.
5353 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
5355 * pic/make-dos-dist: Deleted.
5357 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
5359 * devps/psstrip.sed: Strip comments before stripping trailing
5362 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
5364 * Version 1.09 released.
5366 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
5368 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
5370 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
5372 * libgroff/font.cc (font::load_desc): Fix typo in error message.
5374 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
5376 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
5377 about returning without a value.
5379 * troff/charinfo.h (charinfo::get_special_translation): Cast
5380 TRANSLATE_NONE to int.
5382 * refer/token.cc (lookup_token, store_token): Remove bogus loop
5383 test. Fix test so that it works with n unsigned.
5385 * pic/pic.y (defaults_table): Fully bracket initializer.
5386 * pic/lex.cc (lookup_keyword): Likewise.
5387 * eqn/lex.cc (token_table, def_table): Likewise.
5388 * eqn/box.cc (param_table): Likewise.
5389 * troff/input.cc (warning_table): Likewise.
5390 * libgroff/font.cc (table): Likewise.
5391 * grops/ps.cc (ps_printer::special): Likewise.
5392 * grops/psrm.cc (resource_manager::process_file): Likewise.
5393 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
5394 * refer/command.cc (command_table): Likewise.
5395 * addftinfo/addftinfo.cc (param_table): Likewise.
5397 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
5398 about temp's being unused.
5399 (unused): New function.
5401 * groff/pipeline.cc: Declare c_fatal.
5403 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
5406 * libbib/index.cc (index_search_item::load): Prevent compiler
5407 warnings about fd_closer's being unused.
5408 (unused): New function.
5410 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
5412 * troff/input.cc (copy_mode_error): Make `prefix' static.
5415 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
5417 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
5418 HAVE_CC_OSFCN_H and modify accordingly.
5420 * troff/input.cc (init_charset_table): radicalex overlaps
5423 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
5424 udodo!hans@relay.NL.net).
5425 * groff/configure.in: Call it.
5427 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
5428 * groff/configure.in: Call it.
5429 * include/lib.h: Conditionalize declaration of pclose.
5431 * troff/div.cc (last_page_number): New global variable.
5432 (top_level_diversion::begin_page): Exit if we just printed the
5434 * troff/div.h (last_page_number): Declare it.
5435 * troff/input.cc (parse_output_page_list): Set last_page_number.
5437 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
5438 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
5439 tmac/tmac.X: Likewise.
5440 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
5441 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
5443 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
5445 * tmac/doc-ditroff (hK): Remove groff specific code which
5446 prevented page-breaks between separate manual entries. If this is
5447 the first page, don't set the page number to 1.
5449 * acgroff.m4 (GROFF_POSIX): New macro.
5450 * configure.in: Use it.
5452 * troff/node.cc (class real_output_file,
5453 real_output_file::real_output_file,
5454 real_output_file::~real_output_file): Conditionalize use of
5455 popen/pclose on POPEN_MISSING.
5456 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
5457 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
5458 (pipe_source): Similarily.
5460 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
5462 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
5463 presence of declarations by trying to compile example with
5464 conflicting declarations. (gcc only gives a warning for missing
5467 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
5469 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
5470 (from Ulrich Lauther).
5472 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
5474 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
5476 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
5478 * indxbib/indxbib.cc (write_hash_table): Add code for case where
5479 pointers and ints have different sizes.
5481 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
5483 * tmac/tmac.s (par*env-init): Call par@reset.
5485 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
5487 * tmac/tmac.s (@IP): Switch to a new environment when diverting
5489 (par*push-tag-env, par*pop-tag-env): New macros.
5491 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
5493 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
5494 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
5496 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
5497 comment. Include <time.h>.
5499 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
5501 * grops/ps.cc (is_small_h, is_small_v): Deleted.
5502 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
5505 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
5507 * troff/input.cc (read_request): Only print a prompt if reading
5508 from the terminal. Also clearerr on EOF if reading from the
5509 terminal. Declare isatty.
5511 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
5513 * refer/label.y: Rename map_t to map_func and extractor_t to
5516 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
5518 * include/assert.h: Don't use volatile.
5519 * libgroff/assert.cc: Likewise.
5521 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
5523 * troff/input.cc (abort_request): Look at character in tok before
5526 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
5528 * troff/troff.h (NO_RETURN): Deleted.
5529 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
5530 * troff/input.cc (exit_troff): Likewise
5532 * Makefile.in: Remove `Making ...' messages since GNU make now
5535 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
5537 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
5539 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
5542 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
5544 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
5546 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
5548 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
5549 MARK_REG if there was no left delimiter.
5551 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
5553 * pic/troff.cc (troff_output::text): Set line thickness to
5554 relative before outputting text.
5556 * tmac/tmac.e (@k): Don't zero ?T.
5559 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
5561 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
5563 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
5565 * troff/input.cc (decode_args): Warn about unquoted tabs (from
5568 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
5570 * troff/input.cc (ignoring): New variable.
5571 (ignore): Set ignoring during call to do_define_macro.
5572 (do_define_macro): Clear ignoring before interpolating terminating
5574 (copy_mode_error): New function.
5575 (get_char_for_escape_name, read_long_escape_name,
5576 interpolate_arg): Use copy_mode_error.
5577 (warning_table): Add WARN_IG.
5578 * troff/troff.h (WARN_IG): Declare.
5579 (WARN_TOTAL): Change accordingly.
5581 * groff/pipeline.c (strsignal): Rename to xstrsignal.
5582 * groff/groff.cc (strsignal): Delete declaration.
5584 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
5586 * troff/div.cc (page_offset): Use 'm' as default scaling.
5588 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
5590 * nroff/nroff.sh: Ignore -u.
5592 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
5594 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
5596 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
5598 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
5600 (B2): With -Tascii, leave additional vertical space before
5601 and after. Ensure that the left and right indent is restored to
5602 what it was even if the point size changes. Don't call
5603 par@finish. Change the indent, line length and title length
5604 directly. With -Tascii, make the width of the box 1n less.
5605 (B1): Remember 1n at the current point size. Don't call
5606 par@reset. Change the indent, line length and title length
5607 directly. Ensure that the temporary indent is preserved.
5608 (par*box-mark-top): Turn off no spacing mode.
5610 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
5612 * Makefile.in (dist): Use .gz suffix.
5614 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
5616 * troff/input.cc (main): Add return 0.
5617 * pic/main.cc (main): Use return instead of exit.
5618 * tbl/main.cc (main): Likewise.
5619 * eqn/main.cc (main): Likewise.
5620 * grops/ps.cc (main): Likewise.
5621 * grotty/tty.cc (main): Likewise.
5622 * groff/groff.cc (main): Likewise.
5623 * grodvi/dvi.cc (main): Likewise.
5624 * refer/refer.cc (main): Likewise.
5625 * indxbib/indxbib.cc (main): Likewise.
5626 * lkbib/lkbib.cc (main): Likewise.
5627 * soelim/soelim.cc (main): Likewise.
5628 * addftinfo/addftinfo.cc (main): Likewise.
5629 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
5630 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
5632 * troff/token.h (process_input_stack): Don't declare as static.
5633 * troff/input.cc: Likewise.
5635 * troff/node.c (invalidate_fontno): Make it a static member of
5636 class font_family. Change callers.
5637 * troff/node.c: Change declaration.
5639 * tbl/main.cc (struct input_entry_format): Add explicit public
5641 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
5642 struct double_hline_stuff): Likewise.
5643 * tbl/table.h (struct entry_format): Likewise.
5644 * pic/object.h (struct saved_state): Likewise.
5646 * include/stringclass.h: Add forward declarations of friend
5647 functions that are later declared as inline. Don't include inline
5648 specifier in friend declaration.
5650 * libgroff/lib.h: Declare popen and pclose.
5651 * acgroff.m4 (GROFF_POPEN): New macro.
5652 * configure.in: Call it.
5654 * include/lib.h (PI): New constant. Undef first if necessary.
5655 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
5656 * grops/ps.cc (degrees, radians): Likewise.
5657 * libgroff/font.cc (font::get_skew): Likewise.
5659 * grops/ps.cc (is_ascii): New function.
5660 (ps_output::put_string): Use is_ascii. Use csprint rather than
5662 (ps_printer::define_encoding): Use csspace.
5663 * libgroff/strtol.c (ISASCII): New macro.
5664 (strtol): Cast arguments to is*() and tolower() to unsigned char.
5665 Use ISASCII rather than isascii.
5666 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
5667 * libgroff/cset.cc: Likewise.
5668 * libdriver/input.cc: Include cset.h.
5669 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
5672 * refer/refer.cc (main): Use %ld rather than %d for longs.
5674 * libbib/index.cc (index_search_item_iterator::get_tag): Use
5677 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
5679 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
5681 * troff/input.cc (hyphenation_code): Skip white space between
5684 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
5686 * tbl/table.h (table::entry_list_tailp): New member.
5687 (table::table): Initialize it.
5688 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
5691 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
5693 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
5694 with negative horizontal positions. Remove casts of glyph::hpos to
5696 (USHRT_MAX): Delete definition.
5697 (SHRT_MAX, SHRT_MIN): New definitions.
5698 (glyph::hpos): Change type to short.
5699 (tty_printer::end_page): Output multiple backspaces if necessary.
5700 Remove casts of glyph::hpos to int.
5702 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
5704 * tmac/tmac.s (@RT): New definition.
5706 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
5708 * refer/refer.cc (do_file): Make sure current_filename is set when
5711 * pic/common.cc (common_output::dot_line): Handle zero length
5714 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
5716 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
5717 (par@init): Initialize \n[HY].
5719 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
5721 * troff/dictionary.cc (dictionary::remove): Continue when
5724 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
5726 * Makefile.com (.y.cc): Avoid ending up with two versions of
5729 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
5731 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
5732 (\(,C): Likewise. Also fix typo.
5734 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
5736 * lib.h: Delete extraneous semi-colon.
5738 * Add pso request: `so' from a pipe.
5739 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
5740 (file_iterator::close): New function.
5741 (file_iterator::~file_iterator, file_iterator::next_file): Use
5742 file_iterator::close.
5743 (file_iterator::backtrace): Say `process' rather than `file' when
5744 the stream is popened.
5745 (pipe_source): New function.
5746 (init_input_requests): Bind ".pso" to pipe_source.
5748 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
5750 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
5752 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
5753 digits in lower case.
5755 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
5757 * Version 1.08 released.
5759 * Makefile.in (dist): Insert || true after ln -s commands that
5762 * mm: Update to mm 1.16.
5764 * acgroff.m4 (GROFF_CSH_HACK): New macro.
5765 * configure.in: Call GROFF_CSH_HACK. Substitute for
5767 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
5769 * nroff/Makefile.sub (nroff): New target.
5770 (install_data): Install nroff.
5771 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
5772 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
5774 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
5776 * eqn/Makefile.sub (neqn): Add chmod +x.
5778 * grog/Makefile.sub (grog): Remove spurious semi-colon.
5780 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
5782 * troff/input.cc (string_iterator::string_iterator()): Initialize
5785 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
5787 * troff/div.cc (macro_diversion::space,
5788 top_level_diversion::space): Don't set high_water_mark.
5789 (macro_diversion::output, top_level_diversion::output): Don't
5790 include post line space in high water mark.
5792 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
5794 * eqn/eqn.y: Don't define YYDEBUG.
5795 * pic/pic.y: Likewise.
5797 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
5799 * tmac/tmac.e ([3): Add space after comma following editors.
5800 Change double spaces to single spaces.
5801 ([4): Change double spaces to single spaces.
5803 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
5804 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
5805 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
5806 after %!PS-Adobe- (for Newsprint).
5808 * troff/div.cc (top_level_diversion::begin_page): When
5809 before_first_page is 1, set page_number to 1.
5811 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
5813 * eqn/box.cc (box::top_level): Protect equation with \&.
5815 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
5817 * groff/groff.cc (possible_command::set_name): Delete old name.
5819 * groff/groff.cc (possible_command::~possible_command): Use
5822 * troff/node.cc (troff_output_file::begun_page): New member.
5823 (troff_output_file::troff_output_file): Initialize it.
5824 (troff_output_file::really_begin_page): Only output V command if a
5825 page has been begun.
5827 * pic/pic.y (placeless_element): Delete argument to PRINT after
5830 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
5832 * Make wrapman work.
5833 * troff/div.h (class top_level_diversion): Replace
5834 first_page_begun by before_first_page (with opposite sense).
5835 * Change first_page_begun to before_first_page inverting sense.
5836 * troff/div.cc (class nl_reg): New class.
5837 (init_div_requests): Use class nl_reg for \n(nl.
5838 (top_level_diversion::begin_page): Don't call
5839 output_file::begin_page if before_first_page is 2;
5840 reset before_first_page afterwards. If have_next_page_number is
5841 false, then always increment page_number.
5842 * tmac/tmac.an: Set traps within TH rather than at the top-level.
5843 Restore compatibility mode after loading, and then disable
5844 compatibility mode in TH.
5846 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
5848 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
5850 * troff/node.h (output_file::trailer): Declare.
5851 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
5852 * troff/node.cc (output_file::trailer): New function.
5853 (troff_output_file::~troff_output_file): Move most code into...
5854 (troff_output_file::trailer): New function.
5855 (class troff_output_file): Delete page_length member. Declare
5857 (troff_output_file::really_begin_page): Use current page length
5858 for final V command.
5860 * tbl/main.cc (struct options): New decimal_point_char member.
5861 (options::options): Initialize this.
5862 (process_options): Implement decimalpoint option.
5863 (process_data): Pass decimal_point_char option to table::table.
5864 * tbl/table.h (class table): New decimal_point_char member.
5865 (table::table): Add additional argument.
5866 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
5867 second argument specifying decimal point character. Use this
5869 (table::table): Initialize decimal_point_char.
5870 (table::add_entry): Change call to find_dot.
5872 * troff/input.cc (get_copy, token::next): Implement \V.
5873 (interpolate_environment_variable): New function.
5875 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
5877 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
5878 * pic/pic.y: Likewise.
5880 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
5882 * refer/ref.cc (reference::insert_field, reference::delete_field):
5884 * troff/number.cc (parse_term): Likewise.
5886 * acgroff.m4 (GROFF_PROG_YACC): New macro.
5887 * configure.in: Use GROFF_PROG_YACC.
5889 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
5891 * Makefile.in (OPTIMIZE): New define.
5892 (DEBUG): Empty by default.
5893 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
5895 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
5896 (GROFF_ARRAY_DELETE): Likewise.
5897 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
5899 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
5901 * devps/psstrip.sed: Use different delimiter on last line (so that
5902 it works with BSD 4.4 sed.)
5904 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
5906 * devps/psstrip.sed: Delete comments.
5908 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
5909 optind, opterr, optarg.
5910 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
5913 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
5915 * Makefile.in (check): Dummy target.
5917 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
5919 * Version 1.07 released.
5921 * Integrate mm 1.11.
5923 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
5924 where start_col was meant.
5926 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
5928 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
5930 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
5932 * troff/input.cc (token::next): Make \z\o'...' and similar things
5935 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
5937 (environment): Add margin_character_flags member.
5938 * env.cc (environment::environment(symbol),
5939 environment::environment(const environment *): Initialize
5940 margin_character_flags.
5941 (margin_character): Rewrite.
5942 (environment::output_line): Add a margin character if
5943 margin_character_flags is non-zero. Turn off the
5944 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
5945 zero, use margin_character_node without copying and then set
5946 margin_character_node to 0.
5948 * devps/DESC.in: Change minimum size to 1000.
5950 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
5952 * troff/symbol.h (symbol::hash): Change return type to unsigned
5954 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
5957 * test-groff: Use -r rather than -x.
5959 * grops/psfig.diff: Include in distribution again.
5961 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
5963 * Makefile.in (dist): Use gzip.
5965 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
5967 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
5968 unistd.h as well as in stdlib.h.
5969 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
5970 defined; otherwise include <sys/types.h> and <unistd.h> if
5971 UNISTD_H_DECLARES_GETOPT is defined.
5973 * configure.in: use builtin(include, ... rather than include(...
5974 * configure: Regenerate with autoconf 1.3.
5976 * libdriver/print.cc (printer::adjust_arc_center): Use new
5977 algorithm suggested by Andy Fyfe.
5979 * libdriver/printer.cc (printer::adjust_arc_center): New function.
5980 * include/printer.h: Declare this.
5981 * grops/ps.cc (ps_printer::draw): Use it.
5982 * grodvi/dvi.cc (dvi_printer::draw): Use it.
5984 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
5986 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
5988 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
5990 * eqn/main.cc (main): Handle "eqn -".
5992 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
5994 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
5996 * mm: Integrate version 1.08.
5998 * pic/troff.cc (troff_output::finish_picture): Set
5999 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
6000 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
6001 if it's not defined. Check whether the register is non-zero rather
6002 than whether it's not defined.
6003 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
6005 * indxbib/indxbib.cc: Move all signal handling into...
6006 * indxbib/signal.c: New file.
6007 * configure.in: Call AC_RETSIGTYPE.
6009 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
6010 * configure.in: Call GROFF_STRUCT_EXCEPTION.
6011 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
6013 * troff/input.cc (token::token, token::operator=): Work round SGI
6015 * pic/object.cc (position::position): Likewise.
6017 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
6019 * pic/pic.h: Move declaration of hypot().
6021 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
6023 * pic/pic.h: Declare hypot().
6025 * pic/pic.h: Define M_PI if necessary.
6027 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
6029 * tmac/tmac.e (re): Add alternative version that doesn't use groff
6032 * devps/prologue.ps (RE): Handle the possibility that the old font
6033 doesn't have a FontName entry.
6035 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
6037 * tmac/tmac.e (fam): Redefine to set family in environment 2.
6038 (@C): Use @fam not fam.
6040 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
6042 * lookbib/lookbib.cc (main): Change type of start to const char *.
6043 * lkbib/lkbib.cc (main): Likewise.
6045 * eqn/lex.cc (definition::definition): Don't use member
6046 initializer syntax for members of anonymous unions.
6048 * troff/input.cc (input_stack::backtrace): Change type of to const
6051 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
6053 * include/stringclass.h (class string): Declare inline friend
6054 functions as inline in class declaration.
6055 * troff/hvunits.h (class hunits, class vunits): Likewise.
6056 * include/refid.h (class reference_id): Likewise
6057 * troff/troff.h (points_to_units(units), scale(units, double)):
6058 Delete declarations.
6059 * libdriver/input.cc (get_char): Delete declaration.
6060 * include/lib.h: Change 2nd argument of getopt from const char **
6062 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
6063 char **' before assigning to a `const char **'.
6064 * tbl/table.cc: Delete extra declarations of prints().
6066 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
6068 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
6069 char **' before assigning to a `const char **'.
6071 * libgroff/errarg.cc (errarg::errarg): Don't use member
6072 initializer syntax for members of anonymous unions.
6074 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
6076 * mm: Integrate version 1.07.
6078 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
6080 * troff/input.c (translate2): Rename to
6081 (translate_no_transparent).
6082 (init_input_requests): Rename tr2 to trnt.
6084 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
6086 * troff/charinfo.h (class charinfo): Add transparent_translate field.
6087 (charinfo::set_translation, charinfo::set_special_translation):
6088 Add second argument that specifies value for
6089 transparent_translate.
6090 (charinfo::get_translation, charinfo::get_special_translation):
6091 Add optional second argument that specifies whether translation is
6092 being used for transparent throughput.
6093 * troff/input.cc (charinfo::set_translation,
6094 charinfo::set_special_translation): Handle second argument.
6095 (charinfo::charinfo): Initialize transparent_translate.
6096 (translate): Split main part off into
6097 (do_translate): New function. Pass argument saying whether
6098 translation applies to transparent throughput.
6099 (translate2): New request.
6100 (init_input_requests): Bind translate2 to `tr2'.
6102 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
6104 * tbl/table.h (class table): Add `nokeep' flag.
6105 * tbl/main.cc (process_options): Handle `nokeep' option.
6106 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
6107 table::do_bottom): Don't output keep/release macro definitions or
6108 calls when `nokeep' option has been specified.
6110 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
6112 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
6114 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
6116 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
6117 block_entry::divert, alphabetic_block_entry::divert): Add extra
6118 argument giving column separation.
6119 (table::compute_widths): Pass column separation to
6120 table_entry::divert().
6121 (block_entry::do_divert): If an entry spans multiple columns and a
6122 minimumum width has been specified for each column, then set the
6123 line length to the sum of the widths (plus possibly the column
6126 * troff/input.cc (set_escape_char): Don't set the escape_char
6127 until after calling has_arg().
6129 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
6131 * tbl/table.cc (table::do_top): Add missing \s0 for double box
6134 * tbl/table.cc (table::print_double_hline): Avoid extra new line
6135 in case where r > nrows - 1.
6137 * tbl/table.cc (BODY_HEIGHT): Deleted.
6138 (LINE_SEP): New definition.
6139 (table::print_single_hline, table::print_double_hline,
6140 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
6141 table::do_row, table::do_top): Use LINE_SEP space before a line
6142 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
6144 * tbl/table.cc (text_entry::print_contents): New function.
6145 (text_string_name, right_text_string_name): Deleted.
6146 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
6147 (simple_text_entry::do_width, numeric_text_entry::do_width,
6148 alphabetic_text_entry::do_width): Don't store the contents of the
6150 (left_text_entry::simple_print, right_text_entry::simple_print,
6151 center_text_entry::simple_print,
6152 alphabetic_text_entry::simple_print,
6153 numeric_text_entry::simple_print): Print the entry directly
6154 instead of using the stored string.
6156 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
6158 * devps/Makefile: Strip PostScript files.
6159 * devps/prologue: Rename to...
6160 * devps/prologue.ps.
6161 * devps/psstrip.sed: New file.
6162 * devps/download: Use .pfa rather than .ps for installed versions
6165 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
6167 * troff/env.cc (input_trap): Give a warning if the argument is out
6170 * troff/env.cc (adjust): Treat negative argument as missing. Round
6171 argument > 5 down to 5.
6173 * troff/env.cc (center, right_justify): Make negative argument zero.
6175 * troff/div.cc (page_offset, vertical_position_traps): Treat
6176 invalid argument as missing.
6177 * troff/env.cc (line_spacing, line_length, title_length, indent,
6178 underline, hyphen_line_max_request, control_char,
6179 no_break_control_char, widow_control_request, adjust, input_trap,
6180 point_size): Likewise.
6181 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
6182 constant_space): Likewise.
6183 * troff/input.cc (compatible, shift, warn_request,
6184 set_escape_char): Likewise.
6186 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
6187 * tbl/table.cc (table::table): Likewise.
6189 * Makefile.dev (install_dev): depends on $(DEVFILES).
6191 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
6193 * devX75, devX75-12, devX100, devX100-12: New directories.
6194 * Makefile.in: Add these to DEVDIRS.
6196 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
6197 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
6198 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
6199 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
6201 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
6202 (uninstall): New target.
6203 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
6204 uninstall_prog, uninstall_dev): New targets.
6206 * troff/div.cc (return_request): Treat an invalid argument as
6209 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
6211 * tmac/tmac.e ((f): Set up the environment even when there's a
6212 current diversion. Transperently throughput a call to @N.
6215 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
6217 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
6218 up to vertical resolution.
6220 * tbl/table.cc (table::do_row): Change row number after printing
6223 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
6225 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
6227 * Rename CHANGES to NEWS.
6229 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
6231 * libgroff/new.cc (operator new): Avoid calling malloc(0).
6233 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
6235 * man.ultrix: Removed.
6237 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
6239 * Makefile.comm (extraclean): Delete files whose names begin with
6242 * pic/troff.cc (troff_output::text): Fix typo in implementation of
6245 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
6247 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
6248 * troff/div.cc (page_length, need_space, space_request): Treat
6249 invalid optional argument as missing.
6250 * troff/env.cc (number_lines): If the first argument is present
6251 but not a number, turn on line numbering, don't change the next
6252 line number and parse the remaining arguments.
6254 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
6256 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
6258 * eqn/box.h: Change declaration accordingly.
6259 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
6260 the specified size was bad but don't give an error. Check for
6262 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
6263 * eqn/lex (do_size): Likewise.
6265 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
6267 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
6270 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
6272 * tbl/table.cc (table::init_output): Improve error message when
6273 table won't fit on one page.
6275 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
6277 * pic/troff.cc (troff_output::start_picture): Generate line
6278 containing a horizontal motion equal to the width of the picture.
6280 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
6281 using GROFF_COMMAND_PREFIX environment variable.
6283 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
6285 * mdate.sh: Use $NF rather than $(NF).
6287 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
6289 * pic/main.cc (main): Use %1 not %c in argument to warning.
6291 * eqn/main.cc (main): Output code to check that geqn was given the
6294 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
6296 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
6297 `ln -s ../Makefile .; make; rm -f Makefile'.
6299 * troff/hyphen: Rename to...
6301 * troff/input.cc (main): Delete -H option. Don't call
6303 * troff/env.cc: Include searchpath.h and macropath.h.
6304 (exception_dictionary): Deleted.
6306 (read_hyphen_file): Deleted.
6307 (hyphenation_language): New struct.
6308 (class trie, class hyphen_trie): Move declarations up.
6309 (trie_node::~trie_node): Deleted.
6310 (trie::delete_trie_node): New function.
6311 (trie::do_delete): New pure virtual function.
6312 (hyphen_trie::do_delete): New function.
6313 (trie::~trie): New function.
6314 (hyphen_trie::~hyphen_trie): New function.
6315 (trie::clear): No need to chcek that tp is not 0.
6316 (current_language, language_dictionary): New variables.
6317 (hyphen_word): Give an error if no current language. Use
6318 exceptions dictionary in current language.
6319 (hyphen_trie::read_patterns_file): Find file using macro_path.
6320 Allow comments (starting with %) in patterns file. Don't make it
6321 a fatal error if the file can't be found.
6322 (hyphenate): Return if no current language. Get the exceptions
6323 dictionary and the hyphenation patterns from the current language.
6324 (set_hyphenation_language): New variable.
6325 (hyphenation_patterns_file): New function.
6326 (hyphenation_language_reg): New class.
6327 (hyphenation_language_reg::get_string): New function.
6328 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
6329 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
6331 * groff/groff.cc (main, help, synopsis): Delete -H option.
6332 * include/Makefile.sub: Don't define HYPHENFILE.
6333 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
6334 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
6335 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
6336 hyphenation patterns.
6338 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
6340 * eqn/neqn.sh: New file.
6341 * eqn/Makefile.sub: Handle neqn.sh.
6343 * eqn/eqn.h: Declare `nroff' variable.
6344 * eqn/box.cc (param_table): Add `nroff' param.
6346 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
6348 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
6350 * troff/troff.h (WARN_FONT): New warning.
6351 (WARN_TOTAL): Change accordingly.
6352 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
6353 (warning_table): Add WARN_FONT.
6354 * troff/node.cc (mount_font_no_translate): Pass argument to
6355 font::load_font. If this is non-zero, give a warning.
6356 Don't give an error message when accessing a font that has already
6357 been found to be invalid.
6358 * include/font.h (font::load, font::load_font): Add additional
6359 optional argument which suppresses error message if the font is
6361 * libgroff/font.cc (font::load_font): Handle additional argument.
6362 (font::load): Add additional argument. If this is non-null, set it
6363 to 1 and don't give error message.
6365 * include/printer.h (printer::end_page): Add argument giving
6367 * libdriver/input.cc (do_file): Pass this.
6368 * grops/ps.cc (ps_printer::end_page): Add argument.
6369 * grodvi/dvi.cc (dvi_printer::end_page,
6370 draw_dvi_printer::end_page): Add argument.
6371 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
6372 columns_per_page members. New member nlines.
6373 (DEFAULT_LINES_PER_PAGE): Deleted.
6374 (tty_printer::tty_printer): Don't compute lines_per_page from
6375 font::paperlength. Don't compute columns_per_page from
6377 (tty_printer::add_char): Don't check horizontal position against
6378 columns_per_page. Grow glyphs vector if neccessary.
6379 (tty_printer::end_page): Add argument giving page_length in units.
6380 Discard lines past end of page.
6382 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
6384 * tmac/tmac.tty-char: Fix definition of \(/l.
6386 * tmac/tmac.X: Define \(en.
6388 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
6390 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
6391 lpq, then use lp rather than lpr.
6393 * tmac/tmac.s (par@reset): Don't call `ad'.
6394 (par*env-init): Call `ad'.
6396 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
6398 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
6401 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
6402 * indxbib/indxbib.cc: Likewise.
6404 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
6406 * libgroff/putenv.c: New file.
6407 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
6408 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
6409 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
6410 stdlib.h with AC_HAVE_HEADERS.
6412 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
6414 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
6417 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
6419 * eqn/box.cc (gsize): Make it an int.
6420 (set_gsize): Parse argument handling increment or decrement.
6421 (box::top_level): Convert gsize to a string.
6423 * troff/input.cc (exit_troff): Make buf unsigned char [].
6424 Call to make_temp_iterator casts buf to char*.
6426 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
6428 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
6429 * Makefile.cpg (depend.temp): Likewise.
6431 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
6433 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
6435 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
6437 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
6439 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
6441 * Version 1.06 released.
6443 * Integrate mm 1.04.
6445 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
6447 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
6449 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
6451 * afmtodit/afmtodit.pl: Add -n option that disables generation of
6453 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
6454 afmtodit. Regenerate.
6456 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
6457 @f back past the current position.
6459 * tmac/tmac.e: Change calls to @R so that comments are not part of
6462 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
6464 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
6466 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
6467 check that we can link a call to a function declared in <stdio.h>.
6468 (GROFF_UNISTD_H): New macro.
6469 * configure.in: Call it.
6470 * Makefile.in: Document it.
6471 * include/posix.h: New file.
6472 * troff/troff.h: Don't include <osfcn.h>
6473 * troff/input.cc: Include posix.h.
6474 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
6476 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
6477 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
6479 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
6480 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
6481 * libbib/search.cc (O_RDONLY): Delete definition.
6482 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
6483 Don't include <osfcn.h>.
6485 * acgroff.m4 (GROFF_TIME_T): New macro.
6486 * configure.in: Call it.
6487 * Makefile.in: Document it.
6489 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
6490 * configure.in: Call it.
6491 * Makefile.in: Document -DTRADITIONAL_CPP.
6492 * include/ptable.h: Don't include generic.h.
6495 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
6496 Afterwards remove [T1 and [T2.
6497 (ref*spec!0, ref*spec!2): Use T1 rather than T.
6498 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
6499 (ref*add-T2): Renamed from ref*add-T.
6500 (ref*add-T1): New macro.
6502 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
6504 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
6506 * libbib/index.cc: Include <fcntl.h>.
6507 (O_RDONLY): Define if necessary.
6508 (make_index_search_item, index_search_item_iterator::get_tag,
6509 index_search_item::check_files): Use O_RDONLY.
6510 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
6511 (O_RDONLY): Define if necessary.
6512 (search_list::add_file): Use O_RDONLY.
6513 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
6515 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
6518 * libbib/index.cc (S_ISREG): Define it if necessary.
6519 (index_search_item::load): Use S_ISREG.
6521 * include/driver.h: Include <errno.h>.
6523 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
6525 * eqn/box.cc (body_height): Increase default value to 85.
6526 (body_depth): Increase default value to 35.
6528 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
6530 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
6531 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
6532 protected from expansion with \E.
6534 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
6536 * Makefile (Makefile): New target.
6538 * Makefile.sub (configure, distfiles): New targets.
6540 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
6543 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
6545 * eqn/box.cc (param_table): Add body_height and body_depth.
6547 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
6549 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
6551 * psbb/Makefile.sub: Don't link with libgroff.a.
6553 * acgroff.m4 (GROFF_PUTENV): New macro.
6554 * configure.in: Call GROFF_PUTENV.
6555 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
6556 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
6559 * troff/env.cc (distribute_space): Rename force_forward argument
6560 to force_reverse. Reverse the list if force_reverse is true.
6562 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
6564 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
6566 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
6567 height or depth to be negative. Guard against SUP_RAISE quantity
6570 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
6572 * devps/generate/textmap: Add `an' (arrowhorizex).
6573 * tmac/tmac.ps: \(an overlaps horizontally.
6574 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
6576 * devps/symbolchars: Add arrowverttp, arrowvertbt.
6577 * devps/textmap: Add arrowvertex.
6578 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
6579 updownarrow delimiters.
6580 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
6582 * tbl/table.cc (simple_entry::position_vertically,
6583 block_entry::position_vertically): For a centered entry, perform
6584 the motion in two stages.
6586 * refer/refer.cc (split_punct): Don't call lookup_token if there
6589 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
6591 * troff/input.cc (token::next): Delete token_node after copying
6594 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
6597 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
6599 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
6601 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
6603 * grops/ps.cc (usage): -b option takes an argument.
6605 * devps/prologue (PLG): New procedure.
6606 * grops/ps.cc (main, usage): New -g option.
6607 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
6610 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
6612 * include/cset.h: Include <limits.h> if we have it.
6614 * libgroff/illegal.cc: New file.
6615 * include/lib.h (illegal_input_char): Use table.
6616 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
6617 * pic/lex.cc (ARG1): Renumber to 14.
6618 * eqn/lex.cc (ARG1: Likewise.
6620 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
6621 (eg 1.05.90) correctly.
6623 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
6625 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
6626 Rename $r and $R registers to $v and $V.
6627 ($r, $R): Initialize to 0.
6628 (@v, @V): New macros.
6632 * troff/input.cc (main, usage): Add -R option that says not to
6634 * eqn/main.cc (main, usage): Rename -n to -R.
6636 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
6638 * devps/DESC.in: Leave font positions 5-9 blank.
6639 * devdvi/DESC.in: Likewise.
6641 * grog/grog.pl: Handle `.PS <file' correctly.
6643 * troff/input.cc (input_stack::push): Improve error message when
6644 input stack limit exceeded.
6646 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
6648 * refer/refer.cc (main): Fix typo in handling of `a' option.
6650 * refer/refer.cc (do_bib): In state START after a newline remain
6653 * groff/groff.sh: Deleted.
6654 * groff/Makefile.sub: Delete handling of groff.sh.
6656 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
6657 to determine whether to use \X'ps:...'.
6658 * tmac/troffrc: Set 0p register to 0.
6659 * tmac/tmac.ps: Set 0p register to 1.
6661 * groff/groff.cc: Support -X option. Give warning for -TXps and
6662 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
6663 * tmac/troffrc: Support -r.X=1.
6665 * pic/troff.cc (troff_output::dot): Don't test
6666 zero_length_line_flag.
6668 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
6670 * include/lib.h: Declare getopt() and friends unless
6671 STDLIB_H_DECLARES_GETOPT is defined.
6673 * doc/chars.tr: Delete.
6674 * man/groff_char.man: New file.
6676 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
6678 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
6679 user has changed register format.
6681 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
6683 * groff/groff.cc: Get rid of device_table. Get postprocessor from
6684 `postpro' command in DESC file. Get spooler command from `print'
6685 command in DESC file. Execute spooler command with /bin/sh.
6687 * groff/groff.cc: Split Unix-specific parts into...
6688 * groff/pipeline.c: New file.
6691 * COPYING: New file.
6692 * all files: Update copyright notices.
6694 * Rearrange files. Redo Makefiles. Use autoconf.
6696 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
6698 * troff/input.c (charinfo_to_node_list): Interpret character
6699 definition with escape_char of `\'.
6701 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
6703 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
6704 Define INT_DIGITS as big enough for 64-bit integer.
6705 * lib/strtol.c: Don't include lib.h.
6706 * lib/lib.h: Delete ifdef __cplusplus stuff.
6708 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
6710 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
6711 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
6712 get DESC from current directory.
6714 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
6716 * tbl/main.c (main): Always reset the line number when reading
6719 * tbl/table.c (table::print_single_hline, table::print_double_hline,
6720 table::define_bottom_macro, table::do_row, table::do_top): Round
6721 vertical spacing up to vertical resolution.
6723 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
6725 * ps/ps.h (enum resource_type): Avoid comma at end of
6727 * dvi/dvi.c (class dvi_printer): Likewise.
6728 * dvi/tfmtodit.c (gf::load): Likewise.
6729 * refer/label.y (struct expression): Likewise.
6730 * refer/refer.c (class label_processing_state): Likewise.
6731 * refer/indxbib.c (do_file): Likewise.
6732 * troff/troff.c (enum warning_type): Likewise.
6733 * tbl/main.c (process_data): Likewise.
6734 * troff/charinfo.h (class charinfo):
6736 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
6738 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
6740 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
6742 * groff.c: Move to new groff subdirectory.
6743 * groff/Makefile: New file.
6744 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
6746 * man/mdate.sh: Use ls -L if supported.
6748 * Consolidate all header files produced by gendef into lib/defs.h.
6749 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
6750 Don't include path.h.
6751 * lib/Makefile (path.h): Don't generate.
6752 * troff/input.c: Include defs.h. Don't include config.h.
6753 * troff/Makefile (config.h): Don't generate.
6754 * refer/index.h: Don't include suffix.h.
6755 * refer/index.c: Include defs.h.
6756 * refer/indxbib.c: Include defs.h.
6757 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
6759 * refer/Makefile (suffix.h, path.h): Don't generate.
6760 * groff.c: Don't include config.h. Include defs.h.
6761 * Makefile (config.h): Don't generate.
6762 (lib/defs.h): Generate.
6763 (topclean): Remove lib/defs.h.
6765 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
6767 * lib/malloc.c, lib/getpagesize.h: Deleted.
6768 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
6770 * lib/Makefile: Delete malloc-related stuff.
6771 * lib/new.c: Workaround COOKIE_BUG if necessary.
6773 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
6774 needed header files directly.
6775 * refer/refer.h: Omit definition of DEFAULT_INDEX.
6776 * Makefile: Include definition of DEFAULT_INDEX in path.h.
6778 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
6780 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
6782 * lib/font (font::load_desc, font::load): Don't split argument of
6784 (font::handle_unknown_font_command): Change type.
6785 * ps/ps.c (ps_font::handle_unknown_font_command,
6786 handle_unknown_desc_command): Change type.
6787 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
6789 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
6791 * lib/font.h (font::handle_unknown_font_command): Add file and
6793 * lib/font.c (font::handle_unknown_font_command):
6794 * ps/ps.c (ps_font::handle_unknown_font_command):
6795 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
6796 lineno arguments. Use _with_file_and_line functions for error
6799 * lib/fontfile.c (font::unknown_desc_command_handler): New static
6801 * lib/font.c (font::set_unknown_desc_command_handler): New
6803 (font::load_desc): For unknown commands, call
6804 unknown_desc_command_handler if not null.
6805 * lib/font.h (class font): Declare them.
6806 (FONT_COMMAND_HANDLER): New typedef.
6807 * ps/ps.c (handle_unknown_desc_command): New function.
6808 (main): Set bflag if we had a -b option. Call
6809 font::set_unknown_desc_command_handler.
6810 (broken.h): Don't include.
6811 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
6813 * ps/devps/Makefile: Add `broken' command to DESC file using
6814 BROKEN_SPOOLER_FLAGS.
6816 * macros/tmac.e ([, ]): Add as synonyms for { and }.
6818 * macros/tmac.e ($p): Only exdent if \$3 > 0.
6820 * macros/tmac.e (@R, @S): New macros.
6821 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
6822 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
6823 Declare $H, $[0-9], .. macros with @S.
6824 Declare |0, |1, |2, |3 strings with @S.
6826 * macros/tmac.e (@S): Rename to @U.
6828 * macros/tmac.e (@z): Define @b and bp as empty instead of
6831 * macros/tmac.e (@m): Deleted.
6832 (@h): Don't call @m.
6833 (@z): Don't set @m trap.
6835 * macros/tmac.e ($h, $f): Define |z as empty string.
6837 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
6840 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
6842 ()f): Likewise for * register.
6844 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
6845 argument is missing, don't change $R. Call sr with three
6846 arguments when initializing.
6848 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
6850 * macros/tmac.e (sr): New macro.
6851 Initialize $r and $R using sr.
6853 * macros/tmac.e (,): Delete \*(#[.
6855 * troff/env.c (set_tabs): Read the tab type even if the position
6856 is bad. Allow the position of the first tab stop to be negative.
6858 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
6860 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
6862 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
6863 rather than -DPATHCONF_MISSING.
6864 * Makefile: Get rid of PATHCONF_MISSING.
6866 * refer/map.c: New file.
6867 * refer/index.c: Interface to mmap through map.c. Rename map_size
6869 * refer/Makefile: Handle map.c.
6870 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
6872 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
6874 * Makefile: RANLIB should be `true' if there is no ranlib.
6875 * lib/Makefile (libgroff.a): Simplify.
6876 * driver/Makefile (libdriver.a): Simplify.
6878 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
6879 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
6882 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
6884 * troff/env.c (compare_ranges): Declare as extern "C".
6886 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
6888 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
6890 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
6892 * pic/troff.c (troff_output::text): Merge in grops_output::text,
6893 but conditionalize use of \X based on \*(.T.
6894 (grops_output::*): Deleted.
6895 * pic/output.h: Delete declaration of make_grops_output.
6896 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
6897 by default. -n sets it to 0.
6898 (usage): Corresponding changes.
6899 * groff.c (main): Don't pass -x or -p to pic.
6900 * groff.sh: Likewise.
6902 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
6905 * ps/devps/afmtodit: Change calculation of asc_boundary and
6906 desc_boundary. Make these bounds inclusive.
6907 * ps/devps: Regenerate font files.
6909 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
6911 * macros/tmac.latin1: New file.
6912 * macros/tmac.tty-char: Use tmac.latin1.
6913 (tmac.tty-tr): Deleted.
6914 * macros/Makefile: Install tmac.latin1.
6915 * macros/tmac.dvi: Use tmac.latin1.
6916 * macros/troffrc: Translate \[char160] onto no-break space here.
6917 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
6919 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
6921 * macros/tmac.Xps: Use `do' request.
6923 * macros/tmac.ps: Use `do' request.
6925 * macros/tmac.e (@C): Use `do' request.
6927 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
6928 * macros/Makefile: Install tmac.X*.
6930 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
6931 * tty/Makefile: Don't install tmac.tty*.
6932 * macros/Makefile: Install tmac.tty*.
6934 * dvi/tmac.dvi: Move to macros.
6935 * dvi/Makefile: Don't install tmac.dvi.
6936 * macros/Makefile: Install tmac.dvi.
6938 * ps/tmac.ps*: Move to macros.
6939 * ps/Makefile: Don't install tmac.ps*.
6940 * macros/Makefile: Install tmac.ps*.
6942 * eqn/box.c: Provide draw_lines parameter corresponding to -D
6944 * macros/eqnrc: Set draw_lines parameter based on device.
6945 * groff.c: Don't pass -D flag to eqn.
6946 * groff.sh: Likewise.
6947 * eqn/main.c: Warn about use of -D.
6949 * troff/input.c (process_startup_file): New function.
6950 (main): Call process_startup_file().
6951 * macros/troffrc: New file.
6952 * macros/Makefile: Install troffrc.
6953 * groff.c (main): Don't pass extra -m option to troff. For a
6954 pseudo device pass the name of the pseudo device to troff using
6956 * groff.sh: Likewise.
6957 * groff.c (possible_command::prepend_arg): Deleted.
6959 * troff/input.c (do_request): New function.
6960 (init_input_requests): Bind "do" to do_request.
6962 * eqn/main.c (main): Instead of loading eqnchar from device directory,
6963 load eqnrc from macro directory.
6964 * macros/eqnrc: New file.
6965 * macros/Makefile: Install eqnrc.
6966 * ps/devps/eqnchar: Deleted.
6967 * ps/devps/Makefile: Don't install eqnchar.
6968 * dvi/devdvi/eqnchar: Deleted.
6969 * dvi/devdvi/Makefile: Don't install eqnchar.
6970 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
6973 * lib/device.[ch]: New files.
6974 * lib/font.h (font::set_device_name, font::get_device_name):
6976 * lib/fontfile.c: Use device.h.
6977 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
6978 * troff/input.c: Delete definition of `device'.
6979 (main): Don't initialize device.
6980 * troff/troff.h: Include device.h rather than declaring device.
6981 * troff/Makefile: No need to handle DEVICE.
6982 * driver/input.c: Include device.h. Don't use
6983 font::{set,get}_device_name.
6984 * groff.c, Makefile: Rename device.h to config.h.
6985 * groff.c: Use library device variable.
6986 * eqn/main.c: Use library device variable.
6987 * eqn/Makefile: No need to handle DEVICE.
6989 * lib/searchpath.[ch]: New files.
6990 * lib/Makefile: Handle searchpath.[ch].
6991 * troff/input.c (open_file, init_dirs): Deleted.
6992 (macro_dirs): Deleted.
6993 (open_mac_file, macro_source): Use class search_path.
6994 (add_string, struct string_list): Move definition.
6995 (main): Change -M option to use macro_path. Delete call to
6997 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
6998 Rewrite to use class search_path.
6999 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
7000 * lib/Makefile: fontfile.c depends on searchpath.h.
7001 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
7003 * lib/macropath.[ch]: New files.
7004 * troff/Makefile: No need to handle MACROPATH.
7006 * troff/input.c: Delete DUMP code.
7007 * lib/fontfile.c, lib/font.h: Delete
7008 font::forget_command_line_font_dirs.
7010 * troff/input.c (push_token): New function.
7011 (handle_first_page_transition): Use push_token().
7012 (process_input_stack): Change handling of a space at the beginning
7015 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
7017 * troff/input.c (font_dirs): Delete unused variable.
7019 * eqn/lex.c (do_set): Correct error messages.
7021 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
7023 * troff/input.c (do_define_string): Allow the string name to be
7024 followed immediately by a tab.
7025 (define_character): Likewise.
7027 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
7029 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
7032 * troff/input.c (input_iterator::is_file): New virtual function.
7033 (file_iterator::is_file): New function.
7034 (input_stack::end_file): New function.
7035 (input_stack::next_file): Handle the situation where there is no
7036 file on the input stack correctly. Avoid making two passes over
7038 (next_file): Make the filename optional; in this case call
7039 input_stack::end_file().
7041 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
7043 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
7044 produce a real _ charater when the current font is CW and _
7047 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
7048 expression to work around gcc 2.2 bug.
7050 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
7052 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
7054 * troff/env.c (environment::add_padding): New function.
7055 (environment::add_char): Use add_padding().
7056 (environment::space): Likewise.
7057 (environment::wrap_up_field): Add some padding if there is none
7058 and there's no current tab.
7059 * troff/env.h: Declare environment::add_padding.
7061 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
7063 * pic/pic.y: undef fmod and rand before declaring them.
7065 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
7067 * troff/input.c (main): If the DESC file specifies a font name of
7068 0, then leave the corresponding font position empty.
7070 * nroff.sh: New file.
7071 * Makefile (install.nobin): Install nroff.sh.
7073 * tty/devlatin1/R.proto: Add ao as synonym for de.
7074 * tty/tmac.tty-char: Define ao as o.
7076 * tty/dev{ascii,latin1}/R.proto: Add aq.
7077 * tty/tmac.tty-char: Delete definition of aq.
7079 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
7081 * troff/input.c (init_charset_table): Don't translate 0240.
7082 * ps/tmac.ps: Translate char160 to space.
7083 * dvi/tmac.dvi: Likewise.
7084 * tty/tmac.tty: Likewise.
7086 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
7088 * dvi/tmac.dvi: Add support for all Latin-1 characters.
7090 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
7091 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
7094 * tty/tmac.tty-char: Add \(ah.
7096 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
7097 No need to define \(FM and \(!/. Conditionalize all character
7100 * ps/devps/lgreekmap: Add +h, +f, +p.
7102 * ps/tmac.psnew: New file.
7103 * ps/Makefile: Install tmac.psnew.
7105 * troff/input.c (charinfo_to_node_list): Don't ever interpret
7106 character definitions in compatible mode.
7108 * troff/input.c (remove_character): New function.
7109 (init_input_requests): Bind remove_character to "rchar".
7111 * ps/tmac.psold: New file.
7112 * ps/Makefile: Install tmac.psold.
7113 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
7114 characters into tmac.psold. Make these definitions unconditional.
7116 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
7118 * ps/tmac.ps: Don't define \('c and \('C.
7120 * ps/devps/textmap: Move Greek characters to...
7121 * ps/devps/symbolchars:
7123 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
7125 * ps/devps/text.enc: Add quotesingle.
7126 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
7127 * tty/tmac.tty-char: Likewise.
7128 * dvi/devdvi/texmi.map: Add +h, +f, +p.
7129 * dvi/devdvi/texi.map: Add Fn.
7130 * dvi/devdvi/msam.map: Add lz.
7131 * dvi/tmac.dvi: Handle Bq, bq, aq.
7133 * pic/lex.c (get_token): Recognize 'th.
7134 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
7136 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
7138 * ps/devps/textmap: Move di, mu, +- to...
7139 * ps/devps/symbolchars:
7141 * macros/tmac.s (@XS): Don't call par@reset or fi.
7142 (XA): Call LP. Turn off adjustment. Reduce line length.
7144 * macros/tmac.s: Initially alias XS to LP.
7145 (XS): Rename to @XS.
7146 (cov*ab-init): Alias XS to @XS.
7148 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
7150 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
7151 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
7152 (token::is_size, token::changes_env): Deleted.
7153 * troff/number.c (parse_term): No need to process \s explicitly.
7154 Call tok.next() only after scale indicator has been processed.
7155 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
7157 (token::next): Handle \s, \f, \S, \H immediately rather than
7158 returning them as tokens.
7159 (token::operator==, token::description, token::add_to_node_list,
7160 token::process): Remove handling of deleted tokens.
7162 * troff/env.c (environment::add_char): When adding padding
7163 indicator character, call start_line() if necessary.
7165 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
7167 * ps/devps/afmtodit: Don't output 0 kerns.
7169 * ps/devps/afmtodit: Remove directory from name of encoding in
7170 font description file.
7172 * ps/devps/afmtodit: Improve error messages.
7174 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
7176 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
7177 * ps/devps/FontMakefile: Deleted.
7178 * ps/devps/afmname: New file.
7180 * ps/devps/symbol.sed: New file.
7181 * ps/devps/symbol.diff: Deleted.
7182 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
7183 Generate zapfdr.afm from zapfd.afm.
7185 * tty/tmac.tty (tty-char): Prefix definition with ".
7187 * macros/tmac.an (TP): Don't start a diversion if one has already
7190 * tty/tmac.tty-char: Add Latin-1 characters.
7192 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
7194 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
7196 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
7197 Move declaration of struct horizontal_span.
7199 * tbl/table.c (table::table): Initialize span_list.
7200 (table::~table): Delete span_list.
7202 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
7204 * ps/devps/Makefile: Avoid dependency on GNU make.
7206 * ps/tmac.ps: Check that character does not already exist before
7209 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
7210 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
7211 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
7214 * tty/tmac.tty-char: New file.
7215 * tty/Makefile: Install tmac.tty-char.
7216 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
7219 * tty/tmac.tty: Fix definition of \(34.
7221 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
7222 bracket-drawing characters onto |. Add *o.
7224 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
7225 only if current_field.
7227 * troff/dictionary.c (dictionary::lookup): Free old_table after
7230 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
7232 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
7233 whose glyphs are identical to glyphs of some Roman character.
7235 * tty/devlatin1/R.proto (bu): Deleted.
7236 * tty/devascii/R.proto (bu): Deleted.
7237 * tty/tmac.tty: Add definition of \(bu.
7239 * eqn/main.c (do_file): Pass FILE as argument.
7240 (main): Automatically load eqnchar. New options -F and -n.
7241 Pass do_file an opened FILE.
7242 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
7243 No need to include font.h.
7244 * groff.sh: Likewise. Don't need to use - for standard input.
7245 Prefix files with -- if first file starts with -.
7247 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
7249 * troff/env.c (environment::possibly_break_line): Don't set line
7250 to 0 across call to output_line(). Don't call output_line() until
7251 after discarding nodes after break.
7253 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
7255 * request.h (macro::empty): Declare it.
7256 * input.c (macro::empty): New method.
7257 (interpolate_macro): Don't give a WARN_SPACE if the two-character
7260 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
7262 * troff/env.c (environment::start_field): Decrement space_total
7263 when a space is frozen.
7265 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
7267 * macros/tmac.an (R): Delete macro.
7269 * troff/input.c (get_copy, token::next): Support \# (like \" but
7270 newline is ignored).
7272 * troff/input.c (token::next): Fix error message in 'Y' case.
7274 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
7276 * eqn/delim.c (define_extensible_string): Recognize any prefix of
7279 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
7281 * c++test.c: Include <osfcn.h>.
7283 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
7286 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
7288 * tbl/table.c (table::divide_span): Don't count column separation
7289 if expand was specified.
7291 * tbl/main.c (process_format): Don't ignore width specs in
7292 continued format. Give warning for changing equal widths or
7293 column separation in continued format.
7294 (process_data): Set column separation, minimum width, equal
7295 columns at end of table.
7297 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
7299 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
7300 node::add_discretionary_hyphen): Use soft_hyphen_char.
7301 (set_soft_hyphen_char): New function.
7302 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
7304 * Makefile (c++tested): Give more helpful message if test fails.
7306 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
7308 * troff/input.c (init_charset_table): Translate 0240 to
7309 an unbreakable space.
7311 * troff/token.h (token::hyphen_indicator): New function.
7312 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
7314 * troff/input.c (translate): Allow translation to \%.
7315 * troff/node.c (node::add_char): Handle
7316 TRANSLATE_HYPHEN_INDICATOR.
7317 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
7319 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
7322 * tty/devlatin1/R.proto: \(hy and - should print as 055.
7324 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
7326 * groff.c (run_commands): If the last command gets a SIGPIPE send
7327 a SIGPIPE to all children than haven't yet terminated. When
7328 command terminates, set pid field to -1.
7330 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
7332 * groff.c (main): Pass an appropriate -filename option to gxditview.
7334 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
7336 * Makefile.bd (install): Remove existing program before copying.
7338 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
7339 programs which have Unix counterparts to be installed with
7340 user-specified prefix.
7342 * troff/input.c (exit_troff): Don't check if exit_started.
7343 (exit_request): Don't call exit_troff if exit_started.
7345 * Makefile.bd (install.mm): Rename to install.dwbmm.
7347 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
7349 * driver/input.c (do_file): Add missing break for '#' case.
7351 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
7353 * troff/input.c (input_stack::clear): Clear past any boundaries and
7354 then add the boundaries back.
7356 * troff/input.c (exit_troff): Return immediately if already
7359 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
7361 (pg*end-page): If the text has ended and there are no more
7362 footnotes or keeps, exit.
7364 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
7366 * troff/input.c (init_charset_table): Make \(rq transparent by
7369 * macros/tmac.an: Define lq and rq strings.
7371 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
7373 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
7375 * troff/env.c (environment::final_break): New function.
7376 (environment::newline): Set prev_line_interrupted to 2 if
7378 * troff/env.h: Declare environment::final_break.
7379 * troff/input.c (exit_troff): Call environment::final_break()
7380 instead of environment::do_break().
7382 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
7383 doesn't already exist.
7384 * macros/man.local: New file.
7385 * macros/tmac.an: Load man.local.
7386 * macros/man.ultrix: New file.
7388 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
7390 * troff/input.c (exit_groff): Rename to...
7391 (exit_troff): New function.
7393 * troff/div.c (exit_started, done_end_macro,
7394 seen_last_page_ejector): New global variables.
7395 (began_page_in_end_macro): New static variable.
7396 (exit_flag): Deleted.
7397 (top_level_diversion::top_level_diversion): Initialize
7399 (top_level_diversion): More elaborate test for whether
7400 cleanup_and_exit() should be called.
7401 Set began_page_in_end_macro if the end macro isn't yet finished.
7402 * troff/div.h (top_level_diversion::last_page_count): New data
7404 (top_level_diversion::set_last_page): New function.
7405 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
7406 * troff/env.c (do_break): Zero prev_line_interrupted.
7407 * troff/input.c (exit_flag): Delete declaration.
7408 (LAST_PAGE_EJECTOR): New magic cookie.
7409 (token::next): Handle LAST_PAGE_EJECTOR.
7410 (exit_groff): Set exit_started and done_end_macro instead of
7411 exit_flag. Call top_level_diversion::set_last_page. Push a
7412 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
7413 another ejection after setting seen_last_page_ejector.
7415 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
7417 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
7419 * macros/tmac.e (TH): Make sure there's room for the initial
7422 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
7423 Set FVS in points rather than units.
7425 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
7427 * troff/div.c (top_level_diversion::add_trap): Don't consider the
7428 position of empty slots.
7430 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
7432 * ps/devps/S: Fix height and depth of parenrightex.
7433 * ps/devps/symbol.diff: Regenerate.
7435 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
7437 * tmac.e (u): Do underlining as in -mgs.
7439 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
7441 * tty/tty.c (tty_printer::end_page): If overstriking is
7442 suppressed, still turn overstruck horizontal and vertical lines
7445 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
7448 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
7450 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
7452 * Version 1.05 released.
7454 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
7456 * tty/tty.c: Instead of keeping an array of glyphs and then
7457 sorting it, keep a ordered linked list of glyphs for each line.
7459 * driver/driver.h: Include stddef.h.
7461 * tty/tty.c (compare_glyph):
7462 * refer/refer.c (rcompare):
7463 * troff/env.c (compare_ranges): Arguments of qsort comparison
7464 function should be const void *.
7466 * troff/number.c (parse_term):
7467 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
7470 * refer/label.y (consider_authors): Don't access variables
7471 constructed under a condition outside that condition: put braces
7472 round for statement containing declaration; redeclare use of same
7475 * pic/pic.y (text_expr): Delete production that allows
7476 parenthesised text_expr.
7477 (expr): Allow a conditional_expr to appear in parentheses.
7478 (conditional_expr): Rename to any_expr.
7480 * mm: Install new version 1.01 from jh.
7482 * lib/font.c (font::get_width): Cache scaled widths.
7483 (font::font): Initialize widths_cache.
7484 (font::~font): Destroy widths_cache.
7485 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
7487 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
7489 * c++test.c, c++test.ref: New files.
7490 * Makefile: Check that the C++ compiler works.
7492 * ps/tmac.pspic (PSPIC): Do a break.
7494 * ps/tmac.ps: Move definition of PSPIC into...
7495 * ps/tmac.pspic: New file.
7496 (PSPIC): Draw box around picture, but make it invisible to grops.
7497 * ps/tmac.ps: Load tmac.pspic.
7498 * ps/Makefile: Install tmac.pspic.
7500 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
7502 * lib/font.c (scale_round): If n is negative,
7503 subtract .5 before truncating floating point result.
7505 * lib/fontfile.c: Include <errno.h>.
7507 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
7509 * driver/input.c (get_char): Inline. Don't update current_lineno.
7510 Change callers to up date current_lineno if necessary.
7511 Use get_char() instead of getc(current_file).
7513 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
7515 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
7517 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
7519 * tty/tty.c (tmac.tty): Define \(rg as (R).
7521 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
7523 * lib/lib.h: New define a_delete.
7524 * Use a_delete instead of delete when deleting an array of objects
7525 without destructors.
7527 * lib/lib.h: Rename adelete to ad_delete.
7528 * Change uses of adelete.
7530 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
7532 * eqn/eqn.y: Include lib.h.
7534 * troff/node.c (grow_font_table): Delete old_font_table.
7536 * mm: Install new version from jh.
7538 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
7540 * tbl/table.h (format_type): Make global instead of local to class
7541 entry_format. Prefix enumerators with FORMAT_.
7542 * tbl/table.c, tbl/main.c: Corresponding changes.
7543 * refer/token.h (token_type): Make global. Prefix enumerators
7545 * refer/token.[ch]: Corresponding changes.
7546 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
7548 * troff/div.c (node::set_vertical_size): Don't name argument.
7550 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
7552 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
7553 * lib/lib.h: Define adelete accordingly.
7554 * pic/object.c (graphic_object::graphic_object):
7555 * tbl/main.c (format::~format):
7556 * tbl/table.c (table::~table):
7557 * refer/ref.c (reference::~reference, reference::merge,
7558 reference::insert_field, reference::delete_field): Use adelete.
7560 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
7562 * tbl/table.h: Corresponding changes.
7564 * common.c (common_output::dashed_arc, common_output::dotted_arc):
7565 Ensure total_angle is positive.
7567 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
7569 * refer/ref.c (reference::merge, reference::insert_field,
7570 reference::delete_field): Avoid delete[0].
7572 * refer/token.c (init_special_chars): Move calls to cmupper
7573 outside calls to init_two_char_letter to work around bug in gcc
7576 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
7578 * lib/new.c (operator new): Use __builtin_new for g++.
7580 * pic/object.c (graphic_object::~graphic_object): Don't use
7583 * pic/object.c (output::compute_scale): Initialize max_width and
7586 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
7588 * troff/input.c (write_request): Call fflush.
7590 * troff/node.h (class composite_node): Move declaration to node.c
7591 * troff/input.c (charinfo_to_node): Rename to ...
7592 (charinfo_to_node_list): Return node list rather than composite
7594 * troff/node.c (make_composite_node): New function.
7595 (make_node, add_char): Call make_composite_node instead of
7597 (class composite_node): Add a tfont * member. Delete font_size
7599 (composite_node::composite_node, composite_node::copy,
7600 composite_node::size): Corresponding changes.
7601 (composite_node::tprint): Provide constant spacing, emboldening
7602 and track kerning as specified in tfont.
7603 (composite_node::width): Change width calculation accordingly.
7604 * troff/env.h (environment::composite): New member.
7605 (environment::is_composite, environment::set_composite): New
7607 * troff/env.c (environment::environment): Initialize composite.
7608 * troff/input.c (charinfo_to_node): Call
7609 environment::set_composite.
7610 * troff/node.c (make_composite_node, make_glyph_node): Use the
7611 plain version of the tfont if the environment is composite.
7613 * troff/node.c (font_info::get_space_width): Additional argument
7614 giving space_size. Handle constant space correctly. Scale by
7615 space_size unless constant spaced.
7616 (env_sentence_space_width): New function.
7617 * troff/node.h: Declare it.
7618 * troff/env.h (environment::get_space_size,
7619 environment::get_sentence_space_size,
7620 environment::get_narrow_space_width,
7621 environment::get_half_narrow_space_width): Make inline.
7622 (environment::get_space_width): Make inline. Just call
7624 * troff/env.c: Delete definitions for funtions made inline.
7625 (environment::space_newline, environment::space): Use
7626 env_sentence_space_width(). Don't scale by space_size.
7627 * troff/node.h: Move declarations of env*space_width() functions
7630 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
7632 * macros/tmac.s (PS): Don't try to set negative indent.
7634 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
7636 * pic/pic.y: Fix min function.
7638 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
7640 * man/mdate.sh: Clear LANGUAGE.
7642 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
7644 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
7645 * pic/lex.c: New COMMAND keyword.
7646 * pic/pic.y (print_args, print_arg): New rules.
7647 (placeless_element): Use print_args for PRINT.
7648 New COMMAND element.
7650 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
7652 * troff/input.c (terminal): Handle missing argument correctly.
7654 * pic/pic.y (text_expr): New rule.
7656 * pic/pic.y: Implement := operator.
7658 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
7660 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
7663 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
7665 * ps/devps/dingbatsrmap: Include this in the distribution.
7667 * macros/tmac.doc: Replace with new version from 2nd Networking
7668 Release. Fix loading of doc-* files.
7669 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
7670 * macros/tmac.doc.old: New file. Apply fixes that had been
7671 applied to old tmac.doc.
7672 * macros/tmac.andoc: Check that we're running under groff.
7673 * macros/Makefile: Rework.
7675 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
7677 * tbl/table.h (format_type):
7678 * refer/token.h (token_type): If NESTED_TYPES is defined, use
7679 typedef to make these types visible at file scope.
7680 * Makefile: Add NESTED_TYPES configuration option.
7682 * troff/div.c (mark): At the top level use the value of
7683 nl_reg_contents rather than the current vertical position.
7685 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
7687 * tty/tty.c: Implement \D for horizontal or vertical lines.
7688 (tty_printer::set_char): Use vec_used+2 as serial number.
7689 Don't allow size of vector to exceed USHRT_MAX-2.
7690 Split off part into...
7691 (tty_printer::add_char): New function.
7692 (tty_printer::draw): New function.
7693 (compare_glyph): Handle equal serial numbers.
7694 (tty_printer::end_page): Handle overstruck characters from \D.
7695 (main, usage): Implement -d option.
7697 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
7699 * tbl/main.c (process_format):
7700 * eqn/text.c (split_text):
7701 * troff/input.c (token::next): Use inner block for declarations
7702 with initializers in switch statement.
7704 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
7706 * pic/common.c (common_output::dash_line): Cope with zero-length
7709 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
7711 * Version 1.04 released.
7713 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
7715 * macros/tmac.an (TH): Define a macro an-init to define variables
7716 based on command line arguments.
7717 (an-header): Call it.
7719 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
7721 * Makefile (install.mm): Rename to install.dwbmm.
7723 * Makefile: Integrate mm.
7724 * mm: New directory.
7726 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
7728 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
7731 * pic/troff.c (troff_output::simple_spline,
7732 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
7733 shadowing parameter.
7735 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
7737 * lib/ptable.h: Add explicit casts when converting from unsigned
7740 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
7741 * dvi/devdvi/Makefile: Install SA, SB.
7743 * refer/indxbib.c: Add declaration of mktemp.
7745 * refer/lookbib.c: Add declaration of isatty.
7747 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
7749 * pic/lex.c (interpolate_macro_with_args): While collecting
7750 arguments, keep track of whether we're in a string.
7752 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
7754 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
7755 down with \v, so as to avoid problems with top of page trap
7756 setting no space mode.
7758 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
7760 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
7762 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
7764 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
7765 Improve error message.
7767 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
7769 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
7772 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
7774 * groff.c (possible_command::execp): Always use _exit() after a
7777 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
7778 NO_SYS_WAIT_H configuration options.
7779 * groff.c: Use these options. Use POSIX-style macros to extract
7780 fields from the status returned by wait().
7782 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
7784 * tbl/table.c (table::compute_separation_factor): Allow the
7785 separation factor to drop to 0.
7787 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
7789 * refer/search.c: Include <errno.h>.
7791 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
7793 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
7795 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
7798 * pic/lex.c (input_stack::bol): Move definition out of class body.
7800 * pic/main.c: On MSDOS munge argv[0].
7802 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
7804 * lib/ptable.c (hash_string): Use unsigned long rather than
7806 (next_ptable_size): Use unsigned rather than int. Give an error
7807 message if we've hit the largest table size.
7808 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
7811 * pic/object.h (object_spec): Make flags unsigned long. Declare
7812 flags as const unisgned long rather than as enums.
7814 * pic/output.c: Deleted.
7816 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
7818 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
7819 Add additional argument.
7820 (line_entry::note_double_vrule_on_{left,right}): Set value of
7821 douvle_vrule_on_{right,left} flag according to argument.
7822 (simple_line_entry::simple_print,
7823 simple_line_entry::double_line_print): If adjacent to double vrule
7824 on a corner extend rather than shorten the rule by half the double
7827 * troff/number.c (parse_term): In checking for overflow, handle the
7828 case where the current horizontal position is negative.
7830 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
7832 * pic/object.c (draw_arrow): Check for object having zero length.
7834 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
7836 * eqn/main.c (do_file): Split off inline equation handling into...
7837 (inline_equation): New function. Search for starting delimiter
7839 (delim_search): New function. Don't recognize a delimiter that
7840 occurs in the name of an escape sequence, number register, string
7843 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
7845 * eqn/delim.c (delim_box::compute_metrics): Don't call
7846 define_extensible_string if left is 0.
7847 (delim_box::output): Don't print the left delimiter if left is 0.
7848 (delim_box::debug_print): Check for left == 0 before calling printf.
7850 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
7852 * troff/Makefile (majorminor.c): Include only digits in
7855 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
7857 * refer/dirnamemax.c: new file.
7858 * refer/genlimits.c: Deleted.
7859 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
7860 Don't check path length.
7861 * refer/Makefile: Add dir_name_max.o; delete genlimits.
7862 * Makefile: Add PATHCONF_MISSING option.
7864 * refer/indxbib.c (get_cwd): New function.
7865 (main): Use get_cwd().
7866 * lib/getcwd.c: New file.
7867 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
7869 * lib/Makefile: Compile getcwd.o.
7871 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
7874 * refer/indxbib.c (main): Check success of mktemp.
7876 * lib/tmpfile.c: New file.
7877 * lib/Makefile: Add tmpfile.c.
7878 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
7879 * ps/ps.h: Delete declaration of mktemp().
7880 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
7881 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
7882 * driver/driver.h: No need now to include errno.h.
7884 * everywhere: Set errno to 0 before calling fopen().
7886 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
7887 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
7888 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
7890 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
7892 * troff/env.h (translate_space_to_dummy): Declare it.
7893 * troff/env.c (environment::space_newline, environment::space):
7894 If translate_space_to_dummy is set then make the width of spaces 0.
7895 * troff/input.c (translate): If the second character of a
7896 translation is a space, translate to unbreakable space. If the
7897 first character is a space, set or clear translate_space_to_dummy
7898 according to whether the second character is \&. Weird!
7900 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
7902 * groff.c (run_commands): Don't use non-zero exit code because a
7903 command gets SIGPIPE.
7905 * groff.c, groff.sh: Use -mXps with -TXps.
7907 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
7908 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
7909 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
7910 (ps_printer::special): New specials invis and endinvis.
7911 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
7912 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
7913 (ps_printer::end_page): Check that invis_count == 0.
7914 (ps_printer::invis_count): New member.
7915 (ps_printer::ps_printer): Initialize invis_count to 0.
7917 * troff/env.c (environment::hyphenate_line): Hyphenation
7918 indicator at beginning of word inhibits splitting after -, \(em
7921 * pic/pic.y (element): Allow another element to follow } without
7922 any intervening separator.
7924 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
7926 * pic/lex.c (get_delimited): Allow tabs before delimiter.
7928 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
7930 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
7931 declaration of wait() in header files.
7932 * Makefile: Get rid of -DHAVE_UNION_WAIT.
7934 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
7936 * lib/lib.h: Declare return type of strerror as char *.
7938 * man/Makefile: Add g flag to sed substitutions.
7939 * Makefile (shgroff, bindist): Likewise.
7941 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
7943 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
7944 * ps/devps/prologue (PBEGIN): Define showpage after pushing
7947 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
7949 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
7952 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
7954 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
7957 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
7959 * troff/input.c (define_number_reg): If currently undefined,
7960 don't define it if the argument is an invalid expression.
7962 * Makefile: Ignore return value of `if' commands without `else'
7965 * Makefile: Split up CPPDEFINES into a series of separate
7966 configuration options.
7968 * troff/input.c (init_registers): Use time_t instead of long
7969 unless LONG_FOR_TIME_T is defined. Use returned result rather
7970 than passing pointer.
7971 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
7973 * lib/Makefile (fontpath.h): Use gendef.
7975 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
7977 * troff/input.c (input_iterator::shift): Delete argument name.
7978 * troff/node.c (suppress_output_file::really_begin_page,
7979 suppress_output_file::really_transparent_char, node::ascii_print,
7980 node::tprint): Delete names of unused arguments.
7982 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
7984 * refer/label.y (string): Pass $4 to command_error.
7986 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
7988 * Version 1.03 released.
7990 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
7992 * Makefile: Pass definition of SHELL in SUBFLAGS.
7995 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
7996 ps/Makefile: Use gendef to construct header files that are
7997 constructed from the Makefile.
7999 * macros/Makefile: make all should build stripped version of tmac.e.
8001 * refer/Makefile (clean): Remove y.output.
8003 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
8005 * ps/pfbtops.c (main): Add -v option which prints out a version
8007 * ps/Makefile (pfbtops): Link with libgroff.a.
8009 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
8011 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
8012 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
8014 * refer/lkbib.c (main): Always terminate reference with blank
8016 * refer/lookbib.c (main): Likewise.
8018 * refer/linear.c (file_buffer::load): Check that the file is not a
8021 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
8022 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
8023 Delete second inclusion of <sys/param.h>.
8025 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
8027 * troff/token.h (token::special): Deleted.
8029 * tbl/main.c (process_format): Rework so that opt->tab_char is
8030 recognized only when appropriate.
8032 * ps/Makefile (clean): Remove pfbtops.
8034 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
8036 * lib/font.c (text_file::next): Don't return if we have got a
8039 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
8041 * refer/refer.c (store_reference): Get hash code from old_table[i]
8042 when rehashing the table.
8044 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
8046 * eqn/box.c (box::top_level): Save size and prev size using \R and
8047 restore it afterwards. Set the size to the size at the beginning
8049 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
8050 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
8052 * refer/Makefile (limits.h): Use ./genlimits.
8054 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
8056 * refer/index.c: Delete declarations of stat() and fstat().
8058 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
8060 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
8062 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
8064 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
8066 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
8068 * troff/input.c (token::get_char): Handle \e.
8070 * refer/linear.c: Delete declarations of fstat() and stat().
8072 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
8074 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
8075 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
8077 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
8079 * troff/input.c (do_define_macro): Improve error handling for end
8080 of file while defining macro.
8082 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
8084 * eqn/box.h: Fix declaration of set_gsize.
8085 * eqn/box.c (set_gsize): Make argument const char *.
8086 (gsize): Declare as char *.
8087 * eqn/main.c (main): Don't convert gsize to int.
8088 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
8090 * Version 1.02 released.
8092 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
8094 * macros/tmac.andoc: New file.
8095 * macros/Makefile: Install tmac.andoc.
8097 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
8098 operator new and delete on OP_DELETE_BROKEN not being defined.
8099 * Makefile: Mention OP_DELETE_BROKEN.
8101 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
8103 * Makefile (bindist): Pass SUBFLAGS.
8105 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
8107 * Makefile, groff.c: Pass definitions to groff.c via device.h.
8109 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
8112 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
8114 * ps/ps.h, ps/psrm.c: Make comment_table and
8115 header_comment_table local to resource_manager::process_file.
8117 * groff.sh: With -TXps pass -printCommand option to gxditview.
8119 * groff.c (possible_command::print): Implement using
8120 append_arg_to_string.
8122 * xditview: Merge in new implementation with own ChangeLog.
8124 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
8126 * groff.c (main): Implement PRINT_OPTION.
8127 (append_arg_to_string): New command.
8128 (device_table): Set PRINT_OPTION flag for Xps.
8130 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
8132 * troff/groff.h: Rename to troff.h.
8134 * pic/lex.c (lookup_keyword, docmp): New functions.
8135 (get_token): Use new lookup_keyword.
8136 Don't include key.h.
8137 * pic/key.[ch], pic/pic.gperf: Deleted.
8138 * pic/Makefile: Remove gperf stuff.
8140 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
8142 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
8144 * troff/Makefile, troff/node.c: Move definition of
8145 STORE_WIDTH into node.c.
8147 * etc/grog.pl, etc/grog.sh: Support -mdoc.
8149 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
8151 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
8152 dvi/devdvi/texb.map: Add lq and rq.
8153 dvi/devdvi: Regenerate fonts.
8154 * ps/devps/textmap: Add lq and rq.
8155 * ps/devps: Regenerate fonts.
8156 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
8157 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
8159 * pic/object.c (position_rectangle): When checking radius
8160 cope with possiblity that width or height is negative.
8161 (box_object::box_object): Have separate xrad and yrad with
8162 signs matching signs of dim components.
8163 (box_object::{north,south}_{east,west}): Use xrad and yrad.
8164 (box_object::print): With rounded boxes use absolute values
8165 for dim and rad arguments.
8167 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
8170 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
8172 * various files: Add explicit destructors to keep Saber CC +d
8175 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
8177 * eqn/box.c (box::top_level): Restore fonts correctly after
8178 font changes in line containing inline equation. Also
8179 restore previous font as well as current font.
8180 * eqn/pbox.h: Define necessary string and register names.
8182 * troff/input.c (token::next): Case 'R' calls do_register.
8183 (do_register): New function.
8185 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
8187 * groff.c, groff.sh: Support Xps device. Allow each device
8188 to have a pseudo_name and a real_name.
8190 * groff.c (run_commands): Don't print `Broken pipe' messages.
8192 * ps/pfbtops.c: New file.
8193 * ps/Makefile: Add pfbtops.
8195 * troff/number.c (parse_term): Improved error message.
8197 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
8199 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
8201 * Makefile: Integrate refer.
8202 * refer: New directory.
8203 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
8204 man/lkbib.man: New files.
8205 * man/Makefile: Support refer man pages.
8207 * lib/lib.h: Declare is_prime.
8208 * lib/prime.c: New file.
8210 * troff/input.c (macro_source): New function.
8211 (init_input_requests): Bind "mso" to macro_source.
8213 * troff/env.c (environment::possibly_break_line): Maintain
8214 pointer to pointer to node to be split in ndp so as to avoid
8215 using address of freed node.
8217 * troff/env.c (environment::hyphenate_line): Maintain pointer to
8218 pointer to first node to be hyphenated in startp so as to
8219 avoid using address of freed node.
8221 * troff/env.c (class trie, class hyphen_trie): Make the
8222 elements of the trie be of type char not unsigned char.
8223 Declare arguments to be const char* instead of unsigned char *.
8225 * troff/env.c (hyphenate): Initialize hbuf[0].
8227 * troff/input.c (set_string): Declare p to be char * and cast
8228 *p to unsigned char when necessary.
8230 * troff/input.c (do_define_macro): Declare s to be const
8231 char*. Cast element to unisgned char when necessary, Declare
8232 d to be an int. Handle EOF better.
8234 * troff/Makefile, troff/input.c: Different scheme for passing
8235 definitions of MACROPATH, HYPHENFILE and DEVICE.
8237 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
8239 * tty/devascii/R.proto: Delete entry for em.
8240 * tty/devlatin1/R.proto: Likewise.
8242 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
8244 * troff/input.c (translate): Stop when we get a space. Treat eof
8247 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
8249 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
8251 * tbl/main.c (process_format): A font name following a `f'
8252 modifier that starts with a digit can be only one character long.
8253 Also deal with EOF on the second character of the font name.
8255 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
8257 * troff/input.c (token::next): Turn \~ into an
8258 unbreakable_space_node.
8259 * troff/node.c (unbreakable_space_node): New class.
8260 * troff/node.h: Declare it.
8262 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
8264 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
8265 it's >= 0, before outputting it as a single byte.
8267 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
8269 * lib/font.c: Make font_char_metric::code an int.
8270 (font::get_code): Change return type to int.
8271 (font::load): Allow code to be arbitrary integer.
8272 * lib/font.h (font::get_code): Change return type to int.
8273 (font::number_to_index): Change argument type to int.
8274 * troff/input.c (token::next): In case 'N', allow any value.
8275 Store value in token::val.
8276 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
8277 (token::get_char, token::add_to_node_list, token::process): Get
8279 (charinfo::set_number): Change argument to int.
8280 (charinfo::get_number): Require that NUMBERED flag be set.
8281 (get_charinfo_by_number): Store numbered characters not between 0
8282 and 255 in a dictionary.
8283 * troff/charinfo.h (get_charinfo_by_number): Change argument type
8285 (charinfo::number): Change type to int.
8286 (charinfo::set_number): Change type of set_number to int.
8287 * troff/node.c (troff_output_file::put_char_width,
8288 troff_output_file::put_char): Test whether character is numbered
8289 using charinfo::numbered().
8290 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
8292 * lib/nametoindex.c: New implementation to cope with arbitrary
8295 * troff/input.c (token::operator==): Test val for
8296 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
8299 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
8300 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
8302 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
8304 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
8307 * all Makefiles: rm targets of cp and >.
8309 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
8312 * eqn/lex.c (def_table): Add dollar.
8314 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
8316 * troff/input.c (do_width): Push back newline before closing delim
8319 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
8321 * groff.c (possible_command::prepend_arg): New function.
8322 (main): Prepend device -m option.
8323 * groff.sh: Put device -m options before command-line options.
8325 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
8327 * macros/tmac.an (IP): Quote argument to TP.
8329 * ps/ps.c (main): New option -b, which sets...
8330 (broken_flags): New variable.
8331 (ps_printer::~ps_printer): Incorporate the setup section in the
8332 prolog if (broken_flags & NO_SETUP_SECTION).
8333 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
8334 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
8335 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
8336 ps_printer::print_needed_font_comment,
8337 ps_printer::print_supplied_font_comment,
8338 ps_printer::print_include_font_comments,
8339 ps_printer::lookup_doc_font, ps_printer::download_fonts,
8340 ps_printer::read_download_file, read_document_fonts, add_font,
8341 skip_line, parse_fonts_arg, document_font::document_font,
8342 document_font::~document_font, document_font::download,
8343 ps_output::include_file): Deleted.
8344 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
8345 rather than %!PS-Adobe-2.0. Make calls to
8346 resource_manager::need_font for each font that we used. Replace
8347 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
8348 print_supplied_font_comment, print_needed_font_comment by call to
8349 resource_manager::print_header_comments. Output %%Orientation
8350 comment. Output %%Requirements: numcopies comment if ncopies > 1.
8351 Don't output the prolog directly. Instead call
8352 resource_manager::output_prolog. Only define #copies when ncopies
8353 > 1. Delete calls to print_include_font_comments and
8354 download_fonts. Add call to resource_manager::document_setup.
8355 (ps_printer::do_file): Call resource_manager::import_file instead
8356 of including it ourselves.
8357 (ps_printer::do_import): Likewise. Also don't call
8358 merge_import_fonts. Push userdict on the dictionary stack before
8359 and pop it afterwards.
8360 Move declaration of ps_output into ps.h.
8361 * ps/psrm.c: New file implementing resource_manager class.
8362 * ps/ps.h: New file declaring ps_output and resource_manager
8364 * ps/devps/zapfdr.ps:
8365 * ps/devps/symbolsl.ps:
8366 * ps/devps/prologue: Use 3.0 conventions.
8367 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
8368 Add default definition of BROKEN_SPOOLER_FLAGS.
8369 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
8370 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
8372 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
8374 * etc/grog.pl: New file.
8375 * Makefile (GROG): New variable.
8376 Add GROG to SUBFLAGS.
8377 * etc/Makefile (GROG): New variable.
8378 (install.nobin): Install $(GROG) rather than grog.sh.
8380 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
8382 * eqn/special.c (special_box::compute_metrics): Make the input and
8383 output strings the same. Get the new height and depth from the
8384 predefined height and depth registers. Also make subscript kern
8386 (special_box::compute_subscript_kern, special_box::compute_skew):
8389 * eqn/box.c (pointer_box::compute_skew,
8390 simple_box::compute_metrics, box::top_level)
8391 * eqn/text.c (prime_box::compute_metrics,
8392 prime_box::comput_subscript_kern)
8393 * eqn/limit.c (limit_box::compute_metrics):
8394 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
8395 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
8396 negative numbers in `nr' requests with a leading 0.
8398 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
8400 * eqn/special.c: New file.
8401 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
8402 Add new rule for simple.
8403 * eqn/lex.c (token_table): Add SPECIAL.
8404 * eqn/box.h: Declare make_special_box.
8405 * eqn/Makefile: Add special.[co].
8407 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
8409 * ps/devps/prologue: Possibly set packing to true while defining.
8410 Create grops dictionary here. Initialize local variables before
8411 defining procedures.
8412 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
8413 the dictionary stack. Set strokeadjust and overprint to false if
8414 the relevant operators are defined.
8415 (PEND): New procedure.
8416 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
8417 prologue. Do everything else in the setup section.
8418 (ps_printer::do_import): Just call PBEGIN and PEND around the
8419 picture. Also push userdict before, and pop it afterwards.
8421 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
8423 * troff/node.c (bracket_node::tprint): Brackets were being printed
8426 * macros/tmac.an (SH, SS): Set fill mode.
8428 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
8430 * troff/div.c (top_level_diversion::begin_page): Set
8431 high_water_mark to 0.
8433 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
8435 * man/mdate.sh: New file.
8436 * man/mdate.c: Deleted.
8437 * man/Makefile: Use mdate.sh instead of mdate.
8440 * eqn/lex.c (do_gsize): Supply missing argument to error message.
8442 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
8444 * man/mdate.c: New file.
8445 * man/*.man: Replace modification date by @MDATE@.
8446 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
8447 (mdate): New target.
8449 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
8450 Remove illegal input characters.
8452 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
8454 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
8456 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
8458 * troff/div.c (begin_page): Change behaviour when
8459 !first_page_begun and !break_flag.
8461 * troff/input.c (do_name_test): Return 0 if argument is empty.
8463 * troff/input.c (read_long_escape_name): Require closing ] to be
8464 at same input level as opening [.
8466 * troff/input.c (read_increment_and_escape_name): New function.
8467 (get_copy, process_input_stack): Use this for \n.
8469 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
8471 * troff/div.c (top_level_diversion::begin_page): Ignore the
8472 current value of page_number if !first_page_begun.
8474 * groff.c (main): Fix declaration of buf.
8476 * troff/input.c (do_name_test): New function.
8477 (token::next): Implement \A.
8478 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
8479 (token::description, token::add_to_node_list, token::process):
8480 Handle TOKEN_ESCAPE.
8481 * troff/token.h: New token TOKEN_ESCAPE.
8483 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
8485 * pic/main.c (do_picture): Allow space before and after filename
8486 following `<'. Check that the filename is not empty.
8488 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
8490 * Version 1.01 released.
8492 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
8494 * dvi/tmac.dvi: ftr HR to H.
8496 * macros/tmac.e: Round up computation of $r.
8498 * xditview/tmac.X: Don't give up completely in compatibility mode.
8499 Use \n(.s instead of \n[.s].
8501 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
8502 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
8503 Add u to factors inside \s[...]. Rename frac to dvi-frac.
8504 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
8505 short names in the char definitions.
8507 * ps/tmac.ps: Don't give up completely in compatibility mode.
8508 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
8509 quote in front of \n(.s. Add u to factors inside \s[...].
8511 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
8513 * tty/tmac.tty: Call the nroff request.
8515 * macros/tmac.e ((x, )x): Better definitions that work properly
8517 (@0, @1): Helper macros for (x.
8519 * macros/tmac.e ($s, hl): Use \l rather than \D.
8521 * tty/tmac.tty: Make it work better in compatibility mode.
8522 (pchar): Rename to tty-char.
8524 * macros/tmac.e (@E): New macro.
8525 (r, i, b, rb, bi): Use @E.
8527 * macros/tmac.e (@F): Don't use (;...) syntax.
8529 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
8530 it was modified for groff.
8532 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
8534 * macros/tmac.e (<., .>): Removed.
8535 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
8537 * macros/tmac.e: Remove check that groff is being used.
8539 * macros/tmac.e (@C): Change families only if using groff; turn
8540 compatibility mode off while changing familes. Save compatibility
8541 mode before changing families and restore it afterwards.
8543 * macros/tmac.e (@h): Remove test for offset + line length.
8545 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
8546 (lo, th, ac): Define to call @S instead of using als.
8548 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
8549 the ratio of the vertical spacing to the point size in units
8550 expressed as a percentage. Use these instead of $10r and $10R,
8551 Delete $10r and $10R.
8553 * lib/font.c (font::load): In default computation of space_width,
8554 divide by sizescale. Use scale_round.
8556 * macros/tmac.an (TP): Don't call `nf'.
8557 (an-do-tag): Don't call `fi'.
8559 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
8561 * troff/input.c (process_input_stack): Handle the case where
8562 spaces at the beginning of an input line are followed by a
8565 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
8567 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
8568 * groff.sh: Use pic -x with the dvi device.
8570 * dvi/devdvi/FontMakefile (H): Don't use -s.
8572 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
8573 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
8574 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
8577 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
8579 * ps/psfig.diff: New file.
8580 * ps/tmac.psfig: New file.
8582 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
8584 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
8585 (]-): Don't call ref*do-tl.
8587 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
8589 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
8590 (fn@do-FS): Rename to fn*do-FS.
8592 * troff/input.c (transparent_translate): New function.
8593 (process_input_stack): Apply transparent_translate before calling
8594 diversion::transparent_output(unsigned char).
8596 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
8598 * troff/input.c (do_define_macro): Define the macro before calling
8601 * xditview/Makefile: Add DEVICES variable. Change install target
8604 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
8606 * groff.c (run_commands): Handle the possibility that there are
8607 child processes other than those forked by us.
8609 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
8611 * lib/string.c (string::append): New function.
8612 * lib/stringclass.h: Declare it.
8614 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
8616 * eqn/main.c (main): New option -N which sets
8617 no_newline_in_delim_flag.
8618 (do_file): If no_newline_in_delim_flag is set don't allow newlines
8620 * groff.c (main): Pass -N on to eqn.
8621 (help, synopsis): Mention -N.
8622 * groff.sh: Implement -N.
8624 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
8626 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
8627 (]-): Call ref*do-tl if ref*need-tl is non-zero.
8628 (XP): Allow as initializer.
8630 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
8632 * troff/env.c (environment::wrap_up_field): If field_spaces are
8633 non-zero and we have a current_tab, subtract padding from
8634 tab_distance. If this makes tab_distance <= 0, use the next tab
8635 stop instead. If there isn't any next tab or it's a left tab,
8636 wrap up the current tab.
8637 (environment::start_field): Initialize tab_precedes_field.
8638 (environment::wrap_up_tab): If there's a current field, update
8639 pre_field_width, field_distance and tab_precedes_field.
8640 * troff/env.h (environment::tab_precedes_field): New member.
8642 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
8644 * ps/ps.c (ps_printer::do_file): New function.
8645 (ps_printer::special): Bind to `file' special.
8646 (ps_printer::do_exec): Set ndefined_styles to 0.
8648 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
8650 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
8651 Avoid stripping first character from the start of unrecognized
8652 escapes. Use lex_error instead of error to report errors.
8653 * eqn/lex.c (get_token): Rework handling of escapes.
8654 (lex_error): Move declaration into...
8657 * xditview/xditview.c (main): Make -page option work.
8659 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
8661 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
8663 * macros/tmac.s (B2): Correct size of box.
8665 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
8667 * macros/tmac.s (B2): Postpone drawing the box until in the
8668 top-level diversion.
8670 * tty/tmac.tty: Add font translations for C, CR, CW.
8672 * groff.c (synopsis, help): Document -i.
8673 * groff.sh: Implement -i.
8675 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
8676 Simplify the construction of SN.
8678 * troff/number.c (parse_term): Give `|' a higher precedence.
8679 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
8682 * macros/tmac.s (B2): Use par@finish instead of par@reset.
8684 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
8686 * lib/string.c (string::move): New function.
8687 * lib/stringclass.h: Declare it.
8689 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
8691 * troff/env.c (distribute_space): Add optional argument
8693 (environment::wrap_up_field): Call distribute_space with
8694 `force_forward' argument of 1.
8696 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
8698 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
8699 Inline it. Move reallocation into...
8700 (string::grow1): New function.
8701 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
8702 dependencies to include library header files.
8703 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
8705 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
8707 * macros/tmac.s (@NH): Use the same number registers than -ms does
8708 for the heading level counters. Use the same string that -ms does
8709 for the number for this heading.
8711 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
8713 * lib/new.c (operator new): Cast result of malloc to char *.
8715 * troff/input.c (spring_trap, lookup_request): Add assert that nm
8718 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
8720 * groff.c (main): Support -i.
8722 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
8724 * pic/pic.h: Include <osfcn.h>.
8726 * ps/ps.c: Add declaration of mktemp.
8728 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
8729 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
8730 argument as union wait *.
8731 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
8732 argument to union wait *.
8734 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
8736 * tty/tmac.tty: Add definition of \(co.
8738 * pic/object.c (make_arc): Only increase radius when radius
8739 strictly less than d.
8740 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
8743 * troff/env.c (environment::environment(symbol),
8744 environment::environment(const environment *)): Initialize
8747 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
8749 * tbl/main.c (main): Add exit(0).
8751 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
8753 * pic/main.c (main):
8754 * eqn/main.c (main):
8755 * tbl/main.c (main):
8756 * etc/soelim.c (main):
8757 * driver/printer.c (printer::~printer):
8758 * troff/node.c (real_output_file::~real_output_file,
8759 real_output_file::flush): Check for errors on stdout.
8761 * most files: Add 1991 to copyright notice.
8763 * macros/tmac.s: Don't test \n(.x and \n(.y.
8765 * troff/input.c (token::next): Rename `escape_char' label to
8766 `handle_escape_char' and `normal_char' label to
8767 `handle_normal_char'.
8769 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
8771 * groff.c (main, synopsis, help): Support -a option.
8772 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
8773 to trflags while parsing options.
8775 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
8777 * troff/number.c (parse_term): With `m', `M' and `n' scale
8778 indicators, convert scale factor to hunits before scaling.
8780 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
8782 * lib/font.c (scale_round): Better test for overflow when n is
8785 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
8787 * tbl/main.c (process_format): Add second argument of type
8788 options*. Change callers. Allow opt->tab_char as well as '\t'
8789 between format items.
8791 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
8793 * macros/tmac.an (PD): With no arguments, make sure register PD is
8795 (TH): Call PD with no argument, instead of setting register PD
8798 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
8800 * Version 1.00 released.
8802 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
8804 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
8806 * dvi/devdvi/DESC: Mount CW instead of CR.
8808 * dvi/tmac.dvi: Add definition of \(tm.
8810 * dvi/devdvi/texsy.map: Add lh, and rh.
8811 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
8812 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
8814 * dvi/devdvi/FontMakefile: Generate H from cmss10.
8815 * dvi/devdvi/Makefile: Install H.
8816 * dvi/devdvi/H: New file.
8818 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
8820 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
8823 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
8825 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
8827 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
8829 * macros/tmac.s (@EN): Handle the case where the equation is empty
8830 but the label is not.
8832 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
8834 * troff/groff.h: New warning category WARN_SPACE.
8835 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
8836 WARN_SPACE to warning_table.
8837 (interpolate_macro): Give a warning of type WARN_SPACE if the name
8838 is longer than two characters and is not defined, but the first
8839 two characters do make a defined name.
8841 * PROBLEMS: New file.
8843 * CHANGES: New file.
8844 * README-0.6, README-1.00: Deleted.
8846 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
8847 * xditview/devX75/Makefile: Make devX75-12.
8848 * xditview/devX100/Makefile: Make devX100-12.
8850 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
8851 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
8853 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
8855 * README-0.7: Rename to README-1.00.
8857 * macros/tmac.pic: New file.
8858 * macros/Makefile (install.nobin): Install tmac.pic.
8860 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
8862 * troff/env.c (hyphen_word): Correct the test for whether the
8863 token is a hyphen. Reset npos to 0.
8865 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
8867 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
8869 * macros/tmac.s (ds*common-end): Call par*reset.
8871 (par@reset-indent): Deleted.
8873 * macros/tmac.s (@IP): Divert the label.
8875 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
8877 * xditview/draw.c (setGC): Use a line width of .1m rather than
8878 .04m by default; round rather than truncate value.
8880 * tbl/table.c (class empty_entry): New class.
8881 (empty_entry::empty_entry, empty_entry::line_type): New functions.
8882 (table::add_entry): Represent empty entries by objects of type
8884 (table_entry::line_type): Return -1.
8885 (table::determine_row_type): Ignore entries with line_type 0.
8886 Treat type -1 as non-lines.
8888 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
8890 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
8891 macros/tmac.s: Rename \(-d to \(Sd.
8893 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
8895 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
8896 * xditview/libXdvi/DviChar.c: Likewise.
8897 * dvi/devdvi/texsy.map: Add `<<', `>>'.
8899 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
8901 * troff/div.c (top_level_diversion::begin_page): Call
8902 init_output() if the_output is 0.
8904 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
8906 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
8908 (get_copy): Turn \E into ESCAPE_E.
8909 (token::process, asciify): Handle ESCAPE_E.
8911 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
8913 (DS): Implement `.DS R'.
8915 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
8917 * macros/tmac.s (FS): New macro.
8919 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
8921 * macros/tmac.s (cov*tl-init): Remove after first execution
8922 instead of aliasing to @nop. Call top of page macro explicitly
8923 instead of setting trap; call @init first. Set pg@top as top of
8925 (cov*auto-init): Deleted. Set cov*tl-init instead of
8926 cov*auto-init as top of page trap.
8927 (TL, LP): Do a break instead of calling cov*tl-init.
8928 (cov*print): With RP format but no TL, alias FS and FE to @FS and
8929 @FE; in this case also give a warning and always start another
8930 page. No need to set pg@top here.
8931 (cov*tl-init): Rename to cov*first-page-init.
8933 * macros/tmac.s (RP): Do `.pn 0'.
8934 (cov*tl-init): With RP format don't do `.pn 0'.
8936 * macros/tmac.s (pg@cs-top): Set no space mode.
8938 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
8939 (cov*ab-init): Alias TL, AU and AI to these.
8941 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
8943 * macros/tmac.s (@EQ): Move the space before the equation into @EN
8944 (@EN): Do nothing unless \n[dl] is > 0.
8946 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
8948 * pic/object.c (ellipse_object::radius): New function.
8950 * VERSION: Change version to 0.7.
8952 * tbl/table.c (block_entry::do_divert): Declare return type as
8954 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
8956 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
8958 * troff/column.c: New file.
8959 * troff/Makefile: Corresponding changes.
8961 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
8964 * troff/div.c (top_level_diversion::space): If the space causes
8965 the first-page transition and springs a trap, truncate the space
8968 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
8970 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
8973 * pic/troff.c (troff_output::line_thickness,
8974 troff_output::set_fill): Do a horizontal motion to compensate for
8975 the width of the \D escape sequence.
8977 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
8979 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
8982 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
8985 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
8986 Supply empty definition.
8987 (text_entry::simple_print, simple_text_entry::simple_print):
8988 Delete declarations.
8989 (table::add_entry): Represent empty entries by objects of type
8992 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
8994 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
8996 * tbl/table.c (left_text_entry::add_tab): New function.
8998 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
9001 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
9003 * troff/env.c (environment::start_field): Give an error message if
9004 there is no next tab.
9006 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
9008 * troff/env.c (hyphenate): Skip initial elements with zero
9011 * macros/tmac.s (par@init): Keep VS in points rather than units.
9013 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
9015 * pic/main.c (main): Implement `-c' option.
9016 * pic/output.h: Declare make_tpic_output().
9017 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
9019 (tpic_output): New class.
9020 (tpic_output::tpic_output, tpic_output::set_pen_size,
9021 tpic_output::command, make_tpic_output): New functions.
9023 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
9025 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
9026 if they're not already defined.
9027 * tbl/table.c (init_output): Don't test \n(.g.
9029 * troff/input.c (do_if_request): Delete `g' condition. Recognize
9030 `d', `r' and `c' conditions even in compatibility mode.
9032 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
9034 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
9037 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
9039 * troff/env.h (environment::prev_line_interrupted): New member.
9040 (environment::get_prev_line_interrupted): New function.
9041 * troff/env.c (environment::newline): Set prev_line_interrupted.
9042 (environment::environment(const environment *),
9043 environment::environment(symbol)): Initialize
9044 prev_line_interrupted.
9045 * troff/input.c (process_input_stack): Don't give special
9046 treatment to space and newline at the beginning of the line if the
9047 previous line was interrupted.
9049 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
9051 * eqn/eqn.y: Disallow PRIME by itself.
9052 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
9054 (def_table): Remove definition of '. Define prime to be `.
9056 * eqn/eqn.y: Split off part of rule `script' into a new rule
9059 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
9061 * macros/tmac.s ({, }): New string aliases.
9063 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
9065 * README-0.7: New file.
9067 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
9069 * macros/tmac.s: New file.
9070 * man/groff_ms.man: New file.
9071 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
9072 * Makefile.bd: Similarily.
9073 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
9074 definition of TMAC_S.
9075 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
9076 * macros/TODO: New file.
9078 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
9080 * troff/env.c (right_justify): New function.
9081 (init_env_requests): Bind this to request "rj".
9082 (center_lines): Set right_justify_lines to 0. If we get a bad
9083 integer, center 1 line.
9084 (environment::environment(symbol), environment::environment(const
9085 environment *)): Initialize right_justify_lines.
9086 (environment::get_right_justify_lines): New function.
9087 (init_env_requests): Bind this to number_register ".rj".
9089 * troff/env.c (environment::choose_breakpoint): Implement
9090 hyphenation_margin and hyphenation_space.
9091 (environment::get_hyphenation_space,
9092 environment::get_hyphenation_margin): New functions.
9093 (init_env_requests): Bind these to .hys and .hym.
9094 (hyphenation_space_request, hyphenation_margin_request): New
9096 (init_env_requests): Bind these to hys and hym.
9097 (environment::environment(symbol), environment::environment(const
9098 environment *)): Initialize hyphenation_margin and
9100 * troff/env.h: Corresponding changes to class environment.
9102 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
9104 * troff/div.c (blank_line): Always do a break.
9106 * eqn/box.c (do_text): Turn off escapes while appending text to
9109 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
9111 * troff/input.c (while_break_request, while_continue_request): New
9113 (init_input_requests): Bind these to "break" and "continue".
9114 (while_depth, while_break_flag): New variables.
9115 (while_request): Update while_depth. Break out of loop if
9116 while_break_flag is set.
9118 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
9120 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
9123 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
9125 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
9127 * stringify: New file.
9128 * Makefile (groff.o): Use stringify.
9130 * xditview/tmac.X: Remove definition of \(rn.
9131 * xditview/libXdvi/DviChar.c: Remove radicalex from
9134 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
9136 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
9137 (alphabetic_block_entry::alphabetic_block_entry,
9138 alphabetic_block_entry::divert, alphabetic_block_entry::print):
9140 (block_entry::divert): Split off body into ...
9141 (block_entry::do_divert): If the block is alphabetic, subtract 2n
9142 from the line length; also update the span width to dl+2n, and the
9143 alphabetic span width to dl.
9145 * driver/input.c (do_file): While reading argument to D command,
9146 when expanding buffer, multiply szp by sizeof(int) rather than 2
9147 in the argument to memcpy.
9149 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
9150 width of alphabetic columns.
9152 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
9154 * troff/node.c (lookup_family): Supply second argument to lookup.
9156 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
9157 search, return immediately if v is 0.
9159 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
9160 (troff_output::start_picture): Set this reg.
9161 (troff_output::end_picture): Remove this reg
9162 * eqn/box.c (box::extra_space): Don't produce `\x's if
9163 EQN_NO_EXTRA_SPACE_REG is defined.
9165 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
9166 * eqn/text.c (split_text): Map ' to \(fm when it's the first
9169 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
9171 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
9174 * troff/div.c (top_level_diversion::top_level_diversion):
9175 Initialize page_number to 0.
9177 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
9179 * groff/troff (environment::environment(const environment *)):
9180 Initialize name to e->name, rather than "anonymous".
9182 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
9184 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
9185 requested_page. Split middle part into ...
9186 (FindPage): New function.
9187 (SetValues): If we don't yet know the last page, and the requested
9188 page is greater than the current page, call FindPage.
9189 Update the font_map_string before doing this.
9191 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
9192 Translate \(lh and \(rh into left and right double arrows.
9194 * troff/node.c (class hyphen_inhibitor_node): New class.
9195 (hyphen_inhibitor_node::hyphen_inhibitor_node,
9196 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
9197 hyphen_inhibitor_node::type,
9198 hyphen_inhibitor_node::get_hyphenation_type): New functions.
9199 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
9200 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
9203 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
9205 * troff/node.h (dummy_node::get_hyphenation_type,
9206 transparent_dummy_node::get_hyphenation_type): Declare them.
9207 * troff/node.c: (dummy_node::get_hyphenation_type,
9208 transparent_dummy_node::get_hyphenation_type): New functions.
9210 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
9212 * xditview/libXdvi/draw.c: If M_PI not defined after including
9213 math.h, then define it.
9215 * xditview/Makefile: Add definition of AR. Pass it to the submake
9217 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
9219 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
9221 * troff/dictionary.h (object_dictionary::alias): Declare return
9223 * troff/dictionary.c (object_dictionary::alias): Return non-zero
9224 if the old name was defined.
9225 * troff/input.c (alias_macro): Give a warning if the old name was
9227 * troff/reg.c (alias_reg): Likewise.
9229 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
9231 * troff/input.c (token::next): Delete implementation of \R.
9233 * macros/Makefile: Strip comments from tmac.e while installing it.
9235 * troff/input.c: New variable `nroff_mode'.
9236 (troff_request, nroff_request): New functions.
9237 (init_input_requests): Bind `troff' and `nroff' to troff_request
9239 (do_if_request): Compute results of t and n conditions from
9242 * text/text.c (split_text): Fix typo in >=.
9244 * eqn/lex.c: Add definition of `==' to def_table.
9246 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
9248 * pic/tex.c (tex_output::start_picture): Change the definitions of
9249 \graph and \graphtemp so that they work properly with Plain TeX.
9251 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
9252 argument to `ar' is not less than the first.
9254 * pic/pic.y: Allow a comma between elements of the variable list
9255 in the argument to `reset'.
9257 * pic/object.c (arc_object::arc_object): Fix computation of
9260 * eqn/main.c (main): Add exit(0).
9262 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
9264 * troff/div.c (begin_page): Test no_space_mode after doing the
9265 break, but still push the page ejector cookie before doing the
9266 break. Also set the next page number after doing the break.
9268 * xditview/xditview.c (NewFile): Don't set the title and icon name
9269 if this is the first file and its name is `-'.
9270 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
9271 the X75 and X100 devices.
9272 (main): If a device has the XT_OPTION flag set and there's exactly
9273 one file argument, pass the driver -xrm and -title options to set
9274 the icon name and window title to the name of the file.
9276 * troff/env.c (environment_switch): If there was an argument but
9277 it wasn't a valid number or name, then pop an environment but
9278 don't give an error message on underflow.
9280 * troff/number.c (start_number): Correct spelling in error message.
9282 * troff/input.c (token::delimiter): Don't print an error message
9285 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
9286 ParseDrawFunction if dw->display_enable is true.
9288 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
9290 * pic/pic.y: Parse text positioning like normal attributes, so as
9291 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
9292 positioning attribute.
9294 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
9296 * tbl/main.c (process_data): When in state START while reading a
9297 text block, don't change to state MIDDLE if c is a newline.
9299 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
9301 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
9302 so as to avoid shadowing parameter.
9304 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
9306 * tbl/table.c (trim_space): Deleted.
9307 (table::add_entry): Don't call trim_space.
9309 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
9311 * VERSION: Change version to 0.6.
9313 * troff/number.c (parse_expr): Make == work.
9315 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
9317 * man/grog.man: New file.
9318 * man/Makefile: Add grog.n to MAN1PAGES.
9319 * etc/grog.sh: New file.
9320 * etc/Makefile: Install grog.sh as grog.
9322 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
9324 * troff/input.c (token::next): Implement \E.
9326 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
9328 * xditview/tmac.X: Change font translations to match tmac.ps.
9330 * troff/input.c (non_empty_name_warning): Don't give a warning if
9331 `\{' terminates the name.
9333 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
9335 * ps/devps/symbol.diff: New file.
9336 * ps/devps/FontMakefile: Mention symbol.diff.
9338 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
9340 * troff/node.c (font_position): Use get_long_name to read the
9343 * troff/env.c (environment_switch): If we get a number that's < 0
9344 or >= NENVIRONMENTS, treat it like a name.
9345 Change NENVIRONMENTS to 10.
9347 * troff/groff.h: Remove definition of FONTS_MAX.
9348 * troff/node.h (class font_family): Make map a pointer instead of
9349 an array. Add a map_size member. Make it a class. Make nm const
9350 and public. Make invalidate_fontno a friend.
9351 * troff/node.c: Define font_table_size. Make font_info a pointer
9352 rather than an array.
9353 (class troff_output_file): Allocate font_position dynamically. Add
9354 nfont_positions member.
9355 (troff_output_file::set_font): Grow font_position if necessary.
9356 (troff_output_file::~troff_output_file): Delete font_position.
9357 (troff_output_file::troff_output_file): Allocate font_position.
9358 (grow_font_table): New function.
9359 (troff_output_file::really_begin_page,
9360 troff_output_file:really_copy_page): Use nfont_positions rather
9362 (mount_font_no_translate, mount_style): Call grow_font_table if
9364 (font_family::font_family): Allocate map.
9365 (font_family::make_definite): Grow map if necessary. Use
9366 font_table_size instead of FONTS_MAX.
9367 (font_family::~font_family): New function.
9368 (invalidate_fontno): Use font_family::map_size.
9369 (get_fontno, env_space_width, env_half_narrow_space_width,
9370 env_narrow_space_width, symbol_fotno, is_good_fontno,
9371 get_bold_fontno, make_glyph_node): Use font_table_size rather than
9373 (next_available_font_position): Never return 0.
9375 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
9377 * ps/tmac.ps: Add font translations for compatibility with dpost.
9379 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
9381 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
9382 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
9383 Move definitions baseline_sep, shift_down, column_sep,
9384 matrix_side_sep into...
9385 * eqn/box.c: Add them to param_table.
9386 * eqn/pbox.h: Add declarations to pbox.h.
9388 * troff/input.c (set_string): Cast value to unsigned char *.
9390 * troff/token.h (process_input_stack): Declare it static before
9391 declaring it a friend.
9393 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
9395 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
9397 * dvi/devdvi/EX: Regenerate.
9399 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
9402 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
9404 * eqn/lex.c: In defaults_table, make definition of `dot' call
9405 `dot_def'. Don't explicitly make it roman. Similarily for other
9408 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
9410 (for_input::get, for_input::peek): Use this.
9411 (do_for): Add by_is_multiplicative argument.
9412 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
9413 Change semantic value of optional_by to be a double plus a flag
9414 saying whethet the by clause is multiplicative.
9416 * eqn/lex.c (get_delimited_text): Remember location of start of
9417 definition. Improve error handling when EOF is encountered.
9419 * lib/font.h: Rename handle_x_command to
9420 handle_unknown_font_command.
9421 * lib/font.c (font::load): Call handle_unknown_font_command for
9422 any unknown command in the font description file. Don't call
9423 handle_x_command. Include the name of the command in the argv.
9424 Improve message for unknown command after kernpairs or charset
9426 * ps/ps.c (ps_font::handle_x_command): Rename to
9427 handle_unknown_font_command. Remove message about `x download'
9428 command. Give error message for wrong number of arguments.
9429 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
9430 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
9431 handle_unknown_font_command. Give an error message for wrong
9432 number of arguments. Rename design_size to designsize.
9433 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
9434 checksum', `designsize' instead of `design_size'.
9436 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
9438 * eqn/*.[chy]: Change underaccent to uaccent.
9440 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
9441 give it the same precedence as ACCENT.
9442 * eqn/other.c (make_underaccent_box): New function.
9443 * eqn/box.h: Declare it.
9444 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
9447 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
9449 * pic/pic.y (reset_all): New function. Called in rule for RESET.
9450 (parse_init): Call reset_all.
9451 (define_variable): When defining scale reset only those
9452 pre-defined variables that are scaled.
9453 (defaults_table): Add `scale' as non-scaled value.
9455 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
9456 together with the text; allow any number of positioning words;
9457 allow center as a positioning word.
9459 * pic/object.c (output::compute_scale): Get picture maximum height
9460 and width from variables called maxpswid and maxpsht.
9461 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
9463 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
9465 * pic/object.c (object_spec::make_text): Multiply textht by number
9468 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
9470 (do_sprintf): New function.
9471 (pic.gperf): Add sprintf token.
9472 (text, sprintf): New rules.
9474 * pic/pic.y: `rand()' with no arguments returns a random number
9477 * pic/pic.y: Allow a bare expression to be an attribute: change
9478 precedences to support this. Change optional_ordinal rule to
9479 optional_ordinal_last to avoid reduce/reduce conflict.
9480 * pic/object.c (object_spec::object_spec): Initialize direction.
9482 * pic/pic.y: Implement ^ operator meaning exponentiation.
9484 * troff/node.h: Add default argument to mount_font.
9485 * troff/node.c (font_position): Read an optional third argument
9486 giving the external_name.
9487 (mount_font): Add optional argument giving the external_name.
9488 (mount_font_not_translate): Have additional argument giving
9489 external name. Use this name to load the font. Pass both names
9490 to font_info::font_info.
9491 (font_info::font_info): Have additional argument giving
9493 (class tfont): New member external_name.
9494 (font_info::get_tfont): Use external name to construct tfont_spec.
9496 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
9498 * eqn/lex.c (init_table): Add argument giving device. Define
9499 name of device to be "1".
9500 (do_ifdef): Counts as true if the argument has been defined with
9502 * eqn/main.c (main): Call init_table with device argument. Make
9503 device local to main.
9504 * eqn/eqn.h: Change declaration of init_table. Remove declaration
9507 * pic/lex.c (get_delimited): Allow text to be delimited by
9508 matching {}s. Don't recognize ending delimiter within a string.
9510 * troff/input.c (get_delim_name): New function.
9511 (token::next): Implement \C.
9513 * lib/font.c (font::load): Grok ---. Add an alias for each
9514 character based on its code.
9515 (font::get_code_width): Deleted.
9516 * lib/font.h (class font): Declare font::number_to_index().
9517 Remove declaration of font::get_code_width.
9518 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
9519 to indices of named characters.
9520 (font::number_to_index): New function.
9521 * troff/input.c (font::number_to_index): New function.
9522 (get_charinfo_by_number, charinfo::get_number,
9523 charinfo::set_number): New functions.
9524 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
9525 (token::process, token::description, token::get_char,
9526 token::add_to_node_list, token::operator==): Handle
9527 TOKEN_NUMBERED_CHAR.
9528 * troff/charinfo.h: Declare get_charinfo_by_number,
9529 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
9531 (charinfo::numbered): New function.
9532 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
9533 * troff/env.h (class environment): Remove declaration of ...
9534 * troff/env.c (environment::make_numbered_char_node): Deleted.
9535 * troff/node.c (make_numbered_node): Deleted.
9536 (class numbered_glyph_node): Remove.
9537 (troff_output_file::put_char_width, troff_output_file::put_char):
9538 Handle numbered chars.
9539 (troff_output_file::numbered_char): Removed.
9540 (tfont::get_code_width): Removed.
9541 (make_glyph_node): Don't search special fonts for numbered
9543 * troff/node.h: Remove declaration of make_numbered_node.
9544 * driver/input.c (do_file): Handle N command.
9545 * driver/printer.h: Add declaration of ...
9546 * driver/printer.c (printer::set_numbered_char): New function.
9547 * dvi/tfmtodit.c (main): Generate unnamed entries.
9548 * ps/devps/afmtodit: Likewise.
9549 * xditview/xtotroff.c (MapFont): Likewise.
9550 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
9552 * tbl/main.c (process_format): If multiple widths are specified
9553 for a column but all the widths are the same, don't give an error
9556 * tbl/table.c (table::do_row): If the current row is all lines and
9557 the stuff doesn't contains a line, mark the top of the row after
9558 printing stuff before the row. If the current row is not all
9559 lines and the stuff doesn't contain a line, don't unnecessarily
9560 mark the top of the row before printing the stuff.
9562 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
9564 * troff/groff.h: Remove MAX_PATH.
9565 * troff/input.c (open_file): Dynamically allocate space for the
9567 (open_mac_file, process_macro_file): Corresponding changes.
9569 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
9571 * troff/node.h (class output_file): Make copy_file pure. Add
9572 vspace method ifdef COLUMN. Add is_printing method.
9573 * troff/node.c: Add class printing_reg. Add class
9574 real_output_file. Derive other output_file classes from
9575 real_output_file; in these classes rename begin_page to
9576 really_begin_page, print_line to really_print_line, copy_file to
9577 really_copy_file, transparent_char to really_transparent_char.
9578 Move output_file::flush to real_output_file. Add printing member
9579 to class output_file.
9580 * troff/div.h: Remove printing member from top_level_diversion.
9581 Add vspace member function to class diversion ifdef COLUMN. Add
9582 some declarations ifdef COLUMN.
9583 * troff/div.c (top_level_diversion::copy_file,
9584 top_level_diversion::transparent_output,
9585 top_level_diversion::output): Don't test printing member before
9587 * troff/input.c: Handle initial variable_space_request ifdef
9589 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
9592 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
9594 * troff/div.c (diversion::need): Make any space forced. If we
9595 sprung a trap, set truncated_space to minus the distance to the
9596 trap and set needed_space to the amount that was needed.
9597 (top_level_diversion::space): A forced space turns no_space_mode
9599 (class constant_vunits_reg): New class.
9600 (init_div_requests): Implement number registers .trunc and .ne
9601 using constant_vunits_reg.
9602 (class truncated_space_reg): Deleted.
9604 * troff/div.h: Don't have a no_space_mode member in diversion.
9605 Instead have it in top_level_diversion.
9606 * troff/div.c (diversion::diversion): Don't initialize
9608 (top_level_diversion::top_level_diversion): Initialize
9610 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
9611 (macro_diversion::output): Don't clear no_space_mode.
9613 * troff/input.c (diverted_space_node::reread): Don't call
9614 environment::do_break. In fill mode, act like a blank line.
9615 (diverted_copy_file_node::reread): Don't call
9616 environment::do_break.
9618 * troff/div.c (blank_line): New function.
9619 * troff/div.h: Declare it.
9620 * troff/input.c (process_input_stack): Call it.
9622 * troff/div.c (truncated_space_reg::get_string): New function.
9623 (init_div_requests): Bind to .trunc.
9624 (space_request, top_level_diversion::space,
9625 top_level_diversion::output, macro_diversion::space,
9626 macro_diversion::output): Update truncated_space.
9627 (macro_diversion::output): Redo calculations when trap sprung.
9628 (macro_diversion::output, macro_diversion::space): No need for
9631 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
9632 after truncating post line spacing.
9634 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
9636 * ps/devps/prologue (MF, SF): Make them work even if setfont is
9637 defined as a procedure rather than as an operator.
9639 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
9641 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
9643 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
9645 * troff/div.c (top_level_diversion::output): Merge
9646 output_file::print_line and output_file::end_of_line member
9648 * troff/div.h (class output_file):
9649 * troff/node.c (troff_output_file::print_line,
9650 troff_output_file::end_of_line, output_file::end_of_line,
9651 ascii_output_file::print_line, suppress_output_file::print_line):
9652 Corresponding changes.
9654 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
9656 * troff/input.c (token::next): Don't give a warning for `\.'.
9658 * troff/env.c (environment::get_center_lines): New function.
9659 (init_env_requests): Bind number register .ce to it.
9660 * troff/env.h: Declare it.
9661 * tbl/table.c (table::init_output): Define reset macro to restore
9662 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
9664 (table::print): If center option not given, then imply center
9665 option if SAVED_CENTER_REG > 0.
9667 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
9669 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
9670 Troff.ps from DOWNLOAD.
9672 * troff/Makefile: Change comment in DEFINES to avoid confusing
9675 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
9676 code. Don't try to catch errors with stopped.
9677 (check_line_lengths): New function.
9678 * ps/devps/prologue (EXEC): Deleted.
9679 (EBEGIN, EEND): New procedures.
9681 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
9683 * troff/input.c: Include request.h before node.h.
9684 * troff/node.c: Likewise.
9685 * troff/env.c: Likewise.
9686 * troff/div.c: Likewise.
9687 * troff/node.h (class special_node): Store argument as a macro
9688 rather than a char *.
9689 * troff/node.c (special_node::special_node, special_node::copy):
9691 (special_node::~special_node): Deleted.
9692 (special_node::tprint): Deleted.
9693 (special_node::tprint_start, special_node::tprint_end,
9694 special_node::tprint_char): New functions.
9695 (troff_output_file::special): Deleted.
9696 (troff_output_file::start_special, troff_output_file::end_special,
9697 troff_output_file::special_char): New functions.
9698 * troff/input.c (special_node::tprint): New function.
9699 (do_special): Use macro not char *.
9700 (do_transparent_macro): Deleted.
9701 (token::next): Don't call do_transparent_macro.
9703 * troff/input.c (token::next): Add 'Y' case.
9704 (do_transparent_macro): New function.
9705 * troff/node.c (troff_output_file::special): Handle newlines with
9706 argument using new continuation convention.
9707 * driver/input.c (get_string): Cope with continuation convention.
9708 (do_file): Don't call skip_line after calling get_string(1).
9709 * ps/ps.c (ps_printer::special, ps_printer::do_import,
9710 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
9712 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
9715 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
9717 * troff/input.c (asciify): By default, illegal input characters
9718 should return empty string.
9720 * troff/input.c (copy_file): Handle first page transition like title.
9721 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
9723 * troff/input.c (token::next): Improve error message for EOF after
9725 (input_char_description): New function.
9726 (get_char_for_escape_name): Use input_char_description.
9727 (token::next): Warn about unrecognized escape sequences.
9728 (warning_table): Add WARN_ESCAPE.
9729 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
9732 * troff/token.h: Remove declaration of process_input_stack.
9734 * troff/input.c: Remove declaration of init_hyphen_requests.
9735 * troff/request.h: Correct spelling in declaration of same.
9737 * troff/input.c (token::next): Check whether escape_char is 0.
9739 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
9741 * groff.c (main, usage, help): Implement -P and -L options.
9742 * groff.sh: Likewise.
9744 * troff/input.c (token::next): Use some gotos to avoid code
9747 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
9748 Avoid calling symbol::symbol if name empty.
9750 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
9752 * troff/input.c (init_input_requests): Make \n(.x return the major
9753 version number and \n(.y return the minor version number.
9754 * troff/Makefile: Construct file majorminor.c defining
9755 major_version and minor_version automatically from ../VERSION.
9757 * troff/node.c (class glyph_node): Make operator new and operator
9759 (class ligature_node): Similarily.
9761 * troff/input.c (operator==(const macro &, const macro &)): New
9763 (non_interpreted_node::same): Use this.
9764 (string_iterator::string_iterator): Make macro& argument const.
9766 * troff/input.c (input_iterator::get): New function. Don't make
9767 asciify_macro or class non_interpreted_node friends of class
9769 (non_interpreted_node::interpret): Use input_iterator::get.
9770 (asciify_macro): Likewise.
9772 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
9773 ~non_interpreted_node): Deleted.
9774 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
9777 * troff/symbol.h: Make all symbol member functions const.
9779 * lib/strtol.c: New file.
9780 * lib/Makefile: Add strtol.c.
9781 * Makefile: Define STRTOL as strtol.o to include strtol in
9784 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
9786 * pic/troff.c (troff_output::simple_circle): Divide by scale.
9788 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
9790 * troff/input.c (do_special): Use input_level.
9792 * troff/token.h (TOKEN_BACKSPACE): New token.
9793 (token::backspace): New function.
9794 * troff/input.c (token::description, token::next, token::process):
9795 Grok TOKEN_BACKSPACE.
9796 (do_special): Turn TOKEN_BACKSPACE back into \b.
9798 * troff/token.h (token::leader): New function.
9799 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
9801 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
9803 * troff/input.c (do_special): Use token::description in error
9806 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
9808 * troff/input.c (decode_args): Combine quoted and
9809 quote_input_level variables. Make it a for (;;) loop.
9811 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
9813 * troff/input.c (read_long_escape_name): The test for whether to
9814 expand buffer was off by 1.
9815 (read_string): Similarily.
9817 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
9819 * troff/input.c: Use `const int' rather than `static const int'.
9821 * troff/div.h (diversion::copy_file): Declare as pure virtual.
9822 (macro_diversion::copy_file): New function.
9823 * troff/node.h: New class diverted_copy_file_node.
9824 * troff/node.c: Implement it.
9825 * troff/input.c (copy_file): Use diversion::copy_file. Handle
9826 first page transition by pushing a diverted_copy_file_node.
9827 * troff/input.c (token::next, process_input_stack): Don't handle
9830 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
9832 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
9833 whether space widths need adjusting.
9835 * troff/charinfo.h: Generalize translated_to_space to
9836 special_translation so as to allow translation to \&.
9837 * troff/input.c (translate): Allow translation to \&.
9838 (charinfo::*): Corresponding changes.
9839 * troff/node.c (make_node, node::add_char): Corresponding changes.
9840 * troff/node.h (dummy_node::dummy_node): Allow optional first
9843 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
9844 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
9846 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
9847 TOKEN_REQUEST with an argument of TITLE_REQUEST.
9848 (token::process): Grok that.
9849 * troff/input.c (copy_file): Handle first page transition like
9850 title by pushing a COPY_FILE_REQUEST cookie.
9851 (token::next, process_input_stack): Grok that.
9852 * troff/node.h (output_file::copy_file): Add x and y arguments.
9854 * troff/div.c (top_level_diversion::copy_file): Supply them.
9855 * troff/node.c (troff_output_file::copy_file): Add x and y
9856 arguments; moveto specified position. Invalidate font_position
9857 array after copying file.
9858 (output_file::copy_file): New function.
9859 (suppressed_output_file::copy_file, ascii_output::copy_file):
9861 * troff/input.c (transparent_file): New function.
9862 (init_input_requests): Bind to "trf".
9863 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
9864 (process_input_stack): Likewise.
9866 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
9868 * troff/node.c (init_node_requests): New number registers .kern
9869 pointing to global_kern_mode, and .lg pointing to
9870 global_ligature_mode.
9872 * troff/node.c (ligature): Don't change it if we get a bad
9875 * troff/input.c (do_define_string): Don't strip tabs.
9877 * troff/input.c (asciify_macro): Make the string_iterator auto.
9879 * troff/node.c (init_font_requests): Rename to...
9880 (init_node_requests):
9881 * troff/node.h: Change declaration.
9882 * troff/input.c (main): Change call.
9884 * troff/input.c (node::reread, diverted_space_node::reread): New
9886 (process_input_stack): Call reread rather than
9887 get_diverted_space_node.
9888 * troff/node.c (node::get_diverted_space_node,
9889 diverted_space_node::get_diverted_space_node): Removed.
9890 * troff/node.h: Declare reread methods instead of
9891 get_diverted_space_node methods. Make `n' member private.
9892 * troff/input.c: (token::diverted_space): Removed.
9893 * troff/token.h: Removed declaration.
9896 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
9898 * eqn/script.c (script_box::compute_metrics): Don't let
9899 SUP_RAISE_FORMAT become negative.
9901 * tbl/table.c (table::do_row): Entries that don't end in the
9902 this row shouldn't make the row non-blank.
9904 * tbl/table.c (table::make_columns_equal): Only set the width of
9905 columns which are marked as equal.
9907 * tbl/main.c (process_data): Before issuing excess data error,
9908 if last character was a newline unget it; then get it again after
9909 the error. Also include the contents of the entry in the message.
9911 * groff.c: New file.
9912 * Makefile: Build groff from groff.c. Make it possible to use
9913 either groff.sh or groff.c as groff.
9914 * Makefile.bd: Similarily.
9916 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
9918 * groff.sh: Don't delay expansion of $@ in assignment to files.
9919 Remove occurrences of \".
9921 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
9923 * all Makefiles: Simplify and rearrange.
9925 * Makefile: Handle fmod like malloc.
9926 * lib/Makefile: Similarily.
9927 * lib/fmod.c: Remove #ifdef NEED_FMOD.
9929 * Makefile: Rename OPTIMISE to OPTIMIZE.
9931 * groff.sh: Remove assignment to PATH.
9932 * Makefile: Remove SHPATH variable.
9933 * Makefile.bd: Similarily.
9935 * groff.sh: Add -V option to print the pipeline instead of
9938 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
9940 * lib/font.c: Split off file searching into ...
9941 * lib/fontfile.c: New file.
9943 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
9945 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
9947 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
9948 Also change misleading comment.
9949 (table::do_vspan): Change similarily misleading comment.
9950 * tbl/main.c (process_data): A format row with an explicit `s'
9951 uses up a data line, even if all the other columns are `_' or `='.
9953 * troff/input.c (token::description): Fix description of
9954 TOKEN_DUMMY and TOKEN_EMPTY.
9956 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
9958 * groff.sh: Fix description of -Z in help message.
9960 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
9962 * pic/object.c (object_spec::make_object): Allow negative and zero
9964 * pic/pic.y: Give linethick default value of -1.0.
9965 * pic/troff.c (troff_output::troff_output): Initialize
9966 last_line_thickness to BAD_THICKNESS.
9967 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
9968 (troff_output::line_thickness): Canonicalize negative thicknesses
9969 to RELATIVE_THICKNESS.
9970 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
9971 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
9973 (tex_output::start_picture): Set pen_size to -2.0.
9975 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
9976 0, then use 0 linewidth.
9977 (ps_printer::ps_printer): Initialize line_thickness to -1.
9979 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
9981 * ps/devps/symbolchars: Remove `or'.
9982 * ps/tmac.ps: Implement \(or with .char.
9984 * ps/devps/symbolchars: Move most characters into textmap.
9985 * ps/devps/textmap: Add names for troff bracket characters. Remove
9988 * ps/devps/TSymbol.ps: Removed.
9989 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
9990 * ps/tmac.ps: Do with .char what TSymbol did.
9991 * ps/devps/download: Remove TSymbol.
9993 * ps/devps/T: Removed.
9994 * ps/devps/Troff.ps: Removed.
9995 * ps/devps/Troff.afm: Removed.
9996 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
9997 * ps/devps/download: Remove Troff.
9998 * ps/devps/FontMakefile: Remove T target.
9999 * ps/devps/DESC-A4: Remove T from font list.
10000 * ps/devps/DESC-letter: Likewise.
10002 * troff/input.c (macro_to_node): Rename to ...
10003 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
10004 character's definition while processing it.
10005 * troff/node.c (node::add_char, make_node): Change calls to
10006 macro_to_node accordingly.
10008 * troff/input.c (token::next): Translate \_ to \(ul.
10010 * tty/devascii/R.proto: Add `|'.
10011 * tty/devlatin1/R.proto: Likewise.
10013 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
10015 * man: Put the version number in all the man pages.
10017 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
10019 * Makefile.bd: New file.
10020 * README.bd: New file.
10022 * VERSION: New file.
10023 * lib/version.c: Removed.
10024 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
10027 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
10028 environment variable.
10030 * all Makefiles: Split install target into install.bin for
10031 binaries, and install.nobin for everything else.
10032 * Makefile: Add bindist target.
10034 * man/afmtodit.man: New file.
10035 * man/Makefile: Add afmtodit.n to MAN1PAGES.
10036 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
10038 * ps/Makefile: Pass BINDIR to make install in devps.
10040 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
10041 the space character.
10043 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
10045 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
10047 * ps/ps.c: Redo font downloading.
10048 * ps/devps/download: New file.
10049 * ps/devps/Makefile: Add download to DEVICEFILES.
10050 * ps/devps/afmtodit: Remove -d option.
10051 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
10052 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
10053 * ps/devps/zapfdr.ps: Likewise.
10054 * ps/devps/TSymbol.ps: Likewise.
10056 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
10058 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
10060 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
10062 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
10063 then strip the first line if it starts with %.
10064 * Makefile: Add a comment about this.
10066 * man/tfmtodit.man: New file.
10067 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
10068 * dvi/Makefile: Install tfmtodit in BINDIR.
10070 * dvi/tfmtodit.c (usage): Mention -v option.
10072 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
10074 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
10075 * troff/node.c (troff_output_file::transparent_char): Don't call
10078 * eqn: Add check_tabs method to most box classes.
10079 * eqn/box.c (box::top_level): Call check_tabs.
10081 * eqn/script.c (script_box::output): Use \Z.
10082 * eqn/limit.c (limit_box::output): Use \Z.
10084 * eqn/box.c (box::top_level): Use itoa.
10086 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
10088 * dvi/tmac.dvi: Add font translations for CR, C, TT.
10089 * dvi/devdvi/Makefile: Don't make links to CW.
10091 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
10093 * xditview/tmac.X: Likewise.
10095 * troff/node.c: Add font translation feature.
10096 (get_font_translation): New function.
10097 (symbol_fontno): Translate the font name.
10098 (mount_font_no_translate): Rename to mount_font to this.
10099 (mount_font): New function.
10100 (font_family::make_definite): Call mount_font_no_translate instead
10102 (mount_style): Translate the font name.
10103 (font_translate): New function.
10104 (init_font_requests): Bind "ftr" to font_translate.
10106 * ps/devps/prologue (SN): New procedure that rounds a position to
10107 the nearest (pixel + (.25,.25)).
10108 (DL): Use SN to round endpoints.
10110 * lib/version.c: Changed version to 0.5.
10112 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
10114 * Makefile: Move definition of PAGE to the very beginning, so that
10115 people are less likely to miss it.
10117 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
10119 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
10121 * troff/env.c (environment::choose_breakpoint): Make `can't find
10122 breakpoint' error a warning of type WARN_BREAK. Change message to
10123 `can't break line'.
10124 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
10126 * troff/input.c: Add WARN_BREAK to warning_table. Include
10127 WARN_BREAK in DEFAULT_WARNING_MASK.
10129 * tty/tmac.tty: Add definition of \(+-.
10131 * groff.sh: Remove `--' option to set command.
10133 * dvi/devdvi/texsy.map: Remove duplicate md entry.
10135 * ps/devps/eqnchar: Better definition of cdot using md.
10136 * dvi/devdvi/eqnchar: Likewise.
10137 * xditview/devX100/eqnchar: Likewise.
10138 * xditview/devX75/eqnchar: Likewise.
10139 * eqn/lex.c: Add definition of cdot.
10141 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
10143 * troff/input.c (get_optional_char): New function.
10144 * troff/input.c (set_page_character): Use get_optional_char(),
10145 rather than has_arg() and tok.get_char(1).
10146 * troff/env.c (tab_character, leader_character, hyphen_char,
10147 field_characters): Likewise.
10148 (margin_character): Likewise. Also always delete the
10149 margin_character_node.
10151 * troff/input.c (token::get_char): Use token::description.
10153 * troff/input.c (has_arg): Don't skip over tab and \}.
10154 * troff/number.c (start_number): Give a warning if the number
10155 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
10157 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
10159 * troff/input.c (empty_name_warning, non_empty_name_warning): New
10161 (get_name, get_long_name): Use these. Rename `warn' argument to
10164 * troff/node.c (get_fontno): Test that the symbol is not null.
10166 * troff/input.c (token::description): New function.
10167 * troff/number.c (parse_term): Use token::description in `numeric
10168 expression expected' message.
10169 * troff/groff.h: Add WARN_MISSING.
10170 * troff/number.c (start_number): New function.
10171 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
10172 get_incr_number): Use start_number().
10173 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
10175 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
10176 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
10178 * troff/input.c (token::get_char): Use WARN_MISSING.
10179 * troff/input.c (token::delimiter): Use token::description.
10180 * troff/env.c (environment_switch): Back out Aug 3 change.
10181 * troff/input.c (has_arg): Skip over \}s and tabs but give a
10183 * troff/token.h (token::tab): New function.
10184 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
10185 * troff/reg.c (alter_format): Likewise.
10186 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
10188 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
10190 * troff (most files): Redo warnings. Divide warnings into various
10191 categories; warning() has an additional first argument indicating
10192 the category it falls into.
10193 * troff/input.c (main): -w now takes an argument. New option -W.
10194 (enable_warning, disable_warning): New functions.
10196 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
10197 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
10199 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
10201 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
10202 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
10203 * xditview/devX75/eqnchar: Likewise.
10204 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
10206 * eqn/other.c: When bar or over applies to a single character
10207 don't produce an overline_box or an underline_box. Instead produce
10208 an accent_box or an underaccent_box, with the accent a line
10209 whose width is accent_width. New classes underaccent_box,
10210 overline_char_box and underline_char_box.
10211 * eqn/box.h: Move overline_box, underline_box, accent_box class
10212 declarations into eqn/other.c. Add declarations of
10213 make_underline_box, make_overline_box, make_accent_box.
10214 * eqn/eqn.y: Call make_overline_box, make_underline_box
10215 make_accent_box instead of constructors.
10216 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
10218 * eqn/other.c: Add accent_box::~accent_box.
10219 * eqn/box.h: Declare it.
10221 * groff.sh: With -Tps, use eqn -D.
10223 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
10225 (underline_box::output): Similarily.
10226 (accent_box::output): Use \Z.
10228 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
10231 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
10233 * troff/div.c (top_level_diversion::transparent_output(unsigned
10234 char)): Use asciify.
10235 * troff/input.c (asciify): Don't make it static.
10236 * troff/token.h (asciify): Declare it.
10238 * troff/input.c (get_name, get_long_name, token::get_char,
10239 token::delimiter): Add an extra default argument which says
10240 whether a warning should be printed.
10241 * troff: Pass a non-zero argument to one of these rather than
10242 printing a warning directly.
10244 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
10246 * troff: Consistently use symbol::is_null.
10248 * troff/dictionary.h: Move some inline functions into
10251 * troff/request.h: Move inline functions into input.c.
10252 (request_or_macro::invoke): Make it pure.
10254 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
10255 * troff/input.c (init_input_requests): Use class constant_int_reg.
10256 (class compatible_reg): Deleted.
10257 * troff/div.c (init_div_requests): Use class constant_int_reg.
10258 (class last_post_line_extra_space_reg): Deleted.
10260 * troff/env.c (tab_character): Don't change the tab character if
10261 we get an invalid argument.
10262 (hyphen_char): Similarily.
10264 * troff/reg.c (alter_format): Check that nm is not null.
10266 * Makefile, groff.sh: Make it possible to customize the commands
10267 used for printing PostScript and dvi files. Also make it possible
10268 to customize the path used by groff.sh.
10270 * eqn/eqn.y: Make `left' right associative.
10272 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
10274 * pic/pic.h: Added definition of M_SQRT2 for those systems that
10277 * pic/pic.h: Removed definition of INT_MAX.
10279 * troff/node.c (italic_corrected_node::vertical_extent): Omit
10282 * troff/input.c (token::next): Handle \R like \n.
10284 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
10286 * ps/tmac.pc (PSPIC): Simplify.
10288 * troff/env.c (tab_stops::to_string):
10289 * pic/pic.y (object_type_name):
10290 * pic/troff.c (simple_output::line):
10291 * pic/tex.c (tex_output::spline):
10292 * pic/object.c (object_spec::make_object):
10293 * tbl/main.c (process_data): Add cases to switch statements to
10294 avoid cfront warnings. (Some of these are spurious, since the
10295 switch already has a default case.)
10297 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
10298 `ps-'. Don't test systat; instead check number of arguments to
10301 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
10303 * macros/tmac.e: Do not decrease the page offset by 0.5i.
10305 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
10306 Unlink the file as soon as we have opened it, so that we don't
10307 have to bother with signal handlers.
10308 (handler): Deleted.
10309 (fatal_error_exit): Deleted.
10310 (main): Don't call signal.
10312 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
10314 * dvi/devdvi/Makefile: Use the -k option with S and MI.
10316 * pic/pic.y: If there is a label, or an nth construction before
10317 the first `.' in the argument to `with', ignore it and generate a
10319 * pic/lex.c (lex_warning): New function.
10321 * tbl/table.c (table::init_output): In section keep and release
10322 macro, use 0 indent when diverting and the correct indent when
10325 * troff/input.c (interpolate_number_format): Do not interpolate
10326 anything if the number register is not defined.
10328 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
10330 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
10332 * ps/devps/prologue (PICTURE): Set components of graphics state to
10333 their default values.
10335 * ps/devps/text.enc: Add trademark
10336 * ps/devps/textmap: Add names for club, spade, heart, diamond,
10337 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
10338 * ps/devps/symbolchars: Add names for summation and product.
10340 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
10341 suchthat. Add pp. Add upper-case letters.
10343 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
10344 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
10347 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
10348 rA (right angle bracket) to ra. Introduce names for double-headed
10349 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
10350 * ps/devps/textmap: Likewise for ps device.
10351 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
10352 * tty/devascii/R.proto: Rename lA to la and rA to ra.
10353 * tty/devascii/R.proto: Likewise.
10354 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
10356 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
10358 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
10360 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
10363 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
10365 * troff/div.c (when_request): Use symbol::is_null rather than
10366 has_arg to determine whether we have an argument.
10367 (change_trap): Remove the trap if we get an invalid number. Give
10368 an error if we don't get at least the macro name.
10369 (diversion_trap): Remove trap if we get an invalid name or number.
10371 * troff/env.c (environment_switch): Pop if we get an invalid
10372 symbol or numeric expression.
10374 * troff/input.c (do_define_macro): If EOF is encoutered while
10375 defining the macro, do tok.next() before returning.
10377 * troff/token.h (has_arg): Move definition from here, to ...
10378 * troff/input.c (has_arg): ... here
10380 * troff/env.c (space_size): Do nothing if we get an invalid argument.
10381 * troff/input.c (shift): Likewise.
10383 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
10386 * pic/troff.c (troff_output::start_picture): Comment out calls to
10389 * eqn/main.c (do_file): Subtract 1 from current_lineno if
10390 interpret_lf_args succeeds.
10392 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
10393 \\. This avoids problems with \$N.
10395 * groff.sh: Pass -C to preprocessors.
10397 * lib/lf.c (interpret_lf_args): Be more flexible.
10399 * tbl/main.c (main): Add -C option.
10400 (table_input::get): Do not recognize TE if followed by character
10401 other than a space or newline unless -C option given.
10402 (process_input_file): Likewise for lf, TS.
10403 (process_data): Likewise for lf in text blocks.
10405 * eqn/main.c (main): Add -C option.
10406 (do_file): Don't recognize EQ, EN or lf if followed by character
10407 other than space or newline unless -C option given.
10408 * eqn/lex.c (file_input::read_line): Similarily.
10409 * eqn/eqn.h: Declare compatible_flag.
10411 * etc/soelim.c (main): Add -C option.
10412 (interpret_lf_args): Use version in libgroff.
10415 * pic/main.c (main): Add -C option, which sets compatible_flag.
10416 (top_input::get), (top_input::peek): If -C option not given,
10417 do not recognize .PS/.PE/.PF/.lf if followed by a character
10418 other than space or newline.
10419 * pic/lex.c (file_input::read_line): Similarily.
10420 * pic/pic.h: Add declaration of compatible_flag.
10422 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
10424 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
10426 * troff/node.c, troff/node.h: Add `asciify' methods to classes
10427 derived from node. New class space_char_hmotion_node.
10428 * troff/input.c (asciify_macro): New function.
10429 * troff/input.c (init_input_requests): New request `asciify' bound
10431 * macros/mm.diff: New file.
10432 * Makefile: In install.mm target use `patch' to apply
10435 * troff/input.c (macro::print_size): Just print the size in bytes.
10437 * troff/div.c (return_request): Correct the argument
10440 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
10442 * troff/node.h (class composite_node): Add sz member.
10443 * troff/node.c (composite_node::size): Return sz.
10444 * troff/input.c (macro_to_node): Use the initial size in the
10445 environment as the size of the composite_node.
10447 * troff/node.c (node::zero_width_tprint): Provide a reasonable
10450 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
10452 * troff/div.c (change_trap): If we get a bad number expression,
10455 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
10457 * lib/matherr.c (matherr): Define this only if math.h defines
10460 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
10462 * troff/div.c (macro_diversion::distance_to_next_trap): If there
10463 no diversion trap return vunits(INT_MAX - vresolution).
10465 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
10467 * troff/input.c (do_zero_width): New implementation that doesn't
10468 use a temporary environment. Use instead:
10469 (token::add_to_node_list): New function.
10470 * troff/env.c (environment::get_prev_char_height),
10471 (environment::get_prev_char_height),
10472 (environment::get_prev_char_skew): New functions.
10473 (environment::get_prev_char): New function.
10474 (environment::get_prev_char_width): Change to use get_prev_char.
10475 (init_env_request): Implement new registers .cht, .cdp, .csk.
10476 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
10477 \Z being processed in a separate environment.
10479 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
10481 * tbl/table.c: Removed TABLE_BOTTOM_REG.
10483 * tbl/table.c (table::init_output): In the section release macro,
10484 give a warning message if the section won't fit on one page.
10486 * tbl/table.c (table::do_top): Emit table keep only if table is
10488 (table::do_bottom): Likewise for table release.
10489 (table::table), (table::add_vertical_rule): Remove reference to
10491 * tbl/table.h: Remove keep member.
10493 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
10494 SECTION_RELEASE_MACRO, if there's not enough space before the next
10495 trap to output the diversion, call T# ourselves, set
10496 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
10497 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
10498 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
10499 vertical position and return to it before turning traps on again.
10501 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
10503 * troff/node.c, troff/node.h: In classes derived from node,
10504 replace prev_char_width method by last_char_node method.
10505 * troff/env.c (environment::get_prev_char_width): Use
10506 node::last_char_node rather than node::get_prev_char_width.
10508 * Makefile: Added comment about -fno-inline on 68030-based
10511 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
10512 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
10513 expressions using sizeof to int.
10514 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
10516 * macros/tmac.e (TS): Don't move @f back past the current
10519 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
10521 * ps/ps.c (main): Buffer stderr.
10522 * dvi/dvi.c (main): Likewise.
10523 * tty/tty.c (main): Likewise.
10525 * ps/ps.c (ps_printer::do_import): Improve error handling.
10527 * troff/input.c (abort_request): Use asciify.
10529 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
10530 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
10531 type of first argument int rather than char. This works around a
10532 bug on the 68030 based Apollo using g++ 1.37.1.
10534 * tbl/table.h (class table): Add `keep' member.
10535 * tbl/table.c (table::table): Initialize `keep'.
10536 (table::add_vertical_rule): Set `keep' to 1.
10537 (table::do_top): Only emit table keep macro is `keep' is non-zero.
10538 (table::do_bottom): Likewise for table release macro.
10539 (table::do_row): Emit section keep macro even if the row is 0.
10541 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
10543 * macros/tmac.e (@C): Preserve the font family across the change
10546 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
10548 * lib/font.c: Initialize font::hor and font::vert to 1.
10549 (font::load_desc): Check the values of font::hor and font::vert.
10551 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
10552 be included in a C compilation.
10553 (iftoa): Use INT_DIGITS. Include lib.h.
10555 (as_string): Likewise.
10556 * tbl/table.c: Removed definition of INT_DIGITS.
10557 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
10558 * troff/input.c (input_input_requests): Likewise.
10559 * ps/ps.c (make_encoding_name): Likewise.
10560 (ps_printer::set_style): Likewise.
10561 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
10563 * tty/devascii/R.proto: Map fm onto '.
10564 * tty/devlatin1/R.proto: Likewise.
10566 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
10568 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
10569 argument to \w is at a different input level.
10571 * tbl/table.c (table::init_output): Define a new macro
10572 REPEATED_VPT_MACRO, like vpt but if in a diversion also
10573 transparently outputs itself.
10574 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
10576 (table::do_row): Likewise.
10578 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
10579 TRANSPARENT_STRING_NAME.
10581 * tbl/table.c (table::init_output): In the table release macro
10582 print an error message and don't produce any output if after
10583 issuing the need request the table still will not fit. Also
10584 remove the diversion after bringing it back.
10586 * tbl/table.c (table::init_output): Define a new macro
10587 REPEATED_MARK_MACRO, like mk but if in a diversion also
10588 transparently outputs itself.
10589 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
10590 is necessary because .TH might not call .T#.
10591 (table::do_top): Likewise TOP_REG.
10592 (table::define_bottom_macro): If TOP_REG is no longer valid, use
10593 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
10594 table header might contain just the two top rules.
10596 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
10598 * troff/div.c: Implement new request `ptr' to print all traps.
10600 * troff/env.c (init_env_requests): Implement `.tabs' reg with
10601 init_string_env_reg.
10602 * troff/env.c (class tab_reg): Deleted.
10604 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
10606 * troff/div.c: New number register .pn returns the number of the
10607 next page as set by the pn request.
10609 * macros/tmac.an: Redid headers and footers. Number each manual
10610 entry starting from 1 unless \nC is > 0, like Sun. Added an
10611 optional 5th argument to .TH which specifies the manual name and
10612 appears in the center of the header. Understand the X, P and D
10613 registers like Sun.
10615 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
10617 * troff/env.c (init_env_requests): New number register `.lt' to
10618 return the title length.
10620 * troff/node.h (class transparent_dummy_node): New class.
10621 * troff/node.c (class transparent_dummy_node): Provide member
10623 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
10626 * troff/input.c (token::next): New escape sequence \).
10627 * troff/input.c (get_copy): Recognize \) in copy mode.
10629 * troff/input.c (input_stack::clear): New function.
10630 * troff/input.c (exit_request): Use input_stack::clear.
10632 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
10633 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
10635 * troff/env.c: Move set_page_character to input.c. Move
10636 page_character to input.c also.
10637 * troff/env.c (title): Split off the reading of the parts of the
10638 title into read_title_parts.
10639 * troff/input.c (read_title_parts): New function. Check the
10640 input_level when testing whether a token matches the delimiter.
10642 * troff/input.c (exit_request): New function.
10643 * troff/input.c (init_input_requests): Bind ex request to
10644 exit_request rather than exit_groff.
10646 * troff/input.c (exit_groff): Call tok.next() before
10647 process_input_stack().
10649 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
10651 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
10652 * troff/env.h: ditto.
10653 * troff/input.c: ditto.
10655 * troff/env.c (environment::is_empty): Test pending_lines.
10657 * troff/env.c (environment::have_pending_lines): Removed.
10659 * troff/input.c: Add request to flush pending lines from the
10662 * troff/env.c, troff/env.h: Add automatic widow control feature.
10664 * troff/input.c (exit_groff): Do process_input_stack() after
10665 do_break() but before setting exit_flag to 2.
10667 * troff/input.c: Remove FLUSH_PENDING_LINES and
10668 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
10669 environment after END_TRAP token seen, but only if there aren't
10670 any more traps still unfinished.
10671 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
10673 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
10675 * troff/env.c: Rename the `retain_size' member of class
10676 pending_output_line to `no_fill'.
10678 * troff/env.c (title): When the line is output, make the
10679 retain_size argument !fill.
10681 * troff/node.h: Add `hyphenated' member to struct breakpoint.
10682 * troff/node.c (space_node::get_breakpoints),
10683 (dbreak_node::get_breakpoints): Fill this in.
10684 * troff/env.c: Allow specification of maximum number of
10685 consecutive hyphenated lines.
10687 * troff/env.c (environment::is_empty): Add test for !current_tab.
10689 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
10691 * troff/env.c (environment::hyphenate_line): Don't completely give
10692 up if the word is not to be hyphenated; continue so that breaks
10693 can be made at break_char_node's.
10695 * lib/lib.h: Only define INT_MAX if it's not already defined;
10696 undef INT_MIN if it's already defined.
10698 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
10700 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
10701 This works around a bug in AT&T C++ 2.0 used with an ANSI C
10704 * macros/tmac.an (an-header): Set no-space mode.
10706 * macros/tmac.an (TH): Start a new page if necessary.
10708 * Started using ChangeLog at version 0.4.
10711 version-control: never