1 2001-01-13 Gaius Mulley <gaius@glam.ac.uk>
3 * doc/pic.ms: Fix typos.
5 2001-01-12 Werner LEMBERG <wl@gnu.org>
7 * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
9 2001-01-10 Werner LEMBERG <wl@gnu.org>
11 * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
15 2001-01-09 Bernd Warken <bwarken@mayn.de>
17 * man/groff_out.man: Revised.
18 * man/roff.man: Minor fixes.
19 * src/roff/troff/troff.man: Some reordering.
21 2002-01-09 Werner LEMBERG <wl@gnu.org>
23 * tmac/an-old.tmac: Add dummy macros for equation support.
25 2002-01-07 Werner LEMBERG <wl@gnu.org>
27 doc/groff.texinfo: Fix documentation of glyph searching algorithm.
29 * tmac/an-old.tmac: Revert change 2001-12-23. This breaks too many
31 * tmac/groff_man.man: Small improvements.
33 2002-01-07 Bernd Warken <bwarken@mayn.de>
35 * man/groff_diff.man: Revised.
37 2002-01-06 Werner LEMBERG <wl@gnu.org>
39 * tmac/www.tmac: Remove extraneous backslash.
41 2002-01-06 Bernd Warken <bwarken@mayn.de>
43 * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
45 2002-01-05 Werner LEMBERG <wl@gnu.org>
47 Integrated groffer, contributed by Bernd Warken.
49 * contrib/groffer/*: New.
50 * Makefile.in, NEWS: Updated.
52 2002-01-04 Werner LEMBERG <wl@gnu.org>
54 * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
55 registers defined in macro packages.
58 2002-01-04 Larry Kollar <kollar@alltel.net>
60 * doc/groff.texinfo: Add documentation for ms macros.
62 2002-01-02 Werner LEMBERG <wl@gnu.org>
64 First step in adding PS support for the Euro symbol. `eu' is the
65 official Euro logo, `Eu' is a font-specific glyph variant.
67 * font/devps/text.enc: Add `Euro' at position 9.
68 * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
69 * font/devps/symbolmap: Regenerated.
73 2002-01-02 Bernd Warken <bwarken@mayn.de>
75 * man/roff.man: Revised.
77 2002-01-01 Bernd Warken <bwarken@mayn.de>
79 * src/roff/groff/groff.man: Completely rewritten.
81 2001-12-31 Werner LEMBERG <wl@gnu.org>
83 * doc/Makefile: Updated.
85 2001-12-30 Werner LEMBERG <wl@gnu.org>
87 * tmac/www.tmac: Make all names of internal macros/registers/strings
88 lowercase, and prepend `www-'.
90 * src/roff/troff/troff.man: Add preprocessor string at BOF.
92 2001-12-30 Gaius Mulley <gaius@glam.ac.uk>
94 Implement option `-b' in grohtml to set the HTML background colour.
96 * src/devices/grohtml/post-html.cc (default_background): New global
98 (html_printer::html_printer): Initialize `background' to
100 (main): Implement option `-b'.
102 * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
104 * src/devices/grohtml/grohtml.man: Updated.
105 * doc/Makefile (.ms.html): Use `-b'.
106 * tmac/html.tmac: Don't set background color.
108 Add new grohtml tag `.html-tl'.
110 * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
112 (title_desc::title_desc): Updated.
113 (html_printer::troff_tag): Handle `.html-tl'.
114 (html_printer::write_title): Use `with_h1'.
115 * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
116 (HTML-TL): New macro.
118 Add support for unordered lists in HTML.
120 * tmac/www.tmac (www-level): New auxiliary register.
121 (www-level1, www-level2, www-level3): New auxiliary strings.
122 (www-push-level, www-pop-level): New auxiliary macros
123 (UL-BEGIN, UL-END, LI): User macros for unordered lists.
127 * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
128 (DEFAULT_VERTICAL_OFFSET): Removed.
129 (IMAGE_BOARDER_PIXELS): Set to 0.
130 (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
131 (vertical_offset): Initialize with 0.
132 (gsPaper): New global variable.
133 (get_resolution): Scan for and return unsigned int.
134 (get_papersize): New function to get paper length from devps/DESC.
135 (determine_vertical_offset): New function.
136 (createAllPages): Produce gray-level images and use proper page
138 (createImage): Use `-quiet' option of pnmcrop.
139 (addZ): Fix passing of `-Z'.
140 (scanArguments): Fix handling of `-o'.
141 (main): Call `determine_vertical_offset'.
142 * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
145 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
146 * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
147 glyph descenders properly.
149 * doc/homepage.ms: Include `gnubw.eps'.
150 * doc/Makefile (gnubw.eps): New rule.
151 (homepage.html): Depend on `gnubw.eps'.
153 2001-12-25 Werner LEMBERG <wl@gnu.org>
155 * src/roff/troff/input.cc (default_black): Fix return value.
157 2001-12-24 Ruslan Ermilov <ru@FreeBSD.org>
159 * tmac/doc-common (Dt): Change output of architecture strings.
160 Do some syntax cleanup.
161 * tmac/groff_mdoc.man: Updated.
163 2001-12-23 Werner LEMBERG <wl@gnu.org>
165 Adding an `itc' request (input line trap accepting \c).
167 * src/roff/troff/env.h (environment): New member
168 `continued_input_trap'.
169 Make `do_input_trap' a friend function instead of `input_trap'.
170 * src/roff/troff/env.cc (environment::environment,
171 environment::copy): Updated.
172 (environment::newline): Implement it.
173 (do_input_trap): New function.
174 (input_trap): Call `do_input_trap'.
175 (input_trap_continued): New function.
176 (init_env_requests): Updated.
177 * src/roff/troff/TODO: Updated.
179 * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
182 * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
184 2001-12-22 Ruslan Ermilov <ru@FreeBSD.org>
186 * tmac/doc-common, tmac/doc-syms: Small updates.
188 2001-12-22 Colin Watson <cjwatson@debian.org>
190 * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
192 2001-12-22 Bernd Warken <bwarken@mayn.de>
194 * MANIFEST: New file.
196 2001-12-22 Werner LEMBERG <wl@gnu.org>
198 * src/preproc/grn/grn.man: Updated.
200 2001-12-22 Solar Designer <solar@openwall.com>
202 * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
205 2001-12-19 Werner LEMBERG <wl@gnu.org>
207 Implement a fallback character request `.fchar'.
209 * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
210 (is_fallback): New inline function.
211 * src/roff/troff/input.cc (do_define_character): New function.
212 (define_character): Call `do_define_character'.
213 (define_fallback_character): New function.
214 (init_input_requests): Add `fchar'.
215 (charinfo::charinfo): Updated.
216 (charinfo::set_macro): New argument to set `fallback' flag.
217 * src/roff/troff/node.cc (make_glyph_node, make_node,
218 node::add_char): Check `fallback' flag.
219 * NEWS, man/groff_diff.man, man/groff_man: Updated.
221 2001-12-16 Werner LEMBERG <wl@gnu.org>
223 * groff.texinfo: Document exact search algorithm for glyphs.
225 2001-12-15 Werner LEMBERG <wl@gnu.org>
227 * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
228 the left side of $(MANPAGES) rule to make it always non-empty.
230 2001-12-14 Werner LEMBERG <wl@gnu.org>
232 * src/roff/troff/input.cc (default_black): Define default color
233 `black' if not yet defined.
235 2001-12-13 Werner LEMBERG <wl@gnu.org>
237 Implement new string-valued register `.fn' to return the current
238 real (internal) font name.
240 * env.cc (environment::get_font_name_string): New function.
241 (init_env_requests): Add `.fn' register.
242 * env.h (environment): Updated.
243 * node.cc (font_info): Make `get_font_name' a friend.
244 (get_font_name): New function.
247 * man/groff_diff.man, man/groff.man, NEWS: Updated.
249 2001-12-12 Ralph Corderoy <ralph@inputplus.demon.co.uk>
251 * src/preproc/eqn/main.cc (inline_equation): Fix typos.
253 2001-12-12 Werner LEMBERG <wl@gnu.org>
255 * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
257 2001-12-10 Gaius Mulley <gaius@glam.ac.uk>
259 * man/groff_diff.man: Adding documentation for \O.
261 2001-12-10 Werner LEMBERG <wl@gnu.org>
263 * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
264 (scanArguments): Use PROG_PREFIX for the name of the troff binary.
266 2001-12-09 Werner LEMBERG <wl@gnu.org>
268 * man/roff.man: Revised.
269 * src/roff/groff/groff.man: Replace man page references with a
272 2001-12-09 Bernd Warken <bwarken@mayn.de>
274 * man/roff.man: Completely rewritten.
276 2001-12-06 Ralph Corderoy <ralph@inputplus.demon.co.uk>
278 * src/preproc/eqn/main.cc (inline_equation): Improve error message.
280 2001-12-05 Werner LEMBERG <wl@gnu.org>
282 * src/roff/troff/input.cc (get_delim_file_name): Removed since no
284 * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
285 order of initializers.
288 2001-12-05 Gaius Mulley <gaius@glam.ac.uk>
290 * doc/groff.texinfo: Fix documentation of \O.
292 * src/devices/grohtml/html-text.cc (html_text::do_indent,
293 html_text::do_table, html_text::do_emittext, html_text::do_para):
294 Use `const' for first argument.
295 (html_text::do_table): Use cast.
296 * src/devices/grohtml/html-text.h: Updated.
297 * src/devices/grohtml/output.cc (simple_output::put_string): Add
298 method for `const string &s'.
299 * src/devices/grohtml/html.h: Updated.
300 * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
301 (ANCHOR_TEMPLATE): Modified.
302 (manufacture_headings): New global variable to handle `-h' option.
303 (is_subsection): Removed.
304 (char_buffer::add_string): Add `const' to first argument.
305 Protect against invalid string argument.
306 Add method for `const string &s'.
307 (text_glob): Completely redesigned.
308 (page): Use `const' for strings and remove string length variable.
309 (page::add_html): Removed.
310 (page::add_end_encode): New member function.
311 (to_unicode): Moved upwards.
312 (title_desc, header_desc): Updated.
313 (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
315 (html_printer::is_bold, html_printer::make_bold): New member
317 (html_printer::end_of_line): Updated.
318 (generate_img_src, html_printer::do_auto_image,
319 html_printer::do_title, html_printer::write_header,
320 html_printer::determine_header_level, html_printer::do_heading,
321 html_printer::do_linelength, html_printer::do_pageoffset,
322 html_printer::do_indentation, html_printer::do_tempindent,
323 html_printer::do_indentedparagraph, html_printer::do_break,
324 html_printer::flush_sbuf, get_html_translation,
325 html_printer::begin_page, html_printer::special): Rewritten to get
326 rid of static string length limit.
327 (html_printer::troff_tag): Added `.no-auto-rule'.
328 (html_printer::flush_globs): Small fix.
329 (html_printer::determine_space): Don't compute `space_width'.
330 (html_printer::translate_to_html): Renamed to ...
331 (html_printer::emit_html): This (with updates).
332 (html_printer::write_header): Implement `-h' option.
333 (html_printer::draw): Remove commented-out code. Handle `F'
335 (html_printer::add_char_to_sbuf): Removed.
336 (html_printer::add_to_sbuf): Rewritten.
337 (html_printer::sbuf_continuation): Fixed.
338 (html_printer::seen_backwards_escape, reverse,
339 html_printer::remove_last_char_from_sbuf): Removed.
340 (char_translate_to_html, str_translate_to_html): Removed.
341 (html_printer::overstrike): New function member.
342 (html_printer::set_char): Use it.
343 (html_printer::do_body): New function member.
344 (html_printer::~html_printer): Use it.
345 (main): Handle `-h' option.
347 * src/devices/grohtml/grohtml.man: Document -h switch.
349 * src/preproc/html/pre-html.cc: Include searchpath.h
350 Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
351 (get_resolution): New function.
352 (checkImageDir): Use `0777' permissions in mkdir()
353 (write_start_image): Rewritten to use `\O[5...]'.
354 (createImage, generateImages): Updated.
355 (main): Handle `F' and `h' options.
356 Use `get_resolution'.
358 * src/roff/troff/input.cc (begin, end, image): Removed.
359 (do_suppress): Take parameter.
360 Handle modified syntax of `\O'.
361 (token::next): Updated.
362 (init_markup_requests): Removed.
365 * src/roff/troff/div.h: Add declaration for begin_page().
367 * tmac/color-html.tmac: Removed. Contents moved to...
368 * tmac/html.tmac: Here. Set background color.
369 * tmac/color.tmac: Removed. Contents moved to...
370 * tmac/ps.tmac: Here.
371 * tmac/www.tmac: Remove the title command when generating images
373 (NO_AUTO_RULE): New macro.
374 (HTML_DO_IMAGE): Use revised `\O' escapes.
375 * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
377 2001-12-02 Werner LEMBERG <wl@gnu.org>
379 * tmac/groff_mdoc.man: Fix typo.
381 2001-12-01 Colin Watson <cjwatson@debian.org>
383 * man/roff.man: Fix typo.
385 2001-11-29 Werner LEMBERG <wl@gnu.org>
387 * src/lib/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
390 * src/roff/troff/input.cc (read_draw_node): Emit error message if
391 more than one argument to \D'f ...'.
393 * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
395 2001-11-28 Werner LEMBERG <wl@gnu.org>
397 * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
400 * tmac/groff_man.man: Minor cosmetic fix.
402 2001-11-27 Werner LEMBERG <wl@gnu.org>
404 * src/roff/groff/groff.man, tmac/groff_tmac.man,
405 tmac/groff_www.man: s/mwww/www/.
407 2001-11-26 Werner LEMBERG <wl@gnu.org>
409 * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
410 * configure: Regenerated.
411 * win32-diffs: Updated.
413 * tmac/groff_mwww.tmac: Renamed to ...
414 * tmac/groff_www.tmac: This.
415 * tmac/mwww.tmac: Removed.
416 * NEWS, tmac/Makefile.sub: Updated.
418 2001-11-21 Werner LEMBERG <wl@gnu.org>
420 * doc/groff.texinfo: Improve documentation of the `\v' escape.
421 Fix explanation of `\D' and `rt'.
423 2001-11-20 Werner LEMBERG <wl@gnu.org>
425 * tmac/an-old.tmac (an-header): Set header length equal to page
427 * doc/groff.texinfo: Improve documentation of `ne' request. Other
431 2001-11-19 Werner LEMBERG <wl@gnu.org>
433 * NEWS, man/Makefile.sub: Updated.
435 2001-11-19 Bernd Warken <bwarken@mayn.de>
437 * man/ditroff.man: New file.
439 2001-11-17 Werner LEMBERG <wl@gnu.org>
441 * man/groff_differences.man: Renamed to ...
442 * man/groff_diff.man: This. Updated.
443 * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
445 * src/preproc/html/pushbackbuffer.cc: Renamed to ...
446 * src/preproc/html/pushback.cc: This. Updated.
447 * src/preproc/html/pushbackbuffer.h: Renamed to ...
448 * src/preproc/html/pushback.h: This.
449 * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
452 * src/libs/libgroff/htmlindicate.cc: Renamed to ...
453 * src/libs/libgroff/htmlhint.cc: This.
454 * src/libs/libgroff/Makefile.sub: Updated.
456 * tmac/an-old.tmac (an-end): Fix page length.
458 2001-11-16 Werner LEMBERG <wl@gnu.org>
460 * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
461 * man/Makefile.sub: Include groff_differences.man.
462 * VERSION: Set to 1.18.
463 * REVISION: Set to 0.
465 2001-11-16 Bernd Warken <bwarken@mayn.de>
467 * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
468 the second dot (or ending macro name) to end a macro.
469 * doc/groff.texinfo: Doc fix.
471 2001-11-16 Ruslan Ermilov <ru@FreeBSD.org>
473 * tmac/doc-common (doc-header): Handle very long document titles
476 2001-11-16 Werner LEMBERG <wl@gnu.org>
478 * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
480 2001-11-15 Werner LEMBERG <wl@gnu.org>
482 * src/roff/troff/troff.man: Revised and split into troff.man and...
483 * man/groff_differences.man: New file.
486 2001-11-13 Werner LEMBERG <wl@gnu.org>
488 * tmac/an-old.tmac (TS, TE): New macros for table support.
490 2001-11-12 Werner LEMBERG <wl@gnu.org>
492 * src/include/lib.h: Provide a fix for emx to not include
495 2001-10-27 Werner LEMBERG <wl@gnu.org>
497 * src/roff/troff/input.cc (substring_macro): Fix computation of
500 2001-10-20 Werner LEMBERG <wl@gnu.org>
502 Undo change from 2001-08-28.
504 * src/roff/troff/input.cc (have_input): New global variable.
505 (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
506 in compatibility mode.
507 (process_input_stack): Use it.
509 2001-10-19 Ruslan Ermilov <ru@FreeBSD.org>
511 * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
512 being handled as end-of-sentence characters,
514 2001-10-10 Gaius Mulley <gaius@glam.ac.uk>
516 * src/roff/troff/input.cc (file_iterator): New members
517 `suppress_newline_flag' and `seen_escape'.
518 (file_iterator::next_file): Updated.
519 (file_iterator::fill): Use it.
520 (string_iterator): New member `suppress_newline_flag'.
521 (string_iterator::fill): Set it.
522 (get_color_element): Use MAX_COLOR_VAL.
523 * src/roff/troff/env.cc (environment): Remove `need_eol'.
524 (no_fill): Don't set `env->ignore_next_eol'.
525 (environment::newline): Handle `eol' tag properly.
527 (environment::add_html_tag): Set `env->ignore_next_eol'.
529 * src/roff/troff/env.h (environment): Updated.
531 * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
533 (html_printer::outstanding_eol): New member function.
534 (html_printer::do_title): Use new functions.
535 (html_printer::troff_tag): Test `id_eol_ce'.
537 2001-10-10 Werner LEMBERG <wl@gnu.org>
539 * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
540 files work with -C also.
542 2001-10-05 Werner LEMBERG <wl@gnu.org>
544 * doc/pic.ms: Minor fix.
545 * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
546 as a valid command line switch.
547 * src/devices/grohtml/post-html.cc (main): Ditto.
549 * src/devices/grohtml/grohtml.man: Updated.
550 * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
552 2001-10-04 Werner LEMBERG <wl@gnu.org>
554 Implementing color support in troff, pic, grops, and grohtml. These
555 changes are based on a major patch provided by Gaius Mulley
558 New request: `defcolor', supporting rgb, cmy, cmyk, and gray
559 definitions with both hex values and fractions.
561 New escapes: \m and \M for drawing and background color,
562 respectively. This corresponds to the troff output commands `m'
565 groff and troff accept command line switch `-c' to disable color
566 output (which is automatically disabled in compatibility mode).
568 New scaling indicator `f' for fractions (1f = 65536u).
570 New conditional operator `m' to test for defined colors with `if'
573 New keywords `color' (or `colour', `colored', `coloured'), `outline'
574 (or `outlined'), and `shaded' added to pic.
576 * src/include/color.h: New file.
577 * src/include/driver.h: Include it.
578 * src/include/printer.h: Include color.h.
579 (environment): New members `col' and `fill'.
580 (printer): Remove `adjust_arc_center' member function.
581 * src/include/Makefile.sub: Updated.
583 * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
585 Handle `m' and `DF' troff commands.
586 * src/libs/libgroff/color.cc: New file.
587 * src/libs/libgroff/Makefile.sub: Updated.
589 * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
591 (createImage): Fix computation of `y2'.
593 (buffer::write_file_html): Remove calls to `stop'.
595 * src/preproc/pic/common.h (common_output): New abstract function
596 members `set_color', `reset_color', `get_last_filled', and
598 * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
599 (object_spec): Add members `shaded' and `outlined'.
600 * src/preproc/pic/output.h (output): `command' is now abstract.
601 New function members `set_color', `reset_color', `get_last_filled',
602 and `get_outline_color'.
603 * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
604 `outline[d]', and `shaded'.
605 * src/preproc/pic/object.cc (output::command): Removed.
606 (output::set_location): Moved to output.h.
607 (graphic_object): Add protected members `outline_color' and
609 Add member functions `set_outline_color', `get_outline_color', and
611 (closed_object): Add member function `set_fill_color'.
612 Add member `color_fill'.
613 (graphic_object::print_text): Use `out->set_color' and
615 (box_object::print, ellipse_object::print, circle_object::print,
616 line_object::print, spline_object::print, arc_object::print): Ditto.
617 (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
618 * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
619 `SHADED', making them `%left'.
620 Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
621 * src/preproc/pic/tex.cc (tex_output): New dummy function members
622 `set_color', `reset_color', `get_last_filled', and
624 * src/preproc/pic/troff.cc (simple_output): New abstract function
625 members `set_color', `reset_color', and `get_last_filled'.
626 (simple_output::polygon, simple_output::circle,
627 simple_output::ellipse): Use `get_last_filled'.
628 (troff_output): New members `last_filled' and `last_outlined'.
629 New function members `set_color', `reset_color', `get_last_filled',
630 and `get_outline_color'.
631 (troff_output::finish_picture): Use `reset_color'.
632 (troff_output::set_fill): Test `last_filled'.
633 * src/preproc/pic/pic.man: Updated.
635 * src/roff/groff/groff.cc (main): Implement `-c' option.
636 (synopsis, help): Updated.
637 src/roff/groff/groff.man: Updated.
639 * src/roff/troff/troff.h: Include color.h.
640 (warning_type): Add WARN_COLOR.
641 * src/roff/troff/env.h (environment): New members
642 `{cur,prev}_{glyph,fill}_color'.
643 New member functions `get_{prev_,}{glyph,fill}_color'.
644 * src/roff/troff/env.cc: Initialize and implement them.
645 * src/roff/troff/input.cc: New global variable `disable_color_flag'.
646 Replace `NULL' with `0' everywhere for consistency.
647 (lookup_color, default_black, do_glyph_color, do_fill_color,
648 get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
649 define_color): New functions.
650 (token::next): Implement \M and \m escapes.
651 (do_if_request): Implement `m' operator.
653 (main): Implement `-c' option.
654 (init_markup_requests): Add `defcolor' request.
655 (warning_table): Add `color' warning.
656 * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
658 * src/roff/troff/node.cc (troff_output_file): New members
659 `current_{page,glyph}color'. New member functions `put_hex',
660 `glyph_color', and `fill_color'.
661 (glyph_color_node::*, fill_color_node::*): Implement it.
662 * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
663 (parse_term): Add support for `f'.
664 * src/roff/troff/troff.man: Updated.
666 * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
668 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
669 * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
671 * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
672 (tag_definition): Use `void *' for arg1.
673 (html_text): New member functions `do_color' and `done_color'.
674 Use `void *' for second parameter of `push_para' member function.
675 New `push_para' member function with a single parameter.
676 Use `char *' for parameter of `issue_table_begin' member funtion.
677 New `issue_color_begin' member function.
678 * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
680 (html_text::issue_color_begin): New function.
681 (html_text::issue_table_begin): Use `char *' for parameter.
682 (html_text::start_tag, html_text::shutdown,
683 html_text::check_emit_text): Updated.
684 (html_text::push_para): Use `void *' for second parameter.
685 Add same function with only one parameter.
686 (html_text::do_*): Updated.
687 (html_text::do_color, html_text::done_color): New functions.
688 * src/devices/grohtml/post-html.cc (style): New member `col'.
689 Mew member `style' with 6 parameters.
690 (style::style, style::operator==): Updated.
691 (html_printer::do_font): Use it.
692 (html_printer::draw): Add dummy entry for `F'.
693 (html_printer::set_char): Updated.
694 * src/devices/grohtml/grohtml.man: Updated.
696 * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
697 trailing zeroes removed.
698 (ps_printer): New members `sbuf_color', `fill_color', and
700 Removed member `fill'.
701 New member function `set_color'.
702 (ps_printer::ps_printer, ps_printer::set_char): Updated.
703 (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
704 ps_printer::fill_path, ps_printer::draw): Use `set_color'.
706 * tmac/color-html.tmac, tmac/color.tmac: New files.
707 * tmac/troffrc: Include them.
708 * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
709 * tmac/Makefile.sub: Updated.
711 * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
712 man/groff.man: Updated.
713 * font/devps/prologue.ps: Define FC and CO functions.
715 2001-10-04 Gaius Mulley <gaius@glam.ac.uk>
717 Fix incorrect cropping of images and incorrect handling of special
718 characters. Fix handling of file names in \O.
720 * src/include/geometry.h: New file.
721 * src/libs/libgroff/geometry.cc: New file.
722 * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
724 * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
726 (do_suppress): Updated.
727 * src/roff/troff/node.cc: Include geometry.h.
728 (troff_output_file::flush_tbuf): Fixed parameters to
729 `check_output_limits'.
730 (troff_output_file::check_charinfo): Ditto.
731 (troff_output_file::determine_line_limits): Add support for `Da'
734 * src/devices/grohtml/post-html.cc (str_translate_to_html):
735 Add new parameter `is_special' to decode special characters from
737 (html_printer::do_title, html_printer::do_heading,
738 html_printer::do_indentedparagraph,
739 html_printer::translate_to_html, html_printer::special): Updated.
741 2001-10-03 Werner LEMBERG <wl@gnu.org>
743 * Makefile.sub (DISTCLEANFILES): Add stamp-h.
744 Fix entry for config.h.
745 * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
746 * tmac/troffrc: Translate nonbreakable space character to `\~'.
747 * src/preproc/eqn/eqn.man: Document -d command line option.
749 2001-09-27 Werner LEMBERG <wl@gnu.org>
759 instead of the old code (`.ad .hy' after the table) to suppress
760 incorrect hyphenation for grohtml output.
762 2001-09-22 Werner LEMBERG <wl@gnu.org>
764 * man/groff_font.man, man/groff_out.man: Minor fixes.
766 2001-09-20 Werner LEMBERG <wl@gnu.org>
768 * PROBLEMS: Updated, reordered. Improved EPS section (thanks to
769 Arnold Robbins <arnold@skeeve.com>).
771 2001-09-09 Werner LEMBERG <wl@gnu.org>
773 * configure: Regenerated with autoconf 2.52.
775 * doc/groff.texinfo: Complete revision of indices.
777 2001-09-07 Werner LEMBERG <wl@gnu.org>
779 * doc/Makefile (clean): Updated to delete all indices.
781 2001-09-05 Werner LEMBERG <wl@gnu.org>
783 * src/roff/troff/troff.man: Remove superfluous line.
785 * tmac/s.tmac: Enable all warnings only if no -W or -w option is
786 given on the command line (or rather, if only the default warnings
789 2001-09-03 Werner LEMBERG <wl@gnu.org>
791 * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
792 use .ne for TTY devices.
794 2001-08-31 Werner LEMBERG <wl@gnu.org>
796 * src/roff/troff/token.h, src/roff/troff/input.cc:
797 s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
799 2001-08-28 Werner LEMBERG <wl@gnu.org>
801 * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
802 * src/roff/troff/input.cc (token::next): Return
803 TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
805 (token::description): Updated.
806 (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
807 (token::add_to_node_list, token::process): Ignore
808 TOKEN_TRANSPARENT_ESCAPE.
810 2001-08-27 Werner LEMBERG <wl@gnu.org>
812 * tmac/an-old.tmac: Fix `S' string.
814 2001-08-26 Werner LEMBERG <wl@gnu.org>
816 * src/roff/troff/troff.man: Don't use .ne for TTY devices.
818 2001-08-25 Werner LEMBERG <wl@gnu.org>
820 * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
822 Many other minor fixes.
824 * configure.ac: Add message at end to inform how to compile
826 * configure: Regenerated.
828 2001-08-24 Werner LEMBERG <wl@gnu.org>
830 * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
831 Updated to latest version of libc.
833 2001-08-23 Werner LEMBERG <wl@gnu.org>
835 * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
836 Autoconf 2.50 and newer can handle this.
837 * configure: Regenerated.
839 2001-08-21 Werner LEMBERG <wl@gnu.org>
841 * doc/pic.ms: Fix typo.
842 * src/preproc/tbl/tbl.man: Document case of global options.
844 2001-08-21 Gaius Mulley <gaius@glam.ac.uk>
846 * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
847 handling of `CR' font.
849 2001-08-20 Werner LEMBERG <wl@gnu.org>
853 * src/include/lib.h: Include config.h.
854 * All C files: Ditto (if necessary).
855 * All C++ source and header files: Include lib.h first (if
858 * src/include/config.hin: New file (autogenerated by autoheader).
859 * stamp-h.in: New file.
860 * configure.ac: Updated.
861 * aclocal.m4: Add third parameters to AC_DEFINE macros.
862 (GROFF_ARRAY_DELETE): Simplified.
863 * Makefile.sub (DISTCLEANFILES): Updated.
864 Added targets for remaking config.status, config.hin, config.h,
865 stamp-h.in, and stamp-h.
866 * configure: Regenerated.
868 2001-08-19 Werner LEMBERG <wl@gnu.org>
872 2001-08-18 Sebastian Krahmer <krahmer@suse.de>
874 * src/preproc/pic/pic.y (format_number): Use do_sprintf().
875 (do_sprintf): Use snprintf().
877 2001-08-18 Werner LEMBERG <wl@gnu.org>
879 * src/libs/snprintf/*: Added an snprintf module written by Mark
881 * src/libs/libgroff/Makefile.sub: Updated.
882 * configure.ac: Add test for snprintf().
883 * Makefile.in: Updated.
884 * configure: Regenerated.
886 * src/preproc/html/pre-html.cc (make_message): Reactivate code which
889 2001-08-14 Ruslan Ermilov <ru@FreeBSD.org>
891 * tmac/doc.tmac (Ex): New implementation.
892 * tmac/doc-common, tmac/groff_tmac.man: Updated.
894 2001-08-13 Ruslan Ermilov <ru@FreeBSD.org>
896 * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
898 * tmac/groff_tmac.man: Updated.
900 2001-08-13 Werner LEMBERG <wl@gnu.org>
902 * src/preproc/tbl/tbl.man: Minor documentation update.
904 2001-08-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
906 * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
907 * configure.ac: Add declaration test for gettimeofday().
908 * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
909 * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
910 * configure: Regenerated.
912 2001-08-11 Werner LEMBERG <wl@gnu.org>
914 * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
915 * configure.ac: Add declaration test for strcasecmp().
916 * Makefile.in: Updated.
917 * configure: Regenerated.
918 * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
919 this is necessary because groff's mkstemp.cc is C++.
920 Add declaration conditionally for strcasecmp().
922 2001-08-10 Werner LEMBERG <wl@gnu.org>
924 Integrated pic2graph, contributed by Eric S. Raymond.
926 * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
928 * Makefile.in, NEWS: Updated.
930 * src/preproc/tbl/tbl.man: Revised.
932 2001-08-09 Eric S. Raymond <esr@thyrsus.com>
934 * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
936 2001-08-09 Werner LEMBERG <wl@gnu.org>
938 * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
941 2001-08-08 Paul Eggert <eggert@twinsun.com>
943 * Makefile.sub (configure): Depend on configure.ac, not
945 * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
947 2001-08-07 Werner LEMBERG <wl@gnu.org>
949 * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
952 2001-08-06 Werner LEMBERG <wl@gnu.org>
954 * src/roff/troff/troff.man: Improve documentation of -E option.
956 2001-07-28 Ralph Corderoy <ralph@inputplus.demon.co.uk>
958 * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
961 2001-07-27 Werner LEMBERG <wl@gnu.org>
963 * src/preproc/refer/refer.cc: Undo last change.
964 * src/devices/grohtml/post-html.cc: Ditto.
966 2001-07-26 Werner LEMBERG <wl@gnu.org>
968 * src/preproc/refer/refer.cc: Include `lib.h'.
969 * src/devices/grohtml/post-html.cc: Ditto.
971 2001-07-25 Gaius Mulley <gaius@glam.ac.uk>
973 * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
974 * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
975 * Makefile.in: Comment updated.
976 * configure: Regenerated.
978 2001-07-25 Werner LEMBERG <wl@gnu.org>
980 * src/preproc/pic/pic.cc: Removed.
981 * src/preproc/pic/pic_tab.h: Removed.
982 * src/preproc/refer/label.cc: Removed.
984 * doc/Makefile (.ms.html): Don't use a file name extension in
985 argument to grohtml's -I option.
986 * Makefile.in (dist): Remove CVS directories.
987 Call `distfiles' target.
989 * src/devices/grohtml/grohtml.man: Add information about valid
990 versions of pnmtopng.
991 * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
992 name instead of number.
994 2001-07-24 Werner LEMBERG <wl@gnu.org>
996 * doc/groff.texinfo: Minor fixes.
998 2001-07-21 Gaius Mulley <gaius@glam.ac.uk>
1000 * doc/Makefile (.ms.html): Put image files into a subdirectory.
1003 2001-07-20 Werner LEMBERG <wl@gnu.org>
1005 * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
1006 * src/libs/libgroff/mkstemp.cc: New file.
1007 * src/libs/libgroff/mksdir.cc: New file.
1008 * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
1009 (xtmpfile) [!HAVE_MKSTEMP]: Removed.
1010 * src/libs/libgroff/Makefile.sub: Updated.
1011 * src/include/lib.h: Add mksdir() prototype.
1012 * src/include/posix.h: Define S_IXUSR if not yet defined.
1014 * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
1015 (createAllPages): Use mksdir() instead of current code.
1016 * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
1017 (main): [!HAVE_MKSTEMP]: Removed.
1019 * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
1020 (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
1022 * configure.ac: Add tests for stdint.h, sys/time.h, and
1024 Call new GROFF_xxx macros.
1025 * configure: Regenerated.
1026 * Makefile.in: Comments updated.
1028 2001-07-20 Gaius Mulley <gaius@glam.ac.uk>
1030 * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
1031 instead of current code.
1032 * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
1033 * src/roff/groff/groff.cc (possible_command::insert_args): New
1035 (main): Use it for predriver handling instead of insert_arg().
1037 2001-07-19 Werner LEMBERG <wl@gnu.org>
1039 * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
1042 * src/include/posix.h: Define S_IWUSR if not yet defined.
1044 2001-07-18 Werner LEMBERG <wl@gnu.org>
1048 2001-07-18 Ruslan Ermilov <ru@FreeBSD.org>
1050 * tmac/groff_mdoc.man: Document new -width and -column syntax.
1051 Some other minor fixes.
1052 * tmac/an-old.tmac: Add `AT' and `UC' macros.
1054 2001-07-17 Gaius Mulley <gaius@glam.ac.uk>
1056 Replace call to `troff' with `groff -Z' to make it aware of
1059 * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
1060 (troff_command, command_prefix): Removed.
1061 (alterDeviceTo): Use groff.
1062 (addZ): New function.
1063 (char_buffer::do_html): Use it.
1064 (scanArguments): Use TROFF_COMMAND.
1065 (findPrefix): Removed.
1067 * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
1069 2001-07-17 Eric S. Raymond <esr@snark.thyrsus.com>
1071 * doc/pic.ms: Documentation fixes.
1073 2001-07-17 Werner LEMBERG <wl@gnu.org>
1075 Replace atexit() with global destructor.
1077 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
1078 (xtmpfile_list_init): New global structure to deallocate
1079 xtmpfile_list on exit. Its destructor inherits most code from
1081 (remove_tmp_files): Deleted.
1082 (add_tmp_file): Simplified.
1084 2001-07-16 Werner LEMBERG <wl@gnu.org>
1086 Replace strdup() with strsave().
1088 * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
1089 (set_papersize): Use strsave() and a_delete.
1090 (main): Use strsave().
1091 * src/preproc/html/pre-html.cc (make_message, createAllPages,
1092 removeAllPages): Use strsave() and a_delete.
1094 * configure.ac: Remove test for strdup.
1095 * Makefile.in: Comment updated.
1096 * configure: Regenerated.
1098 2001-07-15 Werner LEMBERG <wl@gnu.org>
1100 * win32-diffs: Updated.
1102 2001-07-14 Werner LEMBERG <wl@gnu.org>
1104 * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
1105 removing the old one.
1106 * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
1108 2001-07-14 Ralph Corderoy <ralph@inputplus.demon.co.uk>
1110 * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
1112 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>
1114 Merge -xwidth into -width. Add -xwidth functionality to -column
1117 * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
1119 (doc-do-Bl-args): Merge -xwidth code with -width. Test whether
1120 string immediately following a leading dot starts with a valid mdoc
1122 Add similar code to the -column branch.
1123 (doc-Bl-usage): Updated.
1124 * groff_mdoc.man: s/-xwidth/-width/.
1126 2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
1128 * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
1129 running into centered or non-formatted text.
1131 2001-07-11 Werner LEMBERG <wl@gnu.org>
1133 Introduce short and long prefixes to have the selection at run-time
1134 whether there is a 8+3 limit for names of temporary files.
1136 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
1137 (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
1138 (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
1140 (temp_init): New global structure to initialize above three
1142 (xtmptemplate): Use two parameters for long and short prefix.
1143 Simplify code use above three variables.
1144 (xtmpfile): Use long and short prefixes as parameters.
1145 * src/include/lib.h: Updated.
1147 * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
1149 ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
1150 (createAllPages, makeTempFiles): Updated.
1152 2001-07-09 Werner LEMBERG <wl@gnu.org>
1154 * REVISION: Increased to 3.
1156 Version 1.17.2 released
1157 =======================
1159 2001-07-07 Werner LEMBERG <wl@gnu.org>
1161 * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
1164 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
1166 * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
1168 * tmac/groff_mdoc.man: Fix synopsis.
1170 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
1172 * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
1173 Restore `doc-Pa-font'.
1175 2001-07-04 Werner LEMBERG <wl@gnu.org>
1177 * src/utils/indxbib/dirnamemax.c: Moved to ...
1178 * src/libs/libgroff/maxfilename.cc: Here.
1179 s/dir_name_max/file_name_max/.
1181 * src/include/lib.h: Add file_name_max.
1182 * src/utils/indxbib/indxbib.cc: Updated.
1183 * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
1186 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
1188 (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
1190 * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
1191 REGION_TEMPLATE): New macros.
1192 (createAllPages, makeTempFiles): Use them.
1193 Include `nonposix.h'.
1194 (html_system): New function.
1195 (createAllPages, createImage): Use it.
1198 * tmac/www.tmac: Fix typos.
1200 2001-07-03 Werner LEMBERG <wl@gnu.org>
1202 * tmac/www.tmac: Disable hyphenation in normal text only if output
1204 (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
1205 * tmac/groff_mwww.man, NEWS: Updated.
1207 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
1209 * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
1212 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
1214 * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
1215 doc-display-ps-stack): Implement font and font size stack for
1218 2001-07-02 Werner LEMBERG <wl@gnu.org>
1220 * REVISION: Increased to 2.
1221 * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
1223 * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
1224 beginning of a line.
1225 * src/groff/grog/grog.sh: Ditto.
1227 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
1229 * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
1232 2001-06-27 Werner LEMBERG <wl@gnu.org>
1234 Fix problems with preprocessor string for `man' program.
1236 * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
1237 Updated/added copyright.
1238 Moved Emacs's local variable to identify nroff mode to the end of
1239 the file; add local variable if missing.
1241 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
1243 * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
1244 AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
1245 * configure: Regenerated.
1247 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
1249 * aclocal.m4 (GROFF_PAGE): Fix page detection code.
1250 * configure: Regenerated.
1252 2001-06-24 Werner LEMBERG <wl@gnu.org>
1254 * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
1256 * doc/pic.ms: Fix typos.
1258 Version 1.17.1 released
1259 =======================
1261 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
1263 * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
1264 * configure: Updated.
1266 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
1268 * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
1270 * src/roff/troff/dic.cc (blank_line): Add html tag.
1272 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
1274 * src/roff/troff/input.cc (do_suppress): Fix typo.
1276 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
1278 Added two new options (-D and -I) to specify image names and a
1279 subdirectory to place the images in.
1281 Change syntax from \\Ox to \\O[x].
1283 * src/devices/grohtml/post-html.cc (main): Add options.
1285 * src/preproc/html/pre-html.cc: Include `stdarg.h'.
1286 Use `NULL' instead of `0' for null string pointers.
1287 (MAX_RETRIES): New macro.
1288 (lengthOfintToStr, intToStr, make_message): New functions.
1289 (makeFileName): Make function static.
1290 Implement -D and -I options.
1291 (checkImageDir): New function.
1292 (write_end_image, write_start_image): Use new syntax of \O.
1293 (createAllPages, removeAllPages): Implement -D and -I options. Use
1295 (createImage): Use make_message().
1296 (addps4html): Add guard for malloc().
1297 (usage, scanArguments): Updated.
1298 (makeTempFiles): Use mkstemp().
1299 (removeTempFiles): Use unlink().
1300 (findPrefix): Add guard for malloc().
1302 * src/roff/troff/input.cc (get_delim_file_name): New function to
1304 (do_suppress): Updated to parse new syntax.
1305 * src/devices/grohtml/grohtml.man: Updated.
1306 * tmac/www.tmac: Updated to new syntax.
1310 2001-06-15 Werner LEMBERG <wl@gnu.org>
1312 * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
1314 * src/devices/grohtml/grohtml.man: Minor improvements.
1316 2001-06-14 Werner LEMBERG <wl@gnu.org>
1318 * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
1320 2001-06-11 Werner LEMBERG <wl@gnu.org>
1322 * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
1323 line to specify preprocessor options -- mandb 2.3.1 only recognizes
1325 * src/preproc/grn/grn.man: Add proper '\" string.
1327 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
1329 * test-groff: Don't use PATH but GROFF_BIN_PATH.
1331 2001-06-08 Werner LEMBERG <wl@gnu.org>
1333 Updated to autoconf 2.50.
1335 * configure.in: Renamed to...
1336 * configure.ac: This.
1337 * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
1338 (GROFF_OS390): Updated.
1339 * configure: Regenerated.
1341 2001-05-18 Werner LEMBERG <wl@gnu.org>
1343 * src/roff/troff/env.c, src/roff/troff/env.h,
1344 src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
1347 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
1349 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
1351 2001-05-16 Werner LEMBERG <wl@gnu.org>
1353 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
1354 less than or equal zero; set it to 1 then.
1355 * src/roff/troff/node.h (node::node): Initialize `last'.
1357 2001-05-08 Werner LEMBERG <wl@gnu.org>
1359 * tmac/an-old.tmac: Make predefined strings work in compatibility
1361 Add troff version guard.
1362 * tmac/doc.tmac: Simplify version guard.
1364 2001-05-07 Werner LEMBERG <wl@gnu.org>
1366 The .ns and .rs requests are now honoured not only in the top-level
1367 but in all diversions (similar to UNIX troff).
1369 This change is based on a patch from Tadziu Hoffmann
1370 <hoffmann@usm.uni-muenchen.de>.
1372 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
1373 (top_level_diversion): Remove `no_space_mode' member.
1374 * src/roff/troff/div.cc (diversion::diversion,
1375 top_level_diversion::top_level_diversion): Updated.
1376 (macro_diversion::output): Reset `no_space_mode'.
1377 (no_space, restore_spacing): Use `curdiv' unconditionally.
1378 (space_request, blank_line): Check `curdiv->no_space_mode'.
1379 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
1380 `curdiv' unconditionally.
1381 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
1384 2001-05-06 Werner LEMBERG <wl@gnu.org>
1386 Added two new requests `de1' and `am1' which are similar to `de' and
1387 `am' with the difference that compatibility mode is saved on entry,
1388 switched off during macro execution, and restored on exit.
1390 * src/roff/troff/input.h: Added two new special characters
1391 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
1392 * src/roff/troff/input.cc (input_iterator): Added two member
1393 functions `save_compatible_flag' and `get_compatible_flag'.
1394 (input_stack): Ditto.
1395 (string_iterator): Ditto. Also add private member
1396 `saved_compatible_flag'.
1397 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
1398 (calling_mode): New enumeration.
1399 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
1400 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
1401 (define_macro, define_indirect_macro, append_macro, ignore): Use
1403 (define_nocomp_macro, append_nocomp_macro): New functions.
1404 (init_input_requests): Updated.
1405 (do_request): Rename local variable `saved_compatible_flag' to
1406 `old_compatible_flag'.
1407 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
1409 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
1410 public and trap-invoked macros. As a consequence, the man macros
1411 work in compatibility mode also.
1413 2001-05-06 Solar Designer <solar@openwall.com>
1415 * Makefile.in: Use $(mandir).
1417 2001-05-06 Alexios Zavras <zvr@pobox.com>
1419 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
1421 2001-05-05 Werner LEMBERG <wl@gnu.org>
1423 Added `.ns' number register: Returns 1 in no-space mode (if in
1424 top-level diversion), 0 otherwise.
1426 * src/roff/troff/div.cc (no_space_mode_reg): New class.
1427 (init_div_requests): Updated.
1428 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
1431 2001-05-04 Werner LEMBERG <wl@gnu.org>
1433 * src/roff/nroff/nroff.man: Improved documentation (especially
1436 2001-05-02 Werner LEMBERG <wl@gnu.org>
1438 Added `brp' request: This is \p as a request.
1440 * src/roff/troff/env.cc (environment::do_break): Add parameter
1442 (do_break_request): New function (was `break_request').
1443 (break_request): Calls `do_break_request'.
1444 (break_spread_request): New; calls `do_break_request'.
1445 (init_env_requests): Updated.
1446 * src/roff/troff/env.h: Updated.
1447 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
1449 * REVISION: Increased to 1.
1450 * win32-diffs: Updated.
1452 2001-05-01 Werner LEMBERG <wl@gnu.org>
1454 * tmac/an-old.tmac: Fix minor compatibility mode issue.
1455 * tmac/troffrc-end: Make it really work in compatibility mode.
1457 2001-04-27 Werner LEMBERG <wl@gnu.org>
1459 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
1462 2001-04-22 Werner LEMBERG <wl@gnu.org>
1464 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
1465 latest versions from glibc CVS archive.
1467 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
1468 <c.zeelenberg@hccnet.nl>.
1470 2001-04-21 Werner LEMBERG <wl@gnu.org>
1472 * configure.in: Move check for mkstemp() to...
1473 * aclocal.m4 (GROFF_MKSTEMP): This new function.
1474 * configure: Regenerated.
1476 * src/include/groff-getopt.h: Don't use variable names in
1479 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
1480 * src/devices/grohtml/Makefile.sub,
1481 src/devices/grohtml/post-html.cc: Updated.
1483 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
1485 * configure.in: Add special check for mkstemp().
1486 * src/libs/libgroff/tmpfile.cc: Use it.
1487 * src/utils/indxbib/indxbib.cc: Ditto.
1488 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
1489 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
1492 2001-04-20 Bruce Lilly <blilly@erols.com>
1494 `Version_string' as C++ object was not visible to linker from C
1496 Add `const' to `Version_string'.
1498 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
1499 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
1500 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
1501 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
1502 (scanArguments), src/preproc/refer/refer.cc (main),
1503 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
1504 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
1505 (main), src/devices/grohtml/post-html.cc (main),
1506 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
1507 (main), src/utils/hpftodit/hpftodit.cc (main),
1508 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
1509 (main), src/utils/lkbib/lkbib.cc (main),
1510 src/utils/addftinfo/addftinfo.cc (main): Implement it.
1512 * src/roff/groff/pipeline.c: Add _UWIN.
1513 * src/include/nonposix.h: Ditto.
1515 2001-04-20 Werner LEMBERG <wl@gnu.org>
1517 * src/include/lib.h: Use HAVE_STRERROR.
1518 * src/roff/groff/pipeline.c: Ditto.
1519 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
1520 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
1521 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
1522 * win32-diffs: Updated.
1523 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
1525 2001-04-19 Werner LEMBERG <wl@gnu.org>
1527 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
1528 instead of hardwired `"troff"'.
1529 (char_buffer::read_file): Remove unused variables.
1530 (char_buffer::write_file_troff): Ditto.
1531 (char_buffer::write_file_html): Ditto.
1532 (generateImages): Ditto.
1534 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
1536 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
1538 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
1539 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
1540 index_search_item::search1): Ditto.
1541 * src/roff/troff/node.h (width_list): Reorder members.
1542 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
1543 (lookup_warning): Ditto.
1544 (prepend_string): Commented out.
1545 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
1546 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
1547 * src/preproc/tbl/main.cc (process_format): Ditto.
1548 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
1550 * src/preproc/pic/pic.cc: Updated.
1551 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
1552 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
1553 * src/preproc/refer/command.cc (execute_command): Ditto.
1554 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
1555 * src/preproc/refer/token.cc (lookup_token): Ditto.
1556 * src/preproc/soelim/soelim.cc: Ditto.
1557 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
1558 (isHexDigit): Commented out.
1559 (pushBackBuffer::isString): Remove unused variable.
1560 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
1562 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
1563 resource_manager::read_resource_arg, read_one_of, parse_extensions):
1565 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
1566 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
1567 lookup_paper_size): Ditto.
1568 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
1569 (text_glob, element_list): Reorder members.
1570 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
1572 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
1573 return value to `void'.
1574 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
1576 * src/devices/grohtml/html.h (simple_output::check_newline,
1577 simple_output::space_or_newline, simple_output::enable_newlines):
1579 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
1581 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
1582 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
1583 output_ligatures, output_charset, read_map): Ditto.
1584 * src/utils/lookbib/lookbib.cc (main): Ditto.
1585 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
1586 (do_file): Fix typo (`=' -> `==').
1587 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
1588 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
1590 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
1592 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
1593 Fix usage of GROFF_BIN_PATH.
1594 * src/roff/nroff/nroff.man: Updated.
1596 2001-04-18 Werner LEMBERG <wl@gnu.org>
1598 * NEWS: Fixing typos.
1601 Version 1.17 released
1602 =====================
1604 2001-04-17 Werner LEMBERG <wl@gnu.org>
1606 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
1607 directory, not in $(srcdir).
1609 2001-04-16 Werner LEMBERG <wl@gnu.org>
1611 * doc/groff.texinfo: More info on conditionals.
1613 2001-04-15 Werner LEMBERG <wl@gnu.org>
1615 * doc/groff.texinfo: Added some info about groff internals.
1617 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
1618 about missing special character only if the name is non-null.
1620 2001-04-14 Werner LEMBERG <wl@gnu.org>
1622 Removing the grohtml-old device driver which is now obsolete.
1624 * src/devices/grohtml-old/*: Removed.
1625 * font/devhtml-old/*: Removed.
1626 * src/libgroff/htmlindicate.cc (graphic_start, graphic_end): Remove
1628 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
1629 * test-groff (PATH): Updated.
1630 * tmac/Makefile.sub (NORMALFILES): Updated.
1631 * tmac/an-old.tmac: Remove special code for html-old device.
1632 Replace `html-or-html-old' register with `an-html'.
1633 * tmac/eqnrc: Updated.
1634 * tmac/html-old.tmac: Removed.
1635 * tmac/troffrc, tmac/troffrc-end: Updated.
1636 * tmac/www.tmac: Remove special code for html-old device.
1637 Replace `html-or-html-old' register with `www-html'.
1639 * src/libgroff/tmpfile.cc (remove_tmp_files),
1640 src/libgroff/htmlindicate.cc (graphic_end), include/htmlindicate.h,
1641 src/preproc/grn/*.cc, src/roff/groff/env.{cc,h}: Remove `void'
1642 parameter if used as a single argument for consistency with rest of
1645 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
1647 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
1649 * src/roff/troff/troff.man: Fixing typos.
1651 2001-04-13 Werner LEMBERG <wl@gnu.org>
1653 * doc/pic.ms: Fixing many font switches.
1654 * doc/groff.texinfo: Fixes, additions.
1655 * MORE.STUFF: Updated.
1657 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
1659 * src/devices/grohtml/grohtml.man: Updated manual page regarding
1661 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
1663 (removeTempFiles): New function to tidy up temporary files.
1664 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
1665 Many fixes to do with the new inline suppress node and image regions
1667 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
1668 (generate_img_src): New function.
1669 (html_printer::do_auto_image): Utilizes it.
1670 (do_heading, do_title): Include inline images within their contents.
1671 (html_printer::begin_page): Tidied up comments that are issued to
1672 the html output file.
1673 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
1675 (text_glob::is_br): New method used by do_heading.
1676 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
1677 equivalent diversion.
1678 * src/include/html-strings.h: Altered image tags to reflect the
1680 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
1682 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
1683 it is already inside a pic image. Only emit tags if the argument
1684 `-Tps:html' is present.
1685 * src/preproc/tbl/main.cc: Changes to reflect additional
1686 `html_end_suppress' parameter.
1687 * src/roff/troff/env.cc: Only emit eol tag if a node has been
1688 emitted since the last eol tag was written.
1689 * src/roff/troff/env.h: New boolean `emitted_node'.
1690 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
1691 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
1692 * src/roff/troff/node.cc (check_charinfo): New method.
1693 (troff_output_file::determine_line_limits): Alterations to limit
1695 * tmac/www.tmac: Changes to reflect new suppress nodes.
1697 2001-04-12 Bruno Haible <haible@clisp.cons.org>
1699 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
1700 Escape the html_glyph in the buffer.
1701 (str_translate_to_html): Output the unescaped escaped_char.
1702 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
1703 `frame=void', not `frame=none'. Add `border=0'.
1705 2001-04-12 Werner LEMBERG <wl@gnu.org>
1707 * PROBLEMS: Add some words on how to avoid wrapper macros.
1709 2001-04-11 Blake McBride <blake@florida-software.com>
1711 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
1713 2001-04-11 Werner LEMBERG <wl@gnu.org>
1715 * font/devlbp/Makefile.sub (CLEANADD): Set it.
1716 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
1717 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
1718 * Makefile.sub (DISTCLEANFILES): Here.
1720 * libs/libgroff/new.cc: Include `nonposix.h'.
1721 * win32-diffs: Updated.
1723 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
1725 Added skeleton macro for defunct macros.
1727 Updated documentation.
1729 When inside displays, an empty input line warning should be
1730 suppressed. If another macro call is put inside a display,
1731 all subsequent empty lines found in that display caused a
1732 warning to be emitted.
1734 * tmac/doc.tmac (doc-defunct-macro): New macro.
1735 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
1736 (doc-restore-global-vars): Fixed typo.
1737 (doc-empty-line): Check the `doc-display-depth' register to
1738 determine whether we are inside display or not.
1740 * tmac/doc-common: Removed `Or' and `Sf' registers.
1741 Moved obsolete `Ds' macro to doc.tmac.
1743 * tmac/groff_mdoc.man: Bump document date.
1744 Document `.Vt' under ``Variable Types''.
1745 Removed documentation for obsolete `.Or' macro.
1747 2001-04-10 Werner LEMBERG <wl@gnu.org>
1750 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
1752 2001-04-10 Bruno Haible <haible@clisp.cons.org>
1754 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
1755 (usage): Add stream argument. Don't exit.
1756 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
1757 Write --version output to stdout, not stderr.
1758 (usage): Add stream argument. Don't exit.
1759 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
1760 (usage): Add stream argument. Don't exit.
1761 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
1763 (usage): Add stream argument. Don't exit.
1764 (main): Write --help output to stdout, not stderr.
1765 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
1766 (usage): Add stream argument. Don't exit.
1767 * src/devices/grops/ps.cc (main): Accept --help and --version.
1768 (usage): Add stream argument. Don't exit.
1769 * src/devices/grotty/tty.cc (main): Accept --help and --version.
1770 (usage): Add stream argument. Don't exit.
1771 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
1772 (main): Accept --help and --version.
1773 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
1774 (main): Accept --help and --version.
1775 * src/preproc/html/pre-html.cc (usage): Add stream argument.
1776 (scanArguments): Accept --help and --version.
1777 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
1778 (main): Accept --help and --version.
1779 * src/preproc/refer/refer.cc (main): Accept --help and --version.
1780 (usage): Add stream argument. Don't exit.
1781 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
1783 (main): Accept --help and --version.
1784 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
1785 (main): Accept --help and --version.
1786 * src/roff/groff/groff.cc (main): Accept --help and --version.
1787 (synopsis): Add stream argument.
1788 (help): Write --help output to stdout, not stderr.
1789 (usage): Add stream argument. Don't exit.
1790 * src/roff/grog/grog.pl: Accept --help and --version.
1792 * src/roff/grog/grog.sh: Accept --help and --version.
1793 * src/roff/nroff/nroff.sh: Accept --help and --version.
1794 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
1795 (usage): Add stream argument. Don't exit.
1796 (main): Accept --help and --version.
1797 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
1798 (usage): New function with stream argument, doesn't exit.
1799 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
1800 (usage): New function with stream argument, doesn't exit.
1801 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
1802 (usage): Add stream argument. Don't exit.
1803 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
1804 (main): Accept --help and --version.
1805 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
1807 (main): Accept --help and --version.
1808 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
1809 (main): Accept --help and --version.
1810 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
1811 (usage): Add stream argument. Don't exit.
1813 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
1815 Fix indentation in SYNOPSIS.
1817 Updated to include changes of latest BSD mdoc version (basically,
1818 the only change is that `.Fn' and `.Fc' put a final semicolon after
1819 a function declaration in the SYNOPSIS section).
1821 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
1822 (doc-in-synopsis-section): New variable. Updated all related
1824 (doc-indent-synopsis-active): New register.
1825 (Nd, Fn, Fo): Use it.
1826 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
1827 `.Cd' with long argument line produces indented wrapped lines.
1828 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
1829 undesirable line break to be output.
1830 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
1832 (Fn, Fc): Add final `;' to output.
1833 (doc-save-global-vars, doc-restore-global-vars): Updated.
1834 * tmac/doc-common: Remove `Ex' register.
1836 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
1839 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
1841 * tmac/doc.tmac (Cd): Simplify code.
1842 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
1844 2001-04-06 Werner LEMBERG <wl@gnu.org>
1846 Implement continuous underlining for nroff mode. To do that, a new
1847 request in the ditroff language has been added: `x u N' (N is 0
1850 \X and \Y are now transparent to end-of-sentence recognition.
1852 * src/include/printer.h (printer): Add `type' parameter to `special'
1854 * src/libs/libdriver/printer.cc (printer::special): Updated.
1855 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
1857 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
1858 specials of type `p'.
1859 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
1860 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
1861 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
1862 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
1863 (glyph::order): New method.
1864 (tty_printer::add_char): Use it.
1865 (tty_printer::special): New method.
1866 (tty_printer::end_page): Implement it.
1868 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
1869 * src/roff/troff/node.cc (special_node::special_node): Add parameter
1870 to set `no_init_string'.
1871 (special_node::tprint_start): Use it.
1872 (special_node::same, special_node::copy): Updated.
1873 (special_node::ends_sentence): New method.
1874 (troff_output_file::start_special): Add parameter to include
1875 inititialization of special conditionally.
1877 * src/roff/troff/env.h (environment): New member `underline_spaces'.
1878 * src/roff/troff/env.cc (do_underline_special): New function.
1879 (environment::set_font): Use it.
1880 (do_underline): Use it. This was `underline()'.
1881 (underline): Call `do_underline()'.
1882 (continuous_underline): New function which calls `do_underline()'.
1883 (environment::newline): Use `do_underline_special()'.
1884 (init_env_requests): Updated.
1886 * NEWS, man/troff_out.man: Updated.
1888 2001-04-06 Bruno Haible <haible@clisp.cons.org>
1890 * font/devutf8/R.proto: Fix code of 'shc'.
1892 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
1894 Many fixes. Diag lists can now be nested also; additionally,
1895 `-compact' and `-offset' are supported.
1897 * tmac/doc.tmac (doc-have-indent): Replaced with ...
1898 (doc-list-have-indent-stackXXX): A new register stack.
1899 (doc-have-diag-list): Removed.
1900 (Bl): Use `doc-list-have-indent-stackXXX'.
1902 (doc-diag-list): Use `doc-compact-list-stackXXX'.
1903 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
1904 (doc-set-vertical-and-indent): Ditto.
1905 (doc-next-list-depth): Removed.
1906 (doc-increment-list-stack): Updated.
1907 (doc-decrement-list-stack): Use `doc-list-depth' instead of
1908 `doc-next-list-depth'.
1909 (doc-end-list, doc-end-column-list): Don't use
1910 `doc-increment-list-stack'.
1911 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
1912 (doc-save-global-vars, doc-restore-global-vars): Updated.
1913 * tmac/doc-common: Updated.
1914 * tmac/groff_mdoc.man: Updated.
1917 2001-04-02 Werner LEMBERG <wl@gnu.org>
1919 * src/devices/grotty/grotty.man: Fix grammatical error.
1921 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
1923 Remove .Ld from mdoc package; replace it with special handling of
1926 * tmac/doc-common: Remove `Ld' register.
1927 Uncomment `doc-volume-ds-*' strings.
1928 Remove `doc-operating-system-default'.
1930 * tmac/doc-syms (Ld): Removed.
1931 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
1935 * tmac/groff_mdoc.man: Many fixes and updates.
1937 2001-03-29 Werner LEMBERG <wl@gnu.org>
1939 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
1940 Bond <tkb@tkb.mpl.com>.
1941 * tmac/www.tmac: Save compatibility mode.
1943 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
1945 * tmac/groff_mdoc.man: Many fixes.
1947 2001-03-28 Werner LEMBERG <wl@gnu.org>
1949 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
1952 2001-03-27 Werner LEMBERG <wl@gnu.org>
1954 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
1955 diversion. This fixes overlong tags.
1957 2001-03-26 Werner LEMBERG <wl@gnu.org>
1959 * doc/groff.texinfo: Fixed and improved documentation of fonts.
1960 * tmac/doc-syms: Fix error messages.
1961 * tmac/an-old.tmac: Remove incorrect double backslashes.
1963 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
1965 * tmac/Makefile.sub: Strip mdoc.local also
1966 * tmac/strip.sed: Fixed.
1968 2001-03-24 Werner LEMBERG <wl@gnu.org>
1970 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
1971 selecting the font size.
1972 * tmac/groff_mdoc.man, NEWS: Document it.
1974 2001-03-23 Werner LEMBERG <wl@gnu.org>
1976 * src/roff/troff/div.cc (save_vertical_space): Add default argument
1978 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
1979 argument to restore previous font family.
1980 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
1982 * doc/groff.texinfo: More fixes and additions (mainly for font
1983 manipulating commands).
1985 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
1986 * tmac/groff_mdoc.man: This. The quick reference has been removed.
1987 * tmac/Makefile.sub, NEWS: Updated.
1989 2001-03-23 Werner LEMBERG <wl@gnu.org>
1991 Replaced mdoc implementation. The new version is `state of the
1992 art', using almost all new features of groff 1.17 -- it won't run
1993 with older versions.
1995 * tmac/doc.tmac: Completely rewritten.
1996 * tmac/doc-common: Ditto.
1997 * tmac/doc-nroff: Ditto.
1998 * tmac/doc-ditroff: Ditto.
1999 * tmac/doc-syms: Ditto.
2000 * tmac/mdoc.local: New file.
2001 * tmac/groff_mdoc.samples.man: Replaced with ...
2002 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
2003 * tmac/strip.sed: Updated.
2004 * tmac/Makefile.sub: Updated.
2007 * tmac/groff_man.man: Add `man.local' to the FILES section.
2009 2001-03-22 Werner LEMBERG <wl@gnu.org>
2011 * doc/groff.texinfo: Added many @noindent.
2012 Replaced @end_Example -> @endExample.
2013 Added info whether registers are r/o.
2014 Many other additions and fixes.
2016 2001-03-21 Werner LEMBERG <wl@gnu.org>
2018 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
2019 in makeinfo of texinfo 4.0) to be used in @Def* macros.
2020 Improved @Def* macros: Now the exact syntax of request, register,
2021 and escapes is shown.
2022 Added macros for parentheses and brackets to be used in @Def*.
2023 Many fixes and improvements of the documentation.
2025 2001-03-20 Werner LEMBERG <wl@gnu.org>
2027 * doc/groff.texinfo: Added new index: `st' (for strings).
2028 Added macros @Defstr(x).
2029 Added macro @Example (adding @group).
2030 Other minor improvements.
2032 2001-03-19 Werner LEMBERG <wl@gnu.org>
2034 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
2035 `rq' for requests. `fn' is no longer used.
2036 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
2039 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
2040 number with name of man page.
2042 2001-03-19 Larry Kollar <kollar@alltel.net>
2044 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
2047 2001-03-19 Werner LEMBERG <wl@gnu.org>
2049 * man/groff_font.man: Document `prepro', `postpro', and `print'.
2050 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
2051 * src/devices/grohtml/grohtml.man: Fixing typos.
2053 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
2055 * tmac/s.tmac (@IP): Pass `.ip' html tag.
2056 * tmac/groff_mwww.man: Remove .LINE macro
2057 * tmac/www.tmac (LINE): Add `.ti'.
2059 * src/devices/grohtml/post-html.cc (html_printer): New member
2061 (html_printer::emit_raw): Use it.
2062 (html_printer::do_linelength): Ditto.
2063 (html_printer::do_pageoffset): Ditto.
2064 (html_printer::do_indentation): Ditto.
2065 (html_printer::do_tempindent): Ditto.
2066 (html_printer::do_break): Ditto.
2067 (html_printer::begin_page): Ditto.
2068 (html_printer::do_indentedparagraph): New function.
2069 (html_printer::troff_tag): Handle `.ip'.
2070 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
2071 Add `<td width=...>' handling.
2072 (html_text::do_table): Add parameter.
2073 (html_text::do_indent): Updated.
2074 * src/devices/groohtml/html-text.h: Updated.
2076 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
2078 Introduced simple html tables to implement indentation.
2080 * src/devices/grohtml/html.h (word, word_list): New structures.
2081 (simple_output): Use it.
2082 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
2083 (html_printer): Improve indentation handling.
2084 (html_printer::emit_raw): Set `in_table' element. Handle
2086 (html_printer::write_header): Move conditional downwards.
2087 Don't allow whitespace in tags.
2088 (html_printer::do_linelength): Handle line length and indentation
2090 (html_printer::do_pageoffset): Handle indentation conditionally.
2091 (html_printer::do_indentation): Ditto.
2092 (html_printer::do_tempindent): New function member.
2093 (html_printer::do_fill): Take care of indentation.
2094 (html_printer::do_flush): Finish table.
2095 (html_printer::do_links): Ditto.
2096 (html_printer::do_break): New function for handling `.br' and `.ti'.
2097 (html_printer::troff_tag): Use it.
2099 (html_printer::flush_globs): Fix.
2100 (html_printer::flush_page): Finish table.
2101 (html_printer::html_printer): Fix error message. Set up
2103 (html_printer::add_to_sbuf): Remove special handling of character
2105 (to_unicode): Remove `stop()'.
2106 (html_printer::write_title): Cleanup.
2107 (html_printer::begin_page): Use `put_string()'. Handle indentation.
2108 (html_printer::~html_printer): Flush text and end the line.
2110 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
2111 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
2113 (html_text::start_tag): Disable newlines.
2114 (html_text::table_is_void): New function.
2115 (html_text::issue_table_begin): Ditto.
2116 (html_text::issue_table_end): Ditto.
2117 (html_text::push_para): Better table handling.
2118 (html_text::do_indent): New function.
2119 (html_text::do_table): Ditto.
2120 (html_text::done_table): Ditto.
2121 (html_text::do_tt): Handle PRE_TAG.
2122 (html_text::is_in_table): New function.
2123 (html_text::check_emit_text): Handle tables.
2124 (html_text::do_emittext): Use `nl()'.
2125 (html_text::do_para): Handle table.
2126 (html_text::remove_def): New function.
2127 * src/devices/grohtml/output.cc (word, word_list): Implement
2129 (simple_output::end_line): Flush last word.
2130 (simple_output::simple_comment): Ditto.
2131 (simple_output::begin_comment): Recoded.
2132 (simple_output::end_comment): Ditto.
2133 (simple_output::comment_arg): Removed.
2134 (simple_output::check_newline): Improve test and flush last word.
2135 (simple_output::space_or_newline): Improved.
2136 (simple_output::write_newline): Replaced with...
2137 (simple_output::nl): This.
2138 (simple_output::put_raw_char): Flush last word.
2139 (simple_output::check_space): Removed.
2140 (simple_output::put_translated_string): Ditto.
2141 (simple_output::put_string): Simplified.
2142 (simple_output::put_number): Updated.
2143 (simple_output::put_float): Ditto.
2144 (simple_output::put_symbol): Removed.
2145 (simple_output::enable_newlines): Add `check_newline()'.
2146 (simple_output::flush_last_word): New function.
2148 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
2149 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
2151 * tmac/s.tmac (@PP, @IP): Add html conditional code.
2152 * tmac/an-old.tmac (TP): Ditto.
2154 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
2156 * mdate.sh: Make it POSIX compliant.
2158 2001-03-09 Werner LEMBERG <wl@gnu.org>
2160 Added the `return' request to end a macro immediately. It simply
2161 pops iterators from the input stack until a macro iterator is found.
2163 * src/roff/troff/input.cc (input_iterator::is_macro,
2164 macro_iterator::is_macro): New member.
2165 (input_return_boundary): New class to signal an immediate return
2167 (input_stack::add_return_boundary, input_stack::is_return_boundary):
2169 (input_stack::clear): Use it.
2170 (input_stack::pop_macro): New function.
2171 (while_request): Use `is_return_boundary()'.
2172 (return_macro_request): New function.
2173 (init_input_requests): Use it.
2175 * src/roff/troff/TODO: Updated.
2176 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2178 2001-03-08 Werner LEMBERG <wl@gnu.org>
2180 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
2183 2001-03-07 Werner LEMBERG <wl@gnu.org>
2185 Make `\B' more rigid.
2187 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
2189 (get_number_rigidly): New function.
2190 * src/roff/troff/input.cc (do_expr_test): Use it.
2191 * src/roff/troff/token.h: Updated.
2193 * src/roff/troff/request.h: Fix typo (init_html_request ->
2194 init_markup_request).
2196 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
2198 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
2199 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
2200 are now `.begin', `.end', `.image'.
2202 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
2203 (html_printer::add_to_sbuf): Changing type of `code' parameter.
2204 Use add_char_to_sbuf().
2205 (to_unicode): New function.
2206 (char_translate_to_html): Changing type of `ch' parameter.
2208 (html_printer::~html_printer): Comment out doctype string.
2209 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
2210 instead of `.html-end'.
2211 (write_start_image): Use `.begin' and `.image' instead of
2212 `.html-begin' and `.html-image'.
2213 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
2214 (html_begin): Renamed to ...
2216 (html_end): Renamed to ...
2218 (html_image): Renamed to ...
2220 (init_html_requests): Renamed to ...
2221 (init_markup_requests): This.
2222 * tmac/www.tmac: Updated.
2224 2001-02-28 Bram <bram@avontuur.org>
2226 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
2229 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
2231 * doc/meref.me: Fixing some typos.
2233 2001-02-16 Werner LEMBERG <wl@gnu.org>
2235 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
2236 method. Return `HYPHEN_MIDDLE' if it was `\:'.
2237 * src/roff/troff/node.h: Updated.
2239 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
2241 * tmac/groff_tmac.man: Fix typo.
2243 2001-02-16 Werner LEMBERG <wl@gnu.org>
2245 Fixing a bug which prevented proper end-of-sentence recognition
2246 between an `unformatted' box and the following text. As a
2247 consequence, vertical line distances are no longer preserved in
2248 boxes after a call to `.unformat' -- because boxes aren't
2249 line-oriented (contrary to diversions), this doesn't make sense
2252 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
2254 (vertical_size_node::set_unformat_flag): New method.
2255 * src/roff/troff/node.hh: Updated.
2256 * src/roff/troff/input.cc (word_space_node::reread,
2257 hmotion_node::reread): Reset `unformat' flag after usage.
2258 (unformat_macro): Append only if `set_unformat_flag()' returns
2260 * src/roff/troff/troff.man: Updated.
2262 2001-02-15 Werner LEMBERG <wl@gnu.org>
2264 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
2265 documentation of `asciify' and `unformat' requests.
2267 2001-02-13 Werner LEMBERG <wl@gnu.org>
2269 Redesigned the `unformat' request. It is no longer connected with
2270 `asciify' but rather uses new `reread()' methods if the `unformat'
2271 flag is set. Additionally, the handling of space characters after
2272 unformatting has been fixed so that they retain their width.
2274 * src/roff/troff/node.h (width_list): New structure to store
2275 original widths of spaces.
2276 (node): Added `unformat' member.
2277 Replaced `num_spaces' variable with `orig_width' list.
2278 * src/roff/troff/node.cc (*node::asciify,
2279 asciify_reverse_node_list): Removed `unformat_only' flag and related
2281 (word_space_node::asciify, word_space_node::word_space_node): Use
2283 (word_space_node::~word_space_node): New destructor.
2284 (word_space_node::copy): Updated to handle `orig_width'.
2285 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
2286 (*node::merge_space): Update `orig_width' list if necessary.
2287 (*node::set_unformat_flag): New methods to set the `unformat' flag.
2288 * src/roff/troff/enc.cc (environment::space_newline): Use
2290 (environment::space): Added method to handle space width and
2291 sentence space width as parameters. Use `width_list'.
2292 (environment::make_tab_node): Updated.
2293 * src/roff/troff/env.h: Updated.
2294 * src/roff/troff/input.cc (word_space_node::reread,
2295 unbreakable_space_node::reread, hmotion_node::reread): New methods
2296 to handle nodes specially if `unformat' flag is set.
2297 (do_asciify_macro): Renamed back to ...
2298 (asciify_macro): This.
2299 (unformat_macro): New implementation to simply set the `unformat'
2302 * MORE.STUFF: Added more info about deroff.
2304 2001-02-08 Werner LEMBERG <wl@gnu.org>
2306 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
2307 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
2308 and `add_self()' methods to avoid hyphenation. For example, the
2309 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
2310 soft hyphen after `foo'. Now the hyphen list is correctly
2311 `foo<ignore><ignore>bar'.
2313 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
2315 * tmac/groff_tmac.man: Fix `BIR' macro.
2317 2001-02-04 Werner LEMBERG <wl@gnu.org>
2319 A new escape sequence `\:', inserting a zero-width break point.
2321 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
2322 * src/roff/troff/input.cc (get_copy, token::next, asciify):
2324 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
2326 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
2327 and `asciify()' methods.
2328 * src/roff/troff/node.cc (space_node::space_node): Updated.
2329 (space_node::asciify): Handle `was_escape_colon'.
2330 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2332 Handle `\~' similar to other comparable requests.
2334 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
2336 (token::next): Move creation of an unbreakable_space_node to...
2337 (token::add_to_node_list): Here.
2339 Fix a bug which sometimes prevented hyphenation of words connected
2340 with `\~' or `\ ' (and other escape sequences handled as
2341 TOKEN_NODE). This also fixes a hyphenation problem with boxes
2342 (after a call to the `unformat' request).
2344 * src/roff/troff/env.h (environment::possibly_break_line,
2345 environment::hyphenate_line): Introducing `start_here' parameter.
2346 * src/roff/troff/env.cc (environment::space_newline,
2347 environment::space): Use it.
2348 (environment::possibly_break_line, environment::hyphenate_line):
2350 * src/roff/troff/input.cc (process_input_stack): Use it.
2351 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
2352 space_char_hmotion_node, overstrike_node): Add
2353 `get_hyphenation_type()' method.
2354 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
2355 if `unformat_only' is active.
2357 2001-01-30 Werner LEMBERG <wl@gnu.org>
2359 Implemented new read-only number register `.linetabs' which
2360 returns 1 if in line-tabs mode, 0 otherwise.
2362 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
2363 * src/roff/troff/env.cc (get_line_tabs): New function.
2364 (init_env_requests): Use it.
2365 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2367 * VERSION, REVISION: Changing to 1.17.0.
2369 2001-01-28 Werner LEMBERG <wl@gnu.org>
2371 Fixed a bug which prevented hyphenation of words which are finished
2374 * src/roff/troff/token.h (token): Add enum type
2375 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
2376 * src/roff/troff/input.cc (token::next, token::description,
2377 get_line_arg, token::add_to_node_list, token::process): Use it.
2379 2001-01-27 Werner LEMBERG <wl@gnu.org>
2381 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
2382 * src/roff/troff/div.cc (do_divert): Use it.
2384 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
2386 2001-01-25 Werner LEMBERG <wl@gnu.org>
2388 Adding the `linetabs' request. If set, tab distances are not
2389 computed relative to the input line but relative to the output line.
2391 * src/roff/troff/env.h (environment): New member `line_tabs'.
2392 * src/roff/troff/env.cc (line_tabs_request): Implement request.
2393 (environment::environment, environment::copy): Updated.
2394 (environment::distance_to_next_tab): Use `line_tabs'.
2395 (init_env_requests): Register request.
2396 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
2399 2001-01-24 Werner LEMBERG <wl@gnu.org>
2401 Introducing a new read-only register `.int' which is set to a
2402 positive value if the last output line is interrupted (i.e., if it
2405 * src/roff/troff/env.cc (init_env_requests): Add it.
2406 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2408 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
2410 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
2411 * src/preproc/html/pre-html.cc (findPrefix): New function which
2412 generates the troff executable name via the system prefix.
2413 * src/preproc/eqn/main.cc: Modified warning message.
2415 2001-01-23 Werner LEMBERG <wl@gnu.org>
2417 troff's `box' and `boxa' requests didn't preserve temporary
2420 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
2421 `saved_target_text_length' members.
2422 * src/roff/troff/div.cc (do_divert): Use them.
2424 Tabs (but not yet leaders and fields) are now handled correctly by
2427 * node.h (hmotion_node): Add field `was_tab'.
2428 * env.cc (environment::make_tab_node): Set it.
2429 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
2431 Added new request `unformat' which will, contrary to `asciify',
2432 preserve font information after unformatting (i.e., only nodes
2433 dealing with horizontal space are converted back to input
2436 * input.cc (asciify_macro): Renamed to ...
2437 (do_asciify_macro): this, having a new parameter `unformat_only'.
2438 (asciify_macro, unformat_macro): New; using do_asciify_macro.
2439 (init_input_requests): Added `unformat'.
2440 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
2441 parameter to control asciification process.
2442 * node.h (*_node::asciify): Ditto.
2443 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2445 2001-01-20 Werner LEMBERG <wl@gnu.org>
2447 * doc/groff.texinfo: Minor improvement of `.in' documentation.
2449 2001-01-18 Werner LEMBERG <wl@gnu.org>
2451 * tmac/ps.tmac: Remove call of psold.tmac.
2452 * tmac/psold.tmac: Comment updated.
2453 * tmac/psnew.tmac: Removed since no longer needed.
2454 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
2456 * font/devutf8/R.proto: Adding `shc' glyph.
2457 * font/devutf8/NOTES: Updated.
2459 * test-groff: Updated.
2461 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
2463 First cut of the new html device driver. Changes to pre-html and
2464 the new grohtml are too numerous to be documented here.
2466 Stuff related to `html' has been renamed to `html-old' and `html2'
2467 stuff has been renamed to `html' (including directories). The new
2468 html device driver is therefore invoked as `-Thtml'.
2470 Added new `\O' escape to suppress output (needed by html driver).
2472 Added functions and code to pass info about input-level commands
2473 (`.in', `.fl', etc.) to html driver.
2475 Three new functions (.html-begin, .html-end, and .html-image) for
2476 better html handling: `html-begin' will execute the remaining line
2477 if at the outermost nesting level, increasing an internal counter.
2478 `html-end' does the same but decreases the internal counter.
2479 `html_image' puts its arguments into a special node (suppress_node)
2480 to define an image region.
2482 The `output' request has been removed.
2484 * tmac/html-tags.tmac: Removed.
2485 * tmac/arkup.tmac: Updated and renamed to ...
2486 * tmac/www.tmac: New file.
2487 * tmac/markup.tmac Updated and renamed to ...
2488 * tmac/mwww.tmac: New file.
2489 * tmac/Makefile.sub: Updated.
2490 * tmac/an-old.tmac: Updated.
2491 * tmac/eqnrc: Updated.
2492 * tmac/groff_man.man
2493 * tmac/groff_markup.man: Updated and renamed to ...
2494 * tmac/groff_mwww.man: New file.
2495 * tmac/groff_tmac.man: Updated.
2496 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
2497 * tmac/html.tmac: Updated and renamed from html2.tmac.
2498 * tmac/pspic.tmac: Updated html support.
2499 * tmac/s.tmac: Added html output support.
2500 * tmac/troffrc, tmac/troffrc-end: Updated.
2502 * Makefile.in, doc/Makefile: Updated.
2503 * doc/groff.texinfo: Added info about new `\O' escape.
2504 * doc/homepage.ms: Use `MAILTO' macro.
2506 * font/devhtml/DESC.proto: Add `C' font.
2507 * font/devhtml/Makefile.sub: Updated.
2508 * font/devhtml/R.proto: Minor fixes.
2509 * font/devhtml-old/Makefile.sub: Updated.
2511 * src/devices/grohtml-old/Makefile.sub: Updated.
2513 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
2515 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
2516 graphic_start): Add `inline' parameter. Update.
2517 (html_end_suppress, graphic_end): Update.
2519 * src/include/html-strings.h: New file.
2520 * src/include/htmlindicate.h: Comments updated.
2521 * src/include/printer.h: Updated.
2523 * src/preproc/eqn/main.cc (do_file, main): Updated.
2524 * src/preproc/pic/troff.cc (troff_output::start_picture,
2525 troff_output::finish_picture): Updated.
2526 * src/preproc/tbl/main.cc (process_input_file): Updated.
2528 * src/roff/groff/groff.cc (main): Updated.
2529 Pass device arguments to predrivers also.
2530 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
2531 * src/roff/troff/env.h (environment): Updated.
2532 New elements `need_eol' and `ignore_next_eol' (for html output).
2533 * src/roff/troff/env.cc (environment::environment): Add initializers
2534 for `need_eol' and `ignore_next_eol'.
2535 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
2537 (point_size, fill, no_fill, center, right_justify, line_length,
2538 indent, temporary_indent, break_request, handle_tab): Use
2540 (set_tabs): Use `add_html_tag_tabs()'.
2541 (environment::add_html_tag): Updated.
2542 (environment::do_break): Updated.
2543 * src/roff/troff/div.cc (space_request, flush_output): Use
2544 `environment::add_html_tag()'.
2545 * src/roff/troff/input.cc: Updated.
2546 New variable `html_level' to indicate nested `html-begin' requests.
2547 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
2548 (non_interpreted_char_node, token_node, non_interpreted_node): Add
2549 `force_tprint()' method.
2550 (token::next): Handle `\O'.
2551 (do_suppress): Implement it.
2552 (html_begin, html_end, html_image): New functions.
2553 (init_output_requests): Renamed to ...
2554 (init_html_requests): this.
2556 (macro::append_str, macro::append_unsigned, macro::append_int): New
2558 New variable `output_low_mark_miny' to limit minimal value of y.
2559 (reset_output_registers): Use it.
2560 (output_request): Removed.
2561 (get_output_registers): New function.
2562 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
2563 (*_node): Added `force_tprint()' if necessary.
2564 (special_node): New elements `tf' and `get_tfont()'.
2565 (suppress_node): New class.
2566 * src/roff/troff/node.cc:
2567 New global variables `image_no' and `suppress_start_page'.
2568 (real_output_file): New method `is_on()'.
2569 (troff_output_file): New method `start_special(tfont)'.
2570 (troff_output_file::really_print_line): Use `tprint' conditionally.
2571 (real_output_file::print_line): Updated.
2572 (real_output_file::on): Updated.
2573 (*_node): Added `force_tprint()'.
2574 (special_node::special_node): Initializer updated.
2575 (special_node::same, special_node::copy, special_node::tprint_start):
2577 (get_reg_int, get_reg_str): New functions.
2578 (suppress_node::*): New methods.
2579 New global variables last_position, last_image_filename;
2580 (min): New inline function.
2581 * src/roff/troff/reg.h, src/roff/troff/request.h,
2582 src/roff/troff/troff.h: Updated.
2584 2001-01-13 Werner LEMBERG <wl@gnu.org>
2586 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
2587 documentation of `asciify' request.
2589 2001-01-12 Werner LEMBERG <wl@gnu.org>
2591 * src/roff/troff/input.cc: Move definition of special characters
2592 like `ESCAPE_TILDE' to ...
2593 * src/roff/troff/input.h: New file.
2594 * src/roff/troff/Makefile.sub (HDRS): Add it.
2596 Extending the .asciify request to `unformat' space characters also.
2598 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
2599 to count input space characters.
2600 Update constructors to take care of it.
2601 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
2602 `ESCAPE_SPACE' instead of normal space.
2603 (word_space_node::asciify): New method.
2604 (unbreakable_space_node::asciify): New method.
2605 (word_space_node::merge_space): New method.
2606 * src/roff/troff/env.cc (environment::space_newline,
2607 environment::space): Add code to initialize `num_spaces' (using the
2608 constructor of `word_space_node').
2609 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
2612 2001-01-09 Werner LEMBERG <wl@gnu.org>
2614 * man/groff_char.man: Use table header traps only conditionally.
2616 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
2618 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
2620 2001-01-08 Werner LEMBERG <wl@gnu.org>
2622 Introducing the `box' and `boxa' requests which are similar to
2623 `di' resp. `da' but omitting a partially filled line (which is
2624 restored after ending the diversion).
2626 * src/roff/troff/div.h (diversion): Add elements to save partially
2628 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
2629 partially filled line.
2630 (divert, divert_append): Updated.
2631 (box, box_append): New functions.
2632 (init_div_requests): Use them.
2633 * src/roff/troff/env.h (environment): do_divert() is now a friend.
2634 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2636 * doc/groff.texinfo: Fix documentation of `lf' request.
2638 2000-12-25 Werner LEMBERG <wl@gnu.org>
2640 * src/roff/troff/troff.man, NEWS: Document `writem' request.
2642 2000-12-21 Werner LEMBERG <wl@gnu.org>
2644 Ignore `ss' request if in compatibility mode.
2646 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
2647 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
2648 * src/roff/troff/env.cc (space_size): Use it.
2650 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
2651 `ss' request in nroff mode.
2653 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
2656 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
2658 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
2660 2000-12-13 Werner LEMBERG <wl@gnu.org>
2662 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
2663 * src/preproc/eqn/neqn.man: Small fixes and additions.
2665 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
2667 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
2670 * src/preproc/eqn/neqn.man: New file.
2672 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
2675 * tmac/e.tmac: Add `T&' macro.
2676 Fix `indent cannot be negative' warning.
2677 * tmac/s.tmac: Fix `indent cannot be negative' warning.
2679 2000-12-07 Werner LEMBERG <wl@gnu.org>
2681 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
2683 2000-12-06 Werner LEMBERG <wl@gnu.org>
2685 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
2688 * MORE.STUFF: Added info about deroff for djgpp.
2690 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
2691 documentation of -rcR switch.
2693 2000-12-03 Werner LEMBERG <wl@gnu.org>
2695 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
2696 if -rcR=1 (which is now the default in nroff mode), a single, very
2697 long page is created instead of multiple pages: All `ne' and `wh'
2698 requests are put into conditionals; a new macro `an-end' is added to
2699 be called with `em'.
2701 Some other minor cleanups.
2703 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
2705 2000-12-02 Werner LEMBERG <wl@gnu.org>
2707 Fixing a bug which prevented hyphenation in words followed
2708 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
2710 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
2711 Adding possibly_break_line().
2712 * src/roff/troff/env.h (environment): Make possibly_break_line()
2715 Make `\~' usable in .tr request.
2717 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
2718 (token): Add stretchable_space().
2719 * src/roff/troff/input.cc (token::next, token::delimiter,
2720 token::description, process_input_stack, do_translate,
2721 add_to_node_list, token::process): Use it.
2722 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
2723 for adjusting the space.
2724 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
2725 for stretchable space.
2726 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
2727 (make_node): Add code for stretchable space.
2728 * src/roff/troff/env.cc (environment::add_char): Use it.
2729 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
2730 (get_copy, token::next, transparent_translate, asciify): Use it.
2732 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
2733 doc/groff.texinfo: Updated.
2734 * man/groff.man: Small reorderings.
2736 2000-11-23 Werner LEMBERG <wl@gnu.org>
2739 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
2741 * src/roff/troff/input.cc (main): Add `config_macro_path' and
2742 `safer_macro_path' to -M option.
2743 * src/roff/troff/troff.man: Fixes.
2745 2000-11-22 Werner LEMBERG <wl@gnu.org>
2747 Use safer path (except for config files) if -U isn't specified. Add
2748 a special macro path (without home and current directory) for config
2749 files. Add home directory to unsafe path for consistency. Don't
2750 include the home directory in the font path.
2752 * src/lib/libgroff/macropath.cc: Add `config_macro_path', change
2754 * src/include/macropath.h: Add `config_macrp_path'.
2755 * src/lib/libgroff/fontfile.cc: Fix font path.
2756 * src/roff/troff/input.cc (process_startup_file): Use
2757 `config_macro_path'.
2758 (main): Select unsafe path if -U is given.
2760 * src/preproc/eqn/main.cc (main): Fixing search path for
2762 * src/preproc/eqn/eqn.man: Updated.
2764 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
2767 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
2768 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
2769 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
2770 src/devices/grotty/grotty.man: Updated.
2772 * Makefile.in: Fix comments.
2774 2000-11-17 Werner LEMBERG <wl@gnu.org>
2776 * tmac/safer.tmac: Empty file added (again) for compatibility
2778 * tmac/Makefile.sub: Updated.
2780 2000-11-16 Werner LEMBERG <wl@gnu.org>
2782 * src/devices/grodvi/dvi.cc (main),
2783 src/devices/grohtml2/post-html.cc (main),
2784 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
2785 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
2786 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
2787 (main), src/preproc/html2/pre-html.cc (main),
2788 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
2789 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
2790 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
2791 (main), src/utils/hpftodit/hpftodit.cc (main),
2792 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
2793 (main), src/utils/lookbib/lookbib.cc (main),
2794 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
2795 (main): Use stdout for -v.
2796 * src/roff/groff/groff.cc (run_commands),
2797 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
2798 to make direct printing to stdout possible.
2799 * src/roff/groff/pipeline.h: Updated.
2801 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
2802 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
2803 * src/utils/afmtodit/afmtodit.man: Updated.
2805 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
2806 (version): New function.
2808 * src/utils/addftinfo/addftinfo.man: Updated.
2810 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
2811 Fixing copyright dates.
2813 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
2816 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
2819 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
2821 2000-11-15 Werner LEMBERG <wl@gnu.org>
2823 In all programs, make -v return immediately with exit status 0 to
2824 be compliant with the GNU standard.
2826 * src/devices/grodvi/dvi.cc (main),
2827 src/devices/grohtml2/post-html.cc (main),
2828 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
2829 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
2830 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
2831 (main), src/preproc/html2/pre-html.cc (main),
2832 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
2833 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
2834 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
2835 (main): Implement it.
2838 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
2839 and postprocessors to the -v option.
2841 * src/roff/grog/grog.pl: Implement -v.
2842 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
2843 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
2845 * src/roff/nroff/nroff.sh: Implement -v.
2846 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
2847 * src/roff/nroff/nroff.man: Updated.
2849 * src/preproc/eqn/main.cc (main): Fix comment typo.
2851 * MORE.STUFF: Added info about djgpp port of grap.
2853 2000-11-14 Werner LEMBERG <wl@gnu.org>
2855 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
2856 mode (or rather, implemented non-compatibility mode).
2857 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
2859 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
2860 replacing it -- we don't find gxditview otherwise.
2861 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
2863 * src/preproc/pic/depend: Removed. Unnecessary.
2865 Implemented dummy keyword `solid' in pic for compatibility with
2868 * lex.cc (lookup_keyword): Added `solid'.
2869 * pic.y: Added SOLID with dummy rule.
2870 * pic.cc, pic_tab.h: Regenerated.
2871 * doc/pic.ms: Updated.
2873 2000-11-13 Werner LEMBERG <wl@gnu.org>
2875 For security reasons, don't use the current directory but the home
2876 directory while searching and scanning troffrc and troffrc-end.
2877 Similarly, replace the current directory with the home directory
2880 * Makefile.in (fontpath, tmacpath): Remove current directory.
2882 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
2883 two parameters `add_home' and `add_current'.
2884 (search_path::~search_path, search_path::command_line_dir,
2885 search_path::open_file): Remove tests for `dirs' being zero.
2886 * src/include/searchpath.h: Adjust.
2887 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
2889 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
2891 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
2892 * src/roff/troff/input.cc: Use `mac_path', initialized with
2894 (process_startup_file): Set `mac_path' to `safer_macro_path'.
2895 * src/roff/troff/env.cc: Use `mac_path'.
2897 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
2899 * NEWS, man/roff.man, src/roff/troff/troff.man,
2900 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
2903 2000-11-12 Werner LEMBERG <wl@gnu.org>
2905 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
2907 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
2908 * configure.in: Fix typo in comment.
2909 * configure: Regenerated.
2911 * src/libgroff/*, src/include/*, src/roff/troff/*: Fixing copyright
2914 2000-11-08 Werner LEMBERG <wl@gnu.org>
2916 Add system tmac directory (/usr/local/lib/groff/site-tmac).
2918 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
2919 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
2922 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
2923 * tmac/Makefile.sub (install_data): Create
2924 $(systemtmacdir) and $(localtmacdir).
2925 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
2926 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
2927 NEWS, doc/groff.texinfo: Updated and minor fixes.
2929 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
2930 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
2931 $(systemtmacdir) since the wrapper files are platform-dependent.
2933 2000-11-01 Werner LEMBERG <wl@gnu.org>
2935 * doc/groff.texinfo: Fix typo.
2937 2000-10-26 Werner LEMBERG <wl@gnu.org>
2939 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
2940 tmac.doc.old -> doc-old.tmac
2941 tmac.an.old -> an-old.tmac
2943 * tmac/tmac.*: Moved to ...
2944 * tmac/*.tmac: this.
2945 * tmac/man.local: Fix comment.
2946 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
2947 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
2948 Added some `FILES' sections. More use of @...@ directives. Other
2950 * arch/djgpp/README, font/devutf8/NOTES: Updated.
2951 * doc/homepage.ms, doc/groff.texinfo: Updated.
2952 * man/groff.man, man/roff.man: Updated.
2953 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
2954 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
2955 src/devices/grotty/grotty.man: Updated.
2956 * src/preproc/pic/pic.man: Updated.
2957 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
2958 instead of -mdoc.old.
2959 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
2960 * src/roff/nroff/nroff.man: Updated.
2963 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
2965 * tmac/mm.diff: Removed -- it has no use now since the mm package
2968 * tmac/*: Removed trailing spaces.
2970 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
2971 the tmac subdirectory also).
2973 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
2974 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
2975 stuff since it is no longer needed.
2977 * README, PROBLEMS: Updated.
2979 2000-10-25 Werner LEMBERG <wl@gnu.org>
2981 Invert current behaviour: Search first FOOBAR.tmac, then
2984 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
2985 (open_mac_file, macro_source): Implement it.
2986 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
2987 doc/groff.texinfo, NEWS: Document it.
2989 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
2990 Small documentation improvements.
2992 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
2995 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
2997 2000-10-24 Werner LEMBERG <wl@gnu.org>
2999 Add local tmac directory (groff/site-tmac).
3001 * Makefile.in: Add $(localtmacdir).
3002 (uninstall_dirs): Add $(localtmacdir).
3003 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
3004 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
3005 in $(localtmacdir). Create $(localtmacdir).
3006 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
3007 Updated and minor fixes.
3009 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
3011 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
3013 2000-10-23 Werner LEMBERG <wl@gnu.org>
3015 Move hyphen.us to tmac directory.
3017 * src/roff/troff/hyphen.us: Removed.
3018 * src/tmac/hyphen.us: Added.
3019 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
3021 Change installation structure for data files from .../groff/... to
3022 .../groff/<version><revision>/... to be conform with other GNU
3025 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
3026 doc/Makefile: Implement it.
3027 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
3028 * configure: Updated.
3029 * arch/djgpp/README, font/devutf8/NOTES: Use it.
3030 * NEWS: Document it.
3031 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
3032 @MACRODIR@ instead of hard-coded directories.
3034 2000-10-22 Werner LEMBERG <wl@gnu.org>
3036 Implement $GROFF_BIN_PATH environment variable (which defaults to
3037 $bindir) used for child programs of groff and similar wrappers.
3039 * gendefs.sh: Improve documentation.
3040 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
3041 src/preproc/eqn/Makefile.sub (neqn),
3042 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
3043 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
3045 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
3046 $GROFF_PATH__ (the latter for communication with troff).
3047 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
3049 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
3050 doc/groff.texinfo: Document it.
3052 * doc/groff.texinfo: Improve documentation of troff's -a option.
3054 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
3056 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
3057 non-intrusive eol marker.
3058 (troff_output_file::determine_line_limits): New function.
3059 (troff_output_file::draw): Use it.
3060 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
3061 output_pending_lines() instead of output_line().
3062 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
3063 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
3064 createImage): Small fixes.
3066 2000-10-14 Werner LEMBERG <wl@gnu.org>
3068 Replace tmac.safer with a real secure solution.
3070 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
3071 system_request, pipe_output): Disable requests if in safer mode.
3072 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
3073 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
3074 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
3075 doc/groff.texinfo, src/roff/groff/groff.man,
3076 src/roff/troff/troff.man, arch/djgpp/README: Updated.
3078 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
3079 (resource_manager::output_prolog): Replace setenv() with putenv().
3081 2000-10-09 Werner LEMBERG <wl@gnu.org>
3083 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
3084 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
3085 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
3086 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
3087 compilation errors with some compilers. It seems that this code
3088 is no longer necessary -- if yes, it is easy to add some #ifdef's
3089 for that particular old-fashioned compiler.
3091 * MORE.STUFF: Added info about Meta-tbl.
3093 * doc/groff.texinfo: Added more info about `.if "..."..."'.
3095 2000-10-07 Werner LEMBERG <wl@gnu.org>
3097 Adding a new escape sequence \B'...': If the string between
3098 the delimiters is a valid numeric expression, return the character
3099 `1', and `0' otherwise. This is an analogon to \A.
3101 * src/roff/troff/input.cc (do_expr_test): Implement it.
3102 (token::next): Use it.
3103 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
3105 * tmac/tmac.trace: Made independent from escape character.
3107 2000-10-06 Werner LEMBERG <wl@gnu.org>
3109 Adding a new request .dei: define indirect. The first and second
3110 parameter of .dei are taken from string registers instead directly;
3111 this very special request is needed to make tmac.trace independent
3112 from the escape character (which might even be disabled).
3114 * src/roff/troff/input.cc (do_define_macro): Implement it.
3115 (define_macro_indirect): New function.
3116 (init_input_requests): Use it.
3118 Adding two requests .ecs and .ecr: Save and restore the escape
3119 character. These two requests are needed to make tmac.trace
3120 independent from the escape character (which might even be
3123 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
3125 (init_input_requests): Use it.
3127 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
3129 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
3131 Adding a new option -P and new environment variable GROPS_PROLOGUE
3132 to grops, selecting a different prologue file (minor modifications
3135 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
3136 src/devices/grops/ps.cc (main): Implement it.
3137 * src/devices/grops/grops.man, NEWS: Document it.
3139 2000-09-22 Werner LEMBERG <wl@gnu.org>
3141 * INSTALL: Add info about selecting paper format.
3143 2000-09-21 Werner LEMBERG <wl@gnu.org>
3145 * src/roff/troff/input.cc (main): Fixing compiler warning.
3146 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
3147 strings.h from the former to the latter.
3148 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
3149 stuff from the former to the latter.
3151 2000-09-11 Werner LEMBERG <wl@gnu.org>
3153 Implementing two new requests .tm1 and .tmc: The former is similar
3154 to .tm but can output leading spaces; its syntax is similar to
3155 defining a string, i.e., a `"' can be used to mark the beginning of
3156 the string to be written to stderr: `.tm1 " test'. The latter is
3157 similar to .tm1 but doesn't write out a final newline character.
3159 * src/roff/troff/input.cc (terminal1, terminal_continue,
3160 do_terminal): New functions.
3161 (init_input_requests): Use them.
3162 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
3164 2000-09-09 Werner LEMBERG <wl@gnu.org>
3166 * tmac/groff_mdoc.samples.man: Small fixes.
3168 2000-09-08 Werner LEMBERG <wl@gnu.org>
3170 * tmac/groff_mdoc.man: Fixing typo.
3172 2000-09-02 Werner LEMBERG <wl@gnu.org>
3174 Implementing a .nop request which does nothing.
3176 * src/roff/troff/input.cc (nop_request): New function.
3177 (init_input_requests): Use it.
3178 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
3180 2000-09-01 Werner LEMBERG <wl@gnu.org>
3182 * doc/groff.texinfo: Added some comments.
3184 2000-08-30 Werner LEMBERG <wl@gnu.org>
3186 * src/roff/troff/TODO: Updated.
3188 2000-08-25 Werner LEMBERG <wl@gnu.org>
3190 * doc/groff.texinfo: Fix comment how to compile the DVI file.
3192 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
3194 * font/devps/generate/Makefile (SHELL): Define explicitly to
3195 "/bin/sh", for non-Unix platforms.
3196 (extraclean): Use a more portable "" quoting instead of a
3197 backslash (which doesn't work on DOS/Windows).
3199 * font/devlj4/generate/Makefile (extraclean): Ditto.
3201 * font/devdvi/generate/Makefile (extraclean): Ditto.
3203 2000-08-25 Werner LEMBERG <wl@gnu.org>
3205 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
3206 src/roff/troff/troff.man: Document Eli's latest changes.
3208 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
3210 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
3211 macro file names of the form NAME.tmac as well as tmac.NAME.
3213 2000-08-25 Werner LEMBERG <wl@gnu.org>
3215 * src/include/posix.h: Remove definition of FILENAME_MAX.
3217 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
3218 `sys_fatal' and `stop' function().
3220 * test-groff: Updated.
3222 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
3224 Added the new troff command .output <arg> to suppress output (while
3225 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
3226 registers (for passing the output dimensions to the output device).
3228 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
3230 * src/roff/troff/node.h, src/roff/troff/node.cc
3231 (troff_output_file::really_print_line,
3232 ascii_output_file::really_print_line,
3233 supress_output_file::really_print_line): Use `width' parameter.
3234 (troff_output_file::really_on, troff_output_file::really_off,
3235 output_file::on, output_file::off, real_output_file::on,
3236 real_output_file::off, real_output_file::really_on,
3237 real_output_file::really_off): New functions.
3238 (real_output_file:public output_file): New variable `output_on'.
3239 (real_output_file::begin_page, real_output_file::copy_file,
3240 real_output_file::transparent_char, real_output_file::print_line):
3242 (real_output_file::print_line): Use check_output_limits.
3243 * src/roff/troff/reg.h, src/roff/troff/request.h,
3244 src/roff/troff/input.cc (assign_registers): New function to remove
3246 (do_ps_file): Use it.
3247 (check_output_limits, reset_output_registers, output_request,
3248 init_output_requests): New functions.
3249 (init_input_requests): Updated.
3251 Added new grohtml2 device and html2 preprocessor (coding
3252 not yet finished) which will eventually replace grohtml.
3254 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
3256 * src/include/htmlindicate.h, src/include/htmlindicate
3257 (html_begin_suppress, html_end_suppress): New functions.
3258 * src/preproc/tbl/main.cc: Use it.
3259 * src/roff/groff/groff.cc: Add support for html2 device (which will
3260 automatically invoke the html2 preprocessor).
3261 * src/roff/troff/input.cc (is_html2): New variable.
3262 * src/roff/troff/troff.h, src/roff/troff/env.h,
3263 src/roff/troff/env.cc (environment::add_html_tag): New function
3265 (environment::do_break): Use it.
3266 * font/devhtml2/*: New files.
3267 * src/devices/grohtml2: New device.
3268 * src/preproc/html2: New preprocessor.
3269 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
3271 2000-08-23 Werner LEMBERG <wl@gnu.org>
3273 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
3275 2000-08-22 Werner LEMBERG <wl@gnu.org>
3277 * src/include/lib.h: Provide a fix for IRIX to not include
3280 2000-08-18 Werner LEMBERG <wl@gnu.org>
3282 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
3283 since some non-GNU sed programs can't handle null regexps.
3284 * configure, src/preproc/eqn/Makefile.sub,
3285 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
3287 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
3288 bug (string.h and strings.h are both needed according to latest
3291 * MORE.STUFF: Added info about unroff and troffcvt.
3293 2000-08-08 Werner LEMBERG <wl@gnu.org>
3295 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
3298 * tmac/tmac.man.old: Remove unused number register.
3300 * tmac.doc: Minor documentation fix.
3302 2000-08-07 Paul Eggert <eggert@twinsun.com>
3304 * src/roff/groff/pipeline.c (is_system_shell):
3305 Fix typo: "monocased_shell" no longer exists.
3307 2000-08-07 Paul Eggert <eggert@twinsun.com>
3309 Remove FILENAME_MAX limits.
3311 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
3312 that the argument length is less than FILENAME_MAX.
3313 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
3314 Use struct hack to allocate and free file name.
3315 (struct xtmpfile_list): fname is now part of the structure,
3316 not a pointer to another string.
3318 2000-08-07 Tom Schmidt <tschmidt@micron.com>
3320 * src/include/posix.h: Add a default value for FILENAME_MAX.
3322 2000-08-06 Paul Eggert <eggert@twinsun.com>
3324 Add support for new BSD-style man pages (with ".Dd" instead of
3325 ".TH"), so that "groff -man" understands both styles, even
3326 when running "groff -man" on a host whose system man page
3327 macros don't support ".Dd".
3329 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
3330 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
3331 in case the system man macros don't define Dd or TH.
3333 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
3334 * tmac/tmac.an: New one-line file.
3335 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
3337 2000-08-06 Werner LEMBERG <wl@gnu.org>
3339 * src/roff/troff/troff.man: Fixing typos.
3341 Version 1.16.1 released
3342 =======================
3344 2000-07-31 Werner LEMBERG <wl@gnu.org>
3346 Preparing release 1.16.1.
3348 * REVISION: Revision number set to 1.
3349 * MORE.STUFF: Added info about port to DOS.
3350 * NEWS, win32-diffs: Updated.
3352 * src/include/nonposix.h: Remove first line -- this file is used
3355 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
3358 2000-07-30 Werner LEMBERG <wl@gnu.org>
3360 * doc/texinfo.tex: Update to latest version.
3362 2000-06-28 Paul Eggert <eggert@twinsun.com>
3364 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
3365 commands that fail. Don't assume that "export a=b" is valid shell
3366 syntax. This is needed for Solaris 2.5.1.
3368 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
3369 comment about missing Solaris headers.
3371 * PROBLEMS: Add section about problems with Sun Make and VPATH.
3373 2000-06-25 Werner LEMBERG <wl@gnu.org>
3375 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
3378 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
3380 * win32-diffs: Updated.
3381 * README.WIN32: Added CRs to make all Windows editors happy.
3383 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
3384 src/roff/groff/pipeline.c).
3386 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
3388 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
3389 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
3391 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
3393 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
3394 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
3396 (main): Support non-Posix systems with several different styles of
3397 slash characters in file names.
3399 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
3400 (main) [SET_BINARY]: Switch stdin into binary mode.
3402 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
3403 (main): Support file names with several possible slash-type
3404 characters, as given by DIR_SEPS[] in nonposix.h.
3405 (main) [__MSDOS__]: If renaming the temporary index file fails
3406 because it has more than one dot in its trunk, replace the dot
3407 with an underscore and try again.
3408 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
3410 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
3412 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
3413 (File::File): Open the input file in binary mode. Strip CR
3414 characters from each CR-LF pair.
3415 (xbasename): Support file names with several possible slash-type
3416 characters, as given by DIR_SEPS[] in nonposix.h.
3418 * src/include/Makefile.sub (HDRS): Add nonposix.h.
3420 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
3421 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
3422 [!_POSIX_VERSION]: Define for traditional Unix systems.
3423 (real_output_file::real_output_file): Remove the MSVC-specific
3424 call to popen, use instead POPEN_WT, appropriately defined on
3425 nonposix.h. #include nonposix.h.
3426 (real_output_file::~real_output_file): Remove the MSVC-specific
3427 call to pclose, a suitable macro is now defined on nonposix.h.
3428 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
3429 and WEXITSTATUS instead of assuming traditional Unix
3430 interpretation of the status returned by pclose.
3432 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
3433 call to popen, use POPEN_RT instead (appropriately defined on
3434 nonposix.h). #include nonposix.h.
3435 (ps_bbox_request): Open the PostScript file in binary mode.
3436 Close the file after processing it.
3437 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
3440 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
3441 A version of run_pipeline that doesn't use `fork'.
3442 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
3443 (system_shell_name, system_shell_dash_c)
3444 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
3445 the ugliness of testing DOS/Windows file names for equality, and
3446 support both stock shells and ports of Unix shells.
3448 * src/roff/groff/groff.cc: #include nonposix.h.
3449 (BSHELL): Definition moved to nonposix.h.
3450 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
3451 instead of a literal "-c".
3452 (xbasename): Support file names with several possible slash-type
3453 characters, as given by DIR_SEPS[] in nonposix.h.
3454 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
3457 * src/preproc/soelim/soelim.cc: #include nonposix.h.
3458 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
3460 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
3463 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
3465 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
3468 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
3470 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
3471 P_tmpdir is defined, use it instead of the literal "/tmp".
3472 (remove_tmp_files, add_tmp_file): New functions.
3473 (xtmpfile): Record temporary files and register an atexit function
3474 to delete them explicitly, instead of relying on the OS to do
3475 that, which doesn't work on non-Unix systems.
3477 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
3478 (search_path::search_path): Use PATH_SEP instead of a literal
3480 (search_path::command_line_dir): Ditto.
3481 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
3482 to support non-Posix systems.
3484 * src/libc/libbib/search.cc: #include nonposix.h.
3485 (search_list::add_file): Open the file in binary mode.
3487 * src/libs/libbib/linear.cc: #include nonposix.h.
3488 (file_buffer::load): Remove \r characters preceding \n from the
3491 * src/libs/libbib/index.cc: #include nonposix.h.
3492 (make_index_search_item): Open index_filename in O_BINARY mode.
3493 (index_search_item_iterator::get_tag): Ditto. Remove \r
3494 characters before \n characters.
3495 (index_search_item::check_files): Open files in binary mode.
3496 (index_search_item::munge_filename): Support DOS-style file names
3497 with backslashes and drive letters, use IS_ABSOLUTE.
3499 * src/devices/grops/ps.cc: #include nonposix.h.
3500 (main) [SET_BINARY]: Switch stdout to binary mode.
3502 * src/devices/grolj4/lj4.cc: #include nonposix.h.
3503 (main) [SET_BINARY]: Switch stdout to binary mode.
3505 * src/devices/grolbp/lbp.cc: #include nonposix.h
3506 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
3508 * src/devices/grodvi/dvi.cc: #include nonposix.h.
3509 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
3511 (main) [SET_BINARY]: Switch stdout to binary mode.
3512 [_MSC_VER]: Remove an explicit call to _setmode.
3514 * src/include/nonposix.h: New file.
3516 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
3517 operation when building with DJGPP.
3518 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
3519 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
3522 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
3524 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
3525 etc. can include a semi-colon on DOS/Windows.
3526 (depend.temp): Use depend1.temp instead of depend.temp1, to
3527 prevent files from overerwiting each other on 8+3 filesystems.
3529 * gendef.sh (t): Change definition to work with DOS/Windows.
3531 doc/groff.texinfo: Apart of some typo corrections, I also changed
3532 some index entris, to make them more non-ambiguous, and also put
3533 @ignore around some parts that are not yet written, to allow the
3534 Info output be readable.
3536 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
3538 Replaced specific checks for function declarations with a generic
3539 routine taken from GNU bfd.
3541 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
3542 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
3543 * configure.in: Use it.
3544 * src/devices/grolbp/lbp.cc, src/include/lib.h,
3545 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
3546 src/roff/groff/groff.cc: Use it.
3547 * Makefile.in, configure: Updated.
3549 2000-06-07 Paco Andres Verdu <pandres@dragonet.es>
3551 * src/devides/grolbp/lbp.h: Removed unused variables.
3553 2000-05-31 Keith Thompson <kst@sdsc.edu>
3555 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
3558 2000-05-31 Werner LEMBERG <wl@gnu.org>
3560 * aclocal.m4 (GROFF_SRAND): New function to test the return value
3561 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
3562 * configure.in: Use it.
3563 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
3564 * configure, Makefile.in: Updated.
3566 * configure.in: Add test for strncasecmp().
3567 * src/include/lib.h: Use it.
3569 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
3571 * src/preproc/grn/Makefile.sub: Add MLIB.
3573 2000-05-29 Nix <nix@esperi.demon.co.uk>
3575 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
3577 2000-05-29 Werner LEMBERG <wl@gnu.org>
3579 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
3581 * PROBLEMS: Small update.
3583 * src/devices/grolbp/lbp.cc: Various small fixes.
3585 2000-05-28 Keith Thompson <kst@sdsc.edu>
3587 * src/roff/nroff/nroff.sh: Fix main loop syntax.
3589 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
3591 2000-05-25 Werner LEMBERG <wl@gnu.org>
3593 * man/roff.man: Removed unused macro.
3595 2000-05-24 Werner LEMBERG <wl@gnu.org>
3597 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
3598 This is needed e.g. if you do
3599 `make distclean; ./configure; make dist'.
3601 Version 1.16 released
3602 =====================
3604 2000-05-23 Werner LEMBERG <wl@gnu.org>
3606 Adding font CWI (constant width italic) to devdvi.
3608 * font/devdvi/CWI: New file.
3609 * font/devdvi/generate/Makefile: Add generating rule.
3610 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
3611 tmac/tmac.dvi: Use it.
3612 * NEWS: Announce it.
3614 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
3615 * font/devlj4/generate/Makefile: Cosmetic changes only.
3617 * man/groff.man: Removed most of the redundant description of
3618 special characters (which is in groff_char.man). Added font
3619 translation CB->CR for devdvi. Other minor fixes.
3621 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
3622 (registered) symbols.
3624 2000-05-22 Werner LEMBERG <wl@gnu.org>
3626 * doc/Makefile: Added rule for creating info files.
3628 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
3630 * font/devdvi/generate/Makefile: Fixed dependencies.
3632 * font/devps/*: Regenerated. Heavy changes for Bookman and
3633 NewCentury Schoolbook!
3634 * font/devps/generate/afmname: Will now run with GNU awk.
3635 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
3636 * font/devps/generate/Makefile: Cosmetic changes only.
3638 2000-05-21 Werner LEMBERG <wl@gnu.org>
3640 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
3641 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
3642 `.SS' now produces a heading with a smaller size than `.SH'.
3643 Completely formatted.
3644 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
3646 * man/groff.man: Improved table appearance. Use of `eo' request
3647 to reduce number of doubled backslashes in macro definitions.
3648 Replacing `\e' with `\(rs'. Other minor fixes.
3650 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
3651 to have correct line number.
3653 * INSTALL: Small improvement.
3655 2000-05-20 Bernd Warken <bwarken@mayn.de>
3657 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
3660 2000-05-19 Bernd Warken <bwarken@mayn.de>
3662 * man/groff.man: Complete update (with a lot of corrections by WL).
3664 2000-05-18 Werner LEMBERG <wl@gnu.org>
3666 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
3668 * font/*/*: Implement it.
3669 * man/groff_char.man, NEWS: Document it.
3671 * src/include/unix.h: Removed. It isn't used.
3673 * doc/groff.texinfo: Slight improvements.
3675 2000-05-17 Werner LEMBERG <wl@gnu.org>
3677 * README, win32-diffs: Small fixes and improvements.
3679 2000-05-16 Werner LEMBERG <wl@gnu.org>
3681 * FDL: New file (the Free Documentation License version 1.1).
3683 * doc/groff.texinfo: Added many start-up values for gtroff.
3684 Some structural improvements of the source code.
3686 2000-05-15 Werner LEMBERG <wl@gnu.org>
3688 * src/roff/troff/input.cc: Added small comment about troffrc-end.
3689 * src/roff/troff/troff.man: Added info about troffrc-end.
3691 2000-05-14 Werner LEMBERG <wl@gnu.org>
3693 * Makefile.in (EXTRADIRS): Fix typos.
3694 (dist): Handle deletion of old .tar.gz file correctly.
3695 (DISTDIRS): Include all tty output devices.
3697 * doc/groff.texinfo: Adding more cross references; countless other
3700 2000-05-13 Werner LEMBERG <wl@gnu.org>
3702 * MORE.STUFF: Added Robert Marks's utilities.
3704 2000-05-12 Werner LEMBERG <wl@gnu.org>
3706 Added win32 port contributed by Blake McBride
3707 <blake@florida-software.com>.
3709 * README.WIN32, win32-diffs: New files.
3712 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
3713 (tmove, tmove2): Added parentheses to avoid compiler warnings.
3714 (change): Removed unused variables.
3716 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
3717 (savebounds): Changed return value from `int' to `void'.
3718 * src/preproc/grn/hdb.cc: Ditto.
3720 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
3721 final backslash in comment to avoid compiler warning.
3723 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
3725 * doc/groff.texinfo: More fixes.
3727 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
3729 * tmac/tmac.doc: Documentation fix.
3731 2000-05-11 Werner LEMBERG <wl@gnu.org>
3733 * doc/groff.texinfo: Reading the source code shows up a lot of
3734 omissions and incorrect data... More conversion to @Deffn macros.
3736 2000-05-10 Werner LEMBERG <wl@gnu.org>
3738 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
3741 * src/roff/troff/request.h: Removing unused `no_break_flag'.
3743 2000-05-09 Werner LEMBERG <wl@gnu.org>
3745 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
3748 * doc/groff.texinfo: Extended history section. More conversion to
3749 @Deffn macros. More .tr documentation.
3751 2000-05-07 Werner LEMBERG <wl@gnu.org>
3753 * doc/groff.texinfo: Completed tab section. Added info about
3756 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
3758 * PROBLEMS: Describe configure script fix for OS/390 Unix.
3760 2000-05-05 Werner LEMBERG <wl@gnu.org>
3762 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
3764 * NEWS: Document it.
3766 * man/troff.man: Minor optical improvements.
3768 2000-05-03 Werner LEMBERG <wl@gnu.org>
3770 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
3772 * font/*/*: Implement it.
3773 * man/groff_char.man, NEWS: Document it.
3775 2000-05-02 Werner LEMBERG <wl@gnu.org>
3777 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
3779 * NEWS: Document the three new man pages.
3781 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
3782 * configure: Updated.
3784 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
3786 2000-05-01 Werner LEMBERG <wl@gnu.org>
3788 Added grap support to grog.
3790 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
3791 * src/roff/grog/grog.man: Document it.
3793 * doc/groff.texinfo, NEWS: Add info about grap support.
3795 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
3796 (with slight fixes by me).
3798 * tmac/groff_tmac.man: New file documenting tmac mechanism.
3799 * tmac/Makefile.sub: Add groff_tmac.man.
3800 * man/roff.man: New file giving overview of roff system.
3801 * man/troff.man: A short reference of troff.
3802 * man/Makefile.sub: Add roff.man and troff.man.
3804 2000-04-30 Werner LEMBERG <wl@gnu.org>
3806 Added grap support to groff.
3808 * src/roff/groff/groff.cc: Implement it.
3809 * src/roff/groff/groff.man: Document it.
3811 * src/devices/grotty/grotty.man: Add cp1047 device.
3812 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
3814 * src/roff/groff/groff.man: Ditto.
3815 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
3816 * doc/groff.texinfo: Ditto.
3818 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
3821 2000-04-29 Werner LEMBERG <wl@gnu.org>
3823 * man/groff_char.man: Add `pc' glyph.
3824 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
3825 * tmac/tmac.tty: Add `pc' glyph.
3826 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
3827 we use cp1047 output device.
3829 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
3830 there are still hardcoded latin1->unicode values in utf8's font
3832 * configure: Updated.
3833 * NEWS: Minor clarification. Updated.
3835 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
3838 2000-04-28 Werner LEMBERG <wl@gnu.org>
3840 Adding EBCDIC code page 1047.
3842 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
3843 font/devcp1047/DESC.proto: New files.
3845 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
3846 either ascii/latin1 or cp1047.
3847 * Makefile.in: Use it.
3848 * configure: Updated.
3850 Replacing and/or adding `md' (mathdot) glyph with `pc'
3851 (periodcentered) in all text fonts.
3853 * font/*/*: Change it.
3855 2000-04-27 Werner LEMBERG <wl@gnu.org>
3857 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
3859 * configure.in: Add check for strings.h.
3860 * src/include/driver.h: Use HAVE_STRINGS_H.
3861 * src/devices/grolbp/lpb.cc: Remove string.h.
3863 * src/include/groff-getopt.h: New file. It will be used instead of
3864 getopt.h (to be included in lib.h) to avoid endless problems with
3865 picky C++ compilers.
3866 * src/include/lib.h: Use groff-getopt.h.
3867 * src/include/Makefile.sub: Updated.
3869 * configure: Updated.
3870 * Makefile.in: Updated.
3872 * NEWS: Mention EBCDIC support.
3874 2000-04-26 Werner LEMBERG <wl@gnu.org>
3876 * TODO: Some additions.
3878 2000-04-25 Werner LEMBERG <wl@gnu.org>
3880 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
3883 2000-04-23 Werner LEMBERG <wl@gnu.org>
3885 * src/roff/troff/troff.man: Minor fixes.
3887 2000-04-22 Werner LEMBERG <wl@gnu.org>
3889 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
3890 `.T' string register and the incompatible definition of the `.T'
3891 number register (compared to Unix troff).
3893 * man/groff_char.man: Add some missing characters.
3894 * font/devutf8/NOTES: Update.
3896 2000-04-21 Werner LEMBERG <wl@gnu.org>
3898 * src/include/htmlindicate.h, src/include/lib.h,
3899 src/include/posix.h: Fix copyright.
3901 * src/include/Makefile.sub: Update.
3903 2000-04-20 Werner LEMBERG <wl@gnu.org>
3905 * src/roff/troff/input.cc (input_char_description): Removing
3906 superfluous space char.
3908 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
3910 * doc/groff.texinfo: Document EBCDIC.
3912 2000-04-19 Werner LEMBERG <wl@gnu.org>
3914 Introducing `shc' as the glyph name for the soft hyphen character.
3916 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
3917 font/devlatin1/R.proto: Use it.
3921 2000-04-18 Werner LEMBERG <wl@gnu.org>
3923 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
3924 dependency on ASCII order.
3926 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
3928 * src/libs/libgroff/illegal.c: Added EBCDIC table.
3929 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
3931 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
3932 to increase portability.
3934 2000-04-15 Werner LEMBERG <wl@gnu.org>
3936 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
3937 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
3938 the generic `\n' if under OS/390 Unix.
3940 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
3942 * configure: Regenerated.
3944 2000-04-14 Werner LEMBERG <wl@gnu.org>
3946 * doc/groff.texinfo: More conversions to @Deffn.
3948 2000-04-12 Werner LEMBERG <wl@gnu.org>
3950 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
3953 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
3955 2000-04-10 Werner LEMBERG <wl@gnu.org>
3957 * doc/groff.texinfo: More conversions to @Deffn.
3959 2000-04-08 Werner LEMBERG <wl@gnu.org>
3961 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
3962 Updated to latest version (glibc 2.1.3).
3964 2000-04-07 Werner LEMBERG <wl@gnu.org>
3966 * doc/Makefile (clean): Include more index files.
3967 Add rule texinfo->dvi.
3969 2000-04-05 Werner LEMBERG <wl@gnu.org>
3971 * doc/groff.texinfo: Added new index `op' for operators. More
3972 info on end of sentence characters. More use of @Deffn.
3974 2000-03-30 Werner LEMBERG <wl@gnu.org>
3976 * */*.man: Adding a note that a whitespace can be inserted between
3977 a command line option and its parameter -- we are using GNU getopt.
3979 * src/roff/groff/groff.man: Add example of `-m mandoc'.
3981 2000-03-28 Werner LEMBERG <wl@gnu.org>
3983 Correct anachronism of calling the man macro file with `-man'
3984 instead of `-m man' etc.
3986 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
3987 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
3988 load tmac.<package>.
3990 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
3994 * doc/groff.texinfo: Updated.
3996 * tmac/groff_man.man: Copyright added.
3998 2000-03-27 Werner LEMBERG <wl@gnu.org>
4000 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
4001 typeset the request resp. escape name with a tt font -- due to a
4002 bug in texinfo.tex it is necessary to use the `-e' switch with
4005 Improving info about usage of groff units.
4009 2000-03-20 Werner LEMBERG <wl@gnu.org>
4011 * doc/groff.texinfo: Added section about man macro package
4012 (I've basically taken groff_man.man). Introducing new indices `ma'
4013 for macros/strings and `gl' for glyph names. Other minor fixes.
4015 * tmac/groff_man.man: Fixed some typos.
4017 2000-03-19 Werner LEMBERG <wl@gnu.org>
4019 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
4022 * doc/texinfo.tex: New file.
4024 2000-03-18 Werner LEMBERG <wl@gnu.org>
4026 * doc/groff.texinfo: Improved section on number registers. Other
4029 2000-03-16 Werner LEMBERG <wl@gnu.org>
4031 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
4034 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
4035 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
4036 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
4037 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
4039 * src/preproc/grn/grn.man: Better synopsis; added copyright.
4041 * src/roff/grog/grog.man: Updated copyright date.
4043 2000-03-14 Francisco Andres Verdu <pandres@dragonet.es>
4045 * configure.in: Added test for strdup.
4047 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
4050 Replaced dynamic allocation of arrays `[...]' with `new' operator.
4054 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
4056 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
4058 2000-03-11 Werner LEMBERG <wl@gnu.org>
4060 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
4062 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
4063 * src/include/lib.h: Remove some spaces.
4065 2000-03-10 Werner LEMBERG <wl@gnu.org>
4067 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
4068 initializers from arguments (some compilers don't like this).
4070 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
4072 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
4073 used by pic and eqn to tell grohtml where the graphic regions start
4075 * src/libs/libgroff/Makefile.sub: Use it.
4076 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
4077 graphic_start() and graphic_end() from htmlindicate.cc.
4079 2000-03-09 Werner LEMBERG <wl@gnu.org>
4081 * tmac/tmac.safer: Will now work correctly in compatibility mode.
4082 * tmac/groff_man.man: More fixes.
4084 2000-03-08 Werner LEMBERG <wl@gnu.org>
4086 * doc/Makefile: Added texput.log to the `clean' target.
4087 * doc/groff.texinfo: Added info about delimiters for escapes.
4089 2000-03-08 Bernd Warken <bwarken@mayn.de>
4091 * src/preproc/pic/pic.man: Add info on conversion of pic images to
4092 other graphic formats.
4094 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
4096 * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
4097 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
4098 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
4101 2000-03-07 Werner LEMBERG <wl@gnu.org>
4103 * doc/groff.texinfo: Spelling fixes.
4105 2000-03-06 Werner LEMBERG <wl@gnu.org>
4107 * tmac/groff_man.man: Completely revised to cover everything in
4110 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
4111 Other minor fixings.
4112 * src/roff/troff/env.cc (environment_copy): Improve error message and
4114 * src/roff/troff/TODO: Updated.
4116 * doc/Makefile: Bug fixes -- this is still provisional, though...
4118 * tmac/eqnrc: Small fixes.
4120 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
4122 Adding a request `evc' to copy environments.
4124 * src/roff/troff/env.cc (environment::copy, environment_copy):
4126 * src/roff/troff/env.h: Add prototype.
4128 2000-03-05 Francisco Andres Verdu <pandres@dragonet.es>
4130 Adding strsep() -- Solaris 8 doesn't have it.
4132 * configure.in: Test it.
4133 * src/devices/grolbp/lbp.cc: Add code.
4135 2000-03-05 Werner LEMBERG <wl@gnu.org>
4137 * src/roff/troff/div.cc (macro_diversion::output,
4138 top_level_diversion::output): Fixing an incompatibility with
4139 original troff: \x'0' updates the .a register also. Thanks to
4140 <Andries.Brouwer@cwi.nl> for pointing this out.
4141 * doc/groff.texinfo: Document it.
4143 * Makefile.in: Create Makefile.dep if necessary before calling the
4144 submake process to avoid warning about nonexistent file.
4146 * NEWS, PROJECTS: Updated.
4148 2000-03-04 Werner LEMBERG <wl@gnu.org>
4150 * tmac/troffrc: Add tmac.lbp.
4152 2000-03-03 Francisco Andres Verdu <pandres@dragonet.es>
4154 * tmac/tmac.lbp: New file.
4155 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
4158 2000-03-03 Werner LEMBERG <wl@gnu.org>
4160 * Makefile.in: Fixing $(subdir).
4162 * README, NEWS: Small fixes.
4164 * test-groff: Adding path to grolbp.
4166 * configure.in: The (new) file src/xditview/Imakefile.in will be
4167 also configured -- it is now possible to build gxditview in a
4168 directory different from $srcdir.
4170 2000-03-02 Blake McBride <blake@florida-software.com>
4172 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
4174 * MORE.STUFF: Added website of bell labs and info about plot2dev.
4176 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
4178 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
4181 2000-02-29 Werner LEMBERG <wl@gnu.org>
4183 Adding GNU getopt to the groff distribution.
4185 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
4187 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
4188 * aclocal.a4: Remove GROFF_GETOPT function.
4189 * configure.in, Makefile.in, PROBLEMS: Update.
4190 * src/include/lib.h: Replace getopt tests with getopt.h.
4191 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
4193 * doc/groff.texinfo: Further checking/updating. Adding more index
4196 * man/groff_out.man: Fix nroff mode activation (for emacs).
4197 * man/groff_font.man: Add missing ligature.
4199 2000-02-28 Werner LEMBERG <wl@gnu.org>
4201 * doc/groff.texinfo: Further checking/updating. Adding more index
4204 * src/devices/grolbp/grolbp.man: Added a comment line at the
4205 beginning of the file (similar to shell scripts) which indicates
4206 that `tbl' should be used as a preprocessor.
4208 2000-02-27 Blake McBride <blake@florida-software.com>
4210 Adapting groff to MS Visual C++ 6.0 compiler (tested with
4211 Windows NT 4.0). Uses _MSC_VER define where necessary.
4213 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
4214 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
4215 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
4216 src/include/lib.h, src/libs/libgroff/errarg.cc,
4217 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
4218 src/preproc/refer/label.y, src/preproc/refer/label.cc,
4219 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
4220 src/roff/troff/div.cc, src/roff/troff/env.cc,
4221 src/roff/troff/input.cc, src/roff/troff/node.cc,
4222 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
4223 if_to_a() to avoid name clashes.
4224 * src/include/posix.h: Don't use unistd.h.
4225 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
4226 clause for integrating non-Unix xtmpfile() code.
4227 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
4228 structure; use "rt" for popen() in pipe_source(); add getpid()
4230 * src/roff/troff/node.cc: Use special versions of popen() in
4231 real_output_file() and pclose() in ~real_output_file().
4233 2000-02-27 Werner LEMBERG <wl@gnu.org>
4235 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
4236 LBP-8 series laser printers). This code has been contributed by
4237 Francisco Andres Verdu <pandres@dragonet.es>.
4239 * src/devices/grolbp/*: The grolbp output device.
4240 * font/devlpb/*: The font description files.
4241 * Makefile.in: Add grolpb and devlbp subdirectories.
4243 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
4244 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
4247 * doc/groff.texinfo: Further checking/updating. Adding more index
4252 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
4254 * man/groff_font.man: Adding info about obsolete DESC keywords.
4255 * src/devices/grolj4/grolj4.man: Documenting additional DESC
4258 2000-02-26 Werner LEMBERG <wl@gnu.org>
4260 * src/preproc/grn/grn.man: Added info about the gremlin file format
4261 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
4263 2000-02-25 Werner LEMBERG <wl@gnu.org>
4265 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
4266 friends to be non-integer.
4268 * src/preproc/grn/grn.man: Document it.
4270 * doc/groff.texinfo: Further checking/updating. Adding more index
4273 2000-02-24 Werner LEMBERG <wl@gnu.org>
4275 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
4276 line thicknesses to be integer multiples of this value.
4278 * src/preproc/grn/grn.man: Commenting out the -s option -- the
4279 corresponding code doesn't work (yet).
4281 * doc/groff.texinfo: Further checking/updating. Adding more index
4284 2000-02-23 Werner LEMBERG <wl@gnu.org>
4286 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
4287 specify line thickness instead of base units. The new default
4288 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
4289 thick lines respectively.
4291 Removed unused variable `prevval'.
4293 * src/preproc/grn/grn.man: Updated.
4295 2000-02-22 Werner LEMBERG <wl@gnu.org>
4297 * src/preproc/grn/main.cc: Slight formatting.
4299 * src/roff/groff/groff.man: Formatting fix.
4300 * src/preproc/grn/grn.man: Ditto.
4302 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
4304 * doc/groff.texinfo: Further checking/updating.
4306 2000-02-21 Werner LEMBERG <wl@gnu.org>
4308 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
4310 * test-groff: Added grn subdir to path.
4312 * doc/groff.texinfo: Some restructing and other small improvements.
4314 * src/roff/groff/groff.cc (help): Fixed info string.
4316 2000-02-20 Werner LEMBERG <wl@gnu.org>
4318 * doc/meref.me: Fix description of .GS request.
4320 * src/roff/troff/troff.man: Fixing typo.
4322 Adding the `grn' preprocessor for gremlin graphic files.
4324 * src/preproc/grn/*: This is the Berkeley distribution written by
4325 David Slattengren and Barry Roitblat, adapted to groff by Daniel
4326 Senderowicz and Werner Lemberg.
4328 * doc/grnexampl.{me,g}: A sample for grn.
4330 * Makefile.in: Added subdirectory entry for grn.
4332 * src/roff/groff/groff.cc: Added support for grn. It can be now
4333 called with the switch `-g'.
4335 * src/roff/groff/groff.man: Updated.
4337 * src/roff/grog/grog.{man,pl,sh}: Updated.
4341 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
4343 * src/include/lib.h: Added xtmptemplate and made xtmpfile
4344 parametrically polymorphic.
4346 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
4347 and the alterations to xtmpfile.
4348 xtmpfile can be requested to return the filename created
4349 and asked not to unlink the temp file. The default behaviour
4350 if parameters are absent is exactly the same as before.
4352 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
4354 A new request `length' is available which returns the length of a
4355 string in a number register:
4357 * src/roff/troff/input.cc (length_macro): Implement it.
4358 * src/roff/troff/input.cc (init_input_requests): Register it.
4360 2000-02-11 Werner LEMBERG <wl@gnu.org>
4362 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
4363 of the `substring' request.
4365 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
4368 * src/roff/troff/TODO, NEWS: Updated.
4370 2000-02-09 Werner LEMBERG <wl@gnu.org>
4372 * src/roff/groff/groff.man: Added an example.
4374 2000-02-06 Werner LEMBERG <wl@gnu.org>
4376 I've considerably modified the directory structure of the
4377 distribution to get a more vertical layout. For example, the number
4378 of top level directories has been reduced from 42 to 6.
4380 As a consequence, many changes, especially to the makefiles, were
4383 * The makefile variables `top_builddir' and `top_srcdir' have been
4384 introduced. Virtually all relative paths have been replaced with
4385 absolute ones using these two variables.
4387 * Dependencies (in the files `Makefile.dep') are no longer part of
4388 the distribution. Instead, they are created during a `make install'
4389 in the build directory.
4391 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
4392 make `top_srcdir' and `top_builddir' absolute.
4396 * Man pages no depend on the files `VERSION' and `REVISION'.
4398 * The added shell script `mkinstalldirs' will replace `mkdir' in
4401 * VERSION: Version number increased to 1.16.
4403 2000-02-04 Werner LEMBERG <wl@gnu.org>
4405 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
4407 * Makefile.in: Removed $(tmac_m) since it is no longer needed
4408 (after an update of the mm stuff).
4410 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
4412 2000-02-03 Werner LEMBERG <wl@gnu.org>
4414 The .psbb request will now also accept Mac PS images (i.e. using LF
4415 as the EOL character).
4417 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
4418 (with slight modifications).
4419 * troff/input.cc (do_ps_file): Use it.
4421 * test-groff: Add grohtml and grolj4 output devices to PATH.
4423 2000-01-30 Werner LEMBERG <wl@gnu.org>
4425 * NEWS, MORE.STUFF: Updated.
4427 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
4429 Add the `srand' command to pic.
4431 * pic/lex.cc, pic/pic.y: Implement it.
4432 * pic/pic.man: Document it.
4433 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
4435 2000-01-30 Werner LEMBERG <wl@gnu.org>
4437 Add a new request `.psbb'. This does exactly what the external
4438 program psbb did. It scans a PostScript image file for a
4439 %%BoundingBox comment and extracts the bounding box values (in
4440 PostScript units) which are then stored in the four new (read-only)
4441 number registers `llx', `lly', `urx', and `ury'.
4443 This will allow the usage of the .PSPIC macro without worrying
4444 about unsafe behaviour of groff, i.e., it will work without the
4445 `-U' switch of groff.
4447 * troff/input.cc: Implement it.
4448 * tmac/tmac.pspic: Use it.
4449 * troff/troff.man, grops/grops.man, NEWS: Document it.
4450 * psbb/*, Makefile.in: Remove it since it is no longer needed.
4452 This is bloody C code simply adapted from psbb.c! Any improvements
4455 2000-01-29 Werner LEMBERG <wl@gnu.org>
4457 * man/groff_font.man: Minor clarifications.
4461 2000-01-28 Werner LEMBERG <wl@gnu.org>
4463 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
4465 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
4467 * man/groff_font.man: Brought up to date regarding tcommand
4469 * libgroff/font.cc: Handle everything after `--' as a comment
4471 * devps/*: Added comment delimiter inside devps font files.
4473 2000-01-28 Werner LEMBERG <wl@gnu.org>
4475 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
4476 \fC...\fP (which now works as expected).
4478 * troff/troff.man: Fix typo.
4480 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
4482 Completed the pass_filenames implementation in troff.
4484 * libdriver/input.cc: Will read the new `F' tcommand.
4485 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
4486 * troff/input.cc: Use it.
4488 2000-01-26 Werner LEMBERG <wl@gnu.org>
4490 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
4491 font will now be updated even if an invalid font is selected.
4493 2000-01-24 Werner LEMBERG <wl@gnu.org>
4495 * doc/homepage.ms: Updated for new tmac.arkup.
4497 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
4499 * tmac/tmac.arkup: Cleanup.
4501 Added `\&' to .HTML macro to `leave vertical mode', so to say.
4503 Removed obsolete .LINK macro completely.
4505 The macros .URL, .FTP, and .MAILTO now accept a third argument which
4506 will be immediately appended to the second argument (to be used with
4507 punctuation, for example).
4509 Disabled .CDFTP macro temporarily for security reasons.
4511 * tmac/groff_markup.man: Complete revision for latest changes in
4512 tmac.arkup -- note that it does not yet format correctly with
4515 2000-01-23 Bruno Haible <haible@clisp.cons.org>
4517 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
4518 * devutf8/R.proto: Add mappings for wp, lh, rh.
4519 * devutf8/NOTES: Updated.
4521 2000-01-23 Werner LEMBERG <wl@gnu.org>
4523 * doc/groff.texinfo: Updated version/copyright info.
4525 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
4527 Added support for two new directives in device descriptions:
4528 `pass_filenames' (to pass the input file name to the output device)
4529 and `use_charnames_in_special' (to support e.g. accented characters
4530 in the `X' request).
4532 * include/font.h, troff/charinfo.h: Declare it.
4534 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
4536 * devhtml/DESC: Use it.
4538 * troff/input.cc: New function encoded_char.
4540 * troff/token.h: Add test for `specialness'.
4542 2000-01-21 Werner LEMBERG <wl@gnu.org>
4544 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
4545 mistake from the list of files to be installed.
4547 2000-01-18 Werner LEMBERG <wl@gnu.org>
4549 * README: Added info how to apply patches.
4551 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
4553 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
4555 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
4557 * troff/input.cc: Add support for troffrc-end.
4559 * tbl/main.cc: Altered to issue table-start and table-end special
4560 characters if using the html device.
4562 * devhtml/*: Modified font files to incorporate html encoding of
4565 * tmac/groff_markup.man: New file documenting tmac.arkup.
4567 * tmac/troffrc-end: New file. This is invoked after all user
4568 specified macros. Currently used by the html device to include
4569 tmac.html. Thus no need for users to specify -mhtml anymore.
4571 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
4572 (MAN7): Add groff_markup.man.
4574 * tmac/tmac.an, tmac/tmac.html: Small html updates.
4576 * tmac/troffrc: tmac.arkup will now be called for the html device.
4578 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
4579 extra device specific information about fonts.
4581 * doc/homepage.ms: New file. It is an example how an HTML home page
4582 could look like with grohtml.
4584 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
4586 2000-01-12 Bruno Haible <haible@clisp.cons.org>
4588 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
4591 * devutf8/NOTES: Updated.
4593 2000-01-08 Bruno Haible <haible@clisp.cons.org>
4595 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
4596 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
4597 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
4598 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
4599 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
4600 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
4601 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
4602 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
4605 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
4607 2000-01-12 Fabrizio Polacco <fab@prosa.it>
4609 grolj4: Paper size will be searched case-insensitively.
4611 * include/lib.h: Add check for strcasecmp().
4612 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
4613 * configure.in: Check for strcasecmp().
4615 2000-01-11 Werner LEMBERG <wl@gnu.org>
4617 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
4620 2000-01-10 Werner LEMBERG <wl@gnu.org>
4622 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
4625 Add a new read-only register, `.Y', which contains the groff
4628 * troff/input.cc (init_input_requests): Define it.
4629 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
4630 * doc/groff.texinfo, troff/troff.man: Document it.
4632 * libgroff/Makefile.sub (version.cc): Add definition of
4633 `Version_string[]', consisting of `<major>.<minor>.<revision>'
4634 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
4635 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
4636 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
4637 troff/input.cc, pfbtops/pfbtops.c: Use it.
4639 2000-01-10 Fabrizio Polacco <fab@prosa.it>
4641 Add a revision scheme to the groff package.
4643 * REVISION: New file.
4644 * libgroff/Makefile.sub (version.cc): Use it to define
4645 `revision_string[]'.
4646 * grops/psrm.cc: Use revision_string (converted to an unsigned
4647 integer) in constructor of resource_manager.
4649 2000-01-10 Bruno Haible <haible@clisp.cons.org>
4651 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
4653 * Makefile.in (DEVDIRS): Add devutf8.
4654 * grotty/tty.cc: Include device.h.
4655 (glyph): Change type of `code' to `unsigned int'.
4656 (tty_printer): New field is_utf8. Constructor takes device argument.
4657 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
4658 (tty_printer::add_char): Change type of first arg to `unsigned int'.
4659 (tty_printer::put_char): New function.
4660 (tty_printer::end_page): Use put_char() instead of ::putchar().
4661 (make_printer): Pass device to tty_printer constructor.
4662 * nroff.sh: Determine default device by calling 'locale'. As a
4663 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
4664 Recognize UTF-8 locales.
4665 * tmac/eqnrc: Recognize utf8 like latin1.
4666 * tmac/troffrc: Device utf8 needs tmac.tty.
4668 2000-01-07 Werner LEMBERG <wl@gnu.org>
4670 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
4672 2000-01-07 Paul Eggert <eggert@twinsun.com>
4674 Add a new predefined writeable number register, `year',
4675 which contains the current year.
4677 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
4678 * tmac/tmac.s: Use it.
4679 * troff/input.cc (init_registers): Initialize it.
4681 2000-01-06 Werner LEMBERG <wl@gnu.org>
4683 * PROBLEMS: Fixed typo.
4685 2000-01-04 Paul Eggert <eggert@twinsun.com>
4687 * PROBLEMS: Add Y2k advice for the yr number register.
4689 2000-01-03 Paul Eggert <eggert@twinsun.com>
4691 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
4693 2000-01-02 Werner LEMBERG <wl@gnu.org>
4695 * tmac/tmac.arkup: Slight modification of macros to provide better
4696 appearance for non-HTML formats.
4698 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
4700 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
4701 does not automatically translate to malloc(n) on all OSes
4702 (e.g., SunOS) so do it explicitly. Also, check the returned
4705 2000-01-01 Werner LEMBERG <wl@gnu.org>
4707 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
4709 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
4710 expects this variable
4712 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
4714 * doc/Makefile: Added instructions to create HTML and text
4715 versions of some files.
4717 1999-12-31 Werner LEMBERG <wl@gnu.org>
4719 * Updated INSTALL.gen.
4721 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
4722 better resp. correctly with non-HTML devices.
4724 Version 1.15 released
4725 =====================
4727 1999-12-28 Werner LEMBERG <wl@gnu.org>
4729 * NEWS, VERSION: Changed to 1.15
4731 1999-12-27 Paul Eggert <eggert@twinsun.com>
4733 * nroff/nroff.man: -S is safer, not safe.
4735 * groff/groff.cc (main): Use `safer', not `safe', in variable
4736 names. This does not change the behavior.
4738 * troff/input.cc (main): Likewise.
4740 * nroff/nroff.sh: Likewise.
4742 * troff/input.cc (prepend_string): New function.
4743 (main): Prepend -msafer, so that we check macro libraries for
4746 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
4748 Version 1.14 released
4749 =====================
4751 1999-12-26 Werner LEMBERG <wl@gnu.org>
4753 * NEWS, VERSION: Changed to 1.14.
4755 1999-12-24 Werner LEMBERG <wl@gnu.org>
4757 * refer/refer.cc: Fixing the last fix.
4759 Version 1.13 released
4760 =====================
4762 1999-12-23 Werner LEMBERG <wl@gnu.org>
4764 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
4769 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
4771 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
4772 document conventions, the version number must be a real.
4774 Version 1.12.1 released
4775 =======================
4777 1999-12-22 Werner LEMBERG <wl@gnu.org>
4779 * VERSION: Changed to 1.12.1.
4781 1999-12-22 Alan Rooks <arooks@istar.ca>
4783 * refer/refer.cc (do_file): Slight modification to satisfy the
4784 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
4787 1999-12-20 Werner LEMBERG <wl@gnu.org>
4789 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
4792 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
4793 list of unsafe requests.
4795 * pic/pic.man: Fixed a typo.
4797 * man/groff_out.man: Fixed a typo.
4799 1999-12-18 Werner LEMBERG <wl@gnu.org>
4801 * Makefile.in: Doc fixes.
4803 1999-12-17 Fabrizio Polacco <fab@prosa.it>
4805 * groff/groff.cc: Missing `U' option added to getopt().
4807 * troff/troff.man: Missing `U' option added to synopsis.
4809 Version 1.12 released
4810 =====================
4812 1999-12-14 Werner LEMBERG <wl@gnu.org>
4814 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
4817 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
4818 with the more appropriate terms `safer' and `unsafe'.
4820 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
4821 sys_nerr and sys_errlist[].
4823 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
4825 * pic/pic.y, pic/pic.cc: Added check for fmod().
4827 1999-12-13 Werner LEMBERG <wl@gnu.org>
4829 * VERSION: Changed to 1.12.
4831 Here some patches from various sources; most of them taken from
4832 the Debian distribution.
4834 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
4835 tmac/Makefile.sub: New files copied directly from the NetBSD
4836 distribution. Probably, some additional adaptation later on is
4839 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
4842 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
4843 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
4844 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
4845 (`-S') is now the default.
4847 * README, NEWS: Updated.
4849 1999-12-09 Werner LEMBERG <wl@gnu.org>
4851 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
4853 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
4855 1999-12-06 Werner LEMBERG <wl@gnu.org>
4857 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
4858 grief than relief today. Additionally, it is against the GNU
4861 * configure: Recreated.
4863 1999-12-05 Werner LEMBERG <wl@gnu.org>
4865 * configure.in: Added GROFF_LIBM.
4867 * configure: Recreated.
4869 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
4872 * Makefile.in: Added definition of $(LIBM).
4874 * Makefile.comm (LIBM): Removed.
4876 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
4878 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
4880 * doc/Makefile: Added rule for generation pic.html.
4882 (clean): Files produced by grohtml will be removed also.
4884 * doc/pic.ms: Small fix.
4886 * tmac/tmac.html: Fixed suppression of headers.
4888 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
4890 * tmac/tmac.html: Fixing horizontal arrows.
4892 Turning off hyphenation.
4894 * tmac/tmac.an: Improved support for grohtml; better indentation,
4897 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
4899 * tmac/tmac.arkup: Added CDFTP macro
4901 * tmac/tmac.html: All headers are turned off for ms, me, and mm
4904 * tmac/troffrc: Some additions for HTML stuff.
4906 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
4908 * tmac/tmac.html: Small changes.
4910 1999-09-26 Werner LEMBERG <wl@gnu.org>
4912 * doc/groff.texinfo: Minor fixes.
4914 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
4916 * devhtml/TR: Changed spacewidth to 3.
4918 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
4920 * tmac/tmac.html: Moved markup macros to tmap.arkup.
4922 * tmac/tmac.arkup: New file.
4924 * grohtml/ChangeLog: New file.
4926 1999-09-16 Werner LEMBERG <wl@gnu.org>
4928 * doc/groff.texinfo (Common Features): Added Copying chapter.
4929 Changed format to @smallbook.
4931 1999-09-15 Werner LEMBERG <wl@gnu.org>
4933 * NEWS: Added info about groff.texinfo.
4935 * doc/groff.texinfo: Will now compile (using texi2dvi) without
4938 1999-09-14 Werner LEMBERG <wl@gnu.org>
4940 * groff/groff.man: More updates.
4942 1999-09-13 Werner LEMBERG <wl@gnu.org>
4944 * doc/groff.texinfo: New file. This manual is still very
4945 rudimentary. It has been originally contributed by Trent
4946 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
4949 * INSTALL: Added information about the `doc' subdir
4951 * troff/troff.man: Minor fixes.
4953 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
4956 * troff/input.cc (usage): Added missing `-ffam' to usage message.
4958 * Makefile.in (dist): groff-$(version).tar.gz must be removed
4959 also, otherwise it is included itself in another call of `make
4962 * groff/groff.cc (synopsis): Removed superfluous space.
4964 * PROJECTS, PROBLEMS, NEWS: Updated.
4966 * VERSION: Updated to 1.12beta.
4968 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
4970 * README: Updated: Included documentation about CVS repository,
4971 mailing lists, and daily snapshots.
4973 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
4975 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
4977 * tmac/tmac.an: If the tag didn't fit into the space that the
4978 macro `TP' specifies, the rest of the tag went into the space for
4981 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
4983 * grolj4/lj4.cc: Added duplex printing (option `-d').
4985 * grolj4/grolj4.man: Document duplex printing.
4987 1999-09-12 Werner LEMBERG <wl@gnu.org>
4989 * doc/Makefile (pic.ps): Fixed rule which caused problems with
4990 non-GNUish sed programs.
4992 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
4995 * configure.in (LIBS): Added `-lc'
4997 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
4999 * pic/tex.cc (solid_arc): Casting M_PI to double.
5001 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
5003 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
5004 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
5005 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
5007 * groff/groff_man.man: New file. This manual page was originally
5008 written for the Debian GNU/Linux system by Susan G. Kleinmann
5011 * eqn/list.cc (list_box::compute_metrics,
5012 list_box::compute_sublist_width): Removed variable declaration to
5013 avoid shadowing warnings.
5015 * grops/psrm.cc (resource_manager::process_file): Ditto.
5017 * tfmtodit/tfmtodit.cc (main): Ditto.
5019 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
5020 to avoid shadowing warnings.
5022 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
5023 shadowing loop variable.
5025 * groff/groff.man, troff/troff.man: Added doc about grohtml.
5027 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
5029 New grohtml frontend to convert groff input to html.
5031 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
5033 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
5035 * tmac/eqnrc: Added html device.
5037 * tmac/tmac.html: New file.
5039 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
5040 (troff_output::start_picture, troff_output::finish_picture),
5041 tbl/main.cc (process_input_file):
5042 Surrounded output with `graphics_start' and `graphics_end' so that
5043 the html driver can identify non-text portions.
5045 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
5046 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
5047 grotty/tty.ps (tty_printer::set_char): Additional parameter
5050 * include/printer.h: Class printer: New function
5051 set_char_and_width; new variables (is_char_named, is_named_set,
5052 named_command, named_char_s, named_char_n) to hold information
5053 about named characters -- needed by the html driver.
5055 * libdriver/printer.cc (printer::set_ascii_char,
5056 printer::set_special_char): Use set_char_and_width.
5058 * devhtml/*: New device files for html driver.
5060 * grohtml/*: New driver grohtml.
5062 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
5064 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
5067 1999-09-11 Luke Mewburn <lukem@netbsd.org>
5069 * libgroff/string.cc (search): Small fix to test against NULL
5072 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
5074 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
5075 \b'abc') were stacked in reverse order when processed in a
5078 * troff/node.h: Added `*last' to struct `node' to make the above
5081 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
5082 The default scale for the 'f' and 't' graphics functions were 'm'
5083 rather than 'u' (i.e., no scaling).
5085 1999-09-11 Peter Miller <peterm@jna.com.au>
5087 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
5088 do_file), soelim/soelim.man: Added `-I file' option to soelim,
5089 defining include paths.
5091 * soelim/soelim.cc (include_path_append): New function.
5093 1999-09-11 Larry Jones <larry.jones@sdrc.com>
5095 * tbl/main.cc (process_options): Unix (at least Documenter's
5096 Workbench) tbl allows arbitrary non-alpha characters between
5099 1999-09-11 Paul Eggert <eggert@twinsun.com>
5101 Y2k fixes. Don't assume that the current year precedes 2000.
5103 * doc/meref.me: Add \n(y2, \n(y4.
5105 * tmac/doc-common (Yr): New number register.
5106 (Dd): Don't assume current year precedes 2000.
5108 * tmac/tmac.e (td): Likewise.
5109 (y2, y4): New number registers.
5111 * pic/pic.man: Update reference for pic paper to May, 1991
5114 1999-09-11 Werner LEMBERG <wl@gnu.org>
5116 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
5117 Removed quotation marks which prevented correct expansion of
5120 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
5122 1999-09-10 Werner LEMBERG <wl@gnu.org>
5124 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
5127 * Removed configure.old.
5129 1999-08-31 Werner LEMBERG <wl@gnu.org>
5131 * VERSION: Updated to 1.11.1
5133 1999-05-27 Werner LEMBERG <wl@gnu.org>
5135 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
5137 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
5138 added quotations around $(tmac_wrap) to avoid syntax error if
5141 * configure: Newly generated using autoconf 2.13.
5143 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
5145 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
5147 * README, PROJECTS, NEWS, INSTALL, VERSION,
5148 doc/Makefile. doc/pic.ms, groff/groff.man:
5149 Prepare for 1.11 release. No code changes.
5150 Documentation for pic added (doc/pic.ms).
5152 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
5154 * Version 1.10 released.
5156 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
5158 * afmtodit/afmtodit.pl: Avoid comment on first line.
5160 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
5162 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
5163 * configure.in: Call it.
5165 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
5166 (distfiles): Doesn't depend on config.log or config.cache.
5168 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
5170 * grog/grog.sh: Use print "" rather than print in END rule.
5172 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
5174 * tbl/main.cc (process_data): Don't give error for excess data
5175 entries that are comments.
5177 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
5179 * tbl/main.cc (process_data): Fix case where new for-scope rules
5180 silently change meaning of code.
5182 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
5184 * troff/env.cc (hyphenate): Loop over all consecutive sequences
5185 of non-zero hyphenation codes.
5187 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
5189 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
5191 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
5193 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
5195 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
5197 * tmac/tmac.andoc: Make it work in compatibility mode.
5199 * refer/token.h (token_info::is_range_sep): New function.
5200 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
5201 * refer/ref.cc (reference::output): More sophisticated check for
5204 * devps/prologue.ps (MANUAL): New procedure.
5205 * grops/ps.cc (main): New -m option.
5206 (usage): Include -m.
5207 (ps_printer::~ps_printer): Implement -m.
5209 * aclocal.m4 (GROFF_G): New macro.
5210 * configure.in: Call it.
5211 * Makefile.in (g): Provided by configure.
5213 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
5215 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
5218 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
5219 (tmac_m, tmac_s): Deleted.
5220 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
5221 tmac_s_prefix): New variables.
5222 (MDEFINES): Change accordingly.
5223 * Makefile.comm (.man.n): Use new TMAC_* variables.
5224 * configure.in (GROFF_TMAC): Call.
5225 * aclocal.m4 (GROFF_TMAC): Define.
5226 * tmac/Makefile.sub (stamp_wrap): New target.
5227 (install_data, uninstall_sub): Handle macro wrapping.
5229 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
5231 * tbl/main.cc (main): Ignore -T option.
5233 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
5235 * devlj4/generate/special.map: Add definition of \(nb.
5237 * tmac/tmac.dvi: Add definition of \(nb.
5239 * troff/dictionary.c (dictionary::dictionary): association::v gets
5240 initialized by association::association.
5242 * tmac/Makefile.sub: Avoid using temporary files when installing.
5244 * troff/env.cc (environment::set_font): Make bad font number a
5247 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
5249 * Makefile.in (datadir): Use share rather than lib.
5251 * groff/groff.cc (basename): Rename to xbasename.
5253 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
5255 * Makefile (CCLIBS): Don't use.
5256 * Makefile.ccpg: Likewise.
5258 * acgroff.m4: Rename to...
5259 * aclocal.m4: Modify extensively for autoconf 2.
5260 * configure.in: Likewise.
5261 * Makefile.in: Likewise.
5263 * groff/pipeline.c (const): Declare as empty if __STDC__ not
5265 (xstrsignal): Check for definition of NSIG. Conditionalize
5266 on SYS_SIGLIST_DECLARED. Make return type const.
5268 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
5270 * troff/input.cc (interpolate_macro): Rephrase missing space
5273 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
5275 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
5276 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
5277 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
5278 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
5279 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
5280 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
5281 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
5282 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
5283 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
5284 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
5285 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
5288 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
5290 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
5292 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
5294 (macro_iterator::macro_iterator): Add additional argument.
5296 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
5298 * troff/div.cc (vertical_size::vertical_size): In place of integer
5299 specifying line spacing use cunits specifying post vertical
5301 (macro_diversion::output, top_level_diversion::output): Likewise.
5302 * troff/div.h: Change declarations accordingly.
5303 * troff/env.cc (pending_output_line): Replace ls field by post_vs
5305 (pending_output_line::pending_output_line,
5306 pending_output_line::output, environment::output,
5307 environment::output_line, environment::output_title,
5308 environment::hyphenate_line): In place of
5309 integer specifying line spacing use cunits specifying post vertical
5311 (environment::environment): Add post_vertical_spacing and
5312 prev_post_vertical_spacing arguments.
5313 (environment::get_post_vertical_spacing): New function.
5314 (environment::total_post_vertical_spacing): New function.
5315 (environment::post_vertical_spacing): New function.
5316 (init_env_requests): Initialize pvs request and .pvs register.
5317 * troff/env.h: Change declarations.
5319 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
5321 * tmac/tmac.pspic: Immediately remove the temporary file.
5323 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
5325 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
5326 height is specified.
5328 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
5330 * tbl/table.c (struct vertical rule, class table_entry): Use int
5331 not short for start_row and end_row.
5333 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
5335 * troff/input.cc (trapping_blank_line, blank_line_macro): New
5337 (diverted_space_node::reread, process_input_stack): Call
5338 trapping_blank_line() rather than blank_line().
5339 (init_input_requests): Bind "blm" to blank_line_macro().
5341 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
5343 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
5345 * troff/env.cc (environment::possibly_break_line): Require that
5346 width total excluding width of final space node be greater than
5347 the target text length.
5349 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
5351 * troff/node.cc (kern_pair_node::vertical_extent): New function.
5353 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
5355 * troff/node.cc (charinfo_node): New class.
5356 (glyph_node, composite_node): Derive from charinfo_node. Change
5357 member functions accordingly.
5359 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
5361 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
5363 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
5365 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
5367 * devps/generate/textmap (notsubset): Add.
5369 * tmac/tmac.a4: New file.
5371 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
5373 * pic/main.cc (had_parse_error): New variable.
5374 (do_picture, do_whole_file): Set had_parse_error if yyparse()
5376 (main): Return 1 if had_parse_error is true.
5378 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
5380 * grolj4/lj4.cc (main): Avoid use of strtoul.
5382 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
5384 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
5385 iso_8859_1 or $LESSCHARSET is latin1.
5387 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
5389 * hpftodit: New directory.
5390 * Makefile.in (CCPROGDIRS): Add hpftodit.
5391 * devlj4/generate: New directory.
5393 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
5395 * configure.in: Don't use AC_VFORK.
5396 * groff/pipeline.c (run_pipeline): Use fork() always.
5398 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
5400 * grops/ps.cc (main): Use %1 not %s in error message for -w.
5402 * Makefile.in (CCPROGDIRS): Add grolj4.
5403 (DEVDIRS): Add devlj4.
5404 * grolj4, devlj4: New directories.
5405 * tmac/troffrc: Handle lj4.
5406 * tmac/tmac.lj4: New file.
5408 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
5410 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
5412 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
5414 * troff/input.cc (do_if_request): At end of second string, switch
5415 environments before getting next token.
5417 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
5419 * devps/psstrip.sed: Split rule that strips whitespace on either
5422 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
5424 * troff/node.h (font_family::make_definition): Add return value to
5425 declaration. * troff/symbol.h (symbol::operator==,
5426 symbol::operator!=): Likewise.
5428 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
5430 * groff/groff.cc (main, help, synopsis): Handle -S.
5431 (possible_command::insert_arg): New function.
5433 * tmac/tmac.safer: New file.
5434 * tmac/msafer.man: New file.
5435 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
5437 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
5439 * pic/pic.h, pic/main.cc (safer_flag): New variable.
5440 * pic/pic.y (placeless_element): Avoid unsafe operations if
5441 `safer_flag' is set.
5442 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
5444 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
5446 * eqn/lex.cc (get_token): Put call to add_context() in block to
5447 work around Sun C++ 4.0 bug.
5449 * include/stringclass.h (operator +): Use ?: instead of `if' to
5450 work around Sun C++ 4.0 bug.
5452 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
5454 * tbl/main.cc (process_format): Accept - as a synonym for the _
5457 * libbib/index.cc (minus_one): Don't declare as const.
5459 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
5461 * troff/input.cc (get_char_for_escape_name): Push back a newline.
5463 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
5465 * troff/input.cc (write_macro_request): New function.
5466 (init_input_requests): Bind write_macro_request to writem.
5468 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
5470 * tmac/tmac.s (@EN): Turn filling back on even if there was no
5473 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
5475 * tmac/tmac.s (@TS): Renamed from TS.
5476 (TS): Call LP then TS again.
5477 (cov*ab-init): Alias @TS to TS.
5479 * tmac/tmac.s: Allow QP or RS to initialize.
5481 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
5482 Move initializations of PS and LL here.
5483 (par@init): Don't initialize HY. Avoid changing environment 0.
5484 (par*env-init): Don't all par@reset.
5486 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
5488 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
5490 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
5492 * Makefile.in (MDEFINES): Add LDFLAGS.
5493 (LDFLAGS): Add definition line.
5495 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
5497 * troff/input.cc (get_optional_char): Split off error check into...
5498 (check_missing_character): New function.
5499 * troff/token.h: Declare it.
5500 * troff/env.cc (margin_character): Don't call get_optional_char.
5501 Only call tok.next() after making the node.
5503 * include/lib.h (getopt): Make 2nd argument char *const *.
5505 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
5507 * nroff/conftest.sh: Deleted.
5509 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
5511 * pic/make-dos-dist: Deleted.
5513 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
5515 * devps/psstrip.sed: Strip comments before stripping trailing
5518 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
5520 * Version 1.09 released.
5522 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
5524 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
5526 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
5528 * libgroff/font.cc (font::load_desc): Fix typo in error message.
5530 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
5532 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
5533 about returning without a value.
5535 * troff/charinfo.h (charinfo::get_special_translation): Cast
5536 TRANSLATE_NONE to int.
5538 * refer/token.cc (lookup_token, store_token): Remove bogus loop
5539 test. Fix test so that it works with n unsigned.
5541 * pic/pic.y (defaults_table): Fully bracket initializer.
5542 * pic/lex.cc (lookup_keyword): Likewise.
5543 * eqn/lex.cc (token_table, def_table): Likewise.
5544 * eqn/box.cc (param_table): Likewise.
5545 * troff/input.cc (warning_table): Likewise.
5546 * libgroff/font.cc (table): Likewise.
5547 * grops/ps.cc (ps_printer::special): Likewise.
5548 * grops/psrm.cc (resource_manager::process_file): Likewise.
5549 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
5550 * refer/command.cc (command_table): Likewise.
5551 * addftinfo/addftinfo.cc (param_table): Likewise.
5553 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
5554 about temp's being unused.
5555 (unused): New function.
5557 * groff/pipeline.cc: Declare c_fatal.
5559 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
5562 * libbib/index.cc (index_search_item::load): Prevent compiler
5563 warnings about fd_closer's being unused.
5564 (unused): New function.
5566 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
5568 * troff/input.cc (copy_mode_error): Make `prefix' static.
5571 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
5573 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
5574 HAVE_CC_OSFCN_H and modify accordingly.
5576 * troff/input.cc (init_charset_table): radicalex overlaps
5579 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
5580 udodo!hans@relay.NL.net).
5581 * groff/configure.in: Call it.
5583 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
5584 * groff/configure.in: Call it.
5585 * include/lib.h: Conditionalize declaration of pclose.
5587 * troff/div.cc (last_page_number): New global variable.
5588 (top_level_diversion::begin_page): Exit if we just printed the
5590 * troff/div.h (last_page_number): Declare it.
5591 * troff/input.cc (parse_output_page_list): Set last_page_number.
5593 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
5594 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
5595 tmac/tmac.X: Likewise.
5596 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
5597 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
5599 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
5601 * tmac/doc-ditroff (hK): Remove groff specific code which
5602 prevented page-breaks between separate manual entries. If this is
5603 the first page, don't set the page number to 1.
5605 * acgroff.m4 (GROFF_POSIX): New macro.
5606 * configure.in: Use it.
5608 * troff/node.cc (class real_output_file,
5609 real_output_file::real_output_file,
5610 real_output_file::~real_output_file): Conditionalize use of
5611 popen/pclose on POPEN_MISSING.
5612 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
5613 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
5614 (pipe_source): Similarily.
5616 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
5618 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
5619 presence of declarations by trying to compile example with
5620 conflicting declarations. (gcc only gives a warning for missing
5623 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
5625 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
5626 (from Ulrich Lauther).
5628 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
5630 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
5632 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
5634 * indxbib/indxbib.cc (write_hash_table): Add code for case where
5635 pointers and ints have different sizes.
5637 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
5639 * tmac/tmac.s (par*env-init): Call par@reset.
5641 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
5643 * tmac/tmac.s (@IP): Switch to a new environment when diverting
5645 (par*push-tag-env, par*pop-tag-env): New macros.
5647 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
5649 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
5650 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
5652 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
5653 comment. Include <time.h>.
5655 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
5657 * grops/ps.cc (is_small_h, is_small_v): Deleted.
5658 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
5661 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
5663 * troff/input.cc (read_request): Only print a prompt if reading
5664 from the terminal. Also clearerr on EOF if reading from the
5665 terminal. Declare isatty.
5667 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
5669 * refer/label.y: Rename map_t to map_func and extractor_t to
5672 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
5674 * include/assert.h: Don't use volatile.
5675 * libgroff/assert.cc: Likewise.
5677 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
5679 * troff/input.cc (abort_request): Look at character in tok before
5682 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
5684 * troff/troff.h (NO_RETURN): Deleted.
5685 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
5686 * troff/input.cc (exit_troff): Likewise
5688 * Makefile.in: Remove `Making ...' messages since GNU make now
5691 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
5693 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
5695 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
5698 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
5700 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
5702 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
5704 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
5705 MARK_REG if there was no left delimiter.
5707 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
5709 * pic/troff.cc (troff_output::text): Set line thickness to
5710 relative before outputting text.
5712 * tmac/tmac.e (@k): Don't zero ?T.
5715 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
5717 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
5719 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
5721 * troff/input.cc (decode_args): Warn about unquoted tabs (from
5724 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
5726 * troff/input.cc (ignoring): New variable.
5727 (ignore): Set ignoring during call to do_define_macro.
5728 (do_define_macro): Clear ignoring before interpolating terminating
5730 (copy_mode_error): New function.
5731 (get_char_for_escape_name, read_long_escape_name,
5732 interpolate_arg): Use copy_mode_error.
5733 (warning_table): Add WARN_IG.
5734 * troff/troff.h (WARN_IG): Declare.
5735 (WARN_TOTAL): Change accordingly.
5737 * groff/pipeline.c (strsignal): Rename to xstrsignal.
5738 * groff/groff.cc (strsignal): Delete declaration.
5740 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
5742 * troff/div.cc (page_offset): Use 'm' as default scaling.
5744 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
5746 * nroff/nroff.sh: Ignore -u.
5748 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
5750 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
5752 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
5754 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
5756 (B2): With -Tascii, leave additional vertical space before
5757 and after. Ensure that the left and right indent is restored to
5758 what it was even if the point size changes. Don't call
5759 par@finish. Change the indent, line length and title length
5760 directly. With -Tascii, make the width of the box 1n less.
5761 (B1): Remember 1n at the current point size. Don't call
5762 par@reset. Change the indent, line length and title length
5763 directly. Ensure that the temporary indent is preserved.
5764 (par*box-mark-top): Turn off no spacing mode.
5766 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
5768 * Makefile.in (dist): Use .gz suffix.
5770 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
5772 * troff/input.cc (main): Add return 0.
5773 * pic/main.cc (main): Use return instead of exit.
5774 * tbl/main.cc (main): Likewise.
5775 * eqn/main.cc (main): Likewise.
5776 * grops/ps.cc (main): Likewise.
5777 * grotty/tty.cc (main): Likewise.
5778 * groff/groff.cc (main): Likewise.
5779 * grodvi/dvi.cc (main): Likewise.
5780 * refer/refer.cc (main): Likewise.
5781 * indxbib/indxbib.cc (main): Likewise.
5782 * lkbib/lkbib.cc (main): Likewise.
5783 * soelim/soelim.cc (main): Likewise.
5784 * addftinfo/addftinfo.cc (main): Likewise.
5785 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
5786 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
5788 * troff/token.h (process_input_stack): Don't declare as static.
5789 * troff/input.cc: Likewise.
5791 * troff/node.c (invalidate_fontno): Make it a static member of
5792 class font_family. Change callers.
5793 * troff/node.c: Change declaration.
5795 * tbl/main.cc (struct input_entry_format): Add explicit public
5797 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
5798 struct double_hline_stuff): Likewise.
5799 * tbl/table.h (struct entry_format): Likewise.
5800 * pic/object.h (struct saved_state): Likewise.
5802 * include/stringclass.h: Add forward declarations of friend
5803 functions that are later declared as inline. Don't include inline
5804 specifier in friend declaration.
5806 * libgroff/lib.h: Declare popen and pclose.
5807 * acgroff.m4 (GROFF_POPEN): New macro.
5808 * configure.in: Call it.
5810 * include/lib.h (PI): New constant. Undef first if necessary.
5811 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
5812 * grops/ps.cc (degrees, radians): Likewise.
5813 * libgroff/font.cc (font::get_skew): Likewise.
5815 * grops/ps.cc (is_ascii): New function.
5816 (ps_output::put_string): Use is_ascii. Use csprint rather than
5818 (ps_printer::define_encoding): Use csspace.
5819 * libgroff/strtol.c (ISASCII): New macro.
5820 (strtol): Cast arguments to is*() and tolower() to unsigned char.
5821 Use ISASCII rather than isascii.
5822 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
5823 * libgroff/cset.cc: Likewise.
5824 * libdriver/input.cc: Include cset.h.
5825 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
5828 * refer/refer.cc (main): Use %ld rather than %d for longs.
5830 * libbib/index.cc (index_search_item_iterator::get_tag): Use
5833 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
5835 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
5837 * troff/input.cc (hyphenation_code): Skip white space between
5840 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
5842 * tbl/table.h (table::entry_list_tailp): New member.
5843 (table::table): Initialize it.
5844 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
5847 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
5849 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
5850 with negative horizontal positions. Remove casts of glyph::hpos to
5852 (USHRT_MAX): Delete definition.
5853 (SHRT_MAX, SHRT_MIN): New definitions.
5854 (glyph::hpos): Change type to short.
5855 (tty_printer::end_page): Output multiple backspaces if necessary.
5856 Remove casts of glyph::hpos to int.
5858 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
5860 * tmac/tmac.s (@RT): New definition.
5862 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
5864 * refer/refer.cc (do_file): Make sure current_filename is set when
5867 * pic/common.cc (common_output::dot_line): Handle zero length
5870 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
5872 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
5873 (par@init): Initialize \n[HY].
5875 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
5877 * troff/dictionary.cc (dictionary::remove): Continue when
5880 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
5882 * Makefile.com (.y.cc): Avoid ending up with two versions of
5885 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
5887 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
5888 (\(,C): Likewise. Also fix typo.
5890 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
5892 * lib.h: Delete extraneous semi-colon.
5894 * Add pso request: `so' from a pipe.
5895 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
5896 (file_iterator::close): New function.
5897 (file_iterator::~file_iterator, file_iterator::next_file): Use
5898 file_iterator::close.
5899 (file_iterator::backtrace): Say `process' rather than `file' when
5900 the stream is popened.
5901 (pipe_source): New function.
5902 (init_input_requests): Bind ".pso" to pipe_source.
5904 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
5906 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
5908 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
5909 digits in lower case.
5911 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
5913 * Version 1.08 released.
5915 * Makefile.in (dist): Insert || true after ln -s commands that
5918 * mm: Update to mm 1.16.
5920 * acgroff.m4 (GROFF_CSH_HACK): New macro.
5921 * configure.in: Call GROFF_CSH_HACK. Substitute for
5923 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
5925 * nroff/Makefile.sub (nroff): New target.
5926 (install_data): Install nroff.
5927 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
5928 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
5930 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
5932 * eqn/Makefile.sub (neqn): Add chmod +x.
5934 * grog/Makefile.sub (grog): Remove spurious semi-colon.
5936 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
5938 * troff/input.cc (string_iterator::string_iterator()): Initialize
5941 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
5943 * troff/div.cc (macro_diversion::space,
5944 top_level_diversion::space): Don't set high_water_mark.
5945 (macro_diversion::output, top_level_diversion::output): Don't
5946 include post line space in high water mark.
5948 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
5950 * eqn/eqn.y: Don't define YYDEBUG.
5951 * pic/pic.y: Likewise.
5953 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
5955 * tmac/tmac.e ([3): Add space after comma following editors.
5956 Change double spaces to single spaces.
5957 ([4): Change double spaces to single spaces.
5959 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
5960 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
5961 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
5962 after %!PS-Adobe- (for Newsprint).
5964 * troff/div.cc (top_level_diversion::begin_page): When
5965 before_first_page is 1, set page_number to 1.
5967 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
5969 * eqn/box.cc (box::top_level): Protect equation with \&.
5971 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
5973 * groff/groff.cc (possible_command::set_name): Delete old name.
5975 * groff/groff.cc (possible_command::~possible_command): Use
5978 * troff/node.cc (troff_output_file::begun_page): New member.
5979 (troff_output_file::troff_output_file): Initialize it.
5980 (troff_output_file::really_begin_page): Only output V command if a
5981 page has been begun.
5983 * pic/pic.y (placeless_element): Delete argument to PRINT after
5986 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
5988 * Make wrapman work.
5989 * troff/div.h (class top_level_diversion): Replace
5990 first_page_begun by before_first_page (with opposite sense).
5991 * Change first_page_begun to before_first_page inverting sense.
5992 * troff/div.cc (class nl_reg): New class.
5993 (init_div_requests): Use class nl_reg for \n(nl.
5994 (top_level_diversion::begin_page): Don't call
5995 output_file::begin_page if before_first_page is 2;
5996 reset before_first_page afterwards. If have_next_page_number is
5997 false, then always increment page_number.
5998 * tmac/tmac.an: Set traps within TH rather than at the top-level.
5999 Restore compatibility mode after loading, and then disable
6000 compatibility mode in TH.
6002 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
6004 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
6006 * troff/node.h (output_file::trailer): Declare.
6007 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
6008 * troff/node.cc (output_file::trailer): New function.
6009 (troff_output_file::~troff_output_file): Move most code into...
6010 (troff_output_file::trailer): New function.
6011 (class troff_output_file): Delete page_length member. Declare
6013 (troff_output_file::really_begin_page): Use current page length
6014 for final V command.
6016 * tbl/main.cc (struct options): New decimal_point_char member.
6017 (options::options): Initialize this.
6018 (process_options): Implement decimalpoint option.
6019 (process_data): Pass decimal_point_char option to table::table.
6020 * tbl/table.h (class table): New decimal_point_char member.
6021 (table::table): Add additional argument.
6022 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
6023 second argument specifying decimal point character. Use this
6025 (table::table): Initialize decimal_point_char.
6026 (table::add_entry): Change call to find_dot.
6028 * troff/input.cc (get_copy, token::next): Implement \V.
6029 (interpolate_environment_variable): New function.
6031 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
6033 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
6034 * pic/pic.y: Likewise.
6036 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
6038 * refer/ref.cc (reference::insert_field, reference::delete_field):
6040 * troff/number.cc (parse_term): Likewise.
6042 * acgroff.m4 (GROFF_PROG_YACC): New macro.
6043 * configure.in: Use GROFF_PROG_YACC.
6045 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
6047 * Makefile.in (OPTIMIZE): New define.
6048 (DEBUG): Empty by default.
6049 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
6051 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
6052 (GROFF_ARRAY_DELETE): Likewise.
6053 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
6055 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
6057 * devps/psstrip.sed: Use different delimiter on last line (so that
6058 it works with BSD 4.4 sed.)
6060 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
6062 * devps/psstrip.sed: Delete comments.
6064 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
6065 optind, opterr, optarg.
6066 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
6069 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
6071 * Makefile.in (check): Dummy target.
6073 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
6075 * Version 1.07 released.
6077 * Integrate mm 1.11.
6079 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
6080 where start_col was meant.
6082 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
6084 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
6086 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
6088 * troff/input.cc (token::next): Make \z\o'...' and similar things
6091 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
6093 (environment): Add margin_character_flags member.
6094 * env.cc (environment::environment(symbol),
6095 environment::environment(const environment *): Initialize
6096 margin_character_flags.
6097 (margin_character): Rewrite.
6098 (environment::output_line): Add a margin character if
6099 margin_character_flags is non-zero. Turn off the
6100 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
6101 zero, use margin_character_node without copying and then set
6102 margin_character_node to 0.
6104 * devps/DESC.in: Change minimum size to 1000.
6106 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
6108 * troff/symbol.h (symbol::hash): Change return type to unsigned
6110 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
6113 * test-groff: Use -r rather than -x.
6115 * grops/psfig.diff: Include in distribution again.
6117 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
6119 * Makefile.in (dist): Use gzip.
6121 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
6123 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
6124 unistd.h as well as in stdlib.h.
6125 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
6126 defined; otherwise include <sys/types.h> and <unistd.h> if
6127 UNISTD_H_DECLARES_GETOPT is defined.
6129 * configure.in: use builtin(include, ... rather than include(...
6130 * configure: Regenerate with autoconf 1.3.
6132 * libdriver/print.cc (printer::adjust_arc_center): Use new
6133 algorithm suggested by Andy Fyfe.
6135 * libdriver/printer.cc (printer::adjust_arc_center): New function.
6136 * include/printer.h: Declare this.
6137 * grops/ps.cc (ps_printer::draw): Use it.
6138 * grodvi/dvi.cc (dvi_printer::draw): Use it.
6140 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
6142 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
6144 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
6146 * eqn/main.cc (main): Handle "eqn -".
6148 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
6150 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
6152 * mm: Integrate version 1.08.
6154 * pic/troff.cc (troff_output::finish_picture): Set
6155 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
6156 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
6157 if it's not defined. Check whether the register is non-zero rather
6158 than whether it's not defined.
6159 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
6161 * indxbib/indxbib.cc: Move all signal handling into...
6162 * indxbib/signal.c: New file.
6163 * configure.in: Call AC_RETSIGTYPE.
6165 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
6166 * configure.in: Call GROFF_STRUCT_EXCEPTION.
6167 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
6169 * troff/input.cc (token::token, token::operator=): Work round SGI
6171 * pic/object.cc (position::position): Likewise.
6173 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
6175 * pic/pic.h: Move declaration of hypot().
6177 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
6179 * pic/pic.h: Declare hypot().
6181 * pic/pic.h: Define M_PI if necessary.
6183 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
6185 * tmac/tmac.e (re): Add alternative version that doesn't use groff
6188 * devps/prologue.ps (RE): Handle the possibility that the old font
6189 doesn't have a FontName entry.
6191 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
6193 * tmac/tmac.e (fam): Redefine to set family in environment 2.
6194 (@C): Use @fam not fam.
6196 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
6198 * lookbib/lookbib.cc (main): Change type of start to const char *.
6199 * lkbib/lkbib.cc (main): Likewise.
6201 * eqn/lex.cc (definition::definition): Don't use member
6202 initializer syntax for members of anonymous unions.
6204 * troff/input.cc (input_stack::backtrace): Change type of to const
6207 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
6209 * include/stringclass.h (class string): Declare inline friend
6210 functions as inline in class declaration.
6211 * troff/hvunits.h (class hunits, class vunits): Likewise.
6212 * include/refid.h (class reference_id): Likewise
6213 * troff/troff.h (points_to_units(units), scale(units, double)):
6214 Delete declarations.
6215 * libdriver/input.cc (get_char): Delete declaration.
6216 * include/lib.h: Change 2nd argument of getopt from const char **
6218 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
6219 char **' before assigning to a `const char **'.
6220 * tbl/table.cc: Delete extra declarations of prints().
6222 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
6224 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
6225 char **' before assigning to a `const char **'.
6227 * libgroff/errarg.cc (errarg::errarg): Don't use member
6228 initializer syntax for members of anonymous unions.
6230 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
6232 * mm: Integrate version 1.07.
6234 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
6236 * troff/input.c (translate2): Rename to
6237 (translate_no_transparent).
6238 (init_input_requests): Rename tr2 to trnt.
6240 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
6242 * troff/charinfo.h (class charinfo): Add transparent_translate field.
6243 (charinfo::set_translation, charinfo::set_special_translation):
6244 Add second argument that specifies value for
6245 transparent_translate.
6246 (charinfo::get_translation, charinfo::get_special_translation):
6247 Add optional second argument that specifies whether translation is
6248 being used for transparent throughput.
6249 * troff/input.cc (charinfo::set_translation,
6250 charinfo::set_special_translation): Handle second argument.
6251 (charinfo::charinfo): Initialize transparent_translate.
6252 (translate): Split main part off into
6253 (do_translate): New function. Pass argument saying whether
6254 translation applies to transparent throughput.
6255 (translate2): New request.
6256 (init_input_requests): Bind translate2 to `tr2'.
6258 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
6260 * tbl/table.h (class table): Add `nokeep' flag.
6261 * tbl/main.cc (process_options): Handle `nokeep' option.
6262 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
6263 table::do_bottom): Don't output keep/release macro definitions or
6264 calls when `nokeep' option has been specified.
6266 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
6268 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
6270 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
6272 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
6273 block_entry::divert, alphabetic_block_entry::divert): Add extra
6274 argument giving column separation.
6275 (table::compute_widths): Pass column separation to
6276 table_entry::divert().
6277 (block_entry::do_divert): If an entry spans multiple columns and a
6278 minimumum width has been specified for each column, then set the
6279 line length to the sum of the widths (plus possibly the column
6282 * troff/input.cc (set_escape_char): Don't set the escape_char
6283 until after calling has_arg().
6285 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
6287 * tbl/table.cc (table::do_top): Add missing \s0 for double box
6290 * tbl/table.cc (table::print_double_hline): Avoid extra new line
6291 in case where r > nrows - 1.
6293 * tbl/table.cc (BODY_HEIGHT): Deleted.
6294 (LINE_SEP): New definition.
6295 (table::print_single_hline, table::print_double_hline,
6296 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
6297 table::do_row, table::do_top): Use LINE_SEP space before a line
6298 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
6300 * tbl/table.cc (text_entry::print_contents): New function.
6301 (text_string_name, right_text_string_name): Deleted.
6302 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
6303 (simple_text_entry::do_width, numeric_text_entry::do_width,
6304 alphabetic_text_entry::do_width): Don't store the contents of the
6306 (left_text_entry::simple_print, right_text_entry::simple_print,
6307 center_text_entry::simple_print,
6308 alphabetic_text_entry::simple_print,
6309 numeric_text_entry::simple_print): Print the entry directly
6310 instead of using the stored string.
6312 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
6314 * devps/Makefile: Strip PostScript files.
6315 * devps/prologue: Rename to...
6316 * devps/prologue.ps.
6317 * devps/psstrip.sed: New file.
6318 * devps/download: Use .pfa rather than .ps for installed versions
6321 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
6323 * troff/env.cc (input_trap): Give a warning if the argument is out
6326 * troff/env.cc (adjust): Treat negative argument as missing. Round
6327 argument > 5 down to 5.
6329 * troff/env.cc (center, right_justify): Make negative argument zero.
6331 * troff/div.cc (page_offset, vertical_position_traps): Treat
6332 invalid argument as missing.
6333 * troff/env.cc (line_spacing, line_length, title_length, indent,
6334 underline, hyphen_line_max_request, control_char,
6335 no_break_control_char, widow_control_request, adjust, input_trap,
6336 point_size): Likewise.
6337 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
6338 constant_space): Likewise.
6339 * troff/input.cc (compatible, shift, warn_request,
6340 set_escape_char): Likewise.
6342 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
6343 * tbl/table.cc (table::table): Likewise.
6345 * Makefile.dev (install_dev): depends on $(DEVFILES).
6347 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
6349 * devX75, devX75-12, devX100, devX100-12: New directories.
6350 * Makefile.in: Add these to DEVDIRS.
6352 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
6353 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
6354 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
6355 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
6357 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
6358 (uninstall): New target.
6359 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
6360 uninstall_prog, uninstall_dev): New targets.
6362 * troff/div.cc (return_request): Treat an invalid argument as
6365 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
6367 * tmac/tmac.e ((f): Set up the environment even when there's a
6368 current diversion. Transperently throughput a call to @N.
6371 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
6373 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
6374 up to vertical resolution.
6376 * tbl/table.cc (table::do_row): Change row number after printing
6379 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
6381 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
6383 * Rename CHANGES to NEWS.
6385 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
6387 * libgroff/new.cc (operator new): Avoid calling malloc(0).
6389 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
6391 * man.ultrix: Removed.
6393 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
6395 * Makefile.comm (extraclean): Delete files whose names begin with
6398 * pic/troff.cc (troff_output::text): Fix typo in implementation of
6401 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
6403 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
6404 * troff/div.cc (page_length, need_space, space_request): Treat
6405 invalid optional argument as missing.
6406 * troff/env.cc (number_lines): If the first argument is present
6407 but not a number, turn on line numbering, don't change the next
6408 line number and parse the remaining arguments.
6410 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
6412 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
6414 * eqn/box.h: Change declaration accordingly.
6415 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
6416 the specified size was bad but don't give an error. Check for
6418 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
6419 * eqn/lex (do_size): Likewise.
6421 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
6423 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
6426 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
6428 * tbl/table.cc (table::init_output): Improve error message when
6429 table won't fit on one page.
6431 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
6433 * pic/troff.cc (troff_output::start_picture): Generate line
6434 containing a horizontal motion equal to the width of the picture.
6436 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
6437 using GROFF_COMMAND_PREFIX environment variable.
6439 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
6441 * mdate.sh: Use $NF rather than $(NF).
6443 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
6445 * pic/main.cc (main): Use %1 not %c in argument to warning.
6447 * eqn/main.cc (main): Output code to check that geqn was given the
6450 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
6452 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
6453 `ln -s ../Makefile .; make; rm -f Makefile'.
6455 * troff/hyphen: Rename to...
6457 * troff/input.cc (main): Delete -H option. Don't call
6459 * troff/env.cc: Include searchpath.h and macropath.h.
6460 (exception_dictionary): Deleted.
6462 (read_hyphen_file): Deleted.
6463 (hyphenation_language): New struct.
6464 (class trie, class hyphen_trie): Move declarations up.
6465 (trie_node::~trie_node): Deleted.
6466 (trie::delete_trie_node): New function.
6467 (trie::do_delete): New pure virtual function.
6468 (hyphen_trie::do_delete): New function.
6469 (trie::~trie): New function.
6470 (hyphen_trie::~hyphen_trie): New function.
6471 (trie::clear): No need to chcek that tp is not 0.
6472 (current_language, language_dictionary): New variables.
6473 (hyphen_word): Give an error if no current language. Use
6474 exceptions dictionary in current language.
6475 (hyphen_trie::read_patterns_file): Find file using macro_path.
6476 Allow comments (starting with %) in patterns file. Don't make it
6477 a fatal error if the file can't be found.
6478 (hyphenate): Return if no current language. Get the exceptions
6479 dictionary and the hyphenation patterns from the current language.
6480 (set_hyphenation_language): New variable.
6481 (hyphenation_patterns_file): New function.
6482 (hyphenation_language_reg): New class.
6483 (hyphenation_language_reg::get_string): New function.
6484 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
6485 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
6487 * groff/groff.cc (main, help, synopsis): Delete -H option.
6488 * include/Makefile.sub: Don't define HYPHENFILE.
6489 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
6490 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
6491 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
6492 hyphenation patterns.
6494 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
6496 * eqn/neqn.sh: New file.
6497 * eqn/Makefile.sub: Handle neqn.sh.
6499 * eqn/eqn.h: Declare `nroff' variable.
6500 * eqn/box.cc (param_table): Add `nroff' param.
6502 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
6504 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
6506 * troff/troff.h (WARN_FONT): New warning.
6507 (WARN_TOTAL): Change accordingly.
6508 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
6509 (warning_table): Add WARN_FONT.
6510 * troff/node.cc (mount_font_no_translate): Pass argument to
6511 font::load_font. If this is non-zero, give a warning.
6512 Don't give an error message when accessing a font that has already
6513 been found to be invalid.
6514 * include/font.h (font::load, font::load_font): Add additional
6515 optional argument which suppresses error message if the font is
6517 * libgroff/font.cc (font::load_font): Handle additional argument.
6518 (font::load): Add additional argument. If this is non-null, set it
6519 to 1 and don't give error message.
6521 * include/printer.h (printer::end_page): Add argument giving
6523 * libdriver/input.cc (do_file): Pass this.
6524 * grops/ps.cc (ps_printer::end_page): Add argument.
6525 * grodvi/dvi.cc (dvi_printer::end_page,
6526 draw_dvi_printer::end_page): Add argument.
6527 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
6528 columns_per_page members. New member nlines.
6529 (DEFAULT_LINES_PER_PAGE): Deleted.
6530 (tty_printer::tty_printer): Don't compute lines_per_page from
6531 font::paperlength. Don't compute columns_per_page from
6533 (tty_printer::add_char): Don't check horizontal position against
6534 columns_per_page. Grow glyphs vector if neccessary.
6535 (tty_printer::end_page): Add argument giving page_length in units.
6536 Discard lines past end of page.
6538 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
6540 * tmac/tmac.tty-char: Fix definition of \(/l.
6542 * tmac/tmac.X: Define \(en.
6544 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
6546 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
6547 lpq, then use lp rather than lpr.
6549 * tmac/tmac.s (par@reset): Don't call `ad'.
6550 (par*env-init): Call `ad'.
6552 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
6554 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
6557 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
6558 * indxbib/indxbib.cc: Likewise.
6560 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
6562 * libgroff/putenv.c: New file.
6563 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
6564 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
6565 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
6566 stdlib.h with AC_HAVE_HEADERS.
6568 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
6570 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
6573 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
6575 * eqn/box.cc (gsize): Make it an int.
6576 (set_gsize): Parse argument handling increment or decrement.
6577 (box::top_level): Convert gsize to a string.
6579 * troff/input.cc (exit_troff): Make buf unsigned char [].
6580 Call to make_temp_iterator casts buf to char*.
6582 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
6584 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
6585 * Makefile.cpg (depend.temp): Likewise.
6587 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
6589 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
6591 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
6593 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
6595 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
6597 * Version 1.06 released.
6599 * Integrate mm 1.04.
6601 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
6603 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
6605 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
6607 * afmtodit/afmtodit.pl: Add -n option that disables generation of
6609 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
6610 afmtodit. Regenerate.
6612 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
6613 @f back past the current position.
6615 * tmac/tmac.e: Change calls to @R so that comments are not part of
6618 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
6620 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
6622 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
6623 check that we can link a call to a function declared in <stdio.h>.
6624 (GROFF_UNISTD_H): New macro.
6625 * configure.in: Call it.
6626 * Makefile.in: Document it.
6627 * include/posix.h: New file.
6628 * troff/troff.h: Don't include <osfcn.h>
6629 * troff/input.cc: Include posix.h.
6630 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
6632 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
6633 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
6635 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
6636 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
6637 * libbib/search.cc (O_RDONLY): Delete definition.
6638 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
6639 Don't include <osfcn.h>.
6641 * acgroff.m4 (GROFF_TIME_T): New macro.
6642 * configure.in: Call it.
6643 * Makefile.in: Document it.
6645 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
6646 * configure.in: Call it.
6647 * Makefile.in: Document -DTRADITIONAL_CPP.
6648 * include/ptable.h: Don't include generic.h.
6651 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
6652 Afterwards remove [T1 and [T2.
6653 (ref*spec!0, ref*spec!2): Use T1 rather than T.
6654 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
6655 (ref*add-T2): Renamed from ref*add-T.
6656 (ref*add-T1): New macro.
6658 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
6660 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
6662 * libbib/index.cc: Include <fcntl.h>.
6663 (O_RDONLY): Define if necessary.
6664 (make_index_search_item, index_search_item_iterator::get_tag,
6665 index_search_item::check_files): Use O_RDONLY.
6666 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
6667 (O_RDONLY): Define if necessary.
6668 (search_list::add_file): Use O_RDONLY.
6669 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
6671 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
6674 * libbib/index.cc (S_ISREG): Define it if necessary.
6675 (index_search_item::load): Use S_ISREG.
6677 * include/driver.h: Include <errno.h>.
6679 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
6681 * eqn/box.cc (body_height): Increase default value to 85.
6682 (body_depth): Increase default value to 35.
6684 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
6686 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
6687 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
6688 protected from expansion with \E.
6690 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
6692 * Makefile (Makefile): New target.
6694 * Makefile.sub (configure, distfiles): New targets.
6696 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
6699 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
6701 * eqn/box.cc (param_table): Add body_height and body_depth.
6703 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
6705 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
6707 * psbb/Makefile.sub: Don't link with libgroff.a.
6709 * acgroff.m4 (GROFF_PUTENV): New macro.
6710 * configure.in: Call GROFF_PUTENV.
6711 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
6712 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
6715 * troff/env.cc (distribute_space): Rename force_forward argument
6716 to force_reverse. Reverse the list if force_reverse is true.
6718 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
6720 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
6722 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
6723 height or depth to be negative. Guard against SUP_RAISE quantity
6726 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
6728 * devps/generate/textmap: Add `an' (arrowhorizex).
6729 * tmac/tmac.ps: \(an overlaps horizontally.
6730 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
6732 * devps/symbolchars: Add arrowverttp, arrowvertbt.
6733 * devps/textmap: Add arrowvertex.
6734 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
6735 updownarrow delimiters.
6736 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
6738 * tbl/table.cc (simple_entry::position_vertically,
6739 block_entry::position_vertically): For a centered entry, perform
6740 the motion in two stages.
6742 * refer/refer.cc (split_punct): Don't call lookup_token if there
6745 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
6747 * troff/input.cc (token::next): Delete token_node after copying
6750 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
6753 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
6755 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
6757 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
6759 * grops/ps.cc (usage): -b option takes an argument.
6761 * devps/prologue (PLG): New procedure.
6762 * grops/ps.cc (main, usage): New -g option.
6763 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
6766 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
6768 * include/cset.h: Include <limits.h> if we have it.
6770 * libgroff/illegal.cc: New file.
6771 * include/lib.h (illegal_input_char): Use table.
6772 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
6773 * pic/lex.cc (ARG1): Renumber to 14.
6774 * eqn/lex.cc (ARG1: Likewise.
6776 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
6777 (eg 1.05.90) correctly.
6779 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
6781 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
6782 Rename $r and $R registers to $v and $V.
6783 ($r, $R): Initialize to 0.
6784 (@v, @V): New macros.
6788 * troff/input.cc (main, usage): Add -R option that says not to
6790 * eqn/main.cc (main, usage): Rename -n to -R.
6792 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
6794 * devps/DESC.in: Leave font positions 5-9 blank.
6795 * devdvi/DESC.in: Likewise.
6797 * grog/grog.pl: Handle `.PS <file' correctly.
6799 * troff/input.cc (input_stack::push): Improve error message when
6800 input stack limit exceeded.
6802 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
6804 * refer/refer.cc (main): Fix typo in handling of `a' option.
6806 * refer/refer.cc (do_bib): In state START after a newline remain
6809 * groff/groff.sh: Deleted.
6810 * groff/Makefile.sub: Delete handling of groff.sh.
6812 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
6813 to determine whether to use \X'ps:...'.
6814 * tmac/troffrc: Set 0p register to 0.
6815 * tmac/tmac.ps: Set 0p register to 1.
6817 * groff/groff.cc: Support -X option. Give warning for -TXps and
6818 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
6819 * tmac/troffrc: Support -r.X=1.
6821 * pic/troff.cc (troff_output::dot): Don't test
6822 zero_length_line_flag.
6824 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
6826 * include/lib.h: Declare getopt() and friends unless
6827 STDLIB_H_DECLARES_GETOPT is defined.
6829 * doc/chars.tr: Delete.
6830 * man/groff_char.man: New file.
6832 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
6834 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
6835 user has changed register format.
6837 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
6839 * groff/groff.cc: Get rid of device_table. Get postprocessor from
6840 `postpro' command in DESC file. Get spooler command from `print'
6841 command in DESC file. Execute spooler command with /bin/sh.
6843 * groff/groff.cc: Split Unix-specific parts into...
6844 * groff/pipeline.c: New file.
6847 * COPYING: New file.
6848 * all files: Update copyright notices.
6850 * Rearrange files. Redo Makefiles. Use autoconf.
6852 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
6854 * troff/input.c (charinfo_to_node_list): Interpret character
6855 definition with escape_char of `\'.
6857 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
6859 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
6860 Define INT_DIGITS as big enough for 64-bit integer.
6861 * lib/strtol.c: Don't include lib.h.
6862 * lib/lib.h: Delete ifdef __cplusplus stuff.
6864 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
6866 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
6867 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
6868 get DESC from current directory.
6870 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
6872 * tbl/main.c (main): Always reset the line number when reading
6875 * tbl/table.c (table::print_single_hline, table::print_double_hline,
6876 table::define_bottom_macro, table::do_row, table::do_top): Round
6877 vertical spacing up to vertical resolution.
6879 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
6881 * ps/ps.h (enum resource_type): Avoid comma at end of
6883 * dvi/dvi.c (class dvi_printer): Likewise.
6884 * dvi/tfmtodit.c (gf::load): Likewise.
6885 * refer/label.y (struct expression): Likewise.
6886 * refer/refer.c (class label_processing_state): Likewise.
6887 * refer/indxbib.c (do_file): Likewise.
6888 * troff/troff.c (enum warning_type): Likewise.
6889 * tbl/main.c (process_data): Likewise.
6890 * troff/charinfo.h (class charinfo):
6892 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
6894 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
6896 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
6898 * groff.c: Move to new groff subdirectory.
6899 * groff/Makefile: New file.
6900 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
6902 * man/mdate.sh: Use ls -L if supported.
6904 * Consolidate all header files produced by gendef into lib/defs.h.
6905 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
6906 Don't include path.h.
6907 * lib/Makefile (path.h): Don't generate.
6908 * troff/input.c: Include defs.h. Don't include config.h.
6909 * troff/Makefile (config.h): Don't generate.
6910 * refer/index.h: Don't include suffix.h.
6911 * refer/index.c: Include defs.h.
6912 * refer/indxbib.c: Include defs.h.
6913 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
6915 * refer/Makefile (suffix.h, path.h): Don't generate.
6916 * groff.c: Don't include config.h. Include defs.h.
6917 * Makefile (config.h): Don't generate.
6918 (lib/defs.h): Generate.
6919 (topclean): Remove lib/defs.h.
6921 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
6923 * lib/malloc.c, lib/getpagesize.h: Deleted.
6924 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
6926 * lib/Makefile: Delete malloc-related stuff.
6927 * lib/new.c: Workaround COOKIE_BUG if necessary.
6929 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
6930 needed header files directly.
6931 * refer/refer.h: Omit definition of DEFAULT_INDEX.
6932 * Makefile: Include definition of DEFAULT_INDEX in path.h.
6934 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
6936 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
6938 * lib/font (font::load_desc, font::load): Don't split argument of
6940 (font::handle_unknown_font_command): Change type.
6941 * ps/ps.c (ps_font::handle_unknown_font_command,
6942 handle_unknown_desc_command): Change type.
6943 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
6945 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
6947 * lib/font.h (font::handle_unknown_font_command): Add file and
6949 * lib/font.c (font::handle_unknown_font_command):
6950 * ps/ps.c (ps_font::handle_unknown_font_command):
6951 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
6952 lineno arguments. Use _with_file_and_line functions for error
6955 * lib/fontfile.c (font::unknown_desc_command_handler): New static
6957 * lib/font.c (font::set_unknown_desc_command_handler): New
6959 (font::load_desc): For unknown commands, call
6960 unknown_desc_command_handler if not null.
6961 * lib/font.h (class font): Declare them.
6962 (FONT_COMMAND_HANDLER): New typedef.
6963 * ps/ps.c (handle_unknown_desc_command): New function.
6964 (main): Set bflag if we had a -b option. Call
6965 font::set_unknown_desc_command_handler.
6966 (broken.h): Don't include.
6967 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
6969 * ps/devps/Makefile: Add `broken' command to DESC file using
6970 BROKEN_SPOOLER_FLAGS.
6972 * macros/tmac.e ([, ]): Add as synonyms for { and }.
6974 * macros/tmac.e ($p): Only exdent if \$3 > 0.
6976 * macros/tmac.e (@R, @S): New macros.
6977 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
6978 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
6979 Declare $H, $[0-9], .. macros with @S.
6980 Declare |0, |1, |2, |3 strings with @S.
6982 * macros/tmac.e (@S): Rename to @U.
6984 * macros/tmac.e (@z): Define @b and bp as empty instead of
6987 * macros/tmac.e (@m): Deleted.
6988 (@h): Don't call @m.
6989 (@z): Don't set @m trap.
6991 * macros/tmac.e ($h, $f): Define |z as empty string.
6993 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
6996 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
6998 ()f): Likewise for * register.
7000 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
7001 argument is missing, don't change $R. Call sr with three
7002 arguments when initializing.
7004 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
7006 * macros/tmac.e (sr): New macro.
7007 Initialize $r and $R using sr.
7009 * macros/tmac.e (,): Delete \*(#[.
7011 * troff/env.c (set_tabs): Read the tab type even if the position
7012 is bad. Allow the position of the first tab stop to be negative.
7014 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
7016 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
7018 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
7019 rather than -DPATHCONF_MISSING.
7020 * Makefile: Get rid of PATHCONF_MISSING.
7022 * refer/map.c: New file.
7023 * refer/index.c: Interface to mmap through map.c. Rename map_size
7025 * refer/Makefile: Handle map.c.
7026 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
7028 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
7030 * Makefile: RANLIB should be `true' if there is no ranlib.
7031 * lib/Makefile (libgroff.a): Simplify.
7032 * driver/Makefile (libdriver.a): Simplify.
7034 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
7035 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
7038 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
7040 * troff/env.c (compare_ranges): Declare as extern "C".
7042 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
7044 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
7046 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
7048 * pic/troff.c (troff_output::text): Merge in grops_output::text,
7049 but conditionalize use of \X based on \*(.T.
7050 (grops_output::*): Deleted.
7051 * pic/output.h: Delete declaration of make_grops_output.
7052 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
7053 by default. -n sets it to 0.
7054 (usage): Corresponding changes.
7055 * groff.c (main): Don't pass -x or -p to pic.
7056 * groff.sh: Likewise.
7058 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
7061 * ps/devps/afmtodit: Change calculation of asc_boundary and
7062 desc_boundary. Make these bounds inclusive.
7063 * ps/devps: Regenerate font files.
7065 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
7067 * macros/tmac.latin1: New file.
7068 * macros/tmac.tty-char: Use tmac.latin1.
7069 (tmac.tty-tr): Deleted.
7070 * macros/Makefile: Install tmac.latin1.
7071 * macros/tmac.dvi: Use tmac.latin1.
7072 * macros/troffrc: Translate \[char160] onto no-break space here.
7073 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
7075 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
7077 * macros/tmac.Xps: Use `do' request.
7079 * macros/tmac.ps: Use `do' request.
7081 * macros/tmac.e (@C): Use `do' request.
7083 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
7084 * macros/Makefile: Install tmac.X*.
7086 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
7087 * tty/Makefile: Don't install tmac.tty*.
7088 * macros/Makefile: Install tmac.tty*.
7090 * dvi/tmac.dvi: Move to macros.
7091 * dvi/Makefile: Don't install tmac.dvi.
7092 * macros/Makefile: Install tmac.dvi.
7094 * ps/tmac.ps*: Move to macros.
7095 * ps/Makefile: Don't install tmac.ps*.
7096 * macros/Makefile: Install tmac.ps*.
7098 * eqn/box.c: Provide draw_lines parameter corresponding to -D
7100 * macros/eqnrc: Set draw_lines parameter based on device.
7101 * groff.c: Don't pass -D flag to eqn.
7102 * groff.sh: Likewise.
7103 * eqn/main.c: Warn about use of -D.
7105 * troff/input.c (process_startup_file): New function.
7106 (main): Call process_startup_file().
7107 * macros/troffrc: New file.
7108 * macros/Makefile: Install troffrc.
7109 * groff.c (main): Don't pass extra -m option to troff. For a
7110 pseudo device pass the name of the pseudo device to troff using
7112 * groff.sh: Likewise.
7113 * groff.c (possible_command::prepend_arg): Deleted.
7115 * troff/input.c (do_request): New function.
7116 (init_input_requests): Bind "do" to do_request.
7118 * eqn/main.c (main): Instead of loading eqnchar from device directory,
7119 load eqnrc from macro directory.
7120 * macros/eqnrc: New file.
7121 * macros/Makefile: Install eqnrc.
7122 * ps/devps/eqnchar: Deleted.
7123 * ps/devps/Makefile: Don't install eqnchar.
7124 * dvi/devdvi/eqnchar: Deleted.
7125 * dvi/devdvi/Makefile: Don't install eqnchar.
7126 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
7129 * lib/device.[ch]: New files.
7130 * lib/font.h (font::set_device_name, font::get_device_name):
7132 * lib/fontfile.c: Use device.h.
7133 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
7134 * troff/input.c: Delete definition of `device'.
7135 (main): Don't initialize device.
7136 * troff/troff.h: Include device.h rather than declaring device.
7137 * troff/Makefile: No need to handle DEVICE.
7138 * driver/input.c: Include device.h. Don't use
7139 font::{set,get}_device_name.
7140 * groff.c, Makefile: Rename device.h to config.h.
7141 * groff.c: Use library device variable.
7142 * eqn/main.c: Use library device variable.
7143 * eqn/Makefile: No need to handle DEVICE.
7145 * lib/searchpath.[ch]: New files.
7146 * lib/Makefile: Handle searchpath.[ch].
7147 * troff/input.c (open_file, init_dirs): Deleted.
7148 (macro_dirs): Deleted.
7149 (open_mac_file, macro_source): Use class search_path.
7150 (add_string, struct string_list): Move definition.
7151 (main): Change -M option to use macro_path. Delete call to
7153 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
7154 Rewrite to use class search_path.
7155 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
7156 * lib/Makefile: fontfile.c depends on searchpath.h.
7157 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
7159 * lib/macropath.[ch]: New files.
7160 * troff/Makefile: No need to handle MACROPATH.
7162 * troff/input.c: Delete DUMP code.
7163 * lib/fontfile.c, lib/font.h: Delete
7164 font::forget_command_line_font_dirs.
7166 * troff/input.c (push_token): New function.
7167 (handle_first_page_transition): Use push_token().
7168 (process_input_stack): Change handling of a space at the beginning
7171 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
7173 * troff/input.c (font_dirs): Delete unused variable.
7175 * eqn/lex.c (do_set): Correct error messages.
7177 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
7179 * troff/input.c (do_define_string): Allow the string name to be
7180 followed immediately by a tab.
7181 (define_character): Likewise.
7183 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
7185 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
7188 * troff/input.c (input_iterator::is_file): New virtual function.
7189 (file_iterator::is_file): New function.
7190 (input_stack::end_file): New function.
7191 (input_stack::next_file): Handle the situation where there is no
7192 file on the input stack correctly. Avoid making two passes over
7194 (next_file): Make the filename optional; in this case call
7195 input_stack::end_file().
7197 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
7199 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
7200 produce a real _ charater when the current font is CW and _
7203 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
7204 expression to work around gcc 2.2 bug.
7206 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
7208 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
7210 * troff/env.c (environment::add_padding): New function.
7211 (environment::add_char): Use add_padding().
7212 (environment::space): Likewise.
7213 (environment::wrap_up_field): Add some padding if there is none
7214 and there's no current tab.
7215 * troff/env.h: Declare environment::add_padding.
7217 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
7219 * pic/pic.y: undef fmod and rand before declaring them.
7221 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
7223 * troff/input.c (main): If the DESC file specifies a font name of
7224 0, then leave the corresponding font position empty.
7226 * nroff.sh: New file.
7227 * Makefile (install.nobin): Install nroff.sh.
7229 * tty/devlatin1/R.proto: Add ao as synonym for de.
7230 * tty/tmac.tty-char: Define ao as o.
7232 * tty/dev{ascii,latin1}/R.proto: Add aq.
7233 * tty/tmac.tty-char: Delete definition of aq.
7235 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
7237 * troff/input.c (init_charset_table): Don't translate 0240.
7238 * ps/tmac.ps: Translate char160 to space.
7239 * dvi/tmac.dvi: Likewise.
7240 * tty/tmac.tty: Likewise.
7242 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
7244 * dvi/tmac.dvi: Add support for all Latin-1 characters.
7246 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
7247 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
7250 * tty/tmac.tty-char: Add \(ah.
7252 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
7253 No need to define \(FM and \(!/. Conditionalize all character
7256 * ps/devps/lgreekmap: Add +h, +f, +p.
7258 * ps/tmac.psnew: New file.
7259 * ps/Makefile: Install tmac.psnew.
7261 * troff/input.c (charinfo_to_node_list): Don't ever interpret
7262 character definitions in compatible mode.
7264 * troff/input.c (remove_character): New function.
7265 (init_input_requests): Bind remove_character to "rchar".
7267 * ps/tmac.psold: New file.
7268 * ps/Makefile: Install tmac.psold.
7269 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
7270 characters into tmac.psold. Make these definitions unconditional.
7272 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
7274 * ps/tmac.ps: Don't define \('c and \('C.
7276 * ps/devps/textmap: Move Greek characters to...
7277 * ps/devps/symbolchars:
7279 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
7281 * ps/devps/text.enc: Add quotesingle.
7282 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
7283 * tty/tmac.tty-char: Likewise.
7284 * dvi/devdvi/texmi.map: Add +h, +f, +p.
7285 * dvi/devdvi/texi.map: Add Fn.
7286 * dvi/devdvi/msam.map: Add lz.
7287 * dvi/tmac.dvi: Handle Bq, bq, aq.
7289 * pic/lex.c (get_token): Recognize 'th.
7290 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
7292 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
7294 * ps/devps/textmap: Move di, mu, +- to...
7295 * ps/devps/symbolchars:
7297 * macros/tmac.s (@XS): Don't call par@reset or fi.
7298 (XA): Call LP. Turn off adjustment. Reduce line length.
7300 * macros/tmac.s: Initially alias XS to LP.
7301 (XS): Rename to @XS.
7302 (cov*ab-init): Alias XS to @XS.
7304 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
7306 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
7307 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
7308 (token::is_size, token::changes_env): Deleted.
7309 * troff/number.c (parse_term): No need to process \s explicitly.
7310 Call tok.next() only after scale indicator has been processed.
7311 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
7313 (token::next): Handle \s, \f, \S, \H immediately rather than
7314 returning them as tokens.
7315 (token::operator==, token::description, token::add_to_node_list,
7316 token::process): Remove handling of deleted tokens.
7318 * troff/env.c (environment::add_char): When adding padding
7319 indicator character, call start_line() if necessary.
7321 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
7323 * ps/devps/afmtodit: Don't output 0 kerns.
7325 * ps/devps/afmtodit: Remove directory from name of encoding in
7326 font description file.
7328 * ps/devps/afmtodit: Improve error messages.
7330 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
7332 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
7333 * ps/devps/FontMakefile: Deleted.
7334 * ps/devps/afmname: New file.
7336 * ps/devps/symbol.sed: New file.
7337 * ps/devps/symbol.diff: Deleted.
7338 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
7339 Generate zapfdr.afm from zapfd.afm.
7341 * tty/tmac.tty (tty-char): Prefix definition with ".
7343 * macros/tmac.an (TP): Don't start a diversion if one has already
7346 * tty/tmac.tty-char: Add Latin-1 characters.
7348 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
7350 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
7352 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
7353 Move declaration of struct horizontal_span.
7355 * tbl/table.c (table::table): Initialize span_list.
7356 (table::~table): Delete span_list.
7358 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
7360 * ps/devps/Makefile: Avoid dependency on GNU make.
7362 * ps/tmac.ps: Check that character does not already exist before
7365 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
7366 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
7367 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
7370 * tty/tmac.tty-char: New file.
7371 * tty/Makefile: Install tmac.tty-char.
7372 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
7375 * tty/tmac.tty: Fix definition of \(34.
7377 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
7378 bracket-drawing characters onto |. Add *o.
7380 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
7381 only if current_field.
7383 * troff/dictionary.c (dictionary::lookup): Free old_table after
7386 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
7388 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
7389 whose glyphs are identical to glyphs of some Roman character.
7391 * tty/devlatin1/R.proto (bu): Deleted.
7392 * tty/devascii/R.proto (bu): Deleted.
7393 * tty/tmac.tty: Add definition of \(bu.
7395 * eqn/main.c (do_file): Pass FILE as argument.
7396 (main): Automatically load eqnchar. New options -F and -n.
7397 Pass do_file an opened FILE.
7398 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
7399 No need to include font.h.
7400 * groff.sh: Likewise. Don't need to use - for standard input.
7401 Prefix files with -- if first file starts with -.
7403 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
7405 * troff/env.c (environment::possibly_break_line): Don't set line
7406 to 0 across call to output_line(). Don't call output_line() until
7407 after discarding nodes after break.
7409 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
7411 * request.h (macro::empty): Declare it.
7412 * input.c (macro::empty): New method.
7413 (interpolate_macro): Don't give a WARN_SPACE if the two-character
7416 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
7418 * troff/env.c (environment::start_field): Decrement space_total
7419 when a space is frozen.
7421 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
7423 * macros/tmac.an (R): Delete macro.
7425 * troff/input.c (get_copy, token::next): Support \# (like \" but
7426 newline is ignored).
7428 * troff/input.c (token::next): Fix error message in 'Y' case.
7430 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
7432 * eqn/delim.c (define_extensible_string): Recognize any prefix of
7435 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
7437 * c++test.c: Include <osfcn.h>.
7439 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
7442 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
7444 * tbl/table.c (table::divide_span): Don't count column separation
7445 if expand was specified.
7447 * tbl/main.c (process_format): Don't ignore width specs in
7448 continued format. Give warning for changing equal widths or
7449 column separation in continued format.
7450 (process_data): Set column separation, minimum width, equal
7451 columns at end of table.
7453 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
7455 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
7456 node::add_discretionary_hyphen): Use soft_hyphen_char.
7457 (set_soft_hyphen_char): New function.
7458 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
7460 * Makefile (c++tested): Give more helpful message if test fails.
7462 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
7464 * troff/input.c (init_charset_table): Translate 0240 to
7465 an unbreakable space.
7467 * troff/token.h (token::hyphen_indicator): New function.
7468 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
7470 * troff/input.c (translate): Allow translation to \%.
7471 * troff/node.c (node::add_char): Handle
7472 TRANSLATE_HYPHEN_INDICATOR.
7473 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
7475 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
7478 * tty/devlatin1/R.proto: \(hy and - should print as 055.
7480 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
7482 * groff.c (run_commands): If the last command gets a SIGPIPE send
7483 a SIGPIPE to all children than haven't yet terminated. When
7484 command terminates, set pid field to -1.
7486 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
7488 * groff.c (main): Pass an appropriate -filename option to gxditview.
7490 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
7492 * Makefile.bd (install): Remove existing program before copying.
7494 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
7495 programs which have Unix counterparts to be installed with
7496 user-specified prefix.
7498 * troff/input.c (exit_troff): Don't check if exit_started.
7499 (exit_request): Don't call exit_troff if exit_started.
7501 * Makefile.bd (install.mm): Rename to install.dwbmm.
7503 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
7505 * driver/input.c (do_file): Add missing break for '#' case.
7507 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
7509 * troff/input.c (input_stack::clear): Clear past any boundaries and
7510 then add the boundaries back.
7512 * troff/input.c (exit_troff): Return immediately if already
7515 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
7517 (pg*end-page): If the text has ended and there are no more
7518 footnotes or keeps, exit.
7520 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
7522 * troff/input.c (init_charset_table): Make \(rq transparent by
7525 * macros/tmac.an: Define lq and rq strings.
7527 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
7529 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
7531 * troff/env.c (environment::final_break): New function.
7532 (environment::newline): Set prev_line_interrupted to 2 if
7534 * troff/env.h: Declare environment::final_break.
7535 * troff/input.c (exit_troff): Call environment::final_break()
7536 instead of environment::do_break().
7538 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
7539 doesn't already exist.
7540 * macros/man.local: New file.
7541 * macros/tmac.an: Load man.local.
7542 * macros/man.ultrix: New file.
7544 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
7546 * troff/input.c (exit_groff): Rename to...
7547 (exit_troff): New function.
7549 * troff/div.c (exit_started, done_end_macro,
7550 seen_last_page_ejector): New global variables.
7551 (began_page_in_end_macro): New static variable.
7552 (exit_flag): Deleted.
7553 (top_level_diversion::top_level_diversion): Initialize
7555 (top_level_diversion): More elaborate test for whether
7556 cleanup_and_exit() should be called.
7557 Set began_page_in_end_macro if the end macro isn't yet finished.
7558 * troff/div.h (top_level_diversion::last_page_count): New data
7560 (top_level_diversion::set_last_page): New function.
7561 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
7562 * troff/env.c (do_break): Zero prev_line_interrupted.
7563 * troff/input.c (exit_flag): Delete declaration.
7564 (LAST_PAGE_EJECTOR): New magic cookie.
7565 (token::next): Handle LAST_PAGE_EJECTOR.
7566 (exit_groff): Set exit_started and done_end_macro instead of
7567 exit_flag. Call top_level_diversion::set_last_page. Push a
7568 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
7569 another ejection after setting seen_last_page_ejector.
7571 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
7573 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
7575 * macros/tmac.e (TH): Make sure there's room for the initial
7578 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
7579 Set FVS in points rather than units.
7581 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
7583 * troff/div.c (top_level_diversion::add_trap): Don't consider the
7584 position of empty slots.
7586 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
7588 * ps/devps/S: Fix height and depth of parenrightex.
7589 * ps/devps/symbol.diff: Regenerate.
7591 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
7593 * tmac.e (u): Do underlining as in -mgs.
7595 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
7597 * tty/tty.c (tty_printer::end_page): If overstriking is
7598 suppressed, still turn overstruck horizontal and vertical lines
7601 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
7604 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
7606 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
7608 * Version 1.05 released.
7610 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
7612 * tty/tty.c: Instead of keeping an array of glyphs and then
7613 sorting it, keep a ordered linked list of glyphs for each line.
7615 * driver/driver.h: Include stddef.h.
7617 * tty/tty.c (compare_glyph):
7618 * refer/refer.c (rcompare):
7619 * troff/env.c (compare_ranges): Arguments of qsort comparison
7620 function should be const void *.
7622 * troff/number.c (parse_term):
7623 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
7626 * refer/label.y (consider_authors): Don't access variables
7627 constructed under a condition outside that condition: put braces
7628 round for statement containing declaration; redeclare use of same
7631 * pic/pic.y (text_expr): Delete production that allows
7632 parenthesised text_expr.
7633 (expr): Allow a conditional_expr to appear in parentheses.
7634 (conditional_expr): Rename to any_expr.
7636 * mm: Install new version 1.01 from jh.
7638 * lib/font.c (font::get_width): Cache scaled widths.
7639 (font::font): Initialize widths_cache.
7640 (font::~font): Destroy widths_cache.
7641 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
7643 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
7645 * c++test.c, c++test.ref: New files.
7646 * Makefile: Check that the C++ compiler works.
7648 * ps/tmac.pspic (PSPIC): Do a break.
7650 * ps/tmac.ps: Move definition of PSPIC into...
7651 * ps/tmac.pspic: New file.
7652 (PSPIC): Draw box around picture, but make it invisible to grops.
7653 * ps/tmac.ps: Load tmac.pspic.
7654 * ps/Makefile: Install tmac.pspic.
7656 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
7658 * lib/font.c (scale_round): If n is negative,
7659 subtract .5 before truncating floating point result.
7661 * lib/fontfile.c: Include <errno.h>.
7663 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
7665 * driver/input.c (get_char): Inline. Don't update current_lineno.
7666 Change callers to up date current_lineno if necessary.
7667 Use get_char() instead of getc(current_file).
7669 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
7671 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
7673 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
7675 * tty/tty.c (tmac.tty): Define \(rg as (R).
7677 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
7679 * lib/lib.h: New define a_delete.
7680 * Use a_delete instead of delete when deleting an array of objects
7681 without destructors.
7683 * lib/lib.h: Rename adelete to ad_delete.
7684 * Change uses of adelete.
7686 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
7688 * eqn/eqn.y: Include lib.h.
7690 * troff/node.c (grow_font_table): Delete old_font_table.
7692 * mm: Install new version from jh.
7694 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
7696 * tbl/table.h (format_type): Make global instead of local to class
7697 entry_format. Prefix enumerators with FORMAT_.
7698 * tbl/table.c, tbl/main.c: Corresponding changes.
7699 * refer/token.h (token_type): Make global. Prefix enumerators
7701 * refer/token.[ch]: Corresponding changes.
7702 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
7704 * troff/div.c (node::set_vertical_size): Don't name argument.
7706 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
7708 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
7709 * lib/lib.h: Define adelete accordingly.
7710 * pic/object.c (graphic_object::graphic_object):
7711 * tbl/main.c (format::~format):
7712 * tbl/table.c (table::~table):
7713 * refer/ref.c (reference::~reference, reference::merge,
7714 reference::insert_field, reference::delete_field): Use adelete.
7716 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
7718 * tbl/table.h: Corresponding changes.
7720 * common.c (common_output::dashed_arc, common_output::dotted_arc):
7721 Ensure total_angle is positive.
7723 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
7725 * refer/ref.c (reference::merge, reference::insert_field,
7726 reference::delete_field): Avoid delete[0].
7728 * refer/token.c (init_special_chars): Move calls to cmupper
7729 outside calls to init_two_char_letter to work around bug in gcc
7732 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
7734 * lib/new.c (operator new): Use __builtin_new for g++.
7736 * pic/object.c (graphic_object::~graphic_object): Don't use
7739 * pic/object.c (output::compute_scale): Initialize max_width and
7742 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
7744 * troff/input.c (write_request): Call fflush.
7746 * troff/node.h (class composite_node): Move declaration to node.c
7747 * troff/input.c (charinfo_to_node): Rename to ...
7748 (charinfo_to_node_list): Return node list rather than composite
7750 * troff/node.c (make_composite_node): New function.
7751 (make_node, add_char): Call make_composite_node instead of
7753 (class composite_node): Add a tfont * member. Delete font_size
7755 (composite_node::composite_node, composite_node::copy,
7756 composite_node::size): Corresponding changes.
7757 (composite_node::tprint): Provide constant spacing, emboldening
7758 and track kerning as specified in tfont.
7759 (composite_node::width): Change width calculation accordingly.
7760 * troff/env.h (environment::composite): New member.
7761 (environment::is_composite, environment::set_composite): New
7763 * troff/env.c (environment::environment): Initialize composite.
7764 * troff/input.c (charinfo_to_node): Call
7765 environment::set_composite.
7766 * troff/node.c (make_composite_node, make_glyph_node): Use the
7767 plain version of the tfont if the environment is composite.
7769 * troff/node.c (font_info::get_space_width): Additional argument
7770 giving space_size. Handle constant space correctly. Scale by
7771 space_size unless constant spaced.
7772 (env_sentence_space_width): New function.
7773 * troff/node.h: Declare it.
7774 * troff/env.h (environment::get_space_size,
7775 environment::get_sentence_space_size,
7776 environment::get_narrow_space_width,
7777 environment::get_half_narrow_space_width): Make inline.
7778 (environment::get_space_width): Make inline. Just call
7780 * troff/env.c: Delete definitions for funtions made inline.
7781 (environment::space_newline, environment::space): Use
7782 env_sentence_space_width(). Don't scale by space_size.
7783 * troff/node.h: Move declarations of env*space_width() functions
7786 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
7788 * macros/tmac.s (PS): Don't try to set negative indent.
7790 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
7792 * pic/pic.y: Fix min function.
7794 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
7796 * man/mdate.sh: Clear LANGUAGE.
7798 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
7800 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
7801 * pic/lex.c: New COMMAND keyword.
7802 * pic/pic.y (print_args, print_arg): New rules.
7803 (placeless_element): Use print_args for PRINT.
7804 New COMMAND element.
7806 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
7808 * troff/input.c (terminal): Handle missing argument correctly.
7810 * pic/pic.y (text_expr): New rule.
7812 * pic/pic.y: Implement := operator.
7814 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
7816 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
7819 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
7821 * ps/devps/dingbatsrmap: Include this in the distribution.
7823 * macros/tmac.doc: Replace with new version from 2nd Networking
7824 Release. Fix loading of doc-* files.
7825 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
7826 * macros/tmac.doc.old: New file. Apply fixes that had been
7827 applied to old tmac.doc.
7828 * macros/tmac.andoc: Check that we're running under groff.
7829 * macros/Makefile: Rework.
7831 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
7833 * tbl/table.h (format_type):
7834 * refer/token.h (token_type): If NESTED_TYPES is defined, use
7835 typedef to make these types visible at file scope.
7836 * Makefile: Add NESTED_TYPES configuration option.
7838 * troff/div.c (mark): At the top level use the value of
7839 nl_reg_contents rather than the current vertical position.
7841 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
7843 * tty/tty.c: Implement \D for horizontal or vertical lines.
7844 (tty_printer::set_char): Use vec_used+2 as serial number.
7845 Don't allow size of vector to exceed USHRT_MAX-2.
7846 Split off part into...
7847 (tty_printer::add_char): New function.
7848 (tty_printer::draw): New function.
7849 (compare_glyph): Handle equal serial numbers.
7850 (tty_printer::end_page): Handle overstruck characters from \D.
7851 (main, usage): Implement -d option.
7853 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
7855 * tbl/main.c (process_format):
7856 * eqn/text.c (split_text):
7857 * troff/input.c (token::next): Use inner block for declarations
7858 with initializers in switch statement.
7860 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
7862 * pic/common.c (common_output::dash_line): Cope with zero-length
7865 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
7867 * Version 1.04 released.
7869 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
7871 * macros/tmac.an (TH): Define a macro an-init to define variables
7872 based on command line arguments.
7873 (an-header): Call it.
7875 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
7877 * Makefile (install.mm): Rename to install.dwbmm.
7879 * Makefile: Integrate mm.
7880 * mm: New directory.
7882 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
7884 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
7887 * pic/troff.c (troff_output::simple_spline,
7888 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
7889 shadowing parameter.
7891 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
7893 * lib/ptable.h: Add explicit casts when converting from unsigned
7896 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
7897 * dvi/devdvi/Makefile: Install SA, SB.
7899 * refer/indxbib.c: Add declaration of mktemp.
7901 * refer/lookbib.c: Add declaration of isatty.
7903 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
7905 * pic/lex.c (interpolate_macro_with_args): While collecting
7906 arguments, keep track of whether we're in a string.
7908 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
7910 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
7911 down with \v, so as to avoid problems with top of page trap
7912 setting no space mode.
7914 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
7916 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
7918 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
7920 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
7921 Improve error message.
7923 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
7925 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
7928 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
7930 * groff.c (possible_command::execp): Always use _exit() after a
7933 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
7934 NO_SYS_WAIT_H configuration options.
7935 * groff.c: Use these options. Use POSIX-style macros to extract
7936 fields from the status returned by wait().
7938 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
7940 * tbl/table.c (table::compute_separation_factor): Allow the
7941 separation factor to drop to 0.
7943 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
7945 * refer/search.c: Include <errno.h>.
7947 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
7949 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
7951 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
7954 * pic/lex.c (input_stack::bol): Move definition out of class body.
7956 * pic/main.c: On MSDOS munge argv[0].
7958 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
7960 * lib/ptable.c (hash_string): Use unsigned long rather than
7962 (next_ptable_size): Use unsigned rather than int. Give an error
7963 message if we've hit the largest table size.
7964 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
7967 * pic/object.h (object_spec): Make flags unsigned long. Declare
7968 flags as const unisgned long rather than as enums.
7970 * pic/output.c: Deleted.
7972 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
7974 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
7975 Add additional argument.
7976 (line_entry::note_double_vrule_on_{left,right}): Set value of
7977 douvle_vrule_on_{right,left} flag according to argument.
7978 (simple_line_entry::simple_print,
7979 simple_line_entry::double_line_print): If adjacent to double vrule
7980 on a corner extend rather than shorten the rule by half the double
7983 * troff/number.c (parse_term): In checking for overflow, handle the
7984 case where the current horizontal position is negative.
7986 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
7988 * pic/object.c (draw_arrow): Check for object having zero length.
7990 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
7992 * eqn/main.c (do_file): Split off inline equation handling into...
7993 (inline_equation): New function. Search for starting delimiter
7995 (delim_search): New function. Don't recognize a delimiter that
7996 occurs in the name of an escape sequence, number register, string
7999 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
8001 * eqn/delim.c (delim_box::compute_metrics): Don't call
8002 define_extensible_string if left is 0.
8003 (delim_box::output): Don't print the left delimiter if left is 0.
8004 (delim_box::debug_print): Check for left == 0 before calling printf.
8006 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
8008 * troff/Makefile (majorminor.c): Include only digits in
8011 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
8013 * refer/dirnamemax.c: new file.
8014 * refer/genlimits.c: Deleted.
8015 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
8016 Don't check path length.
8017 * refer/Makefile: Add dir_name_max.o; delete genlimits.
8018 * Makefile: Add PATHCONF_MISSING option.
8020 * refer/indxbib.c (get_cwd): New function.
8021 (main): Use get_cwd().
8022 * lib/getcwd.c: New file.
8023 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
8025 * lib/Makefile: Compile getcwd.o.
8027 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
8030 * refer/indxbib.c (main): Check success of mktemp.
8032 * lib/tmpfile.c: New file.
8033 * lib/Makefile: Add tmpfile.c.
8034 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
8035 * ps/ps.h: Delete declaration of mktemp().
8036 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
8037 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
8038 * driver/driver.h: No need now to include errno.h.
8040 * everywhere: Set errno to 0 before calling fopen().
8042 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
8043 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
8044 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
8046 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
8048 * troff/env.h (translate_space_to_dummy): Declare it.
8049 * troff/env.c (environment::space_newline, environment::space):
8050 If translate_space_to_dummy is set then make the width of spaces 0.
8051 * troff/input.c (translate): If the second character of a
8052 translation is a space, translate to unbreakable space. If the
8053 first character is a space, set or clear translate_space_to_dummy
8054 according to whether the second character is \&. Weird!
8056 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
8058 * groff.c (run_commands): Don't use non-zero exit code because a
8059 command gets SIGPIPE.
8061 * groff.c, groff.sh: Use -mXps with -TXps.
8063 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
8064 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
8065 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
8066 (ps_printer::special): New specials invis and endinvis.
8067 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
8068 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
8069 (ps_printer::end_page): Check that invis_count == 0.
8070 (ps_printer::invis_count): New member.
8071 (ps_printer::ps_printer): Initialize invis_count to 0.
8073 * troff/env.c (environment::hyphenate_line): Hyphenation
8074 indicator at beginning of word inhibits splitting after -, \(em
8077 * pic/pic.y (element): Allow another element to follow } without
8078 any intervening separator.
8080 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
8082 * pic/lex.c (get_delimited): Allow tabs before delimiter.
8084 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
8086 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
8087 declaration of wait() in header files.
8088 * Makefile: Get rid of -DHAVE_UNION_WAIT.
8090 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
8092 * lib/lib.h: Declare return type of strerror as char *.
8094 * man/Makefile: Add g flag to sed substitutions.
8095 * Makefile (shgroff, bindist): Likewise.
8097 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
8099 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
8100 * ps/devps/prologue (PBEGIN): Define showpage after pushing
8103 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
8105 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
8108 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
8110 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
8113 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
8115 * troff/input.c (define_number_reg): If currently undefined,
8116 don't define it if the argument is an invalid expression.
8118 * Makefile: Ignore return value of `if' commands without `else'
8121 * Makefile: Split up CPPDEFINES into a series of separate
8122 configuration options.
8124 * troff/input.c (init_registers): Use time_t instead of long
8125 unless LONG_FOR_TIME_T is defined. Use returned result rather
8126 than passing pointer.
8127 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
8129 * lib/Makefile (fontpath.h): Use gendef.
8131 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
8133 * troff/input.c (input_iterator::shift): Delete argument name.
8134 * troff/node.c (suppress_output_file::really_begin_page,
8135 suppress_output_file::really_transparent_char, node::ascii_print,
8136 node::tprint): Delete names of unused arguments.
8138 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
8140 * refer/label.y (string): Pass $4 to command_error.
8142 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
8144 * Version 1.03 released.
8146 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
8148 * Makefile: Pass definition of SHELL in SUBFLAGS.
8151 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
8152 ps/Makefile: Use gendef to construct header files that are
8153 constructed from the Makefile.
8155 * macros/Makefile: make all should build stripped version of tmac.e.
8157 * refer/Makefile (clean): Remove y.output.
8159 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
8161 * ps/pfbtops.c (main): Add -v option which prints out a version
8163 * ps/Makefile (pfbtops): Link with libgroff.a.
8165 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
8167 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
8168 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
8170 * refer/lkbib.c (main): Always terminate reference with blank
8172 * refer/lookbib.c (main): Likewise.
8174 * refer/linear.c (file_buffer::load): Check that the file is not a
8177 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
8178 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
8179 Delete second inclusion of <sys/param.h>.
8181 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
8183 * troff/token.h (token::special): Deleted.
8185 * tbl/main.c (process_format): Rework so that opt->tab_char is
8186 recognized only when appropriate.
8188 * ps/Makefile (clean): Remove pfbtops.
8190 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
8192 * lib/font.c (text_file::next): Don't return if we have got a
8195 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
8197 * refer/refer.c (store_reference): Get hash code from old_table[i]
8198 when rehashing the table.
8200 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
8202 * eqn/box.c (box::top_level): Save size and prev size using \R and
8203 restore it afterwards. Set the size to the size at the beginning
8205 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
8206 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
8208 * refer/Makefile (limits.h): Use ./genlimits.
8210 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
8212 * refer/index.c: Delete declarations of stat() and fstat().
8214 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
8216 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
8218 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
8220 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
8222 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
8224 * troff/input.c (token::get_char): Handle \e.
8226 * refer/linear.c: Delete declarations of fstat() and stat().
8228 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
8230 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
8231 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
8233 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
8235 * troff/input.c (do_define_macro): Improve error handling for end
8236 of file while defining macro.
8238 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
8240 * eqn/box.h: Fix declaration of set_gsize.
8241 * eqn/box.c (set_gsize): Make argument const char *.
8242 (gsize): Declare as char *.
8243 * eqn/main.c (main): Don't convert gsize to int.
8244 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
8246 * Version 1.02 released.
8248 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
8250 * macros/tmac.andoc: New file.
8251 * macros/Makefile: Install tmac.andoc.
8253 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
8254 operator new and delete on OP_DELETE_BROKEN not being defined.
8255 * Makefile: Mention OP_DELETE_BROKEN.
8257 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
8259 * Makefile (bindist): Pass SUBFLAGS.
8261 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
8263 * Makefile, groff.c: Pass definitions to groff.c via device.h.
8265 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
8268 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
8270 * ps/ps.h, ps/psrm.c: Make comment_table and
8271 header_comment_table local to resource_manager::process_file.
8273 * groff.sh: With -TXps pass -printCommand option to gxditview.
8275 * groff.c (possible_command::print): Implement using
8276 append_arg_to_string.
8278 * xditview: Merge in new implementation with own ChangeLog.
8280 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
8282 * groff.c (main): Implement PRINT_OPTION.
8283 (append_arg_to_string): New command.
8284 (device_table): Set PRINT_OPTION flag for Xps.
8286 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
8288 * troff/groff.h: Rename to troff.h.
8290 * pic/lex.c (lookup_keyword, docmp): New functions.
8291 (get_token): Use new lookup_keyword.
8292 Don't include key.h.
8293 * pic/key.[ch], pic/pic.gperf: Deleted.
8294 * pic/Makefile: Remove gperf stuff.
8296 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
8298 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
8300 * troff/Makefile, troff/node.c: Move definition of
8301 STORE_WIDTH into node.c.
8303 * etc/grog.pl, etc/grog.sh: Support -mdoc.
8305 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
8307 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
8308 dvi/devdvi/texb.map: Add lq and rq.
8309 dvi/devdvi: Regenerate fonts.
8310 * ps/devps/textmap: Add lq and rq.
8311 * ps/devps: Regenerate fonts.
8312 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
8313 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
8315 * pic/object.c (position_rectangle): When checking radius
8316 cope with possiblity that width or height is negative.
8317 (box_object::box_object): Have separate xrad and yrad with
8318 signs matching signs of dim components.
8319 (box_object::{north,south}_{east,west}): Use xrad and yrad.
8320 (box_object::print): With rounded boxes use absolute values
8321 for dim and rad arguments.
8323 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
8326 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
8328 * various files: Add explicit destructors to keep Saber CC +d
8331 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
8333 * eqn/box.c (box::top_level): Restore fonts correctly after
8334 font changes in line containing inline equation. Also
8335 restore previous font as well as current font.
8336 * eqn/pbox.h: Define necessary string and register names.
8338 * troff/input.c (token::next): Case 'R' calls do_register.
8339 (do_register): New function.
8341 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
8343 * groff.c, groff.sh: Support Xps device. Allow each device
8344 to have a pseudo_name and a real_name.
8346 * groff.c (run_commands): Don't print `Broken pipe' messages.
8348 * ps/pfbtops.c: New file.
8349 * ps/Makefile: Add pfbtops.
8351 * troff/number.c (parse_term): Improved error message.
8353 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
8355 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
8357 * Makefile: Integrate refer.
8358 * refer: New directory.
8359 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
8360 man/lkbib.man: New files.
8361 * man/Makefile: Support refer man pages.
8363 * lib/lib.h: Declare is_prime.
8364 * lib/prime.c: New file.
8366 * troff/input.c (macro_source): New function.
8367 (init_input_requests): Bind "mso" to macro_source.
8369 * troff/env.c (environment::possibly_break_line): Maintain
8370 pointer to pointer to node to be split in ndp so as to avoid
8371 using address of freed node.
8373 * troff/env.c (environment::hyphenate_line): Maintain pointer to
8374 pointer to first node to be hyphenated in startp so as to
8375 avoid using address of freed node.
8377 * troff/env.c (class trie, class hyphen_trie): Make the
8378 elements of the trie be of type char not unsigned char.
8379 Declare arguments to be const char* instead of unsigned char *.
8381 * troff/env.c (hyphenate): Initialize hbuf[0].
8383 * troff/input.c (set_string): Declare p to be char * and cast
8384 *p to unsigned char when necessary.
8386 * troff/input.c (do_define_macro): Declare s to be const
8387 char*. Cast element to unisgned char when necessary, Declare
8388 d to be an int. Handle EOF better.
8390 * troff/Makefile, troff/input.c: Different scheme for passing
8391 definitions of MACROPATH, HYPHENFILE and DEVICE.
8393 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
8395 * tty/devascii/R.proto: Delete entry for em.
8396 * tty/devlatin1/R.proto: Likewise.
8398 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
8400 * troff/input.c (translate): Stop when we get a space. Treat eof
8403 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
8405 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
8407 * tbl/main.c (process_format): A font name following a `f'
8408 modifier that starts with a digit can be only one character long.
8409 Also deal with EOF on the second character of the font name.
8411 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
8413 * troff/input.c (token::next): Turn \~ into an
8414 unbreakable_space_node.
8415 * troff/node.c (unbreakable_space_node): New class.
8416 * troff/node.h: Declare it.
8418 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
8420 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
8421 it's >= 0, before outputting it as a single byte.
8423 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
8425 * lib/font.c: Make font_char_metric::code an int.
8426 (font::get_code): Change return type to int.
8427 (font::load): Allow code to be arbitrary integer.
8428 * lib/font.h (font::get_code): Change return type to int.
8429 (font::number_to_index): Change argument type to int.
8430 * troff/input.c (token::next): In case 'N', allow any value.
8431 Store value in token::val.
8432 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
8433 (token::get_char, token::add_to_node_list, token::process): Get
8435 (charinfo::set_number): Change argument to int.
8436 (charinfo::get_number): Require that NUMBERED flag be set.
8437 (get_charinfo_by_number): Store numbered characters not between 0
8438 and 255 in a dictionary.
8439 * troff/charinfo.h (get_charinfo_by_number): Change argument type
8441 (charinfo::number): Change type to int.
8442 (charinfo::set_number): Change type of set_number to int.
8443 * troff/node.c (troff_output_file::put_char_width,
8444 troff_output_file::put_char): Test whether character is numbered
8445 using charinfo::numbered().
8446 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
8448 * lib/nametoindex.c: New implementation to cope with arbitrary
8451 * troff/input.c (token::operator==): Test val for
8452 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
8455 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
8456 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
8458 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
8460 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
8463 * all Makefiles: rm targets of cp and >.
8465 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
8468 * eqn/lex.c (def_table): Add dollar.
8470 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
8472 * troff/input.c (do_width): Push back newline before closing delim
8475 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
8477 * groff.c (possible_command::prepend_arg): New function.
8478 (main): Prepend device -m option.
8479 * groff.sh: Put device -m options before command-line options.
8481 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
8483 * macros/tmac.an (IP): Quote argument to TP.
8485 * ps/ps.c (main): New option -b, which sets...
8486 (broken_flags): New variable.
8487 (ps_printer::~ps_printer): Incorporate the setup section in the
8488 prolog if (broken_flags & NO_SETUP_SECTION).
8489 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
8490 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
8491 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
8492 ps_printer::print_needed_font_comment,
8493 ps_printer::print_supplied_font_comment,
8494 ps_printer::print_include_font_comments,
8495 ps_printer::lookup_doc_font, ps_printer::download_fonts,
8496 ps_printer::read_download_file, read_document_fonts, add_font,
8497 skip_line, parse_fonts_arg, document_font::document_font,
8498 document_font::~document_font, document_font::download,
8499 ps_output::include_file): Deleted.
8500 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
8501 rather than %!PS-Adobe-2.0. Make calls to
8502 resource_manager::need_font for each font that we used. Replace
8503 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
8504 print_supplied_font_comment, print_needed_font_comment by call to
8505 resource_manager::print_header_comments. Output %%Orientation
8506 comment. Output %%Requirements: numcopies comment if ncopies > 1.
8507 Don't output the prolog directly. Instead call
8508 resource_manager::output_prolog. Only define #copies when ncopies
8509 > 1. Delete calls to print_include_font_comments and
8510 download_fonts. Add call to resource_manager::document_setup.
8511 (ps_printer::do_file): Call resource_manager::import_file instead
8512 of including it ourselves.
8513 (ps_printer::do_import): Likewise. Also don't call
8514 merge_import_fonts. Push userdict on the dictionary stack before
8515 and pop it afterwards.
8516 Move declaration of ps_output into ps.h.
8517 * ps/psrm.c: New file implementing resource_manager class.
8518 * ps/ps.h: New file declaring ps_output and resource_manager
8520 * ps/devps/zapfdr.ps:
8521 * ps/devps/symbolsl.ps:
8522 * ps/devps/prologue: Use 3.0 conventions.
8523 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
8524 Add default definition of BROKEN_SPOOLER_FLAGS.
8525 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
8526 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
8528 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
8530 * etc/grog.pl: New file.
8531 * Makefile (GROG): New variable.
8532 Add GROG to SUBFLAGS.
8533 * etc/Makefile (GROG): New variable.
8534 (install.nobin): Install $(GROG) rather than grog.sh.
8536 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
8538 * eqn/special.c (special_box::compute_metrics): Make the input and
8539 output strings the same. Get the new height and depth from the
8540 predefined height and depth registers. Also make subscript kern
8542 (special_box::compute_subscript_kern, special_box::compute_skew):
8545 * eqn/box.c (pointer_box::compute_skew,
8546 simple_box::compute_metrics, box::top_level)
8547 * eqn/text.c (prime_box::compute_metrics,
8548 prime_box::comput_subscript_kern)
8549 * eqn/limit.c (limit_box::compute_metrics):
8550 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
8551 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
8552 negative numbers in `nr' requests with a leading 0.
8554 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
8556 * eqn/special.c: New file.
8557 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
8558 Add new rule for simple.
8559 * eqn/lex.c (token_table): Add SPECIAL.
8560 * eqn/box.h: Declare make_special_box.
8561 * eqn/Makefile: Add special.[co].
8563 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
8565 * ps/devps/prologue: Possibly set packing to true while defining.
8566 Create grops dictionary here. Initialize local variables before
8567 defining procedures.
8568 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
8569 the dictionary stack. Set strokeadjust and overprint to false if
8570 the relevant operators are defined.
8571 (PEND): New procedure.
8572 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
8573 prologue. Do everything else in the setup section.
8574 (ps_printer::do_import): Just call PBEGIN and PEND around the
8575 picture. Also push userdict before, and pop it afterwards.
8577 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
8579 * troff/node.c (bracket_node::tprint): Brackets were being printed
8582 * macros/tmac.an (SH, SS): Set fill mode.
8584 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
8586 * troff/div.c (top_level_diversion::begin_page): Set
8587 high_water_mark to 0.
8589 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
8591 * man/mdate.sh: New file.
8592 * man/mdate.c: Deleted.
8593 * man/Makefile: Use mdate.sh instead of mdate.
8596 * eqn/lex.c (do_gsize): Supply missing argument to error message.
8598 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
8600 * man/mdate.c: New file.
8601 * man/*.man: Replace modification date by @MDATE@.
8602 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
8603 (mdate): New target.
8605 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
8606 Remove illegal input characters.
8608 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
8610 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
8612 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
8614 * troff/div.c (begin_page): Change behaviour when
8615 !first_page_begun and !break_flag.
8617 * troff/input.c (do_name_test): Return 0 if argument is empty.
8619 * troff/input.c (read_long_escape_name): Require closing ] to be
8620 at same input level as opening [.
8622 * troff/input.c (read_increment_and_escape_name): New function.
8623 (get_copy, process_input_stack): Use this for \n.
8625 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
8627 * troff/div.c (top_level_diversion::begin_page): Ignore the
8628 current value of page_number if !first_page_begun.
8630 * groff.c (main): Fix declaration of buf.
8632 * troff/input.c (do_name_test): New function.
8633 (token::next): Implement \A.
8634 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
8635 (token::description, token::add_to_node_list, token::process):
8636 Handle TOKEN_ESCAPE.
8637 * troff/token.h: New token TOKEN_ESCAPE.
8639 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
8641 * pic/main.c (do_picture): Allow space before and after filename
8642 following `<'. Check that the filename is not empty.
8644 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
8646 * Version 1.01 released.
8648 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
8650 * dvi/tmac.dvi: ftr HR to H.
8652 * macros/tmac.e: Round up computation of $r.
8654 * xditview/tmac.X: Don't give up completely in compatibility mode.
8655 Use \n(.s instead of \n[.s].
8657 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
8658 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
8659 Add u to factors inside \s[...]. Rename frac to dvi-frac.
8660 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
8661 short names in the char definitions.
8663 * ps/tmac.ps: Don't give up completely in compatibility mode.
8664 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
8665 quote in front of \n(.s. Add u to factors inside \s[...].
8667 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
8669 * tty/tmac.tty: Call the nroff request.
8671 * macros/tmac.e ((x, )x): Better definitions that work properly
8673 (@0, @1): Helper macros for (x.
8675 * macros/tmac.e ($s, hl): Use \l rather than \D.
8677 * tty/tmac.tty: Make it work better in compatibility mode.
8678 (pchar): Rename to tty-char.
8680 * macros/tmac.e (@E): New macro.
8681 (r, i, b, rb, bi): Use @E.
8683 * macros/tmac.e (@F): Don't use (;...) syntax.
8685 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
8686 it was modified for groff.
8688 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
8690 * macros/tmac.e (<., .>): Removed.
8691 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
8693 * macros/tmac.e: Remove check that groff is being used.
8695 * macros/tmac.e (@C): Change families only if using groff; turn
8696 compatibility mode off while changing familes. Save compatibility
8697 mode before changing families and restore it afterwards.
8699 * macros/tmac.e (@h): Remove test for offset + line length.
8701 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
8702 (lo, th, ac): Define to call @S instead of using als.
8704 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
8705 the ratio of the vertical spacing to the point size in units
8706 expressed as a percentage. Use these instead of $10r and $10R,
8707 Delete $10r and $10R.
8709 * lib/font.c (font::load): In default computation of space_width,
8710 divide by sizescale. Use scale_round.
8712 * macros/tmac.an (TP): Don't call `nf'.
8713 (an-do-tag): Don't call `fi'.
8715 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
8717 * troff/input.c (process_input_stack): Handle the case where
8718 spaces at the beginning of an input line are followed by a
8721 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
8723 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
8724 * groff.sh: Use pic -x with the dvi device.
8726 * dvi/devdvi/FontMakefile (H): Don't use -s.
8728 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
8729 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
8730 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
8733 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
8735 * ps/psfig.diff: New file.
8736 * ps/tmac.psfig: New file.
8738 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
8740 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
8741 (]-): Don't call ref*do-tl.
8743 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
8745 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
8746 (fn@do-FS): Rename to fn*do-FS.
8748 * troff/input.c (transparent_translate): New function.
8749 (process_input_stack): Apply transparent_translate before calling
8750 diversion::transparent_output(unsigned char).
8752 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
8754 * troff/input.c (do_define_macro): Define the macro before calling
8757 * xditview/Makefile: Add DEVICES variable. Change install target
8760 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
8762 * groff.c (run_commands): Handle the possibility that there are
8763 child processes other than those forked by us.
8765 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
8767 * lib/string.c (string::append): New function.
8768 * lib/stringclass.h: Declare it.
8770 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
8772 * eqn/main.c (main): New option -N which sets
8773 no_newline_in_delim_flag.
8774 (do_file): If no_newline_in_delim_flag is set don't allow newlines
8776 * groff.c (main): Pass -N on to eqn.
8777 (help, synopsis): Mention -N.
8778 * groff.sh: Implement -N.
8780 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
8782 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
8783 (]-): Call ref*do-tl if ref*need-tl is non-zero.
8784 (XP): Allow as initializer.
8786 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
8788 * troff/env.c (environment::wrap_up_field): If field_spaces are
8789 non-zero and we have a current_tab, subtract padding from
8790 tab_distance. If this makes tab_distance <= 0, use the next tab
8791 stop instead. If there isn't any next tab or it's a left tab,
8792 wrap up the current tab.
8793 (environment::start_field): Initialize tab_precedes_field.
8794 (environment::wrap_up_tab): If there's a current field, update
8795 pre_field_width, field_distance and tab_precedes_field.
8796 * troff/env.h (environment::tab_precedes_field): New member.
8798 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
8800 * ps/ps.c (ps_printer::do_file): New function.
8801 (ps_printer::special): Bind to `file' special.
8802 (ps_printer::do_exec): Set ndefined_styles to 0.
8804 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
8806 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
8807 Avoid stripping first character from the start of unrecognized
8808 escapes. Use lex_error instead of error to report errors.
8809 * eqn/lex.c (get_token): Rework handling of escapes.
8810 (lex_error): Move declaration into...
8813 * xditview/xditview.c (main): Make -page option work.
8815 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
8817 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
8819 * macros/tmac.s (B2): Correct size of box.
8821 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
8823 * macros/tmac.s (B2): Postpone drawing the box until in the
8824 top-level diversion.
8826 * tty/tmac.tty: Add font translations for C, CR, CW.
8828 * groff.c (synopsis, help): Document -i.
8829 * groff.sh: Implement -i.
8831 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
8832 Simplify the construction of SN.
8834 * troff/number.c (parse_term): Give `|' a higher precedence.
8835 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
8838 * macros/tmac.s (B2): Use par@finish instead of par@reset.
8840 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
8842 * lib/string.c (string::move): New function.
8843 * lib/stringclass.h: Declare it.
8845 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
8847 * troff/env.c (distribute_space): Add optional argument
8849 (environment::wrap_up_field): Call distribute_space with
8850 `force_forward' argument of 1.
8852 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
8854 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
8855 Inline it. Move reallocation into...
8856 (string::grow1): New function.
8857 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
8858 dependencies to include library header files.
8859 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
8861 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
8863 * macros/tmac.s (@NH): Use the same number registers than -ms does
8864 for the heading level counters. Use the same string that -ms does
8865 for the number for this heading.
8867 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
8869 * lib/new.c (operator new): Cast result of malloc to char *.
8871 * troff/input.c (spring_trap, lookup_request): Add assert that nm
8874 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
8876 * groff.c (main): Support -i.
8878 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
8880 * pic/pic.h: Include <osfcn.h>.
8882 * ps/ps.c: Add declaration of mktemp.
8884 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
8885 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
8886 argument as union wait *.
8887 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
8888 argument to union wait *.
8890 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
8892 * tty/tmac.tty: Add definition of \(co.
8894 * pic/object.c (make_arc): Only increase radius when radius
8895 strictly less than d.
8896 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
8899 * troff/env.c (environment::environment(symbol),
8900 environment::environment(const environment *)): Initialize
8903 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
8905 * tbl/main.c (main): Add exit(0).
8907 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
8909 * pic/main.c (main):
8910 * eqn/main.c (main):
8911 * tbl/main.c (main):
8912 * etc/soelim.c (main):
8913 * driver/printer.c (printer::~printer):
8914 * troff/node.c (real_output_file::~real_output_file,
8915 real_output_file::flush): Check for errors on stdout.
8917 * most files: Add 1991 to copyright notice.
8919 * macros/tmac.s: Don't test \n(.x and \n(.y.
8921 * troff/input.c (token::next): Rename `escape_char' label to
8922 `handle_escape_char' and `normal_char' label to
8923 `handle_normal_char'.
8925 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
8927 * groff.c (main, synopsis, help): Support -a option.
8928 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
8929 to trflags while parsing options.
8931 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
8933 * troff/number.c (parse_term): With `m', `M' and `n' scale
8934 indicators, convert scale factor to hunits before scaling.
8936 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
8938 * lib/font.c (scale_round): Better test for overflow when n is
8941 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
8943 * tbl/main.c (process_format): Add second argument of type
8944 options*. Change callers. Allow opt->tab_char as well as '\t'
8945 between format items.
8947 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
8949 * macros/tmac.an (PD): With no arguments, make sure register PD is
8951 (TH): Call PD with no argument, instead of setting register PD
8954 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
8956 * Version 1.00 released.
8958 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
8960 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
8962 * dvi/devdvi/DESC: Mount CW instead of CR.
8964 * dvi/tmac.dvi: Add definition of \(tm.
8966 * dvi/devdvi/texsy.map: Add lh, and rh.
8967 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
8968 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
8970 * dvi/devdvi/FontMakefile: Generate H from cmss10.
8971 * dvi/devdvi/Makefile: Install H.
8972 * dvi/devdvi/H: New file.
8974 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
8976 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
8979 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
8981 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
8983 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
8985 * macros/tmac.s (@EN): Handle the case where the equation is empty
8986 but the label is not.
8988 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
8990 * troff/groff.h: New warning category WARN_SPACE.
8991 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
8992 WARN_SPACE to warning_table.
8993 (interpolate_macro): Give a warning of type WARN_SPACE if the name
8994 is longer than two characters and is not defined, but the first
8995 two characters do make a defined name.
8997 * PROBLEMS: New file.
8999 * CHANGES: New file.
9000 * README-0.6, README-1.00: Deleted.
9002 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
9003 * xditview/devX75/Makefile: Make devX75-12.
9004 * xditview/devX100/Makefile: Make devX100-12.
9006 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
9007 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
9009 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
9011 * README-0.7: Rename to README-1.00.
9013 * macros/tmac.pic: New file.
9014 * macros/Makefile (install.nobin): Install tmac.pic.
9016 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
9018 * troff/env.c (hyphen_word): Correct the test for whether the
9019 token is a hyphen. Reset npos to 0.
9021 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
9023 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
9025 * macros/tmac.s (ds*common-end): Call par*reset.
9027 (par@reset-indent): Deleted.
9029 * macros/tmac.s (@IP): Divert the label.
9031 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
9033 * xditview/draw.c (setGC): Use a line width of .1m rather than
9034 .04m by default; round rather than truncate value.
9036 * tbl/table.c (class empty_entry): New class.
9037 (empty_entry::empty_entry, empty_entry::line_type): New functions.
9038 (table::add_entry): Represent empty entries by objects of type
9040 (table_entry::line_type): Return -1.
9041 (table::determine_row_type): Ignore entries with line_type 0.
9042 Treat type -1 as non-lines.
9044 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
9046 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
9047 macros/tmac.s: Rename \(-d to \(Sd.
9049 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
9051 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
9052 * xditview/libXdvi/DviChar.c: Likewise.
9053 * dvi/devdvi/texsy.map: Add `<<', `>>'.
9055 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
9057 * troff/div.c (top_level_diversion::begin_page): Call
9058 init_output() if the_output is 0.
9060 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
9062 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
9064 (get_copy): Turn \E into ESCAPE_E.
9065 (token::process, asciify): Handle ESCAPE_E.
9067 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
9069 (DS): Implement `.DS R'.
9071 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
9073 * macros/tmac.s (FS): New macro.
9075 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
9077 * macros/tmac.s (cov*tl-init): Remove after first execution
9078 instead of aliasing to @nop. Call top of page macro explicitly
9079 instead of setting trap; call @init first. Set pg@top as top of
9081 (cov*auto-init): Deleted. Set cov*tl-init instead of
9082 cov*auto-init as top of page trap.
9083 (TL, LP): Do a break instead of calling cov*tl-init.
9084 (cov*print): With RP format but no TL, alias FS and FE to @FS and
9085 @FE; in this case also give a warning and always start another
9086 page. No need to set pg@top here.
9087 (cov*tl-init): Rename to cov*first-page-init.
9089 * macros/tmac.s (RP): Do `.pn 0'.
9090 (cov*tl-init): With RP format don't do `.pn 0'.
9092 * macros/tmac.s (pg@cs-top): Set no space mode.
9094 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
9095 (cov*ab-init): Alias TL, AU and AI to these.
9097 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
9099 * macros/tmac.s (@EQ): Move the space before the equation into @EN
9100 (@EN): Do nothing unless \n[dl] is > 0.
9102 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
9104 * pic/object.c (ellipse_object::radius): New function.
9106 * VERSION: Change version to 0.7.
9108 * tbl/table.c (block_entry::do_divert): Declare return type as
9110 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
9112 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
9114 * troff/column.c: New file.
9115 * troff/Makefile: Corresponding changes.
9117 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
9120 * troff/div.c (top_level_diversion::space): If the space causes
9121 the first-page transition and springs a trap, truncate the space
9124 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
9126 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
9129 * pic/troff.c (troff_output::line_thickness,
9130 troff_output::set_fill): Do a horizontal motion to compensate for
9131 the width of the \D escape sequence.
9133 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
9135 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
9138 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
9141 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
9142 Supply empty definition.
9143 (text_entry::simple_print, simple_text_entry::simple_print):
9144 Delete declarations.
9145 (table::add_entry): Represent empty entries by objects of type
9148 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
9150 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
9152 * tbl/table.c (left_text_entry::add_tab): New function.
9154 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
9157 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
9159 * troff/env.c (environment::start_field): Give an error message if
9160 there is no next tab.
9162 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
9164 * troff/env.c (hyphenate): Skip initial elements with zero
9167 * macros/tmac.s (par@init): Keep VS in points rather than units.
9169 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
9171 * pic/main.c (main): Implement `-c' option.
9172 * pic/output.h: Declare make_tpic_output().
9173 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
9175 (tpic_output): New class.
9176 (tpic_output::tpic_output, tpic_output::set_pen_size,
9177 tpic_output::command, make_tpic_output): New functions.
9179 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
9181 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
9182 if they're not already defined.
9183 * tbl/table.c (init_output): Don't test \n(.g.
9185 * troff/input.c (do_if_request): Delete `g' condition. Recognize
9186 `d', `r' and `c' conditions even in compatibility mode.
9188 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
9190 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
9193 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
9195 * troff/env.h (environment::prev_line_interrupted): New member.
9196 (environment::get_prev_line_interrupted): New function.
9197 * troff/env.c (environment::newline): Set prev_line_interrupted.
9198 (environment::environment(const environment *),
9199 environment::environment(symbol)): Initialize
9200 prev_line_interrupted.
9201 * troff/input.c (process_input_stack): Don't give special
9202 treatment to space and newline at the beginning of the line if the
9203 previous line was interrupted.
9205 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
9207 * eqn/eqn.y: Disallow PRIME by itself.
9208 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
9210 (def_table): Remove definition of '. Define prime to be `.
9212 * eqn/eqn.y: Split off part of rule `script' into a new rule
9215 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
9217 * macros/tmac.s ({, }): New string aliases.
9219 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
9221 * README-0.7: New file.
9223 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
9225 * macros/tmac.s: New file.
9226 * man/groff_ms.man: New file.
9227 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
9228 * Makefile.bd: Similarily.
9229 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
9230 definition of TMAC_S.
9231 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
9232 * macros/TODO: New file.
9234 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
9236 * troff/env.c (right_justify): New function.
9237 (init_env_requests): Bind this to request "rj".
9238 (center_lines): Set right_justify_lines to 0. If we get a bad
9239 integer, center 1 line.
9240 (environment::environment(symbol), environment::environment(const
9241 environment *)): Initialize right_justify_lines.
9242 (environment::get_right_justify_lines): New function.
9243 (init_env_requests): Bind this to number_register ".rj".
9245 * troff/env.c (environment::choose_breakpoint): Implement
9246 hyphenation_margin and hyphenation_space.
9247 (environment::get_hyphenation_space,
9248 environment::get_hyphenation_margin): New functions.
9249 (init_env_requests): Bind these to .hys and .hym.
9250 (hyphenation_space_request, hyphenation_margin_request): New
9252 (init_env_requests): Bind these to hys and hym.
9253 (environment::environment(symbol), environment::environment(const
9254 environment *)): Initialize hyphenation_margin and
9256 * troff/env.h: Corresponding changes to class environment.
9258 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
9260 * troff/div.c (blank_line): Always do a break.
9262 * eqn/box.c (do_text): Turn off escapes while appending text to
9265 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
9267 * troff/input.c (while_break_request, while_continue_request): New
9269 (init_input_requests): Bind these to "break" and "continue".
9270 (while_depth, while_break_flag): New variables.
9271 (while_request): Update while_depth. Break out of loop if
9272 while_break_flag is set.
9274 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
9276 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
9279 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
9281 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
9283 * stringify: New file.
9284 * Makefile (groff.o): Use stringify.
9286 * xditview/tmac.X: Remove definition of \(rn.
9287 * xditview/libXdvi/DviChar.c: Remove radicalex from
9290 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
9292 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
9293 (alphabetic_block_entry::alphabetic_block_entry,
9294 alphabetic_block_entry::divert, alphabetic_block_entry::print):
9296 (block_entry::divert): Split off body into ...
9297 (block_entry::do_divert): If the block is alphabetic, subtract 2n
9298 from the line length; also update the span width to dl+2n, and the
9299 alphabetic span width to dl.
9301 * driver/input.c (do_file): While reading argument to D command,
9302 when expanding buffer, multiply szp by sizeof(int) rather than 2
9303 in the argument to memcpy.
9305 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
9306 width of alphabetic columns.
9308 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
9310 * troff/node.c (lookup_family): Supply second argument to lookup.
9312 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
9313 search, return immediately if v is 0.
9315 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
9316 (troff_output::start_picture): Set this reg.
9317 (troff_output::end_picture): Remove this reg
9318 * eqn/box.c (box::extra_space): Don't produce `\x's if
9319 EQN_NO_EXTRA_SPACE_REG is defined.
9321 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
9322 * eqn/text.c (split_text): Map ' to \(fm when it's the first
9325 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
9327 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
9330 * troff/div.c (top_level_diversion::top_level_diversion):
9331 Initialize page_number to 0.
9333 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
9335 * groff/troff (environment::environment(const environment *)):
9336 Initialize name to e->name, rather than "anonymous".
9338 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
9340 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
9341 requested_page. Split middle part into ...
9342 (FindPage): New function.
9343 (SetValues): If we don't yet know the last page, and the requested
9344 page is greater than the current page, call FindPage.
9345 Update the font_map_string before doing this.
9347 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
9348 Translate \(lh and \(rh into left and right double arrows.
9350 * troff/node.c (class hyphen_inhibitor_node): New class.
9351 (hyphen_inhibitor_node::hyphen_inhibitor_node,
9352 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
9353 hyphen_inhibitor_node::type,
9354 hyphen_inhibitor_node::get_hyphenation_type): New functions.
9355 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
9356 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
9359 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
9361 * troff/node.h (dummy_node::get_hyphenation_type,
9362 transparent_dummy_node::get_hyphenation_type): Declare them.
9363 * troff/node.c: (dummy_node::get_hyphenation_type,
9364 transparent_dummy_node::get_hyphenation_type): New functions.
9366 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
9368 * xditview/libXdvi/draw.c: If M_PI not defined after including
9369 math.h, then define it.
9371 * xditview/Makefile: Add definition of AR. Pass it to the submake
9373 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
9375 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
9377 * troff/dictionary.h (object_dictionary::alias): Declare return
9379 * troff/dictionary.c (object_dictionary::alias): Return non-zero
9380 if the old name was defined.
9381 * troff/input.c (alias_macro): Give a warning if the old name was
9383 * troff/reg.c (alias_reg): Likewise.
9385 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
9387 * troff/input.c (token::next): Delete implementation of \R.
9389 * macros/Makefile: Strip comments from tmac.e while installing it.
9391 * troff/input.c: New variable `nroff_mode'.
9392 (troff_request, nroff_request): New functions.
9393 (init_input_requests): Bind `troff' and `nroff' to troff_request
9395 (do_if_request): Compute results of t and n conditions from
9398 * text/text.c (split_text): Fix typo in >=.
9400 * eqn/lex.c: Add definition of `==' to def_table.
9402 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
9404 * pic/tex.c (tex_output::start_picture): Change the definitions of
9405 \graph and \graphtemp so that they work properly with Plain TeX.
9407 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
9408 argument to `ar' is not less than the first.
9410 * pic/pic.y: Allow a comma between elements of the variable list
9411 in the argument to `reset'.
9413 * pic/object.c (arc_object::arc_object): Fix computation of
9416 * eqn/main.c (main): Add exit(0).
9418 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
9420 * troff/div.c (begin_page): Test no_space_mode after doing the
9421 break, but still push the page ejector cookie before doing the
9422 break. Also set the next page number after doing the break.
9424 * xditview/xditview.c (NewFile): Don't set the title and icon name
9425 if this is the first file and its name is `-'.
9426 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
9427 the X75 and X100 devices.
9428 (main): If a device has the XT_OPTION flag set and there's exactly
9429 one file argument, pass the driver -xrm and -title options to set
9430 the icon name and window title to the name of the file.
9432 * troff/env.c (environment_switch): If there was an argument but
9433 it wasn't a valid number or name, then pop an environment but
9434 don't give an error message on underflow.
9436 * troff/number.c (start_number): Correct spelling in error message.
9438 * troff/input.c (token::delimiter): Don't print an error message
9441 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
9442 ParseDrawFunction if dw->display_enable is true.
9444 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
9446 * pic/pic.y: Parse text positioning like normal attributes, so as
9447 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
9448 positioning attribute.
9450 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
9452 * tbl/main.c (process_data): When in state START while reading a
9453 text block, don't change to state MIDDLE if c is a newline.
9455 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
9457 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
9458 so as to avoid shadowing parameter.
9460 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
9462 * tbl/table.c (trim_space): Deleted.
9463 (table::add_entry): Don't call trim_space.
9465 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
9467 * VERSION: Change version to 0.6.
9469 * troff/number.c (parse_expr): Make == work.
9471 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
9473 * man/grog.man: New file.
9474 * man/Makefile: Add grog.n to MAN1PAGES.
9475 * etc/grog.sh: New file.
9476 * etc/Makefile: Install grog.sh as grog.
9478 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
9480 * troff/input.c (token::next): Implement \E.
9482 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
9484 * xditview/tmac.X: Change font translations to match tmac.ps.
9486 * troff/input.c (non_empty_name_warning): Don't give a warning if
9487 `\{' terminates the name.
9489 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
9491 * ps/devps/symbol.diff: New file.
9492 * ps/devps/FontMakefile: Mention symbol.diff.
9494 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
9496 * troff/node.c (font_position): Use get_long_name to read the
9499 * troff/env.c (environment_switch): If we get a number that's < 0
9500 or >= NENVIRONMENTS, treat it like a name.
9501 Change NENVIRONMENTS to 10.
9503 * troff/groff.h: Remove definition of FONTS_MAX.
9504 * troff/node.h (class font_family): Make map a pointer instead of
9505 an array. Add a map_size member. Make it a class. Make nm const
9506 and public. Make invalidate_fontno a friend.
9507 * troff/node.c: Define font_table_size. Make font_info a pointer
9508 rather than an array.
9509 (class troff_output_file): Allocate font_position dynamically. Add
9510 nfont_positions member.
9511 (troff_output_file::set_font): Grow font_position if necessary.
9512 (troff_output_file::~troff_output_file): Delete font_position.
9513 (troff_output_file::troff_output_file): Allocate font_position.
9514 (grow_font_table): New function.
9515 (troff_output_file::really_begin_page,
9516 troff_output_file:really_copy_page): Use nfont_positions rather
9518 (mount_font_no_translate, mount_style): Call grow_font_table if
9520 (font_family::font_family): Allocate map.
9521 (font_family::make_definite): Grow map if necessary. Use
9522 font_table_size instead of FONTS_MAX.
9523 (font_family::~font_family): New function.
9524 (invalidate_fontno): Use font_family::map_size.
9525 (get_fontno, env_space_width, env_half_narrow_space_width,
9526 env_narrow_space_width, symbol_fotno, is_good_fontno,
9527 get_bold_fontno, make_glyph_node): Use font_table_size rather than
9529 (next_available_font_position): Never return 0.
9531 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
9533 * ps/tmac.ps: Add font translations for compatibility with dpost.
9535 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
9537 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
9538 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
9539 Move definitions baseline_sep, shift_down, column_sep,
9540 matrix_side_sep into...
9541 * eqn/box.c: Add them to param_table.
9542 * eqn/pbox.h: Add declarations to pbox.h.
9544 * troff/input.c (set_string): Cast value to unsigned char *.
9546 * troff/token.h (process_input_stack): Declare it static before
9547 declaring it a friend.
9549 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
9551 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
9553 * dvi/devdvi/EX: Regenerate.
9555 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
9558 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
9560 * eqn/lex.c: In defaults_table, make definition of `dot' call
9561 `dot_def'. Don't explicitly make it roman. Similarily for other
9564 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
9566 (for_input::get, for_input::peek): Use this.
9567 (do_for): Add by_is_multiplicative argument.
9568 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
9569 Change semantic value of optional_by to be a double plus a flag
9570 saying whethet the by clause is multiplicative.
9572 * eqn/lex.c (get_delimited_text): Remember location of start of
9573 definition. Improve error handling when EOF is encountered.
9575 * lib/font.h: Rename handle_x_command to
9576 handle_unknown_font_command.
9577 * lib/font.c (font::load): Call handle_unknown_font_command for
9578 any unknown command in the font description file. Don't call
9579 handle_x_command. Include the name of the command in the argv.
9580 Improve message for unknown command after kernpairs or charset
9582 * ps/ps.c (ps_font::handle_x_command): Rename to
9583 handle_unknown_font_command. Remove message about `x download'
9584 command. Give error message for wrong number of arguments.
9585 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
9586 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
9587 handle_unknown_font_command. Give an error message for wrong
9588 number of arguments. Rename design_size to designsize.
9589 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
9590 checksum', `designsize' instead of `design_size'.
9592 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
9594 * eqn/*.[chy]: Change underaccent to uaccent.
9596 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
9597 give it the same precedence as ACCENT.
9598 * eqn/other.c (make_underaccent_box): New function.
9599 * eqn/box.h: Declare it.
9600 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
9603 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
9605 * pic/pic.y (reset_all): New function. Called in rule for RESET.
9606 (parse_init): Call reset_all.
9607 (define_variable): When defining scale reset only those
9608 pre-defined variables that are scaled.
9609 (defaults_table): Add `scale' as non-scaled value.
9611 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
9612 together with the text; allow any number of positioning words;
9613 allow center as a positioning word.
9615 * pic/object.c (output::compute_scale): Get picture maximum height
9616 and width from variables called maxpswid and maxpsht.
9617 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
9619 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
9621 * pic/object.c (object_spec::make_text): Multiply textht by number
9624 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
9626 (do_sprintf): New function.
9627 (pic.gperf): Add sprintf token.
9628 (text, sprintf): New rules.
9630 * pic/pic.y: `rand()' with no arguments returns a random number
9633 * pic/pic.y: Allow a bare expression to be an attribute: change
9634 precedences to support this. Change optional_ordinal rule to
9635 optional_ordinal_last to avoid reduce/reduce conflict.
9636 * pic/object.c (object_spec::object_spec): Initialize direction.
9638 * pic/pic.y: Implement ^ operator meaning exponentiation.
9640 * troff/node.h: Add default argument to mount_font.
9641 * troff/node.c (font_position): Read an optional third argument
9642 giving the external_name.
9643 (mount_font): Add optional argument giving the external_name.
9644 (mount_font_not_translate): Have additional argument giving
9645 external name. Use this name to load the font. Pass both names
9646 to font_info::font_info.
9647 (font_info::font_info): Have additional argument giving
9649 (class tfont): New member external_name.
9650 (font_info::get_tfont): Use external name to construct tfont_spec.
9652 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
9654 * eqn/lex.c (init_table): Add argument giving device. Define
9655 name of device to be "1".
9656 (do_ifdef): Counts as true if the argument has been defined with
9658 * eqn/main.c (main): Call init_table with device argument. Make
9659 device local to main.
9660 * eqn/eqn.h: Change declaration of init_table. Remove declaration
9663 * pic/lex.c (get_delimited): Allow text to be delimited by
9664 matching {}s. Don't recognize ending delimiter within a string.
9666 * troff/input.c (get_delim_name): New function.
9667 (token::next): Implement \C.
9669 * lib/font.c (font::load): Grok ---. Add an alias for each
9670 character based on its code.
9671 (font::get_code_width): Deleted.
9672 * lib/font.h (class font): Declare font::number_to_index().
9673 Remove declaration of font::get_code_width.
9674 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
9675 to indices of named characters.
9676 (font::number_to_index): New function.
9677 * troff/input.c (font::number_to_index): New function.
9678 (get_charinfo_by_number, charinfo::get_number,
9679 charinfo::set_number): New functions.
9680 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
9681 (token::process, token::description, token::get_char,
9682 token::add_to_node_list, token::operator==): Handle
9683 TOKEN_NUMBERED_CHAR.
9684 * troff/charinfo.h: Declare get_charinfo_by_number,
9685 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
9687 (charinfo::numbered): New function.
9688 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
9689 * troff/env.h (class environment): Remove declaration of ...
9690 * troff/env.c (environment::make_numbered_char_node): Deleted.
9691 * troff/node.c (make_numbered_node): Deleted.
9692 (class numbered_glyph_node): Remove.
9693 (troff_output_file::put_char_width, troff_output_file::put_char):
9694 Handle numbered chars.
9695 (troff_output_file::numbered_char): Removed.
9696 (tfont::get_code_width): Removed.
9697 (make_glyph_node): Don't search special fonts for numbered
9699 * troff/node.h: Remove declaration of make_numbered_node.
9700 * driver/input.c (do_file): Handle N command.
9701 * driver/printer.h: Add declaration of ...
9702 * driver/printer.c (printer::set_numbered_char): New function.
9703 * dvi/tfmtodit.c (main): Generate unnamed entries.
9704 * ps/devps/afmtodit: Likewise.
9705 * xditview/xtotroff.c (MapFont): Likewise.
9706 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
9708 * tbl/main.c (process_format): If multiple widths are specified
9709 for a column but all the widths are the same, don't give an error
9712 * tbl/table.c (table::do_row): If the current row is all lines and
9713 the stuff doesn't contains a line, mark the top of the row after
9714 printing stuff before the row. If the current row is not all
9715 lines and the stuff doesn't contain a line, don't unnecessarily
9716 mark the top of the row before printing the stuff.
9718 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
9720 * troff/groff.h: Remove MAX_PATH.
9721 * troff/input.c (open_file): Dynamically allocate space for the
9723 (open_mac_file, process_macro_file): Corresponding changes.
9725 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
9727 * troff/node.h (class output_file): Make copy_file pure. Add
9728 vspace method ifdef COLUMN. Add is_printing method.
9729 * troff/node.c: Add class printing_reg. Add class
9730 real_output_file. Derive other output_file classes from
9731 real_output_file; in these classes rename begin_page to
9732 really_begin_page, print_line to really_print_line, copy_file to
9733 really_copy_file, transparent_char to really_transparent_char.
9734 Move output_file::flush to real_output_file. Add printing member
9735 to class output_file.
9736 * troff/div.h: Remove printing member from top_level_diversion.
9737 Add vspace member function to class diversion ifdef COLUMN. Add
9738 some declarations ifdef COLUMN.
9739 * troff/div.c (top_level_diversion::copy_file,
9740 top_level_diversion::transparent_output,
9741 top_level_diversion::output): Don't test printing member before
9743 * troff/input.c: Handle initial variable_space_request ifdef
9745 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
9748 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
9750 * troff/div.c (diversion::need): Make any space forced. If we
9751 sprung a trap, set truncated_space to minus the distance to the
9752 trap and set needed_space to the amount that was needed.
9753 (top_level_diversion::space): A forced space turns no_space_mode
9755 (class constant_vunits_reg): New class.
9756 (init_div_requests): Implement number registers .trunc and .ne
9757 using constant_vunits_reg.
9758 (class truncated_space_reg): Deleted.
9760 * troff/div.h: Don't have a no_space_mode member in diversion.
9761 Instead have it in top_level_diversion.
9762 * troff/div.c (diversion::diversion): Don't initialize
9764 (top_level_diversion::top_level_diversion): Initialize
9766 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
9767 (macro_diversion::output): Don't clear no_space_mode.
9769 * troff/input.c (diverted_space_node::reread): Don't call
9770 environment::do_break. In fill mode, act like a blank line.
9771 (diverted_copy_file_node::reread): Don't call
9772 environment::do_break.
9774 * troff/div.c (blank_line): New function.
9775 * troff/div.h: Declare it.
9776 * troff/input.c (process_input_stack): Call it.
9778 * troff/div.c (truncated_space_reg::get_string): New function.
9779 (init_div_requests): Bind to .trunc.
9780 (space_request, top_level_diversion::space,
9781 top_level_diversion::output, macro_diversion::space,
9782 macro_diversion::output): Update truncated_space.
9783 (macro_diversion::output): Redo calculations when trap sprung.
9784 (macro_diversion::output, macro_diversion::space): No need for
9787 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
9788 after truncating post line spacing.
9790 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
9792 * ps/devps/prologue (MF, SF): Make them work even if setfont is
9793 defined as a procedure rather than as an operator.
9795 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
9797 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
9799 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
9801 * troff/div.c (top_level_diversion::output): Merge
9802 output_file::print_line and output_file::end_of_line member
9804 * troff/div.h (class output_file):
9805 * troff/node.c (troff_output_file::print_line,
9806 troff_output_file::end_of_line, output_file::end_of_line,
9807 ascii_output_file::print_line, suppress_output_file::print_line):
9808 Corresponding changes.
9810 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
9812 * troff/input.c (token::next): Don't give a warning for `\.'.
9814 * troff/env.c (environment::get_center_lines): New function.
9815 (init_env_requests): Bind number register .ce to it.
9816 * troff/env.h: Declare it.
9817 * tbl/table.c (table::init_output): Define reset macro to restore
9818 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
9820 (table::print): If center option not given, then imply center
9821 option if SAVED_CENTER_REG > 0.
9823 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
9825 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
9826 Troff.ps from DOWNLOAD.
9828 * troff/Makefile: Change comment in DEFINES to avoid confusing
9831 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
9832 code. Don't try to catch errors with stopped.
9833 (check_line_lengths): New function.
9834 * ps/devps/prologue (EXEC): Deleted.
9835 (EBEGIN, EEND): New procedures.
9837 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
9839 * troff/input.c: Include request.h before node.h.
9840 * troff/node.c: Likewise.
9841 * troff/env.c: Likewise.
9842 * troff/div.c: Likewise.
9843 * troff/node.h (class special_node): Store argument as a macro
9844 rather than a char *.
9845 * troff/node.c (special_node::special_node, special_node::copy):
9847 (special_node::~special_node): Deleted.
9848 (special_node::tprint): Deleted.
9849 (special_node::tprint_start, special_node::tprint_end,
9850 special_node::tprint_char): New functions.
9851 (troff_output_file::special): Deleted.
9852 (troff_output_file::start_special, troff_output_file::end_special,
9853 troff_output_file::special_char): New functions.
9854 * troff/input.c (special_node::tprint): New function.
9855 (do_special): Use macro not char *.
9856 (do_transparent_macro): Deleted.
9857 (token::next): Don't call do_transparent_macro.
9859 * troff/input.c (token::next): Add 'Y' case.
9860 (do_transparent_macro): New function.
9861 * troff/node.c (troff_output_file::special): Handle newlines with
9862 argument using new continuation convention.
9863 * driver/input.c (get_string): Cope with continuation convention.
9864 (do_file): Don't call skip_line after calling get_string(1).
9865 * ps/ps.c (ps_printer::special, ps_printer::do_import,
9866 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
9868 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
9871 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
9873 * troff/input.c (asciify): By default, illegal input characters
9874 should return empty string.
9876 * troff/input.c (copy_file): Handle first page transition like title.
9877 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
9879 * troff/input.c (token::next): Improve error message for EOF after
9881 (input_char_description): New function.
9882 (get_char_for_escape_name): Use input_char_description.
9883 (token::next): Warn about unrecognized escape sequences.
9884 (warning_table): Add WARN_ESCAPE.
9885 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
9888 * troff/token.h: Remove declaration of process_input_stack.
9890 * troff/input.c: Remove declaration of init_hyphen_requests.
9891 * troff/request.h: Correct spelling in declaration of same.
9893 * troff/input.c (token::next): Check whether escape_char is 0.
9895 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
9897 * groff.c (main, usage, help): Implement -P and -L options.
9898 * groff.sh: Likewise.
9900 * troff/input.c (token::next): Use some gotos to avoid code
9903 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
9904 Avoid calling symbol::symbol if name empty.
9906 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
9908 * troff/input.c (init_input_requests): Make \n(.x return the major
9909 version number and \n(.y return the minor version number.
9910 * troff/Makefile: Construct file majorminor.c defining
9911 major_version and minor_version automatically from ../VERSION.
9913 * troff/node.c (class glyph_node): Make operator new and operator
9915 (class ligature_node): Similarily.
9917 * troff/input.c (operator==(const macro &, const macro &)): New
9919 (non_interpreted_node::same): Use this.
9920 (string_iterator::string_iterator): Make macro& argument const.
9922 * troff/input.c (input_iterator::get): New function. Don't make
9923 asciify_macro or class non_interpreted_node friends of class
9925 (non_interpreted_node::interpret): Use input_iterator::get.
9926 (asciify_macro): Likewise.
9928 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
9929 ~non_interpreted_node): Deleted.
9930 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
9933 * troff/symbol.h: Make all symbol member functions const.
9935 * lib/strtol.c: New file.
9936 * lib/Makefile: Add strtol.c.
9937 * Makefile: Define STRTOL as strtol.o to include strtol in
9940 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
9942 * pic/troff.c (troff_output::simple_circle): Divide by scale.
9944 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
9946 * troff/input.c (do_special): Use input_level.
9948 * troff/token.h (TOKEN_BACKSPACE): New token.
9949 (token::backspace): New function.
9950 * troff/input.c (token::description, token::next, token::process):
9951 Grok TOKEN_BACKSPACE.
9952 (do_special): Turn TOKEN_BACKSPACE back into \b.
9954 * troff/token.h (token::leader): New function.
9955 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
9957 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
9959 * troff/input.c (do_special): Use token::description in error
9962 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
9964 * troff/input.c (decode_args): Combine quoted and
9965 quote_input_level variables. Make it a for (;;) loop.
9967 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
9969 * troff/input.c (read_long_escape_name): The test for whether to
9970 expand buffer was off by 1.
9971 (read_string): Similarily.
9973 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
9975 * troff/input.c: Use `const int' rather than `static const int'.
9977 * troff/div.h (diversion::copy_file): Declare as pure virtual.
9978 (macro_diversion::copy_file): New function.
9979 * troff/node.h: New class diverted_copy_file_node.
9980 * troff/node.c: Implement it.
9981 * troff/input.c (copy_file): Use diversion::copy_file. Handle
9982 first page transition by pushing a diverted_copy_file_node.
9983 * troff/input.c (token::next, process_input_stack): Don't handle
9986 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
9988 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
9989 whether space widths need adjusting.
9991 * troff/charinfo.h: Generalize translated_to_space to
9992 special_translation so as to allow translation to \&.
9993 * troff/input.c (translate): Allow translation to \&.
9994 (charinfo::*): Corresponding changes.
9995 * troff/node.c (make_node, node::add_char): Corresponding changes.
9996 * troff/node.h (dummy_node::dummy_node): Allow optional first
9999 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
10000 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
10002 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
10003 TOKEN_REQUEST with an argument of TITLE_REQUEST.
10004 (token::process): Grok that.
10005 * troff/input.c (copy_file): Handle first page transition like
10006 title by pushing a COPY_FILE_REQUEST cookie.
10007 (token::next, process_input_stack): Grok that.
10008 * troff/node.h (output_file::copy_file): Add x and y arguments.
10010 * troff/div.c (top_level_diversion::copy_file): Supply them.
10011 * troff/node.c (troff_output_file::copy_file): Add x and y
10012 arguments; moveto specified position. Invalidate font_position
10013 array after copying file.
10014 (output_file::copy_file): New function.
10015 (suppressed_output_file::copy_file, ascii_output::copy_file):
10017 * troff/input.c (transparent_file): New function.
10018 (init_input_requests): Bind to "trf".
10019 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
10020 (process_input_stack): Likewise.
10022 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
10024 * troff/node.c (init_node_requests): New number registers .kern
10025 pointing to global_kern_mode, and .lg pointing to
10026 global_ligature_mode.
10028 * troff/node.c (ligature): Don't change it if we get a bad
10031 * troff/input.c (do_define_string): Don't strip tabs.
10033 * troff/input.c (asciify_macro): Make the string_iterator auto.
10035 * troff/node.c (init_font_requests): Rename to...
10036 (init_node_requests):
10037 * troff/node.h: Change declaration.
10038 * troff/input.c (main): Change call.
10040 * troff/input.c (node::reread, diverted_space_node::reread): New
10042 (process_input_stack): Call reread rather than
10043 get_diverted_space_node.
10044 * troff/node.c (node::get_diverted_space_node,
10045 diverted_space_node::get_diverted_space_node): Removed.
10046 * troff/node.h: Declare reread methods instead of
10047 get_diverted_space_node methods. Make `n' member private.
10048 * troff/input.c: (token::diverted_space): Removed.
10049 * troff/token.h: Removed declaration.
10052 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
10054 * eqn/script.c (script_box::compute_metrics): Don't let
10055 SUP_RAISE_FORMAT become negative.
10057 * tbl/table.c (table::do_row): Entries that don't end in the
10058 this row shouldn't make the row non-blank.
10060 * tbl/table.c (table::make_columns_equal): Only set the width of
10061 columns which are marked as equal.
10063 * tbl/main.c (process_data): Before issuing excess data error,
10064 if last character was a newline unget it; then get it again after
10065 the error. Also include the contents of the entry in the message.
10067 * groff.c: New file.
10068 * Makefile: Build groff from groff.c. Make it possible to use
10069 either groff.sh or groff.c as groff.
10070 * Makefile.bd: Similarily.
10072 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
10074 * groff.sh: Don't delay expansion of $@ in assignment to files.
10075 Remove occurrences of \".
10077 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
10079 * all Makefiles: Simplify and rearrange.
10081 * Makefile: Handle fmod like malloc.
10082 * lib/Makefile: Similarily.
10083 * lib/fmod.c: Remove #ifdef NEED_FMOD.
10085 * Makefile: Rename OPTIMISE to OPTIMIZE.
10087 * groff.sh: Remove assignment to PATH.
10088 * Makefile: Remove SHPATH variable.
10089 * Makefile.bd: Similarily.
10091 * groff.sh: Add -V option to print the pipeline instead of
10094 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
10096 * lib/font.c: Split off file searching into ...
10097 * lib/fontfile.c: New file.
10099 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
10101 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
10103 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
10104 Also change misleading comment.
10105 (table::do_vspan): Change similarily misleading comment.
10106 * tbl/main.c (process_data): A format row with an explicit `s'
10107 uses up a data line, even if all the other columns are `_' or `='.
10109 * troff/input.c (token::description): Fix description of
10110 TOKEN_DUMMY and TOKEN_EMPTY.
10112 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
10114 * groff.sh: Fix description of -Z in help message.
10116 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
10118 * pic/object.c (object_spec::make_object): Allow negative and zero
10120 * pic/pic.y: Give linethick default value of -1.0.
10121 * pic/troff.c (troff_output::troff_output): Initialize
10122 last_line_thickness to BAD_THICKNESS.
10123 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
10124 (troff_output::line_thickness): Canonicalize negative thicknesses
10125 to RELATIVE_THICKNESS.
10126 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
10127 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
10129 (tex_output::start_picture): Set pen_size to -2.0.
10131 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
10132 0, then use 0 linewidth.
10133 (ps_printer::ps_printer): Initialize line_thickness to -1.
10135 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
10137 * ps/devps/symbolchars: Remove `or'.
10138 * ps/tmac.ps: Implement \(or with .char.
10140 * ps/devps/symbolchars: Move most characters into textmap.
10141 * ps/devps/textmap: Add names for troff bracket characters. Remove
10144 * ps/devps/TSymbol.ps: Removed.
10145 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
10146 * ps/tmac.ps: Do with .char what TSymbol did.
10147 * ps/devps/download: Remove TSymbol.
10149 * ps/devps/T: Removed.
10150 * ps/devps/Troff.ps: Removed.
10151 * ps/devps/Troff.afm: Removed.
10152 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
10153 * ps/devps/download: Remove Troff.
10154 * ps/devps/FontMakefile: Remove T target.
10155 * ps/devps/DESC-A4: Remove T from font list.
10156 * ps/devps/DESC-letter: Likewise.
10158 * troff/input.c (macro_to_node): Rename to ...
10159 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
10160 character's definition while processing it.
10161 * troff/node.c (node::add_char, make_node): Change calls to
10162 macro_to_node accordingly.
10164 * troff/input.c (token::next): Translate \_ to \(ul.
10166 * tty/devascii/R.proto: Add `|'.
10167 * tty/devlatin1/R.proto: Likewise.
10169 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
10171 * man: Put the version number in all the man pages.
10173 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
10175 * Makefile.bd: New file.
10176 * README.bd: New file.
10178 * VERSION: New file.
10179 * lib/version.c: Removed.
10180 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
10183 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
10184 environment variable.
10186 * all Makefiles: Split install target into install.bin for
10187 binaries, and install.nobin for everything else.
10188 * Makefile: Add bindist target.
10190 * man/afmtodit.man: New file.
10191 * man/Makefile: Add afmtodit.n to MAN1PAGES.
10192 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
10194 * ps/Makefile: Pass BINDIR to make install in devps.
10196 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
10197 the space character.
10199 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
10201 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
10203 * ps/ps.c: Redo font downloading.
10204 * ps/devps/download: New file.
10205 * ps/devps/Makefile: Add download to DEVICEFILES.
10206 * ps/devps/afmtodit: Remove -d option.
10207 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
10208 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
10209 * ps/devps/zapfdr.ps: Likewise.
10210 * ps/devps/TSymbol.ps: Likewise.
10212 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
10214 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
10216 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
10218 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
10219 then strip the first line if it starts with %.
10220 * Makefile: Add a comment about this.
10222 * man/tfmtodit.man: New file.
10223 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
10224 * dvi/Makefile: Install tfmtodit in BINDIR.
10226 * dvi/tfmtodit.c (usage): Mention -v option.
10228 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
10230 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
10231 * troff/node.c (troff_output_file::transparent_char): Don't call
10234 * eqn: Add check_tabs method to most box classes.
10235 * eqn/box.c (box::top_level): Call check_tabs.
10237 * eqn/script.c (script_box::output): Use \Z.
10238 * eqn/limit.c (limit_box::output): Use \Z.
10240 * eqn/box.c (box::top_level): Use itoa.
10242 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
10244 * dvi/tmac.dvi: Add font translations for CR, C, TT.
10245 * dvi/devdvi/Makefile: Don't make links to CW.
10247 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
10249 * xditview/tmac.X: Likewise.
10251 * troff/node.c: Add font translation feature.
10252 (get_font_translation): New function.
10253 (symbol_fontno): Translate the font name.
10254 (mount_font_no_translate): Rename to mount_font to this.
10255 (mount_font): New function.
10256 (font_family::make_definite): Call mount_font_no_translate instead
10258 (mount_style): Translate the font name.
10259 (font_translate): New function.
10260 (init_font_requests): Bind "ftr" to font_translate.
10262 * ps/devps/prologue (SN): New procedure that rounds a position to
10263 the nearest (pixel + (.25,.25)).
10264 (DL): Use SN to round endpoints.
10266 * lib/version.c: Changed version to 0.5.
10268 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
10270 * Makefile: Move definition of PAGE to the very beginning, so that
10271 people are less likely to miss it.
10273 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
10275 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
10277 * troff/env.c (environment::choose_breakpoint): Make `can't find
10278 breakpoint' error a warning of type WARN_BREAK. Change message to
10279 `can't break line'.
10280 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
10282 * troff/input.c: Add WARN_BREAK to warning_table. Include
10283 WARN_BREAK in DEFAULT_WARNING_MASK.
10285 * tty/tmac.tty: Add definition of \(+-.
10287 * groff.sh: Remove `--' option to set command.
10289 * dvi/devdvi/texsy.map: Remove duplicate md entry.
10291 * ps/devps/eqnchar: Better definition of cdot using md.
10292 * dvi/devdvi/eqnchar: Likewise.
10293 * xditview/devX100/eqnchar: Likewise.
10294 * xditview/devX75/eqnchar: Likewise.
10295 * eqn/lex.c: Add definition of cdot.
10297 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
10299 * troff/input.c (get_optional_char): New function.
10300 * troff/input.c (set_page_character): Use get_optional_char(),
10301 rather than has_arg() and tok.get_char(1).
10302 * troff/env.c (tab_character, leader_character, hyphen_char,
10303 field_characters): Likewise.
10304 (margin_character): Likewise. Also always delete the
10305 margin_character_node.
10307 * troff/input.c (token::get_char): Use token::description.
10309 * troff/input.c (has_arg): Don't skip over tab and \}.
10310 * troff/number.c (start_number): Give a warning if the number
10311 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
10313 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
10315 * troff/input.c (empty_name_warning, non_empty_name_warning): New
10317 (get_name, get_long_name): Use these. Rename `warn' argument to
10320 * troff/node.c (get_fontno): Test that the symbol is not null.
10322 * troff/input.c (token::description): New function.
10323 * troff/number.c (parse_term): Use token::description in `numeric
10324 expression expected' message.
10325 * troff/groff.h: Add WARN_MISSING.
10326 * troff/number.c (start_number): New function.
10327 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
10328 get_incr_number): Use start_number().
10329 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
10331 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
10332 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
10334 * troff/input.c (token::get_char): Use WARN_MISSING.
10335 * troff/input.c (token::delimiter): Use token::description.
10336 * troff/env.c (environment_switch): Back out Aug 3 change.
10337 * troff/input.c (has_arg): Skip over \}s and tabs but give a
10339 * troff/token.h (token::tab): New function.
10340 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
10341 * troff/reg.c (alter_format): Likewise.
10342 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
10344 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
10346 * troff (most files): Redo warnings. Divide warnings into various
10347 categories; warning() has an additional first argument indicating
10348 the category it falls into.
10349 * troff/input.c (main): -w now takes an argument. New option -W.
10350 (enable_warning, disable_warning): New functions.
10352 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
10353 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
10355 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
10357 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
10358 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
10359 * xditview/devX75/eqnchar: Likewise.
10360 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
10362 * eqn/other.c: When bar or over applies to a single character
10363 don't produce an overline_box or an underline_box. Instead produce
10364 an accent_box or an underaccent_box, with the accent a line
10365 whose width is accent_width. New classes underaccent_box,
10366 overline_char_box and underline_char_box.
10367 * eqn/box.h: Move overline_box, underline_box, accent_box class
10368 declarations into eqn/other.c. Add declarations of
10369 make_underline_box, make_overline_box, make_accent_box.
10370 * eqn/eqn.y: Call make_overline_box, make_underline_box
10371 make_accent_box instead of constructors.
10372 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
10374 * eqn/other.c: Add accent_box::~accent_box.
10375 * eqn/box.h: Declare it.
10377 * groff.sh: With -Tps, use eqn -D.
10379 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
10381 (underline_box::output): Similarily.
10382 (accent_box::output): Use \Z.
10384 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
10387 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
10389 * troff/div.c (top_level_diversion::transparent_output(unsigned
10390 char)): Use asciify.
10391 * troff/input.c (asciify): Don't make it static.
10392 * troff/token.h (asciify): Declare it.
10394 * troff/input.c (get_name, get_long_name, token::get_char,
10395 token::delimiter): Add an extra default argument which says
10396 whether a warning should be printed.
10397 * troff: Pass a non-zero argument to one of these rather than
10398 printing a warning directly.
10400 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
10402 * troff: Consistently use symbol::is_null.
10404 * troff/dictionary.h: Move some inline functions into
10407 * troff/request.h: Move inline functions into input.c.
10408 (request_or_macro::invoke): Make it pure.
10410 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
10411 * troff/input.c (init_input_requests): Use class constant_int_reg.
10412 (class compatible_reg): Deleted.
10413 * troff/div.c (init_div_requests): Use class constant_int_reg.
10414 (class last_post_line_extra_space_reg): Deleted.
10416 * troff/env.c (tab_character): Don't change the tab character if
10417 we get an invalid argument.
10418 (hyphen_char): Similarily.
10420 * troff/reg.c (alter_format): Check that nm is not null.
10422 * Makefile, groff.sh: Make it possible to customize the commands
10423 used for printing PostScript and dvi files. Also make it possible
10424 to customize the path used by groff.sh.
10426 * eqn/eqn.y: Make `left' right associative.
10428 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
10430 * pic/pic.h: Added definition of M_SQRT2 for those systems that
10433 * pic/pic.h: Removed definition of INT_MAX.
10435 * troff/node.c (italic_corrected_node::vertical_extent): Omit
10438 * troff/input.c (token::next): Handle \R like \n.
10440 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
10442 * ps/tmac.pc (PSPIC): Simplify.
10444 * troff/env.c (tab_stops::to_string):
10445 * pic/pic.y (object_type_name):
10446 * pic/troff.c (simple_output::line):
10447 * pic/tex.c (tex_output::spline):
10448 * pic/object.c (object_spec::make_object):
10449 * tbl/main.c (process_data): Add cases to switch statements to
10450 avoid cfront warnings. (Some of these are spurious, since the
10451 switch already has a default case.)
10453 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
10454 `ps-'. Don't test systat; instead check number of arguments to
10457 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
10459 * macros/tmac.e: Do not decrease the page offset by 0.5i.
10461 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
10462 Unlink the file as soon as we have opened it, so that we don't
10463 have to bother with signal handlers.
10464 (handler): Deleted.
10465 (fatal_error_exit): Deleted.
10466 (main): Don't call signal.
10468 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
10470 * dvi/devdvi/Makefile: Use the -k option with S and MI.
10472 * pic/pic.y: If there is a label, or an nth construction before
10473 the first `.' in the argument to `with', ignore it and generate a
10475 * pic/lex.c (lex_warning): New function.
10477 * tbl/table.c (table::init_output): In section keep and release
10478 macro, use 0 indent when diverting and the correct indent when
10481 * troff/input.c (interpolate_number_format): Do not interpolate
10482 anything if the number register is not defined.
10484 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
10486 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
10488 * ps/devps/prologue (PICTURE): Set components of graphics state to
10489 their default values.
10491 * ps/devps/text.enc: Add trademark
10492 * ps/devps/textmap: Add names for club, spade, heart, diamond,
10493 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
10494 * ps/devps/symbolchars: Add names for summation and product.
10496 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
10497 suchthat. Add pp. Add upper-case letters.
10499 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
10500 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
10503 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
10504 rA (right angle bracket) to ra. Introduce names for double-headed
10505 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
10506 * ps/devps/textmap: Likewise for ps device.
10507 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
10508 * tty/devascii/R.proto: Rename lA to la and rA to ra.
10509 * tty/devascii/R.proto: Likewise.
10510 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
10512 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
10514 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
10516 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
10519 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
10521 * troff/div.c (when_request): Use symbol::is_null rather than
10522 has_arg to determine whether we have an argument.
10523 (change_trap): Remove the trap if we get an invalid number. Give
10524 an error if we don't get at least the macro name.
10525 (diversion_trap): Remove trap if we get an invalid name or number.
10527 * troff/env.c (environment_switch): Pop if we get an invalid
10528 symbol or numeric expression.
10530 * troff/input.c (do_define_macro): If EOF is encoutered while
10531 defining the macro, do tok.next() before returning.
10533 * troff/token.h (has_arg): Move definition from here, to ...
10534 * troff/input.c (has_arg): ... here
10536 * troff/env.c (space_size): Do nothing if we get an invalid argument.
10537 * troff/input.c (shift): Likewise.
10539 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
10542 * pic/troff.c (troff_output::start_picture): Comment out calls to
10545 * eqn/main.c (do_file): Subtract 1 from current_lineno if
10546 interpret_lf_args succeeds.
10548 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
10549 \\. This avoids problems with \$N.
10551 * groff.sh: Pass -C to preprocessors.
10553 * lib/lf.c (interpret_lf_args): Be more flexible.
10555 * tbl/main.c (main): Add -C option.
10556 (table_input::get): Do not recognize TE if followed by character
10557 other than a space or newline unless -C option given.
10558 (process_input_file): Likewise for lf, TS.
10559 (process_data): Likewise for lf in text blocks.
10561 * eqn/main.c (main): Add -C option.
10562 (do_file): Don't recognize EQ, EN or lf if followed by character
10563 other than space or newline unless -C option given.
10564 * eqn/lex.c (file_input::read_line): Similarily.
10565 * eqn/eqn.h: Declare compatible_flag.
10567 * etc/soelim.c (main): Add -C option.
10568 (interpret_lf_args): Use version in libgroff.
10571 * pic/main.c (main): Add -C option, which sets compatible_flag.
10572 (top_input::get), (top_input::peek): If -C option not given,
10573 do not recognize .PS/.PE/.PF/.lf if followed by a character
10574 other than space or newline.
10575 * pic/lex.c (file_input::read_line): Similarily.
10576 * pic/pic.h: Add declaration of compatible_flag.
10578 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
10580 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
10582 * troff/node.c, troff/node.h: Add `asciify' methods to classes
10583 derived from node. New class space_char_hmotion_node.
10584 * troff/input.c (asciify_macro): New function.
10585 * troff/input.c (init_input_requests): New request `asciify' bound
10587 * macros/mm.diff: New file.
10588 * Makefile: In install.mm target use `patch' to apply
10591 * troff/input.c (macro::print_size): Just print the size in bytes.
10593 * troff/div.c (return_request): Correct the argument
10596 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
10598 * troff/node.h (class composite_node): Add sz member.
10599 * troff/node.c (composite_node::size): Return sz.
10600 * troff/input.c (macro_to_node): Use the initial size in the
10601 environment as the size of the composite_node.
10603 * troff/node.c (node::zero_width_tprint): Provide a reasonable
10606 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
10608 * troff/div.c (change_trap): If we get a bad number expression,
10611 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
10613 * lib/matherr.c (matherr): Define this only if math.h defines
10616 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
10618 * troff/div.c (macro_diversion::distance_to_next_trap): If there
10619 no diversion trap return vunits(INT_MAX - vresolution).
10621 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
10623 * troff/input.c (do_zero_width): New implementation that doesn't
10624 use a temporary environment. Use instead:
10625 (token::add_to_node_list): New function.
10626 * troff/env.c (environment::get_prev_char_height),
10627 (environment::get_prev_char_height),
10628 (environment::get_prev_char_skew): New functions.
10629 (environment::get_prev_char): New function.
10630 (environment::get_prev_char_width): Change to use get_prev_char.
10631 (init_env_request): Implement new registers .cht, .cdp, .csk.
10632 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
10633 \Z being processed in a separate environment.
10635 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
10637 * tbl/table.c: Removed TABLE_BOTTOM_REG.
10639 * tbl/table.c (table::init_output): In the section release macro,
10640 give a warning message if the section won't fit on one page.
10642 * tbl/table.c (table::do_top): Emit table keep only if table is
10644 (table::do_bottom): Likewise for table release.
10645 (table::table), (table::add_vertical_rule): Remove reference to
10647 * tbl/table.h: Remove keep member.
10649 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
10650 SECTION_RELEASE_MACRO, if there's not enough space before the next
10651 trap to output the diversion, call T# ourselves, set
10652 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
10653 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
10654 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
10655 vertical position and return to it before turning traps on again.
10657 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
10659 * troff/node.c, troff/node.h: In classes derived from node,
10660 replace prev_char_width method by last_char_node method.
10661 * troff/env.c (environment::get_prev_char_width): Use
10662 node::last_char_node rather than node::get_prev_char_width.
10664 * Makefile: Added comment about -fno-inline on 68030-based
10667 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
10668 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
10669 expressions using sizeof to int.
10670 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
10672 * macros/tmac.e (TS): Don't move @f back past the current
10675 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
10677 * ps/ps.c (main): Buffer stderr.
10678 * dvi/dvi.c (main): Likewise.
10679 * tty/tty.c (main): Likewise.
10681 * ps/ps.c (ps_printer::do_import): Improve error handling.
10683 * troff/input.c (abort_request): Use asciify.
10685 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
10686 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
10687 type of first argument int rather than char. This works around a
10688 bug on the 68030 based Apollo using g++ 1.37.1.
10690 * tbl/table.h (class table): Add `keep' member.
10691 * tbl/table.c (table::table): Initialize `keep'.
10692 (table::add_vertical_rule): Set `keep' to 1.
10693 (table::do_top): Only emit table keep macro is `keep' is non-zero.
10694 (table::do_bottom): Likewise for table release macro.
10695 (table::do_row): Emit section keep macro even if the row is 0.
10697 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
10699 * macros/tmac.e (@C): Preserve the font family across the change
10702 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
10704 * lib/font.c: Initialize font::hor and font::vert to 1.
10705 (font::load_desc): Check the values of font::hor and font::vert.
10707 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
10708 be included in a C compilation.
10709 (iftoa): Use INT_DIGITS. Include lib.h.
10711 (as_string): Likewise.
10712 * tbl/table.c: Removed definition of INT_DIGITS.
10713 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
10714 * troff/input.c (input_input_requests): Likewise.
10715 * ps/ps.c (make_encoding_name): Likewise.
10716 (ps_printer::set_style): Likewise.
10717 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
10719 * tty/devascii/R.proto: Map fm onto '.
10720 * tty/devlatin1/R.proto: Likewise.
10722 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
10724 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
10725 argument to \w is at a different input level.
10727 * tbl/table.c (table::init_output): Define a new macro
10728 REPEATED_VPT_MACRO, like vpt but if in a diversion also
10729 transparently outputs itself.
10730 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
10732 (table::do_row): Likewise.
10734 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
10735 TRANSPARENT_STRING_NAME.
10737 * tbl/table.c (table::init_output): In the table release macro
10738 print an error message and don't produce any output if after
10739 issuing the need request the table still will not fit. Also
10740 remove the diversion after bringing it back.
10742 * tbl/table.c (table::init_output): Define a new macro
10743 REPEATED_MARK_MACRO, like mk but if in a diversion also
10744 transparently outputs itself.
10745 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
10746 is necessary because .TH might not call .T#.
10747 (table::do_top): Likewise TOP_REG.
10748 (table::define_bottom_macro): If TOP_REG is no longer valid, use
10749 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
10750 table header might contain just the two top rules.
10752 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
10754 * troff/div.c: Implement new request `ptr' to print all traps.
10756 * troff/env.c (init_env_requests): Implement `.tabs' reg with
10757 init_string_env_reg.
10758 * troff/env.c (class tab_reg): Deleted.
10760 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
10762 * troff/div.c: New number register .pn returns the number of the
10763 next page as set by the pn request.
10765 * macros/tmac.an: Redid headers and footers. Number each manual
10766 entry starting from 1 unless \nC is > 0, like Sun. Added an
10767 optional 5th argument to .TH which specifies the manual name and
10768 appears in the center of the header. Understand the X, P and D
10769 registers like Sun.
10771 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
10773 * troff/env.c (init_env_requests): New number register `.lt' to
10774 return the title length.
10776 * troff/node.h (class transparent_dummy_node): New class.
10777 * troff/node.c (class transparent_dummy_node): Provide member
10779 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
10782 * troff/input.c (token::next): New escape sequence \).
10783 * troff/input.c (get_copy): Recognize \) in copy mode.
10785 * troff/input.c (input_stack::clear): New function.
10786 * troff/input.c (exit_request): Use input_stack::clear.
10788 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
10789 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
10791 * troff/env.c: Move set_page_character to input.c. Move
10792 page_character to input.c also.
10793 * troff/env.c (title): Split off the reading of the parts of the
10794 title into read_title_parts.
10795 * troff/input.c (read_title_parts): New function. Check the
10796 input_level when testing whether a token matches the delimiter.
10798 * troff/input.c (exit_request): New function.
10799 * troff/input.c (init_input_requests): Bind ex request to
10800 exit_request rather than exit_groff.
10802 * troff/input.c (exit_groff): Call tok.next() before
10803 process_input_stack().
10805 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
10807 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
10808 * troff/env.h: ditto.
10809 * troff/input.c: ditto.
10811 * troff/env.c (environment::is_empty): Test pending_lines.
10813 * troff/env.c (environment::have_pending_lines): Removed.
10815 * troff/input.c: Add request to flush pending lines from the
10818 * troff/env.c, troff/env.h: Add automatic widow control feature.
10820 * troff/input.c (exit_groff): Do process_input_stack() after
10821 do_break() but before setting exit_flag to 2.
10823 * troff/input.c: Remove FLUSH_PENDING_LINES and
10824 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
10825 environment after END_TRAP token seen, but only if there aren't
10826 any more traps still unfinished.
10827 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
10829 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
10831 * troff/env.c: Rename the `retain_size' member of class
10832 pending_output_line to `no_fill'.
10834 * troff/env.c (title): When the line is output, make the
10835 retain_size argument !fill.
10837 * troff/node.h: Add `hyphenated' member to struct breakpoint.
10838 * troff/node.c (space_node::get_breakpoints),
10839 (dbreak_node::get_breakpoints): Fill this in.
10840 * troff/env.c: Allow specification of maximum number of
10841 consecutive hyphenated lines.
10843 * troff/env.c (environment::is_empty): Add test for !current_tab.
10845 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
10847 * troff/env.c (environment::hyphenate_line): Don't completely give
10848 up if the word is not to be hyphenated; continue so that breaks
10849 can be made at break_char_node's.
10851 * lib/lib.h: Only define INT_MAX if it's not already defined;
10852 undef INT_MIN if it's already defined.
10854 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
10856 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
10857 This works around a bug in AT&T C++ 2.0 used with an ANSI C
10860 * macros/tmac.an (an-header): Set no-space mode.
10862 * macros/tmac.an (TH): Start a new page if necessary.
10864 * Started using ChangeLog at version 0.4.
10867 version-control: never