1 2002-01-17 Werner LEMBERG <wl@gnu.org>
3 * devices/grops/ps.cc: Fix incorrectly applied last patch.
5 2002-01-17 Larry Kollar <kollar@alltel.net>
7 * tmac/groff_ms.man: Completely rewritten.
9 2002-01-16 Werner LEMBERG <wl@gnu.org>
11 * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
13 2002-01-15 Gaius Mulley <gaius@glam.ac.uk>
15 * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
17 (ps_printer::draw): Ditto.
19 2002-01-14 Ruslan Ermilov <ru@FreeBSD.org>
21 * tmac/groff_mdoc.man: Minor fixes.
23 2002-01-13 Werner LEMBERG <wl@gnu.org>
25 * man/groff_out.man: Some fixes.
27 2002-01-13 Gaius Mulley <gaius@glam.ac.uk>
29 * doc/pic.ms: Fix typos.
31 2002-01-12 Werner LEMBERG <wl@gnu.org>
33 * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
35 2002-01-10 Werner LEMBERG <wl@gnu.org>
37 * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
41 2002-01-09 Bernd Warken <bwarken@mayn.de>
43 * man/groff_out.man: Revised.
44 * man/roff.man: Minor fixes.
45 * src/roff/troff/troff.man: Some reordering.
47 2002-01-09 Werner LEMBERG <wl@gnu.org>
49 * tmac/an-old.tmac: Add dummy macros for equation support.
51 2002-01-07 Werner LEMBERG <wl@gnu.org>
53 doc/groff.texinfo: Fix documentation of glyph searching algorithm.
55 * tmac/an-old.tmac: Revert change 2001-12-23. This breaks too many
57 * tmac/groff_man.man: Small improvements.
59 2002-01-07 Bernd Warken <bwarken@mayn.de>
61 * man/groff_diff.man: Revised.
63 2002-01-06 Werner LEMBERG <wl@gnu.org>
65 * tmac/www.tmac: Remove extraneous backslash.
67 2002-01-06 Bernd Warken <bwarken@mayn.de>
69 * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
71 2002-01-05 Werner LEMBERG <wl@gnu.org>
73 Integrated groffer, contributed by Bernd Warken.
75 * contrib/groffer/*: New.
76 * Makefile.in, NEWS: Updated.
78 2002-01-04 Werner LEMBERG <wl@gnu.org>
80 * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
81 registers defined in macro packages.
84 2002-01-04 Larry Kollar <kollar@alltel.net>
86 * doc/groff.texinfo: Add documentation for ms macros.
88 2002-01-02 Werner LEMBERG <wl@gnu.org>
90 First step in adding PS support for the Euro symbol. `eu' is the
91 official Euro logo, `Eu' is a font-specific glyph variant.
93 * font/devps/text.enc: Add `Euro' at position 9.
94 * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
95 * font/devps/symbolmap: Regenerated.
99 2002-01-02 Bernd Warken <bwarken@mayn.de>
101 * man/roff.man: Revised.
103 2002-01-01 Bernd Warken <bwarken@mayn.de>
105 * src/roff/groff/groff.man: Completely rewritten.
107 2001-12-31 Werner LEMBERG <wl@gnu.org>
109 * doc/Makefile: Updated.
111 2001-12-30 Werner LEMBERG <wl@gnu.org>
113 * tmac/www.tmac: Make all names of internal macros/registers/strings
114 lowercase, and prepend `www-'.
116 * src/roff/troff/troff.man: Add preprocessor string at BOF.
118 2001-12-30 Gaius Mulley <gaius@glam.ac.uk>
120 Implement option `-b' in grohtml to set the HTML background colour.
122 * src/devices/grohtml/post-html.cc (default_background): New global
124 (html_printer::html_printer): Initialize `background' to
125 `default_background'.
126 (main): Implement option `-b'.
128 * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
130 * src/devices/grohtml/grohtml.man: Updated.
131 * doc/Makefile (.ms.html): Use `-b'.
132 * tmac/html.tmac: Don't set background color.
134 Add new grohtml tag `.html-tl'.
136 * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
138 (title_desc::title_desc): Updated.
139 (html_printer::troff_tag): Handle `.html-tl'.
140 (html_printer::write_title): Use `with_h1'.
141 * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
142 (HTML-TL): New macro.
144 Add support for unordered lists in HTML.
146 * tmac/www.tmac (www-level): New auxiliary register.
147 (www-level1, www-level2, www-level3): New auxiliary strings.
148 (www-push-level, www-pop-level): New auxiliary macros
149 (UL-BEGIN, UL-END, LI): User macros for unordered lists.
153 * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
154 (DEFAULT_VERTICAL_OFFSET): Removed.
155 (IMAGE_BOARDER_PIXELS): Set to 0.
156 (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
157 (vertical_offset): Initialize with 0.
158 (gsPaper): New global variable.
159 (get_resolution): Scan for and return unsigned int.
160 (get_papersize): New function to get paper length from devps/DESC.
161 (determine_vertical_offset): New function.
162 (createAllPages): Produce gray-level images and use proper page
164 (createImage): Use `-quiet' option of pnmcrop.
165 (addZ): Fix passing of `-Z'.
166 (scanArguments): Fix handling of `-o'.
167 (main): Call `determine_vertical_offset'.
168 * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
171 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
172 * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
173 glyph descenders properly.
175 * doc/homepage.ms: Include `gnubw.eps'.
176 * doc/Makefile (gnubw.eps): New rule.
177 (homepage.html): Depend on `gnubw.eps'.
179 2001-12-25 Werner LEMBERG <wl@gnu.org>
181 * src/roff/troff/input.cc (default_black): Fix return value.
183 2001-12-24 Ruslan Ermilov <ru@FreeBSD.org>
185 * tmac/doc-common (Dt): Change output of architecture strings.
186 Do some syntax cleanup.
187 * tmac/groff_mdoc.man: Updated.
189 2001-12-23 Werner LEMBERG <wl@gnu.org>
191 Adding an `itc' request (input line trap accepting \c).
193 * src/roff/troff/env.h (environment): New member
194 `continued_input_trap'.
195 Make `do_input_trap' a friend function instead of `input_trap'.
196 * src/roff/troff/env.cc (environment::environment,
197 environment::copy): Updated.
198 (environment::newline): Implement it.
199 (do_input_trap): New function.
200 (input_trap): Call `do_input_trap'.
201 (input_trap_continued): New function.
202 (init_env_requests): Updated.
203 * src/roff/troff/TODO: Updated.
205 * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
208 * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
210 2001-12-22 Ruslan Ermilov <ru@FreeBSD.org>
212 * tmac/doc-common, tmac/doc-syms: Small updates.
214 2001-12-22 Colin Watson <cjwatson@debian.org>
216 * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
218 2001-12-22 Bernd Warken <bwarken@mayn.de>
220 * MANIFEST: New file.
222 2001-12-22 Werner LEMBERG <wl@gnu.org>
224 * src/preproc/grn/grn.man: Updated.
226 2001-12-22 Solar Designer <solar@openwall.com>
228 * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
231 2001-12-19 Werner LEMBERG <wl@gnu.org>
233 Implement a fallback character request `.fchar'.
235 * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
236 (is_fallback): New inline function.
237 * src/roff/troff/input.cc (do_define_character): New function.
238 (define_character): Call `do_define_character'.
239 (define_fallback_character): New function.
240 (init_input_requests): Add `fchar'.
241 (charinfo::charinfo): Updated.
242 (charinfo::set_macro): New argument to set `fallback' flag.
243 * src/roff/troff/node.cc (make_glyph_node, make_node,
244 node::add_char): Check `fallback' flag.
245 * NEWS, man/groff_diff.man, man/groff_man: Updated.
247 2001-12-16 Werner LEMBERG <wl@gnu.org>
249 * groff.texinfo: Document exact search algorithm for glyphs.
251 2001-12-15 Werner LEMBERG <wl@gnu.org>
253 * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
254 the left side of $(MANPAGES) rule to make it always non-empty.
256 2001-12-14 Werner LEMBERG <wl@gnu.org>
258 * src/roff/troff/input.cc (default_black): Define default color
259 `black' if not yet defined.
261 2001-12-13 Werner LEMBERG <wl@gnu.org>
263 Implement new string-valued register `.fn' to return the current
264 real (internal) font name.
266 * env.cc (environment::get_font_name_string): New function.
267 (init_env_requests): Add `.fn' register.
268 * env.h (environment): Updated.
269 * node.cc (font_info): Make `get_font_name' a friend.
270 (get_font_name): New function.
273 * man/groff_diff.man, man/groff.man, NEWS: Updated.
275 2001-12-12 Ralph Corderoy <ralph@inputplus.demon.co.uk>
277 * src/preproc/eqn/main.cc (inline_equation): Fix typos.
279 2001-12-12 Werner LEMBERG <wl@gnu.org>
281 * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
283 2001-12-10 Gaius Mulley <gaius@glam.ac.uk>
285 * man/groff_diff.man: Adding documentation for \O.
287 2001-12-10 Werner LEMBERG <wl@gnu.org>
289 * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
290 (scanArguments): Use PROG_PREFIX for the name of the troff binary.
292 2001-12-09 Werner LEMBERG <wl@gnu.org>
294 * man/roff.man: Revised.
295 * src/roff/groff/groff.man: Replace man page references with a
298 2001-12-09 Bernd Warken <bwarken@mayn.de>
300 * man/roff.man: Completely rewritten.
302 2001-12-06 Ralph Corderoy <ralph@inputplus.demon.co.uk>
304 * src/preproc/eqn/main.cc (inline_equation): Improve error message.
306 2001-12-05 Werner LEMBERG <wl@gnu.org>
308 * src/roff/troff/input.cc (get_delim_file_name): Removed since no
310 * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
311 order of initializers.
314 2001-12-05 Gaius Mulley <gaius@glam.ac.uk>
316 * doc/groff.texinfo: Fix documentation of \O.
318 * src/devices/grohtml/html-text.cc (html_text::do_indent,
319 html_text::do_table, html_text::do_emittext, html_text::do_para):
320 Use `const' for first argument.
321 (html_text::do_table): Use cast.
322 * src/devices/grohtml/html-text.h: Updated.
323 * src/devices/grohtml/output.cc (simple_output::put_string): Add
324 method for `const string &s'.
325 * src/devices/grohtml/html.h: Updated.
326 * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
327 (ANCHOR_TEMPLATE): Modified.
328 (manufacture_headings): New global variable to handle `-h' option.
329 (is_subsection): Removed.
330 (char_buffer::add_string): Add `const' to first argument.
331 Protect against invalid string argument.
332 Add method for `const string &s'.
333 (text_glob): Completely redesigned.
334 (page): Use `const' for strings and remove string length variable.
335 (page::add_html): Removed.
336 (page::add_end_encode): New member function.
337 (to_unicode): Moved upwards.
338 (title_desc, header_desc): Updated.
339 (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
341 (html_printer::is_bold, html_printer::make_bold): New member
343 (html_printer::end_of_line): Updated.
344 (generate_img_src, html_printer::do_auto_image,
345 html_printer::do_title, html_printer::write_header,
346 html_printer::determine_header_level, html_printer::do_heading,
347 html_printer::do_linelength, html_printer::do_pageoffset,
348 html_printer::do_indentation, html_printer::do_tempindent,
349 html_printer::do_indentedparagraph, html_printer::do_break,
350 html_printer::flush_sbuf, get_html_translation,
351 html_printer::begin_page, html_printer::special): Rewritten to get
352 rid of static string length limit.
353 (html_printer::troff_tag): Added `.no-auto-rule'.
354 (html_printer::flush_globs): Small fix.
355 (html_printer::determine_space): Don't compute `space_width'.
356 (html_printer::translate_to_html): Renamed to ...
357 (html_printer::emit_html): This (with updates).
358 (html_printer::write_header): Implement `-h' option.
359 (html_printer::draw): Remove commented-out code. Handle `F'
361 (html_printer::add_char_to_sbuf): Removed.
362 (html_printer::add_to_sbuf): Rewritten.
363 (html_printer::sbuf_continuation): Fixed.
364 (html_printer::seen_backwards_escape, reverse,
365 html_printer::remove_last_char_from_sbuf): Removed.
366 (char_translate_to_html, str_translate_to_html): Removed.
367 (html_printer::overstrike): New function member.
368 (html_printer::set_char): Use it.
369 (html_printer::do_body): New function member.
370 (html_printer::~html_printer): Use it.
371 (main): Handle `-h' option.
373 * src/devices/grohtml/grohtml.man: Document -h switch.
375 * src/preproc/html/pre-html.cc: Include searchpath.h
376 Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
377 (get_resolution): New function.
378 (checkImageDir): Use `0777' permissions in mkdir()
379 (write_start_image): Rewritten to use `\O[5...]'.
380 (createImage, generateImages): Updated.
381 (main): Handle `F' and `h' options.
382 Use `get_resolution'.
384 * src/roff/troff/input.cc (begin, end, image): Removed.
385 (do_suppress): Take parameter.
386 Handle modified syntax of `\O'.
387 (token::next): Updated.
388 (init_markup_requests): Removed.
391 * src/roff/troff/div.h: Add declaration for begin_page().
393 * tmac/color-html.tmac: Removed. Contents moved to...
394 * tmac/html.tmac: Here. Set background color.
395 * tmac/color.tmac: Removed. Contents moved to...
396 * tmac/ps.tmac: Here.
397 * tmac/www.tmac: Remove the title command when generating images
399 (NO_AUTO_RULE): New macro.
400 (HTML_DO_IMAGE): Use revised `\O' escapes.
401 * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
403 2001-12-02 Werner LEMBERG <wl@gnu.org>
405 * tmac/groff_mdoc.man: Fix typo.
407 2001-12-01 Colin Watson <cjwatson@debian.org>
409 * man/roff.man: Fix typo.
411 2001-11-29 Werner LEMBERG <wl@gnu.org>
413 * src/lib/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
416 * src/roff/troff/input.cc (read_draw_node): Emit error message if
417 more than one argument to \D'f ...'.
419 * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
421 2001-11-28 Werner LEMBERG <wl@gnu.org>
423 * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
426 * tmac/groff_man.man: Minor cosmetic fix.
428 2001-11-27 Werner LEMBERG <wl@gnu.org>
430 * src/roff/groff/groff.man, tmac/groff_tmac.man,
431 tmac/groff_www.man: s/mwww/www/.
433 2001-11-26 Werner LEMBERG <wl@gnu.org>
435 * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
436 * configure: Regenerated.
437 * win32-diffs: Updated.
439 * tmac/groff_mwww.tmac: Renamed to ...
440 * tmac/groff_www.tmac: This.
441 * tmac/mwww.tmac: Removed.
442 * NEWS, tmac/Makefile.sub: Updated.
444 2001-11-21 Werner LEMBERG <wl@gnu.org>
446 * doc/groff.texinfo: Improve documentation of the `\v' escape.
447 Fix explanation of `\D' and `rt'.
449 2001-11-20 Werner LEMBERG <wl@gnu.org>
451 * tmac/an-old.tmac (an-header): Set header length equal to page
453 * doc/groff.texinfo: Improve documentation of `ne' request. Other
457 2001-11-19 Werner LEMBERG <wl@gnu.org>
459 * NEWS, man/Makefile.sub: Updated.
461 2001-11-19 Bernd Warken <bwarken@mayn.de>
463 * man/ditroff.man: New file.
465 2001-11-17 Werner LEMBERG <wl@gnu.org>
467 * man/groff_differences.man: Renamed to ...
468 * man/groff_diff.man: This. Updated.
469 * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
471 * src/preproc/html/pushbackbuffer.cc: Renamed to ...
472 * src/preproc/html/pushback.cc: This. Updated.
473 * src/preproc/html/pushbackbuffer.h: Renamed to ...
474 * src/preproc/html/pushback.h: This.
475 * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
478 * src/libs/libgroff/htmlindicate.cc: Renamed to ...
479 * src/libs/libgroff/htmlhint.cc: This.
480 * src/libs/libgroff/Makefile.sub: Updated.
482 * tmac/an-old.tmac (an-end): Fix page length.
484 2001-11-16 Werner LEMBERG <wl@gnu.org>
486 * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
487 * man/Makefile.sub: Include groff_differences.man.
488 * VERSION: Set to 1.18.
489 * REVISION: Set to 0.
491 2001-11-16 Bernd Warken <bwarken@mayn.de>
493 * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
494 the second dot (or ending macro name) to end a macro.
495 * doc/groff.texinfo: Doc fix.
497 2001-11-16 Ruslan Ermilov <ru@FreeBSD.org>
499 * tmac/doc-common (doc-header): Handle very long document titles
502 2001-11-16 Werner LEMBERG <wl@gnu.org>
504 * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
506 2001-11-15 Werner LEMBERG <wl@gnu.org>
508 * src/roff/troff/troff.man: Revised and split into troff.man and...
509 * man/groff_differences.man: New file.
512 2001-11-13 Werner LEMBERG <wl@gnu.org>
514 * tmac/an-old.tmac (TS, TE): New macros for table support.
516 2001-11-12 Werner LEMBERG <wl@gnu.org>
518 * src/include/lib.h: Provide a fix for emx to not include
521 2001-10-27 Werner LEMBERG <wl@gnu.org>
523 * src/roff/troff/input.cc (substring_macro): Fix computation of
526 2001-10-20 Werner LEMBERG <wl@gnu.org>
528 Undo change from 2001-08-28.
530 * src/roff/troff/input.cc (have_input): New global variable.
531 (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
532 in compatibility mode.
533 (process_input_stack): Use it.
535 2001-10-19 Ruslan Ermilov <ru@FreeBSD.org>
537 * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
538 being handled as end-of-sentence characters,
540 2001-10-10 Gaius Mulley <gaius@glam.ac.uk>
542 * src/roff/troff/input.cc (file_iterator): New members
543 `suppress_newline_flag' and `seen_escape'.
544 (file_iterator::next_file): Updated.
545 (file_iterator::fill): Use it.
546 (string_iterator): New member `suppress_newline_flag'.
547 (string_iterator::fill): Set it.
548 (get_color_element): Use MAX_COLOR_VAL.
549 * src/roff/troff/env.cc (environment): Remove `need_eol'.
550 (no_fill): Don't set `env->ignore_next_eol'.
551 (environment::newline): Handle `eol' tag properly.
553 (environment::add_html_tag): Set `env->ignore_next_eol'.
555 * src/roff/troff/env.h (environment): Updated.
557 * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
559 (html_printer::outstanding_eol): New member function.
560 (html_printer::do_title): Use new functions.
561 (html_printer::troff_tag): Test `id_eol_ce'.
563 2001-10-10 Werner LEMBERG <wl@gnu.org>
565 * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
566 files work with -C also.
568 2001-10-05 Werner LEMBERG <wl@gnu.org>
570 * doc/pic.ms: Minor fix.
571 * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
572 as a valid command line switch.
573 * src/devices/grohtml/post-html.cc (main): Ditto.
575 * src/devices/grohtml/grohtml.man: Updated.
576 * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
578 2001-10-04 Werner LEMBERG <wl@gnu.org>
580 Implementing color support in troff, pic, grops, and grohtml. These
581 changes are based on a major patch provided by Gaius Mulley
584 New request: `defcolor', supporting rgb, cmy, cmyk, and gray
585 definitions with both hex values and fractions.
587 New escapes: \m and \M for drawing and background color,
588 respectively. This corresponds to the troff output commands `m'
591 groff and troff accept command line switch `-c' to disable color
592 output (which is automatically disabled in compatibility mode).
594 New scaling indicator `f' for fractions (1f = 65536u).
596 New conditional operator `m' to test for defined colors with `if'
599 New keywords `color' (or `colour', `colored', `coloured'), `outline'
600 (or `outlined'), and `shaded' added to pic.
602 * src/include/color.h: New file.
603 * src/include/driver.h: Include it.
604 * src/include/printer.h: Include color.h.
605 (environment): New members `col' and `fill'.
606 (printer): Remove `adjust_arc_center' member function.
607 * src/include/Makefile.sub: Updated.
609 * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
611 Handle `m' and `DF' troff commands.
612 * src/libs/libgroff/color.cc: New file.
613 * src/libs/libgroff/Makefile.sub: Updated.
615 * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
617 (createImage): Fix computation of `y2'.
619 (buffer::write_file_html): Remove calls to `stop'.
621 * src/preproc/pic/common.h (common_output): New abstract function
622 members `set_color', `reset_color', `get_last_filled', and
624 * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
625 (object_spec): Add members `shaded' and `outlined'.
626 * src/preproc/pic/output.h (output): `command' is now abstract.
627 New function members `set_color', `reset_color', `get_last_filled',
628 and `get_outline_color'.
629 * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
630 `outline[d]', and `shaded'.
631 * src/preproc/pic/object.cc (output::command): Removed.
632 (output::set_location): Moved to output.h.
633 (graphic_object): Add protected members `outline_color' and
635 Add member functions `set_outline_color', `get_outline_color', and
637 (closed_object): Add member function `set_fill_color'.
638 Add member `color_fill'.
639 (graphic_object::print_text): Use `out->set_color' and
641 (box_object::print, ellipse_object::print, circle_object::print,
642 line_object::print, spline_object::print, arc_object::print): Ditto.
643 (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
644 * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
645 `SHADED', making them `%left'.
646 Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
647 * src/preproc/pic/tex.cc (tex_output): New dummy function members
648 `set_color', `reset_color', `get_last_filled', and
650 * src/preproc/pic/troff.cc (simple_output): New abstract function
651 members `set_color', `reset_color', and `get_last_filled'.
652 (simple_output::polygon, simple_output::circle,
653 simple_output::ellipse): Use `get_last_filled'.
654 (troff_output): New members `last_filled' and `last_outlined'.
655 New function members `set_color', `reset_color', `get_last_filled',
656 and `get_outline_color'.
657 (troff_output::finish_picture): Use `reset_color'.
658 (troff_output::set_fill): Test `last_filled'.
659 * src/preproc/pic/pic.man: Updated.
661 * src/roff/groff/groff.cc (main): Implement `-c' option.
662 (synopsis, help): Updated.
663 src/roff/groff/groff.man: Updated.
665 * src/roff/troff/troff.h: Include color.h.
666 (warning_type): Add WARN_COLOR.
667 * src/roff/troff/env.h (environment): New members
668 `{cur,prev}_{glyph,fill}_color'.
669 New member functions `get_{prev_,}{glyph,fill}_color'.
670 * src/roff/troff/env.cc: Initialize and implement them.
671 * src/roff/troff/input.cc: New global variable `disable_color_flag'.
672 Replace `NULL' with `0' everywhere for consistency.
673 (lookup_color, default_black, do_glyph_color, do_fill_color,
674 get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
675 define_color): New functions.
676 (token::next): Implement \M and \m escapes.
677 (do_if_request): Implement `m' operator.
679 (main): Implement `-c' option.
680 (init_markup_requests): Add `defcolor' request.
681 (warning_table): Add `color' warning.
682 * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
684 * src/roff/troff/node.cc (troff_output_file): New members
685 `current_{page,glyph}color'. New member functions `put_hex',
686 `glyph_color', and `fill_color'.
687 (glyph_color_node::*, fill_color_node::*): Implement it.
688 * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
689 (parse_term): Add support for `f'.
690 * src/roff/troff/troff.man: Updated.
692 * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
694 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
695 * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
697 * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
698 (tag_definition): Use `void *' for arg1.
699 (html_text): New member functions `do_color' and `done_color'.
700 Use `void *' for second parameter of `push_para' member function.
701 New `push_para' member function with a single parameter.
702 Use `char *' for parameter of `issue_table_begin' member funtion.
703 New `issue_color_begin' member function.
704 * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
706 (html_text::issue_color_begin): New function.
707 (html_text::issue_table_begin): Use `char *' for parameter.
708 (html_text::start_tag, html_text::shutdown,
709 html_text::check_emit_text): Updated.
710 (html_text::push_para): Use `void *' for second parameter.
711 Add same function with only one parameter.
712 (html_text::do_*): Updated.
713 (html_text::do_color, html_text::done_color): New functions.
714 * src/devices/grohtml/post-html.cc (style): New member `col'.
715 Mew member `style' with 6 parameters.
716 (style::style, style::operator==): Updated.
717 (html_printer::do_font): Use it.
718 (html_printer::draw): Add dummy entry for `F'.
719 (html_printer::set_char): Updated.
720 * src/devices/grohtml/grohtml.man: Updated.
722 * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
723 trailing zeroes removed.
724 (ps_printer): New members `sbuf_color', `fill_color', and
726 Removed member `fill'.
727 New member function `set_color'.
728 (ps_printer::ps_printer, ps_printer::set_char): Updated.
729 (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
730 ps_printer::fill_path, ps_printer::draw): Use `set_color'.
732 * tmac/color-html.tmac, tmac/color.tmac: New files.
733 * tmac/troffrc: Include them.
734 * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
735 * tmac/Makefile.sub: Updated.
737 * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
738 man/groff.man: Updated.
739 * font/devps/prologue.ps: Define FC and CO functions.
741 2001-10-04 Gaius Mulley <gaius@glam.ac.uk>
743 Fix incorrect cropping of images and incorrect handling of special
744 characters. Fix handling of file names in \O.
746 * src/include/geometry.h: New file.
747 * src/libs/libgroff/geometry.cc: New file.
748 * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
750 * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
752 (do_suppress): Updated.
753 * src/roff/troff/node.cc: Include geometry.h.
754 (troff_output_file::flush_tbuf): Fixed parameters to
755 `check_output_limits'.
756 (troff_output_file::check_charinfo): Ditto.
757 (troff_output_file::determine_line_limits): Add support for `Da'
760 * src/devices/grohtml/post-html.cc (str_translate_to_html):
761 Add new parameter `is_special' to decode special characters from
763 (html_printer::do_title, html_printer::do_heading,
764 html_printer::do_indentedparagraph,
765 html_printer::translate_to_html, html_printer::special): Updated.
767 2001-10-03 Werner LEMBERG <wl@gnu.org>
769 * Makefile.sub (DISTCLEANFILES): Add stamp-h.
770 Fix entry for config.h.
771 * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
772 * tmac/troffrc: Translate nonbreakable space character to `\~'.
773 * src/preproc/eqn/eqn.man: Document -d command line option.
775 2001-09-27 Werner LEMBERG <wl@gnu.org>
785 instead of the old code (`.ad .hy' after the table) to suppress
786 incorrect hyphenation for grohtml output.
788 2001-09-22 Werner LEMBERG <wl@gnu.org>
790 * man/groff_font.man, man/groff_out.man: Minor fixes.
792 2001-09-20 Werner LEMBERG <wl@gnu.org>
794 * PROBLEMS: Updated, reordered. Improved EPS section (thanks to
795 Arnold Robbins <arnold@skeeve.com>).
797 2001-09-09 Werner LEMBERG <wl@gnu.org>
799 * configure: Regenerated with autoconf 2.52.
801 * doc/groff.texinfo: Complete revision of indices.
803 2001-09-07 Werner LEMBERG <wl@gnu.org>
805 * doc/Makefile (clean): Updated to delete all indices.
807 2001-09-05 Werner LEMBERG <wl@gnu.org>
809 * src/roff/troff/troff.man: Remove superfluous line.
811 * tmac/s.tmac: Enable all warnings only if no -W or -w option is
812 given on the command line (or rather, if only the default warnings
815 2001-09-03 Werner LEMBERG <wl@gnu.org>
817 * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
818 use .ne for TTY devices.
820 2001-08-31 Werner LEMBERG <wl@gnu.org>
822 * src/roff/troff/token.h, src/roff/troff/input.cc:
823 s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
825 2001-08-28 Werner LEMBERG <wl@gnu.org>
827 * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
828 * src/roff/troff/input.cc (token::next): Return
829 TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
831 (token::description): Updated.
832 (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
833 (token::add_to_node_list, token::process): Ignore
834 TOKEN_TRANSPARENT_ESCAPE.
836 2001-08-27 Werner LEMBERG <wl@gnu.org>
838 * tmac/an-old.tmac: Fix `S' string.
840 2001-08-26 Werner LEMBERG <wl@gnu.org>
842 * src/roff/troff/troff.man: Don't use .ne for TTY devices.
844 2001-08-25 Werner LEMBERG <wl@gnu.org>
846 * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
848 Many other minor fixes.
850 * configure.ac: Add message at end to inform how to compile
852 * configure: Regenerated.
854 2001-08-24 Werner LEMBERG <wl@gnu.org>
856 * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
857 Updated to latest version of libc.
859 2001-08-23 Werner LEMBERG <wl@gnu.org>
861 * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
862 Autoconf 2.50 and newer can handle this.
863 * configure: Regenerated.
865 2001-08-21 Werner LEMBERG <wl@gnu.org>
867 * doc/pic.ms: Fix typo.
868 * src/preproc/tbl/tbl.man: Document case of global options.
870 2001-08-21 Gaius Mulley <gaius@glam.ac.uk>
872 * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
873 handling of `CR' font.
875 2001-08-20 Werner LEMBERG <wl@gnu.org>
879 * src/include/lib.h: Include config.h.
880 * All C files: Ditto (if necessary).
881 * All C++ source and header files: Include lib.h first (if
884 * src/include/config.hin: New file (autogenerated by autoheader).
885 * stamp-h.in: New file.
886 * configure.ac: Updated.
887 * aclocal.m4: Add third parameters to AC_DEFINE macros.
888 (GROFF_ARRAY_DELETE): Simplified.
889 * Makefile.sub (DISTCLEANFILES): Updated.
890 Added targets for remaking config.status, config.hin, config.h,
891 stamp-h.in, and stamp-h.
892 * configure: Regenerated.
894 2001-08-19 Werner LEMBERG <wl@gnu.org>
898 2001-08-18 Sebastian Krahmer <krahmer@suse.de>
900 * src/preproc/pic/pic.y (format_number): Use do_sprintf().
901 (do_sprintf): Use snprintf().
903 2001-08-18 Werner LEMBERG <wl@gnu.org>
905 * src/libs/snprintf/*: Added an snprintf module written by Mark
907 * src/libs/libgroff/Makefile.sub: Updated.
908 * configure.ac: Add test for snprintf().
909 * Makefile.in: Updated.
910 * configure: Regenerated.
912 * src/preproc/html/pre-html.cc (make_message): Reactivate code which
915 2001-08-14 Ruslan Ermilov <ru@FreeBSD.org>
917 * tmac/doc.tmac (Ex): New implementation.
918 * tmac/doc-common, tmac/groff_tmac.man: Updated.
920 2001-08-13 Ruslan Ermilov <ru@FreeBSD.org>
922 * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
924 * tmac/groff_tmac.man: Updated.
926 2001-08-13 Werner LEMBERG <wl@gnu.org>
928 * src/preproc/tbl/tbl.man: Minor documentation update.
930 2001-08-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
932 * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
933 * configure.ac: Add declaration test for gettimeofday().
934 * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
935 * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
936 * configure: Regenerated.
938 2001-08-11 Werner LEMBERG <wl@gnu.org>
940 * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
941 * configure.ac: Add declaration test for strcasecmp().
942 * Makefile.in: Updated.
943 * configure: Regenerated.
944 * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
945 this is necessary because groff's mkstemp.cc is C++.
946 Add declaration conditionally for strcasecmp().
948 2001-08-10 Werner LEMBERG <wl@gnu.org>
950 Integrated pic2graph, contributed by Eric S. Raymond.
952 * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
954 * Makefile.in, NEWS: Updated.
956 * src/preproc/tbl/tbl.man: Revised.
958 2001-08-09 Eric S. Raymond <esr@thyrsus.com>
960 * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
962 2001-08-09 Werner LEMBERG <wl@gnu.org>
964 * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
967 2001-08-08 Paul Eggert <eggert@twinsun.com>
969 * Makefile.sub (configure): Depend on configure.ac, not
971 * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
973 2001-08-07 Werner LEMBERG <wl@gnu.org>
975 * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
978 2001-08-06 Werner LEMBERG <wl@gnu.org>
980 * src/roff/troff/troff.man: Improve documentation of -E option.
982 2001-07-28 Ralph Corderoy <ralph@inputplus.demon.co.uk>
984 * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
987 2001-07-27 Werner LEMBERG <wl@gnu.org>
989 * src/preproc/refer/refer.cc: Undo last change.
990 * src/devices/grohtml/post-html.cc: Ditto.
992 2001-07-26 Werner LEMBERG <wl@gnu.org>
994 * src/preproc/refer/refer.cc: Include `lib.h'.
995 * src/devices/grohtml/post-html.cc: Ditto.
997 2001-07-25 Gaius Mulley <gaius@glam.ac.uk>
999 * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
1000 * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
1001 * Makefile.in: Comment updated.
1002 * configure: Regenerated.
1004 2001-07-25 Werner LEMBERG <wl@gnu.org>
1006 * src/preproc/pic/pic.cc: Removed.
1007 * src/preproc/pic/pic_tab.h: Removed.
1008 * src/preproc/refer/label.cc: Removed.
1010 * doc/Makefile (.ms.html): Don't use a file name extension in
1011 argument to grohtml's -I option.
1012 * Makefile.in (dist): Remove CVS directories.
1013 Call `distfiles' target.
1015 * src/devices/grohtml/grohtml.man: Add information about valid
1016 versions of pnmtopng.
1017 * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
1018 name instead of number.
1020 2001-07-24 Werner LEMBERG <wl@gnu.org>
1022 * doc/groff.texinfo: Minor fixes.
1024 2001-07-21 Gaius Mulley <gaius@glam.ac.uk>
1026 * doc/Makefile (.ms.html): Put image files into a subdirectory.
1029 2001-07-20 Werner LEMBERG <wl@gnu.org>
1031 * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
1032 * src/libs/libgroff/mkstemp.cc: New file.
1033 * src/libs/libgroff/mksdir.cc: New file.
1034 * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
1035 (xtmpfile) [!HAVE_MKSTEMP]: Removed.
1036 * src/libs/libgroff/Makefile.sub: Updated.
1037 * src/include/lib.h: Add mksdir() prototype.
1038 * src/include/posix.h: Define S_IXUSR if not yet defined.
1040 * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
1041 (createAllPages): Use mksdir() instead of current code.
1042 * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
1043 (main): [!HAVE_MKSTEMP]: Removed.
1045 * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
1046 (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
1048 * configure.ac: Add tests for stdint.h, sys/time.h, and
1050 Call new GROFF_xxx macros.
1051 * configure: Regenerated.
1052 * Makefile.in: Comments updated.
1054 2001-07-20 Gaius Mulley <gaius@glam.ac.uk>
1056 * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
1057 instead of current code.
1058 * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
1059 * src/roff/groff/groff.cc (possible_command::insert_args): New
1061 (main): Use it for predriver handling instead of insert_arg().
1063 2001-07-19 Werner LEMBERG <wl@gnu.org>
1065 * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
1068 * src/include/posix.h: Define S_IWUSR if not yet defined.
1070 2001-07-18 Werner LEMBERG <wl@gnu.org>
1074 2001-07-18 Ruslan Ermilov <ru@FreeBSD.org>
1076 * tmac/groff_mdoc.man: Document new -width and -column syntax.
1077 Some other minor fixes.
1078 * tmac/an-old.tmac: Add `AT' and `UC' macros.
1080 2001-07-17 Gaius Mulley <gaius@glam.ac.uk>
1082 Replace call to `troff' with `groff -Z' to make it aware of
1085 * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
1086 (troff_command, command_prefix): Removed.
1087 (alterDeviceTo): Use groff.
1088 (addZ): New function.
1089 (char_buffer::do_html): Use it.
1090 (scanArguments): Use TROFF_COMMAND.
1091 (findPrefix): Removed.
1093 * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
1095 2001-07-17 Eric S. Raymond <esr@snark.thyrsus.com>
1097 * doc/pic.ms: Documentation fixes.
1099 2001-07-17 Werner LEMBERG <wl@gnu.org>
1101 Replace atexit() with global destructor.
1103 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
1104 (xtmpfile_list_init): New global structure to deallocate
1105 xtmpfile_list on exit. Its destructor inherits most code from
1107 (remove_tmp_files): Deleted.
1108 (add_tmp_file): Simplified.
1110 2001-07-16 Werner LEMBERG <wl@gnu.org>
1112 Replace strdup() with strsave().
1114 * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
1115 (set_papersize): Use strsave() and a_delete.
1116 (main): Use strsave().
1117 * src/preproc/html/pre-html.cc (make_message, createAllPages,
1118 removeAllPages): Use strsave() and a_delete.
1120 * configure.ac: Remove test for strdup.
1121 * Makefile.in: Comment updated.
1122 * configure: Regenerated.
1124 2001-07-15 Werner LEMBERG <wl@gnu.org>
1126 * win32-diffs: Updated.
1128 2001-07-14 Werner LEMBERG <wl@gnu.org>
1130 * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
1131 removing the old one.
1132 * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
1134 2001-07-14 Ralph Corderoy <ralph@inputplus.demon.co.uk>
1136 * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
1138 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>
1140 Merge -xwidth into -width. Add -xwidth functionality to -column
1143 * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
1145 (doc-do-Bl-args): Merge -xwidth code with -width. Test whether
1146 string immediately following a leading dot starts with a valid mdoc
1148 Add similar code to the -column branch.
1149 (doc-Bl-usage): Updated.
1150 * groff_mdoc.man: s/-xwidth/-width/.
1152 2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
1154 * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
1155 running into centered or non-formatted text.
1157 2001-07-11 Werner LEMBERG <wl@gnu.org>
1159 Introduce short and long prefixes to have the selection at run-time
1160 whether there is a 8+3 limit for names of temporary files.
1162 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
1163 (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
1164 (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
1166 (temp_init): New global structure to initialize above three
1168 (xtmptemplate): Use two parameters for long and short prefix.
1169 Simplify code use above three variables.
1170 (xtmpfile): Use long and short prefixes as parameters.
1171 * src/include/lib.h: Updated.
1173 * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
1175 ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
1176 (createAllPages, makeTempFiles): Updated.
1178 2001-07-09 Werner LEMBERG <wl@gnu.org>
1180 * REVISION: Increased to 3.
1182 Version 1.17.2 released
1183 =======================
1185 2001-07-07 Werner LEMBERG <wl@gnu.org>
1187 * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
1190 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
1192 * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
1194 * tmac/groff_mdoc.man: Fix synopsis.
1196 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
1198 * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
1199 Restore `doc-Pa-font'.
1201 2001-07-04 Werner LEMBERG <wl@gnu.org>
1203 * src/utils/indxbib/dirnamemax.c: Moved to ...
1204 * src/libs/libgroff/maxfilename.cc: Here.
1205 s/dir_name_max/file_name_max/.
1207 * src/include/lib.h: Add file_name_max.
1208 * src/utils/indxbib/indxbib.cc: Updated.
1209 * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
1212 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
1214 (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
1216 * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
1217 REGION_TEMPLATE): New macros.
1218 (createAllPages, makeTempFiles): Use them.
1219 Include `nonposix.h'.
1220 (html_system): New function.
1221 (createAllPages, createImage): Use it.
1224 * tmac/www.tmac: Fix typos.
1226 2001-07-03 Werner LEMBERG <wl@gnu.org>
1228 * tmac/www.tmac: Disable hyphenation in normal text only if output
1230 (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
1231 * tmac/groff_mwww.man, NEWS: Updated.
1233 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
1235 * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
1238 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
1240 * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
1241 doc-display-ps-stack): Implement font and font size stack for
1244 2001-07-02 Werner LEMBERG <wl@gnu.org>
1246 * REVISION: Increased to 2.
1247 * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
1249 * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
1250 beginning of a line.
1251 * src/groff/grog/grog.sh: Ditto.
1253 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
1255 * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
1258 2001-06-27 Werner LEMBERG <wl@gnu.org>
1260 Fix problems with preprocessor string for `man' program.
1262 * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
1263 Updated/added copyright.
1264 Moved Emacs's local variable to identify nroff mode to the end of
1265 the file; add local variable if missing.
1267 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
1269 * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
1270 AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
1271 * configure: Regenerated.
1273 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
1275 * aclocal.m4 (GROFF_PAGE): Fix page detection code.
1276 * configure: Regenerated.
1278 2001-06-24 Werner LEMBERG <wl@gnu.org>
1280 * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
1282 * doc/pic.ms: Fix typos.
1284 Version 1.17.1 released
1285 =======================
1287 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
1289 * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
1290 * configure: Updated.
1292 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
1294 * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
1296 * src/roff/troff/dic.cc (blank_line): Add html tag.
1298 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
1300 * src/roff/troff/input.cc (do_suppress): Fix typo.
1302 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
1304 Added two new options (-D and -I) to specify image names and a
1305 subdirectory to place the images in.
1307 Change syntax from \\Ox to \\O[x].
1309 * src/devices/grohtml/post-html.cc (main): Add options.
1311 * src/preproc/html/pre-html.cc: Include `stdarg.h'.
1312 Use `NULL' instead of `0' for null string pointers.
1313 (MAX_RETRIES): New macro.
1314 (lengthOfintToStr, intToStr, make_message): New functions.
1315 (makeFileName): Make function static.
1316 Implement -D and -I options.
1317 (checkImageDir): New function.
1318 (write_end_image, write_start_image): Use new syntax of \O.
1319 (createAllPages, removeAllPages): Implement -D and -I options. Use
1321 (createImage): Use make_message().
1322 (addps4html): Add guard for malloc().
1323 (usage, scanArguments): Updated.
1324 (makeTempFiles): Use mkstemp().
1325 (removeTempFiles): Use unlink().
1326 (findPrefix): Add guard for malloc().
1328 * src/roff/troff/input.cc (get_delim_file_name): New function to
1330 (do_suppress): Updated to parse new syntax.
1331 * src/devices/grohtml/grohtml.man: Updated.
1332 * tmac/www.tmac: Updated to new syntax.
1336 2001-06-15 Werner LEMBERG <wl@gnu.org>
1338 * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
1340 * src/devices/grohtml/grohtml.man: Minor improvements.
1342 2001-06-14 Werner LEMBERG <wl@gnu.org>
1344 * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
1346 2001-06-11 Werner LEMBERG <wl@gnu.org>
1348 * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
1349 line to specify preprocessor options -- mandb 2.3.1 only recognizes
1351 * src/preproc/grn/grn.man: Add proper '\" string.
1353 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
1355 * test-groff: Don't use PATH but GROFF_BIN_PATH.
1357 2001-06-08 Werner LEMBERG <wl@gnu.org>
1359 Updated to autoconf 2.50.
1361 * configure.in: Renamed to...
1362 * configure.ac: This.
1363 * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
1364 (GROFF_OS390): Updated.
1365 * configure: Regenerated.
1367 2001-05-18 Werner LEMBERG <wl@gnu.org>
1369 * src/roff/troff/env.c, src/roff/troff/env.h,
1370 src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
1373 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
1375 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
1377 2001-05-16 Werner LEMBERG <wl@gnu.org>
1379 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
1380 less than or equal zero; set it to 1 then.
1381 * src/roff/troff/node.h (node::node): Initialize `last'.
1383 2001-05-08 Werner LEMBERG <wl@gnu.org>
1385 * tmac/an-old.tmac: Make predefined strings work in compatibility
1387 Add troff version guard.
1388 * tmac/doc.tmac: Simplify version guard.
1390 2001-05-07 Werner LEMBERG <wl@gnu.org>
1392 The .ns and .rs requests are now honoured not only in the top-level
1393 but in all diversions (similar to UNIX troff).
1395 This change is based on a patch from Tadziu Hoffmann
1396 <hoffmann@usm.uni-muenchen.de>.
1398 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
1399 (top_level_diversion): Remove `no_space_mode' member.
1400 * src/roff/troff/div.cc (diversion::diversion,
1401 top_level_diversion::top_level_diversion): Updated.
1402 (macro_diversion::output): Reset `no_space_mode'.
1403 (no_space, restore_spacing): Use `curdiv' unconditionally.
1404 (space_request, blank_line): Check `curdiv->no_space_mode'.
1405 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
1406 `curdiv' unconditionally.
1407 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
1410 2001-05-06 Werner LEMBERG <wl@gnu.org>
1412 Added two new requests `de1' and `am1' which are similar to `de' and
1413 `am' with the difference that compatibility mode is saved on entry,
1414 switched off during macro execution, and restored on exit.
1416 * src/roff/troff/input.h: Added two new special characters
1417 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
1418 * src/roff/troff/input.cc (input_iterator): Added two member
1419 functions `save_compatible_flag' and `get_compatible_flag'.
1420 (input_stack): Ditto.
1421 (string_iterator): Ditto. Also add private member
1422 `saved_compatible_flag'.
1423 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
1424 (calling_mode): New enumeration.
1425 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
1426 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
1427 (define_macro, define_indirect_macro, append_macro, ignore): Use
1429 (define_nocomp_macro, append_nocomp_macro): New functions.
1430 (init_input_requests): Updated.
1431 (do_request): Rename local variable `saved_compatible_flag' to
1432 `old_compatible_flag'.
1433 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
1435 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
1436 public and trap-invoked macros. As a consequence, the man macros
1437 work in compatibility mode also.
1439 2001-05-06 Solar Designer <solar@openwall.com>
1441 * Makefile.in: Use $(mandir).
1443 2001-05-06 Alexios Zavras <zvr@pobox.com>
1445 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
1447 2001-05-05 Werner LEMBERG <wl@gnu.org>
1449 Added `.ns' number register: Returns 1 in no-space mode (if in
1450 top-level diversion), 0 otherwise.
1452 * src/roff/troff/div.cc (no_space_mode_reg): New class.
1453 (init_div_requests): Updated.
1454 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
1457 2001-05-04 Werner LEMBERG <wl@gnu.org>
1459 * src/roff/nroff/nroff.man: Improved documentation (especially
1462 2001-05-02 Werner LEMBERG <wl@gnu.org>
1464 Added `brp' request: This is \p as a request.
1466 * src/roff/troff/env.cc (environment::do_break): Add parameter
1468 (do_break_request): New function (was `break_request').
1469 (break_request): Calls `do_break_request'.
1470 (break_spread_request): New; calls `do_break_request'.
1471 (init_env_requests): Updated.
1472 * src/roff/troff/env.h: Updated.
1473 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
1475 * REVISION: Increased to 1.
1476 * win32-diffs: Updated.
1478 2001-05-01 Werner LEMBERG <wl@gnu.org>
1480 * tmac/an-old.tmac: Fix minor compatibility mode issue.
1481 * tmac/troffrc-end: Make it really work in compatibility mode.
1483 2001-04-27 Werner LEMBERG <wl@gnu.org>
1485 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
1488 2001-04-22 Werner LEMBERG <wl@gnu.org>
1490 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
1491 latest versions from glibc CVS archive.
1493 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
1494 <c.zeelenberg@hccnet.nl>.
1496 2001-04-21 Werner LEMBERG <wl@gnu.org>
1498 * configure.in: Move check for mkstemp() to...
1499 * aclocal.m4 (GROFF_MKSTEMP): This new function.
1500 * configure: Regenerated.
1502 * src/include/groff-getopt.h: Don't use variable names in
1505 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
1506 * src/devices/grohtml/Makefile.sub,
1507 src/devices/grohtml/post-html.cc: Updated.
1509 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
1511 * configure.in: Add special check for mkstemp().
1512 * src/libs/libgroff/tmpfile.cc: Use it.
1513 * src/utils/indxbib/indxbib.cc: Ditto.
1514 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
1515 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
1518 2001-04-20 Bruce Lilly <blilly@erols.com>
1520 `Version_string' as C++ object was not visible to linker from C
1522 Add `const' to `Version_string'.
1524 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
1525 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
1526 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
1527 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
1528 (scanArguments), src/preproc/refer/refer.cc (main),
1529 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
1530 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
1531 (main), src/devices/grohtml/post-html.cc (main),
1532 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
1533 (main), src/utils/hpftodit/hpftodit.cc (main),
1534 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
1535 (main), src/utils/lkbib/lkbib.cc (main),
1536 src/utils/addftinfo/addftinfo.cc (main): Implement it.
1538 * src/roff/groff/pipeline.c: Add _UWIN.
1539 * src/include/nonposix.h: Ditto.
1541 2001-04-20 Werner LEMBERG <wl@gnu.org>
1543 * src/include/lib.h: Use HAVE_STRERROR.
1544 * src/roff/groff/pipeline.c: Ditto.
1545 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
1546 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
1547 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
1548 * win32-diffs: Updated.
1549 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
1551 2001-04-19 Werner LEMBERG <wl@gnu.org>
1553 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
1554 instead of hardwired `"troff"'.
1555 (char_buffer::read_file): Remove unused variables.
1556 (char_buffer::write_file_troff): Ditto.
1557 (char_buffer::write_file_html): Ditto.
1558 (generateImages): Ditto.
1560 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
1562 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
1564 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
1565 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
1566 index_search_item::search1): Ditto.
1567 * src/roff/troff/node.h (width_list): Reorder members.
1568 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
1569 (lookup_warning): Ditto.
1570 (prepend_string): Commented out.
1571 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
1572 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
1573 * src/preproc/tbl/main.cc (process_format): Ditto.
1574 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
1576 * src/preproc/pic/pic.cc: Updated.
1577 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
1578 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
1579 * src/preproc/refer/command.cc (execute_command): Ditto.
1580 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
1581 * src/preproc/refer/token.cc (lookup_token): Ditto.
1582 * src/preproc/soelim/soelim.cc: Ditto.
1583 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
1584 (isHexDigit): Commented out.
1585 (pushBackBuffer::isString): Remove unused variable.
1586 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
1588 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
1589 resource_manager::read_resource_arg, read_one_of, parse_extensions):
1591 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
1592 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
1593 lookup_paper_size): Ditto.
1594 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
1595 (text_glob, element_list): Reorder members.
1596 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
1598 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
1599 return value to `void'.
1600 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
1602 * src/devices/grohtml/html.h (simple_output::check_newline,
1603 simple_output::space_or_newline, simple_output::enable_newlines):
1605 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
1607 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
1608 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
1609 output_ligatures, output_charset, read_map): Ditto.
1610 * src/utils/lookbib/lookbib.cc (main): Ditto.
1611 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
1612 (do_file): Fix typo (`=' -> `==').
1613 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
1614 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
1616 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
1618 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
1619 Fix usage of GROFF_BIN_PATH.
1620 * src/roff/nroff/nroff.man: Updated.
1622 2001-04-18 Werner LEMBERG <wl@gnu.org>
1624 * NEWS: Fixing typos.
1627 Version 1.17 released
1628 =====================
1630 2001-04-17 Werner LEMBERG <wl@gnu.org>
1632 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
1633 directory, not in $(srcdir).
1635 2001-04-16 Werner LEMBERG <wl@gnu.org>
1637 * doc/groff.texinfo: More info on conditionals.
1639 2001-04-15 Werner LEMBERG <wl@gnu.org>
1641 * doc/groff.texinfo: Added some info about groff internals.
1643 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
1644 about missing special character only if the name is non-null.
1646 2001-04-14 Werner LEMBERG <wl@gnu.org>
1648 Removing the grohtml-old device driver which is now obsolete.
1650 * src/devices/grohtml-old/*: Removed.
1651 * font/devhtml-old/*: Removed.
1652 * src/libgroff/htmlindicate.cc (graphic_start, graphic_end): Remove
1654 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
1655 * test-groff (PATH): Updated.
1656 * tmac/Makefile.sub (NORMALFILES): Updated.
1657 * tmac/an-old.tmac: Remove special code for html-old device.
1658 Replace `html-or-html-old' register with `an-html'.
1659 * tmac/eqnrc: Updated.
1660 * tmac/html-old.tmac: Removed.
1661 * tmac/troffrc, tmac/troffrc-end: Updated.
1662 * tmac/www.tmac: Remove special code for html-old device.
1663 Replace `html-or-html-old' register with `www-html'.
1665 * src/libgroff/tmpfile.cc (remove_tmp_files),
1666 src/libgroff/htmlindicate.cc (graphic_end), include/htmlindicate.h,
1667 src/preproc/grn/*.cc, src/roff/groff/env.{cc,h}: Remove `void'
1668 parameter if used as a single argument for consistency with rest of
1671 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
1673 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
1675 * src/roff/troff/troff.man: Fixing typos.
1677 2001-04-13 Werner LEMBERG <wl@gnu.org>
1679 * doc/pic.ms: Fixing many font switches.
1680 * doc/groff.texinfo: Fixes, additions.
1681 * MORE.STUFF: Updated.
1683 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
1685 * src/devices/grohtml/grohtml.man: Updated manual page regarding
1687 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
1689 (removeTempFiles): New function to tidy up temporary files.
1690 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
1691 Many fixes to do with the new inline suppress node and image regions
1693 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
1694 (generate_img_src): New function.
1695 (html_printer::do_auto_image): Utilizes it.
1696 (do_heading, do_title): Include inline images within their contents.
1697 (html_printer::begin_page): Tidied up comments that are issued to
1698 the html output file.
1699 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
1701 (text_glob::is_br): New method used by do_heading.
1702 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
1703 equivalent diversion.
1704 * src/include/html-strings.h: Altered image tags to reflect the
1706 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
1708 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
1709 it is already inside a pic image. Only emit tags if the argument
1710 `-Tps:html' is present.
1711 * src/preproc/tbl/main.cc: Changes to reflect additional
1712 `html_end_suppress' parameter.
1713 * src/roff/troff/env.cc: Only emit eol tag if a node has been
1714 emitted since the last eol tag was written.
1715 * src/roff/troff/env.h: New boolean `emitted_node'.
1716 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
1717 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
1718 * src/roff/troff/node.cc (check_charinfo): New method.
1719 (troff_output_file::determine_line_limits): Alterations to limit
1721 * tmac/www.tmac: Changes to reflect new suppress nodes.
1723 2001-04-12 Bruno Haible <haible@clisp.cons.org>
1725 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
1726 Escape the html_glyph in the buffer.
1727 (str_translate_to_html): Output the unescaped escaped_char.
1728 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
1729 `frame=void', not `frame=none'. Add `border=0'.
1731 2001-04-12 Werner LEMBERG <wl@gnu.org>
1733 * PROBLEMS: Add some words on how to avoid wrapper macros.
1735 2001-04-11 Blake McBride <blake@florida-software.com>
1737 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
1739 2001-04-11 Werner LEMBERG <wl@gnu.org>
1741 * font/devlbp/Makefile.sub (CLEANADD): Set it.
1742 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
1743 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
1744 * Makefile.sub (DISTCLEANFILES): Here.
1746 * libs/libgroff/new.cc: Include `nonposix.h'.
1747 * win32-diffs: Updated.
1749 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
1751 Added skeleton macro for defunct macros.
1753 Updated documentation.
1755 When inside displays, an empty input line warning should be
1756 suppressed. If another macro call is put inside a display,
1757 all subsequent empty lines found in that display caused a
1758 warning to be emitted.
1760 * tmac/doc.tmac (doc-defunct-macro): New macro.
1761 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
1762 (doc-restore-global-vars): Fixed typo.
1763 (doc-empty-line): Check the `doc-display-depth' register to
1764 determine whether we are inside display or not.
1766 * tmac/doc-common: Removed `Or' and `Sf' registers.
1767 Moved obsolete `Ds' macro to doc.tmac.
1769 * tmac/groff_mdoc.man: Bump document date.
1770 Document `.Vt' under ``Variable Types''.
1771 Removed documentation for obsolete `.Or' macro.
1773 2001-04-10 Werner LEMBERG <wl@gnu.org>
1776 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
1778 2001-04-10 Bruno Haible <haible@clisp.cons.org>
1780 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
1781 (usage): Add stream argument. Don't exit.
1782 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
1783 Write --version output to stdout, not stderr.
1784 (usage): Add stream argument. Don't exit.
1785 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
1786 (usage): Add stream argument. Don't exit.
1787 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
1789 (usage): Add stream argument. Don't exit.
1790 (main): Write --help output to stdout, not stderr.
1791 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
1792 (usage): Add stream argument. Don't exit.
1793 * src/devices/grops/ps.cc (main): Accept --help and --version.
1794 (usage): Add stream argument. Don't exit.
1795 * src/devices/grotty/tty.cc (main): Accept --help and --version.
1796 (usage): Add stream argument. Don't exit.
1797 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
1798 (main): Accept --help and --version.
1799 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
1800 (main): Accept --help and --version.
1801 * src/preproc/html/pre-html.cc (usage): Add stream argument.
1802 (scanArguments): Accept --help and --version.
1803 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
1804 (main): Accept --help and --version.
1805 * src/preproc/refer/refer.cc (main): Accept --help and --version.
1806 (usage): Add stream argument. Don't exit.
1807 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
1809 (main): Accept --help and --version.
1810 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
1811 (main): Accept --help and --version.
1812 * src/roff/groff/groff.cc (main): Accept --help and --version.
1813 (synopsis): Add stream argument.
1814 (help): Write --help output to stdout, not stderr.
1815 (usage): Add stream argument. Don't exit.
1816 * src/roff/grog/grog.pl: Accept --help and --version.
1818 * src/roff/grog/grog.sh: Accept --help and --version.
1819 * src/roff/nroff/nroff.sh: Accept --help and --version.
1820 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
1821 (usage): Add stream argument. Don't exit.
1822 (main): Accept --help and --version.
1823 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
1824 (usage): New function with stream argument, doesn't exit.
1825 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
1826 (usage): New function with stream argument, doesn't exit.
1827 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
1828 (usage): Add stream argument. Don't exit.
1829 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
1830 (main): Accept --help and --version.
1831 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
1833 (main): Accept --help and --version.
1834 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
1835 (main): Accept --help and --version.
1836 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
1837 (usage): Add stream argument. Don't exit.
1839 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
1841 Fix indentation in SYNOPSIS.
1843 Updated to include changes of latest BSD mdoc version (basically,
1844 the only change is that `.Fn' and `.Fc' put a final semicolon after
1845 a function declaration in the SYNOPSIS section).
1847 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
1848 (doc-in-synopsis-section): New variable. Updated all related
1850 (doc-indent-synopsis-active): New register.
1851 (Nd, Fn, Fo): Use it.
1852 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
1853 `.Cd' with long argument line produces indented wrapped lines.
1854 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
1855 undesirable line break to be output.
1856 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
1858 (Fn, Fc): Add final `;' to output.
1859 (doc-save-global-vars, doc-restore-global-vars): Updated.
1860 * tmac/doc-common: Remove `Ex' register.
1862 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
1865 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
1867 * tmac/doc.tmac (Cd): Simplify code.
1868 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
1870 2001-04-06 Werner LEMBERG <wl@gnu.org>
1872 Implement continuous underlining for nroff mode. To do that, a new
1873 request in the ditroff language has been added: `x u N' (N is 0
1876 \X and \Y are now transparent to end-of-sentence recognition.
1878 * src/include/printer.h (printer): Add `type' parameter to `special'
1880 * src/libs/libdriver/printer.cc (printer::special): Updated.
1881 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
1883 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
1884 specials of type `p'.
1885 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
1886 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
1887 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
1888 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
1889 (glyph::order): New method.
1890 (tty_printer::add_char): Use it.
1891 (tty_printer::special): New method.
1892 (tty_printer::end_page): Implement it.
1894 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
1895 * src/roff/troff/node.cc (special_node::special_node): Add parameter
1896 to set `no_init_string'.
1897 (special_node::tprint_start): Use it.
1898 (special_node::same, special_node::copy): Updated.
1899 (special_node::ends_sentence): New method.
1900 (troff_output_file::start_special): Add parameter to include
1901 inititialization of special conditionally.
1903 * src/roff/troff/env.h (environment): New member `underline_spaces'.
1904 * src/roff/troff/env.cc (do_underline_special): New function.
1905 (environment::set_font): Use it.
1906 (do_underline): Use it. This was `underline()'.
1907 (underline): Call `do_underline()'.
1908 (continuous_underline): New function which calls `do_underline()'.
1909 (environment::newline): Use `do_underline_special()'.
1910 (init_env_requests): Updated.
1912 * NEWS, man/troff_out.man: Updated.
1914 2001-04-06 Bruno Haible <haible@clisp.cons.org>
1916 * font/devutf8/R.proto: Fix code of 'shc'.
1918 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
1920 Many fixes. Diag lists can now be nested also; additionally,
1921 `-compact' and `-offset' are supported.
1923 * tmac/doc.tmac (doc-have-indent): Replaced with ...
1924 (doc-list-have-indent-stackXXX): A new register stack.
1925 (doc-have-diag-list): Removed.
1926 (Bl): Use `doc-list-have-indent-stackXXX'.
1928 (doc-diag-list): Use `doc-compact-list-stackXXX'.
1929 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
1930 (doc-set-vertical-and-indent): Ditto.
1931 (doc-next-list-depth): Removed.
1932 (doc-increment-list-stack): Updated.
1933 (doc-decrement-list-stack): Use `doc-list-depth' instead of
1934 `doc-next-list-depth'.
1935 (doc-end-list, doc-end-column-list): Don't use
1936 `doc-increment-list-stack'.
1937 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
1938 (doc-save-global-vars, doc-restore-global-vars): Updated.
1939 * tmac/doc-common: Updated.
1940 * tmac/groff_mdoc.man: Updated.
1943 2001-04-02 Werner LEMBERG <wl@gnu.org>
1945 * src/devices/grotty/grotty.man: Fix grammatical error.
1947 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
1949 Remove .Ld from mdoc package; replace it with special handling of
1952 * tmac/doc-common: Remove `Ld' register.
1953 Uncomment `doc-volume-ds-*' strings.
1954 Remove `doc-operating-system-default'.
1956 * tmac/doc-syms (Ld): Removed.
1957 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
1961 * tmac/groff_mdoc.man: Many fixes and updates.
1963 2001-03-29 Werner LEMBERG <wl@gnu.org>
1965 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
1966 Bond <tkb@tkb.mpl.com>.
1967 * tmac/www.tmac: Save compatibility mode.
1969 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
1971 * tmac/groff_mdoc.man: Many fixes.
1973 2001-03-28 Werner LEMBERG <wl@gnu.org>
1975 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
1978 2001-03-27 Werner LEMBERG <wl@gnu.org>
1980 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
1981 diversion. This fixes overlong tags.
1983 2001-03-26 Werner LEMBERG <wl@gnu.org>
1985 * doc/groff.texinfo: Fixed and improved documentation of fonts.
1986 * tmac/doc-syms: Fix error messages.
1987 * tmac/an-old.tmac: Remove incorrect double backslashes.
1989 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
1991 * tmac/Makefile.sub: Strip mdoc.local also
1992 * tmac/strip.sed: Fixed.
1994 2001-03-24 Werner LEMBERG <wl@gnu.org>
1996 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
1997 selecting the font size.
1998 * tmac/groff_mdoc.man, NEWS: Document it.
2000 2001-03-23 Werner LEMBERG <wl@gnu.org>
2002 * src/roff/troff/div.cc (save_vertical_space): Add default argument
2004 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
2005 argument to restore previous font family.
2006 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
2008 * doc/groff.texinfo: More fixes and additions (mainly for font
2009 manipulating commands).
2011 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
2012 * tmac/groff_mdoc.man: This. The quick reference has been removed.
2013 * tmac/Makefile.sub, NEWS: Updated.
2015 2001-03-23 Werner LEMBERG <wl@gnu.org>
2017 Replaced mdoc implementation. The new version is `state of the
2018 art', using almost all new features of groff 1.17 -- it won't run
2019 with older versions.
2021 * tmac/doc.tmac: Completely rewritten.
2022 * tmac/doc-common: Ditto.
2023 * tmac/doc-nroff: Ditto.
2024 * tmac/doc-ditroff: Ditto.
2025 * tmac/doc-syms: Ditto.
2026 * tmac/mdoc.local: New file.
2027 * tmac/groff_mdoc.samples.man: Replaced with ...
2028 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
2029 * tmac/strip.sed: Updated.
2030 * tmac/Makefile.sub: Updated.
2033 * tmac/groff_man.man: Add `man.local' to the FILES section.
2035 2001-03-22 Werner LEMBERG <wl@gnu.org>
2037 * doc/groff.texinfo: Added many @noindent.
2038 Replaced @end_Example -> @endExample.
2039 Added info whether registers are r/o.
2040 Many other additions and fixes.
2042 2001-03-21 Werner LEMBERG <wl@gnu.org>
2044 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
2045 in makeinfo of texinfo 4.0) to be used in @Def* macros.
2046 Improved @Def* macros: Now the exact syntax of request, register,
2047 and escapes is shown.
2048 Added macros for parentheses and brackets to be used in @Def*.
2049 Many fixes and improvements of the documentation.
2051 2001-03-20 Werner LEMBERG <wl@gnu.org>
2053 * doc/groff.texinfo: Added new index: `st' (for strings).
2054 Added macros @Defstr(x).
2055 Added macro @Example (adding @group).
2056 Other minor improvements.
2058 2001-03-19 Werner LEMBERG <wl@gnu.org>
2060 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
2061 `rq' for requests. `fn' is no longer used.
2062 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
2065 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
2066 number with name of man page.
2068 2001-03-19 Larry Kollar <kollar@alltel.net>
2070 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
2073 2001-03-19 Werner LEMBERG <wl@gnu.org>
2075 * man/groff_font.man: Document `prepro', `postpro', and `print'.
2076 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
2077 * src/devices/grohtml/grohtml.man: Fixing typos.
2079 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
2081 * tmac/s.tmac (@IP): Pass `.ip' html tag.
2082 * tmac/groff_mwww.man: Remove .LINE macro
2083 * tmac/www.tmac (LINE): Add `.ti'.
2085 * src/devices/grohtml/post-html.cc (html_printer): New member
2087 (html_printer::emit_raw): Use it.
2088 (html_printer::do_linelength): Ditto.
2089 (html_printer::do_pageoffset): Ditto.
2090 (html_printer::do_indentation): Ditto.
2091 (html_printer::do_tempindent): Ditto.
2092 (html_printer::do_break): Ditto.
2093 (html_printer::begin_page): Ditto.
2094 (html_printer::do_indentedparagraph): New function.
2095 (html_printer::troff_tag): Handle `.ip'.
2096 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
2097 Add `<td width=...>' handling.
2098 (html_text::do_table): Add parameter.
2099 (html_text::do_indent): Updated.
2100 * src/devices/groohtml/html-text.h: Updated.
2102 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
2104 Introduced simple html tables to implement indentation.
2106 * src/devices/grohtml/html.h (word, word_list): New structures.
2107 (simple_output): Use it.
2108 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
2109 (html_printer): Improve indentation handling.
2110 (html_printer::emit_raw): Set `in_table' element. Handle
2112 (html_printer::write_header): Move conditional downwards.
2113 Don't allow whitespace in tags.
2114 (html_printer::do_linelength): Handle line length and indentation
2116 (html_printer::do_pageoffset): Handle indentation conditionally.
2117 (html_printer::do_indentation): Ditto.
2118 (html_printer::do_tempindent): New function member.
2119 (html_printer::do_fill): Take care of indentation.
2120 (html_printer::do_flush): Finish table.
2121 (html_printer::do_links): Ditto.
2122 (html_printer::do_break): New function for handling `.br' and `.ti'.
2123 (html_printer::troff_tag): Use it.
2125 (html_printer::flush_globs): Fix.
2126 (html_printer::flush_page): Finish table.
2127 (html_printer::html_printer): Fix error message. Set up
2129 (html_printer::add_to_sbuf): Remove special handling of character
2131 (to_unicode): Remove `stop()'.
2132 (html_printer::write_title): Cleanup.
2133 (html_printer::begin_page): Use `put_string()'. Handle indentation.
2134 (html_printer::~html_printer): Flush text and end the line.
2136 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
2137 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
2139 (html_text::start_tag): Disable newlines.
2140 (html_text::table_is_void): New function.
2141 (html_text::issue_table_begin): Ditto.
2142 (html_text::issue_table_end): Ditto.
2143 (html_text::push_para): Better table handling.
2144 (html_text::do_indent): New function.
2145 (html_text::do_table): Ditto.
2146 (html_text::done_table): Ditto.
2147 (html_text::do_tt): Handle PRE_TAG.
2148 (html_text::is_in_table): New function.
2149 (html_text::check_emit_text): Handle tables.
2150 (html_text::do_emittext): Use `nl()'.
2151 (html_text::do_para): Handle table.
2152 (html_text::remove_def): New function.
2153 * src/devices/grohtml/output.cc (word, word_list): Implement
2155 (simple_output::end_line): Flush last word.
2156 (simple_output::simple_comment): Ditto.
2157 (simple_output::begin_comment): Recoded.
2158 (simple_output::end_comment): Ditto.
2159 (simple_output::comment_arg): Removed.
2160 (simple_output::check_newline): Improve test and flush last word.
2161 (simple_output::space_or_newline): Improved.
2162 (simple_output::write_newline): Replaced with...
2163 (simple_output::nl): This.
2164 (simple_output::put_raw_char): Flush last word.
2165 (simple_output::check_space): Removed.
2166 (simple_output::put_translated_string): Ditto.
2167 (simple_output::put_string): Simplified.
2168 (simple_output::put_number): Updated.
2169 (simple_output::put_float): Ditto.
2170 (simple_output::put_symbol): Removed.
2171 (simple_output::enable_newlines): Add `check_newline()'.
2172 (simple_output::flush_last_word): New function.
2174 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
2175 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
2177 * tmac/s.tmac (@PP, @IP): Add html conditional code.
2178 * tmac/an-old.tmac (TP): Ditto.
2180 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
2182 * mdate.sh: Make it POSIX compliant.
2184 2001-03-09 Werner LEMBERG <wl@gnu.org>
2186 Added the `return' request to end a macro immediately. It simply
2187 pops iterators from the input stack until a macro iterator is found.
2189 * src/roff/troff/input.cc (input_iterator::is_macro,
2190 macro_iterator::is_macro): New member.
2191 (input_return_boundary): New class to signal an immediate return
2193 (input_stack::add_return_boundary, input_stack::is_return_boundary):
2195 (input_stack::clear): Use it.
2196 (input_stack::pop_macro): New function.
2197 (while_request): Use `is_return_boundary()'.
2198 (return_macro_request): New function.
2199 (init_input_requests): Use it.
2201 * src/roff/troff/TODO: Updated.
2202 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2204 2001-03-08 Werner LEMBERG <wl@gnu.org>
2206 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
2209 2001-03-07 Werner LEMBERG <wl@gnu.org>
2211 Make `\B' more rigid.
2213 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
2215 (get_number_rigidly): New function.
2216 * src/roff/troff/input.cc (do_expr_test): Use it.
2217 * src/roff/troff/token.h: Updated.
2219 * src/roff/troff/request.h: Fix typo (init_html_request ->
2220 init_markup_request).
2222 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
2224 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
2225 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
2226 are now `.begin', `.end', `.image'.
2228 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
2229 (html_printer::add_to_sbuf): Changing type of `code' parameter.
2230 Use add_char_to_sbuf().
2231 (to_unicode): New function.
2232 (char_translate_to_html): Changing type of `ch' parameter.
2234 (html_printer::~html_printer): Comment out doctype string.
2235 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
2236 instead of `.html-end'.
2237 (write_start_image): Use `.begin' and `.image' instead of
2238 `.html-begin' and `.html-image'.
2239 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
2240 (html_begin): Renamed to ...
2242 (html_end): Renamed to ...
2244 (html_image): Renamed to ...
2246 (init_html_requests): Renamed to ...
2247 (init_markup_requests): This.
2248 * tmac/www.tmac: Updated.
2250 2001-02-28 Bram <bram@avontuur.org>
2252 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
2255 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
2257 * doc/meref.me: Fixing some typos.
2259 2001-02-16 Werner LEMBERG <wl@gnu.org>
2261 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
2262 method. Return `HYPHEN_MIDDLE' if it was `\:'.
2263 * src/roff/troff/node.h: Updated.
2265 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
2267 * tmac/groff_tmac.man: Fix typo.
2269 2001-02-16 Werner LEMBERG <wl@gnu.org>
2271 Fixing a bug which prevented proper end-of-sentence recognition
2272 between an `unformatted' box and the following text. As a
2273 consequence, vertical line distances are no longer preserved in
2274 boxes after a call to `.unformat' -- because boxes aren't
2275 line-oriented (contrary to diversions), this doesn't make sense
2278 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
2280 (vertical_size_node::set_unformat_flag): New method.
2281 * src/roff/troff/node.hh: Updated.
2282 * src/roff/troff/input.cc (word_space_node::reread,
2283 hmotion_node::reread): Reset `unformat' flag after usage.
2284 (unformat_macro): Append only if `set_unformat_flag()' returns
2286 * src/roff/troff/troff.man: Updated.
2288 2001-02-15 Werner LEMBERG <wl@gnu.org>
2290 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
2291 documentation of `asciify' and `unformat' requests.
2293 2001-02-13 Werner LEMBERG <wl@gnu.org>
2295 Redesigned the `unformat' request. It is no longer connected with
2296 `asciify' but rather uses new `reread()' methods if the `unformat'
2297 flag is set. Additionally, the handling of space characters after
2298 unformatting has been fixed so that they retain their width.
2300 * src/roff/troff/node.h (width_list): New structure to store
2301 original widths of spaces.
2302 (node): Added `unformat' member.
2303 Replaced `num_spaces' variable with `orig_width' list.
2304 * src/roff/troff/node.cc (*node::asciify,
2305 asciify_reverse_node_list): Removed `unformat_only' flag and related
2307 (word_space_node::asciify, word_space_node::word_space_node): Use
2309 (word_space_node::~word_space_node): New destructor.
2310 (word_space_node::copy): Updated to handle `orig_width'.
2311 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
2312 (*node::merge_space): Update `orig_width' list if necessary.
2313 (*node::set_unformat_flag): New methods to set the `unformat' flag.
2314 * src/roff/troff/enc.cc (environment::space_newline): Use
2316 (environment::space): Added method to handle space width and
2317 sentence space width as parameters. Use `width_list'.
2318 (environment::make_tab_node): Updated.
2319 * src/roff/troff/env.h: Updated.
2320 * src/roff/troff/input.cc (word_space_node::reread,
2321 unbreakable_space_node::reread, hmotion_node::reread): New methods
2322 to handle nodes specially if `unformat' flag is set.
2323 (do_asciify_macro): Renamed back to ...
2324 (asciify_macro): This.
2325 (unformat_macro): New implementation to simply set the `unformat'
2328 * MORE.STUFF: Added more info about deroff.
2330 2001-02-08 Werner LEMBERG <wl@gnu.org>
2332 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
2333 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
2334 and `add_self()' methods to avoid hyphenation. For example, the
2335 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
2336 soft hyphen after `foo'. Now the hyphen list is correctly
2337 `foo<ignore><ignore>bar'.
2339 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
2341 * tmac/groff_tmac.man: Fix `BIR' macro.
2343 2001-02-04 Werner LEMBERG <wl@gnu.org>
2345 A new escape sequence `\:', inserting a zero-width break point.
2347 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
2348 * src/roff/troff/input.cc (get_copy, token::next, asciify):
2350 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
2352 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
2353 and `asciify()' methods.
2354 * src/roff/troff/node.cc (space_node::space_node): Updated.
2355 (space_node::asciify): Handle `was_escape_colon'.
2356 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2358 Handle `\~' similar to other comparable requests.
2360 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
2362 (token::next): Move creation of an unbreakable_space_node to...
2363 (token::add_to_node_list): Here.
2365 Fix a bug which sometimes prevented hyphenation of words connected
2366 with `\~' or `\ ' (and other escape sequences handled as
2367 TOKEN_NODE). This also fixes a hyphenation problem with boxes
2368 (after a call to the `unformat' request).
2370 * src/roff/troff/env.h (environment::possibly_break_line,
2371 environment::hyphenate_line): Introducing `start_here' parameter.
2372 * src/roff/troff/env.cc (environment::space_newline,
2373 environment::space): Use it.
2374 (environment::possibly_break_line, environment::hyphenate_line):
2376 * src/roff/troff/input.cc (process_input_stack): Use it.
2377 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
2378 space_char_hmotion_node, overstrike_node): Add
2379 `get_hyphenation_type()' method.
2380 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
2381 if `unformat_only' is active.
2383 2001-01-30 Werner LEMBERG <wl@gnu.org>
2385 Implemented new read-only number register `.linetabs' which
2386 returns 1 if in line-tabs mode, 0 otherwise.
2388 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
2389 * src/roff/troff/env.cc (get_line_tabs): New function.
2390 (init_env_requests): Use it.
2391 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2393 * VERSION, REVISION: Changing to 1.17.0.
2395 2001-01-28 Werner LEMBERG <wl@gnu.org>
2397 Fixed a bug which prevented hyphenation of words which are finished
2400 * src/roff/troff/token.h (token): Add enum type
2401 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
2402 * src/roff/troff/input.cc (token::next, token::description,
2403 get_line_arg, token::add_to_node_list, token::process): Use it.
2405 2001-01-27 Werner LEMBERG <wl@gnu.org>
2407 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
2408 * src/roff/troff/div.cc (do_divert): Use it.
2410 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
2412 2001-01-25 Werner LEMBERG <wl@gnu.org>
2414 Adding the `linetabs' request. If set, tab distances are not
2415 computed relative to the input line but relative to the output line.
2417 * src/roff/troff/env.h (environment): New member `line_tabs'.
2418 * src/roff/troff/env.cc (line_tabs_request): Implement request.
2419 (environment::environment, environment::copy): Updated.
2420 (environment::distance_to_next_tab): Use `line_tabs'.
2421 (init_env_requests): Register request.
2422 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
2425 2001-01-24 Werner LEMBERG <wl@gnu.org>
2427 Introducing a new read-only register `.int' which is set to a
2428 positive value if the last output line is interrupted (i.e., if it
2431 * src/roff/troff/env.cc (init_env_requests): Add it.
2432 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2434 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
2436 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
2437 * src/preproc/html/pre-html.cc (findPrefix): New function which
2438 generates the troff executable name via the system prefix.
2439 * src/preproc/eqn/main.cc: Modified warning message.
2441 2001-01-23 Werner LEMBERG <wl@gnu.org>
2443 troff's `box' and `boxa' requests didn't preserve temporary
2446 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
2447 `saved_target_text_length' members.
2448 * src/roff/troff/div.cc (do_divert): Use them.
2450 Tabs (but not yet leaders and fields) are now handled correctly by
2453 * node.h (hmotion_node): Add field `was_tab'.
2454 * env.cc (environment::make_tab_node): Set it.
2455 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
2457 Added new request `unformat' which will, contrary to `asciify',
2458 preserve font information after unformatting (i.e., only nodes
2459 dealing with horizontal space are converted back to input
2462 * input.cc (asciify_macro): Renamed to ...
2463 (do_asciify_macro): this, having a new parameter `unformat_only'.
2464 (asciify_macro, unformat_macro): New; using do_asciify_macro.
2465 (init_input_requests): Added `unformat'.
2466 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
2467 parameter to control asciification process.
2468 * node.h (*_node::asciify): Ditto.
2469 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2471 2001-01-20 Werner LEMBERG <wl@gnu.org>
2473 * doc/groff.texinfo: Minor improvement of `.in' documentation.
2475 2001-01-18 Werner LEMBERG <wl@gnu.org>
2477 * tmac/ps.tmac: Remove call of psold.tmac.
2478 * tmac/psold.tmac: Comment updated.
2479 * tmac/psnew.tmac: Removed since no longer needed.
2480 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
2482 * font/devutf8/R.proto: Adding `shc' glyph.
2483 * font/devutf8/NOTES: Updated.
2485 * test-groff: Updated.
2487 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
2489 First cut of the new html device driver. Changes to pre-html and
2490 the new grohtml are too numerous to be documented here.
2492 Stuff related to `html' has been renamed to `html-old' and `html2'
2493 stuff has been renamed to `html' (including directories). The new
2494 html device driver is therefore invoked as `-Thtml'.
2496 Added new `\O' escape to suppress output (needed by html driver).
2498 Added functions and code to pass info about input-level commands
2499 (`.in', `.fl', etc.) to html driver.
2501 Three new functions (.html-begin, .html-end, and .html-image) for
2502 better html handling: `html-begin' will execute the remaining line
2503 if at the outermost nesting level, increasing an internal counter.
2504 `html-end' does the same but decreases the internal counter.
2505 `html_image' puts its arguments into a special node (suppress_node)
2506 to define an image region.
2508 The `output' request has been removed.
2510 * tmac/html-tags.tmac: Removed.
2511 * tmac/arkup.tmac: Updated and renamed to ...
2512 * tmac/www.tmac: New file.
2513 * tmac/markup.tmac Updated and renamed to ...
2514 * tmac/mwww.tmac: New file.
2515 * tmac/Makefile.sub: Updated.
2516 * tmac/an-old.tmac: Updated.
2517 * tmac/eqnrc: Updated.
2518 * tmac/groff_man.man
2519 * tmac/groff_markup.man: Updated and renamed to ...
2520 * tmac/groff_mwww.man: New file.
2521 * tmac/groff_tmac.man: Updated.
2522 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
2523 * tmac/html.tmac: Updated and renamed from html2.tmac.
2524 * tmac/pspic.tmac: Updated html support.
2525 * tmac/s.tmac: Added html output support.
2526 * tmac/troffrc, tmac/troffrc-end: Updated.
2528 * Makefile.in, doc/Makefile: Updated.
2529 * doc/groff.texinfo: Added info about new `\O' escape.
2530 * doc/homepage.ms: Use `MAILTO' macro.
2532 * font/devhtml/DESC.proto: Add `C' font.
2533 * font/devhtml/Makefile.sub: Updated.
2534 * font/devhtml/R.proto: Minor fixes.
2535 * font/devhtml-old/Makefile.sub: Updated.
2537 * src/devices/grohtml-old/Makefile.sub: Updated.
2539 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
2541 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
2542 graphic_start): Add `inline' parameter. Update.
2543 (html_end_suppress, graphic_end): Update.
2545 * src/include/html-strings.h: New file.
2546 * src/include/htmlindicate.h: Comments updated.
2547 * src/include/printer.h: Updated.
2549 * src/preproc/eqn/main.cc (do_file, main): Updated.
2550 * src/preproc/pic/troff.cc (troff_output::start_picture,
2551 troff_output::finish_picture): Updated.
2552 * src/preproc/tbl/main.cc (process_input_file): Updated.
2554 * src/roff/groff/groff.cc (main): Updated.
2555 Pass device arguments to predrivers also.
2556 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
2557 * src/roff/troff/env.h (environment): Updated.
2558 New elements `need_eol' and `ignore_next_eol' (for html output).
2559 * src/roff/troff/env.cc (environment::environment): Add initializers
2560 for `need_eol' and `ignore_next_eol'.
2561 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
2563 (point_size, fill, no_fill, center, right_justify, line_length,
2564 indent, temporary_indent, break_request, handle_tab): Use
2566 (set_tabs): Use `add_html_tag_tabs()'.
2567 (environment::add_html_tag): Updated.
2568 (environment::do_break): Updated.
2569 * src/roff/troff/div.cc (space_request, flush_output): Use
2570 `environment::add_html_tag()'.
2571 * src/roff/troff/input.cc: Updated.
2572 New variable `html_level' to indicate nested `html-begin' requests.
2573 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
2574 (non_interpreted_char_node, token_node, non_interpreted_node): Add
2575 `force_tprint()' method.
2576 (token::next): Handle `\O'.
2577 (do_suppress): Implement it.
2578 (html_begin, html_end, html_image): New functions.
2579 (init_output_requests): Renamed to ...
2580 (init_html_requests): this.
2582 (macro::append_str, macro::append_unsigned, macro::append_int): New
2584 New variable `output_low_mark_miny' to limit minimal value of y.
2585 (reset_output_registers): Use it.
2586 (output_request): Removed.
2587 (get_output_registers): New function.
2588 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
2589 (*_node): Added `force_tprint()' if necessary.
2590 (special_node): New elements `tf' and `get_tfont()'.
2591 (suppress_node): New class.
2592 * src/roff/troff/node.cc:
2593 New global variables `image_no' and `suppress_start_page'.
2594 (real_output_file): New method `is_on()'.
2595 (troff_output_file): New method `start_special(tfont)'.
2596 (troff_output_file::really_print_line): Use `tprint' conditionally.
2597 (real_output_file::print_line): Updated.
2598 (real_output_file::on): Updated.
2599 (*_node): Added `force_tprint()'.
2600 (special_node::special_node): Initializer updated.
2601 (special_node::same, special_node::copy, special_node::tprint_start):
2603 (get_reg_int, get_reg_str): New functions.
2604 (suppress_node::*): New methods.
2605 New global variables last_position, last_image_filename;
2606 (min): New inline function.
2607 * src/roff/troff/reg.h, src/roff/troff/request.h,
2608 src/roff/troff/troff.h: Updated.
2610 2001-01-13 Werner LEMBERG <wl@gnu.org>
2612 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
2613 documentation of `asciify' request.
2615 2001-01-12 Werner LEMBERG <wl@gnu.org>
2617 * src/roff/troff/input.cc: Move definition of special characters
2618 like `ESCAPE_TILDE' to ...
2619 * src/roff/troff/input.h: New file.
2620 * src/roff/troff/Makefile.sub (HDRS): Add it.
2622 Extending the .asciify request to `unformat' space characters also.
2624 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
2625 to count input space characters.
2626 Update constructors to take care of it.
2627 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
2628 `ESCAPE_SPACE' instead of normal space.
2629 (word_space_node::asciify): New method.
2630 (unbreakable_space_node::asciify): New method.
2631 (word_space_node::merge_space): New method.
2632 * src/roff/troff/env.cc (environment::space_newline,
2633 environment::space): Add code to initialize `num_spaces' (using the
2634 constructor of `word_space_node').
2635 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
2638 2001-01-09 Werner LEMBERG <wl@gnu.org>
2640 * man/groff_char.man: Use table header traps only conditionally.
2642 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
2644 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
2646 2001-01-08 Werner LEMBERG <wl@gnu.org>
2648 Introducing the `box' and `boxa' requests which are similar to
2649 `di' resp. `da' but omitting a partially filled line (which is
2650 restored after ending the diversion).
2652 * src/roff/troff/div.h (diversion): Add elements to save partially
2654 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
2655 partially filled line.
2656 (divert, divert_append): Updated.
2657 (box, box_append): New functions.
2658 (init_div_requests): Use them.
2659 * src/roff/troff/env.h (environment): do_divert() is now a friend.
2660 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2662 * doc/groff.texinfo: Fix documentation of `lf' request.
2664 2000-12-25 Werner LEMBERG <wl@gnu.org>
2666 * src/roff/troff/troff.man, NEWS: Document `writem' request.
2668 2000-12-21 Werner LEMBERG <wl@gnu.org>
2670 Ignore `ss' request if in compatibility mode.
2672 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
2673 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
2674 * src/roff/troff/env.cc (space_size): Use it.
2676 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
2677 `ss' request in nroff mode.
2679 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
2682 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
2684 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
2686 2000-12-13 Werner LEMBERG <wl@gnu.org>
2688 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
2689 * src/preproc/eqn/neqn.man: Small fixes and additions.
2691 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
2693 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
2696 * src/preproc/eqn/neqn.man: New file.
2698 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
2701 * tmac/e.tmac: Add `T&' macro.
2702 Fix `indent cannot be negative' warning.
2703 * tmac/s.tmac: Fix `indent cannot be negative' warning.
2705 2000-12-07 Werner LEMBERG <wl@gnu.org>
2707 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
2709 2000-12-06 Werner LEMBERG <wl@gnu.org>
2711 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
2714 * MORE.STUFF: Added info about deroff for djgpp.
2716 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
2717 documentation of -rcR switch.
2719 2000-12-03 Werner LEMBERG <wl@gnu.org>
2721 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
2722 if -rcR=1 (which is now the default in nroff mode), a single, very
2723 long page is created instead of multiple pages: All `ne' and `wh'
2724 requests are put into conditionals; a new macro `an-end' is added to
2725 be called with `em'.
2727 Some other minor cleanups.
2729 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
2731 2000-12-02 Werner LEMBERG <wl@gnu.org>
2733 Fixing a bug which prevented hyphenation in words followed
2734 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
2736 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
2737 Adding possibly_break_line().
2738 * src/roff/troff/env.h (environment): Make possibly_break_line()
2741 Make `\~' usable in .tr request.
2743 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
2744 (token): Add stretchable_space().
2745 * src/roff/troff/input.cc (token::next, token::delimiter,
2746 token::description, process_input_stack, do_translate,
2747 add_to_node_list, token::process): Use it.
2748 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
2749 for adjusting the space.
2750 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
2751 for stretchable space.
2752 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
2753 (make_node): Add code for stretchable space.
2754 * src/roff/troff/env.cc (environment::add_char): Use it.
2755 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
2756 (get_copy, token::next, transparent_translate, asciify): Use it.
2758 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
2759 doc/groff.texinfo: Updated.
2760 * man/groff.man: Small reorderings.
2762 2000-11-23 Werner LEMBERG <wl@gnu.org>
2765 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
2767 * src/roff/troff/input.cc (main): Add `config_macro_path' and
2768 `safer_macro_path' to -M option.
2769 * src/roff/troff/troff.man: Fixes.
2771 2000-11-22 Werner LEMBERG <wl@gnu.org>
2773 Use safer path (except for config files) if -U isn't specified. Add
2774 a special macro path (without home and current directory) for config
2775 files. Add home directory to unsafe path for consistency. Don't
2776 include the home directory in the font path.
2778 * src/lib/libgroff/macropath.cc: Add `config_macro_path', change
2780 * src/include/macropath.h: Add `config_macrp_path'.
2781 * src/lib/libgroff/fontfile.cc: Fix font path.
2782 * src/roff/troff/input.cc (process_startup_file): Use
2783 `config_macro_path'.
2784 (main): Select unsafe path if -U is given.
2786 * src/preproc/eqn/main.cc (main): Fixing search path for
2788 * src/preproc/eqn/eqn.man: Updated.
2790 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
2793 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
2794 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
2795 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
2796 src/devices/grotty/grotty.man: Updated.
2798 * Makefile.in: Fix comments.
2800 2000-11-17 Werner LEMBERG <wl@gnu.org>
2802 * tmac/safer.tmac: Empty file added (again) for compatibility
2804 * tmac/Makefile.sub: Updated.
2806 2000-11-16 Werner LEMBERG <wl@gnu.org>
2808 * src/devices/grodvi/dvi.cc (main),
2809 src/devices/grohtml2/post-html.cc (main),
2810 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
2811 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
2812 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
2813 (main), src/preproc/html2/pre-html.cc (main),
2814 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
2815 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
2816 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
2817 (main), src/utils/hpftodit/hpftodit.cc (main),
2818 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
2819 (main), src/utils/lookbib/lookbib.cc (main),
2820 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
2821 (main): Use stdout for -v.
2822 * src/roff/groff/groff.cc (run_commands),
2823 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
2824 to make direct printing to stdout possible.
2825 * src/roff/groff/pipeline.h: Updated.
2827 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
2828 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
2829 * src/utils/afmtodit/afmtodit.man: Updated.
2831 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
2832 (version): New function.
2834 * src/utils/addftinfo/addftinfo.man: Updated.
2836 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
2837 Fixing copyright dates.
2839 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
2842 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
2845 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
2847 2000-11-15 Werner LEMBERG <wl@gnu.org>
2849 In all programs, make -v return immediately with exit status 0 to
2850 be compliant with the GNU standard.
2852 * src/devices/grodvi/dvi.cc (main),
2853 src/devices/grohtml2/post-html.cc (main),
2854 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
2855 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
2856 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
2857 (main), src/preproc/html2/pre-html.cc (main),
2858 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
2859 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
2860 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
2861 (main): Implement it.
2864 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
2865 and postprocessors to the -v option.
2867 * src/roff/grog/grog.pl: Implement -v.
2868 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
2869 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
2871 * src/roff/nroff/nroff.sh: Implement -v.
2872 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
2873 * src/roff/nroff/nroff.man: Updated.
2875 * src/preproc/eqn/main.cc (main): Fix comment typo.
2877 * MORE.STUFF: Added info about djgpp port of grap.
2879 2000-11-14 Werner LEMBERG <wl@gnu.org>
2881 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
2882 mode (or rather, implemented non-compatibility mode).
2883 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
2885 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
2886 replacing it -- we don't find gxditview otherwise.
2887 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
2889 * src/preproc/pic/depend: Removed. Unnecessary.
2891 Implemented dummy keyword `solid' in pic for compatibility with
2894 * lex.cc (lookup_keyword): Added `solid'.
2895 * pic.y: Added SOLID with dummy rule.
2896 * pic.cc, pic_tab.h: Regenerated.
2897 * doc/pic.ms: Updated.
2899 2000-11-13 Werner LEMBERG <wl@gnu.org>
2901 For security reasons, don't use the current directory but the home
2902 directory while searching and scanning troffrc and troffrc-end.
2903 Similarly, replace the current directory with the home directory
2906 * Makefile.in (fontpath, tmacpath): Remove current directory.
2908 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
2909 two parameters `add_home' and `add_current'.
2910 (search_path::~search_path, search_path::command_line_dir,
2911 search_path::open_file): Remove tests for `dirs' being zero.
2912 * src/include/searchpath.h: Adjust.
2913 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
2915 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
2917 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
2918 * src/roff/troff/input.cc: Use `mac_path', initialized with
2920 (process_startup_file): Set `mac_path' to `safer_macro_path'.
2921 * src/roff/troff/env.cc: Use `mac_path'.
2923 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
2925 * NEWS, man/roff.man, src/roff/troff/troff.man,
2926 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
2929 2000-11-12 Werner LEMBERG <wl@gnu.org>
2931 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
2933 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
2934 * configure.in: Fix typo in comment.
2935 * configure: Regenerated.
2937 * src/libgroff/*, src/include/*, src/roff/troff/*: Fixing copyright
2940 2000-11-08 Werner LEMBERG <wl@gnu.org>
2942 Add system tmac directory (/usr/local/lib/groff/site-tmac).
2944 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
2945 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
2948 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
2949 * tmac/Makefile.sub (install_data): Create
2950 $(systemtmacdir) and $(localtmacdir).
2951 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
2952 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
2953 NEWS, doc/groff.texinfo: Updated and minor fixes.
2955 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
2956 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
2957 $(systemtmacdir) since the wrapper files are platform-dependent.
2959 2000-11-01 Werner LEMBERG <wl@gnu.org>
2961 * doc/groff.texinfo: Fix typo.
2963 2000-10-26 Werner LEMBERG <wl@gnu.org>
2965 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
2966 tmac.doc.old -> doc-old.tmac
2967 tmac.an.old -> an-old.tmac
2969 * tmac/tmac.*: Moved to ...
2970 * tmac/*.tmac: this.
2971 * tmac/man.local: Fix comment.
2972 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
2973 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
2974 Added some `FILES' sections. More use of @...@ directives. Other
2976 * arch/djgpp/README, font/devutf8/NOTES: Updated.
2977 * doc/homepage.ms, doc/groff.texinfo: Updated.
2978 * man/groff.man, man/roff.man: Updated.
2979 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
2980 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
2981 src/devices/grotty/grotty.man: Updated.
2982 * src/preproc/pic/pic.man: Updated.
2983 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
2984 instead of -mdoc.old.
2985 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
2986 * src/roff/nroff/nroff.man: Updated.
2989 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
2991 * tmac/mm.diff: Removed -- it has no use now since the mm package
2994 * tmac/*: Removed trailing spaces.
2996 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
2997 the tmac subdirectory also).
2999 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
3000 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
3001 stuff since it is no longer needed.
3003 * README, PROBLEMS: Updated.
3005 2000-10-25 Werner LEMBERG <wl@gnu.org>
3007 Invert current behaviour: Search first FOOBAR.tmac, then
3010 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
3011 (open_mac_file, macro_source): Implement it.
3012 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
3013 doc/groff.texinfo, NEWS: Document it.
3015 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
3016 Small documentation improvements.
3018 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
3021 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
3023 2000-10-24 Werner LEMBERG <wl@gnu.org>
3025 Add local tmac directory (groff/site-tmac).
3027 * Makefile.in: Add $(localtmacdir).
3028 (uninstall_dirs): Add $(localtmacdir).
3029 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
3030 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
3031 in $(localtmacdir). Create $(localtmacdir).
3032 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
3033 Updated and minor fixes.
3035 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
3037 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
3039 2000-10-23 Werner LEMBERG <wl@gnu.org>
3041 Move hyphen.us to tmac directory.
3043 * src/roff/troff/hyphen.us: Removed.
3044 * src/tmac/hyphen.us: Added.
3045 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
3047 Change installation structure for data files from .../groff/... to
3048 .../groff/<version><revision>/... to be conform with other GNU
3051 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
3052 doc/Makefile: Implement it.
3053 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
3054 * configure: Updated.
3055 * arch/djgpp/README, font/devutf8/NOTES: Use it.
3056 * NEWS: Document it.
3057 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
3058 @MACRODIR@ instead of hard-coded directories.
3060 2000-10-22 Werner LEMBERG <wl@gnu.org>
3062 Implement $GROFF_BIN_PATH environment variable (which defaults to
3063 $bindir) used for child programs of groff and similar wrappers.
3065 * gendefs.sh: Improve documentation.
3066 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
3067 src/preproc/eqn/Makefile.sub (neqn),
3068 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
3069 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
3071 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
3072 $GROFF_PATH__ (the latter for communication with troff).
3073 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
3075 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
3076 doc/groff.texinfo: Document it.
3078 * doc/groff.texinfo: Improve documentation of troff's -a option.
3080 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
3082 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
3083 non-intrusive eol marker.
3084 (troff_output_file::determine_line_limits): New function.
3085 (troff_output_file::draw): Use it.
3086 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
3087 output_pending_lines() instead of output_line().
3088 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
3089 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
3090 createImage): Small fixes.
3092 2000-10-14 Werner LEMBERG <wl@gnu.org>
3094 Replace tmac.safer with a real secure solution.
3096 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
3097 system_request, pipe_output): Disable requests if in safer mode.
3098 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
3099 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
3100 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
3101 doc/groff.texinfo, src/roff/groff/groff.man,
3102 src/roff/troff/troff.man, arch/djgpp/README: Updated.
3104 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
3105 (resource_manager::output_prolog): Replace setenv() with putenv().
3107 2000-10-09 Werner LEMBERG <wl@gnu.org>
3109 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
3110 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
3111 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
3112 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
3113 compilation errors with some compilers. It seems that this code
3114 is no longer necessary -- if yes, it is easy to add some #ifdef's
3115 for that particular old-fashioned compiler.
3117 * MORE.STUFF: Added info about Meta-tbl.
3119 * doc/groff.texinfo: Added more info about `.if "..."..."'.
3121 2000-10-07 Werner LEMBERG <wl@gnu.org>
3123 Adding a new escape sequence \B'...': If the string between
3124 the delimiters is a valid numeric expression, return the character
3125 `1', and `0' otherwise. This is an analogon to \A.
3127 * src/roff/troff/input.cc (do_expr_test): Implement it.
3128 (token::next): Use it.
3129 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
3131 * tmac/tmac.trace: Made independent from escape character.
3133 2000-10-06 Werner LEMBERG <wl@gnu.org>
3135 Adding a new request .dei: define indirect. The first and second
3136 parameter of .dei are taken from string registers instead directly;
3137 this very special request is needed to make tmac.trace independent
3138 from the escape character (which might even be disabled).
3140 * src/roff/troff/input.cc (do_define_macro): Implement it.
3141 (define_macro_indirect): New function.
3142 (init_input_requests): Use it.
3144 Adding two requests .ecs and .ecr: Save and restore the escape
3145 character. These two requests are needed to make tmac.trace
3146 independent from the escape character (which might even be
3149 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
3151 (init_input_requests): Use it.
3153 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
3155 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
3157 Adding a new option -P and new environment variable GROPS_PROLOGUE
3158 to grops, selecting a different prologue file (minor modifications
3161 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
3162 src/devices/grops/ps.cc (main): Implement it.
3163 * src/devices/grops/grops.man, NEWS: Document it.
3165 2000-09-22 Werner LEMBERG <wl@gnu.org>
3167 * INSTALL: Add info about selecting paper format.
3169 2000-09-21 Werner LEMBERG <wl@gnu.org>
3171 * src/roff/troff/input.cc (main): Fixing compiler warning.
3172 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
3173 strings.h from the former to the latter.
3174 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
3175 stuff from the former to the latter.
3177 2000-09-11 Werner LEMBERG <wl@gnu.org>
3179 Implementing two new requests .tm1 and .tmc: The former is similar
3180 to .tm but can output leading spaces; its syntax is similar to
3181 defining a string, i.e., a `"' can be used to mark the beginning of
3182 the string to be written to stderr: `.tm1 " test'. The latter is
3183 similar to .tm1 but doesn't write out a final newline character.
3185 * src/roff/troff/input.cc (terminal1, terminal_continue,
3186 do_terminal): New functions.
3187 (init_input_requests): Use them.
3188 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
3190 2000-09-09 Werner LEMBERG <wl@gnu.org>
3192 * tmac/groff_mdoc.samples.man: Small fixes.
3194 2000-09-08 Werner LEMBERG <wl@gnu.org>
3196 * tmac/groff_mdoc.man: Fixing typo.
3198 2000-09-02 Werner LEMBERG <wl@gnu.org>
3200 Implementing a .nop request which does nothing.
3202 * src/roff/troff/input.cc (nop_request): New function.
3203 (init_input_requests): Use it.
3204 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
3206 2000-09-01 Werner LEMBERG <wl@gnu.org>
3208 * doc/groff.texinfo: Added some comments.
3210 2000-08-30 Werner LEMBERG <wl@gnu.org>
3212 * src/roff/troff/TODO: Updated.
3214 2000-08-25 Werner LEMBERG <wl@gnu.org>
3216 * doc/groff.texinfo: Fix comment how to compile the DVI file.
3218 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
3220 * font/devps/generate/Makefile (SHELL): Define explicitly to
3221 "/bin/sh", for non-Unix platforms.
3222 (extraclean): Use a more portable "" quoting instead of a
3223 backslash (which doesn't work on DOS/Windows).
3225 * font/devlj4/generate/Makefile (extraclean): Ditto.
3227 * font/devdvi/generate/Makefile (extraclean): Ditto.
3229 2000-08-25 Werner LEMBERG <wl@gnu.org>
3231 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
3232 src/roff/troff/troff.man: Document Eli's latest changes.
3234 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
3236 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
3237 macro file names of the form NAME.tmac as well as tmac.NAME.
3239 2000-08-25 Werner LEMBERG <wl@gnu.org>
3241 * src/include/posix.h: Remove definition of FILENAME_MAX.
3243 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
3244 `sys_fatal' and `stop' function().
3246 * test-groff: Updated.
3248 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
3250 Added the new troff command .output <arg> to suppress output (while
3251 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
3252 registers (for passing the output dimensions to the output device).
3254 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
3256 * src/roff/troff/node.h, src/roff/troff/node.cc
3257 (troff_output_file::really_print_line,
3258 ascii_output_file::really_print_line,
3259 supress_output_file::really_print_line): Use `width' parameter.
3260 (troff_output_file::really_on, troff_output_file::really_off,
3261 output_file::on, output_file::off, real_output_file::on,
3262 real_output_file::off, real_output_file::really_on,
3263 real_output_file::really_off): New functions.
3264 (real_output_file:public output_file): New variable `output_on'.
3265 (real_output_file::begin_page, real_output_file::copy_file,
3266 real_output_file::transparent_char, real_output_file::print_line):
3268 (real_output_file::print_line): Use check_output_limits.
3269 * src/roff/troff/reg.h, src/roff/troff/request.h,
3270 src/roff/troff/input.cc (assign_registers): New function to remove
3272 (do_ps_file): Use it.
3273 (check_output_limits, reset_output_registers, output_request,
3274 init_output_requests): New functions.
3275 (init_input_requests): Updated.
3277 Added new grohtml2 device and html2 preprocessor (coding
3278 not yet finished) which will eventually replace grohtml.
3280 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
3282 * src/include/htmlindicate.h, src/include/htmlindicate
3283 (html_begin_suppress, html_end_suppress): New functions.
3284 * src/preproc/tbl/main.cc: Use it.
3285 * src/roff/groff/groff.cc: Add support for html2 device (which will
3286 automatically invoke the html2 preprocessor).
3287 * src/roff/troff/input.cc (is_html2): New variable.
3288 * src/roff/troff/troff.h, src/roff/troff/env.h,
3289 src/roff/troff/env.cc (environment::add_html_tag): New function
3291 (environment::do_break): Use it.
3292 * font/devhtml2/*: New files.
3293 * src/devices/grohtml2: New device.
3294 * src/preproc/html2: New preprocessor.
3295 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
3297 2000-08-23 Werner LEMBERG <wl@gnu.org>
3299 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
3301 2000-08-22 Werner LEMBERG <wl@gnu.org>
3303 * src/include/lib.h: Provide a fix for IRIX to not include
3306 2000-08-18 Werner LEMBERG <wl@gnu.org>
3308 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
3309 since some non-GNU sed programs can't handle null regexps.
3310 * configure, src/preproc/eqn/Makefile.sub,
3311 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
3313 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
3314 bug (string.h and strings.h are both needed according to latest
3317 * MORE.STUFF: Added info about unroff and troffcvt.
3319 2000-08-08 Werner LEMBERG <wl@gnu.org>
3321 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
3324 * tmac/tmac.man.old: Remove unused number register.
3326 * tmac.doc: Minor documentation fix.
3328 2000-08-07 Paul Eggert <eggert@twinsun.com>
3330 * src/roff/groff/pipeline.c (is_system_shell):
3331 Fix typo: "monocased_shell" no longer exists.
3333 2000-08-07 Paul Eggert <eggert@twinsun.com>
3335 Remove FILENAME_MAX limits.
3337 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
3338 that the argument length is less than FILENAME_MAX.
3339 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
3340 Use struct hack to allocate and free file name.
3341 (struct xtmpfile_list): fname is now part of the structure,
3342 not a pointer to another string.
3344 2000-08-07 Tom Schmidt <tschmidt@micron.com>
3346 * src/include/posix.h: Add a default value for FILENAME_MAX.
3348 2000-08-06 Paul Eggert <eggert@twinsun.com>
3350 Add support for new BSD-style man pages (with ".Dd" instead of
3351 ".TH"), so that "groff -man" understands both styles, even
3352 when running "groff -man" on a host whose system man page
3353 macros don't support ".Dd".
3355 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
3356 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
3357 in case the system man macros don't define Dd or TH.
3359 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
3360 * tmac/tmac.an: New one-line file.
3361 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
3363 2000-08-06 Werner LEMBERG <wl@gnu.org>
3365 * src/roff/troff/troff.man: Fixing typos.
3367 Version 1.16.1 released
3368 =======================
3370 2000-07-31 Werner LEMBERG <wl@gnu.org>
3372 Preparing release 1.16.1.
3374 * REVISION: Revision number set to 1.
3375 * MORE.STUFF: Added info about port to DOS.
3376 * NEWS, win32-diffs: Updated.
3378 * src/include/nonposix.h: Remove first line -- this file is used
3381 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
3384 2000-07-30 Werner LEMBERG <wl@gnu.org>
3386 * doc/texinfo.tex: Update to latest version.
3388 2000-06-28 Paul Eggert <eggert@twinsun.com>
3390 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
3391 commands that fail. Don't assume that "export a=b" is valid shell
3392 syntax. This is needed for Solaris 2.5.1.
3394 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
3395 comment about missing Solaris headers.
3397 * PROBLEMS: Add section about problems with Sun Make and VPATH.
3399 2000-06-25 Werner LEMBERG <wl@gnu.org>
3401 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
3404 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
3406 * win32-diffs: Updated.
3407 * README.WIN32: Added CRs to make all Windows editors happy.
3409 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
3410 src/roff/groff/pipeline.c).
3412 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
3414 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
3415 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
3417 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
3419 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
3420 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
3422 (main): Support non-Posix systems with several different styles of
3423 slash characters in file names.
3425 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
3426 (main) [SET_BINARY]: Switch stdin into binary mode.
3428 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
3429 (main): Support file names with several possible slash-type
3430 characters, as given by DIR_SEPS[] in nonposix.h.
3431 (main) [__MSDOS__]: If renaming the temporary index file fails
3432 because it has more than one dot in its trunk, replace the dot
3433 with an underscore and try again.
3434 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
3436 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
3438 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
3439 (File::File): Open the input file in binary mode. Strip CR
3440 characters from each CR-LF pair.
3441 (xbasename): Support file names with several possible slash-type
3442 characters, as given by DIR_SEPS[] in nonposix.h.
3444 * src/include/Makefile.sub (HDRS): Add nonposix.h.
3446 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
3447 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
3448 [!_POSIX_VERSION]: Define for traditional Unix systems.
3449 (real_output_file::real_output_file): Remove the MSVC-specific
3450 call to popen, use instead POPEN_WT, appropriately defined on
3451 nonposix.h. #include nonposix.h.
3452 (real_output_file::~real_output_file): Remove the MSVC-specific
3453 call to pclose, a suitable macro is now defined on nonposix.h.
3454 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
3455 and WEXITSTATUS instead of assuming traditional Unix
3456 interpretation of the status returned by pclose.
3458 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
3459 call to popen, use POPEN_RT instead (appropriately defined on
3460 nonposix.h). #include nonposix.h.
3461 (ps_bbox_request): Open the PostScript file in binary mode.
3462 Close the file after processing it.
3463 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
3466 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
3467 A version of run_pipeline that doesn't use `fork'.
3468 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
3469 (system_shell_name, system_shell_dash_c)
3470 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
3471 the ugliness of testing DOS/Windows file names for equality, and
3472 support both stock shells and ports of Unix shells.
3474 * src/roff/groff/groff.cc: #include nonposix.h.
3475 (BSHELL): Definition moved to nonposix.h.
3476 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
3477 instead of a literal "-c".
3478 (xbasename): Support file names with several possible slash-type
3479 characters, as given by DIR_SEPS[] in nonposix.h.
3480 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
3483 * src/preproc/soelim/soelim.cc: #include nonposix.h.
3484 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
3486 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
3489 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
3491 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
3494 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
3496 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
3497 P_tmpdir is defined, use it instead of the literal "/tmp".
3498 (remove_tmp_files, add_tmp_file): New functions.
3499 (xtmpfile): Record temporary files and register an atexit function
3500 to delete them explicitly, instead of relying on the OS to do
3501 that, which doesn't work on non-Unix systems.
3503 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
3504 (search_path::search_path): Use PATH_SEP instead of a literal
3506 (search_path::command_line_dir): Ditto.
3507 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
3508 to support non-Posix systems.
3510 * src/libc/libbib/search.cc: #include nonposix.h.
3511 (search_list::add_file): Open the file in binary mode.
3513 * src/libs/libbib/linear.cc: #include nonposix.h.
3514 (file_buffer::load): Remove \r characters preceding \n from the
3517 * src/libs/libbib/index.cc: #include nonposix.h.
3518 (make_index_search_item): Open index_filename in O_BINARY mode.
3519 (index_search_item_iterator::get_tag): Ditto. Remove \r
3520 characters before \n characters.
3521 (index_search_item::check_files): Open files in binary mode.
3522 (index_search_item::munge_filename): Support DOS-style file names
3523 with backslashes and drive letters, use IS_ABSOLUTE.
3525 * src/devices/grops/ps.cc: #include nonposix.h.
3526 (main) [SET_BINARY]: Switch stdout to binary mode.
3528 * src/devices/grolj4/lj4.cc: #include nonposix.h.
3529 (main) [SET_BINARY]: Switch stdout to binary mode.
3531 * src/devices/grolbp/lbp.cc: #include nonposix.h
3532 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
3534 * src/devices/grodvi/dvi.cc: #include nonposix.h.
3535 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
3537 (main) [SET_BINARY]: Switch stdout to binary mode.
3538 [_MSC_VER]: Remove an explicit call to _setmode.
3540 * src/include/nonposix.h: New file.
3542 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
3543 operation when building with DJGPP.
3544 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
3545 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
3548 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
3550 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
3551 etc. can include a semi-colon on DOS/Windows.
3552 (depend.temp): Use depend1.temp instead of depend.temp1, to
3553 prevent files from overerwiting each other on 8+3 filesystems.
3555 * gendef.sh (t): Change definition to work with DOS/Windows.
3557 doc/groff.texinfo: Apart of some typo corrections, I also changed
3558 some index entris, to make them more non-ambiguous, and also put
3559 @ignore around some parts that are not yet written, to allow the
3560 Info output be readable.
3562 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
3564 Replaced specific checks for function declarations with a generic
3565 routine taken from GNU bfd.
3567 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
3568 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
3569 * configure.in: Use it.
3570 * src/devices/grolbp/lbp.cc, src/include/lib.h,
3571 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
3572 src/roff/groff/groff.cc: Use it.
3573 * Makefile.in, configure: Updated.
3575 2000-06-07 Paco Andres Verdu <pandres@dragonet.es>
3577 * src/devides/grolbp/lbp.h: Removed unused variables.
3579 2000-05-31 Keith Thompson <kst@sdsc.edu>
3581 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
3584 2000-05-31 Werner LEMBERG <wl@gnu.org>
3586 * aclocal.m4 (GROFF_SRAND): New function to test the return value
3587 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
3588 * configure.in: Use it.
3589 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
3590 * configure, Makefile.in: Updated.
3592 * configure.in: Add test for strncasecmp().
3593 * src/include/lib.h: Use it.
3595 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
3597 * src/preproc/grn/Makefile.sub: Add MLIB.
3599 2000-05-29 Nix <nix@esperi.demon.co.uk>
3601 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
3603 2000-05-29 Werner LEMBERG <wl@gnu.org>
3605 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
3607 * PROBLEMS: Small update.
3609 * src/devices/grolbp/lbp.cc: Various small fixes.
3611 2000-05-28 Keith Thompson <kst@sdsc.edu>
3613 * src/roff/nroff/nroff.sh: Fix main loop syntax.
3615 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
3617 2000-05-25 Werner LEMBERG <wl@gnu.org>
3619 * man/roff.man: Removed unused macro.
3621 2000-05-24 Werner LEMBERG <wl@gnu.org>
3623 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
3624 This is needed e.g. if you do
3625 `make distclean; ./configure; make dist'.
3627 Version 1.16 released
3628 =====================
3630 2000-05-23 Werner LEMBERG <wl@gnu.org>
3632 Adding font CWI (constant width italic) to devdvi.
3634 * font/devdvi/CWI: New file.
3635 * font/devdvi/generate/Makefile: Add generating rule.
3636 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
3637 tmac/tmac.dvi: Use it.
3638 * NEWS: Announce it.
3640 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
3641 * font/devlj4/generate/Makefile: Cosmetic changes only.
3643 * man/groff.man: Removed most of the redundant description of
3644 special characters (which is in groff_char.man). Added font
3645 translation CB->CR for devdvi. Other minor fixes.
3647 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
3648 (registered) symbols.
3650 2000-05-22 Werner LEMBERG <wl@gnu.org>
3652 * doc/Makefile: Added rule for creating info files.
3654 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
3656 * font/devdvi/generate/Makefile: Fixed dependencies.
3658 * font/devps/*: Regenerated. Heavy changes for Bookman and
3659 NewCentury Schoolbook!
3660 * font/devps/generate/afmname: Will now run with GNU awk.
3661 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
3662 * font/devps/generate/Makefile: Cosmetic changes only.
3664 2000-05-21 Werner LEMBERG <wl@gnu.org>
3666 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
3667 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
3668 `.SS' now produces a heading with a smaller size than `.SH'.
3669 Completely formatted.
3670 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
3672 * man/groff.man: Improved table appearance. Use of `eo' request
3673 to reduce number of doubled backslashes in macro definitions.
3674 Replacing `\e' with `\(rs'. Other minor fixes.
3676 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
3677 to have correct line number.
3679 * INSTALL: Small improvement.
3681 2000-05-20 Bernd Warken <bwarken@mayn.de>
3683 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
3686 2000-05-19 Bernd Warken <bwarken@mayn.de>
3688 * man/groff.man: Complete update (with a lot of corrections by WL).
3690 2000-05-18 Werner LEMBERG <wl@gnu.org>
3692 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
3694 * font/*/*: Implement it.
3695 * man/groff_char.man, NEWS: Document it.
3697 * src/include/unix.h: Removed. It isn't used.
3699 * doc/groff.texinfo: Slight improvements.
3701 2000-05-17 Werner LEMBERG <wl@gnu.org>
3703 * README, win32-diffs: Small fixes and improvements.
3705 2000-05-16 Werner LEMBERG <wl@gnu.org>
3707 * FDL: New file (the Free Documentation License version 1.1).
3709 * doc/groff.texinfo: Added many start-up values for gtroff.
3710 Some structural improvements of the source code.
3712 2000-05-15 Werner LEMBERG <wl@gnu.org>
3714 * src/roff/troff/input.cc: Added small comment about troffrc-end.
3715 * src/roff/troff/troff.man: Added info about troffrc-end.
3717 2000-05-14 Werner LEMBERG <wl@gnu.org>
3719 * Makefile.in (EXTRADIRS): Fix typos.
3720 (dist): Handle deletion of old .tar.gz file correctly.
3721 (DISTDIRS): Include all tty output devices.
3723 * doc/groff.texinfo: Adding more cross references; countless other
3726 2000-05-13 Werner LEMBERG <wl@gnu.org>
3728 * MORE.STUFF: Added Robert Marks's utilities.
3730 2000-05-12 Werner LEMBERG <wl@gnu.org>
3732 Added win32 port contributed by Blake McBride
3733 <blake@florida-software.com>.
3735 * README.WIN32, win32-diffs: New files.
3738 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
3739 (tmove, tmove2): Added parentheses to avoid compiler warnings.
3740 (change): Removed unused variables.
3742 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
3743 (savebounds): Changed return value from `int' to `void'.
3744 * src/preproc/grn/hdb.cc: Ditto.
3746 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
3747 final backslash in comment to avoid compiler warning.
3749 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
3751 * doc/groff.texinfo: More fixes.
3753 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
3755 * tmac/tmac.doc: Documentation fix.
3757 2000-05-11 Werner LEMBERG <wl@gnu.org>
3759 * doc/groff.texinfo: Reading the source code shows up a lot of
3760 omissions and incorrect data... More conversion to @Deffn macros.
3762 2000-05-10 Werner LEMBERG <wl@gnu.org>
3764 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
3767 * src/roff/troff/request.h: Removing unused `no_break_flag'.
3769 2000-05-09 Werner LEMBERG <wl@gnu.org>
3771 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
3774 * doc/groff.texinfo: Extended history section. More conversion to
3775 @Deffn macros. More .tr documentation.
3777 2000-05-07 Werner LEMBERG <wl@gnu.org>
3779 * doc/groff.texinfo: Completed tab section. Added info about
3782 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
3784 * PROBLEMS: Describe configure script fix for OS/390 Unix.
3786 2000-05-05 Werner LEMBERG <wl@gnu.org>
3788 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
3790 * NEWS: Document it.
3792 * man/troff.man: Minor optical improvements.
3794 2000-05-03 Werner LEMBERG <wl@gnu.org>
3796 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
3798 * font/*/*: Implement it.
3799 * man/groff_char.man, NEWS: Document it.
3801 2000-05-02 Werner LEMBERG <wl@gnu.org>
3803 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
3805 * NEWS: Document the three new man pages.
3807 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
3808 * configure: Updated.
3810 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
3812 2000-05-01 Werner LEMBERG <wl@gnu.org>
3814 Added grap support to grog.
3816 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
3817 * src/roff/grog/grog.man: Document it.
3819 * doc/groff.texinfo, NEWS: Add info about grap support.
3821 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
3822 (with slight fixes by me).
3824 * tmac/groff_tmac.man: New file documenting tmac mechanism.
3825 * tmac/Makefile.sub: Add groff_tmac.man.
3826 * man/roff.man: New file giving overview of roff system.
3827 * man/troff.man: A short reference of troff.
3828 * man/Makefile.sub: Add roff.man and troff.man.
3830 2000-04-30 Werner LEMBERG <wl@gnu.org>
3832 Added grap support to groff.
3834 * src/roff/groff/groff.cc: Implement it.
3835 * src/roff/groff/groff.man: Document it.
3837 * src/devices/grotty/grotty.man: Add cp1047 device.
3838 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
3840 * src/roff/groff/groff.man: Ditto.
3841 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
3842 * doc/groff.texinfo: Ditto.
3844 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
3847 2000-04-29 Werner LEMBERG <wl@gnu.org>
3849 * man/groff_char.man: Add `pc' glyph.
3850 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
3851 * tmac/tmac.tty: Add `pc' glyph.
3852 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
3853 we use cp1047 output device.
3855 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
3856 there are still hardcoded latin1->unicode values in utf8's font
3858 * configure: Updated.
3859 * NEWS: Minor clarification. Updated.
3861 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
3864 2000-04-28 Werner LEMBERG <wl@gnu.org>
3866 Adding EBCDIC code page 1047.
3868 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
3869 font/devcp1047/DESC.proto: New files.
3871 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
3872 either ascii/latin1 or cp1047.
3873 * Makefile.in: Use it.
3874 * configure: Updated.
3876 Replacing and/or adding `md' (mathdot) glyph with `pc'
3877 (periodcentered) in all text fonts.
3879 * font/*/*: Change it.
3881 2000-04-27 Werner LEMBERG <wl@gnu.org>
3883 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
3885 * configure.in: Add check for strings.h.
3886 * src/include/driver.h: Use HAVE_STRINGS_H.
3887 * src/devices/grolbp/lpb.cc: Remove string.h.
3889 * src/include/groff-getopt.h: New file. It will be used instead of
3890 getopt.h (to be included in lib.h) to avoid endless problems with
3891 picky C++ compilers.
3892 * src/include/lib.h: Use groff-getopt.h.
3893 * src/include/Makefile.sub: Updated.
3895 * configure: Updated.
3896 * Makefile.in: Updated.
3898 * NEWS: Mention EBCDIC support.
3900 2000-04-26 Werner LEMBERG <wl@gnu.org>
3902 * TODO: Some additions.
3904 2000-04-25 Werner LEMBERG <wl@gnu.org>
3906 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
3909 2000-04-23 Werner LEMBERG <wl@gnu.org>
3911 * src/roff/troff/troff.man: Minor fixes.
3913 2000-04-22 Werner LEMBERG <wl@gnu.org>
3915 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
3916 `.T' string register and the incompatible definition of the `.T'
3917 number register (compared to Unix troff).
3919 * man/groff_char.man: Add some missing characters.
3920 * font/devutf8/NOTES: Update.
3922 2000-04-21 Werner LEMBERG <wl@gnu.org>
3924 * src/include/htmlindicate.h, src/include/lib.h,
3925 src/include/posix.h: Fix copyright.
3927 * src/include/Makefile.sub: Update.
3929 2000-04-20 Werner LEMBERG <wl@gnu.org>
3931 * src/roff/troff/input.cc (input_char_description): Removing
3932 superfluous space char.
3934 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
3936 * doc/groff.texinfo: Document EBCDIC.
3938 2000-04-19 Werner LEMBERG <wl@gnu.org>
3940 Introducing `shc' as the glyph name for the soft hyphen character.
3942 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
3943 font/devlatin1/R.proto: Use it.
3947 2000-04-18 Werner LEMBERG <wl@gnu.org>
3949 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
3950 dependency on ASCII order.
3952 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
3954 * src/libs/libgroff/illegal.c: Added EBCDIC table.
3955 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
3957 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
3958 to increase portability.
3960 2000-04-15 Werner LEMBERG <wl@gnu.org>
3962 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
3963 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
3964 the generic `\n' if under OS/390 Unix.
3966 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
3968 * configure: Regenerated.
3970 2000-04-14 Werner LEMBERG <wl@gnu.org>
3972 * doc/groff.texinfo: More conversions to @Deffn.
3974 2000-04-12 Werner LEMBERG <wl@gnu.org>
3976 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
3979 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
3981 2000-04-10 Werner LEMBERG <wl@gnu.org>
3983 * doc/groff.texinfo: More conversions to @Deffn.
3985 2000-04-08 Werner LEMBERG <wl@gnu.org>
3987 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
3988 Updated to latest version (glibc 2.1.3).
3990 2000-04-07 Werner LEMBERG <wl@gnu.org>
3992 * doc/Makefile (clean): Include more index files.
3993 Add rule texinfo->dvi.
3995 2000-04-05 Werner LEMBERG <wl@gnu.org>
3997 * doc/groff.texinfo: Added new index `op' for operators. More
3998 info on end of sentence characters. More use of @Deffn.
4000 2000-03-30 Werner LEMBERG <wl@gnu.org>
4002 * */*.man: Adding a note that a whitespace can be inserted between
4003 a command line option and its parameter -- we are using GNU getopt.
4005 * src/roff/groff/groff.man: Add example of `-m mandoc'.
4007 2000-03-28 Werner LEMBERG <wl@gnu.org>
4009 Correct anachronism of calling the man macro file with `-man'
4010 instead of `-m man' etc.
4012 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
4013 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
4014 load tmac.<package>.
4016 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
4020 * doc/groff.texinfo: Updated.
4022 * tmac/groff_man.man: Copyright added.
4024 2000-03-27 Werner LEMBERG <wl@gnu.org>
4026 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
4027 typeset the request resp. escape name with a tt font -- due to a
4028 bug in texinfo.tex it is necessary to use the `-e' switch with
4031 Improving info about usage of groff units.
4035 2000-03-20 Werner LEMBERG <wl@gnu.org>
4037 * doc/groff.texinfo: Added section about man macro package
4038 (I've basically taken groff_man.man). Introducing new indices `ma'
4039 for macros/strings and `gl' for glyph names. Other minor fixes.
4041 * tmac/groff_man.man: Fixed some typos.
4043 2000-03-19 Werner LEMBERG <wl@gnu.org>
4045 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
4048 * doc/texinfo.tex: New file.
4050 2000-03-18 Werner LEMBERG <wl@gnu.org>
4052 * doc/groff.texinfo: Improved section on number registers. Other
4055 2000-03-16 Werner LEMBERG <wl@gnu.org>
4057 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
4060 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
4061 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
4062 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
4063 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
4065 * src/preproc/grn/grn.man: Better synopsis; added copyright.
4067 * src/roff/grog/grog.man: Updated copyright date.
4069 2000-03-14 Francisco Andres Verdu <pandres@dragonet.es>
4071 * configure.in: Added test for strdup.
4073 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
4076 Replaced dynamic allocation of arrays `[...]' with `new' operator.
4080 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
4082 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
4084 2000-03-11 Werner LEMBERG <wl@gnu.org>
4086 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
4088 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
4089 * src/include/lib.h: Remove some spaces.
4091 2000-03-10 Werner LEMBERG <wl@gnu.org>
4093 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
4094 initializers from arguments (some compilers don't like this).
4096 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
4098 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
4099 used by pic and eqn to tell grohtml where the graphic regions start
4101 * src/libs/libgroff/Makefile.sub: Use it.
4102 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
4103 graphic_start() and graphic_end() from htmlindicate.cc.
4105 2000-03-09 Werner LEMBERG <wl@gnu.org>
4107 * tmac/tmac.safer: Will now work correctly in compatibility mode.
4108 * tmac/groff_man.man: More fixes.
4110 2000-03-08 Werner LEMBERG <wl@gnu.org>
4112 * doc/Makefile: Added texput.log to the `clean' target.
4113 * doc/groff.texinfo: Added info about delimiters for escapes.
4115 2000-03-08 Bernd Warken <bwarken@mayn.de>
4117 * src/preproc/pic/pic.man: Add info on conversion of pic images to
4118 other graphic formats.
4120 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
4122 * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
4123 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
4124 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
4127 2000-03-07 Werner LEMBERG <wl@gnu.org>
4129 * doc/groff.texinfo: Spelling fixes.
4131 2000-03-06 Werner LEMBERG <wl@gnu.org>
4133 * tmac/groff_man.man: Completely revised to cover everything in
4136 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
4137 Other minor fixings.
4138 * src/roff/troff/env.cc (environment_copy): Improve error message and
4140 * src/roff/troff/TODO: Updated.
4142 * doc/Makefile: Bug fixes -- this is still provisional, though...
4144 * tmac/eqnrc: Small fixes.
4146 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
4148 Adding a request `evc' to copy environments.
4150 * src/roff/troff/env.cc (environment::copy, environment_copy):
4152 * src/roff/troff/env.h: Add prototype.
4154 2000-03-05 Francisco Andres Verdu <pandres@dragonet.es>
4156 Adding strsep() -- Solaris 8 doesn't have it.
4158 * configure.in: Test it.
4159 * src/devices/grolbp/lbp.cc: Add code.
4161 2000-03-05 Werner LEMBERG <wl@gnu.org>
4163 * src/roff/troff/div.cc (macro_diversion::output,
4164 top_level_diversion::output): Fixing an incompatibility with
4165 original troff: \x'0' updates the .a register also. Thanks to
4166 <Andries.Brouwer@cwi.nl> for pointing this out.
4167 * doc/groff.texinfo: Document it.
4169 * Makefile.in: Create Makefile.dep if necessary before calling the
4170 submake process to avoid warning about nonexistent file.
4172 * NEWS, PROJECTS: Updated.
4174 2000-03-04 Werner LEMBERG <wl@gnu.org>
4176 * tmac/troffrc: Add tmac.lbp.
4178 2000-03-03 Francisco Andres Verdu <pandres@dragonet.es>
4180 * tmac/tmac.lbp: New file.
4181 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
4184 2000-03-03 Werner LEMBERG <wl@gnu.org>
4186 * Makefile.in: Fixing $(subdir).
4188 * README, NEWS: Small fixes.
4190 * test-groff: Adding path to grolbp.
4192 * configure.in: The (new) file src/xditview/Imakefile.in will be
4193 also configured -- it is now possible to build gxditview in a
4194 directory different from $srcdir.
4196 2000-03-02 Blake McBride <blake@florida-software.com>
4198 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
4200 * MORE.STUFF: Added website of bell labs and info about plot2dev.
4202 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
4204 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
4207 2000-02-29 Werner LEMBERG <wl@gnu.org>
4209 Adding GNU getopt to the groff distribution.
4211 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
4213 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
4214 * aclocal.a4: Remove GROFF_GETOPT function.
4215 * configure.in, Makefile.in, PROBLEMS: Update.
4216 * src/include/lib.h: Replace getopt tests with getopt.h.
4217 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
4219 * doc/groff.texinfo: Further checking/updating. Adding more index
4222 * man/groff_out.man: Fix nroff mode activation (for emacs).
4223 * man/groff_font.man: Add missing ligature.
4225 2000-02-28 Werner LEMBERG <wl@gnu.org>
4227 * doc/groff.texinfo: Further checking/updating. Adding more index
4230 * src/devices/grolbp/grolbp.man: Added a comment line at the
4231 beginning of the file (similar to shell scripts) which indicates
4232 that `tbl' should be used as a preprocessor.
4234 2000-02-27 Blake McBride <blake@florida-software.com>
4236 Adapting groff to MS Visual C++ 6.0 compiler (tested with
4237 Windows NT 4.0). Uses _MSC_VER define where necessary.
4239 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
4240 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
4241 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
4242 src/include/lib.h, src/libs/libgroff/errarg.cc,
4243 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
4244 src/preproc/refer/label.y, src/preproc/refer/label.cc,
4245 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
4246 src/roff/troff/div.cc, src/roff/troff/env.cc,
4247 src/roff/troff/input.cc, src/roff/troff/node.cc,
4248 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
4249 if_to_a() to avoid name clashes.
4250 * src/include/posix.h: Don't use unistd.h.
4251 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
4252 clause for integrating non-Unix xtmpfile() code.
4253 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
4254 structure; use "rt" for popen() in pipe_source(); add getpid()
4256 * src/roff/troff/node.cc: Use special versions of popen() in
4257 real_output_file() and pclose() in ~real_output_file().
4259 2000-02-27 Werner LEMBERG <wl@gnu.org>
4261 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
4262 LBP-8 series laser printers). This code has been contributed by
4263 Francisco Andres Verdu <pandres@dragonet.es>.
4265 * src/devices/grolbp/*: The grolbp output device.
4266 * font/devlpb/*: The font description files.
4267 * Makefile.in: Add grolpb and devlbp subdirectories.
4269 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
4270 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
4273 * doc/groff.texinfo: Further checking/updating. Adding more index
4278 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
4280 * man/groff_font.man: Adding info about obsolete DESC keywords.
4281 * src/devices/grolj4/grolj4.man: Documenting additional DESC
4284 2000-02-26 Werner LEMBERG <wl@gnu.org>
4286 * src/preproc/grn/grn.man: Added info about the gremlin file format
4287 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
4289 2000-02-25 Werner LEMBERG <wl@gnu.org>
4291 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
4292 friends to be non-integer.
4294 * src/preproc/grn/grn.man: Document it.
4296 * doc/groff.texinfo: Further checking/updating. Adding more index
4299 2000-02-24 Werner LEMBERG <wl@gnu.org>
4301 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
4302 line thicknesses to be integer multiples of this value.
4304 * src/preproc/grn/grn.man: Commenting out the -s option -- the
4305 corresponding code doesn't work (yet).
4307 * doc/groff.texinfo: Further checking/updating. Adding more index
4310 2000-02-23 Werner LEMBERG <wl@gnu.org>
4312 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
4313 specify line thickness instead of base units. The new default
4314 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
4315 thick lines respectively.
4317 Removed unused variable `prevval'.
4319 * src/preproc/grn/grn.man: Updated.
4321 2000-02-22 Werner LEMBERG <wl@gnu.org>
4323 * src/preproc/grn/main.cc: Slight formatting.
4325 * src/roff/groff/groff.man: Formatting fix.
4326 * src/preproc/grn/grn.man: Ditto.
4328 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
4330 * doc/groff.texinfo: Further checking/updating.
4332 2000-02-21 Werner LEMBERG <wl@gnu.org>
4334 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
4336 * test-groff: Added grn subdir to path.
4338 * doc/groff.texinfo: Some restructing and other small improvements.
4340 * src/roff/groff/groff.cc (help): Fixed info string.
4342 2000-02-20 Werner LEMBERG <wl@gnu.org>
4344 * doc/meref.me: Fix description of .GS request.
4346 * src/roff/troff/troff.man: Fixing typo.
4348 Adding the `grn' preprocessor for gremlin graphic files.
4350 * src/preproc/grn/*: This is the Berkeley distribution written by
4351 David Slattengren and Barry Roitblat, adapted to groff by Daniel
4352 Senderowicz and Werner Lemberg.
4354 * doc/grnexampl.{me,g}: A sample for grn.
4356 * Makefile.in: Added subdirectory entry for grn.
4358 * src/roff/groff/groff.cc: Added support for grn. It can be now
4359 called with the switch `-g'.
4361 * src/roff/groff/groff.man: Updated.
4363 * src/roff/grog/grog.{man,pl,sh}: Updated.
4367 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
4369 * src/include/lib.h: Added xtmptemplate and made xtmpfile
4370 parametrically polymorphic.
4372 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
4373 and the alterations to xtmpfile.
4374 xtmpfile can be requested to return the filename created
4375 and asked not to unlink the temp file. The default behaviour
4376 if parameters are absent is exactly the same as before.
4378 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
4380 A new request `length' is available which returns the length of a
4381 string in a number register:
4383 * src/roff/troff/input.cc (length_macro): Implement it.
4384 * src/roff/troff/input.cc (init_input_requests): Register it.
4386 2000-02-11 Werner LEMBERG <wl@gnu.org>
4388 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
4389 of the `substring' request.
4391 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
4394 * src/roff/troff/TODO, NEWS: Updated.
4396 2000-02-09 Werner LEMBERG <wl@gnu.org>
4398 * src/roff/groff/groff.man: Added an example.
4400 2000-02-06 Werner LEMBERG <wl@gnu.org>
4402 I've considerably modified the directory structure of the
4403 distribution to get a more vertical layout. For example, the number
4404 of top level directories has been reduced from 42 to 6.
4406 As a consequence, many changes, especially to the makefiles, were
4409 * The makefile variables `top_builddir' and `top_srcdir' have been
4410 introduced. Virtually all relative paths have been replaced with
4411 absolute ones using these two variables.
4413 * Dependencies (in the files `Makefile.dep') are no longer part of
4414 the distribution. Instead, they are created during a `make install'
4415 in the build directory.
4417 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
4418 make `top_srcdir' and `top_builddir' absolute.
4422 * Man pages no depend on the files `VERSION' and `REVISION'.
4424 * The added shell script `mkinstalldirs' will replace `mkdir' in
4427 * VERSION: Version number increased to 1.16.
4429 2000-02-04 Werner LEMBERG <wl@gnu.org>
4431 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
4433 * Makefile.in: Removed $(tmac_m) since it is no longer needed
4434 (after an update of the mm stuff).
4436 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
4438 2000-02-03 Werner LEMBERG <wl@gnu.org>
4440 The .psbb request will now also accept Mac PS images (i.e. using LF
4441 as the EOL character).
4443 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
4444 (with slight modifications).
4445 * troff/input.cc (do_ps_file): Use it.
4447 * test-groff: Add grohtml and grolj4 output devices to PATH.
4449 2000-01-30 Werner LEMBERG <wl@gnu.org>
4451 * NEWS, MORE.STUFF: Updated.
4453 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
4455 Add the `srand' command to pic.
4457 * pic/lex.cc, pic/pic.y: Implement it.
4458 * pic/pic.man: Document it.
4459 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
4461 2000-01-30 Werner LEMBERG <wl@gnu.org>
4463 Add a new request `.psbb'. This does exactly what the external
4464 program psbb did. It scans a PostScript image file for a
4465 %%BoundingBox comment and extracts the bounding box values (in
4466 PostScript units) which are then stored in the four new (read-only)
4467 number registers `llx', `lly', `urx', and `ury'.
4469 This will allow the usage of the .PSPIC macro without worrying
4470 about unsafe behaviour of groff, i.e., it will work without the
4471 `-U' switch of groff.
4473 * troff/input.cc: Implement it.
4474 * tmac/tmac.pspic: Use it.
4475 * troff/troff.man, grops/grops.man, NEWS: Document it.
4476 * psbb/*, Makefile.in: Remove it since it is no longer needed.
4478 This is bloody C code simply adapted from psbb.c! Any improvements
4481 2000-01-29 Werner LEMBERG <wl@gnu.org>
4483 * man/groff_font.man: Minor clarifications.
4487 2000-01-28 Werner LEMBERG <wl@gnu.org>
4489 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
4491 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
4493 * man/groff_font.man: Brought up to date regarding tcommand
4495 * libgroff/font.cc: Handle everything after `--' as a comment
4497 * devps/*: Added comment delimiter inside devps font files.
4499 2000-01-28 Werner LEMBERG <wl@gnu.org>
4501 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
4502 \fC...\fP (which now works as expected).
4504 * troff/troff.man: Fix typo.
4506 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
4508 Completed the pass_filenames implementation in troff.
4510 * libdriver/input.cc: Will read the new `F' tcommand.
4511 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
4512 * troff/input.cc: Use it.
4514 2000-01-26 Werner LEMBERG <wl@gnu.org>
4516 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
4517 font will now be updated even if an invalid font is selected.
4519 2000-01-24 Werner LEMBERG <wl@gnu.org>
4521 * doc/homepage.ms: Updated for new tmac.arkup.
4523 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
4525 * tmac/tmac.arkup: Cleanup.
4527 Added `\&' to .HTML macro to `leave vertical mode', so to say.
4529 Removed obsolete .LINK macro completely.
4531 The macros .URL, .FTP, and .MAILTO now accept a third argument which
4532 will be immediately appended to the second argument (to be used with
4533 punctuation, for example).
4535 Disabled .CDFTP macro temporarily for security reasons.
4537 * tmac/groff_markup.man: Complete revision for latest changes in
4538 tmac.arkup -- note that it does not yet format correctly with
4541 2000-01-23 Bruno Haible <haible@clisp.cons.org>
4543 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
4544 * devutf8/R.proto: Add mappings for wp, lh, rh.
4545 * devutf8/NOTES: Updated.
4547 2000-01-23 Werner LEMBERG <wl@gnu.org>
4549 * doc/groff.texinfo: Updated version/copyright info.
4551 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
4553 Added support for two new directives in device descriptions:
4554 `pass_filenames' (to pass the input file name to the output device)
4555 and `use_charnames_in_special' (to support e.g. accented characters
4556 in the `X' request).
4558 * include/font.h, troff/charinfo.h: Declare it.
4560 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
4562 * devhtml/DESC: Use it.
4564 * troff/input.cc: New function encoded_char.
4566 * troff/token.h: Add test for `specialness'.
4568 2000-01-21 Werner LEMBERG <wl@gnu.org>
4570 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
4571 mistake from the list of files to be installed.
4573 2000-01-18 Werner LEMBERG <wl@gnu.org>
4575 * README: Added info how to apply patches.
4577 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
4579 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
4581 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
4583 * troff/input.cc: Add support for troffrc-end.
4585 * tbl/main.cc: Altered to issue table-start and table-end special
4586 characters if using the html device.
4588 * devhtml/*: Modified font files to incorporate html encoding of
4591 * tmac/groff_markup.man: New file documenting tmac.arkup.
4593 * tmac/troffrc-end: New file. This is invoked after all user
4594 specified macros. Currently used by the html device to include
4595 tmac.html. Thus no need for users to specify -mhtml anymore.
4597 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
4598 (MAN7): Add groff_markup.man.
4600 * tmac/tmac.an, tmac/tmac.html: Small html updates.
4602 * tmac/troffrc: tmac.arkup will now be called for the html device.
4604 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
4605 extra device specific information about fonts.
4607 * doc/homepage.ms: New file. It is an example how an HTML home page
4608 could look like with grohtml.
4610 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
4612 2000-01-12 Bruno Haible <haible@clisp.cons.org>
4614 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
4617 * devutf8/NOTES: Updated.
4619 2000-01-08 Bruno Haible <haible@clisp.cons.org>
4621 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
4622 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
4623 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
4624 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
4625 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
4626 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
4627 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
4628 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
4631 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
4633 2000-01-12 Fabrizio Polacco <fab@prosa.it>
4635 grolj4: Paper size will be searched case-insensitively.
4637 * include/lib.h: Add check for strcasecmp().
4638 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
4639 * configure.in: Check for strcasecmp().
4641 2000-01-11 Werner LEMBERG <wl@gnu.org>
4643 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
4646 2000-01-10 Werner LEMBERG <wl@gnu.org>
4648 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
4651 Add a new read-only register, `.Y', which contains the groff
4654 * troff/input.cc (init_input_requests): Define it.
4655 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
4656 * doc/groff.texinfo, troff/troff.man: Document it.
4658 * libgroff/Makefile.sub (version.cc): Add definition of
4659 `Version_string[]', consisting of `<major>.<minor>.<revision>'
4660 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
4661 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
4662 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
4663 troff/input.cc, pfbtops/pfbtops.c: Use it.
4665 2000-01-10 Fabrizio Polacco <fab@prosa.it>
4667 Add a revision scheme to the groff package.
4669 * REVISION: New file.
4670 * libgroff/Makefile.sub (version.cc): Use it to define
4671 `revision_string[]'.
4672 * grops/psrm.cc: Use revision_string (converted to an unsigned
4673 integer) in constructor of resource_manager.
4675 2000-01-10 Bruno Haible <haible@clisp.cons.org>
4677 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
4679 * Makefile.in (DEVDIRS): Add devutf8.
4680 * grotty/tty.cc: Include device.h.
4681 (glyph): Change type of `code' to `unsigned int'.
4682 (tty_printer): New field is_utf8. Constructor takes device argument.
4683 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
4684 (tty_printer::add_char): Change type of first arg to `unsigned int'.
4685 (tty_printer::put_char): New function.
4686 (tty_printer::end_page): Use put_char() instead of ::putchar().
4687 (make_printer): Pass device to tty_printer constructor.
4688 * nroff.sh: Determine default device by calling 'locale'. As a
4689 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
4690 Recognize UTF-8 locales.
4691 * tmac/eqnrc: Recognize utf8 like latin1.
4692 * tmac/troffrc: Device utf8 needs tmac.tty.
4694 2000-01-07 Werner LEMBERG <wl@gnu.org>
4696 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
4698 2000-01-07 Paul Eggert <eggert@twinsun.com>
4700 Add a new predefined writeable number register, `year',
4701 which contains the current year.
4703 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
4704 * tmac/tmac.s: Use it.
4705 * troff/input.cc (init_registers): Initialize it.
4707 2000-01-06 Werner LEMBERG <wl@gnu.org>
4709 * PROBLEMS: Fixed typo.
4711 2000-01-04 Paul Eggert <eggert@twinsun.com>
4713 * PROBLEMS: Add Y2k advice for the yr number register.
4715 2000-01-03 Paul Eggert <eggert@twinsun.com>
4717 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
4719 2000-01-02 Werner LEMBERG <wl@gnu.org>
4721 * tmac/tmac.arkup: Slight modification of macros to provide better
4722 appearance for non-HTML formats.
4724 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
4726 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
4727 does not automatically translate to malloc(n) on all OSes
4728 (e.g., SunOS) so do it explicitly. Also, check the returned
4731 2000-01-01 Werner LEMBERG <wl@gnu.org>
4733 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
4735 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
4736 expects this variable
4738 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
4740 * doc/Makefile: Added instructions to create HTML and text
4741 versions of some files.
4743 1999-12-31 Werner LEMBERG <wl@gnu.org>
4745 * Updated INSTALL.gen.
4747 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
4748 better resp. correctly with non-HTML devices.
4750 Version 1.15 released
4751 =====================
4753 1999-12-28 Werner LEMBERG <wl@gnu.org>
4755 * NEWS, VERSION: Changed to 1.15
4757 1999-12-27 Paul Eggert <eggert@twinsun.com>
4759 * nroff/nroff.man: -S is safer, not safe.
4761 * groff/groff.cc (main): Use `safer', not `safe', in variable
4762 names. This does not change the behavior.
4764 * troff/input.cc (main): Likewise.
4766 * nroff/nroff.sh: Likewise.
4768 * troff/input.cc (prepend_string): New function.
4769 (main): Prepend -msafer, so that we check macro libraries for
4772 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
4774 Version 1.14 released
4775 =====================
4777 1999-12-26 Werner LEMBERG <wl@gnu.org>
4779 * NEWS, VERSION: Changed to 1.14.
4781 1999-12-24 Werner LEMBERG <wl@gnu.org>
4783 * refer/refer.cc: Fixing the last fix.
4785 Version 1.13 released
4786 =====================
4788 1999-12-23 Werner LEMBERG <wl@gnu.org>
4790 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
4795 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
4797 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
4798 document conventions, the version number must be a real.
4800 Version 1.12.1 released
4801 =======================
4803 1999-12-22 Werner LEMBERG <wl@gnu.org>
4805 * VERSION: Changed to 1.12.1.
4807 1999-12-22 Alan Rooks <arooks@istar.ca>
4809 * refer/refer.cc (do_file): Slight modification to satisfy the
4810 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
4813 1999-12-20 Werner LEMBERG <wl@gnu.org>
4815 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
4818 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
4819 list of unsafe requests.
4821 * pic/pic.man: Fixed a typo.
4823 * man/groff_out.man: Fixed a typo.
4825 1999-12-18 Werner LEMBERG <wl@gnu.org>
4827 * Makefile.in: Doc fixes.
4829 1999-12-17 Fabrizio Polacco <fab@prosa.it>
4831 * groff/groff.cc: Missing `U' option added to getopt().
4833 * troff/troff.man: Missing `U' option added to synopsis.
4835 Version 1.12 released
4836 =====================
4838 1999-12-14 Werner LEMBERG <wl@gnu.org>
4840 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
4843 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
4844 with the more appropriate terms `safer' and `unsafe'.
4846 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
4847 sys_nerr and sys_errlist[].
4849 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
4851 * pic/pic.y, pic/pic.cc: Added check for fmod().
4853 1999-12-13 Werner LEMBERG <wl@gnu.org>
4855 * VERSION: Changed to 1.12.
4857 Here some patches from various sources; most of them taken from
4858 the Debian distribution.
4860 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
4861 tmac/Makefile.sub: New files copied directly from the NetBSD
4862 distribution. Probably, some additional adaptation later on is
4865 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
4868 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
4869 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
4870 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
4871 (`-S') is now the default.
4873 * README, NEWS: Updated.
4875 1999-12-09 Werner LEMBERG <wl@gnu.org>
4877 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
4879 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
4881 1999-12-06 Werner LEMBERG <wl@gnu.org>
4883 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
4884 grief than relief today. Additionally, it is against the GNU
4887 * configure: Recreated.
4889 1999-12-05 Werner LEMBERG <wl@gnu.org>
4891 * configure.in: Added GROFF_LIBM.
4893 * configure: Recreated.
4895 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
4898 * Makefile.in: Added definition of $(LIBM).
4900 * Makefile.comm (LIBM): Removed.
4902 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
4904 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
4906 * doc/Makefile: Added rule for generation pic.html.
4908 (clean): Files produced by grohtml will be removed also.
4910 * doc/pic.ms: Small fix.
4912 * tmac/tmac.html: Fixed suppression of headers.
4914 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
4916 * tmac/tmac.html: Fixing horizontal arrows.
4918 Turning off hyphenation.
4920 * tmac/tmac.an: Improved support for grohtml; better indentation,
4923 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
4925 * tmac/tmac.arkup: Added CDFTP macro
4927 * tmac/tmac.html: All headers are turned off for ms, me, and mm
4930 * tmac/troffrc: Some additions for HTML stuff.
4932 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
4934 * tmac/tmac.html: Small changes.
4936 1999-09-26 Werner LEMBERG <wl@gnu.org>
4938 * doc/groff.texinfo: Minor fixes.
4940 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
4942 * devhtml/TR: Changed spacewidth to 3.
4944 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
4946 * tmac/tmac.html: Moved markup macros to tmap.arkup.
4948 * tmac/tmac.arkup: New file.
4950 * grohtml/ChangeLog: New file.
4952 1999-09-16 Werner LEMBERG <wl@gnu.org>
4954 * doc/groff.texinfo (Common Features): Added Copying chapter.
4955 Changed format to @smallbook.
4957 1999-09-15 Werner LEMBERG <wl@gnu.org>
4959 * NEWS: Added info about groff.texinfo.
4961 * doc/groff.texinfo: Will now compile (using texi2dvi) without
4964 1999-09-14 Werner LEMBERG <wl@gnu.org>
4966 * groff/groff.man: More updates.
4968 1999-09-13 Werner LEMBERG <wl@gnu.org>
4970 * doc/groff.texinfo: New file. This manual is still very
4971 rudimentary. It has been originally contributed by Trent
4972 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
4975 * INSTALL: Added information about the `doc' subdir
4977 * troff/troff.man: Minor fixes.
4979 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
4982 * troff/input.cc (usage): Added missing `-ffam' to usage message.
4984 * Makefile.in (dist): groff-$(version).tar.gz must be removed
4985 also, otherwise it is included itself in another call of `make
4988 * groff/groff.cc (synopsis): Removed superfluous space.
4990 * PROJECTS, PROBLEMS, NEWS: Updated.
4992 * VERSION: Updated to 1.12beta.
4994 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
4996 * README: Updated: Included documentation about CVS repository,
4997 mailing lists, and daily snapshots.
4999 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
5001 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
5003 * tmac/tmac.an: If the tag didn't fit into the space that the
5004 macro `TP' specifies, the rest of the tag went into the space for
5007 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
5009 * grolj4/lj4.cc: Added duplex printing (option `-d').
5011 * grolj4/grolj4.man: Document duplex printing.
5013 1999-09-12 Werner LEMBERG <wl@gnu.org>
5015 * doc/Makefile (pic.ps): Fixed rule which caused problems with
5016 non-GNUish sed programs.
5018 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
5021 * configure.in (LIBS): Added `-lc'
5023 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
5025 * pic/tex.cc (solid_arc): Casting M_PI to double.
5027 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
5029 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
5030 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
5031 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
5033 * groff/groff_man.man: New file. This manual page was originally
5034 written for the Debian GNU/Linux system by Susan G. Kleinmann
5037 * eqn/list.cc (list_box::compute_metrics,
5038 list_box::compute_sublist_width): Removed variable declaration to
5039 avoid shadowing warnings.
5041 * grops/psrm.cc (resource_manager::process_file): Ditto.
5043 * tfmtodit/tfmtodit.cc (main): Ditto.
5045 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
5046 to avoid shadowing warnings.
5048 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
5049 shadowing loop variable.
5051 * groff/groff.man, troff/troff.man: Added doc about grohtml.
5053 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
5055 New grohtml frontend to convert groff input to html.
5057 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
5059 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
5061 * tmac/eqnrc: Added html device.
5063 * tmac/tmac.html: New file.
5065 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
5066 (troff_output::start_picture, troff_output::finish_picture),
5067 tbl/main.cc (process_input_file):
5068 Surrounded output with `graphics_start' and `graphics_end' so that
5069 the html driver can identify non-text portions.
5071 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
5072 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
5073 grotty/tty.ps (tty_printer::set_char): Additional parameter
5076 * include/printer.h: Class printer: New function
5077 set_char_and_width; new variables (is_char_named, is_named_set,
5078 named_command, named_char_s, named_char_n) to hold information
5079 about named characters -- needed by the html driver.
5081 * libdriver/printer.cc (printer::set_ascii_char,
5082 printer::set_special_char): Use set_char_and_width.
5084 * devhtml/*: New device files for html driver.
5086 * grohtml/*: New driver grohtml.
5088 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
5090 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
5093 1999-09-11 Luke Mewburn <lukem@netbsd.org>
5095 * libgroff/string.cc (search): Small fix to test against NULL
5098 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
5100 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
5101 \b'abc') were stacked in reverse order when processed in a
5104 * troff/node.h: Added `*last' to struct `node' to make the above
5107 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
5108 The default scale for the 'f' and 't' graphics functions were 'm'
5109 rather than 'u' (i.e., no scaling).
5111 1999-09-11 Peter Miller <peterm@jna.com.au>
5113 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
5114 do_file), soelim/soelim.man: Added `-I file' option to soelim,
5115 defining include paths.
5117 * soelim/soelim.cc (include_path_append): New function.
5119 1999-09-11 Larry Jones <larry.jones@sdrc.com>
5121 * tbl/main.cc (process_options): Unix (at least Documenter's
5122 Workbench) tbl allows arbitrary non-alpha characters between
5125 1999-09-11 Paul Eggert <eggert@twinsun.com>
5127 Y2k fixes. Don't assume that the current year precedes 2000.
5129 * doc/meref.me: Add \n(y2, \n(y4.
5131 * tmac/doc-common (Yr): New number register.
5132 (Dd): Don't assume current year precedes 2000.
5134 * tmac/tmac.e (td): Likewise.
5135 (y2, y4): New number registers.
5137 * pic/pic.man: Update reference for pic paper to May, 1991
5140 1999-09-11 Werner LEMBERG <wl@gnu.org>
5142 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
5143 Removed quotation marks which prevented correct expansion of
5146 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
5148 1999-09-10 Werner LEMBERG <wl@gnu.org>
5150 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
5153 * Removed configure.old.
5155 1999-08-31 Werner LEMBERG <wl@gnu.org>
5157 * VERSION: Updated to 1.11.1
5159 1999-05-27 Werner LEMBERG <wl@gnu.org>
5161 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
5163 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
5164 added quotations around $(tmac_wrap) to avoid syntax error if
5167 * configure: Newly generated using autoconf 2.13.
5169 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
5171 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
5173 * README, PROJECTS, NEWS, INSTALL, VERSION,
5174 doc/Makefile. doc/pic.ms, groff/groff.man:
5175 Prepare for 1.11 release. No code changes.
5176 Documentation for pic added (doc/pic.ms).
5178 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
5180 * Version 1.10 released.
5182 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
5184 * afmtodit/afmtodit.pl: Avoid comment on first line.
5186 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
5188 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
5189 * configure.in: Call it.
5191 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
5192 (distfiles): Doesn't depend on config.log or config.cache.
5194 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
5196 * grog/grog.sh: Use print "" rather than print in END rule.
5198 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
5200 * tbl/main.cc (process_data): Don't give error for excess data
5201 entries that are comments.
5203 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
5205 * tbl/main.cc (process_data): Fix case where new for-scope rules
5206 silently change meaning of code.
5208 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
5210 * troff/env.cc (hyphenate): Loop over all consecutive sequences
5211 of non-zero hyphenation codes.
5213 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
5215 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
5217 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
5219 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
5221 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
5223 * tmac/tmac.andoc: Make it work in compatibility mode.
5225 * refer/token.h (token_info::is_range_sep): New function.
5226 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
5227 * refer/ref.cc (reference::output): More sophisticated check for
5230 * devps/prologue.ps (MANUAL): New procedure.
5231 * grops/ps.cc (main): New -m option.
5232 (usage): Include -m.
5233 (ps_printer::~ps_printer): Implement -m.
5235 * aclocal.m4 (GROFF_G): New macro.
5236 * configure.in: Call it.
5237 * Makefile.in (g): Provided by configure.
5239 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
5241 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
5244 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
5245 (tmac_m, tmac_s): Deleted.
5246 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
5247 tmac_s_prefix): New variables.
5248 (MDEFINES): Change accordingly.
5249 * Makefile.comm (.man.n): Use new TMAC_* variables.
5250 * configure.in (GROFF_TMAC): Call.
5251 * aclocal.m4 (GROFF_TMAC): Define.
5252 * tmac/Makefile.sub (stamp_wrap): New target.
5253 (install_data, uninstall_sub): Handle macro wrapping.
5255 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
5257 * tbl/main.cc (main): Ignore -T option.
5259 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
5261 * devlj4/generate/special.map: Add definition of \(nb.
5263 * tmac/tmac.dvi: Add definition of \(nb.
5265 * troff/dictionary.c (dictionary::dictionary): association::v gets
5266 initialized by association::association.
5268 * tmac/Makefile.sub: Avoid using temporary files when installing.
5270 * troff/env.cc (environment::set_font): Make bad font number a
5273 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
5275 * Makefile.in (datadir): Use share rather than lib.
5277 * groff/groff.cc (basename): Rename to xbasename.
5279 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
5281 * Makefile (CCLIBS): Don't use.
5282 * Makefile.ccpg: Likewise.
5284 * acgroff.m4: Rename to...
5285 * aclocal.m4: Modify extensively for autoconf 2.
5286 * configure.in: Likewise.
5287 * Makefile.in: Likewise.
5289 * groff/pipeline.c (const): Declare as empty if __STDC__ not
5291 (xstrsignal): Check for definition of NSIG. Conditionalize
5292 on SYS_SIGLIST_DECLARED. Make return type const.
5294 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
5296 * troff/input.cc (interpolate_macro): Rephrase missing space
5299 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
5301 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
5302 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
5303 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
5304 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
5305 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
5306 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
5307 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
5308 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
5309 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
5310 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
5311 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
5314 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
5316 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
5318 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
5320 (macro_iterator::macro_iterator): Add additional argument.
5322 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
5324 * troff/div.cc (vertical_size::vertical_size): In place of integer
5325 specifying line spacing use cunits specifying post vertical
5327 (macro_diversion::output, top_level_diversion::output): Likewise.
5328 * troff/div.h: Change declarations accordingly.
5329 * troff/env.cc (pending_output_line): Replace ls field by post_vs
5331 (pending_output_line::pending_output_line,
5332 pending_output_line::output, environment::output,
5333 environment::output_line, environment::output_title,
5334 environment::hyphenate_line): In place of
5335 integer specifying line spacing use cunits specifying post vertical
5337 (environment::environment): Add post_vertical_spacing and
5338 prev_post_vertical_spacing arguments.
5339 (environment::get_post_vertical_spacing): New function.
5340 (environment::total_post_vertical_spacing): New function.
5341 (environment::post_vertical_spacing): New function.
5342 (init_env_requests): Initialize pvs request and .pvs register.
5343 * troff/env.h: Change declarations.
5345 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
5347 * tmac/tmac.pspic: Immediately remove the temporary file.
5349 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
5351 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
5352 height is specified.
5354 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
5356 * tbl/table.c (struct vertical rule, class table_entry): Use int
5357 not short for start_row and end_row.
5359 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
5361 * troff/input.cc (trapping_blank_line, blank_line_macro): New
5363 (diverted_space_node::reread, process_input_stack): Call
5364 trapping_blank_line() rather than blank_line().
5365 (init_input_requests): Bind "blm" to blank_line_macro().
5367 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
5369 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
5371 * troff/env.cc (environment::possibly_break_line): Require that
5372 width total excluding width of final space node be greater than
5373 the target text length.
5375 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
5377 * troff/node.cc (kern_pair_node::vertical_extent): New function.
5379 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
5381 * troff/node.cc (charinfo_node): New class.
5382 (glyph_node, composite_node): Derive from charinfo_node. Change
5383 member functions accordingly.
5385 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
5387 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
5389 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
5391 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
5393 * devps/generate/textmap (notsubset): Add.
5395 * tmac/tmac.a4: New file.
5397 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
5399 * pic/main.cc (had_parse_error): New variable.
5400 (do_picture, do_whole_file): Set had_parse_error if yyparse()
5402 (main): Return 1 if had_parse_error is true.
5404 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
5406 * grolj4/lj4.cc (main): Avoid use of strtoul.
5408 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
5410 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
5411 iso_8859_1 or $LESSCHARSET is latin1.
5413 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
5415 * hpftodit: New directory.
5416 * Makefile.in (CCPROGDIRS): Add hpftodit.
5417 * devlj4/generate: New directory.
5419 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
5421 * configure.in: Don't use AC_VFORK.
5422 * groff/pipeline.c (run_pipeline): Use fork() always.
5424 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
5426 * grops/ps.cc (main): Use %1 not %s in error message for -w.
5428 * Makefile.in (CCPROGDIRS): Add grolj4.
5429 (DEVDIRS): Add devlj4.
5430 * grolj4, devlj4: New directories.
5431 * tmac/troffrc: Handle lj4.
5432 * tmac/tmac.lj4: New file.
5434 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
5436 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
5438 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
5440 * troff/input.cc (do_if_request): At end of second string, switch
5441 environments before getting next token.
5443 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
5445 * devps/psstrip.sed: Split rule that strips whitespace on either
5448 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
5450 * troff/node.h (font_family::make_definition): Add return value to
5451 declaration. * troff/symbol.h (symbol::operator==,
5452 symbol::operator!=): Likewise.
5454 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
5456 * groff/groff.cc (main, help, synopsis): Handle -S.
5457 (possible_command::insert_arg): New function.
5459 * tmac/tmac.safer: New file.
5460 * tmac/msafer.man: New file.
5461 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
5463 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
5465 * pic/pic.h, pic/main.cc (safer_flag): New variable.
5466 * pic/pic.y (placeless_element): Avoid unsafe operations if
5467 `safer_flag' is set.
5468 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
5470 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
5472 * eqn/lex.cc (get_token): Put call to add_context() in block to
5473 work around Sun C++ 4.0 bug.
5475 * include/stringclass.h (operator +): Use ?: instead of `if' to
5476 work around Sun C++ 4.0 bug.
5478 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
5480 * tbl/main.cc (process_format): Accept - as a synonym for the _
5483 * libbib/index.cc (minus_one): Don't declare as const.
5485 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
5487 * troff/input.cc (get_char_for_escape_name): Push back a newline.
5489 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
5491 * troff/input.cc (write_macro_request): New function.
5492 (init_input_requests): Bind write_macro_request to writem.
5494 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
5496 * tmac/tmac.s (@EN): Turn filling back on even if there was no
5499 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
5501 * tmac/tmac.s (@TS): Renamed from TS.
5502 (TS): Call LP then TS again.
5503 (cov*ab-init): Alias @TS to TS.
5505 * tmac/tmac.s: Allow QP or RS to initialize.
5507 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
5508 Move initializations of PS and LL here.
5509 (par@init): Don't initialize HY. Avoid changing environment 0.
5510 (par*env-init): Don't all par@reset.
5512 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
5514 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
5516 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
5518 * Makefile.in (MDEFINES): Add LDFLAGS.
5519 (LDFLAGS): Add definition line.
5521 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
5523 * troff/input.cc (get_optional_char): Split off error check into...
5524 (check_missing_character): New function.
5525 * troff/token.h: Declare it.
5526 * troff/env.cc (margin_character): Don't call get_optional_char.
5527 Only call tok.next() after making the node.
5529 * include/lib.h (getopt): Make 2nd argument char *const *.
5531 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
5533 * nroff/conftest.sh: Deleted.
5535 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
5537 * pic/make-dos-dist: Deleted.
5539 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
5541 * devps/psstrip.sed: Strip comments before stripping trailing
5544 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
5546 * Version 1.09 released.
5548 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
5550 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
5552 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
5554 * libgroff/font.cc (font::load_desc): Fix typo in error message.
5556 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
5558 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
5559 about returning without a value.
5561 * troff/charinfo.h (charinfo::get_special_translation): Cast
5562 TRANSLATE_NONE to int.
5564 * refer/token.cc (lookup_token, store_token): Remove bogus loop
5565 test. Fix test so that it works with n unsigned.
5567 * pic/pic.y (defaults_table): Fully bracket initializer.
5568 * pic/lex.cc (lookup_keyword): Likewise.
5569 * eqn/lex.cc (token_table, def_table): Likewise.
5570 * eqn/box.cc (param_table): Likewise.
5571 * troff/input.cc (warning_table): Likewise.
5572 * libgroff/font.cc (table): Likewise.
5573 * grops/ps.cc (ps_printer::special): Likewise.
5574 * grops/psrm.cc (resource_manager::process_file): Likewise.
5575 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
5576 * refer/command.cc (command_table): Likewise.
5577 * addftinfo/addftinfo.cc (param_table): Likewise.
5579 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
5580 about temp's being unused.
5581 (unused): New function.
5583 * groff/pipeline.cc: Declare c_fatal.
5585 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
5588 * libbib/index.cc (index_search_item::load): Prevent compiler
5589 warnings about fd_closer's being unused.
5590 (unused): New function.
5592 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
5594 * troff/input.cc (copy_mode_error): Make `prefix' static.
5597 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
5599 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
5600 HAVE_CC_OSFCN_H and modify accordingly.
5602 * troff/input.cc (init_charset_table): radicalex overlaps
5605 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
5606 udodo!hans@relay.NL.net).
5607 * groff/configure.in: Call it.
5609 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
5610 * groff/configure.in: Call it.
5611 * include/lib.h: Conditionalize declaration of pclose.
5613 * troff/div.cc (last_page_number): New global variable.
5614 (top_level_diversion::begin_page): Exit if we just printed the
5616 * troff/div.h (last_page_number): Declare it.
5617 * troff/input.cc (parse_output_page_list): Set last_page_number.
5619 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
5620 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
5621 tmac/tmac.X: Likewise.
5622 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
5623 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
5625 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
5627 * tmac/doc-ditroff (hK): Remove groff specific code which
5628 prevented page-breaks between separate manual entries. If this is
5629 the first page, don't set the page number to 1.
5631 * acgroff.m4 (GROFF_POSIX): New macro.
5632 * configure.in: Use it.
5634 * troff/node.cc (class real_output_file,
5635 real_output_file::real_output_file,
5636 real_output_file::~real_output_file): Conditionalize use of
5637 popen/pclose on POPEN_MISSING.
5638 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
5639 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
5640 (pipe_source): Similarily.
5642 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
5644 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
5645 presence of declarations by trying to compile example with
5646 conflicting declarations. (gcc only gives a warning for missing
5649 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
5651 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
5652 (from Ulrich Lauther).
5654 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
5656 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
5658 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
5660 * indxbib/indxbib.cc (write_hash_table): Add code for case where
5661 pointers and ints have different sizes.
5663 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
5665 * tmac/tmac.s (par*env-init): Call par@reset.
5667 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
5669 * tmac/tmac.s (@IP): Switch to a new environment when diverting
5671 (par*push-tag-env, par*pop-tag-env): New macros.
5673 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
5675 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
5676 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
5678 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
5679 comment. Include <time.h>.
5681 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
5683 * grops/ps.cc (is_small_h, is_small_v): Deleted.
5684 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
5687 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
5689 * troff/input.cc (read_request): Only print a prompt if reading
5690 from the terminal. Also clearerr on EOF if reading from the
5691 terminal. Declare isatty.
5693 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
5695 * refer/label.y: Rename map_t to map_func and extractor_t to
5698 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
5700 * include/assert.h: Don't use volatile.
5701 * libgroff/assert.cc: Likewise.
5703 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
5705 * troff/input.cc (abort_request): Look at character in tok before
5708 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
5710 * troff/troff.h (NO_RETURN): Deleted.
5711 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
5712 * troff/input.cc (exit_troff): Likewise
5714 * Makefile.in: Remove `Making ...' messages since GNU make now
5717 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
5719 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
5721 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
5724 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
5726 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
5728 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
5730 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
5731 MARK_REG if there was no left delimiter.
5733 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
5735 * pic/troff.cc (troff_output::text): Set line thickness to
5736 relative before outputting text.
5738 * tmac/tmac.e (@k): Don't zero ?T.
5741 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
5743 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
5745 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
5747 * troff/input.cc (decode_args): Warn about unquoted tabs (from
5750 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
5752 * troff/input.cc (ignoring): New variable.
5753 (ignore): Set ignoring during call to do_define_macro.
5754 (do_define_macro): Clear ignoring before interpolating terminating
5756 (copy_mode_error): New function.
5757 (get_char_for_escape_name, read_long_escape_name,
5758 interpolate_arg): Use copy_mode_error.
5759 (warning_table): Add WARN_IG.
5760 * troff/troff.h (WARN_IG): Declare.
5761 (WARN_TOTAL): Change accordingly.
5763 * groff/pipeline.c (strsignal): Rename to xstrsignal.
5764 * groff/groff.cc (strsignal): Delete declaration.
5766 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
5768 * troff/div.cc (page_offset): Use 'm' as default scaling.
5770 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
5772 * nroff/nroff.sh: Ignore -u.
5774 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
5776 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
5778 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
5780 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
5782 (B2): With -Tascii, leave additional vertical space before
5783 and after. Ensure that the left and right indent is restored to
5784 what it was even if the point size changes. Don't call
5785 par@finish. Change the indent, line length and title length
5786 directly. With -Tascii, make the width of the box 1n less.
5787 (B1): Remember 1n at the current point size. Don't call
5788 par@reset. Change the indent, line length and title length
5789 directly. Ensure that the temporary indent is preserved.
5790 (par*box-mark-top): Turn off no spacing mode.
5792 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
5794 * Makefile.in (dist): Use .gz suffix.
5796 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
5798 * troff/input.cc (main): Add return 0.
5799 * pic/main.cc (main): Use return instead of exit.
5800 * tbl/main.cc (main): Likewise.
5801 * eqn/main.cc (main): Likewise.
5802 * grops/ps.cc (main): Likewise.
5803 * grotty/tty.cc (main): Likewise.
5804 * groff/groff.cc (main): Likewise.
5805 * grodvi/dvi.cc (main): Likewise.
5806 * refer/refer.cc (main): Likewise.
5807 * indxbib/indxbib.cc (main): Likewise.
5808 * lkbib/lkbib.cc (main): Likewise.
5809 * soelim/soelim.cc (main): Likewise.
5810 * addftinfo/addftinfo.cc (main): Likewise.
5811 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
5812 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
5814 * troff/token.h (process_input_stack): Don't declare as static.
5815 * troff/input.cc: Likewise.
5817 * troff/node.c (invalidate_fontno): Make it a static member of
5818 class font_family. Change callers.
5819 * troff/node.c: Change declaration.
5821 * tbl/main.cc (struct input_entry_format): Add explicit public
5823 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
5824 struct double_hline_stuff): Likewise.
5825 * tbl/table.h (struct entry_format): Likewise.
5826 * pic/object.h (struct saved_state): Likewise.
5828 * include/stringclass.h: Add forward declarations of friend
5829 functions that are later declared as inline. Don't include inline
5830 specifier in friend declaration.
5832 * libgroff/lib.h: Declare popen and pclose.
5833 * acgroff.m4 (GROFF_POPEN): New macro.
5834 * configure.in: Call it.
5836 * include/lib.h (PI): New constant. Undef first if necessary.
5837 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
5838 * grops/ps.cc (degrees, radians): Likewise.
5839 * libgroff/font.cc (font::get_skew): Likewise.
5841 * grops/ps.cc (is_ascii): New function.
5842 (ps_output::put_string): Use is_ascii. Use csprint rather than
5844 (ps_printer::define_encoding): Use csspace.
5845 * libgroff/strtol.c (ISASCII): New macro.
5846 (strtol): Cast arguments to is*() and tolower() to unsigned char.
5847 Use ISASCII rather than isascii.
5848 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
5849 * libgroff/cset.cc: Likewise.
5850 * libdriver/input.cc: Include cset.h.
5851 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
5854 * refer/refer.cc (main): Use %ld rather than %d for longs.
5856 * libbib/index.cc (index_search_item_iterator::get_tag): Use
5859 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
5861 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
5863 * troff/input.cc (hyphenation_code): Skip white space between
5866 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
5868 * tbl/table.h (table::entry_list_tailp): New member.
5869 (table::table): Initialize it.
5870 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
5873 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
5875 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
5876 with negative horizontal positions. Remove casts of glyph::hpos to
5878 (USHRT_MAX): Delete definition.
5879 (SHRT_MAX, SHRT_MIN): New definitions.
5880 (glyph::hpos): Change type to short.
5881 (tty_printer::end_page): Output multiple backspaces if necessary.
5882 Remove casts of glyph::hpos to int.
5884 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
5886 * tmac/tmac.s (@RT): New definition.
5888 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
5890 * refer/refer.cc (do_file): Make sure current_filename is set when
5893 * pic/common.cc (common_output::dot_line): Handle zero length
5896 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
5898 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
5899 (par@init): Initialize \n[HY].
5901 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
5903 * troff/dictionary.cc (dictionary::remove): Continue when
5906 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
5908 * Makefile.com (.y.cc): Avoid ending up with two versions of
5911 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
5913 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
5914 (\(,C): Likewise. Also fix typo.
5916 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
5918 * lib.h: Delete extraneous semi-colon.
5920 * Add pso request: `so' from a pipe.
5921 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
5922 (file_iterator::close): New function.
5923 (file_iterator::~file_iterator, file_iterator::next_file): Use
5924 file_iterator::close.
5925 (file_iterator::backtrace): Say `process' rather than `file' when
5926 the stream is popened.
5927 (pipe_source): New function.
5928 (init_input_requests): Bind ".pso" to pipe_source.
5930 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
5932 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
5934 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
5935 digits in lower case.
5937 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
5939 * Version 1.08 released.
5941 * Makefile.in (dist): Insert || true after ln -s commands that
5944 * mm: Update to mm 1.16.
5946 * acgroff.m4 (GROFF_CSH_HACK): New macro.
5947 * configure.in: Call GROFF_CSH_HACK. Substitute for
5949 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
5951 * nroff/Makefile.sub (nroff): New target.
5952 (install_data): Install nroff.
5953 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
5954 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
5956 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
5958 * eqn/Makefile.sub (neqn): Add chmod +x.
5960 * grog/Makefile.sub (grog): Remove spurious semi-colon.
5962 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
5964 * troff/input.cc (string_iterator::string_iterator()): Initialize
5967 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
5969 * troff/div.cc (macro_diversion::space,
5970 top_level_diversion::space): Don't set high_water_mark.
5971 (macro_diversion::output, top_level_diversion::output): Don't
5972 include post line space in high water mark.
5974 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
5976 * eqn/eqn.y: Don't define YYDEBUG.
5977 * pic/pic.y: Likewise.
5979 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
5981 * tmac/tmac.e ([3): Add space after comma following editors.
5982 Change double spaces to single spaces.
5983 ([4): Change double spaces to single spaces.
5985 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
5986 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
5987 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
5988 after %!PS-Adobe- (for Newsprint).
5990 * troff/div.cc (top_level_diversion::begin_page): When
5991 before_first_page is 1, set page_number to 1.
5993 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
5995 * eqn/box.cc (box::top_level): Protect equation with \&.
5997 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
5999 * groff/groff.cc (possible_command::set_name): Delete old name.
6001 * groff/groff.cc (possible_command::~possible_command): Use
6004 * troff/node.cc (troff_output_file::begun_page): New member.
6005 (troff_output_file::troff_output_file): Initialize it.
6006 (troff_output_file::really_begin_page): Only output V command if a
6007 page has been begun.
6009 * pic/pic.y (placeless_element): Delete argument to PRINT after
6012 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
6014 * Make wrapman work.
6015 * troff/div.h (class top_level_diversion): Replace
6016 first_page_begun by before_first_page (with opposite sense).
6017 * Change first_page_begun to before_first_page inverting sense.
6018 * troff/div.cc (class nl_reg): New class.
6019 (init_div_requests): Use class nl_reg for \n(nl.
6020 (top_level_diversion::begin_page): Don't call
6021 output_file::begin_page if before_first_page is 2;
6022 reset before_first_page afterwards. If have_next_page_number is
6023 false, then always increment page_number.
6024 * tmac/tmac.an: Set traps within TH rather than at the top-level.
6025 Restore compatibility mode after loading, and then disable
6026 compatibility mode in TH.
6028 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
6030 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
6032 * troff/node.h (output_file::trailer): Declare.
6033 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
6034 * troff/node.cc (output_file::trailer): New function.
6035 (troff_output_file::~troff_output_file): Move most code into...
6036 (troff_output_file::trailer): New function.
6037 (class troff_output_file): Delete page_length member. Declare
6039 (troff_output_file::really_begin_page): Use current page length
6040 for final V command.
6042 * tbl/main.cc (struct options): New decimal_point_char member.
6043 (options::options): Initialize this.
6044 (process_options): Implement decimalpoint option.
6045 (process_data): Pass decimal_point_char option to table::table.
6046 * tbl/table.h (class table): New decimal_point_char member.
6047 (table::table): Add additional argument.
6048 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
6049 second argument specifying decimal point character. Use this
6051 (table::table): Initialize decimal_point_char.
6052 (table::add_entry): Change call to find_dot.
6054 * troff/input.cc (get_copy, token::next): Implement \V.
6055 (interpolate_environment_variable): New function.
6057 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
6059 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
6060 * pic/pic.y: Likewise.
6062 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
6064 * refer/ref.cc (reference::insert_field, reference::delete_field):
6066 * troff/number.cc (parse_term): Likewise.
6068 * acgroff.m4 (GROFF_PROG_YACC): New macro.
6069 * configure.in: Use GROFF_PROG_YACC.
6071 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
6073 * Makefile.in (OPTIMIZE): New define.
6074 (DEBUG): Empty by default.
6075 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
6077 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
6078 (GROFF_ARRAY_DELETE): Likewise.
6079 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
6081 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
6083 * devps/psstrip.sed: Use different delimiter on last line (so that
6084 it works with BSD 4.4 sed.)
6086 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
6088 * devps/psstrip.sed: Delete comments.
6090 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
6091 optind, opterr, optarg.
6092 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
6095 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
6097 * Makefile.in (check): Dummy target.
6099 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
6101 * Version 1.07 released.
6103 * Integrate mm 1.11.
6105 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
6106 where start_col was meant.
6108 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
6110 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
6112 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
6114 * troff/input.cc (token::next): Make \z\o'...' and similar things
6117 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
6119 (environment): Add margin_character_flags member.
6120 * env.cc (environment::environment(symbol),
6121 environment::environment(const environment *): Initialize
6122 margin_character_flags.
6123 (margin_character): Rewrite.
6124 (environment::output_line): Add a margin character if
6125 margin_character_flags is non-zero. Turn off the
6126 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
6127 zero, use margin_character_node without copying and then set
6128 margin_character_node to 0.
6130 * devps/DESC.in: Change minimum size to 1000.
6132 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
6134 * troff/symbol.h (symbol::hash): Change return type to unsigned
6136 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
6139 * test-groff: Use -r rather than -x.
6141 * grops/psfig.diff: Include in distribution again.
6143 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
6145 * Makefile.in (dist): Use gzip.
6147 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
6149 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
6150 unistd.h as well as in stdlib.h.
6151 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
6152 defined; otherwise include <sys/types.h> and <unistd.h> if
6153 UNISTD_H_DECLARES_GETOPT is defined.
6155 * configure.in: use builtin(include, ... rather than include(...
6156 * configure: Regenerate with autoconf 1.3.
6158 * libdriver/print.cc (printer::adjust_arc_center): Use new
6159 algorithm suggested by Andy Fyfe.
6161 * libdriver/printer.cc (printer::adjust_arc_center): New function.
6162 * include/printer.h: Declare this.
6163 * grops/ps.cc (ps_printer::draw): Use it.
6164 * grodvi/dvi.cc (dvi_printer::draw): Use it.
6166 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
6168 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
6170 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
6172 * eqn/main.cc (main): Handle "eqn -".
6174 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
6176 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
6178 * mm: Integrate version 1.08.
6180 * pic/troff.cc (troff_output::finish_picture): Set
6181 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
6182 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
6183 if it's not defined. Check whether the register is non-zero rather
6184 than whether it's not defined.
6185 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
6187 * indxbib/indxbib.cc: Move all signal handling into...
6188 * indxbib/signal.c: New file.
6189 * configure.in: Call AC_RETSIGTYPE.
6191 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
6192 * configure.in: Call GROFF_STRUCT_EXCEPTION.
6193 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
6195 * troff/input.cc (token::token, token::operator=): Work round SGI
6197 * pic/object.cc (position::position): Likewise.
6199 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
6201 * pic/pic.h: Move declaration of hypot().
6203 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
6205 * pic/pic.h: Declare hypot().
6207 * pic/pic.h: Define M_PI if necessary.
6209 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
6211 * tmac/tmac.e (re): Add alternative version that doesn't use groff
6214 * devps/prologue.ps (RE): Handle the possibility that the old font
6215 doesn't have a FontName entry.
6217 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
6219 * tmac/tmac.e (fam): Redefine to set family in environment 2.
6220 (@C): Use @fam not fam.
6222 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
6224 * lookbib/lookbib.cc (main): Change type of start to const char *.
6225 * lkbib/lkbib.cc (main): Likewise.
6227 * eqn/lex.cc (definition::definition): Don't use member
6228 initializer syntax for members of anonymous unions.
6230 * troff/input.cc (input_stack::backtrace): Change type of to const
6233 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
6235 * include/stringclass.h (class string): Declare inline friend
6236 functions as inline in class declaration.
6237 * troff/hvunits.h (class hunits, class vunits): Likewise.
6238 * include/refid.h (class reference_id): Likewise
6239 * troff/troff.h (points_to_units(units), scale(units, double)):
6240 Delete declarations.
6241 * libdriver/input.cc (get_char): Delete declaration.
6242 * include/lib.h: Change 2nd argument of getopt from const char **
6244 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
6245 char **' before assigning to a `const char **'.
6246 * tbl/table.cc: Delete extra declarations of prints().
6248 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
6250 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
6251 char **' before assigning to a `const char **'.
6253 * libgroff/errarg.cc (errarg::errarg): Don't use member
6254 initializer syntax for members of anonymous unions.
6256 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
6258 * mm: Integrate version 1.07.
6260 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
6262 * troff/input.c (translate2): Rename to
6263 (translate_no_transparent).
6264 (init_input_requests): Rename tr2 to trnt.
6266 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
6268 * troff/charinfo.h (class charinfo): Add transparent_translate field.
6269 (charinfo::set_translation, charinfo::set_special_translation):
6270 Add second argument that specifies value for
6271 transparent_translate.
6272 (charinfo::get_translation, charinfo::get_special_translation):
6273 Add optional second argument that specifies whether translation is
6274 being used for transparent throughput.
6275 * troff/input.cc (charinfo::set_translation,
6276 charinfo::set_special_translation): Handle second argument.
6277 (charinfo::charinfo): Initialize transparent_translate.
6278 (translate): Split main part off into
6279 (do_translate): New function. Pass argument saying whether
6280 translation applies to transparent throughput.
6281 (translate2): New request.
6282 (init_input_requests): Bind translate2 to `tr2'.
6284 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
6286 * tbl/table.h (class table): Add `nokeep' flag.
6287 * tbl/main.cc (process_options): Handle `nokeep' option.
6288 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
6289 table::do_bottom): Don't output keep/release macro definitions or
6290 calls when `nokeep' option has been specified.
6292 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
6294 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
6296 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
6298 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
6299 block_entry::divert, alphabetic_block_entry::divert): Add extra
6300 argument giving column separation.
6301 (table::compute_widths): Pass column separation to
6302 table_entry::divert().
6303 (block_entry::do_divert): If an entry spans multiple columns and a
6304 minimumum width has been specified for each column, then set the
6305 line length to the sum of the widths (plus possibly the column
6308 * troff/input.cc (set_escape_char): Don't set the escape_char
6309 until after calling has_arg().
6311 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
6313 * tbl/table.cc (table::do_top): Add missing \s0 for double box
6316 * tbl/table.cc (table::print_double_hline): Avoid extra new line
6317 in case where r > nrows - 1.
6319 * tbl/table.cc (BODY_HEIGHT): Deleted.
6320 (LINE_SEP): New definition.
6321 (table::print_single_hline, table::print_double_hline,
6322 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
6323 table::do_row, table::do_top): Use LINE_SEP space before a line
6324 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
6326 * tbl/table.cc (text_entry::print_contents): New function.
6327 (text_string_name, right_text_string_name): Deleted.
6328 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
6329 (simple_text_entry::do_width, numeric_text_entry::do_width,
6330 alphabetic_text_entry::do_width): Don't store the contents of the
6332 (left_text_entry::simple_print, right_text_entry::simple_print,
6333 center_text_entry::simple_print,
6334 alphabetic_text_entry::simple_print,
6335 numeric_text_entry::simple_print): Print the entry directly
6336 instead of using the stored string.
6338 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
6340 * devps/Makefile: Strip PostScript files.
6341 * devps/prologue: Rename to...
6342 * devps/prologue.ps.
6343 * devps/psstrip.sed: New file.
6344 * devps/download: Use .pfa rather than .ps for installed versions
6347 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
6349 * troff/env.cc (input_trap): Give a warning if the argument is out
6352 * troff/env.cc (adjust): Treat negative argument as missing. Round
6353 argument > 5 down to 5.
6355 * troff/env.cc (center, right_justify): Make negative argument zero.
6357 * troff/div.cc (page_offset, vertical_position_traps): Treat
6358 invalid argument as missing.
6359 * troff/env.cc (line_spacing, line_length, title_length, indent,
6360 underline, hyphen_line_max_request, control_char,
6361 no_break_control_char, widow_control_request, adjust, input_trap,
6362 point_size): Likewise.
6363 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
6364 constant_space): Likewise.
6365 * troff/input.cc (compatible, shift, warn_request,
6366 set_escape_char): Likewise.
6368 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
6369 * tbl/table.cc (table::table): Likewise.
6371 * Makefile.dev (install_dev): depends on $(DEVFILES).
6373 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
6375 * devX75, devX75-12, devX100, devX100-12: New directories.
6376 * Makefile.in: Add these to DEVDIRS.
6378 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
6379 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
6380 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
6381 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
6383 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
6384 (uninstall): New target.
6385 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
6386 uninstall_prog, uninstall_dev): New targets.
6388 * troff/div.cc (return_request): Treat an invalid argument as
6391 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
6393 * tmac/tmac.e ((f): Set up the environment even when there's a
6394 current diversion. Transperently throughput a call to @N.
6397 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
6399 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
6400 up to vertical resolution.
6402 * tbl/table.cc (table::do_row): Change row number after printing
6405 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
6407 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
6409 * Rename CHANGES to NEWS.
6411 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
6413 * libgroff/new.cc (operator new): Avoid calling malloc(0).
6415 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
6417 * man.ultrix: Removed.
6419 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
6421 * Makefile.comm (extraclean): Delete files whose names begin with
6424 * pic/troff.cc (troff_output::text): Fix typo in implementation of
6427 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
6429 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
6430 * troff/div.cc (page_length, need_space, space_request): Treat
6431 invalid optional argument as missing.
6432 * troff/env.cc (number_lines): If the first argument is present
6433 but not a number, turn on line numbering, don't change the next
6434 line number and parse the remaining arguments.
6436 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
6438 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
6440 * eqn/box.h: Change declaration accordingly.
6441 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
6442 the specified size was bad but don't give an error. Check for
6444 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
6445 * eqn/lex (do_size): Likewise.
6447 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
6449 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
6452 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
6454 * tbl/table.cc (table::init_output): Improve error message when
6455 table won't fit on one page.
6457 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
6459 * pic/troff.cc (troff_output::start_picture): Generate line
6460 containing a horizontal motion equal to the width of the picture.
6462 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
6463 using GROFF_COMMAND_PREFIX environment variable.
6465 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
6467 * mdate.sh: Use $NF rather than $(NF).
6469 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
6471 * pic/main.cc (main): Use %1 not %c in argument to warning.
6473 * eqn/main.cc (main): Output code to check that geqn was given the
6476 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
6478 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
6479 `ln -s ../Makefile .; make; rm -f Makefile'.
6481 * troff/hyphen: Rename to...
6483 * troff/input.cc (main): Delete -H option. Don't call
6485 * troff/env.cc: Include searchpath.h and macropath.h.
6486 (exception_dictionary): Deleted.
6488 (read_hyphen_file): Deleted.
6489 (hyphenation_language): New struct.
6490 (class trie, class hyphen_trie): Move declarations up.
6491 (trie_node::~trie_node): Deleted.
6492 (trie::delete_trie_node): New function.
6493 (trie::do_delete): New pure virtual function.
6494 (hyphen_trie::do_delete): New function.
6495 (trie::~trie): New function.
6496 (hyphen_trie::~hyphen_trie): New function.
6497 (trie::clear): No need to chcek that tp is not 0.
6498 (current_language, language_dictionary): New variables.
6499 (hyphen_word): Give an error if no current language. Use
6500 exceptions dictionary in current language.
6501 (hyphen_trie::read_patterns_file): Find file using macro_path.
6502 Allow comments (starting with %) in patterns file. Don't make it
6503 a fatal error if the file can't be found.
6504 (hyphenate): Return if no current language. Get the exceptions
6505 dictionary and the hyphenation patterns from the current language.
6506 (set_hyphenation_language): New variable.
6507 (hyphenation_patterns_file): New function.
6508 (hyphenation_language_reg): New class.
6509 (hyphenation_language_reg::get_string): New function.
6510 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
6511 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
6513 * groff/groff.cc (main, help, synopsis): Delete -H option.
6514 * include/Makefile.sub: Don't define HYPHENFILE.
6515 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
6516 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
6517 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
6518 hyphenation patterns.
6520 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
6522 * eqn/neqn.sh: New file.
6523 * eqn/Makefile.sub: Handle neqn.sh.
6525 * eqn/eqn.h: Declare `nroff' variable.
6526 * eqn/box.cc (param_table): Add `nroff' param.
6528 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
6530 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
6532 * troff/troff.h (WARN_FONT): New warning.
6533 (WARN_TOTAL): Change accordingly.
6534 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
6535 (warning_table): Add WARN_FONT.
6536 * troff/node.cc (mount_font_no_translate): Pass argument to
6537 font::load_font. If this is non-zero, give a warning.
6538 Don't give an error message when accessing a font that has already
6539 been found to be invalid.
6540 * include/font.h (font::load, font::load_font): Add additional
6541 optional argument which suppresses error message if the font is
6543 * libgroff/font.cc (font::load_font): Handle additional argument.
6544 (font::load): Add additional argument. If this is non-null, set it
6545 to 1 and don't give error message.
6547 * include/printer.h (printer::end_page): Add argument giving
6549 * libdriver/input.cc (do_file): Pass this.
6550 * grops/ps.cc (ps_printer::end_page): Add argument.
6551 * grodvi/dvi.cc (dvi_printer::end_page,
6552 draw_dvi_printer::end_page): Add argument.
6553 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
6554 columns_per_page members. New member nlines.
6555 (DEFAULT_LINES_PER_PAGE): Deleted.
6556 (tty_printer::tty_printer): Don't compute lines_per_page from
6557 font::paperlength. Don't compute columns_per_page from
6559 (tty_printer::add_char): Don't check horizontal position against
6560 columns_per_page. Grow glyphs vector if neccessary.
6561 (tty_printer::end_page): Add argument giving page_length in units.
6562 Discard lines past end of page.
6564 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
6566 * tmac/tmac.tty-char: Fix definition of \(/l.
6568 * tmac/tmac.X: Define \(en.
6570 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
6572 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
6573 lpq, then use lp rather than lpr.
6575 * tmac/tmac.s (par@reset): Don't call `ad'.
6576 (par*env-init): Call `ad'.
6578 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
6580 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
6583 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
6584 * indxbib/indxbib.cc: Likewise.
6586 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
6588 * libgroff/putenv.c: New file.
6589 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
6590 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
6591 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
6592 stdlib.h with AC_HAVE_HEADERS.
6594 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
6596 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
6599 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
6601 * eqn/box.cc (gsize): Make it an int.
6602 (set_gsize): Parse argument handling increment or decrement.
6603 (box::top_level): Convert gsize to a string.
6605 * troff/input.cc (exit_troff): Make buf unsigned char [].
6606 Call to make_temp_iterator casts buf to char*.
6608 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
6610 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
6611 * Makefile.cpg (depend.temp): Likewise.
6613 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
6615 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
6617 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
6619 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
6621 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
6623 * Version 1.06 released.
6625 * Integrate mm 1.04.
6627 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
6629 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
6631 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
6633 * afmtodit/afmtodit.pl: Add -n option that disables generation of
6635 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
6636 afmtodit. Regenerate.
6638 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
6639 @f back past the current position.
6641 * tmac/tmac.e: Change calls to @R so that comments are not part of
6644 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
6646 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
6648 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
6649 check that we can link a call to a function declared in <stdio.h>.
6650 (GROFF_UNISTD_H): New macro.
6651 * configure.in: Call it.
6652 * Makefile.in: Document it.
6653 * include/posix.h: New file.
6654 * troff/troff.h: Don't include <osfcn.h>
6655 * troff/input.cc: Include posix.h.
6656 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
6658 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
6659 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
6661 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
6662 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
6663 * libbib/search.cc (O_RDONLY): Delete definition.
6664 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
6665 Don't include <osfcn.h>.
6667 * acgroff.m4 (GROFF_TIME_T): New macro.
6668 * configure.in: Call it.
6669 * Makefile.in: Document it.
6671 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
6672 * configure.in: Call it.
6673 * Makefile.in: Document -DTRADITIONAL_CPP.
6674 * include/ptable.h: Don't include generic.h.
6677 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
6678 Afterwards remove [T1 and [T2.
6679 (ref*spec!0, ref*spec!2): Use T1 rather than T.
6680 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
6681 (ref*add-T2): Renamed from ref*add-T.
6682 (ref*add-T1): New macro.
6684 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
6686 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
6688 * libbib/index.cc: Include <fcntl.h>.
6689 (O_RDONLY): Define if necessary.
6690 (make_index_search_item, index_search_item_iterator::get_tag,
6691 index_search_item::check_files): Use O_RDONLY.
6692 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
6693 (O_RDONLY): Define if necessary.
6694 (search_list::add_file): Use O_RDONLY.
6695 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
6697 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
6700 * libbib/index.cc (S_ISREG): Define it if necessary.
6701 (index_search_item::load): Use S_ISREG.
6703 * include/driver.h: Include <errno.h>.
6705 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
6707 * eqn/box.cc (body_height): Increase default value to 85.
6708 (body_depth): Increase default value to 35.
6710 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
6712 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
6713 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
6714 protected from expansion with \E.
6716 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
6718 * Makefile (Makefile): New target.
6720 * Makefile.sub (configure, distfiles): New targets.
6722 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
6725 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
6727 * eqn/box.cc (param_table): Add body_height and body_depth.
6729 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
6731 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
6733 * psbb/Makefile.sub: Don't link with libgroff.a.
6735 * acgroff.m4 (GROFF_PUTENV): New macro.
6736 * configure.in: Call GROFF_PUTENV.
6737 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
6738 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
6741 * troff/env.cc (distribute_space): Rename force_forward argument
6742 to force_reverse. Reverse the list if force_reverse is true.
6744 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
6746 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
6748 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
6749 height or depth to be negative. Guard against SUP_RAISE quantity
6752 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
6754 * devps/generate/textmap: Add `an' (arrowhorizex).
6755 * tmac/tmac.ps: \(an overlaps horizontally.
6756 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
6758 * devps/symbolchars: Add arrowverttp, arrowvertbt.
6759 * devps/textmap: Add arrowvertex.
6760 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
6761 updownarrow delimiters.
6762 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
6764 * tbl/table.cc (simple_entry::position_vertically,
6765 block_entry::position_vertically): For a centered entry, perform
6766 the motion in two stages.
6768 * refer/refer.cc (split_punct): Don't call lookup_token if there
6771 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
6773 * troff/input.cc (token::next): Delete token_node after copying
6776 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
6779 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
6781 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
6783 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
6785 * grops/ps.cc (usage): -b option takes an argument.
6787 * devps/prologue (PLG): New procedure.
6788 * grops/ps.cc (main, usage): New -g option.
6789 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
6792 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
6794 * include/cset.h: Include <limits.h> if we have it.
6796 * libgroff/illegal.cc: New file.
6797 * include/lib.h (illegal_input_char): Use table.
6798 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
6799 * pic/lex.cc (ARG1): Renumber to 14.
6800 * eqn/lex.cc (ARG1: Likewise.
6802 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
6803 (eg 1.05.90) correctly.
6805 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
6807 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
6808 Rename $r and $R registers to $v and $V.
6809 ($r, $R): Initialize to 0.
6810 (@v, @V): New macros.
6814 * troff/input.cc (main, usage): Add -R option that says not to
6816 * eqn/main.cc (main, usage): Rename -n to -R.
6818 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
6820 * devps/DESC.in: Leave font positions 5-9 blank.
6821 * devdvi/DESC.in: Likewise.
6823 * grog/grog.pl: Handle `.PS <file' correctly.
6825 * troff/input.cc (input_stack::push): Improve error message when
6826 input stack limit exceeded.
6828 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
6830 * refer/refer.cc (main): Fix typo in handling of `a' option.
6832 * refer/refer.cc (do_bib): In state START after a newline remain
6835 * groff/groff.sh: Deleted.
6836 * groff/Makefile.sub: Delete handling of groff.sh.
6838 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
6839 to determine whether to use \X'ps:...'.
6840 * tmac/troffrc: Set 0p register to 0.
6841 * tmac/tmac.ps: Set 0p register to 1.
6843 * groff/groff.cc: Support -X option. Give warning for -TXps and
6844 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
6845 * tmac/troffrc: Support -r.X=1.
6847 * pic/troff.cc (troff_output::dot): Don't test
6848 zero_length_line_flag.
6850 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
6852 * include/lib.h: Declare getopt() and friends unless
6853 STDLIB_H_DECLARES_GETOPT is defined.
6855 * doc/chars.tr: Delete.
6856 * man/groff_char.man: New file.
6858 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
6860 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
6861 user has changed register format.
6863 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
6865 * groff/groff.cc: Get rid of device_table. Get postprocessor from
6866 `postpro' command in DESC file. Get spooler command from `print'
6867 command in DESC file. Execute spooler command with /bin/sh.
6869 * groff/groff.cc: Split Unix-specific parts into...
6870 * groff/pipeline.c: New file.
6873 * COPYING: New file.
6874 * all files: Update copyright notices.
6876 * Rearrange files. Redo Makefiles. Use autoconf.
6878 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
6880 * troff/input.c (charinfo_to_node_list): Interpret character
6881 definition with escape_char of `\'.
6883 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
6885 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
6886 Define INT_DIGITS as big enough for 64-bit integer.
6887 * lib/strtol.c: Don't include lib.h.
6888 * lib/lib.h: Delete ifdef __cplusplus stuff.
6890 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
6892 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
6893 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
6894 get DESC from current directory.
6896 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
6898 * tbl/main.c (main): Always reset the line number when reading
6901 * tbl/table.c (table::print_single_hline, table::print_double_hline,
6902 table::define_bottom_macro, table::do_row, table::do_top): Round
6903 vertical spacing up to vertical resolution.
6905 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
6907 * ps/ps.h (enum resource_type): Avoid comma at end of
6909 * dvi/dvi.c (class dvi_printer): Likewise.
6910 * dvi/tfmtodit.c (gf::load): Likewise.
6911 * refer/label.y (struct expression): Likewise.
6912 * refer/refer.c (class label_processing_state): Likewise.
6913 * refer/indxbib.c (do_file): Likewise.
6914 * troff/troff.c (enum warning_type): Likewise.
6915 * tbl/main.c (process_data): Likewise.
6916 * troff/charinfo.h (class charinfo):
6918 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
6920 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
6922 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
6924 * groff.c: Move to new groff subdirectory.
6925 * groff/Makefile: New file.
6926 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
6928 * man/mdate.sh: Use ls -L if supported.
6930 * Consolidate all header files produced by gendef into lib/defs.h.
6931 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
6932 Don't include path.h.
6933 * lib/Makefile (path.h): Don't generate.
6934 * troff/input.c: Include defs.h. Don't include config.h.
6935 * troff/Makefile (config.h): Don't generate.
6936 * refer/index.h: Don't include suffix.h.
6937 * refer/index.c: Include defs.h.
6938 * refer/indxbib.c: Include defs.h.
6939 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
6941 * refer/Makefile (suffix.h, path.h): Don't generate.
6942 * groff.c: Don't include config.h. Include defs.h.
6943 * Makefile (config.h): Don't generate.
6944 (lib/defs.h): Generate.
6945 (topclean): Remove lib/defs.h.
6947 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
6949 * lib/malloc.c, lib/getpagesize.h: Deleted.
6950 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
6952 * lib/Makefile: Delete malloc-related stuff.
6953 * lib/new.c: Workaround COOKIE_BUG if necessary.
6955 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
6956 needed header files directly.
6957 * refer/refer.h: Omit definition of DEFAULT_INDEX.
6958 * Makefile: Include definition of DEFAULT_INDEX in path.h.
6960 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
6962 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
6964 * lib/font (font::load_desc, font::load): Don't split argument of
6966 (font::handle_unknown_font_command): Change type.
6967 * ps/ps.c (ps_font::handle_unknown_font_command,
6968 handle_unknown_desc_command): Change type.
6969 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
6971 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
6973 * lib/font.h (font::handle_unknown_font_command): Add file and
6975 * lib/font.c (font::handle_unknown_font_command):
6976 * ps/ps.c (ps_font::handle_unknown_font_command):
6977 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
6978 lineno arguments. Use _with_file_and_line functions for error
6981 * lib/fontfile.c (font::unknown_desc_command_handler): New static
6983 * lib/font.c (font::set_unknown_desc_command_handler): New
6985 (font::load_desc): For unknown commands, call
6986 unknown_desc_command_handler if not null.
6987 * lib/font.h (class font): Declare them.
6988 (FONT_COMMAND_HANDLER): New typedef.
6989 * ps/ps.c (handle_unknown_desc_command): New function.
6990 (main): Set bflag if we had a -b option. Call
6991 font::set_unknown_desc_command_handler.
6992 (broken.h): Don't include.
6993 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
6995 * ps/devps/Makefile: Add `broken' command to DESC file using
6996 BROKEN_SPOOLER_FLAGS.
6998 * macros/tmac.e ([, ]): Add as synonyms for { and }.
7000 * macros/tmac.e ($p): Only exdent if \$3 > 0.
7002 * macros/tmac.e (@R, @S): New macros.
7003 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
7004 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
7005 Declare $H, $[0-9], .. macros with @S.
7006 Declare |0, |1, |2, |3 strings with @S.
7008 * macros/tmac.e (@S): Rename to @U.
7010 * macros/tmac.e (@z): Define @b and bp as empty instead of
7013 * macros/tmac.e (@m): Deleted.
7014 (@h): Don't call @m.
7015 (@z): Don't set @m trap.
7017 * macros/tmac.e ($h, $f): Define |z as empty string.
7019 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
7022 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
7024 ()f): Likewise for * register.
7026 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
7027 argument is missing, don't change $R. Call sr with three
7028 arguments when initializing.
7030 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
7032 * macros/tmac.e (sr): New macro.
7033 Initialize $r and $R using sr.
7035 * macros/tmac.e (,): Delete \*(#[.
7037 * troff/env.c (set_tabs): Read the tab type even if the position
7038 is bad. Allow the position of the first tab stop to be negative.
7040 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
7042 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
7044 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
7045 rather than -DPATHCONF_MISSING.
7046 * Makefile: Get rid of PATHCONF_MISSING.
7048 * refer/map.c: New file.
7049 * refer/index.c: Interface to mmap through map.c. Rename map_size
7051 * refer/Makefile: Handle map.c.
7052 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
7054 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
7056 * Makefile: RANLIB should be `true' if there is no ranlib.
7057 * lib/Makefile (libgroff.a): Simplify.
7058 * driver/Makefile (libdriver.a): Simplify.
7060 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
7061 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
7064 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
7066 * troff/env.c (compare_ranges): Declare as extern "C".
7068 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
7070 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
7072 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
7074 * pic/troff.c (troff_output::text): Merge in grops_output::text,
7075 but conditionalize use of \X based on \*(.T.
7076 (grops_output::*): Deleted.
7077 * pic/output.h: Delete declaration of make_grops_output.
7078 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
7079 by default. -n sets it to 0.
7080 (usage): Corresponding changes.
7081 * groff.c (main): Don't pass -x or -p to pic.
7082 * groff.sh: Likewise.
7084 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
7087 * ps/devps/afmtodit: Change calculation of asc_boundary and
7088 desc_boundary. Make these bounds inclusive.
7089 * ps/devps: Regenerate font files.
7091 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
7093 * macros/tmac.latin1: New file.
7094 * macros/tmac.tty-char: Use tmac.latin1.
7095 (tmac.tty-tr): Deleted.
7096 * macros/Makefile: Install tmac.latin1.
7097 * macros/tmac.dvi: Use tmac.latin1.
7098 * macros/troffrc: Translate \[char160] onto no-break space here.
7099 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
7101 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
7103 * macros/tmac.Xps: Use `do' request.
7105 * macros/tmac.ps: Use `do' request.
7107 * macros/tmac.e (@C): Use `do' request.
7109 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
7110 * macros/Makefile: Install tmac.X*.
7112 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
7113 * tty/Makefile: Don't install tmac.tty*.
7114 * macros/Makefile: Install tmac.tty*.
7116 * dvi/tmac.dvi: Move to macros.
7117 * dvi/Makefile: Don't install tmac.dvi.
7118 * macros/Makefile: Install tmac.dvi.
7120 * ps/tmac.ps*: Move to macros.
7121 * ps/Makefile: Don't install tmac.ps*.
7122 * macros/Makefile: Install tmac.ps*.
7124 * eqn/box.c: Provide draw_lines parameter corresponding to -D
7126 * macros/eqnrc: Set draw_lines parameter based on device.
7127 * groff.c: Don't pass -D flag to eqn.
7128 * groff.sh: Likewise.
7129 * eqn/main.c: Warn about use of -D.
7131 * troff/input.c (process_startup_file): New function.
7132 (main): Call process_startup_file().
7133 * macros/troffrc: New file.
7134 * macros/Makefile: Install troffrc.
7135 * groff.c (main): Don't pass extra -m option to troff. For a
7136 pseudo device pass the name of the pseudo device to troff using
7138 * groff.sh: Likewise.
7139 * groff.c (possible_command::prepend_arg): Deleted.
7141 * troff/input.c (do_request): New function.
7142 (init_input_requests): Bind "do" to do_request.
7144 * eqn/main.c (main): Instead of loading eqnchar from device directory,
7145 load eqnrc from macro directory.
7146 * macros/eqnrc: New file.
7147 * macros/Makefile: Install eqnrc.
7148 * ps/devps/eqnchar: Deleted.
7149 * ps/devps/Makefile: Don't install eqnchar.
7150 * dvi/devdvi/eqnchar: Deleted.
7151 * dvi/devdvi/Makefile: Don't install eqnchar.
7152 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
7155 * lib/device.[ch]: New files.
7156 * lib/font.h (font::set_device_name, font::get_device_name):
7158 * lib/fontfile.c: Use device.h.
7159 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
7160 * troff/input.c: Delete definition of `device'.
7161 (main): Don't initialize device.
7162 * troff/troff.h: Include device.h rather than declaring device.
7163 * troff/Makefile: No need to handle DEVICE.
7164 * driver/input.c: Include device.h. Don't use
7165 font::{set,get}_device_name.
7166 * groff.c, Makefile: Rename device.h to config.h.
7167 * groff.c: Use library device variable.
7168 * eqn/main.c: Use library device variable.
7169 * eqn/Makefile: No need to handle DEVICE.
7171 * lib/searchpath.[ch]: New files.
7172 * lib/Makefile: Handle searchpath.[ch].
7173 * troff/input.c (open_file, init_dirs): Deleted.
7174 (macro_dirs): Deleted.
7175 (open_mac_file, macro_source): Use class search_path.
7176 (add_string, struct string_list): Move definition.
7177 (main): Change -M option to use macro_path. Delete call to
7179 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
7180 Rewrite to use class search_path.
7181 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
7182 * lib/Makefile: fontfile.c depends on searchpath.h.
7183 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
7185 * lib/macropath.[ch]: New files.
7186 * troff/Makefile: No need to handle MACROPATH.
7188 * troff/input.c: Delete DUMP code.
7189 * lib/fontfile.c, lib/font.h: Delete
7190 font::forget_command_line_font_dirs.
7192 * troff/input.c (push_token): New function.
7193 (handle_first_page_transition): Use push_token().
7194 (process_input_stack): Change handling of a space at the beginning
7197 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
7199 * troff/input.c (font_dirs): Delete unused variable.
7201 * eqn/lex.c (do_set): Correct error messages.
7203 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
7205 * troff/input.c (do_define_string): Allow the string name to be
7206 followed immediately by a tab.
7207 (define_character): Likewise.
7209 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
7211 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
7214 * troff/input.c (input_iterator::is_file): New virtual function.
7215 (file_iterator::is_file): New function.
7216 (input_stack::end_file): New function.
7217 (input_stack::next_file): Handle the situation where there is no
7218 file on the input stack correctly. Avoid making two passes over
7220 (next_file): Make the filename optional; in this case call
7221 input_stack::end_file().
7223 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
7225 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
7226 produce a real _ charater when the current font is CW and _
7229 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
7230 expression to work around gcc 2.2 bug.
7232 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
7234 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
7236 * troff/env.c (environment::add_padding): New function.
7237 (environment::add_char): Use add_padding().
7238 (environment::space): Likewise.
7239 (environment::wrap_up_field): Add some padding if there is none
7240 and there's no current tab.
7241 * troff/env.h: Declare environment::add_padding.
7243 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
7245 * pic/pic.y: undef fmod and rand before declaring them.
7247 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
7249 * troff/input.c (main): If the DESC file specifies a font name of
7250 0, then leave the corresponding font position empty.
7252 * nroff.sh: New file.
7253 * Makefile (install.nobin): Install nroff.sh.
7255 * tty/devlatin1/R.proto: Add ao as synonym for de.
7256 * tty/tmac.tty-char: Define ao as o.
7258 * tty/dev{ascii,latin1}/R.proto: Add aq.
7259 * tty/tmac.tty-char: Delete definition of aq.
7261 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
7263 * troff/input.c (init_charset_table): Don't translate 0240.
7264 * ps/tmac.ps: Translate char160 to space.
7265 * dvi/tmac.dvi: Likewise.
7266 * tty/tmac.tty: Likewise.
7268 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
7270 * dvi/tmac.dvi: Add support for all Latin-1 characters.
7272 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
7273 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
7276 * tty/tmac.tty-char: Add \(ah.
7278 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
7279 No need to define \(FM and \(!/. Conditionalize all character
7282 * ps/devps/lgreekmap: Add +h, +f, +p.
7284 * ps/tmac.psnew: New file.
7285 * ps/Makefile: Install tmac.psnew.
7287 * troff/input.c (charinfo_to_node_list): Don't ever interpret
7288 character definitions in compatible mode.
7290 * troff/input.c (remove_character): New function.
7291 (init_input_requests): Bind remove_character to "rchar".
7293 * ps/tmac.psold: New file.
7294 * ps/Makefile: Install tmac.psold.
7295 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
7296 characters into tmac.psold. Make these definitions unconditional.
7298 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
7300 * ps/tmac.ps: Don't define \('c and \('C.
7302 * ps/devps/textmap: Move Greek characters to...
7303 * ps/devps/symbolchars:
7305 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
7307 * ps/devps/text.enc: Add quotesingle.
7308 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
7309 * tty/tmac.tty-char: Likewise.
7310 * dvi/devdvi/texmi.map: Add +h, +f, +p.
7311 * dvi/devdvi/texi.map: Add Fn.
7312 * dvi/devdvi/msam.map: Add lz.
7313 * dvi/tmac.dvi: Handle Bq, bq, aq.
7315 * pic/lex.c (get_token): Recognize 'th.
7316 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
7318 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
7320 * ps/devps/textmap: Move di, mu, +- to...
7321 * ps/devps/symbolchars:
7323 * macros/tmac.s (@XS): Don't call par@reset or fi.
7324 (XA): Call LP. Turn off adjustment. Reduce line length.
7326 * macros/tmac.s: Initially alias XS to LP.
7327 (XS): Rename to @XS.
7328 (cov*ab-init): Alias XS to @XS.
7330 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
7332 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
7333 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
7334 (token::is_size, token::changes_env): Deleted.
7335 * troff/number.c (parse_term): No need to process \s explicitly.
7336 Call tok.next() only after scale indicator has been processed.
7337 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
7339 (token::next): Handle \s, \f, \S, \H immediately rather than
7340 returning them as tokens.
7341 (token::operator==, token::description, token::add_to_node_list,
7342 token::process): Remove handling of deleted tokens.
7344 * troff/env.c (environment::add_char): When adding padding
7345 indicator character, call start_line() if necessary.
7347 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
7349 * ps/devps/afmtodit: Don't output 0 kerns.
7351 * ps/devps/afmtodit: Remove directory from name of encoding in
7352 font description file.
7354 * ps/devps/afmtodit: Improve error messages.
7356 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
7358 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
7359 * ps/devps/FontMakefile: Deleted.
7360 * ps/devps/afmname: New file.
7362 * ps/devps/symbol.sed: New file.
7363 * ps/devps/symbol.diff: Deleted.
7364 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
7365 Generate zapfdr.afm from zapfd.afm.
7367 * tty/tmac.tty (tty-char): Prefix definition with ".
7369 * macros/tmac.an (TP): Don't start a diversion if one has already
7372 * tty/tmac.tty-char: Add Latin-1 characters.
7374 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
7376 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
7378 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
7379 Move declaration of struct horizontal_span.
7381 * tbl/table.c (table::table): Initialize span_list.
7382 (table::~table): Delete span_list.
7384 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
7386 * ps/devps/Makefile: Avoid dependency on GNU make.
7388 * ps/tmac.ps: Check that character does not already exist before
7391 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
7392 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
7393 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
7396 * tty/tmac.tty-char: New file.
7397 * tty/Makefile: Install tmac.tty-char.
7398 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
7401 * tty/tmac.tty: Fix definition of \(34.
7403 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
7404 bracket-drawing characters onto |. Add *o.
7406 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
7407 only if current_field.
7409 * troff/dictionary.c (dictionary::lookup): Free old_table after
7412 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
7414 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
7415 whose glyphs are identical to glyphs of some Roman character.
7417 * tty/devlatin1/R.proto (bu): Deleted.
7418 * tty/devascii/R.proto (bu): Deleted.
7419 * tty/tmac.tty: Add definition of \(bu.
7421 * eqn/main.c (do_file): Pass FILE as argument.
7422 (main): Automatically load eqnchar. New options -F and -n.
7423 Pass do_file an opened FILE.
7424 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
7425 No need to include font.h.
7426 * groff.sh: Likewise. Don't need to use - for standard input.
7427 Prefix files with -- if first file starts with -.
7429 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
7431 * troff/env.c (environment::possibly_break_line): Don't set line
7432 to 0 across call to output_line(). Don't call output_line() until
7433 after discarding nodes after break.
7435 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
7437 * request.h (macro::empty): Declare it.
7438 * input.c (macro::empty): New method.
7439 (interpolate_macro): Don't give a WARN_SPACE if the two-character
7442 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
7444 * troff/env.c (environment::start_field): Decrement space_total
7445 when a space is frozen.
7447 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
7449 * macros/tmac.an (R): Delete macro.
7451 * troff/input.c (get_copy, token::next): Support \# (like \" but
7452 newline is ignored).
7454 * troff/input.c (token::next): Fix error message in 'Y' case.
7456 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
7458 * eqn/delim.c (define_extensible_string): Recognize any prefix of
7461 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
7463 * c++test.c: Include <osfcn.h>.
7465 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
7468 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
7470 * tbl/table.c (table::divide_span): Don't count column separation
7471 if expand was specified.
7473 * tbl/main.c (process_format): Don't ignore width specs in
7474 continued format. Give warning for changing equal widths or
7475 column separation in continued format.
7476 (process_data): Set column separation, minimum width, equal
7477 columns at end of table.
7479 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
7481 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
7482 node::add_discretionary_hyphen): Use soft_hyphen_char.
7483 (set_soft_hyphen_char): New function.
7484 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
7486 * Makefile (c++tested): Give more helpful message if test fails.
7488 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
7490 * troff/input.c (init_charset_table): Translate 0240 to
7491 an unbreakable space.
7493 * troff/token.h (token::hyphen_indicator): New function.
7494 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
7496 * troff/input.c (translate): Allow translation to \%.
7497 * troff/node.c (node::add_char): Handle
7498 TRANSLATE_HYPHEN_INDICATOR.
7499 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
7501 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
7504 * tty/devlatin1/R.proto: \(hy and - should print as 055.
7506 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
7508 * groff.c (run_commands): If the last command gets a SIGPIPE send
7509 a SIGPIPE to all children than haven't yet terminated. When
7510 command terminates, set pid field to -1.
7512 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
7514 * groff.c (main): Pass an appropriate -filename option to gxditview.
7516 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
7518 * Makefile.bd (install): Remove existing program before copying.
7520 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
7521 programs which have Unix counterparts to be installed with
7522 user-specified prefix.
7524 * troff/input.c (exit_troff): Don't check if exit_started.
7525 (exit_request): Don't call exit_troff if exit_started.
7527 * Makefile.bd (install.mm): Rename to install.dwbmm.
7529 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
7531 * driver/input.c (do_file): Add missing break for '#' case.
7533 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
7535 * troff/input.c (input_stack::clear): Clear past any boundaries and
7536 then add the boundaries back.
7538 * troff/input.c (exit_troff): Return immediately if already
7541 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
7543 (pg*end-page): If the text has ended and there are no more
7544 footnotes or keeps, exit.
7546 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
7548 * troff/input.c (init_charset_table): Make \(rq transparent by
7551 * macros/tmac.an: Define lq and rq strings.
7553 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
7555 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
7557 * troff/env.c (environment::final_break): New function.
7558 (environment::newline): Set prev_line_interrupted to 2 if
7560 * troff/env.h: Declare environment::final_break.
7561 * troff/input.c (exit_troff): Call environment::final_break()
7562 instead of environment::do_break().
7564 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
7565 doesn't already exist.
7566 * macros/man.local: New file.
7567 * macros/tmac.an: Load man.local.
7568 * macros/man.ultrix: New file.
7570 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
7572 * troff/input.c (exit_groff): Rename to...
7573 (exit_troff): New function.
7575 * troff/div.c (exit_started, done_end_macro,
7576 seen_last_page_ejector): New global variables.
7577 (began_page_in_end_macro): New static variable.
7578 (exit_flag): Deleted.
7579 (top_level_diversion::top_level_diversion): Initialize
7581 (top_level_diversion): More elaborate test for whether
7582 cleanup_and_exit() should be called.
7583 Set began_page_in_end_macro if the end macro isn't yet finished.
7584 * troff/div.h (top_level_diversion::last_page_count): New data
7586 (top_level_diversion::set_last_page): New function.
7587 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
7588 * troff/env.c (do_break): Zero prev_line_interrupted.
7589 * troff/input.c (exit_flag): Delete declaration.
7590 (LAST_PAGE_EJECTOR): New magic cookie.
7591 (token::next): Handle LAST_PAGE_EJECTOR.
7592 (exit_groff): Set exit_started and done_end_macro instead of
7593 exit_flag. Call top_level_diversion::set_last_page. Push a
7594 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
7595 another ejection after setting seen_last_page_ejector.
7597 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
7599 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
7601 * macros/tmac.e (TH): Make sure there's room for the initial
7604 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
7605 Set FVS in points rather than units.
7607 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
7609 * troff/div.c (top_level_diversion::add_trap): Don't consider the
7610 position of empty slots.
7612 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
7614 * ps/devps/S: Fix height and depth of parenrightex.
7615 * ps/devps/symbol.diff: Regenerate.
7617 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
7619 * tmac.e (u): Do underlining as in -mgs.
7621 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
7623 * tty/tty.c (tty_printer::end_page): If overstriking is
7624 suppressed, still turn overstruck horizontal and vertical lines
7627 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
7630 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
7632 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
7634 * Version 1.05 released.
7636 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
7638 * tty/tty.c: Instead of keeping an array of glyphs and then
7639 sorting it, keep a ordered linked list of glyphs for each line.
7641 * driver/driver.h: Include stddef.h.
7643 * tty/tty.c (compare_glyph):
7644 * refer/refer.c (rcompare):
7645 * troff/env.c (compare_ranges): Arguments of qsort comparison
7646 function should be const void *.
7648 * troff/number.c (parse_term):
7649 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
7652 * refer/label.y (consider_authors): Don't access variables
7653 constructed under a condition outside that condition: put braces
7654 round for statement containing declaration; redeclare use of same
7657 * pic/pic.y (text_expr): Delete production that allows
7658 parenthesised text_expr.
7659 (expr): Allow a conditional_expr to appear in parentheses.
7660 (conditional_expr): Rename to any_expr.
7662 * mm: Install new version 1.01 from jh.
7664 * lib/font.c (font::get_width): Cache scaled widths.
7665 (font::font): Initialize widths_cache.
7666 (font::~font): Destroy widths_cache.
7667 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
7669 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
7671 * c++test.c, c++test.ref: New files.
7672 * Makefile: Check that the C++ compiler works.
7674 * ps/tmac.pspic (PSPIC): Do a break.
7676 * ps/tmac.ps: Move definition of PSPIC into...
7677 * ps/tmac.pspic: New file.
7678 (PSPIC): Draw box around picture, but make it invisible to grops.
7679 * ps/tmac.ps: Load tmac.pspic.
7680 * ps/Makefile: Install tmac.pspic.
7682 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
7684 * lib/font.c (scale_round): If n is negative,
7685 subtract .5 before truncating floating point result.
7687 * lib/fontfile.c: Include <errno.h>.
7689 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
7691 * driver/input.c (get_char): Inline. Don't update current_lineno.
7692 Change callers to up date current_lineno if necessary.
7693 Use get_char() instead of getc(current_file).
7695 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
7697 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
7699 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
7701 * tty/tty.c (tmac.tty): Define \(rg as (R).
7703 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
7705 * lib/lib.h: New define a_delete.
7706 * Use a_delete instead of delete when deleting an array of objects
7707 without destructors.
7709 * lib/lib.h: Rename adelete to ad_delete.
7710 * Change uses of adelete.
7712 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
7714 * eqn/eqn.y: Include lib.h.
7716 * troff/node.c (grow_font_table): Delete old_font_table.
7718 * mm: Install new version from jh.
7720 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
7722 * tbl/table.h (format_type): Make global instead of local to class
7723 entry_format. Prefix enumerators with FORMAT_.
7724 * tbl/table.c, tbl/main.c: Corresponding changes.
7725 * refer/token.h (token_type): Make global. Prefix enumerators
7727 * refer/token.[ch]: Corresponding changes.
7728 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
7730 * troff/div.c (node::set_vertical_size): Don't name argument.
7732 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
7734 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
7735 * lib/lib.h: Define adelete accordingly.
7736 * pic/object.c (graphic_object::graphic_object):
7737 * tbl/main.c (format::~format):
7738 * tbl/table.c (table::~table):
7739 * refer/ref.c (reference::~reference, reference::merge,
7740 reference::insert_field, reference::delete_field): Use adelete.
7742 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
7744 * tbl/table.h: Corresponding changes.
7746 * common.c (common_output::dashed_arc, common_output::dotted_arc):
7747 Ensure total_angle is positive.
7749 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
7751 * refer/ref.c (reference::merge, reference::insert_field,
7752 reference::delete_field): Avoid delete[0].
7754 * refer/token.c (init_special_chars): Move calls to cmupper
7755 outside calls to init_two_char_letter to work around bug in gcc
7758 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
7760 * lib/new.c (operator new): Use __builtin_new for g++.
7762 * pic/object.c (graphic_object::~graphic_object): Don't use
7765 * pic/object.c (output::compute_scale): Initialize max_width and
7768 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
7770 * troff/input.c (write_request): Call fflush.
7772 * troff/node.h (class composite_node): Move declaration to node.c
7773 * troff/input.c (charinfo_to_node): Rename to ...
7774 (charinfo_to_node_list): Return node list rather than composite
7776 * troff/node.c (make_composite_node): New function.
7777 (make_node, add_char): Call make_composite_node instead of
7779 (class composite_node): Add a tfont * member. Delete font_size
7781 (composite_node::composite_node, composite_node::copy,
7782 composite_node::size): Corresponding changes.
7783 (composite_node::tprint): Provide constant spacing, emboldening
7784 and track kerning as specified in tfont.
7785 (composite_node::width): Change width calculation accordingly.
7786 * troff/env.h (environment::composite): New member.
7787 (environment::is_composite, environment::set_composite): New
7789 * troff/env.c (environment::environment): Initialize composite.
7790 * troff/input.c (charinfo_to_node): Call
7791 environment::set_composite.
7792 * troff/node.c (make_composite_node, make_glyph_node): Use the
7793 plain version of the tfont if the environment is composite.
7795 * troff/node.c (font_info::get_space_width): Additional argument
7796 giving space_size. Handle constant space correctly. Scale by
7797 space_size unless constant spaced.
7798 (env_sentence_space_width): New function.
7799 * troff/node.h: Declare it.
7800 * troff/env.h (environment::get_space_size,
7801 environment::get_sentence_space_size,
7802 environment::get_narrow_space_width,
7803 environment::get_half_narrow_space_width): Make inline.
7804 (environment::get_space_width): Make inline. Just call
7806 * troff/env.c: Delete definitions for funtions made inline.
7807 (environment::space_newline, environment::space): Use
7808 env_sentence_space_width(). Don't scale by space_size.
7809 * troff/node.h: Move declarations of env*space_width() functions
7812 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
7814 * macros/tmac.s (PS): Don't try to set negative indent.
7816 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
7818 * pic/pic.y: Fix min function.
7820 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
7822 * man/mdate.sh: Clear LANGUAGE.
7824 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
7826 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
7827 * pic/lex.c: New COMMAND keyword.
7828 * pic/pic.y (print_args, print_arg): New rules.
7829 (placeless_element): Use print_args for PRINT.
7830 New COMMAND element.
7832 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
7834 * troff/input.c (terminal): Handle missing argument correctly.
7836 * pic/pic.y (text_expr): New rule.
7838 * pic/pic.y: Implement := operator.
7840 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
7842 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
7845 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
7847 * ps/devps/dingbatsrmap: Include this in the distribution.
7849 * macros/tmac.doc: Replace with new version from 2nd Networking
7850 Release. Fix loading of doc-* files.
7851 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
7852 * macros/tmac.doc.old: New file. Apply fixes that had been
7853 applied to old tmac.doc.
7854 * macros/tmac.andoc: Check that we're running under groff.
7855 * macros/Makefile: Rework.
7857 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
7859 * tbl/table.h (format_type):
7860 * refer/token.h (token_type): If NESTED_TYPES is defined, use
7861 typedef to make these types visible at file scope.
7862 * Makefile: Add NESTED_TYPES configuration option.
7864 * troff/div.c (mark): At the top level use the value of
7865 nl_reg_contents rather than the current vertical position.
7867 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
7869 * tty/tty.c: Implement \D for horizontal or vertical lines.
7870 (tty_printer::set_char): Use vec_used+2 as serial number.
7871 Don't allow size of vector to exceed USHRT_MAX-2.
7872 Split off part into...
7873 (tty_printer::add_char): New function.
7874 (tty_printer::draw): New function.
7875 (compare_glyph): Handle equal serial numbers.
7876 (tty_printer::end_page): Handle overstruck characters from \D.
7877 (main, usage): Implement -d option.
7879 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
7881 * tbl/main.c (process_format):
7882 * eqn/text.c (split_text):
7883 * troff/input.c (token::next): Use inner block for declarations
7884 with initializers in switch statement.
7886 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
7888 * pic/common.c (common_output::dash_line): Cope with zero-length
7891 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
7893 * Version 1.04 released.
7895 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
7897 * macros/tmac.an (TH): Define a macro an-init to define variables
7898 based on command line arguments.
7899 (an-header): Call it.
7901 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
7903 * Makefile (install.mm): Rename to install.dwbmm.
7905 * Makefile: Integrate mm.
7906 * mm: New directory.
7908 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
7910 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
7913 * pic/troff.c (troff_output::simple_spline,
7914 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
7915 shadowing parameter.
7917 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
7919 * lib/ptable.h: Add explicit casts when converting from unsigned
7922 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
7923 * dvi/devdvi/Makefile: Install SA, SB.
7925 * refer/indxbib.c: Add declaration of mktemp.
7927 * refer/lookbib.c: Add declaration of isatty.
7929 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
7931 * pic/lex.c (interpolate_macro_with_args): While collecting
7932 arguments, keep track of whether we're in a string.
7934 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
7936 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
7937 down with \v, so as to avoid problems with top of page trap
7938 setting no space mode.
7940 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
7942 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
7944 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
7946 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
7947 Improve error message.
7949 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
7951 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
7954 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
7956 * groff.c (possible_command::execp): Always use _exit() after a
7959 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
7960 NO_SYS_WAIT_H configuration options.
7961 * groff.c: Use these options. Use POSIX-style macros to extract
7962 fields from the status returned by wait().
7964 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
7966 * tbl/table.c (table::compute_separation_factor): Allow the
7967 separation factor to drop to 0.
7969 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
7971 * refer/search.c: Include <errno.h>.
7973 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
7975 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
7977 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
7980 * pic/lex.c (input_stack::bol): Move definition out of class body.
7982 * pic/main.c: On MSDOS munge argv[0].
7984 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
7986 * lib/ptable.c (hash_string): Use unsigned long rather than
7988 (next_ptable_size): Use unsigned rather than int. Give an error
7989 message if we've hit the largest table size.
7990 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
7993 * pic/object.h (object_spec): Make flags unsigned long. Declare
7994 flags as const unisgned long rather than as enums.
7996 * pic/output.c: Deleted.
7998 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
8000 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
8001 Add additional argument.
8002 (line_entry::note_double_vrule_on_{left,right}): Set value of
8003 douvle_vrule_on_{right,left} flag according to argument.
8004 (simple_line_entry::simple_print,
8005 simple_line_entry::double_line_print): If adjacent to double vrule
8006 on a corner extend rather than shorten the rule by half the double
8009 * troff/number.c (parse_term): In checking for overflow, handle the
8010 case where the current horizontal position is negative.
8012 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
8014 * pic/object.c (draw_arrow): Check for object having zero length.
8016 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
8018 * eqn/main.c (do_file): Split off inline equation handling into...
8019 (inline_equation): New function. Search for starting delimiter
8021 (delim_search): New function. Don't recognize a delimiter that
8022 occurs in the name of an escape sequence, number register, string
8025 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
8027 * eqn/delim.c (delim_box::compute_metrics): Don't call
8028 define_extensible_string if left is 0.
8029 (delim_box::output): Don't print the left delimiter if left is 0.
8030 (delim_box::debug_print): Check for left == 0 before calling printf.
8032 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
8034 * troff/Makefile (majorminor.c): Include only digits in
8037 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
8039 * refer/dirnamemax.c: new file.
8040 * refer/genlimits.c: Deleted.
8041 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
8042 Don't check path length.
8043 * refer/Makefile: Add dir_name_max.o; delete genlimits.
8044 * Makefile: Add PATHCONF_MISSING option.
8046 * refer/indxbib.c (get_cwd): New function.
8047 (main): Use get_cwd().
8048 * lib/getcwd.c: New file.
8049 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
8051 * lib/Makefile: Compile getcwd.o.
8053 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
8056 * refer/indxbib.c (main): Check success of mktemp.
8058 * lib/tmpfile.c: New file.
8059 * lib/Makefile: Add tmpfile.c.
8060 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
8061 * ps/ps.h: Delete declaration of mktemp().
8062 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
8063 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
8064 * driver/driver.h: No need now to include errno.h.
8066 * everywhere: Set errno to 0 before calling fopen().
8068 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
8069 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
8070 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
8072 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
8074 * troff/env.h (translate_space_to_dummy): Declare it.
8075 * troff/env.c (environment::space_newline, environment::space):
8076 If translate_space_to_dummy is set then make the width of spaces 0.
8077 * troff/input.c (translate): If the second character of a
8078 translation is a space, translate to unbreakable space. If the
8079 first character is a space, set or clear translate_space_to_dummy
8080 according to whether the second character is \&. Weird!
8082 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
8084 * groff.c (run_commands): Don't use non-zero exit code because a
8085 command gets SIGPIPE.
8087 * groff.c, groff.sh: Use -mXps with -TXps.
8089 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
8090 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
8091 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
8092 (ps_printer::special): New specials invis and endinvis.
8093 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
8094 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
8095 (ps_printer::end_page): Check that invis_count == 0.
8096 (ps_printer::invis_count): New member.
8097 (ps_printer::ps_printer): Initialize invis_count to 0.
8099 * troff/env.c (environment::hyphenate_line): Hyphenation
8100 indicator at beginning of word inhibits splitting after -, \(em
8103 * pic/pic.y (element): Allow another element to follow } without
8104 any intervening separator.
8106 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
8108 * pic/lex.c (get_delimited): Allow tabs before delimiter.
8110 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
8112 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
8113 declaration of wait() in header files.
8114 * Makefile: Get rid of -DHAVE_UNION_WAIT.
8116 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
8118 * lib/lib.h: Declare return type of strerror as char *.
8120 * man/Makefile: Add g flag to sed substitutions.
8121 * Makefile (shgroff, bindist): Likewise.
8123 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
8125 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
8126 * ps/devps/prologue (PBEGIN): Define showpage after pushing
8129 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
8131 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
8134 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
8136 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
8139 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
8141 * troff/input.c (define_number_reg): If currently undefined,
8142 don't define it if the argument is an invalid expression.
8144 * Makefile: Ignore return value of `if' commands without `else'
8147 * Makefile: Split up CPPDEFINES into a series of separate
8148 configuration options.
8150 * troff/input.c (init_registers): Use time_t instead of long
8151 unless LONG_FOR_TIME_T is defined. Use returned result rather
8152 than passing pointer.
8153 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
8155 * lib/Makefile (fontpath.h): Use gendef.
8157 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
8159 * troff/input.c (input_iterator::shift): Delete argument name.
8160 * troff/node.c (suppress_output_file::really_begin_page,
8161 suppress_output_file::really_transparent_char, node::ascii_print,
8162 node::tprint): Delete names of unused arguments.
8164 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
8166 * refer/label.y (string): Pass $4 to command_error.
8168 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
8170 * Version 1.03 released.
8172 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
8174 * Makefile: Pass definition of SHELL in SUBFLAGS.
8177 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
8178 ps/Makefile: Use gendef to construct header files that are
8179 constructed from the Makefile.
8181 * macros/Makefile: make all should build stripped version of tmac.e.
8183 * refer/Makefile (clean): Remove y.output.
8185 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
8187 * ps/pfbtops.c (main): Add -v option which prints out a version
8189 * ps/Makefile (pfbtops): Link with libgroff.a.
8191 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
8193 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
8194 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
8196 * refer/lkbib.c (main): Always terminate reference with blank
8198 * refer/lookbib.c (main): Likewise.
8200 * refer/linear.c (file_buffer::load): Check that the file is not a
8203 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
8204 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
8205 Delete second inclusion of <sys/param.h>.
8207 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
8209 * troff/token.h (token::special): Deleted.
8211 * tbl/main.c (process_format): Rework so that opt->tab_char is
8212 recognized only when appropriate.
8214 * ps/Makefile (clean): Remove pfbtops.
8216 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
8218 * lib/font.c (text_file::next): Don't return if we have got a
8221 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
8223 * refer/refer.c (store_reference): Get hash code from old_table[i]
8224 when rehashing the table.
8226 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
8228 * eqn/box.c (box::top_level): Save size and prev size using \R and
8229 restore it afterwards. Set the size to the size at the beginning
8231 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
8232 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
8234 * refer/Makefile (limits.h): Use ./genlimits.
8236 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
8238 * refer/index.c: Delete declarations of stat() and fstat().
8240 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
8242 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
8244 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
8246 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
8248 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
8250 * troff/input.c (token::get_char): Handle \e.
8252 * refer/linear.c: Delete declarations of fstat() and stat().
8254 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
8256 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
8257 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
8259 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
8261 * troff/input.c (do_define_macro): Improve error handling for end
8262 of file while defining macro.
8264 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
8266 * eqn/box.h: Fix declaration of set_gsize.
8267 * eqn/box.c (set_gsize): Make argument const char *.
8268 (gsize): Declare as char *.
8269 * eqn/main.c (main): Don't convert gsize to int.
8270 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
8272 * Version 1.02 released.
8274 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
8276 * macros/tmac.andoc: New file.
8277 * macros/Makefile: Install tmac.andoc.
8279 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
8280 operator new and delete on OP_DELETE_BROKEN not being defined.
8281 * Makefile: Mention OP_DELETE_BROKEN.
8283 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
8285 * Makefile (bindist): Pass SUBFLAGS.
8287 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
8289 * Makefile, groff.c: Pass definitions to groff.c via device.h.
8291 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
8294 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
8296 * ps/ps.h, ps/psrm.c: Make comment_table and
8297 header_comment_table local to resource_manager::process_file.
8299 * groff.sh: With -TXps pass -printCommand option to gxditview.
8301 * groff.c (possible_command::print): Implement using
8302 append_arg_to_string.
8304 * xditview: Merge in new implementation with own ChangeLog.
8306 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
8308 * groff.c (main): Implement PRINT_OPTION.
8309 (append_arg_to_string): New command.
8310 (device_table): Set PRINT_OPTION flag for Xps.
8312 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
8314 * troff/groff.h: Rename to troff.h.
8316 * pic/lex.c (lookup_keyword, docmp): New functions.
8317 (get_token): Use new lookup_keyword.
8318 Don't include key.h.
8319 * pic/key.[ch], pic/pic.gperf: Deleted.
8320 * pic/Makefile: Remove gperf stuff.
8322 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
8324 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
8326 * troff/Makefile, troff/node.c: Move definition of
8327 STORE_WIDTH into node.c.
8329 * etc/grog.pl, etc/grog.sh: Support -mdoc.
8331 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
8333 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
8334 dvi/devdvi/texb.map: Add lq and rq.
8335 dvi/devdvi: Regenerate fonts.
8336 * ps/devps/textmap: Add lq and rq.
8337 * ps/devps: Regenerate fonts.
8338 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
8339 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
8341 * pic/object.c (position_rectangle): When checking radius
8342 cope with possiblity that width or height is negative.
8343 (box_object::box_object): Have separate xrad and yrad with
8344 signs matching signs of dim components.
8345 (box_object::{north,south}_{east,west}): Use xrad and yrad.
8346 (box_object::print): With rounded boxes use absolute values
8347 for dim and rad arguments.
8349 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
8352 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
8354 * various files: Add explicit destructors to keep Saber CC +d
8357 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
8359 * eqn/box.c (box::top_level): Restore fonts correctly after
8360 font changes in line containing inline equation. Also
8361 restore previous font as well as current font.
8362 * eqn/pbox.h: Define necessary string and register names.
8364 * troff/input.c (token::next): Case 'R' calls do_register.
8365 (do_register): New function.
8367 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
8369 * groff.c, groff.sh: Support Xps device. Allow each device
8370 to have a pseudo_name and a real_name.
8372 * groff.c (run_commands): Don't print `Broken pipe' messages.
8374 * ps/pfbtops.c: New file.
8375 * ps/Makefile: Add pfbtops.
8377 * troff/number.c (parse_term): Improved error message.
8379 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
8381 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
8383 * Makefile: Integrate refer.
8384 * refer: New directory.
8385 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
8386 man/lkbib.man: New files.
8387 * man/Makefile: Support refer man pages.
8389 * lib/lib.h: Declare is_prime.
8390 * lib/prime.c: New file.
8392 * troff/input.c (macro_source): New function.
8393 (init_input_requests): Bind "mso" to macro_source.
8395 * troff/env.c (environment::possibly_break_line): Maintain
8396 pointer to pointer to node to be split in ndp so as to avoid
8397 using address of freed node.
8399 * troff/env.c (environment::hyphenate_line): Maintain pointer to
8400 pointer to first node to be hyphenated in startp so as to
8401 avoid using address of freed node.
8403 * troff/env.c (class trie, class hyphen_trie): Make the
8404 elements of the trie be of type char not unsigned char.
8405 Declare arguments to be const char* instead of unsigned char *.
8407 * troff/env.c (hyphenate): Initialize hbuf[0].
8409 * troff/input.c (set_string): Declare p to be char * and cast
8410 *p to unsigned char when necessary.
8412 * troff/input.c (do_define_macro): Declare s to be const
8413 char*. Cast element to unisgned char when necessary, Declare
8414 d to be an int. Handle EOF better.
8416 * troff/Makefile, troff/input.c: Different scheme for passing
8417 definitions of MACROPATH, HYPHENFILE and DEVICE.
8419 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
8421 * tty/devascii/R.proto: Delete entry for em.
8422 * tty/devlatin1/R.proto: Likewise.
8424 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
8426 * troff/input.c (translate): Stop when we get a space. Treat eof
8429 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
8431 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
8433 * tbl/main.c (process_format): A font name following a `f'
8434 modifier that starts with a digit can be only one character long.
8435 Also deal with EOF on the second character of the font name.
8437 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
8439 * troff/input.c (token::next): Turn \~ into an
8440 unbreakable_space_node.
8441 * troff/node.c (unbreakable_space_node): New class.
8442 * troff/node.h: Declare it.
8444 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
8446 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
8447 it's >= 0, before outputting it as a single byte.
8449 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
8451 * lib/font.c: Make font_char_metric::code an int.
8452 (font::get_code): Change return type to int.
8453 (font::load): Allow code to be arbitrary integer.
8454 * lib/font.h (font::get_code): Change return type to int.
8455 (font::number_to_index): Change argument type to int.
8456 * troff/input.c (token::next): In case 'N', allow any value.
8457 Store value in token::val.
8458 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
8459 (token::get_char, token::add_to_node_list, token::process): Get
8461 (charinfo::set_number): Change argument to int.
8462 (charinfo::get_number): Require that NUMBERED flag be set.
8463 (get_charinfo_by_number): Store numbered characters not between 0
8464 and 255 in a dictionary.
8465 * troff/charinfo.h (get_charinfo_by_number): Change argument type
8467 (charinfo::number): Change type to int.
8468 (charinfo::set_number): Change type of set_number to int.
8469 * troff/node.c (troff_output_file::put_char_width,
8470 troff_output_file::put_char): Test whether character is numbered
8471 using charinfo::numbered().
8472 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
8474 * lib/nametoindex.c: New implementation to cope with arbitrary
8477 * troff/input.c (token::operator==): Test val for
8478 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
8481 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
8482 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
8484 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
8486 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
8489 * all Makefiles: rm targets of cp and >.
8491 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
8494 * eqn/lex.c (def_table): Add dollar.
8496 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
8498 * troff/input.c (do_width): Push back newline before closing delim
8501 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
8503 * groff.c (possible_command::prepend_arg): New function.
8504 (main): Prepend device -m option.
8505 * groff.sh: Put device -m options before command-line options.
8507 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
8509 * macros/tmac.an (IP): Quote argument to TP.
8511 * ps/ps.c (main): New option -b, which sets...
8512 (broken_flags): New variable.
8513 (ps_printer::~ps_printer): Incorporate the setup section in the
8514 prolog if (broken_flags & NO_SETUP_SECTION).
8515 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
8516 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
8517 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
8518 ps_printer::print_needed_font_comment,
8519 ps_printer::print_supplied_font_comment,
8520 ps_printer::print_include_font_comments,
8521 ps_printer::lookup_doc_font, ps_printer::download_fonts,
8522 ps_printer::read_download_file, read_document_fonts, add_font,
8523 skip_line, parse_fonts_arg, document_font::document_font,
8524 document_font::~document_font, document_font::download,
8525 ps_output::include_file): Deleted.
8526 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
8527 rather than %!PS-Adobe-2.0. Make calls to
8528 resource_manager::need_font for each font that we used. Replace
8529 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
8530 print_supplied_font_comment, print_needed_font_comment by call to
8531 resource_manager::print_header_comments. Output %%Orientation
8532 comment. Output %%Requirements: numcopies comment if ncopies > 1.
8533 Don't output the prolog directly. Instead call
8534 resource_manager::output_prolog. Only define #copies when ncopies
8535 > 1. Delete calls to print_include_font_comments and
8536 download_fonts. Add call to resource_manager::document_setup.
8537 (ps_printer::do_file): Call resource_manager::import_file instead
8538 of including it ourselves.
8539 (ps_printer::do_import): Likewise. Also don't call
8540 merge_import_fonts. Push userdict on the dictionary stack before
8541 and pop it afterwards.
8542 Move declaration of ps_output into ps.h.
8543 * ps/psrm.c: New file implementing resource_manager class.
8544 * ps/ps.h: New file declaring ps_output and resource_manager
8546 * ps/devps/zapfdr.ps:
8547 * ps/devps/symbolsl.ps:
8548 * ps/devps/prologue: Use 3.0 conventions.
8549 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
8550 Add default definition of BROKEN_SPOOLER_FLAGS.
8551 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
8552 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
8554 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
8556 * etc/grog.pl: New file.
8557 * Makefile (GROG): New variable.
8558 Add GROG to SUBFLAGS.
8559 * etc/Makefile (GROG): New variable.
8560 (install.nobin): Install $(GROG) rather than grog.sh.
8562 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
8564 * eqn/special.c (special_box::compute_metrics): Make the input and
8565 output strings the same. Get the new height and depth from the
8566 predefined height and depth registers. Also make subscript kern
8568 (special_box::compute_subscript_kern, special_box::compute_skew):
8571 * eqn/box.c (pointer_box::compute_skew,
8572 simple_box::compute_metrics, box::top_level)
8573 * eqn/text.c (prime_box::compute_metrics,
8574 prime_box::comput_subscript_kern)
8575 * eqn/limit.c (limit_box::compute_metrics):
8576 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
8577 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
8578 negative numbers in `nr' requests with a leading 0.
8580 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
8582 * eqn/special.c: New file.
8583 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
8584 Add new rule for simple.
8585 * eqn/lex.c (token_table): Add SPECIAL.
8586 * eqn/box.h: Declare make_special_box.
8587 * eqn/Makefile: Add special.[co].
8589 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
8591 * ps/devps/prologue: Possibly set packing to true while defining.
8592 Create grops dictionary here. Initialize local variables before
8593 defining procedures.
8594 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
8595 the dictionary stack. Set strokeadjust and overprint to false if
8596 the relevant operators are defined.
8597 (PEND): New procedure.
8598 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
8599 prologue. Do everything else in the setup section.
8600 (ps_printer::do_import): Just call PBEGIN and PEND around the
8601 picture. Also push userdict before, and pop it afterwards.
8603 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
8605 * troff/node.c (bracket_node::tprint): Brackets were being printed
8608 * macros/tmac.an (SH, SS): Set fill mode.
8610 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
8612 * troff/div.c (top_level_diversion::begin_page): Set
8613 high_water_mark to 0.
8615 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
8617 * man/mdate.sh: New file.
8618 * man/mdate.c: Deleted.
8619 * man/Makefile: Use mdate.sh instead of mdate.
8622 * eqn/lex.c (do_gsize): Supply missing argument to error message.
8624 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
8626 * man/mdate.c: New file.
8627 * man/*.man: Replace modification date by @MDATE@.
8628 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
8629 (mdate): New target.
8631 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
8632 Remove illegal input characters.
8634 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
8636 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
8638 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
8640 * troff/div.c (begin_page): Change behaviour when
8641 !first_page_begun and !break_flag.
8643 * troff/input.c (do_name_test): Return 0 if argument is empty.
8645 * troff/input.c (read_long_escape_name): Require closing ] to be
8646 at same input level as opening [.
8648 * troff/input.c (read_increment_and_escape_name): New function.
8649 (get_copy, process_input_stack): Use this for \n.
8651 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
8653 * troff/div.c (top_level_diversion::begin_page): Ignore the
8654 current value of page_number if !first_page_begun.
8656 * groff.c (main): Fix declaration of buf.
8658 * troff/input.c (do_name_test): New function.
8659 (token::next): Implement \A.
8660 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
8661 (token::description, token::add_to_node_list, token::process):
8662 Handle TOKEN_ESCAPE.
8663 * troff/token.h: New token TOKEN_ESCAPE.
8665 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
8667 * pic/main.c (do_picture): Allow space before and after filename
8668 following `<'. Check that the filename is not empty.
8670 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
8672 * Version 1.01 released.
8674 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
8676 * dvi/tmac.dvi: ftr HR to H.
8678 * macros/tmac.e: Round up computation of $r.
8680 * xditview/tmac.X: Don't give up completely in compatibility mode.
8681 Use \n(.s instead of \n[.s].
8683 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
8684 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
8685 Add u to factors inside \s[...]. Rename frac to dvi-frac.
8686 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
8687 short names in the char definitions.
8689 * ps/tmac.ps: Don't give up completely in compatibility mode.
8690 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
8691 quote in front of \n(.s. Add u to factors inside \s[...].
8693 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
8695 * tty/tmac.tty: Call the nroff request.
8697 * macros/tmac.e ((x, )x): Better definitions that work properly
8699 (@0, @1): Helper macros for (x.
8701 * macros/tmac.e ($s, hl): Use \l rather than \D.
8703 * tty/tmac.tty: Make it work better in compatibility mode.
8704 (pchar): Rename to tty-char.
8706 * macros/tmac.e (@E): New macro.
8707 (r, i, b, rb, bi): Use @E.
8709 * macros/tmac.e (@F): Don't use (;...) syntax.
8711 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
8712 it was modified for groff.
8714 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
8716 * macros/tmac.e (<., .>): Removed.
8717 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
8719 * macros/tmac.e: Remove check that groff is being used.
8721 * macros/tmac.e (@C): Change families only if using groff; turn
8722 compatibility mode off while changing familes. Save compatibility
8723 mode before changing families and restore it afterwards.
8725 * macros/tmac.e (@h): Remove test for offset + line length.
8727 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
8728 (lo, th, ac): Define to call @S instead of using als.
8730 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
8731 the ratio of the vertical spacing to the point size in units
8732 expressed as a percentage. Use these instead of $10r and $10R,
8733 Delete $10r and $10R.
8735 * lib/font.c (font::load): In default computation of space_width,
8736 divide by sizescale. Use scale_round.
8738 * macros/tmac.an (TP): Don't call `nf'.
8739 (an-do-tag): Don't call `fi'.
8741 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
8743 * troff/input.c (process_input_stack): Handle the case where
8744 spaces at the beginning of an input line are followed by a
8747 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
8749 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
8750 * groff.sh: Use pic -x with the dvi device.
8752 * dvi/devdvi/FontMakefile (H): Don't use -s.
8754 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
8755 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
8756 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
8759 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
8761 * ps/psfig.diff: New file.
8762 * ps/tmac.psfig: New file.
8764 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
8766 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
8767 (]-): Don't call ref*do-tl.
8769 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
8771 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
8772 (fn@do-FS): Rename to fn*do-FS.
8774 * troff/input.c (transparent_translate): New function.
8775 (process_input_stack): Apply transparent_translate before calling
8776 diversion::transparent_output(unsigned char).
8778 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
8780 * troff/input.c (do_define_macro): Define the macro before calling
8783 * xditview/Makefile: Add DEVICES variable. Change install target
8786 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
8788 * groff.c (run_commands): Handle the possibility that there are
8789 child processes other than those forked by us.
8791 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
8793 * lib/string.c (string::append): New function.
8794 * lib/stringclass.h: Declare it.
8796 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
8798 * eqn/main.c (main): New option -N which sets
8799 no_newline_in_delim_flag.
8800 (do_file): If no_newline_in_delim_flag is set don't allow newlines
8802 * groff.c (main): Pass -N on to eqn.
8803 (help, synopsis): Mention -N.
8804 * groff.sh: Implement -N.
8806 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
8808 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
8809 (]-): Call ref*do-tl if ref*need-tl is non-zero.
8810 (XP): Allow as initializer.
8812 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
8814 * troff/env.c (environment::wrap_up_field): If field_spaces are
8815 non-zero and we have a current_tab, subtract padding from
8816 tab_distance. If this makes tab_distance <= 0, use the next tab
8817 stop instead. If there isn't any next tab or it's a left tab,
8818 wrap up the current tab.
8819 (environment::start_field): Initialize tab_precedes_field.
8820 (environment::wrap_up_tab): If there's a current field, update
8821 pre_field_width, field_distance and tab_precedes_field.
8822 * troff/env.h (environment::tab_precedes_field): New member.
8824 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
8826 * ps/ps.c (ps_printer::do_file): New function.
8827 (ps_printer::special): Bind to `file' special.
8828 (ps_printer::do_exec): Set ndefined_styles to 0.
8830 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
8832 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
8833 Avoid stripping first character from the start of unrecognized
8834 escapes. Use lex_error instead of error to report errors.
8835 * eqn/lex.c (get_token): Rework handling of escapes.
8836 (lex_error): Move declaration into...
8839 * xditview/xditview.c (main): Make -page option work.
8841 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
8843 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
8845 * macros/tmac.s (B2): Correct size of box.
8847 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
8849 * macros/tmac.s (B2): Postpone drawing the box until in the
8850 top-level diversion.
8852 * tty/tmac.tty: Add font translations for C, CR, CW.
8854 * groff.c (synopsis, help): Document -i.
8855 * groff.sh: Implement -i.
8857 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
8858 Simplify the construction of SN.
8860 * troff/number.c (parse_term): Give `|' a higher precedence.
8861 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
8864 * macros/tmac.s (B2): Use par@finish instead of par@reset.
8866 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
8868 * lib/string.c (string::move): New function.
8869 * lib/stringclass.h: Declare it.
8871 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
8873 * troff/env.c (distribute_space): Add optional argument
8875 (environment::wrap_up_field): Call distribute_space with
8876 `force_forward' argument of 1.
8878 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
8880 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
8881 Inline it. Move reallocation into...
8882 (string::grow1): New function.
8883 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
8884 dependencies to include library header files.
8885 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
8887 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
8889 * macros/tmac.s (@NH): Use the same number registers than -ms does
8890 for the heading level counters. Use the same string that -ms does
8891 for the number for this heading.
8893 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
8895 * lib/new.c (operator new): Cast result of malloc to char *.
8897 * troff/input.c (spring_trap, lookup_request): Add assert that nm
8900 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
8902 * groff.c (main): Support -i.
8904 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
8906 * pic/pic.h: Include <osfcn.h>.
8908 * ps/ps.c: Add declaration of mktemp.
8910 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
8911 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
8912 argument as union wait *.
8913 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
8914 argument to union wait *.
8916 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
8918 * tty/tmac.tty: Add definition of \(co.
8920 * pic/object.c (make_arc): Only increase radius when radius
8921 strictly less than d.
8922 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
8925 * troff/env.c (environment::environment(symbol),
8926 environment::environment(const environment *)): Initialize
8929 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
8931 * tbl/main.c (main): Add exit(0).
8933 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
8935 * pic/main.c (main):
8936 * eqn/main.c (main):
8937 * tbl/main.c (main):
8938 * etc/soelim.c (main):
8939 * driver/printer.c (printer::~printer):
8940 * troff/node.c (real_output_file::~real_output_file,
8941 real_output_file::flush): Check for errors on stdout.
8943 * most files: Add 1991 to copyright notice.
8945 * macros/tmac.s: Don't test \n(.x and \n(.y.
8947 * troff/input.c (token::next): Rename `escape_char' label to
8948 `handle_escape_char' and `normal_char' label to
8949 `handle_normal_char'.
8951 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
8953 * groff.c (main, synopsis, help): Support -a option.
8954 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
8955 to trflags while parsing options.
8957 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
8959 * troff/number.c (parse_term): With `m', `M' and `n' scale
8960 indicators, convert scale factor to hunits before scaling.
8962 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
8964 * lib/font.c (scale_round): Better test for overflow when n is
8967 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
8969 * tbl/main.c (process_format): Add second argument of type
8970 options*. Change callers. Allow opt->tab_char as well as '\t'
8971 between format items.
8973 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
8975 * macros/tmac.an (PD): With no arguments, make sure register PD is
8977 (TH): Call PD with no argument, instead of setting register PD
8980 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
8982 * Version 1.00 released.
8984 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
8986 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
8988 * dvi/devdvi/DESC: Mount CW instead of CR.
8990 * dvi/tmac.dvi: Add definition of \(tm.
8992 * dvi/devdvi/texsy.map: Add lh, and rh.
8993 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
8994 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
8996 * dvi/devdvi/FontMakefile: Generate H from cmss10.
8997 * dvi/devdvi/Makefile: Install H.
8998 * dvi/devdvi/H: New file.
9000 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
9002 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
9005 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
9007 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
9009 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
9011 * macros/tmac.s (@EN): Handle the case where the equation is empty
9012 but the label is not.
9014 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
9016 * troff/groff.h: New warning category WARN_SPACE.
9017 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
9018 WARN_SPACE to warning_table.
9019 (interpolate_macro): Give a warning of type WARN_SPACE if the name
9020 is longer than two characters and is not defined, but the first
9021 two characters do make a defined name.
9023 * PROBLEMS: New file.
9025 * CHANGES: New file.
9026 * README-0.6, README-1.00: Deleted.
9028 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
9029 * xditview/devX75/Makefile: Make devX75-12.
9030 * xditview/devX100/Makefile: Make devX100-12.
9032 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
9033 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
9035 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
9037 * README-0.7: Rename to README-1.00.
9039 * macros/tmac.pic: New file.
9040 * macros/Makefile (install.nobin): Install tmac.pic.
9042 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
9044 * troff/env.c (hyphen_word): Correct the test for whether the
9045 token is a hyphen. Reset npos to 0.
9047 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
9049 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
9051 * macros/tmac.s (ds*common-end): Call par*reset.
9053 (par@reset-indent): Deleted.
9055 * macros/tmac.s (@IP): Divert the label.
9057 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
9059 * xditview/draw.c (setGC): Use a line width of .1m rather than
9060 .04m by default; round rather than truncate value.
9062 * tbl/table.c (class empty_entry): New class.
9063 (empty_entry::empty_entry, empty_entry::line_type): New functions.
9064 (table::add_entry): Represent empty entries by objects of type
9066 (table_entry::line_type): Return -1.
9067 (table::determine_row_type): Ignore entries with line_type 0.
9068 Treat type -1 as non-lines.
9070 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
9072 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
9073 macros/tmac.s: Rename \(-d to \(Sd.
9075 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
9077 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
9078 * xditview/libXdvi/DviChar.c: Likewise.
9079 * dvi/devdvi/texsy.map: Add `<<', `>>'.
9081 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
9083 * troff/div.c (top_level_diversion::begin_page): Call
9084 init_output() if the_output is 0.
9086 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
9088 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
9090 (get_copy): Turn \E into ESCAPE_E.
9091 (token::process, asciify): Handle ESCAPE_E.
9093 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
9095 (DS): Implement `.DS R'.
9097 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
9099 * macros/tmac.s (FS): New macro.
9101 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
9103 * macros/tmac.s (cov*tl-init): Remove after first execution
9104 instead of aliasing to @nop. Call top of page macro explicitly
9105 instead of setting trap; call @init first. Set pg@top as top of
9107 (cov*auto-init): Deleted. Set cov*tl-init instead of
9108 cov*auto-init as top of page trap.
9109 (TL, LP): Do a break instead of calling cov*tl-init.
9110 (cov*print): With RP format but no TL, alias FS and FE to @FS and
9111 @FE; in this case also give a warning and always start another
9112 page. No need to set pg@top here.
9113 (cov*tl-init): Rename to cov*first-page-init.
9115 * macros/tmac.s (RP): Do `.pn 0'.
9116 (cov*tl-init): With RP format don't do `.pn 0'.
9118 * macros/tmac.s (pg@cs-top): Set no space mode.
9120 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
9121 (cov*ab-init): Alias TL, AU and AI to these.
9123 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
9125 * macros/tmac.s (@EQ): Move the space before the equation into @EN
9126 (@EN): Do nothing unless \n[dl] is > 0.
9128 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
9130 * pic/object.c (ellipse_object::radius): New function.
9132 * VERSION: Change version to 0.7.
9134 * tbl/table.c (block_entry::do_divert): Declare return type as
9136 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
9138 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
9140 * troff/column.c: New file.
9141 * troff/Makefile: Corresponding changes.
9143 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
9146 * troff/div.c (top_level_diversion::space): If the space causes
9147 the first-page transition and springs a trap, truncate the space
9150 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
9152 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
9155 * pic/troff.c (troff_output::line_thickness,
9156 troff_output::set_fill): Do a horizontal motion to compensate for
9157 the width of the \D escape sequence.
9159 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
9161 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
9164 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
9167 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
9168 Supply empty definition.
9169 (text_entry::simple_print, simple_text_entry::simple_print):
9170 Delete declarations.
9171 (table::add_entry): Represent empty entries by objects of type
9174 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
9176 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
9178 * tbl/table.c (left_text_entry::add_tab): New function.
9180 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
9183 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
9185 * troff/env.c (environment::start_field): Give an error message if
9186 there is no next tab.
9188 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
9190 * troff/env.c (hyphenate): Skip initial elements with zero
9193 * macros/tmac.s (par@init): Keep VS in points rather than units.
9195 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
9197 * pic/main.c (main): Implement `-c' option.
9198 * pic/output.h: Declare make_tpic_output().
9199 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
9201 (tpic_output): New class.
9202 (tpic_output::tpic_output, tpic_output::set_pen_size,
9203 tpic_output::command, make_tpic_output): New functions.
9205 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
9207 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
9208 if they're not already defined.
9209 * tbl/table.c (init_output): Don't test \n(.g.
9211 * troff/input.c (do_if_request): Delete `g' condition. Recognize
9212 `d', `r' and `c' conditions even in compatibility mode.
9214 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
9216 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
9219 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
9221 * troff/env.h (environment::prev_line_interrupted): New member.
9222 (environment::get_prev_line_interrupted): New function.
9223 * troff/env.c (environment::newline): Set prev_line_interrupted.
9224 (environment::environment(const environment *),
9225 environment::environment(symbol)): Initialize
9226 prev_line_interrupted.
9227 * troff/input.c (process_input_stack): Don't give special
9228 treatment to space and newline at the beginning of the line if the
9229 previous line was interrupted.
9231 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
9233 * eqn/eqn.y: Disallow PRIME by itself.
9234 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
9236 (def_table): Remove definition of '. Define prime to be `.
9238 * eqn/eqn.y: Split off part of rule `script' into a new rule
9241 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
9243 * macros/tmac.s ({, }): New string aliases.
9245 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
9247 * README-0.7: New file.
9249 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
9251 * macros/tmac.s: New file.
9252 * man/groff_ms.man: New file.
9253 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
9254 * Makefile.bd: Similarily.
9255 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
9256 definition of TMAC_S.
9257 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
9258 * macros/TODO: New file.
9260 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
9262 * troff/env.c (right_justify): New function.
9263 (init_env_requests): Bind this to request "rj".
9264 (center_lines): Set right_justify_lines to 0. If we get a bad
9265 integer, center 1 line.
9266 (environment::environment(symbol), environment::environment(const
9267 environment *)): Initialize right_justify_lines.
9268 (environment::get_right_justify_lines): New function.
9269 (init_env_requests): Bind this to number_register ".rj".
9271 * troff/env.c (environment::choose_breakpoint): Implement
9272 hyphenation_margin and hyphenation_space.
9273 (environment::get_hyphenation_space,
9274 environment::get_hyphenation_margin): New functions.
9275 (init_env_requests): Bind these to .hys and .hym.
9276 (hyphenation_space_request, hyphenation_margin_request): New
9278 (init_env_requests): Bind these to hys and hym.
9279 (environment::environment(symbol), environment::environment(const
9280 environment *)): Initialize hyphenation_margin and
9282 * troff/env.h: Corresponding changes to class environment.
9284 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
9286 * troff/div.c (blank_line): Always do a break.
9288 * eqn/box.c (do_text): Turn off escapes while appending text to
9291 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
9293 * troff/input.c (while_break_request, while_continue_request): New
9295 (init_input_requests): Bind these to "break" and "continue".
9296 (while_depth, while_break_flag): New variables.
9297 (while_request): Update while_depth. Break out of loop if
9298 while_break_flag is set.
9300 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
9302 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
9305 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
9307 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
9309 * stringify: New file.
9310 * Makefile (groff.o): Use stringify.
9312 * xditview/tmac.X: Remove definition of \(rn.
9313 * xditview/libXdvi/DviChar.c: Remove radicalex from
9316 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
9318 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
9319 (alphabetic_block_entry::alphabetic_block_entry,
9320 alphabetic_block_entry::divert, alphabetic_block_entry::print):
9322 (block_entry::divert): Split off body into ...
9323 (block_entry::do_divert): If the block is alphabetic, subtract 2n
9324 from the line length; also update the span width to dl+2n, and the
9325 alphabetic span width to dl.
9327 * driver/input.c (do_file): While reading argument to D command,
9328 when expanding buffer, multiply szp by sizeof(int) rather than 2
9329 in the argument to memcpy.
9331 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
9332 width of alphabetic columns.
9334 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
9336 * troff/node.c (lookup_family): Supply second argument to lookup.
9338 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
9339 search, return immediately if v is 0.
9341 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
9342 (troff_output::start_picture): Set this reg.
9343 (troff_output::end_picture): Remove this reg
9344 * eqn/box.c (box::extra_space): Don't produce `\x's if
9345 EQN_NO_EXTRA_SPACE_REG is defined.
9347 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
9348 * eqn/text.c (split_text): Map ' to \(fm when it's the first
9351 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
9353 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
9356 * troff/div.c (top_level_diversion::top_level_diversion):
9357 Initialize page_number to 0.
9359 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
9361 * groff/troff (environment::environment(const environment *)):
9362 Initialize name to e->name, rather than "anonymous".
9364 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
9366 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
9367 requested_page. Split middle part into ...
9368 (FindPage): New function.
9369 (SetValues): If we don't yet know the last page, and the requested
9370 page is greater than the current page, call FindPage.
9371 Update the font_map_string before doing this.
9373 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
9374 Translate \(lh and \(rh into left and right double arrows.
9376 * troff/node.c (class hyphen_inhibitor_node): New class.
9377 (hyphen_inhibitor_node::hyphen_inhibitor_node,
9378 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
9379 hyphen_inhibitor_node::type,
9380 hyphen_inhibitor_node::get_hyphenation_type): New functions.
9381 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
9382 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
9385 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
9387 * troff/node.h (dummy_node::get_hyphenation_type,
9388 transparent_dummy_node::get_hyphenation_type): Declare them.
9389 * troff/node.c: (dummy_node::get_hyphenation_type,
9390 transparent_dummy_node::get_hyphenation_type): New functions.
9392 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
9394 * xditview/libXdvi/draw.c: If M_PI not defined after including
9395 math.h, then define it.
9397 * xditview/Makefile: Add definition of AR. Pass it to the submake
9399 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
9401 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
9403 * troff/dictionary.h (object_dictionary::alias): Declare return
9405 * troff/dictionary.c (object_dictionary::alias): Return non-zero
9406 if the old name was defined.
9407 * troff/input.c (alias_macro): Give a warning if the old name was
9409 * troff/reg.c (alias_reg): Likewise.
9411 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
9413 * troff/input.c (token::next): Delete implementation of \R.
9415 * macros/Makefile: Strip comments from tmac.e while installing it.
9417 * troff/input.c: New variable `nroff_mode'.
9418 (troff_request, nroff_request): New functions.
9419 (init_input_requests): Bind `troff' and `nroff' to troff_request
9421 (do_if_request): Compute results of t and n conditions from
9424 * text/text.c (split_text): Fix typo in >=.
9426 * eqn/lex.c: Add definition of `==' to def_table.
9428 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
9430 * pic/tex.c (tex_output::start_picture): Change the definitions of
9431 \graph and \graphtemp so that they work properly with Plain TeX.
9433 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
9434 argument to `ar' is not less than the first.
9436 * pic/pic.y: Allow a comma between elements of the variable list
9437 in the argument to `reset'.
9439 * pic/object.c (arc_object::arc_object): Fix computation of
9442 * eqn/main.c (main): Add exit(0).
9444 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
9446 * troff/div.c (begin_page): Test no_space_mode after doing the
9447 break, but still push the page ejector cookie before doing the
9448 break. Also set the next page number after doing the break.
9450 * xditview/xditview.c (NewFile): Don't set the title and icon name
9451 if this is the first file and its name is `-'.
9452 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
9453 the X75 and X100 devices.
9454 (main): If a device has the XT_OPTION flag set and there's exactly
9455 one file argument, pass the driver -xrm and -title options to set
9456 the icon name and window title to the name of the file.
9458 * troff/env.c (environment_switch): If there was an argument but
9459 it wasn't a valid number or name, then pop an environment but
9460 don't give an error message on underflow.
9462 * troff/number.c (start_number): Correct spelling in error message.
9464 * troff/input.c (token::delimiter): Don't print an error message
9467 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
9468 ParseDrawFunction if dw->display_enable is true.
9470 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
9472 * pic/pic.y: Parse text positioning like normal attributes, so as
9473 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
9474 positioning attribute.
9476 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
9478 * tbl/main.c (process_data): When in state START while reading a
9479 text block, don't change to state MIDDLE if c is a newline.
9481 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
9483 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
9484 so as to avoid shadowing parameter.
9486 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
9488 * tbl/table.c (trim_space): Deleted.
9489 (table::add_entry): Don't call trim_space.
9491 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
9493 * VERSION: Change version to 0.6.
9495 * troff/number.c (parse_expr): Make == work.
9497 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
9499 * man/grog.man: New file.
9500 * man/Makefile: Add grog.n to MAN1PAGES.
9501 * etc/grog.sh: New file.
9502 * etc/Makefile: Install grog.sh as grog.
9504 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
9506 * troff/input.c (token::next): Implement \E.
9508 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
9510 * xditview/tmac.X: Change font translations to match tmac.ps.
9512 * troff/input.c (non_empty_name_warning): Don't give a warning if
9513 `\{' terminates the name.
9515 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
9517 * ps/devps/symbol.diff: New file.
9518 * ps/devps/FontMakefile: Mention symbol.diff.
9520 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
9522 * troff/node.c (font_position): Use get_long_name to read the
9525 * troff/env.c (environment_switch): If we get a number that's < 0
9526 or >= NENVIRONMENTS, treat it like a name.
9527 Change NENVIRONMENTS to 10.
9529 * troff/groff.h: Remove definition of FONTS_MAX.
9530 * troff/node.h (class font_family): Make map a pointer instead of
9531 an array. Add a map_size member. Make it a class. Make nm const
9532 and public. Make invalidate_fontno a friend.
9533 * troff/node.c: Define font_table_size. Make font_info a pointer
9534 rather than an array.
9535 (class troff_output_file): Allocate font_position dynamically. Add
9536 nfont_positions member.
9537 (troff_output_file::set_font): Grow font_position if necessary.
9538 (troff_output_file::~troff_output_file): Delete font_position.
9539 (troff_output_file::troff_output_file): Allocate font_position.
9540 (grow_font_table): New function.
9541 (troff_output_file::really_begin_page,
9542 troff_output_file:really_copy_page): Use nfont_positions rather
9544 (mount_font_no_translate, mount_style): Call grow_font_table if
9546 (font_family::font_family): Allocate map.
9547 (font_family::make_definite): Grow map if necessary. Use
9548 font_table_size instead of FONTS_MAX.
9549 (font_family::~font_family): New function.
9550 (invalidate_fontno): Use font_family::map_size.
9551 (get_fontno, env_space_width, env_half_narrow_space_width,
9552 env_narrow_space_width, symbol_fotno, is_good_fontno,
9553 get_bold_fontno, make_glyph_node): Use font_table_size rather than
9555 (next_available_font_position): Never return 0.
9557 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
9559 * ps/tmac.ps: Add font translations for compatibility with dpost.
9561 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
9563 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
9564 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
9565 Move definitions baseline_sep, shift_down, column_sep,
9566 matrix_side_sep into...
9567 * eqn/box.c: Add them to param_table.
9568 * eqn/pbox.h: Add declarations to pbox.h.
9570 * troff/input.c (set_string): Cast value to unsigned char *.
9572 * troff/token.h (process_input_stack): Declare it static before
9573 declaring it a friend.
9575 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
9577 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
9579 * dvi/devdvi/EX: Regenerate.
9581 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
9584 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
9586 * eqn/lex.c: In defaults_table, make definition of `dot' call
9587 `dot_def'. Don't explicitly make it roman. Similarily for other
9590 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
9592 (for_input::get, for_input::peek): Use this.
9593 (do_for): Add by_is_multiplicative argument.
9594 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
9595 Change semantic value of optional_by to be a double plus a flag
9596 saying whethet the by clause is multiplicative.
9598 * eqn/lex.c (get_delimited_text): Remember location of start of
9599 definition. Improve error handling when EOF is encountered.
9601 * lib/font.h: Rename handle_x_command to
9602 handle_unknown_font_command.
9603 * lib/font.c (font::load): Call handle_unknown_font_command for
9604 any unknown command in the font description file. Don't call
9605 handle_x_command. Include the name of the command in the argv.
9606 Improve message for unknown command after kernpairs or charset
9608 * ps/ps.c (ps_font::handle_x_command): Rename to
9609 handle_unknown_font_command. Remove message about `x download'
9610 command. Give error message for wrong number of arguments.
9611 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
9612 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
9613 handle_unknown_font_command. Give an error message for wrong
9614 number of arguments. Rename design_size to designsize.
9615 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
9616 checksum', `designsize' instead of `design_size'.
9618 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
9620 * eqn/*.[chy]: Change underaccent to uaccent.
9622 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
9623 give it the same precedence as ACCENT.
9624 * eqn/other.c (make_underaccent_box): New function.
9625 * eqn/box.h: Declare it.
9626 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
9629 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
9631 * pic/pic.y (reset_all): New function. Called in rule for RESET.
9632 (parse_init): Call reset_all.
9633 (define_variable): When defining scale reset only those
9634 pre-defined variables that are scaled.
9635 (defaults_table): Add `scale' as non-scaled value.
9637 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
9638 together with the text; allow any number of positioning words;
9639 allow center as a positioning word.
9641 * pic/object.c (output::compute_scale): Get picture maximum height
9642 and width from variables called maxpswid and maxpsht.
9643 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
9645 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
9647 * pic/object.c (object_spec::make_text): Multiply textht by number
9650 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
9652 (do_sprintf): New function.
9653 (pic.gperf): Add sprintf token.
9654 (text, sprintf): New rules.
9656 * pic/pic.y: `rand()' with no arguments returns a random number
9659 * pic/pic.y: Allow a bare expression to be an attribute: change
9660 precedences to support this. Change optional_ordinal rule to
9661 optional_ordinal_last to avoid reduce/reduce conflict.
9662 * pic/object.c (object_spec::object_spec): Initialize direction.
9664 * pic/pic.y: Implement ^ operator meaning exponentiation.
9666 * troff/node.h: Add default argument to mount_font.
9667 * troff/node.c (font_position): Read an optional third argument
9668 giving the external_name.
9669 (mount_font): Add optional argument giving the external_name.
9670 (mount_font_not_translate): Have additional argument giving
9671 external name. Use this name to load the font. Pass both names
9672 to font_info::font_info.
9673 (font_info::font_info): Have additional argument giving
9675 (class tfont): New member external_name.
9676 (font_info::get_tfont): Use external name to construct tfont_spec.
9678 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
9680 * eqn/lex.c (init_table): Add argument giving device. Define
9681 name of device to be "1".
9682 (do_ifdef): Counts as true if the argument has been defined with
9684 * eqn/main.c (main): Call init_table with device argument. Make
9685 device local to main.
9686 * eqn/eqn.h: Change declaration of init_table. Remove declaration
9689 * pic/lex.c (get_delimited): Allow text to be delimited by
9690 matching {}s. Don't recognize ending delimiter within a string.
9692 * troff/input.c (get_delim_name): New function.
9693 (token::next): Implement \C.
9695 * lib/font.c (font::load): Grok ---. Add an alias for each
9696 character based on its code.
9697 (font::get_code_width): Deleted.
9698 * lib/font.h (class font): Declare font::number_to_index().
9699 Remove declaration of font::get_code_width.
9700 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
9701 to indices of named characters.
9702 (font::number_to_index): New function.
9703 * troff/input.c (font::number_to_index): New function.
9704 (get_charinfo_by_number, charinfo::get_number,
9705 charinfo::set_number): New functions.
9706 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
9707 (token::process, token::description, token::get_char,
9708 token::add_to_node_list, token::operator==): Handle
9709 TOKEN_NUMBERED_CHAR.
9710 * troff/charinfo.h: Declare get_charinfo_by_number,
9711 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
9713 (charinfo::numbered): New function.
9714 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
9715 * troff/env.h (class environment): Remove declaration of ...
9716 * troff/env.c (environment::make_numbered_char_node): Deleted.
9717 * troff/node.c (make_numbered_node): Deleted.
9718 (class numbered_glyph_node): Remove.
9719 (troff_output_file::put_char_width, troff_output_file::put_char):
9720 Handle numbered chars.
9721 (troff_output_file::numbered_char): Removed.
9722 (tfont::get_code_width): Removed.
9723 (make_glyph_node): Don't search special fonts for numbered
9725 * troff/node.h: Remove declaration of make_numbered_node.
9726 * driver/input.c (do_file): Handle N command.
9727 * driver/printer.h: Add declaration of ...
9728 * driver/printer.c (printer::set_numbered_char): New function.
9729 * dvi/tfmtodit.c (main): Generate unnamed entries.
9730 * ps/devps/afmtodit: Likewise.
9731 * xditview/xtotroff.c (MapFont): Likewise.
9732 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
9734 * tbl/main.c (process_format): If multiple widths are specified
9735 for a column but all the widths are the same, don't give an error
9738 * tbl/table.c (table::do_row): If the current row is all lines and
9739 the stuff doesn't contains a line, mark the top of the row after
9740 printing stuff before the row. If the current row is not all
9741 lines and the stuff doesn't contain a line, don't unnecessarily
9742 mark the top of the row before printing the stuff.
9744 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
9746 * troff/groff.h: Remove MAX_PATH.
9747 * troff/input.c (open_file): Dynamically allocate space for the
9749 (open_mac_file, process_macro_file): Corresponding changes.
9751 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
9753 * troff/node.h (class output_file): Make copy_file pure. Add
9754 vspace method ifdef COLUMN. Add is_printing method.
9755 * troff/node.c: Add class printing_reg. Add class
9756 real_output_file. Derive other output_file classes from
9757 real_output_file; in these classes rename begin_page to
9758 really_begin_page, print_line to really_print_line, copy_file to
9759 really_copy_file, transparent_char to really_transparent_char.
9760 Move output_file::flush to real_output_file. Add printing member
9761 to class output_file.
9762 * troff/div.h: Remove printing member from top_level_diversion.
9763 Add vspace member function to class diversion ifdef COLUMN. Add
9764 some declarations ifdef COLUMN.
9765 * troff/div.c (top_level_diversion::copy_file,
9766 top_level_diversion::transparent_output,
9767 top_level_diversion::output): Don't test printing member before
9769 * troff/input.c: Handle initial variable_space_request ifdef
9771 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
9774 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
9776 * troff/div.c (diversion::need): Make any space forced. If we
9777 sprung a trap, set truncated_space to minus the distance to the
9778 trap and set needed_space to the amount that was needed.
9779 (top_level_diversion::space): A forced space turns no_space_mode
9781 (class constant_vunits_reg): New class.
9782 (init_div_requests): Implement number registers .trunc and .ne
9783 using constant_vunits_reg.
9784 (class truncated_space_reg): Deleted.
9786 * troff/div.h: Don't have a no_space_mode member in diversion.
9787 Instead have it in top_level_diversion.
9788 * troff/div.c (diversion::diversion): Don't initialize
9790 (top_level_diversion::top_level_diversion): Initialize
9792 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
9793 (macro_diversion::output): Don't clear no_space_mode.
9795 * troff/input.c (diverted_space_node::reread): Don't call
9796 environment::do_break. In fill mode, act like a blank line.
9797 (diverted_copy_file_node::reread): Don't call
9798 environment::do_break.
9800 * troff/div.c (blank_line): New function.
9801 * troff/div.h: Declare it.
9802 * troff/input.c (process_input_stack): Call it.
9804 * troff/div.c (truncated_space_reg::get_string): New function.
9805 (init_div_requests): Bind to .trunc.
9806 (space_request, top_level_diversion::space,
9807 top_level_diversion::output, macro_diversion::space,
9808 macro_diversion::output): Update truncated_space.
9809 (macro_diversion::output): Redo calculations when trap sprung.
9810 (macro_diversion::output, macro_diversion::space): No need for
9813 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
9814 after truncating post line spacing.
9816 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
9818 * ps/devps/prologue (MF, SF): Make them work even if setfont is
9819 defined as a procedure rather than as an operator.
9821 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
9823 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
9825 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
9827 * troff/div.c (top_level_diversion::output): Merge
9828 output_file::print_line and output_file::end_of_line member
9830 * troff/div.h (class output_file):
9831 * troff/node.c (troff_output_file::print_line,
9832 troff_output_file::end_of_line, output_file::end_of_line,
9833 ascii_output_file::print_line, suppress_output_file::print_line):
9834 Corresponding changes.
9836 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
9838 * troff/input.c (token::next): Don't give a warning for `\.'.
9840 * troff/env.c (environment::get_center_lines): New function.
9841 (init_env_requests): Bind number register .ce to it.
9842 * troff/env.h: Declare it.
9843 * tbl/table.c (table::init_output): Define reset macro to restore
9844 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
9846 (table::print): If center option not given, then imply center
9847 option if SAVED_CENTER_REG > 0.
9849 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
9851 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
9852 Troff.ps from DOWNLOAD.
9854 * troff/Makefile: Change comment in DEFINES to avoid confusing
9857 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
9858 code. Don't try to catch errors with stopped.
9859 (check_line_lengths): New function.
9860 * ps/devps/prologue (EXEC): Deleted.
9861 (EBEGIN, EEND): New procedures.
9863 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
9865 * troff/input.c: Include request.h before node.h.
9866 * troff/node.c: Likewise.
9867 * troff/env.c: Likewise.
9868 * troff/div.c: Likewise.
9869 * troff/node.h (class special_node): Store argument as a macro
9870 rather than a char *.
9871 * troff/node.c (special_node::special_node, special_node::copy):
9873 (special_node::~special_node): Deleted.
9874 (special_node::tprint): Deleted.
9875 (special_node::tprint_start, special_node::tprint_end,
9876 special_node::tprint_char): New functions.
9877 (troff_output_file::special): Deleted.
9878 (troff_output_file::start_special, troff_output_file::end_special,
9879 troff_output_file::special_char): New functions.
9880 * troff/input.c (special_node::tprint): New function.
9881 (do_special): Use macro not char *.
9882 (do_transparent_macro): Deleted.
9883 (token::next): Don't call do_transparent_macro.
9885 * troff/input.c (token::next): Add 'Y' case.
9886 (do_transparent_macro): New function.
9887 * troff/node.c (troff_output_file::special): Handle newlines with
9888 argument using new continuation convention.
9889 * driver/input.c (get_string): Cope with continuation convention.
9890 (do_file): Don't call skip_line after calling get_string(1).
9891 * ps/ps.c (ps_printer::special, ps_printer::do_import,
9892 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
9894 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
9897 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
9899 * troff/input.c (asciify): By default, illegal input characters
9900 should return empty string.
9902 * troff/input.c (copy_file): Handle first page transition like title.
9903 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
9905 * troff/input.c (token::next): Improve error message for EOF after
9907 (input_char_description): New function.
9908 (get_char_for_escape_name): Use input_char_description.
9909 (token::next): Warn about unrecognized escape sequences.
9910 (warning_table): Add WARN_ESCAPE.
9911 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
9914 * troff/token.h: Remove declaration of process_input_stack.
9916 * troff/input.c: Remove declaration of init_hyphen_requests.
9917 * troff/request.h: Correct spelling in declaration of same.
9919 * troff/input.c (token::next): Check whether escape_char is 0.
9921 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
9923 * groff.c (main, usage, help): Implement -P and -L options.
9924 * groff.sh: Likewise.
9926 * troff/input.c (token::next): Use some gotos to avoid code
9929 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
9930 Avoid calling symbol::symbol if name empty.
9932 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
9934 * troff/input.c (init_input_requests): Make \n(.x return the major
9935 version number and \n(.y return the minor version number.
9936 * troff/Makefile: Construct file majorminor.c defining
9937 major_version and minor_version automatically from ../VERSION.
9939 * troff/node.c (class glyph_node): Make operator new and operator
9941 (class ligature_node): Similarily.
9943 * troff/input.c (operator==(const macro &, const macro &)): New
9945 (non_interpreted_node::same): Use this.
9946 (string_iterator::string_iterator): Make macro& argument const.
9948 * troff/input.c (input_iterator::get): New function. Don't make
9949 asciify_macro or class non_interpreted_node friends of class
9951 (non_interpreted_node::interpret): Use input_iterator::get.
9952 (asciify_macro): Likewise.
9954 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
9955 ~non_interpreted_node): Deleted.
9956 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
9959 * troff/symbol.h: Make all symbol member functions const.
9961 * lib/strtol.c: New file.
9962 * lib/Makefile: Add strtol.c.
9963 * Makefile: Define STRTOL as strtol.o to include strtol in
9966 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
9968 * pic/troff.c (troff_output::simple_circle): Divide by scale.
9970 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
9972 * troff/input.c (do_special): Use input_level.
9974 * troff/token.h (TOKEN_BACKSPACE): New token.
9975 (token::backspace): New function.
9976 * troff/input.c (token::description, token::next, token::process):
9977 Grok TOKEN_BACKSPACE.
9978 (do_special): Turn TOKEN_BACKSPACE back into \b.
9980 * troff/token.h (token::leader): New function.
9981 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
9983 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
9985 * troff/input.c (do_special): Use token::description in error
9988 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
9990 * troff/input.c (decode_args): Combine quoted and
9991 quote_input_level variables. Make it a for (;;) loop.
9993 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
9995 * troff/input.c (read_long_escape_name): The test for whether to
9996 expand buffer was off by 1.
9997 (read_string): Similarily.
9999 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
10001 * troff/input.c: Use `const int' rather than `static const int'.
10003 * troff/div.h (diversion::copy_file): Declare as pure virtual.
10004 (macro_diversion::copy_file): New function.
10005 * troff/node.h: New class diverted_copy_file_node.
10006 * troff/node.c: Implement it.
10007 * troff/input.c (copy_file): Use diversion::copy_file. Handle
10008 first page transition by pushing a diverted_copy_file_node.
10009 * troff/input.c (token::next, process_input_stack): Don't handle
10012 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
10014 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
10015 whether space widths need adjusting.
10017 * troff/charinfo.h: Generalize translated_to_space to
10018 special_translation so as to allow translation to \&.
10019 * troff/input.c (translate): Allow translation to \&.
10020 (charinfo::*): Corresponding changes.
10021 * troff/node.c (make_node, node::add_char): Corresponding changes.
10022 * troff/node.h (dummy_node::dummy_node): Allow optional first
10025 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
10026 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
10028 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
10029 TOKEN_REQUEST with an argument of TITLE_REQUEST.
10030 (token::process): Grok that.
10031 * troff/input.c (copy_file): Handle first page transition like
10032 title by pushing a COPY_FILE_REQUEST cookie.
10033 (token::next, process_input_stack): Grok that.
10034 * troff/node.h (output_file::copy_file): Add x and y arguments.
10036 * troff/div.c (top_level_diversion::copy_file): Supply them.
10037 * troff/node.c (troff_output_file::copy_file): Add x and y
10038 arguments; moveto specified position. Invalidate font_position
10039 array after copying file.
10040 (output_file::copy_file): New function.
10041 (suppressed_output_file::copy_file, ascii_output::copy_file):
10043 * troff/input.c (transparent_file): New function.
10044 (init_input_requests): Bind to "trf".
10045 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
10046 (process_input_stack): Likewise.
10048 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
10050 * troff/node.c (init_node_requests): New number registers .kern
10051 pointing to global_kern_mode, and .lg pointing to
10052 global_ligature_mode.
10054 * troff/node.c (ligature): Don't change it if we get a bad
10057 * troff/input.c (do_define_string): Don't strip tabs.
10059 * troff/input.c (asciify_macro): Make the string_iterator auto.
10061 * troff/node.c (init_font_requests): Rename to...
10062 (init_node_requests):
10063 * troff/node.h: Change declaration.
10064 * troff/input.c (main): Change call.
10066 * troff/input.c (node::reread, diverted_space_node::reread): New
10068 (process_input_stack): Call reread rather than
10069 get_diverted_space_node.
10070 * troff/node.c (node::get_diverted_space_node,
10071 diverted_space_node::get_diverted_space_node): Removed.
10072 * troff/node.h: Declare reread methods instead of
10073 get_diverted_space_node methods. Make `n' member private.
10074 * troff/input.c: (token::diverted_space): Removed.
10075 * troff/token.h: Removed declaration.
10078 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
10080 * eqn/script.c (script_box::compute_metrics): Don't let
10081 SUP_RAISE_FORMAT become negative.
10083 * tbl/table.c (table::do_row): Entries that don't end in the
10084 this row shouldn't make the row non-blank.
10086 * tbl/table.c (table::make_columns_equal): Only set the width of
10087 columns which are marked as equal.
10089 * tbl/main.c (process_data): Before issuing excess data error,
10090 if last character was a newline unget it; then get it again after
10091 the error. Also include the contents of the entry in the message.
10093 * groff.c: New file.
10094 * Makefile: Build groff from groff.c. Make it possible to use
10095 either groff.sh or groff.c as groff.
10096 * Makefile.bd: Similarily.
10098 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
10100 * groff.sh: Don't delay expansion of $@ in assignment to files.
10101 Remove occurrences of \".
10103 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
10105 * all Makefiles: Simplify and rearrange.
10107 * Makefile: Handle fmod like malloc.
10108 * lib/Makefile: Similarily.
10109 * lib/fmod.c: Remove #ifdef NEED_FMOD.
10111 * Makefile: Rename OPTIMISE to OPTIMIZE.
10113 * groff.sh: Remove assignment to PATH.
10114 * Makefile: Remove SHPATH variable.
10115 * Makefile.bd: Similarily.
10117 * groff.sh: Add -V option to print the pipeline instead of
10120 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
10122 * lib/font.c: Split off file searching into ...
10123 * lib/fontfile.c: New file.
10125 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
10127 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
10129 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
10130 Also change misleading comment.
10131 (table::do_vspan): Change similarily misleading comment.
10132 * tbl/main.c (process_data): A format row with an explicit `s'
10133 uses up a data line, even if all the other columns are `_' or `='.
10135 * troff/input.c (token::description): Fix description of
10136 TOKEN_DUMMY and TOKEN_EMPTY.
10138 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
10140 * groff.sh: Fix description of -Z in help message.
10142 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
10144 * pic/object.c (object_spec::make_object): Allow negative and zero
10146 * pic/pic.y: Give linethick default value of -1.0.
10147 * pic/troff.c (troff_output::troff_output): Initialize
10148 last_line_thickness to BAD_THICKNESS.
10149 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
10150 (troff_output::line_thickness): Canonicalize negative thicknesses
10151 to RELATIVE_THICKNESS.
10152 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
10153 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
10155 (tex_output::start_picture): Set pen_size to -2.0.
10157 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
10158 0, then use 0 linewidth.
10159 (ps_printer::ps_printer): Initialize line_thickness to -1.
10161 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
10163 * ps/devps/symbolchars: Remove `or'.
10164 * ps/tmac.ps: Implement \(or with .char.
10166 * ps/devps/symbolchars: Move most characters into textmap.
10167 * ps/devps/textmap: Add names for troff bracket characters. Remove
10170 * ps/devps/TSymbol.ps: Removed.
10171 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
10172 * ps/tmac.ps: Do with .char what TSymbol did.
10173 * ps/devps/download: Remove TSymbol.
10175 * ps/devps/T: Removed.
10176 * ps/devps/Troff.ps: Removed.
10177 * ps/devps/Troff.afm: Removed.
10178 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
10179 * ps/devps/download: Remove Troff.
10180 * ps/devps/FontMakefile: Remove T target.
10181 * ps/devps/DESC-A4: Remove T from font list.
10182 * ps/devps/DESC-letter: Likewise.
10184 * troff/input.c (macro_to_node): Rename to ...
10185 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
10186 character's definition while processing it.
10187 * troff/node.c (node::add_char, make_node): Change calls to
10188 macro_to_node accordingly.
10190 * troff/input.c (token::next): Translate \_ to \(ul.
10192 * tty/devascii/R.proto: Add `|'.
10193 * tty/devlatin1/R.proto: Likewise.
10195 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
10197 * man: Put the version number in all the man pages.
10199 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
10201 * Makefile.bd: New file.
10202 * README.bd: New file.
10204 * VERSION: New file.
10205 * lib/version.c: Removed.
10206 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
10209 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
10210 environment variable.
10212 * all Makefiles: Split install target into install.bin for
10213 binaries, and install.nobin for everything else.
10214 * Makefile: Add bindist target.
10216 * man/afmtodit.man: New file.
10217 * man/Makefile: Add afmtodit.n to MAN1PAGES.
10218 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
10220 * ps/Makefile: Pass BINDIR to make install in devps.
10222 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
10223 the space character.
10225 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
10227 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
10229 * ps/ps.c: Redo font downloading.
10230 * ps/devps/download: New file.
10231 * ps/devps/Makefile: Add download to DEVICEFILES.
10232 * ps/devps/afmtodit: Remove -d option.
10233 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
10234 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
10235 * ps/devps/zapfdr.ps: Likewise.
10236 * ps/devps/TSymbol.ps: Likewise.
10238 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
10240 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
10242 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
10244 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
10245 then strip the first line if it starts with %.
10246 * Makefile: Add a comment about this.
10248 * man/tfmtodit.man: New file.
10249 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
10250 * dvi/Makefile: Install tfmtodit in BINDIR.
10252 * dvi/tfmtodit.c (usage): Mention -v option.
10254 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
10256 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
10257 * troff/node.c (troff_output_file::transparent_char): Don't call
10260 * eqn: Add check_tabs method to most box classes.
10261 * eqn/box.c (box::top_level): Call check_tabs.
10263 * eqn/script.c (script_box::output): Use \Z.
10264 * eqn/limit.c (limit_box::output): Use \Z.
10266 * eqn/box.c (box::top_level): Use itoa.
10268 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
10270 * dvi/tmac.dvi: Add font translations for CR, C, TT.
10271 * dvi/devdvi/Makefile: Don't make links to CW.
10273 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
10275 * xditview/tmac.X: Likewise.
10277 * troff/node.c: Add font translation feature.
10278 (get_font_translation): New function.
10279 (symbol_fontno): Translate the font name.
10280 (mount_font_no_translate): Rename to mount_font to this.
10281 (mount_font): New function.
10282 (font_family::make_definite): Call mount_font_no_translate instead
10284 (mount_style): Translate the font name.
10285 (font_translate): New function.
10286 (init_font_requests): Bind "ftr" to font_translate.
10288 * ps/devps/prologue (SN): New procedure that rounds a position to
10289 the nearest (pixel + (.25,.25)).
10290 (DL): Use SN to round endpoints.
10292 * lib/version.c: Changed version to 0.5.
10294 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
10296 * Makefile: Move definition of PAGE to the very beginning, so that
10297 people are less likely to miss it.
10299 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
10301 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
10303 * troff/env.c (environment::choose_breakpoint): Make `can't find
10304 breakpoint' error a warning of type WARN_BREAK. Change message to
10305 `can't break line'.
10306 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
10308 * troff/input.c: Add WARN_BREAK to warning_table. Include
10309 WARN_BREAK in DEFAULT_WARNING_MASK.
10311 * tty/tmac.tty: Add definition of \(+-.
10313 * groff.sh: Remove `--' option to set command.
10315 * dvi/devdvi/texsy.map: Remove duplicate md entry.
10317 * ps/devps/eqnchar: Better definition of cdot using md.
10318 * dvi/devdvi/eqnchar: Likewise.
10319 * xditview/devX100/eqnchar: Likewise.
10320 * xditview/devX75/eqnchar: Likewise.
10321 * eqn/lex.c: Add definition of cdot.
10323 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
10325 * troff/input.c (get_optional_char): New function.
10326 * troff/input.c (set_page_character): Use get_optional_char(),
10327 rather than has_arg() and tok.get_char(1).
10328 * troff/env.c (tab_character, leader_character, hyphen_char,
10329 field_characters): Likewise.
10330 (margin_character): Likewise. Also always delete the
10331 margin_character_node.
10333 * troff/input.c (token::get_char): Use token::description.
10335 * troff/input.c (has_arg): Don't skip over tab and \}.
10336 * troff/number.c (start_number): Give a warning if the number
10337 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
10339 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
10341 * troff/input.c (empty_name_warning, non_empty_name_warning): New
10343 (get_name, get_long_name): Use these. Rename `warn' argument to
10346 * troff/node.c (get_fontno): Test that the symbol is not null.
10348 * troff/input.c (token::description): New function.
10349 * troff/number.c (parse_term): Use token::description in `numeric
10350 expression expected' message.
10351 * troff/groff.h: Add WARN_MISSING.
10352 * troff/number.c (start_number): New function.
10353 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
10354 get_incr_number): Use start_number().
10355 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
10357 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
10358 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
10360 * troff/input.c (token::get_char): Use WARN_MISSING.
10361 * troff/input.c (token::delimiter): Use token::description.
10362 * troff/env.c (environment_switch): Back out Aug 3 change.
10363 * troff/input.c (has_arg): Skip over \}s and tabs but give a
10365 * troff/token.h (token::tab): New function.
10366 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
10367 * troff/reg.c (alter_format): Likewise.
10368 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
10370 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
10372 * troff (most files): Redo warnings. Divide warnings into various
10373 categories; warning() has an additional first argument indicating
10374 the category it falls into.
10375 * troff/input.c (main): -w now takes an argument. New option -W.
10376 (enable_warning, disable_warning): New functions.
10378 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
10379 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
10381 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
10383 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
10384 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
10385 * xditview/devX75/eqnchar: Likewise.
10386 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
10388 * eqn/other.c: When bar or over applies to a single character
10389 don't produce an overline_box or an underline_box. Instead produce
10390 an accent_box or an underaccent_box, with the accent a line
10391 whose width is accent_width. New classes underaccent_box,
10392 overline_char_box and underline_char_box.
10393 * eqn/box.h: Move overline_box, underline_box, accent_box class
10394 declarations into eqn/other.c. Add declarations of
10395 make_underline_box, make_overline_box, make_accent_box.
10396 * eqn/eqn.y: Call make_overline_box, make_underline_box
10397 make_accent_box instead of constructors.
10398 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
10400 * eqn/other.c: Add accent_box::~accent_box.
10401 * eqn/box.h: Declare it.
10403 * groff.sh: With -Tps, use eqn -D.
10405 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
10407 (underline_box::output): Similarily.
10408 (accent_box::output): Use \Z.
10410 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
10413 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
10415 * troff/div.c (top_level_diversion::transparent_output(unsigned
10416 char)): Use asciify.
10417 * troff/input.c (asciify): Don't make it static.
10418 * troff/token.h (asciify): Declare it.
10420 * troff/input.c (get_name, get_long_name, token::get_char,
10421 token::delimiter): Add an extra default argument which says
10422 whether a warning should be printed.
10423 * troff: Pass a non-zero argument to one of these rather than
10424 printing a warning directly.
10426 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
10428 * troff: Consistently use symbol::is_null.
10430 * troff/dictionary.h: Move some inline functions into
10433 * troff/request.h: Move inline functions into input.c.
10434 (request_or_macro::invoke): Make it pure.
10436 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
10437 * troff/input.c (init_input_requests): Use class constant_int_reg.
10438 (class compatible_reg): Deleted.
10439 * troff/div.c (init_div_requests): Use class constant_int_reg.
10440 (class last_post_line_extra_space_reg): Deleted.
10442 * troff/env.c (tab_character): Don't change the tab character if
10443 we get an invalid argument.
10444 (hyphen_char): Similarily.
10446 * troff/reg.c (alter_format): Check that nm is not null.
10448 * Makefile, groff.sh: Make it possible to customize the commands
10449 used for printing PostScript and dvi files. Also make it possible
10450 to customize the path used by groff.sh.
10452 * eqn/eqn.y: Make `left' right associative.
10454 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
10456 * pic/pic.h: Added definition of M_SQRT2 for those systems that
10459 * pic/pic.h: Removed definition of INT_MAX.
10461 * troff/node.c (italic_corrected_node::vertical_extent): Omit
10464 * troff/input.c (token::next): Handle \R like \n.
10466 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
10468 * ps/tmac.pc (PSPIC): Simplify.
10470 * troff/env.c (tab_stops::to_string):
10471 * pic/pic.y (object_type_name):
10472 * pic/troff.c (simple_output::line):
10473 * pic/tex.c (tex_output::spline):
10474 * pic/object.c (object_spec::make_object):
10475 * tbl/main.c (process_data): Add cases to switch statements to
10476 avoid cfront warnings. (Some of these are spurious, since the
10477 switch already has a default case.)
10479 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
10480 `ps-'. Don't test systat; instead check number of arguments to
10483 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
10485 * macros/tmac.e: Do not decrease the page offset by 0.5i.
10487 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
10488 Unlink the file as soon as we have opened it, so that we don't
10489 have to bother with signal handlers.
10490 (handler): Deleted.
10491 (fatal_error_exit): Deleted.
10492 (main): Don't call signal.
10494 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
10496 * dvi/devdvi/Makefile: Use the -k option with S and MI.
10498 * pic/pic.y: If there is a label, or an nth construction before
10499 the first `.' in the argument to `with', ignore it and generate a
10501 * pic/lex.c (lex_warning): New function.
10503 * tbl/table.c (table::init_output): In section keep and release
10504 macro, use 0 indent when diverting and the correct indent when
10507 * troff/input.c (interpolate_number_format): Do not interpolate
10508 anything if the number register is not defined.
10510 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
10512 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
10514 * ps/devps/prologue (PICTURE): Set components of graphics state to
10515 their default values.
10517 * ps/devps/text.enc: Add trademark
10518 * ps/devps/textmap: Add names for club, spade, heart, diamond,
10519 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
10520 * ps/devps/symbolchars: Add names for summation and product.
10522 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
10523 suchthat. Add pp. Add upper-case letters.
10525 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
10526 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
10529 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
10530 rA (right angle bracket) to ra. Introduce names for double-headed
10531 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
10532 * ps/devps/textmap: Likewise for ps device.
10533 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
10534 * tty/devascii/R.proto: Rename lA to la and rA to ra.
10535 * tty/devascii/R.proto: Likewise.
10536 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
10538 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
10540 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
10542 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
10545 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
10547 * troff/div.c (when_request): Use symbol::is_null rather than
10548 has_arg to determine whether we have an argument.
10549 (change_trap): Remove the trap if we get an invalid number. Give
10550 an error if we don't get at least the macro name.
10551 (diversion_trap): Remove trap if we get an invalid name or number.
10553 * troff/env.c (environment_switch): Pop if we get an invalid
10554 symbol or numeric expression.
10556 * troff/input.c (do_define_macro): If EOF is encoutered while
10557 defining the macro, do tok.next() before returning.
10559 * troff/token.h (has_arg): Move definition from here, to ...
10560 * troff/input.c (has_arg): ... here
10562 * troff/env.c (space_size): Do nothing if we get an invalid argument.
10563 * troff/input.c (shift): Likewise.
10565 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
10568 * pic/troff.c (troff_output::start_picture): Comment out calls to
10571 * eqn/main.c (do_file): Subtract 1 from current_lineno if
10572 interpret_lf_args succeeds.
10574 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
10575 \\. This avoids problems with \$N.
10577 * groff.sh: Pass -C to preprocessors.
10579 * lib/lf.c (interpret_lf_args): Be more flexible.
10581 * tbl/main.c (main): Add -C option.
10582 (table_input::get): Do not recognize TE if followed by character
10583 other than a space or newline unless -C option given.
10584 (process_input_file): Likewise for lf, TS.
10585 (process_data): Likewise for lf in text blocks.
10587 * eqn/main.c (main): Add -C option.
10588 (do_file): Don't recognize EQ, EN or lf if followed by character
10589 other than space or newline unless -C option given.
10590 * eqn/lex.c (file_input::read_line): Similarily.
10591 * eqn/eqn.h: Declare compatible_flag.
10593 * etc/soelim.c (main): Add -C option.
10594 (interpret_lf_args): Use version in libgroff.
10597 * pic/main.c (main): Add -C option, which sets compatible_flag.
10598 (top_input::get), (top_input::peek): If -C option not given,
10599 do not recognize .PS/.PE/.PF/.lf if followed by a character
10600 other than space or newline.
10601 * pic/lex.c (file_input::read_line): Similarily.
10602 * pic/pic.h: Add declaration of compatible_flag.
10604 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
10606 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
10608 * troff/node.c, troff/node.h: Add `asciify' methods to classes
10609 derived from node. New class space_char_hmotion_node.
10610 * troff/input.c (asciify_macro): New function.
10611 * troff/input.c (init_input_requests): New request `asciify' bound
10613 * macros/mm.diff: New file.
10614 * Makefile: In install.mm target use `patch' to apply
10617 * troff/input.c (macro::print_size): Just print the size in bytes.
10619 * troff/div.c (return_request): Correct the argument
10622 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
10624 * troff/node.h (class composite_node): Add sz member.
10625 * troff/node.c (composite_node::size): Return sz.
10626 * troff/input.c (macro_to_node): Use the initial size in the
10627 environment as the size of the composite_node.
10629 * troff/node.c (node::zero_width_tprint): Provide a reasonable
10632 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
10634 * troff/div.c (change_trap): If we get a bad number expression,
10637 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
10639 * lib/matherr.c (matherr): Define this only if math.h defines
10642 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
10644 * troff/div.c (macro_diversion::distance_to_next_trap): If there
10645 no diversion trap return vunits(INT_MAX - vresolution).
10647 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
10649 * troff/input.c (do_zero_width): New implementation that doesn't
10650 use a temporary environment. Use instead:
10651 (token::add_to_node_list): New function.
10652 * troff/env.c (environment::get_prev_char_height),
10653 (environment::get_prev_char_height),
10654 (environment::get_prev_char_skew): New functions.
10655 (environment::get_prev_char): New function.
10656 (environment::get_prev_char_width): Change to use get_prev_char.
10657 (init_env_request): Implement new registers .cht, .cdp, .csk.
10658 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
10659 \Z being processed in a separate environment.
10661 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
10663 * tbl/table.c: Removed TABLE_BOTTOM_REG.
10665 * tbl/table.c (table::init_output): In the section release macro,
10666 give a warning message if the section won't fit on one page.
10668 * tbl/table.c (table::do_top): Emit table keep only if table is
10670 (table::do_bottom): Likewise for table release.
10671 (table::table), (table::add_vertical_rule): Remove reference to
10673 * tbl/table.h: Remove keep member.
10675 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
10676 SECTION_RELEASE_MACRO, if there's not enough space before the next
10677 trap to output the diversion, call T# ourselves, set
10678 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
10679 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
10680 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
10681 vertical position and return to it before turning traps on again.
10683 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
10685 * troff/node.c, troff/node.h: In classes derived from node,
10686 replace prev_char_width method by last_char_node method.
10687 * troff/env.c (environment::get_prev_char_width): Use
10688 node::last_char_node rather than node::get_prev_char_width.
10690 * Makefile: Added comment about -fno-inline on 68030-based
10693 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
10694 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
10695 expressions using sizeof to int.
10696 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
10698 * macros/tmac.e (TS): Don't move @f back past the current
10701 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
10703 * ps/ps.c (main): Buffer stderr.
10704 * dvi/dvi.c (main): Likewise.
10705 * tty/tty.c (main): Likewise.
10707 * ps/ps.c (ps_printer::do_import): Improve error handling.
10709 * troff/input.c (abort_request): Use asciify.
10711 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
10712 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
10713 type of first argument int rather than char. This works around a
10714 bug on the 68030 based Apollo using g++ 1.37.1.
10716 * tbl/table.h (class table): Add `keep' member.
10717 * tbl/table.c (table::table): Initialize `keep'.
10718 (table::add_vertical_rule): Set `keep' to 1.
10719 (table::do_top): Only emit table keep macro is `keep' is non-zero.
10720 (table::do_bottom): Likewise for table release macro.
10721 (table::do_row): Emit section keep macro even if the row is 0.
10723 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
10725 * macros/tmac.e (@C): Preserve the font family across the change
10728 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
10730 * lib/font.c: Initialize font::hor and font::vert to 1.
10731 (font::load_desc): Check the values of font::hor and font::vert.
10733 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
10734 be included in a C compilation.
10735 (iftoa): Use INT_DIGITS. Include lib.h.
10737 (as_string): Likewise.
10738 * tbl/table.c: Removed definition of INT_DIGITS.
10739 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
10740 * troff/input.c (input_input_requests): Likewise.
10741 * ps/ps.c (make_encoding_name): Likewise.
10742 (ps_printer::set_style): Likewise.
10743 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
10745 * tty/devascii/R.proto: Map fm onto '.
10746 * tty/devlatin1/R.proto: Likewise.
10748 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
10750 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
10751 argument to \w is at a different input level.
10753 * tbl/table.c (table::init_output): Define a new macro
10754 REPEATED_VPT_MACRO, like vpt but if in a diversion also
10755 transparently outputs itself.
10756 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
10758 (table::do_row): Likewise.
10760 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
10761 TRANSPARENT_STRING_NAME.
10763 * tbl/table.c (table::init_output): In the table release macro
10764 print an error message and don't produce any output if after
10765 issuing the need request the table still will not fit. Also
10766 remove the diversion after bringing it back.
10768 * tbl/table.c (table::init_output): Define a new macro
10769 REPEATED_MARK_MACRO, like mk but if in a diversion also
10770 transparently outputs itself.
10771 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
10772 is necessary because .TH might not call .T#.
10773 (table::do_top): Likewise TOP_REG.
10774 (table::define_bottom_macro): If TOP_REG is no longer valid, use
10775 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
10776 table header might contain just the two top rules.
10778 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
10780 * troff/div.c: Implement new request `ptr' to print all traps.
10782 * troff/env.c (init_env_requests): Implement `.tabs' reg with
10783 init_string_env_reg.
10784 * troff/env.c (class tab_reg): Deleted.
10786 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
10788 * troff/div.c: New number register .pn returns the number of the
10789 next page as set by the pn request.
10791 * macros/tmac.an: Redid headers and footers. Number each manual
10792 entry starting from 1 unless \nC is > 0, like Sun. Added an
10793 optional 5th argument to .TH which specifies the manual name and
10794 appears in the center of the header. Understand the X, P and D
10795 registers like Sun.
10797 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
10799 * troff/env.c (init_env_requests): New number register `.lt' to
10800 return the title length.
10802 * troff/node.h (class transparent_dummy_node): New class.
10803 * troff/node.c (class transparent_dummy_node): Provide member
10805 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
10808 * troff/input.c (token::next): New escape sequence \).
10809 * troff/input.c (get_copy): Recognize \) in copy mode.
10811 * troff/input.c (input_stack::clear): New function.
10812 * troff/input.c (exit_request): Use input_stack::clear.
10814 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
10815 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
10817 * troff/env.c: Move set_page_character to input.c. Move
10818 page_character to input.c also.
10819 * troff/env.c (title): Split off the reading of the parts of the
10820 title into read_title_parts.
10821 * troff/input.c (read_title_parts): New function. Check the
10822 input_level when testing whether a token matches the delimiter.
10824 * troff/input.c (exit_request): New function.
10825 * troff/input.c (init_input_requests): Bind ex request to
10826 exit_request rather than exit_groff.
10828 * troff/input.c (exit_groff): Call tok.next() before
10829 process_input_stack().
10831 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
10833 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
10834 * troff/env.h: ditto.
10835 * troff/input.c: ditto.
10837 * troff/env.c (environment::is_empty): Test pending_lines.
10839 * troff/env.c (environment::have_pending_lines): Removed.
10841 * troff/input.c: Add request to flush pending lines from the
10844 * troff/env.c, troff/env.h: Add automatic widow control feature.
10846 * troff/input.c (exit_groff): Do process_input_stack() after
10847 do_break() but before setting exit_flag to 2.
10849 * troff/input.c: Remove FLUSH_PENDING_LINES and
10850 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
10851 environment after END_TRAP token seen, but only if there aren't
10852 any more traps still unfinished.
10853 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
10855 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
10857 * troff/env.c: Rename the `retain_size' member of class
10858 pending_output_line to `no_fill'.
10860 * troff/env.c (title): When the line is output, make the
10861 retain_size argument !fill.
10863 * troff/node.h: Add `hyphenated' member to struct breakpoint.
10864 * troff/node.c (space_node::get_breakpoints),
10865 (dbreak_node::get_breakpoints): Fill this in.
10866 * troff/env.c: Allow specification of maximum number of
10867 consecutive hyphenated lines.
10869 * troff/env.c (environment::is_empty): Add test for !current_tab.
10871 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
10873 * troff/env.c (environment::hyphenate_line): Don't completely give
10874 up if the word is not to be hyphenated; continue so that breaks
10875 can be made at break_char_node's.
10877 * lib/lib.h: Only define INT_MAX if it's not already defined;
10878 undef INT_MIN if it's already defined.
10880 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
10882 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
10883 This works around a bug in AT&T C++ 2.0 used with an ANSI C
10886 * macros/tmac.an (an-header): Set no-space mode.
10888 * macros/tmac.an (TH): Start a new page if necessary.
10890 * Started using ChangeLog at version 0.4.
10893 version-control: never