* tmac/groff_mdoc.man: Minor fixes.
[s-roff.git] / ChangeLog
blobec1ea29c3721cb4164fc5827ff47dc0021771685
1 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
3         * tmac/groff_mdoc.man: Minor fixes.
5 2002-01-13  Werner LEMBERG  <wl@gnu.org>
7         * man/groff_out.man: Some fixes.
9 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
11         * doc/pic.ms: Fix typos.
13 2002-01-12  Werner LEMBERG  <wl@gnu.org>
15         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
17 2002-01-10  Werner LEMBERG  <wl@gnu.org>
19         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
20         symbols.
21         * NEWS: Updated.
23 2002-01-09  Bernd Warken  <bwarken@mayn.de>
25         * man/groff_out.man: Revised.
26         * man/roff.man: Minor fixes.
27         * src/roff/troff/troff.man: Some reordering.
29 2002-01-09  Werner LEMBERG  <wl@gnu.org>
31         * tmac/an-old.tmac: Add dummy macros for equation support.
33 2002-01-07  Werner LEMBERG  <wl@gnu.org>
35         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
37         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
38         man pages.
39         * tmac/groff_man.man: Small improvements.
41 2002-01-07  Bernd Warken  <bwarken@mayn.de>
43         * man/groff_diff.man: Revised.
45 2002-01-06  Werner LEMBERG  <wl@gnu.org>
47         * tmac/www.tmac: Remove extraneous backslash.
49 2002-01-06  Bernd Warken  <bwarken@mayn.de>
51         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
53 2002-01-05  Werner LEMBERG  <wl@gnu.org>
55         Integrated groffer, contributed by Bernd Warken.
57         * contrib/groffer/*: New.       
58         * Makefile.in, NEWS: Updated.
60 2002-01-04  Werner LEMBERG  <wl@gnu.org>
62         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
63         registers defined in macro packages.
64         Revising the ms part.
66 2002-01-04  Larry Kollar  <kollar@alltel.net>
68         * doc/groff.texinfo: Add documentation for ms macros.
70 2002-01-02  Werner LEMBERG  <wl@gnu.org>
72         First step in adding PS support for the Euro symbol.  `eu' is the
73         official Euro logo, `Eu' is a font-specific glyph variant.
75         * font/devps/text.enc: Add `Euro' at position 9.
76         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
77         * font/devps/symbolmap: Regenerated.
79         * NEWS: Updated.
81 2002-01-02  Bernd Warken  <bwarken@mayn.de>
83         * man/roff.man: Revised.
85 2002-01-01  Bernd Warken  <bwarken@mayn.de>
87         * src/roff/groff/groff.man: Completely rewritten.
89 2001-12-31  Werner LEMBERG  <wl@gnu.org>
91         * doc/Makefile: Updated.
93 2001-12-30  Werner LEMBERG  <wl@gnu.org>
95         * tmac/www.tmac: Make all names of internal macros/registers/strings
96         lowercase, and prepend `www-'.
97         Other minor changes.
98         * src/roff/troff/troff.man: Add preprocessor string at BOF.
100 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
102         Implement option `-b' in grohtml to set the HTML background colour.
104         * src/devices/grohtml/post-html.cc (default_background): New global
105         variable.
106         (html_printer::html_printer): Initialize `background' to
107         `default_background'.
108         (main): Implement option `-b'.
109         (usage): Updated.
110         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
111         of `-b' option.
112         * src/devices/grohtml/grohtml.man: Updated.
113         * doc/Makefile (.ms.html): Use `-b'.
114         * tmac/html.tmac: Don't set background color.
116         Add new grohtml tag `.html-tl'.
118         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
119         member variable.
120         (title_desc::title_desc): Updated.
121         (html_printer::troff_tag): Handle `.html-tl'.
122         (html_printer::write_title): Use `with_h1'.
123         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
124         (HTML-TL): New macro.
126         Add support for unordered lists in HTML.
128         * tmac/www.tmac (www-level): New auxiliary register.
129         (www-level1, www-level2, www-level3): New auxiliary strings.
130         (www-push-level, www-pop-level): New auxiliary macros
131         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
133         Miscellaneous.
135         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
136         (DEFAULT_VERTICAL_OFFSET): Removed.
137         (IMAGE_BOARDER_PIXELS): Set to 0.
138         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
139         (vertical_offset): Initialize with 0.
140         (gsPaper): New global variable.
141         (get_resolution): Scan for and return unsigned int.
142         (get_papersize): New function to get paper length from devps/DESC.
143         (determine_vertical_offset): New function.
144         (createAllPages): Produce gray-level images and use proper page
145         length.
146         (createImage): Use `-quiet' option of pnmcrop.
147         (addZ): Fix passing of `-Z'.
148         (scanArguments): Fix handling of `-o'.
149         (main): Call `determine_vertical_offset'.
150         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
151         code for `l'.
153         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
154         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
155         glyph descenders properly.
157         * doc/homepage.ms: Include `gnubw.eps'.
158         * doc/Makefile (gnubw.eps): New rule.
159         (homepage.html): Depend on `gnubw.eps'.
161 2001-12-25  Werner LEMBERG  <wl@gnu.org>
163         * src/roff/troff/input.cc (default_black): Fix return value.
165 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
167         * tmac/doc-common (Dt): Change output of architecture strings.
168         Do some syntax cleanup.
169         * tmac/groff_mdoc.man: Updated.
171 2001-12-23  Werner LEMBERG  <wl@gnu.org>
173         Adding an `itc' request (input line trap accepting \c).
175         * src/roff/troff/env.h (environment): New member
176         `continued_input_trap'.
177         Make `do_input_trap' a friend function instead of `input_trap'.
178         * src/roff/troff/env.cc (environment::environment,
179         environment::copy): Updated.
180         (environment::newline): Implement it.
181         (do_input_trap): New function.
182         (input_trap): Call `do_input_trap'.
183         (input_trap_continued): New function.
184         (init_env_requests): Updated.
185         * src/roff/troff/TODO: Updated.
187         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
188         `.it'.
190         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
192 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
194         * tmac/doc-common, tmac/doc-syms: Small updates.
196 2001-12-22  Colin Watson  <cjwatson@debian.org>
198         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
200 2001-12-22  Bernd Warken  <bwarken@mayn.de>
202         * MANIFEST: New file.
204 2001-12-22  Werner LEMBERG  <wl@gnu.org>
206         * src/preproc/grn/grn.man: Updated.
208 2001-12-22  Solar Designer  <solar@openwall.com>
210         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
211         (DBRead): Use it.
213 2001-12-19  Werner LEMBERG  <wl@gnu.org>
215         Implement a fallback character request `.fchar'.
217         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
218         (is_fallback): New inline function.
219         * src/roff/troff/input.cc (do_define_character): New function.
220         (define_character): Call `do_define_character'.
221         (define_fallback_character): New function.
222         (init_input_requests): Add `fchar'.
223         (charinfo::charinfo): Updated.
224         (charinfo::set_macro): New argument to set `fallback' flag.
225         * src/roff/troff/node.cc (make_glyph_node, make_node,
226         node::add_char): Check `fallback' flag.
227         * NEWS, man/groff_diff.man, man/groff_man: Updated.
229 2001-12-16  Werner LEMBERG  <wl@gnu.org>
231         * groff.texinfo: Document exact search algorithm for glyphs.
233 2001-12-15  Werner LEMBERG  <wl@gnu.org>
235         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
236         the left side of $(MANPAGES) rule to make it always non-empty.
238 2001-12-14  Werner LEMBERG  <wl@gnu.org>
240         * src/roff/troff/input.cc (default_black): Define default color
241         `black' if not yet defined.
243 2001-12-13  Werner LEMBERG  <wl@gnu.org>
245         Implement new string-valued register `.fn' to return the current
246         real (internal) font name.
248         * env.cc (environment::get_font_name_string): New function.
249         (init_env_requests): Add `.fn' register.
250         * env.h (environment): Updated.
251         * node.cc (font_info): Make `get_font_name' a friend.
252         (get_font_name): New function.
253         * node.h: Updated.
255         * man/groff_diff.man, man/groff.man, NEWS: Updated.
257 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
259         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
261 2001-12-12  Werner LEMBERG  <wl@gnu.org>
263         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
265 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
267         * man/groff_diff.man: Adding documentation for \O.
269 2001-12-10  Werner LEMBERG  <wl@gnu.org>
271         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
272         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
274 2001-12-09  Werner LEMBERG  <wl@gnu.org>
276         * man/roff.man: Revised.
277         * src/roff/groff/groff.man: Replace man page references with a
278         pointer to roff.man.
280 2001-12-09  Bernd Warken  <bwarken@mayn.de>
282         * man/roff.man: Completely rewritten.
284 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
286         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
288 2001-12-05  Werner LEMBERG  <wl@gnu.org>
290         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
291         longer used.
292         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
293         order of initializers.
294         * NEWS: Updated.
296 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
298         * doc/groff.texinfo: Fix documentation of \O.
300         * src/devices/grohtml/html-text.cc (html_text::do_indent,
301         html_text::do_table, html_text::do_emittext, html_text::do_para):
302         Use `const' for first argument.
303         (html_text::do_table): Use cast.
304         * src/devices/grohtml/html-text.h: Updated.
305         * src/devices/grohtml/output.cc (simple_output::put_string): Add
306         method for `const string &s'.
307         * src/devices/grohtml/html.h: Updated.
308         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
309         (ANCHOR_TEMPLATE): Modified.
310         (manufacture_headings): New global variable to handle `-h' option.
311         (is_subsection): Removed.
312         (char_buffer::add_string): Add `const' to first argument.
313         Protect against invalid string argument.
314         Add method for `const string &s'.
315         (text_glob): Completely redesigned.
316         (page): Use `const' for strings and remove string length variable.
317         (page::add_html): Removed.
318         (page::add_end_encode): New member function.
319         (to_unicode): Moved upwards.
320         (title_desc, header_desc): Updated.
321         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
322         definition.
323         (html_printer::is_bold, html_printer::make_bold): New member
324         functions.
325         (html_printer::end_of_line): Updated.
326         (generate_img_src, html_printer::do_auto_image,
327         html_printer::do_title, html_printer::write_header,
328         html_printer::determine_header_level, html_printer::do_heading,
329         html_printer::do_linelength, html_printer::do_pageoffset,
330         html_printer::do_indentation, html_printer::do_tempindent,
331         html_printer::do_indentedparagraph, html_printer::do_break,
332         html_printer::flush_sbuf, get_html_translation,
333         html_printer::begin_page, html_printer::special): Rewritten to get
334         rid of static string length limit.
335         (html_printer::troff_tag): Added `.no-auto-rule'.
336         (html_printer::flush_globs): Small fix.
337         (html_printer::determine_space): Don't compute `space_width'.
338         (html_printer::translate_to_html): Renamed to ...
339         (html_printer::emit_html): This (with updates).
340         (html_printer::write_header): Implement `-h' option.
341         (html_printer::draw): Remove commented-out code.  Handle `F'
342         command.
343         (html_printer::add_char_to_sbuf): Removed.
344         (html_printer::add_to_sbuf): Rewritten.
345         (html_printer::sbuf_continuation): Fixed.
346         (html_printer::seen_backwards_escape, reverse,
347         html_printer::remove_last_char_from_sbuf): Removed.
348         (char_translate_to_html, str_translate_to_html): Removed.
349         (html_printer::overstrike): New function member.
350         (html_printer::set_char): Use it.
351         (html_printer::do_body): New function member.
352         (html_printer::~html_printer): Use it.
353         (main): Handle `-h' option.
354         (usage): Updated.
355         * src/devices/grohtml/grohtml.man: Document -h switch.
357         * src/preproc/html/pre-html.cc: Include searchpath.h
358         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
359         (get_resolution): New function.
360         (checkImageDir): Use `0777' permissions in mkdir()
361         (write_start_image): Rewritten to use `\O[5...]'.
362         (createImage, generateImages): Updated.
363         (main): Handle `F' and `h' options.
364         Use `get_resolution'.
366         * src/roff/troff/input.cc (begin, end, image): Removed.
367         (do_suppress): Take parameter.
368         Handle modified syntax of `\O'.
369         (token::next): Updated.
370         (init_markup_requests): Removed.
371         (main): Updated.
373         * src/roff/troff/div.h: Add declaration for begin_page().
375         * tmac/color-html.tmac: Removed.  Contents moved to...
376         * tmac/html.tmac: Here.  Set background color.
377         * tmac/color.tmac: Removed.  Contents moved to...
378         * tmac/ps.tmac: Here.
379         * tmac/www.tmac: Remove the title command when generating images
380         for html.
381         (NO_AUTO_RULE): New macro.
382         (HTML_DO_IMAGE): Use revised `\O' escapes.
383         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
385 2001-12-02  Werner LEMBERG  <wl@gnu.org>
387         * tmac/groff_mdoc.man: Fix typo.
389 2001-12-01  Colin Watson  <cjwatson@debian.org>
391         * man/roff.man: Fix typo.
393 2001-11-29  Werner LEMBERG  <wl@gnu.org>
395         * src/lib/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
396         stdlib.h.
398         * src/roff/troff/input.cc (read_draw_node): Emit error message if
399         more than one argument to \D'f ...'.
401         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
403 2001-11-28  Werner LEMBERG  <wl@gnu.org>
405         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
406         loaded only once.
408         * tmac/groff_man.man: Minor cosmetic fix.
410 2001-11-27  Werner LEMBERG  <wl@gnu.org>
412         * src/roff/groff/groff.man, tmac/groff_tmac.man,
413         tmac/groff_www.man: s/mwww/www/.
415 2001-11-26  Werner LEMBERG  <wl@gnu.org>
417         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
418         * configure: Regenerated.
419         * win32-diffs: Updated.
421         * tmac/groff_mwww.tmac: Renamed to ...
422         * tmac/groff_www.tmac: This.
423         * tmac/mwww.tmac: Removed.
424         * NEWS, tmac/Makefile.sub: Updated.
426 2001-11-21  Werner LEMBERG  <wl@gnu.org>
428         * doc/groff.texinfo: Improve documentation of the `\v' escape.
429         Fix explanation of `\D' and `rt'.
431 2001-11-20  Werner LEMBERG  <wl@gnu.org>
433         * tmac/an-old.tmac (an-header): Set header length equal to page
434         width.
435         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
436         minor fixes.
437         * NEWS: Small fix.
439 2001-11-19  Werner LEMBERG  <wl@gnu.org>
441         * NEWS, man/Makefile.sub: Updated.
443 2001-11-19  Bernd Warken  <bwarken@mayn.de>
445         * man/ditroff.man: New file.
447 2001-11-17  Werner LEMBERG  <wl@gnu.org>
449         * man/groff_differences.man: Renamed to ...
450         * man/groff_diff.man: This.  Updated.
451         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
453         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
454         * src/preproc/html/pushback.cc: This.  Updated.
455         * src/preproc/html/pushbackbuffer.h: Renamed to ...
456         * src/preproc/html/pushback.h: This.
457         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
458         Updated.
460         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
461         * src/libs/libgroff/htmlhint.cc: This.
462         * src/libs/libgroff/Makefile.sub: Updated.
464         * tmac/an-old.tmac (an-end): Fix page length.
466 2001-11-16  Werner LEMBERG  <wl@gnu.org>
468         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
469         * man/Makefile.sub: Include groff_differences.man.
470         * VERSION: Set to 1.18.
471         * REVISION: Set to 0.
473 2001-11-16  Bernd Warken  <bwarken@mayn.de>
475         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
476         the second dot (or ending macro name) to end a macro.
477         * doc/groff.texinfo: Doc fix.
479 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
481         * tmac/doc-common (doc-header): Handle very long document titles
482         better.
484 2001-11-16  Werner LEMBERG  <wl@gnu.org>
486         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
488 2001-11-15  Werner LEMBERG  <wl@gnu.org>
490         * src/roff/troff/troff.man: Revised and split into troff.man and...
491         * man/groff_differences.man: New file.
492         * NEWS: Updated.
494 2001-11-13  Werner LEMBERG  <wl@gnu.org>
496         * tmac/an-old.tmac (TS, TE): New macros for table support.
498 2001-11-12  Werner LEMBERG  <wl@gnu.org>
500         * src/include/lib.h: Provide a fix for emx to not include
501         groff-getopt.h.
503 2001-10-27  Werner LEMBERG  <wl@gnu.org>
505         * src/roff/troff/input.cc (substring_macro): Fix computation of
506         boundary values.
508 2001-10-20  Werner LEMBERG  <wl@gnu.org>
510         Undo change from 2001-08-28.
512         * src/roff/troff/input.cc (have_input): New global variable.
513         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
514         in compatibility mode.
515         (process_input_stack): Use it.
517 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
519         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
520         being handled as end-of-sentence characters,
522 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
524         * src/roff/troff/input.cc (file_iterator): New members
525         `suppress_newline_flag' and `seen_escape'.
526         (file_iterator::next_file): Updated.
527         (file_iterator::fill): Use it.
528         (string_iterator): New member `suppress_newline_flag'.
529         (string_iterator::fill): Set it.
530         (get_color_element): Use MAX_COLOR_VAL.
531         * src/roff/troff/env.cc (environment): Remove `need_eol'.
532         (no_fill): Don't set `env->ignore_next_eol'.
533         (environment::newline): Handle `eol' tag properly.
534         Emit `eol.ce'.
535         (environment::add_html_tag): Set `env->ignore_next_eol'.
536         Don't handle `.ce'.
537         * src/roff/troff/env.h (environment): Updated.
539         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
540         member function.
541         (html_printer::outstanding_eol): New member function.
542         (html_printer::do_title): Use new functions.
543         (html_printer::troff_tag): Test `id_eol_ce'.
545 2001-10-10  Werner LEMBERG  <wl@gnu.org>
547         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
548         files work with -C also.
550 2001-10-05  Werner LEMBERG  <wl@gnu.org>
552         * doc/pic.ms: Minor fix.
553         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
554         as a valid command line switch.
555         * src/devices/grohtml/post-html.cc (main): Ditto.
556         (usage): Updated.
557         * src/devices/grohtml/grohtml.man: Updated.
558         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
560 2001-10-04  Werner LEMBERG  <wl@gnu.org>
562         Implementing color support in troff, pic, grops, and grohtml.  These
563         changes are based on a major patch provided by Gaius Mulley
564         <gaius@glam.ac.uk>.
566         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
567         definitions with both hex values and fractions.
569         New escapes: \m and \M for drawing and background color,
570         respectively.  This corresponds to the troff output commands `m'
571         and `DF'.
573         groff and troff accept command line switch `-c' to disable color
574         output (which is automatically disabled in compatibility mode).
576         New scaling indicator `f' for fractions (1f = 65536u).
578         New conditional operator `m' to test for defined colors with `if'
579         and `ie'.
581         New keywords `color' (or `colour', `colored', `coloured'), `outline'
582         (or `outlined'), and `shaded' added to pic.
584         * src/include/color.h: New file.
585         * src/include/driver.h: Include it.
586         * src/include/printer.h: Include color.h.
587         (environment): New members `col' and `fill'.
588         (printer): Remove `adjust_arc_center' member function.
589         * src/include/Makefile.sub: Updated.
591         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
592         `env.fill'.
593         Handle `m' and `DF' troff commands.
594         * src/libs/libgroff/color.cc: New file.
595         * src/libs/libgroff/Makefile.sub: Updated.
597         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
598         (stop): Removed.
599         (createImage): Fix computation of `y2'.
600         Use `pnmcrop' also.
601         (buffer::write_file_html): Remove calls to `stop'.
603         * src/preproc/pic/common.h (common_output): New abstract function
604         members `set_color', `reset_color', `get_last_filled', and
605         `get_outline_color'.
606         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
607         (object_spec): Add members `shaded' and `outlined'.
608         * src/preproc/pic/output.h (output): `command' is now abstract.
609         New function members `set_color', `reset_color', `get_last_filled',
610         and `get_outline_color'.
611         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
612         `outline[d]', and `shaded'.
613         * src/preproc/pic/object.cc (output::command): Removed.
614         (output::set_location): Moved to output.h.
615         (graphic_object): Add protected members `outline_color' and
616         `color_fill'.
617         Add member functions `set_outline_color', `get_outline_color', and
618         `set_fill_color'.
619         (closed_object): Add member function `set_fill_color'.
620         Add member `color_fill'.
621         (graphic_object::print_text): Use `out->set_color' and
622         `out->reset_color'.
623         (box_object::print, ellipse_object::print, circle_object::print,
624         line_object::print, spline_object::print, arc_object::print): Ditto.
625         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
626         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
627         `SHADED', making them `%left'.
628         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
629         * src/preproc/pic/tex.cc (tex_output): New dummy function members
630         `set_color', `reset_color', `get_last_filled', and
631         `get_outline_color'.
632         * src/preproc/pic/troff.cc (simple_output): New abstract function
633         members `set_color', `reset_color', and `get_last_filled'.
634         (simple_output::polygon, simple_output::circle,
635         simple_output::ellipse): Use `get_last_filled'.
636         (troff_output): New members `last_filled' and `last_outlined'.
637         New function members `set_color', `reset_color', `get_last_filled',
638         and `get_outline_color'.
639         (troff_output::finish_picture): Use `reset_color'.
640         (troff_output::set_fill): Test `last_filled'.
641         * src/preproc/pic/pic.man: Updated.
643         * src/roff/groff/groff.cc (main): Implement `-c' option.
644         (synopsis, help): Updated.
645         src/roff/groff/groff.man: Updated.
647         * src/roff/troff/troff.h: Include color.h.
648         (warning_type): Add WARN_COLOR.
649         * src/roff/troff/env.h (environment): New members
650         `{cur,prev}_{glyph,fill}_color'.
651         New member functions `get_{prev_,}{glyph,fill}_color'.
652         * src/roff/troff/env.cc: Initialize and implement them.
653         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
654         Replace `NULL' with `0' everywhere for consistency.
655         (lookup_color, default_black, do_glyph_color, do_fill_color,
656         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
657         define_color): New functions.
658         (token::next): Implement \M and \m escapes.
659         (do_if_request): Implement `m' operator.
660         (usage): Updated.
661         (main): Implement `-c' option.
662         (init_markup_requests): Add `defcolor' request.
663         (warning_table): Add `color' warning.
664         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
665         classes.
666         * src/roff/troff/node.cc (troff_output_file): New members
667         `current_{page,glyph}color'.  New member functions `put_hex',
668         `glyph_color', and `fill_color'.
669         (glyph_color_node::*, fill_color_node::*): Implement it.
670         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
671         (parse_term): Add support for `f'.
672         * src/roff/troff/troff.man: Updated.
674         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
675         entry for `F'.
676         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
677         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
679         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
680         (tag_definition): Use `void *' for arg1.
681         (html_text): New member functions `do_color' and `done_color'.
682         Use `void *' for second parameter of `push_para' member function.
683         New `push_para' member function with a single parameter.
684         Use `char *' for parameter of `issue_table_begin' member funtion.
685         New `issue_color_begin' member function.
686         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
687         COLOR_TAG.
688         (html_text::issue_color_begin): New function.
689         (html_text::issue_table_begin): Use `char *' for parameter.
690         (html_text::start_tag, html_text::shutdown,
691         html_text::check_emit_text): Updated.
692         (html_text::push_para): Use `void *' for second parameter.
693         Add same function with only one parameter.
694         (html_text::do_*): Updated.
695         (html_text::do_color, html_text::done_color): New functions.
696         * src/devices/grohtml/post-html.cc (style): New member `col'.
697         Mew member `style' with 6 parameters.
698         (style::style, style::operator==): Updated.
699         (html_printer::do_font): Use it.
700         (html_printer::draw): Add dummy entry for `F'.
701         (html_printer::set_char): Updated.
702         * src/devices/grohtml/grohtml.man: Updated.
704         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
705         trailing zeroes removed.
706         (ps_printer): New members `sbuf_color', `fill_color', and
707         `output_color'.
708         Removed member `fill'.
709         New member function `set_color'.
710         (ps_printer::ps_printer, ps_printer::set_char): Updated.
711         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
712         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
714         * tmac/color-html.tmac, tmac/color.tmac: New files.
715         * tmac/troffrc: Include them.
716         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
717         * tmac/Makefile.sub: Updated.
719         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
720         man/groff.man: Updated.
721         * font/devps/prologue.ps: Define FC and CO functions.
723 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
725         Fix incorrect cropping of images and incorrect handling of special
726         characters.  Fix handling of file names in \O.
728         * src/include/geometry.h: New file.
729         * src/libs/libgroff/geometry.cc: New file.
730         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
731         to `geometry.cc'.
732         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
733         initial spaces.
734         (do_suppress): Updated.
735         * src/roff/troff/node.cc: Include geometry.h.
736         (troff_output_file::flush_tbuf): Fixed parameters to
737         `check_output_limits'.
738         (troff_output_file::check_charinfo): Ditto.
739         (troff_output_file::determine_line_limits): Add support for `Da'
740         and `Dl' commands.
742         * src/devices/grohtml/post-html.cc (str_translate_to_html):
743         Add new parameter `is_special' to decode special characters from
744         escape sequences.
745         (html_printer::do_title, html_printer::do_heading,
746         html_printer::do_indentedparagraph,
747         html_printer::translate_to_html, html_printer::special): Updated.
749 2001-10-03  Werner LEMBERG  <wl@gnu.org>
751         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
752         Fix entry for config.h.
753         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
754         * tmac/troffrc: Translate nonbreakable space character to `\~'.
755         * src/preproc/eqn/eqn.man: Document -d command line option.
757 2001-09-27  Werner LEMBERG  <wl@gnu.org>
759         * man/groff.man: Use
761           .ev xxx
762           .na
763           .nh
764           <table>
765           .ev
767         instead of the old code (`.ad .hy' after the table) to suppress
768         incorrect hyphenation for grohtml output.
770 2001-09-22  Werner LEMBERG  <wl@gnu.org>
772         * man/groff_font.man, man/groff_out.man: Minor fixes.
774 2001-09-20  Werner LEMBERG  <wl@gnu.org>
776         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
777         Arnold Robbins <arnold@skeeve.com>).
779 2001-09-09  Werner LEMBERG  <wl@gnu.org>
781         * configure: Regenerated with autoconf 2.52.
783         * doc/groff.texinfo: Complete revision of indices.
785 2001-09-07  Werner LEMBERG  <wl@gnu.org>
787         * doc/Makefile (clean): Updated to delete all indices.
789 2001-09-05  Werner LEMBERG  <wl@gnu.org>
791         * src/roff/troff/troff.man: Remove superfluous line.
793         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
794         given on the command line (or rather, if only the default warnings
795         are set).
797 2001-09-03  Werner LEMBERG  <wl@gnu.org>
799         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
800         use .ne for TTY devices.
802 2001-08-31  Werner LEMBERG  <wl@gnu.org>
804         * src/roff/troff/token.h, src/roff/troff/input.cc:
805         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
807 2001-08-28  Werner LEMBERG  <wl@gnu.org>
809         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
810         * src/roff/troff/input.cc (token::next): Return
811         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
812         compatibility mode.
813         (token::description): Updated.
814         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
815         (token::add_to_node_list, token::process): Ignore
816         TOKEN_TRANSPARENT_ESCAPE.
818 2001-08-27  Werner LEMBERG  <wl@gnu.org>
820         * tmac/an-old.tmac: Fix `S' string.
822 2001-08-26  Werner LEMBERG  <wl@gnu.org>
824         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
826 2001-08-25  Werner LEMBERG  <wl@gnu.org>
828         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
829         backslashes).
830         Many other minor fixes.
832         * configure.ac: Add message at end to inform how to compile
833         xditview.
834         * configure: Regenerated.
836 2001-08-24  Werner LEMBERG  <wl@gnu.org>
838         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
839         Updated to latest version of libc.
841 2001-08-23  Werner LEMBERG  <wl@gnu.org>
843         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
844         Autoconf 2.50 and newer can handle this.
845         * configure: Regenerated.
847 2001-08-21  Werner LEMBERG  <wl@gnu.org>
849         * doc/pic.ms: Fix typo.
850         * src/preproc/tbl/tbl.man: Document case of global options.
852 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
854         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
855         handling of `CR' font.
857 2001-08-20  Werner LEMBERG  <wl@gnu.org>
859         Use a config.h file.
861         * src/include/lib.h: Include config.h.
862         * All C files: Ditto (if necessary).
863         * All C++ source and header files: Include lib.h first (if
864         necessary).
866         * src/include/config.hin: New file (autogenerated by autoheader).
867         * stamp-h.in: New file.
868         * configure.ac: Updated.
869         * aclocal.m4: Add third parameters to AC_DEFINE macros.
870         (GROFF_ARRAY_DELETE): Simplified.
871         * Makefile.sub (DISTCLEANFILES): Updated.
872         Added targets for remaking config.status, config.hin, config.h,
873         stamp-h.in, and stamp-h.
874         * configure: Regenerated.
876 2001-08-19  Werner LEMBERG  <wl@gnu.org>
878         * NEWS: Updated.
880 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
882         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
883         (do_sprintf): Use snprintf().
885 2001-08-18  Werner LEMBERG  <wl@gnu.org>
887         * src/libs/snprintf/*: Added an snprintf module written by Mark
888         Martinec.
889         * src/libs/libgroff/Makefile.sub: Updated.
890         * configure.ac: Add test for snprintf().
891         * Makefile.in: Updated.
892         * configure: Regenerated.
894         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
895         uses snprintf().
897 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
899         * tmac/doc.tmac (Ex): New implementation.
900         * tmac/doc-common, tmac/groff_tmac.man: Updated.
902 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
904         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
905         argument.
906         * tmac/groff_tmac.man: Updated.
908 2001-08-13  Werner LEMBERG  <wl@gnu.org>
910         * src/preproc/tbl/tbl.man: Minor documentation update.
912 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
914         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
915         * configure.ac: Add declaration test for gettimeofday().
916         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
917         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
918         * configure: Regenerated.
920 2001-08-11  Werner LEMBERG  <wl@gnu.org>
922         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
923         * configure.ac: Add declaration test for strcasecmp().
924         * Makefile.in: Updated.
925         * configure: Regenerated.
926         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
927         this is necessary because groff's mkstemp.cc is C++.
928         Add declaration conditionally for strcasecmp().
930 2001-08-10  Werner LEMBERG  <wl@gnu.org>
932         Integrated pic2graph, contributed by Eric S. Raymond.
934         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
935         files.
936         * Makefile.in, NEWS: Updated.
938         * src/preproc/tbl/tbl.man: Revised.
940 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
942         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
944 2001-08-09  Werner LEMBERG  <wl@gnu.org>
946         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
947         requests.
949 2001-08-08  Paul Eggert  <eggert@twinsun.com>
951         * Makefile.sub (configure): Depend on configure.ac, not
952         configure.in.
953         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
955 2001-08-07  Werner LEMBERG  <wl@gnu.org>
957         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
958         fixes.
960 2001-08-06  Werner LEMBERG  <wl@gnu.org>
962         * src/roff/troff/troff.man: Improve documentation of -E option.
964 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
966         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
967         Simplified.
969 2001-07-27  Werner LEMBERG  <wl@gnu.org>
971         * src/preproc/refer/refer.cc: Undo last change.
972         * src/devices/grohtml/post-html.cc: Ditto.
974 2001-07-26  Werner LEMBERG  <wl@gnu.org>
976         * src/preproc/refer/refer.cc: Include `lib.h'.
977         * src/devices/grohtml/post-html.cc: Ditto.
979 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
981         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
982         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
983         * Makefile.in: Comment updated.
984         * configure: Regenerated.
986 2001-07-25  Werner LEMBERG  <wl@gnu.org>
988         * src/preproc/pic/pic.cc: Removed.
989         * src/preproc/pic/pic_tab.h: Removed.
990         * src/preproc/refer/label.cc: Removed.
992         * doc/Makefile (.ms.html): Don't use a file name extension in
993         argument to grohtml's -I option.
994         * Makefile.in (dist): Remove CVS directories.
995         Call `distfiles' target.
997         * src/devices/grohtml/grohtml.man: Add information about valid
998         versions of pnmtopng.
999         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
1000         name instead of number.
1002 2001-07-24  Werner LEMBERG  <wl@gnu.org>
1004         * doc/groff.texinfo: Minor fixes.
1006 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
1008         * doc/Makefile (.ms.html): Put image files into a subdirectory.
1009         (clean): Updated.
1011 2001-07-20  Werner LEMBERG  <wl@gnu.org>
1013         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
1014         * src/libs/libgroff/mkstemp.cc: New file.
1015         * src/libs/libgroff/mksdir.cc: New file.
1016         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
1017         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
1018         * src/libs/libgroff/Makefile.sub: Updated.
1019         * src/include/lib.h: Add mksdir() prototype.
1020         * src/include/posix.h: Define S_IXUSR if not yet defined.
1022         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
1023         (createAllPages): Use mksdir() instead of current code.
1024         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
1025         (main): [!HAVE_MKSTEMP]: Removed.
1027         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
1028         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
1029         macros.
1030         * configure.ac: Add tests for stdint.h, sys/time.h, and
1031         gettimeofday().
1032         Call new GROFF_xxx macros.
1033         * configure: Regenerated.
1034         * Makefile.in: Comments updated.
1036 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
1038         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
1039         instead of current code.
1040         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
1041         * src/roff/groff/groff.cc (possible_command::insert_args): New
1042         function.
1043         (main): Use it for predriver handling instead of insert_arg().
1045 2001-07-19  Werner LEMBERG  <wl@gnu.org>
1047         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
1048         groff also.
1050         * src/include/posix.h: Define S_IWUSR if not yet defined.
1052 2001-07-18  Werner LEMBERG  <wl@gnu.org>
1054         * NEWS: Updated.
1056 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
1058         * tmac/groff_mdoc.man: Document new -width and -column syntax.
1059         Some other minor fixes.
1060         * tmac/an-old.tmac: Add `AT' and `UC' macros.
1062 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
1064         Replace call to `troff' with `groff -Z' to make it aware of
1065         GROFF_BIN_PATH.
1067         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
1068         (troff_command, command_prefix): Removed.
1069         (alterDeviceTo): Use groff.
1070         (addZ): New function.
1071         (char_buffer::do_html): Use it.
1072         (scanArguments): Use TROFF_COMMAND.
1073         (findPrefix): Removed.
1074         (main): Updated.
1075         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
1077 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
1079         * doc/pic.ms: Documentation fixes.
1081 2001-07-17  Werner LEMBERG  <wl@gnu.org>
1083         Replace atexit() with global destructor.
1085         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
1086         (xtmpfile_list_init): New global structure to deallocate
1087         xtmpfile_list on exit.  Its destructor inherits most code from
1088         remove_tmp_files().
1089         (remove_tmp_files): Deleted.
1090         (add_tmp_file): Simplified.
1092 2001-07-16  Werner LEMBERG  <wl@gnu.org>
1094         Replace strdup() with strsave().
1096         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
1097         (set_papersize): Use strsave() and a_delete.
1098         (main): Use strsave().
1099         * src/preproc/html/pre-html.cc (make_message, createAllPages,
1100         removeAllPages): Use strsave() and a_delete.
1102         * configure.ac: Remove test for strdup.
1103         * Makefile.in: Comment updated.
1104         * configure: Regenerated.
1106 2001-07-15  Werner LEMBERG  <wl@gnu.org>
1108         * win32-diffs: Updated.
1110 2001-07-14  Werner LEMBERG  <wl@gnu.org>
1112         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
1113         removing the old one.
1114         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
1116 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
1118         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
1120 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
1122         Merge -xwidth into -width.  Add -xwidth functionality to -column
1123         also.
1125         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
1126         avoid warning.
1127         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
1128         string immediately following a leading dot starts with a valid mdoc
1129         argument.
1130         Add similar code to the -column branch.
1131         (doc-Bl-usage): Updated.
1132         * groff_mdoc.man: s/-xwidth/-width/.
1134 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
1136         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
1137         running into centered or non-formatted text.
1139 2001-07-11  Werner LEMBERG  <wl@gnu.org>
1141         Introduce short and long prefixes to have the selection at run-time
1142         whether there is a 8+3 limit for names of temporary files.
1144         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
1145         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
1146         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
1147         variables.
1148         (temp_init): New global structure to initialize above three
1149         variables.
1150         (xtmptemplate): Use two parameters for long and short prefix.
1151         Simplify code use above three variables.
1152         (xtmpfile): Use long and short prefixes as parameters.
1153         * src/include/lib.h: Updated.
1155         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
1156         with ...
1157         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
1158         (createAllPages, makeTempFiles): Updated.
1160 2001-07-09  Werner LEMBERG  <wl@gnu.org>
1162         * REVISION: Increased to 3.
1164 Version 1.17.2 released
1165 =======================
1167 2001-07-07  Werner LEMBERG  <wl@gnu.org>
1169         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
1170         to size_t.
1172 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
1174         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
1175         Fix synopsis.
1176         * tmac/groff_mdoc.man: Fix synopsis.
1178 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
1180         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
1181         Restore `doc-Pa-font'.
1183 2001-07-04  Werner LEMBERG  <wl@gnu.org>
1185         * src/utils/indxbib/dirnamemax.c: Moved to ...
1186         * src/libs/libgroff/maxfilename.cc: Here.
1187         s/dir_name_max/file_name_max/.
1188         Add copyright.
1189         * src/include/lib.h: Add file_name_max.
1190         * src/utils/indxbib/indxbib.cc: Updated.
1191         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
1192         Updated.
1194         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
1195         as empty.
1196         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
1198         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
1199         REGION_TEMPLATE): New macros.
1200         (createAllPages, makeTempFiles): Use them.
1201         Include `nonposix.h'.
1202         (html_system): New function.
1203         (createAllPages, createImage): Use it.
1204         Use EXE_EXT.
1206         * tmac/www.tmac: Fix typos.
1208 2001-07-03  Werner LEMBERG  <wl@gnu.org>
1210         * tmac/www.tmac: Disable hyphenation in normal text only if output
1211         device is html.
1212         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
1213         * tmac/groff_mwww.man, NEWS: Updated.
1215 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
1217         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
1218         image location.
1220 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
1222         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
1223         doc-display-ps-stack): Implement font and font size stack for
1224         displays.
1226 2001-07-02  Werner LEMBERG  <wl@gnu.org>
1228         * REVISION: Increased to 2.
1229         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
1231         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
1232         beginning of a line.
1233         * src/groff/grog/grog.sh: Ditto.
1235 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
1237         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
1238         make it portable.
1240 2001-06-27  Werner LEMBERG  <wl@gnu.org>
1242         Fix problems with preprocessor string for `man' program.
1244         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
1245         Updated/added copyright.
1246         Moved Emacs's local variable to identify nroff mode to the end of
1247         the file; add local variable if missing.
1249 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
1251         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
1252         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
1253         * configure: Regenerated.
1255 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
1257         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
1258         * configure: Regenerated.
1260 2001-06-24  Werner LEMBERG  <wl@gnu.org>
1262         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
1263         but www.tmac.
1264         * doc/pic.ms: Fix typos.
1266 Version 1.17.1 released
1267 =======================
1269 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
1271         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
1272         * configure: Updated.
1274 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
1276         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
1277         image names.
1278         * src/roff/troff/dic.cc (blank_line): Add html tag.
1280 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
1282         * src/roff/troff/input.cc (do_suppress): Fix typo.
1284 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
1286         Added two new options (-D and -I) to specify image names and a
1287         subdirectory to place the images in.
1289         Change syntax from \\Ox to \\O[x].
1291         * src/devices/grohtml/post-html.cc (main): Add options.
1292         (usage): Updated.
1293         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
1294         Use `NULL' instead of `0' for null string pointers.
1295         (MAX_RETRIES): New macro.
1296         (lengthOfintToStr, intToStr, make_message): New functions.
1297         (makeFileName): Make function static.
1298         Implement -D and -I options.
1299         (checkImageDir): New function.
1300         (write_end_image, write_start_image): Use new syntax of \O.
1301         (createAllPages, removeAllPages): Implement -D and -I options.  Use
1302         make_message().
1303         (createImage): Use make_message().
1304         (addps4html): Add guard for malloc().
1305         (usage, scanArguments): Updated.
1306         (makeTempFiles): Use mkstemp().
1307         (removeTempFiles): Use unlink().
1308         (findPrefix): Add guard for malloc().
1309         (main): Updated.
1310         * src/roff/troff/input.cc (get_delim_file_name): New function to
1311         parse \O.
1312         (do_suppress): Updated to parse new syntax.
1313         * src/devices/grohtml/grohtml.man: Updated.
1314         * tmac/www.tmac: Updated to new syntax.
1316         * NEWS: Updated.
1318 2001-06-15  Werner LEMBERG  <wl@gnu.org>
1320         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
1322         * src/devices/grohtml/grohtml.man: Minor improvements.
1324 2001-06-14  Werner LEMBERG  <wl@gnu.org>
1326         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
1328 2001-06-11  Werner LEMBERG  <wl@gnu.org>
1330         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
1331         line to specify preprocessor options -- mandb 2.3.1 only recognizes
1332         the former.
1333         * src/preproc/grn/grn.man: Add proper '\" string.
1335 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
1337         * test-groff: Don't use PATH but GROFF_BIN_PATH.
1339 2001-06-08  Werner LEMBERG  <wl@gnu.org>
1341         Updated to autoconf 2.50.
1343         * configure.in: Renamed to...
1344         * configure.ac: This.
1345         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
1346         (GROFF_OS390): Updated.
1347         * configure: Regenerated.
1349 2001-05-18  Werner LEMBERG  <wl@gnu.org>
1351         * src/roff/troff/env.c, src/roff/troff/env.h,
1352         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
1353         from 2000-12-21.
1355 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
1357         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
1359 2001-05-16  Werner LEMBERG  <wl@gnu.org>
1361         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
1362         less than or equal zero; set it to 1 then.
1363         * src/roff/troff/node.h (node::node): Initialize `last'.
1365 2001-05-08  Werner LEMBERG  <wl@gnu.org>
1367         * tmac/an-old.tmac: Make predefined strings work in compatibility
1368         mode.
1369         Add troff version guard.
1370         * tmac/doc.tmac: Simplify version guard.
1372 2001-05-07  Werner LEMBERG  <wl@gnu.org>
1374         The .ns and .rs requests are now honoured not only in the top-level
1375         but in all diversions (similar to UNIX troff).
1377         This change is based on a patch from Tadziu Hoffmann
1378         <hoffmann@usm.uni-muenchen.de>.
1380         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
1381         (top_level_diversion): Remove `no_space_mode' member.
1382         * src/roff/troff/div.cc (diversion::diversion,
1383         top_level_diversion::top_level_diversion): Updated.
1384         (macro_diversion::output): Reset `no_space_mode'.
1385         (no_space, restore_spacing): Use `curdiv' unconditionally.
1386         (space_request, blank_line): Check `curdiv->no_space_mode'.
1387         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
1388         `curdiv' unconditionally.
1389         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
1390         Updated.
1392 2001-05-06  Werner LEMBERG  <wl@gnu.org>
1394         Added two new requests `de1' and `am1' which are similar to `de' and
1395         `am' with the difference that compatibility mode is saved on entry,
1396         switched off during macro execution, and restored on exit.
1398         * src/roff/troff/input.h: Added two new special characters
1399         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
1400         * src/roff/troff/input.cc (input_iterator): Added two member
1401         functions `save_compatible_flag' and `get_compatible_flag'.
1402         (input_stack): Ditto.
1403         (string_iterator): Ditto.  Also add private member
1404         `saved_compatible_flag'.
1405         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
1406         (calling_mode): New enumeration.
1407         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
1408         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
1409         (define_macro, define_indirect_macro, append_macro, ignore): Use
1410         `calling_mode'.
1411         (define_nocomp_macro, append_nocomp_macro): New functions.
1412         (init_input_requests): Updated.
1413         (do_request): Rename local variable `saved_compatible_flag' to
1414         `old_compatible_flag'.
1415         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
1417         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
1418         public and trap-invoked macros.  As a consequence, the man macros
1419         work in compatibility mode also.
1421 2001-05-06  Solar Designer  <solar@openwall.com>
1423         * Makefile.in: Use $(mandir).
1425 2001-05-06  Alexios Zavras  <zvr@pobox.com>
1427         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
1429 2001-05-05  Werner LEMBERG  <wl@gnu.org>
1431         Added `.ns' number register: Returns 1 in no-space mode (if in
1432         top-level diversion), 0 otherwise.
1434         * src/roff/troff/div.cc (no_space_mode_reg): New class.
1435         (init_div_requests): Updated.
1436         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
1437         Document it.
1439 2001-05-04  Werner LEMBERG  <wl@gnu.org>
1441         * src/roff/nroff/nroff.man: Improved documentation (especially
1442         locales).
1444 2001-05-02  Werner LEMBERG  <wl@gnu.org>
1446         Added `brp' request: This is \p as a request.
1448         * src/roff/troff/env.cc (environment::do_break): Add parameter
1449         `spread'.
1450         (do_break_request): New function (was `break_request').
1451         (break_request): Calls `do_break_request'.
1452         (break_spread_request): New; calls `do_break_request'.
1453         (init_env_requests): Updated.
1454         * src/roff/troff/env.h: Updated.
1455         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
1457         * REVISION: Increased to 1.
1458         * win32-diffs: Updated.
1460 2001-05-01  Werner LEMBERG  <wl@gnu.org>
1462         * tmac/an-old.tmac: Fix minor compatibility mode issue.
1463         * tmac/troffrc-end: Make it really work in compatibility mode.
1465 2001-04-27  Werner LEMBERG  <wl@gnu.org>
1467         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
1468         stdlib.h.
1470 2001-04-22  Werner LEMBERG  <wl@gnu.org>
1472         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
1473         latest versions from glibc CVS archive.
1475         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
1476         <c.zeelenberg@hccnet.nl>.
1478 2001-04-21  Werner LEMBERG  <wl@gnu.org>
1480         * configure.in: Move check for mkstemp() to...
1481         * aclocal.m4 (GROFF_MKSTEMP): This new function.
1482         * configure: Regenerated.
1484         * src/include/groff-getopt.h: Don't use variable names in
1485         declarations.
1487         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
1488         * src/devices/grohtml/Makefile.sub,
1489         src/devices/grohtml/post-html.cc: Updated.
1491 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
1493         * configure.in: Add special check for mkstemp().
1494         * src/libs/libgroff/tmpfile.cc: Use it.
1495         * src/utils/indxbib/indxbib.cc: Ditto.
1496         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
1497         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
1498         `const'.
1500 2001-04-20  Bruce Lilly  <blilly@erols.com>
1502         `Version_string' as C++ object was not visible to linker from C
1503         object files.
1504         Add `const' to `Version_string'.
1506         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
1507         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
1508         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
1509         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
1510         (scanArguments), src/preproc/refer/refer.cc (main),
1511         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
1512         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
1513         (main), src/devices/grohtml/post-html.cc (main),
1514         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
1515         (main), src/utils/hpftodit/hpftodit.cc (main),
1516         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
1517         (main), src/utils/lkbib/lkbib.cc (main),
1518         src/utils/addftinfo/addftinfo.cc (main): Implement it.
1520         * src/roff/groff/pipeline.c: Add _UWIN.
1521         * src/include/nonposix.h: Ditto.
1523 2001-04-20  Werner LEMBERG  <wl@gnu.org>
1525         * src/include/lib.h: Use HAVE_STRERROR.
1526         * src/roff/groff/pipeline.c: Ditto.
1527         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
1528         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
1529         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
1530         * win32-diffs: Updated.
1531         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
1533 2001-04-19  Werner LEMBERG  <wl@gnu.org>
1535         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
1536         instead of hardwired `"troff"'.
1537         (char_buffer::read_file): Remove unused variables.
1538         (char_buffer::write_file_troff): Ditto.
1539         (char_buffer::write_file_html): Ditto.
1540         (generateImages): Ditto.
1541         (abs): Removed.
1542         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
1544         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
1546         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
1547         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
1548         index_search_item::search1): Ditto.
1549         * src/roff/troff/node.h (width_list): Reorder members.
1550         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
1551         (lookup_warning): Ditto.
1552         (prepend_string): Commented out.
1553         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
1554         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
1555         * src/preproc/tbl/main.cc (process_format): Ditto.
1556         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
1557         compiler warnings.
1558         * src/preproc/pic/pic.cc: Updated.
1559         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
1560         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
1561         * src/preproc/refer/command.cc (execute_command): Ditto.
1562         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
1563         * src/preproc/refer/token.cc (lookup_token): Ditto.
1564         * src/preproc/soelim/soelim.cc: Ditto.
1565         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
1566         (isHexDigit): Commented out.
1567         (pushBackBuffer::isString): Remove unused variable.
1568         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
1569         warning.
1570         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
1571         resource_manager::read_resource_arg, read_one_of, parse_extensions):
1572         Ditto.
1573         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
1574         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
1575         lookup_paper_size): Ditto.
1576         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
1577         (text_glob, element_list): Reorder members.
1578         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
1579         compiler warning.
1580         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
1581         return value to `void'.
1582         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
1583         of initializers.
1584         * src/devices/grohtml/html.h (simple_output::check_newline,
1585         simple_output::space_or_newline, simple_output::enable_newlines):
1586         Add return value.
1587         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
1588         compiler warnings.
1589         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
1590         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
1591         output_ligatures, output_charset, read_map): Ditto.
1592         * src/utils/lookbib/lookbib.cc (main): Ditto.
1593         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
1594         (do_file): Fix typo (`=' -> `==').
1595         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
1596         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
1598 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
1600         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
1601         Fix usage of GROFF_BIN_PATH.
1602         * src/roff/nroff/nroff.man: Updated.
1604 2001-04-18  Werner LEMBERG  <wl@gnu.org>
1606         * NEWS: Fixing typos.
1607         Updated.
1609 Version 1.17 released
1610 =====================
1612 2001-04-17  Werner LEMBERG  <wl@gnu.org>
1614         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
1615         directory, not in $(srcdir).
1617 2001-04-16  Werner LEMBERG  <wl@gnu.org>
1619         * doc/groff.texinfo: More info on conditionals.
1621 2001-04-15  Werner LEMBERG  <wl@gnu.org>
1623         * doc/groff.texinfo: Added some info about groff internals.
1625         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
1626         about missing special character only if the name is non-null.
1628 2001-04-14  Werner LEMBERG  <wl@gnu.org>
1630         Removing the grohtml-old device driver which is now obsolete.
1632         * src/devices/grohtml-old/*: Removed.
1633         * font/devhtml-old/*: Removed.
1634         * src/libgroff/htmlindicate.cc (graphic_start, graphic_end): Remove
1635         comments.
1636         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
1637         * test-groff (PATH): Updated.
1638         * tmac/Makefile.sub (NORMALFILES): Updated.
1639         * tmac/an-old.tmac: Remove special code for html-old device.
1640         Replace `html-or-html-old' register with `an-html'.
1641         * tmac/eqnrc: Updated.
1642         * tmac/html-old.tmac: Removed.
1643         * tmac/troffrc, tmac/troffrc-end: Updated.
1644         * tmac/www.tmac: Remove special code for html-old device.
1645         Replace `html-or-html-old' register with `www-html'.
1647         * src/libgroff/tmpfile.cc (remove_tmp_files),
1648         src/libgroff/htmlindicate.cc (graphic_end), include/htmlindicate.h,
1649         src/preproc/grn/*.cc, src/roff/groff/env.{cc,h}: Remove `void'
1650         parameter if used as a single argument for consistency with rest of
1651         source code.
1653         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
1655 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
1657         * src/roff/troff/troff.man: Fixing typos.
1659 2001-04-13  Werner LEMBERG  <wl@gnu.org>
1661         * doc/pic.ms: Fixing many font switches.
1662         * doc/groff.texinfo: Fixes, additions.
1663         * MORE.STUFF: Updated.
1665 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
1667         * src/devices/grohtml/grohtml.man: Updated manual page regarding
1668         simple anchor.
1669         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
1670         cropping of images.
1671         (removeTempFiles): New function to tidy up temporary files.
1672         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
1673         Many fixes to do with the new inline suppress node and image regions
1674         are much tighter.
1675         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
1676         (generate_img_src): New function.
1677         (html_printer::do_auto_image): Utilizes it.
1678         (do_heading, do_title): Include inline images within their contents.
1679         (html_printer::begin_page): Tidied up comments that are issued to
1680         the html output file.
1681         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
1682         than courier.
1683         (text_glob::is_br): New method used by do_heading.
1684         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
1685         equivalent diversion.
1686         * src/include/html-strings.h: Altered image tags to reflect the
1687         inline image node.
1688         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
1689         parameter.
1690         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
1691         it is already inside a pic image.  Only emit tags if the argument
1692         `-Tps:html' is present.
1693         * src/preproc/tbl/main.cc: Changes to reflect additional
1694         `html_end_suppress' parameter.
1695         * src/roff/troff/env.cc: Only emit eol tag if a node has been
1696         emitted since the last eol tag was written.
1697         * src/roff/troff/env.h: New boolean `emitted_node'.
1698         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
1699         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
1700         * src/roff/troff/node.cc (check_charinfo): New method. 
1701         (troff_output_file::determine_line_limits): Alterations to limit
1702         checking.
1703         * tmac/www.tmac: Changes to reflect new suppress nodes.
1704           
1705 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
1707         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
1708         Escape the html_glyph in the buffer.
1709         (str_translate_to_html): Output the unescaped escaped_char.
1710         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
1711         `frame=void', not `frame=none'.  Add `border=0'.
1713 2001-04-12  Werner LEMBERG  <wl@gnu.org>
1715         * PROBLEMS: Add some words on how to avoid wrapper macros.
1717 2001-04-11  Blake McBride  <blake@florida-software.com>
1719         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
1721 2001-04-11  Werner LEMBERG  <wl@gnu.org>
1723         * font/devlbp/Makefile.sub (CLEANADD): Set it.
1724         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
1725         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
1726         * Makefile.sub (DISTCLEANFILES): Here.
1728         * libs/libgroff/new.cc: Include `nonposix.h'.
1729         * win32-diffs: Updated.
1731 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
1733         Added skeleton macro for defunct macros.
1735         Updated documentation.
1737         When inside displays, an empty input line warning should be
1738         suppressed.  If another macro call is put inside a display,
1739         all subsequent empty lines found in that display caused a
1740         warning to be emitted.
1742         * tmac/doc.tmac (doc-defunct-macro): New macro.
1743         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
1744         (doc-restore-global-vars): Fixed typo.
1745         (doc-empty-line): Check the `doc-display-depth' register to
1746         determine whether we are inside display or not.
1748         * tmac/doc-common: Removed `Or' and `Sf' registers.
1749         Moved obsolete `Ds' macro to doc.tmac.
1751         * tmac/groff_mdoc.man: Bump document date.
1752         Document `.Vt' under ``Variable Types''.
1753         Removed documentation for obsolete `.Or' macro.
1755 2001-04-10  Werner LEMBERG  <wl@gnu.org>
1757         * NEWS: Updated.
1758         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
1760 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
1762         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
1763         (usage): Add stream argument. Don't exit.
1764         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
1765         Write --version output to stdout, not stderr.
1766         (usage): Add stream argument. Don't exit.
1767         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
1768         (usage): Add stream argument. Don't exit.
1769         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
1770         constants.
1771         (usage): Add stream argument. Don't exit.
1772         (main): Write --help output to stdout, not stderr.
1773         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
1774         (usage): Add stream argument. Don't exit.
1775         * src/devices/grops/ps.cc (main): Accept --help and --version.
1776         (usage): Add stream argument. Don't exit.
1777         * src/devices/grotty/tty.cc (main): Accept --help and --version.
1778         (usage): Add stream argument. Don't exit.
1779         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
1780         (main): Accept --help and --version.
1781         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
1782         (main): Accept --help and --version.
1783         * src/preproc/html/pre-html.cc (usage): Add stream argument.
1784         (scanArguments): Accept --help and --version.
1785         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
1786         (main): Accept --help and --version.
1787         * src/preproc/refer/refer.cc (main): Accept --help and --version.
1788         (usage): Add stream argument. Don't exit.
1789         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
1790         exit.
1791         (main): Accept --help and --version.
1792         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
1793         (main): Accept --help and --version.
1794         * src/roff/groff/groff.cc (main): Accept --help and --version.
1795         (synopsis): Add stream argument.
1796         (help): Write --help output to stdout, not stderr.
1797         (usage): Add stream argument. Don't exit.
1798         * src/roff/grog/grog.pl: Accept --help and --version.
1799         (help): New sub.
1800         * src/roff/grog/grog.sh: Accept --help and --version.
1801         * src/roff/nroff/nroff.sh: Accept --help and --version.
1802         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
1803         (usage): Add stream argument. Don't exit.
1804         (main): Accept --help and --version.
1805         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
1806         (usage): New function with stream argument, doesn't exit.
1807         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
1808         (usage): New function with stream argument, doesn't exit.
1809         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
1810         (usage): Add stream argument. Don't exit.
1811         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
1812         (main): Accept --help and --version.
1813         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
1814         exit.
1815         (main): Accept --help and --version.
1816         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
1817         (main): Accept --help and --version.
1818         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
1819         (usage): Add stream argument. Don't exit.
1821 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
1823         Fix indentation in SYNOPSIS.
1825         Updated to include changes of latest BSD mdoc version (basically,
1826         the only change is that `.Fn' and `.Fc' put a final semicolon after
1827         a function declaration in the SYNOPSIS section).
1829         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
1830         (doc-in-synopsis-section): New variable.  Updated all related
1831         functions.
1832         (doc-indent-synopsis-active): New register.
1833         (Nd, Fn, Fo): Use it.
1834         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
1835         `.Cd' with long argument line produces indented wrapped lines. 
1836         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
1837         undesirable line break to be output.
1838         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
1839         `.rs'.
1840         (Fn, Fc): Add final `;' to output.
1841         (doc-save-global-vars, doc-restore-global-vars): Updated.
1842         * tmac/doc-common: Remove `Ex' register.
1843         Updated.
1844         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
1845         copyright.
1847 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
1849         * tmac/doc.tmac (Cd): Simplify code.
1850         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
1852 2001-04-06  Werner LEMBERG  <wl@gnu.org>
1854         Implement continuous underlining for nroff mode.  To do that, a new
1855         request in the ditroff language has been added: `x u N' (N is 0
1856         or 1).
1858         \X and \Y are now transparent to end-of-sentence recognition.
1860         * src/include/printer.h (printer): Add `type' parameter to `special'
1861         method.
1862         * src/libs/libdriver/printer.cc (printer::special): Updated.
1863         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
1865         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
1866         specials of type `p'.
1867         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
1868         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
1869         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
1870         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
1871         (glyph::order): New method.
1872         (tty_printer::add_char): Use it.
1873         (tty_printer::special): New method.
1874         (tty_printer::end_page): Implement it.
1876         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
1877         * src/roff/troff/node.cc (special_node::special_node): Add parameter
1878         to set `no_init_string'.
1879         (special_node::tprint_start): Use it.
1880         (special_node::same, special_node::copy): Updated.
1881         (special_node::ends_sentence): New method.
1882         (troff_output_file::start_special): Add parameter to include
1883         inititialization of special conditionally.
1885         * src/roff/troff/env.h (environment): New member `underline_spaces'.
1886         * src/roff/troff/env.cc (do_underline_special): New function.
1887         (environment::set_font): Use it.
1888         (do_underline): Use it.  This was `underline()'.
1889         (underline): Call `do_underline()'.
1890         (continuous_underline): New function which calls `do_underline()'.
1891         (environment::newline): Use `do_underline_special()'.
1892         (init_env_requests): Updated.
1894         * NEWS, man/troff_out.man: Updated.
1896 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
1898         * font/devutf8/R.proto: Fix code of 'shc'.
1900 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
1902         Many fixes.  Diag lists can now be nested also; additionally,
1903         `-compact' and `-offset' are supported.
1905         * tmac/doc.tmac (doc-have-indent): Replaced with ...
1906         (doc-list-have-indent-stackXXX): A new register stack.
1907         (doc-have-diag-list): Removed.
1908         (Bl): Use `doc-list-have-indent-stackXXX'.
1909         (El): Updated.
1910         (doc-diag-list): Use `doc-compact-list-stackXXX'.
1911         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
1912         (doc-set-vertical-and-indent): Ditto.
1913         (doc-next-list-depth): Removed.
1914         (doc-increment-list-stack): Updated.
1915         (doc-decrement-list-stack): Use `doc-list-depth' instead of
1916         `doc-next-list-depth'.
1917         (doc-end-list, doc-end-column-list): Don't use
1918         `doc-increment-list-stack'.
1919         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
1920         (doc-save-global-vars, doc-restore-global-vars): Updated.
1921         * tmac/doc-common: Updated.
1922         * tmac/groff_mdoc.man: Updated.
1923         * NEWS: Fix typo.
1925 2001-04-02  Werner LEMBERG  <wl@gnu.org>
1927         * src/devices/grotty/grotty.man: Fix grammatical error.
1929 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
1931         Remove .Ld from mdoc package; replace it with special handling of
1932         `...'.
1934         * tmac/doc-common: Remove `Ld' register.
1935         Uncomment `doc-volume-ds-*' strings.
1936         Remove `doc-operating-system-default'.
1937         (Os): Updated.
1938         * tmac/doc-syms (Ld): Removed.
1939         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
1940         `...' specially.
1941         * NEWS: Updated.
1943         * tmac/groff_mdoc.man: Many fixes and updates.
1945 2001-03-29  Werner LEMBERG  <wl@gnu.org>
1947         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
1948         Bond <tkb@tkb.mpl.com>.
1949         * tmac/www.tmac: Save compatibility mode.
1951 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
1953         * tmac/groff_mdoc.man: Many fixes.
1955 2001-03-28  Werner LEMBERG  <wl@gnu.org>
1957         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
1958         isn't recognized.
1960 2001-03-27  Werner LEMBERG  <wl@gnu.org>
1962         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
1963         diversion.  This fixes overlong tags.
1965 2001-03-26  Werner LEMBERG  <wl@gnu.org>
1967         * doc/groff.texinfo: Fixed and improved documentation of fonts.
1968         * tmac/doc-syms: Fix error messages.
1969         * tmac/an-old.tmac: Remove incorrect double backslashes.
1971 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
1973         * tmac/Makefile.sub: Strip mdoc.local also
1974         * tmac/strip.sed: Fixed.
1976 2001-03-24  Werner LEMBERG  <wl@gnu.org>
1978         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
1979         selecting the font size.
1980         * tmac/groff_mdoc.man, NEWS: Document it.
1982 2001-03-23  Werner LEMBERG  <wl@gnu.org>
1984         * src/roff/troff/div.cc (save_vertical_space): Add default argument
1985         to `sv' request.
1986         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
1987         argument to restore previous font family.
1988         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
1990         * doc/groff.texinfo: More fixes and additions (mainly for font
1991         manipulating commands).
1993         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
1994         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
1995         * tmac/Makefile.sub, NEWS: Updated.
1997 2001-03-23  Werner LEMBERG  <wl@gnu.org>
1999         Replaced mdoc implementation.  The new version is `state of the
2000         art', using almost all new features of groff 1.17 -- it won't run
2001         with older versions.
2003         * tmac/doc.tmac: Completely rewritten.
2004         * tmac/doc-common: Ditto.
2005         * tmac/doc-nroff: Ditto.
2006         * tmac/doc-ditroff: Ditto.
2007         * tmac/doc-syms: Ditto.
2008         * tmac/mdoc.local: New file.
2009         * tmac/groff_mdoc.samples.man: Replaced with ...
2010         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
2011         * tmac/strip.sed: Updated.
2012         * tmac/Makefile.sub: Updated.
2013         * INSTALL: Updated.
2015         * tmac/groff_man.man: Add `man.local' to the FILES section.
2017 2001-03-22  Werner LEMBERG  <wl@gnu.org>
2019         * doc/groff.texinfo: Added many @noindent.
2020         Replaced @end_Example -> @endExample.
2021         Added info whether registers are r/o.
2022         Many other additions and fixes.
2024 2001-03-21  Werner LEMBERG  <wl@gnu.org>
2026         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
2027         in makeinfo of texinfo 4.0) to be used in @Def* macros.
2028         Improved @Def* macros: Now the exact syntax of request, register,
2029         and escapes is shown.
2030         Added macros for parentheses and brackets to be used in @Def*.
2031         Many fixes and improvements of the documentation.
2033 2001-03-20  Werner LEMBERG  <wl@gnu.org>
2035         * doc/groff.texinfo: Added new index: `st' (for strings).
2036         Added macros @Defstr(x).
2037         Added macro @Example (adding @group).
2038         Other minor improvements.
2040 2001-03-19  Werner LEMBERG  <wl@gnu.org>
2042         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
2043         `rq' for requests.  `fn' is no longer used.
2044         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
2045         Removed @Deffn(x).
2047         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
2048         number with name of man page.
2050 2001-03-19  Larry Kollar  <kollar@alltel.net>
2052         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
2053         consistency.
2055 2001-03-19  Werner LEMBERG  <wl@gnu.org>
2057         * man/groff_font.man: Document `prepro', `postpro', and `print'.
2058         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
2059         * src/devices/grohtml/grohtml.man: Fixing typos.
2061 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
2063         * tmac/s.tmac (@IP): Pass `.ip' html tag.
2064         * tmac/groff_mwww.man: Remove .LINE macro
2065         * tmac/www.tmac (LINE): Add `.ti'.
2067         * src/devices/grohtml/post-html.cc (html_printer): New member
2068         `indent'.
2069         (html_printer::emit_raw): Use it.
2070         (html_printer::do_linelength): Ditto.
2071         (html_printer::do_pageoffset): Ditto.
2072         (html_printer::do_indentation): Ditto.
2073         (html_printer::do_tempindent): Ditto.
2074         (html_printer::do_break): Ditto.
2075         (html_printer::begin_page): Ditto.
2076         (html_printer::do_indentedparagraph): New function.
2077         (html_printer::troff_tag): Handle `.ip'.
2078         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
2079         Add `<td width=...>' handling.
2080         (html_text::do_table): Add parameter.
2081         (html_text::do_indent): Updated.
2082         * src/devices/groohtml/html-text.h: Updated.
2084 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
2086         Introduced simple html tables to implement indentation.
2088         * src/devices/grohtml/html.h (word, word_list): New structures.
2089         (simple_output): Use it.
2090         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
2091         (html_printer): Improve indentation handling.
2092         (html_printer::emit_raw): Set `in_table' element.  Handle
2093         indentation if set.
2094         (html_printer::write_header): Move conditional downwards.
2095         Don't allow whitespace in tags.
2096         (html_printer::do_linelength): Handle line length and indentation
2097         conditionally.
2098         (html_printer::do_pageoffset): Handle indentation conditionally.
2099         (html_printer::do_indentation): Ditto.
2100         (html_printer::do_tempindent): New function member.
2101         (html_printer::do_fill): Take care of indentation.
2102         (html_printer::do_flush): Finish table.
2103         (html_printer::do_links): Ditto.
2104         (html_printer::do_break): New function for handling `.br' and `.ti'.
2105         (html_printer::troff_tag): Use it.
2106         Handle `.ti'.
2107         (html_printer::flush_globs): Fix.
2108         (html_printer::flush_page): Finish table.
2109         (html_printer::html_printer): Fix error message.  Set up
2110         `linelength'.
2111         (html_printer::add_to_sbuf): Remove special handling of character
2112         code 255.
2113         (to_unicode): Remove `stop()'.
2114         (html_printer::write_title): Cleanup.
2115         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
2116         (html_printer::~html_printer): Flush text and end the line.
2117         Use `put_string()'.
2118         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
2119         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
2120         emission of tags.
2121         (html_text::start_tag): Disable newlines.
2122         (html_text::table_is_void): New function.
2123         (html_text::issue_table_begin): Ditto.
2124         (html_text::issue_table_end): Ditto.
2125         (html_text::push_para): Better table handling.
2126         (html_text::do_indent): New function.
2127         (html_text::do_table): Ditto.
2128         (html_text::done_table): Ditto.
2129         (html_text::do_tt): Handle PRE_TAG.
2130         (html_text::is_in_table): New function.
2131         (html_text::check_emit_text): Handle tables.
2132         (html_text::do_emittext): Use `nl()'.
2133         (html_text::do_para): Handle table.
2134         (html_text::remove_def): New function.
2135         * src/devices/grohtml/output.cc (word, word_list): Implement
2136         methods.
2137         (simple_output::end_line): Flush last word.
2138         (simple_output::simple_comment): Ditto.
2139         (simple_output::begin_comment): Recoded.
2140         (simple_output::end_comment): Ditto.
2141         (simple_output::comment_arg): Removed.
2142         (simple_output::check_newline): Improve test and flush last word.
2143         (simple_output::space_or_newline): Improved.
2144         (simple_output::write_newline): Replaced with...
2145         (simple_output::nl): This.
2146         (simple_output::put_raw_char): Flush last word.
2147         (simple_output::check_space): Removed.
2148         (simple_output::put_translated_string): Ditto.
2149         (simple_output::put_string): Simplified.
2150         (simple_output::put_number): Updated.
2151         (simple_output::put_float): Ditto.
2152         (simple_output::put_symbol): Removed.
2153         (simple_output::enable_newlines): Add `check_newline()'.
2154         (simple_output::flush_last_word): New function.
2156         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
2157         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
2159         * tmac/s.tmac (@PP, @IP): Add html conditional code.
2160         * tmac/an-old.tmac (TP): Ditto.
2162 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
2164         * mdate.sh: Make it POSIX compliant.
2166 2001-03-09  Werner LEMBERG  <wl@gnu.org>
2168         Added the `return' request to end a macro immediately.  It simply
2169         pops iterators from the input stack until a macro iterator is found.
2171         * src/roff/troff/input.cc (input_iterator::is_macro,
2172         macro_iterator::is_macro): New member.
2173         (input_return_boundary): New class to signal an immediate return
2174         to while_request().
2175         (input_stack::add_return_boundary, input_stack::is_return_boundary):
2176         New functions.
2177         (input_stack::clear): Use it.
2178         (input_stack::pop_macro): New function.
2179         (while_request): Use `is_return_boundary()'.
2180         (return_macro_request): New function.
2181         (init_input_requests): Use it.
2183         * src/roff/troff/TODO: Updated.
2184         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2186 2001-03-08  Werner LEMBERG  <wl@gnu.org>
2188         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
2189         cleanup.
2191 2001-03-07  Werner LEMBERG  <wl@gnu.org>
2193         Make `\B' more rigid.
2195         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
2196         parameter.
2197         (get_number_rigidly): New function.
2198         * src/roff/troff/input.cc (do_expr_test): Use it.
2199         * src/roff/troff/token.h: Updated.
2201         * src/roff/troff/request.h: Fix typo (init_html_request ->
2202         init_markup_request).
2204 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
2206         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
2207         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
2208         are now `.begin', `.end', `.image'.
2210         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
2211         (html_printer::add_to_sbuf): Changing type of `code' parameter.
2212         Use add_char_to_sbuf().
2213         (to_unicode): New function.
2214         (char_translate_to_html): Changing type of `ch' parameter.
2215         Use `to_unicode()'.
2216         (html_printer::~html_printer): Comment out doctype string.
2217         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
2218         instead of `.html-end'.
2219         (write_start_image): Use `.begin' and `.image' instead of
2220         `.html-begin' and `.html-image'.
2221         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
2222         (html_begin): Renamed to ...
2223         (begin): This.
2224         (html_end): Renamed to ...
2225         (end): This.
2226         (html_image): Renamed to ...
2227         (image): This.
2228         (init_html_requests): Renamed to ...
2229         (init_markup_requests): This.
2230         * tmac/www.tmac: Updated.
2232 2001-02-28  Bram  <bram@avontuur.org>
2234         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
2235         constructor.
2237 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
2239         * doc/meref.me: Fixing some typos.
2241 2001-02-16  Werner LEMBERG  <wl@gnu.org>
2243         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
2244         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
2245         * src/roff/troff/node.h: Updated.
2247 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
2249         * tmac/groff_tmac.man: Fix typo.
2251 2001-02-16  Werner LEMBERG  <wl@gnu.org>
2253         Fixing a bug which prevented proper end-of-sentence recognition
2254         between an `unformatted' box and the following text.  As a
2255         consequence, vertical line distances are no longer preserved in
2256         boxes after a call to `.unformat' -- because boxes aren't
2257         line-oriented (contrary to diversions), this doesn't make sense
2258         anyway.
2260         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
2261         value.
2262         (vertical_size_node::set_unformat_flag): New method.
2263         * src/roff/troff/node.hh: Updated.
2264         * src/roff/troff/input.cc (word_space_node::reread,
2265         hmotion_node::reread): Reset `unformat' flag after usage.
2266         (unformat_macro): Append only if `set_unformat_flag()' returns
2267         non-zero.
2268         * src/roff/troff/troff.man: Updated.
2270 2001-02-15  Werner LEMBERG  <wl@gnu.org>
2272         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
2273         documentation of `asciify' and `unformat' requests.
2275 2001-02-13  Werner LEMBERG  <wl@gnu.org>
2277         Redesigned the `unformat' request.  It is no longer connected with
2278         `asciify' but rather uses new `reread()' methods if the `unformat'
2279         flag is set.  Additionally, the handling of space characters after
2280         unformatting has been fixed so that they retain their width.
2282         * src/roff/troff/node.h (width_list): New structure to store
2283         original widths of spaces.
2284         (node): Added `unformat' member.
2285         Replaced `num_spaces' variable with `orig_width' list.
2286         * src/roff/troff/node.cc (*node::asciify,
2287         asciify_reverse_node_list): Removed `unformat_only' flag and related
2288         code.
2289         (word_space_node::asciify, word_space_node::word_space_node): Use
2290         `orig_width'.
2291         (word_space_node::~word_space_node): New destructor.
2292         (word_space_node::copy): Updated to handle `orig_width'.
2293         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
2294         (*node::merge_space): Update `orig_width' list if necessary.
2295         (*node::set_unformat_flag): New methods to set the `unformat' flag.
2296         * src/roff/troff/enc.cc (environment::space_newline): Use
2297         `width_list'.
2298         (environment::space): Added method to handle space width and
2299         sentence space width as parameters.  Use `width_list'.
2300         (environment::make_tab_node): Updated.
2301         * src/roff/troff/env.h: Updated.
2302         * src/roff/troff/input.cc (word_space_node::reread,
2303         unbreakable_space_node::reread, hmotion_node::reread): New methods
2304         to handle nodes specially if `unformat' flag is set.
2305         (do_asciify_macro): Renamed back to ...
2306         (asciify_macro): This.
2307         (unformat_macro): New implementation to simply set the `unformat'
2308         flag.
2310         * MORE.STUFF: Added more info about deroff.
2312 2001-02-08  Werner LEMBERG  <wl@gnu.org>
2314         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
2315         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
2316         and `add_self()' methods to avoid hyphenation.  For example, the
2317         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
2318         soft hyphen after `foo'.  Now the hyphen list is correctly
2319         `foo<ignore><ignore>bar'.
2321 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
2323         * tmac/groff_tmac.man: Fix `BIR' macro.
2325 2001-02-04  Werner LEMBERG  <wl@gnu.org>
2327         A new escape sequence `\:', inserting a zero-width break point.
2329         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
2330         * src/roff/troff/input.cc (get_copy, token::next, asciify):
2331         Implement it.
2332         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
2333         method.
2334         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
2335         and `asciify()' methods.
2336         * src/roff/troff/node.cc (space_node::space_node): Updated.
2337         (space_node::asciify): Handle `was_escape_colon'.
2338         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2340         Handle `\~' similar to other comparable requests.
2342         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
2343         label.
2344         (token::next): Move creation of an unbreakable_space_node to...
2345         (token::add_to_node_list): Here.
2347         Fix a bug which sometimes prevented hyphenation of words connected
2348         with `\~' or `\ ' (and other escape sequences handled as
2349         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
2350         (after a call to the `unformat' request).
2352         * src/roff/troff/env.h (environment::possibly_break_line,
2353         environment::hyphenate_line): Introducing `start_here' parameter.
2354         * src/roff/troff/env.cc (environment::space_newline,
2355         environment::space): Use it.
2356         (environment::possibly_break_line, environment::hyphenate_line):
2357         Implement it.
2358         * src/roff/troff/input.cc (process_input_stack): Use it.
2359         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
2360         space_char_hmotion_node, overstrike_node): Add
2361         `get_hyphenation_type()' method.
2362         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
2363         if `unformat_only' is active.
2365 2001-01-30  Werner LEMBERG  <wl@gnu.org>
2367         Implemented new read-only number register `.linetabs' which
2368         returns 1 if in line-tabs mode, 0 otherwise.
2370         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
2371         * src/roff/troff/env.cc (get_line_tabs): New function.
2372         (init_env_requests): Use it.
2373         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2375         * VERSION, REVISION: Changing to 1.17.0.
2377 2001-01-28  Werner LEMBERG  <wl@gnu.org>
2379         Fixed a bug which prevented hyphenation of words which are finished
2380         with `\)'.
2382         * src/roff/troff/token.h (token): Add enum type
2383         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
2384         * src/roff/troff/input.cc (token::next, token::description,
2385         get_line_arg, token::add_to_node_list, token::process): Use it.
2387 2001-01-27  Werner LEMBERG  <wl@gnu.org>
2389         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
2390         * src/roff/troff/div.cc (do_divert): Use it.
2392         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
2394 2001-01-25  Werner LEMBERG  <wl@gnu.org>
2396         Adding the `linetabs' request.  If set, tab distances are not
2397         computed relative to the input line but relative to the output line.
2399         * src/roff/troff/env.h (environment): New member `line_tabs'.
2400         * src/roff/troff/env.cc (line_tabs_request): Implement request.
2401         (environment::environment, environment::copy): Updated.
2402         (environment::distance_to_next_tab): Use `line_tabs'.
2403         (init_env_requests): Register request.
2404         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
2405         fixes.
2407 2001-01-24  Werner LEMBERG  <wl@gnu.org>
2409         Introducing a new read-only register `.int' which is set to a
2410         positive value if the last output line is interrupted (i.e., if it
2411         contains `\c').
2413         * src/roff/troff/env.cc (init_env_requests): Add it.
2414         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2416 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
2418         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
2419         * src/preproc/html/pre-html.cc (findPrefix): New function which
2420         generates the troff executable name via the system prefix.
2421         * src/preproc/eqn/main.cc: Modified warning message.
2423 2001-01-23  Werner LEMBERG  <wl@gnu.org>
2425         troff's `box' and `boxa' requests didn't preserve temporary
2426         indentation.
2428         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
2429         `saved_target_text_length' members.
2430         * src/roff/troff/div.cc (do_divert): Use them.
2432         Tabs (but not yet leaders and fields) are now handled correctly by
2433         `asciify' request.
2435         * node.h (hmotion_node): Add field `was_tab'.
2436         * env.cc (environment::make_tab_node): Set it.
2437         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
2439         Added new request `unformat' which will, contrary to `asciify',
2440         preserve font information after unformatting (i.e., only nodes
2441         dealing with horizontal space are converted back to input
2442         characters).
2444         * input.cc (asciify_macro): Renamed to ...
2445         (do_asciify_macro): this, having a new parameter `unformat_only'.
2446         (asciify_macro, unformat_macro): New; using do_asciify_macro.
2447         (init_input_requests): Added `unformat'.
2448         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
2449         parameter to control asciification process.
2450         * node.h (*_node::asciify): Ditto.
2451         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2453 2001-01-20  Werner LEMBERG  <wl@gnu.org>
2455         * doc/groff.texinfo: Minor improvement of `.in' documentation.
2457 2001-01-18  Werner LEMBERG  <wl@gnu.org>
2459         * tmac/ps.tmac: Remove call of psold.tmac.
2460         * tmac/psold.tmac: Comment updated.
2461         * tmac/psnew.tmac: Removed since no longer needed.
2462         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
2464         * font/devutf8/R.proto: Adding `shc' glyph.
2465         * font/devutf8/NOTES: Updated.
2467         * test-groff: Updated.
2469 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
2471         First cut of the new html device driver.  Changes to pre-html and
2472         the new grohtml are too numerous to be documented here.
2474         Stuff related to `html' has been renamed to `html-old' and `html2'
2475         stuff has been renamed to `html' (including directories).  The new
2476         html device driver is therefore invoked as `-Thtml'.
2478         Added new `\O' escape to suppress output (needed by html driver).
2480         Added functions and code to pass info about input-level commands
2481         (`.in', `.fl', etc.) to html driver.
2483         Three new functions (.html-begin, .html-end, and .html-image) for
2484         better html handling: `html-begin' will execute the remaining line
2485         if at the outermost nesting level, increasing an internal counter.
2486         `html-end' does the same but decreases the internal counter.
2487         `html_image' puts its arguments into a special node (suppress_node)
2488         to define an image region.
2490         The `output' request has been removed.
2492         * tmac/html-tags.tmac: Removed.
2493         * tmac/arkup.tmac: Updated and renamed to ...
2494         * tmac/www.tmac: New file.
2495         * tmac/markup.tmac Updated and renamed to ...
2496         * tmac/mwww.tmac: New file.
2497         * tmac/Makefile.sub: Updated.
2498         * tmac/an-old.tmac: Updated.
2499         * tmac/eqnrc: Updated.
2500         * tmac/groff_man.man
2501         * tmac/groff_markup.man: Updated and renamed to ...
2502         * tmac/groff_mwww.man: New file.
2503         * tmac/groff_tmac.man: Updated.
2504         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
2505         * tmac/html.tmac: Updated and renamed from html2.tmac.
2506         * tmac/pspic.tmac: Updated html support.
2507         * tmac/s.tmac: Added html output support.
2508         * tmac/troffrc, tmac/troffrc-end: Updated.
2510         * Makefile.in, doc/Makefile: Updated.
2511         * doc/groff.texinfo: Added info about new `\O' escape.
2512         * doc/homepage.ms: Use `MAILTO' macro.
2514         * font/devhtml/DESC.proto: Add `C' font.
2515         * font/devhtml/Makefile.sub: Updated.
2516         * font/devhtml/R.proto: Minor fixes.
2517         * font/devhtml-old/Makefile.sub: Updated.
2519         * src/devices/grohtml-old/Makefile.sub: Updated.
2521         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
2522         method.
2523         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
2524         graphic_start): Add `inline' parameter.  Update.
2525         (html_end_suppress, graphic_end): Update.
2527         * src/include/html-strings.h: New file.
2528         * src/include/htmlindicate.h: Comments updated.
2529         * src/include/printer.h: Updated.
2531         * src/preproc/eqn/main.cc (do_file, main): Updated.
2532         * src/preproc/pic/troff.cc (troff_output::start_picture,
2533         troff_output::finish_picture): Updated.
2534         * src/preproc/tbl/main.cc (process_input_file): Updated.
2536         * src/roff/groff/groff.cc (main): Updated.
2537         Pass device arguments to predrivers also.
2538         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
2539         * src/roff/troff/env.h (environment): Updated.
2540         New elements `need_eol' and `ignore_next_eol' (for html output).
2541         * src/roff/troff/env.cc (environment::environment): Add initializers
2542         for `need_eol' and `ignore_next_eol'.
2543         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
2544         functions.
2545         (point_size, fill, no_fill, center, right_justify, line_length,
2546         indent, temporary_indent, break_request, handle_tab): Use
2547         `add_html_tag()'.
2548         (set_tabs): Use `add_html_tag_tabs()'.
2549         (environment::add_html_tag): Updated.
2550         (environment::do_break): Updated.
2551         * src/roff/troff/div.cc (space_request, flush_output): Use
2552         `environment::add_html_tag()'.
2553         * src/roff/troff/input.cc: Updated.
2554         New variable `html_level' to indicate nested `html-begin' requests.
2555         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
2556         (non_interpreted_char_node, token_node, non_interpreted_node): Add
2557         `force_tprint()' method.
2558         (token::next): Handle `\O'.
2559         (do_suppress): Implement it.
2560         (html_begin, html_end, html_image): New functions.
2561         (init_output_requests): Renamed to ...
2562         (init_html_requests): this.
2563         (main): Use it.
2564         (macro::append_str, macro::append_unsigned, macro::append_int): New
2565         methods.
2566         New variable `output_low_mark_miny' to limit minimal value of y.
2567         (reset_output_registers): Use it.
2568         (output_request): Removed.
2569         (get_output_registers): New function.
2570         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
2571         (*_node): Added `force_tprint()' if necessary.
2572         (special_node): New elements `tf' and `get_tfont()'.
2573         (suppress_node): New class.
2574         * src/roff/troff/node.cc:
2575         New global variables `image_no' and `suppress_start_page'.
2576         (real_output_file): New method `is_on()'.
2577         (troff_output_file): New method `start_special(tfont)'.
2578         (troff_output_file::really_print_line): Use `tprint' conditionally.
2579         (real_output_file::print_line): Updated.
2580         (real_output_file::on): Updated.
2581         (*_node): Added `force_tprint()'.
2582         (special_node::special_node): Initializer updated.
2583         (special_node::same, special_node::copy, special_node::tprint_start):
2584         Updated.
2585         (get_reg_int, get_reg_str): New functions.
2586         (suppress_node::*): New methods.
2587         New global variables last_position, last_image_filename;
2588         (min): New inline function.
2589         * src/roff/troff/reg.h, src/roff/troff/request.h,
2590         src/roff/troff/troff.h: Updated.
2592 2001-01-13  Werner LEMBERG  <wl@gnu.org>
2594         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
2595         documentation of `asciify' request.
2597 2001-01-12  Werner LEMBERG  <wl@gnu.org>
2599         * src/roff/troff/input.cc: Move definition of special characters
2600         like `ESCAPE_TILDE' to ...
2601         * src/roff/troff/input.h: New file.
2602         * src/roff/troff/Makefile.sub (HDRS): Add it.
2604         Extending the .asciify request to `unformat' space characters also.
2606         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
2607         to count input space characters.
2608         Update constructors to take care of it.
2609         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
2610         `ESCAPE_SPACE' instead of normal space.
2611         (word_space_node::asciify): New method.
2612         (unbreakable_space_node::asciify): New method.
2613         (word_space_node::merge_space): New method.
2614         * src/roff/troff/env.cc (environment::space_newline,
2615         environment::space): Add code to initialize `num_spaces' (using the
2616         constructor of `word_space_node').
2617         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
2618         Document it.
2620 2001-01-09  Werner LEMBERG  <wl@gnu.org>
2622         * man/groff_char.man: Use table header traps only conditionally.
2624 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
2626         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
2628 2001-01-08  Werner LEMBERG  <wl@gnu.org>
2630         Introducing the `box' and `boxa' requests which are similar to
2631         `di' resp. `da' but omitting a partially filled line (which is
2632         restored after ending the diversion).
2634         * src/roff/troff/div.h (diversion): Add elements to save partially
2635         filled line.
2636         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
2637         partially filled line.
2638         (divert, divert_append): Updated.
2639         (box, box_append): New functions.
2640         (init_div_requests): Use them.
2641         * src/roff/troff/env.h (environment): do_divert() is now a friend.
2642         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2644         * doc/groff.texinfo: Fix documentation of `lf' request.
2646 2000-12-25  Werner LEMBERG  <wl@gnu.org>
2648         * src/roff/troff/troff.man, NEWS: Document `writem' request.
2650 2000-12-21  Werner LEMBERG  <wl@gnu.org>
2652         Ignore `ss' request if in compatibility mode.
2654         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
2655         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
2656         * src/roff/troff/env.cc (space_size): Use it.
2658         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
2659         `ss' request in nroff mode.
2661         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
2662         changes.
2664 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
2666         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
2668 2000-12-13  Werner LEMBERG  <wl@gnu.org>
2670         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
2671         * src/preproc/eqn/neqn.man: Small fixes and additions.
2673 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
2675         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
2676         Fixing typo.
2678         * src/preproc/eqn/neqn.man: New file.
2680         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
2681         negative' warning.
2683         * tmac/e.tmac: Add `T&' macro.
2684         Fix `indent cannot be negative' warning.
2685         * tmac/s.tmac: Fix `indent cannot be negative' warning.
2687 2000-12-07  Werner LEMBERG  <wl@gnu.org>
2689         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
2691 2000-12-06  Werner LEMBERG  <wl@gnu.org>
2693         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
2694         `alloca' symbol .
2696         * MORE.STUFF: Added info about deroff for djgpp.
2698         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
2699         documentation of -rcR switch.
2701 2000-12-03  Werner LEMBERG  <wl@gnu.org>
2703         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
2704         if -rcR=1 (which is now the default in nroff mode), a single, very
2705         long page is created instead of multiple pages: All `ne' and `wh'
2706         requests are put into conditionals; a new macro `an-end' is added to
2707         be called with `em'.
2709         Some other minor cleanups.
2711         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
2713 2000-12-02  Werner LEMBERG  <wl@gnu.org>
2715         Fixing a bug which prevented hyphenation in words followed
2716         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
2718         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
2719         Adding possibly_break_line().
2720         * src/roff/troff/env.h (environment): Make possibly_break_line()
2721         public.
2723         Make `\~' usable in .tr request.
2725         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
2726         (token): Add stretchable_space().
2727         * src/roff/troff/input.cc (token::next, token::delimiter,
2728         token::description, process_input_stack, do_translate,
2729         add_to_node_list, token::process): Use it.
2730         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
2731         for adjusting the space.
2732         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
2733         for stretchable space.
2734         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
2735         (make_node): Add code for stretchable space.
2736         * src/roff/troff/env.cc (environment::add_char): Use it.
2737         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
2738         (get_copy, token::next, transparent_translate, asciify): Use it.
2740         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
2741         doc/groff.texinfo: Updated.
2742         * man/groff.man: Small reorderings.
2744 2000-11-23  Werner LEMBERG  <wl@gnu.org>
2746         * NEWS: Fixes.
2747         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
2748         option.
2749         * src/roff/troff/input.cc (main): Add `config_macro_path' and
2750         `safer_macro_path' to -M option.
2751         * src/roff/troff/troff.man: Fixes.
2753 2000-11-22  Werner LEMBERG  <wl@gnu.org>
2755         Use safer path (except for config files) if -U isn't specified.  Add
2756         a special macro path (without home and current directory) for config
2757         files.  Add home directory to unsafe path for consistency.  Don't
2758         include the home directory in the font path.
2760         * src/lib/libgroff/macropath.cc: Add `config_macro_path', change
2761         `macro_path'.
2762         * src/include/macropath.h: Add `config_macrp_path'.
2763         * src/lib/libgroff/fontfile.cc: Fix font path.
2764         * src/roff/troff/input.cc (process_startup_file): Use
2765         `config_macro_path'.
2766         (main): Select unsafe path if -U is given.
2768         * src/preproc/eqn/main.cc (main): Fixing search path for
2769         configuration file.
2770         * src/preproc/eqn/eqn.man: Updated.
2772         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
2773         Updated.
2775         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
2776         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
2777         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
2778         src/devices/grotty/grotty.man: Updated.
2780         * Makefile.in: Fix comments.
2782 2000-11-17  Werner LEMBERG  <wl@gnu.org>
2784         * tmac/safer.tmac: Empty file added (again) for compatibility
2785         reasons.
2786         * tmac/Makefile.sub: Updated.
2788 2000-11-16  Werner LEMBERG  <wl@gnu.org>
2790         * src/devices/grodvi/dvi.cc (main),
2791         src/devices/grohtml2/post-html.cc (main),
2792         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
2793         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
2794         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
2795         (main), src/preproc/html2/pre-html.cc (main),
2796         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
2797         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
2798         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
2799         (main), src/utils/hpftodit/hpftodit.cc (main),
2800         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
2801         (main), src/utils/lookbib/lookbib.cc (main),
2802         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
2803         (main): Use stdout for -v.
2804         * src/roff/groff/groff.cc (run_commands),
2805         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
2806         to make direct printing to stdout possible.
2807         * src/roff/groff/pipeline.h: Updated.
2809         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
2810         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
2811         * src/utils/afmtodit/afmtodit.man: Updated.
2813         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
2814         (version): New function.
2815         (usage): Updated.
2816         * src/utils/addftinfo/addftinfo.man: Updated.
2818         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
2819         Fixing copyright dates.
2821         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
2822         replacing it.
2824         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
2825         version_string.
2827         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
2829 2000-11-15  Werner LEMBERG  <wl@gnu.org>
2831         In all programs, make -v return immediately with exit status 0 to
2832         be compliant with the GNU standard.
2834         * src/devices/grodvi/dvi.cc (main),
2835         src/devices/grohtml2/post-html.cc (main),
2836         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
2837         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
2838         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
2839         (main), src/preproc/html2/pre-html.cc (main),
2840         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
2841         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
2842         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
2843         (main): Implement it.
2844         * NEWS: Updated.
2846         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
2847         and postprocessors to the -v option.
2849         * src/roff/grog/grog.pl: Implement -v.
2850         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
2851         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
2853         * src/roff/nroff/nroff.sh: Implement -v.
2854         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
2855         * src/roff/nroff/nroff.man: Updated.
2856         
2857         * src/preproc/eqn/main.cc (main): Fix comment typo.
2859         * MORE.STUFF: Added info about djgpp port of grap.
2861 2000-11-14  Werner LEMBERG  <wl@gnu.org>
2863         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
2864         mode (or rather, implemented non-compatibility mode).
2865         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
2867         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
2868         replacing it -- we don't find gxditview otherwise.
2869         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
2871         * src/preproc/pic/depend: Removed.  Unnecessary.
2873         Implemented dummy keyword `solid' in pic for compatibility with
2874         AT&T pic.
2876         * lex.cc (lookup_keyword): Added `solid'.
2877         * pic.y: Added SOLID with dummy rule.
2878         * pic.cc, pic_tab.h: Regenerated.
2879         * doc/pic.ms: Updated.
2881 2000-11-13  Werner LEMBERG  <wl@gnu.org>
2883         For security reasons, don't use the current directory but the home
2884         directory while searching and scanning troffrc and troffrc-end.
2885         Similarly, replace the current directory with the home directory
2886         in the font path.
2888         * Makefile.in (fontpath, tmacpath): Remove current directory.
2890         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
2891         two parameters `add_home' and `add_current'.
2892         (search_path::~search_path, search_path::command_line_dir,
2893         search_path::open_file): Remove tests for `dirs' being zero.
2894         * src/include/searchpath.h: Adjust.
2895         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
2896         `safer_macro_path'.
2897         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
2899         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
2900         * src/roff/troff/input.cc: Use `mac_path', initialized with
2901         `macro_path'.
2902         (process_startup_file): Set `mac_path' to `safer_macro_path'.
2903         * src/roff/troff/env.cc: Use `mac_path'.
2905         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
2907         * NEWS, man/roff.man, src/roff/troff/troff.man,
2908         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
2909         Updated.
2911 2000-11-12  Werner LEMBERG  <wl@gnu.org>
2913         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
2915         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
2916         * configure.in: Fix typo in comment.
2917         * configure: Regenerated.
2919         * src/libgroff/*, src/include/*, src/roff/troff/*: Fixing copyright
2920         dates.
2922 2000-11-08  Werner LEMBERG  <wl@gnu.org>
2924         Add system tmac directory (/usr/local/lib/groff/site-tmac).
2926         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
2927         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
2928         $(systemtmacdir).
2929         Use @libdir@.
2930         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
2931         * tmac/Makefile.sub (install_data): Create
2932         $(systemtmacdir) and $(localtmacdir).
2933         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
2934         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
2935         NEWS, doc/groff.texinfo: Updated and minor fixes.
2937         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
2938         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
2939         $(systemtmacdir) since the wrapper files are platform-dependent.
2941 2000-11-01  Werner LEMBERG  <wl@gnu.org>
2943         * doc/groff.texinfo: Fix typo.
2945 2000-10-26  Werner LEMBERG  <wl@gnu.org>
2947         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
2948           tmac.doc.old -> doc-old.tmac
2949           tmac.an.old  -> an-old.tmac
2951         * tmac/tmac.*: Moved to ...
2952         * tmac/*.tmac: this.
2953         * tmac/man.local: Fix comment.
2954         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
2955         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
2956         Added some `FILES' sections.  More use of @...@ directives.  Other
2957         minor updates.
2958         * arch/djgpp/README, font/devutf8/NOTES: Updated.
2959         * doc/homepage.ms, doc/groff.texinfo: Updated.
2960         * man/groff.man, man/roff.man: Updated.
2961         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
2962         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
2963         src/devices/grotty/grotty.man: Updated.
2964         * src/preproc/pic/pic.man: Updated.
2965         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
2966         instead of -mdoc.old.
2967         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
2968         * src/roff/nroff/nroff.man: Updated.
2969         * NEWS: Updated.
2971         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
2973         * tmac/mm.diff: Removed -- it has no use now since the mm package
2974         is part of groff.
2976         * tmac/*: Removed trailing spaces.
2978         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
2979         the tmac subdirectory also).
2981         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
2982         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
2983         stuff since it is no longer needed.
2985         * README, PROBLEMS: Updated.
2987 2000-10-25  Werner LEMBERG  <wl@gnu.org>
2989         Invert current behaviour: Search first FOOBAR.tmac, then
2990         tmac.FOOBAR.
2992         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
2993         (open_mac_file, macro_source): Implement it.
2994         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
2995         doc/groff.texinfo, NEWS: Document it.
2997         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
2998         Small documentation improvements.
3000         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
3001         subdirectory also).
3003         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
3005 2000-10-24  Werner LEMBERG  <wl@gnu.org>
3007         Add local tmac directory (groff/site-tmac).
3009         * Makefile.in: Add $(localtmacdir).
3010         (uninstall_dirs): Add $(localtmacdir).
3011         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
3012         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
3013         in $(localtmacdir).  Create $(localtmacdir).
3014         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
3015         Updated and minor fixes.
3017         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
3019         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
3021 2000-10-23  Werner LEMBERG  <wl@gnu.org>
3023         Move hyphen.us to tmac directory.
3025         * src/roff/troff/hyphen.us: Removed.
3026         * src/tmac/hyphen.us: Added.
3027         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
3029         Change installation structure for data files from .../groff/... to
3030         .../groff/<version><revision>/... to be conform with other GNU
3031         programs.
3033         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
3034         doc/Makefile: Implement it.
3035         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
3036         * configure: Updated.
3037         * arch/djgpp/README, font/devutf8/NOTES: Use it.
3038         * NEWS: Document it.
3039         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
3040         @MACRODIR@ instead of hard-coded directories.
3042 2000-10-22  Werner LEMBERG  <wl@gnu.org>
3044         Implement $GROFF_BIN_PATH environment variable (which defaults to
3045         $bindir) used for child programs of groff and similar wrappers.
3047         * gendefs.sh: Improve documentation.
3048         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
3049         src/preproc/eqn/Makefile.sub (neqn),
3050         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
3051         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
3052         $GROFF_BIN_PATH.
3053         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
3054         $GROFF_PATH__ (the latter for communication with troff).
3055         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
3056         set.
3057         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
3058         doc/groff.texinfo: Document it.
3060         * doc/groff.texinfo: Improve documentation of troff's -a option.
3062 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
3064         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
3065         non-intrusive eol marker.
3066         (troff_output_file::determine_line_limits): New function.
3067         (troff_output_file::draw): Use it.
3068         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
3069         output_pending_lines() instead of output_line().
3070         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
3071         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
3072         createImage): Small fixes.
3073         
3074 2000-10-14  Werner LEMBERG  <wl@gnu.org>
3076         Replace tmac.safer with a real secure solution.
3078         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
3079         system_request, pipe_output): Disable requests if in safer mode.
3080         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
3081         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
3082         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
3083         doc/groff.texinfo, src/roff/groff/groff.man,
3084         src/roff/troff/troff.man, arch/djgpp/README: Updated.
3086         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
3087         (resource_manager::output_prolog): Replace setenv() with putenv().
3089 2000-10-09  Werner LEMBERG  <wl@gnu.org>
3091         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
3092         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
3093         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
3094         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
3095         compilation errors with some compilers.  It seems that this code
3096         is no longer necessary -- if yes, it is easy to add some #ifdef's
3097         for that particular old-fashioned compiler.
3099         * MORE.STUFF: Added info about Meta-tbl.
3101         * doc/groff.texinfo: Added more info about `.if "..."..."'.
3103 2000-10-07  Werner LEMBERG  <wl@gnu.org>
3105         Adding a new escape sequence \B'...': If the string between
3106         the delimiters is a valid numeric expression, return the character
3107         `1', and `0' otherwise.  This is an analogon to \A.
3109         * src/roff/troff/input.cc (do_expr_test): Implement it.
3110         (token::next): Use it.
3111         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
3113         * tmac/tmac.trace: Made independent from escape character.
3115 2000-10-06  Werner LEMBERG  <wl@gnu.org>
3117         Adding a new request .dei: define indirect.  The first and second
3118         parameter of .dei are taken from string registers instead directly;
3119         this very special request is needed to make tmac.trace independent
3120         from the escape character (which might even be disabled).
3122         * src/roff/troff/input.cc (do_define_macro): Implement it.
3123         (define_macro_indirect): New function.
3124         (init_input_requests): Use it.
3126         Adding two requests .ecs and .ecr: Save and restore the escape
3127         character.  These two requests are needed to make tmac.trace
3128         independent from the escape character (which might even be
3129         disabled).
3131         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
3132         Implement it.
3133         (init_input_requests): Use it.
3135         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
3137 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
3139         Adding a new option -P and new environment variable GROPS_PROLOGUE
3140         to grops, selecting a different prologue file (minor modifications
3141         by WL).
3143         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
3144         src/devices/grops/ps.cc (main): Implement it.
3145         * src/devices/grops/grops.man, NEWS: Document it.
3147 2000-09-22  Werner LEMBERG  <wl@gnu.org>
3149         * INSTALL: Add info about selecting paper format.
3151 2000-09-21  Werner LEMBERG  <wl@gnu.org>
3153         * src/roff/troff/input.cc (main): Fixing compiler warning.
3154         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
3155         strings.h from the former to the latter.
3156         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
3157         stuff from the former to the latter.
3159 2000-09-11  Werner LEMBERG  <wl@gnu.org>
3161         Implementing two new requests .tm1 and .tmc: The former is similar
3162         to .tm but can output leading spaces; its syntax is similar to
3163         defining a string, i.e., a `"' can be used to mark the beginning of
3164         the string to be written to stderr: `.tm1 " test'.  The latter is
3165         similar to .tm1 but doesn't write out a final newline character.
3167         * src/roff/troff/input.cc (terminal1, terminal_continue,
3168         do_terminal): New functions.
3169         (init_input_requests): Use them.
3170         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
3172 2000-09-09  Werner LEMBERG  <wl@gnu.org>
3174         * tmac/groff_mdoc.samples.man: Small fixes.
3176 2000-09-08  Werner LEMBERG  <wl@gnu.org>
3178         * tmac/groff_mdoc.man: Fixing typo.
3180 2000-09-02  Werner LEMBERG  <wl@gnu.org>
3182         Implementing a .nop request which does nothing.
3184         * src/roff/troff/input.cc (nop_request): New function.
3185         (init_input_requests): Use it.
3186         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
3188 2000-09-01  Werner LEMBERG  <wl@gnu.org>
3190         * doc/groff.texinfo: Added some comments.
3192 2000-08-30  Werner LEMBERG  <wl@gnu.org>
3194         * src/roff/troff/TODO: Updated.
3196 2000-08-25  Werner LEMBERG  <wl@gnu.org>
3198         * doc/groff.texinfo: Fix comment how to compile the DVI file.
3200 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
3202         * font/devps/generate/Makefile (SHELL): Define explicitly to
3203         "/bin/sh", for non-Unix platforms.
3204         (extraclean): Use a more portable "" quoting instead of a
3205         backslash (which doesn't work on DOS/Windows).
3206         
3207         * font/devlj4/generate/Makefile (extraclean): Ditto.
3209         * font/devdvi/generate/Makefile (extraclean): Ditto.
3211 2000-08-25  Werner LEMBERG  <wl@gnu.org>
3213         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
3214         src/roff/troff/troff.man: Document Eli's latest changes.
3216 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
3218         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
3219         macro file names of the form NAME.tmac as well as tmac.NAME.
3221 2000-08-25  Werner LEMBERG  <wl@gnu.org>
3223         * src/include/posix.h: Remove definition of FILENAME_MAX.
3225         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
3226         `sys_fatal' and `stop' function().
3228         * test-groff: Updated.
3230 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
3232         Added the new troff command .output <arg> to suppress output (while
3233         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
3234         registers (for passing the output dimensions to the output device).
3236         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
3237         parameter.
3238         * src/roff/troff/node.h, src/roff/troff/node.cc
3239         (troff_output_file::really_print_line,
3240         ascii_output_file::really_print_line,
3241         supress_output_file::really_print_line): Use `width' parameter.
3242         (troff_output_file::really_on, troff_output_file::really_off,
3243         output_file::on, output_file::off, real_output_file::on,
3244         real_output_file::off, real_output_file::really_on,
3245         real_output_file::really_off): New functions.
3246         (real_output_file:public output_file): New variable `output_on'.
3247         (real_output_file::begin_page, real_output_file::copy_file,
3248         real_output_file::transparent_char, real_output_file::print_line):
3249         Use it.
3250         (real_output_file::print_line): Use check_output_limits.
3251         * src/roff/troff/reg.h, src/roff/troff/request.h,
3252         src/roff/troff/input.cc (assign_registers): New function to remove
3253         two `goto's.
3254         (do_ps_file): Use it.
3255         (check_output_limits, reset_output_registers, output_request,
3256         init_output_requests): New functions.
3257         (init_input_requests): Updated.
3259         Added new grohtml2 device and html2 preprocessor (coding
3260         not yet finished) which will eventually replace grohtml.
3262         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
3263         Updated.
3264         * src/include/htmlindicate.h, src/include/htmlindicate
3265         (html_begin_suppress, html_end_suppress): New functions.
3266         * src/preproc/tbl/main.cc: Use it.
3267         * src/roff/groff/groff.cc: Add support for html2 device (which will
3268         automatically invoke the html2 preprocessor).
3269         * src/roff/troff/input.cc (is_html2): New variable.
3270         * src/roff/troff/troff.h, src/roff/troff/env.h,
3271         src/roff/troff/env.cc (environment::add_html_tag): New function
3272         (uses `is_html2').
3273         (environment::do_break): Use it.
3274         * font/devhtml2/*: New files.
3275         * src/devices/grohtml2: New device.
3276         * src/preproc/html2: New preprocessor.
3277         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
3279 2000-08-23  Werner LEMBERG  <wl@gnu.org>
3281         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
3283 2000-08-22  Werner LEMBERG  <wl@gnu.org>
3285         * src/include/lib.h: Provide a fix for IRIX to not include
3286         groff-getopt.h.
3288 2000-08-18  Werner LEMBERG  <wl@gnu.org>
3290         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
3291         since some non-GNU sed programs can't handle null regexps.
3292         * configure, src/preproc/eqn/Makefile.sub,
3293         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
3295         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
3296         bug (string.h and strings.h are both needed according to latest
3297         POSIX standard).
3299         * MORE.STUFF: Added info about unroff and troffcvt.
3301 2000-08-08  Werner LEMBERG  <wl@gnu.org>
3303         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
3304         used before -ms.
3306         * tmac/tmac.man.old: Remove unused number register.
3308         * tmac.doc: Minor documentation fix.
3310 2000-08-07  Paul Eggert  <eggert@twinsun.com>
3312         * src/roff/groff/pipeline.c (is_system_shell):
3313         Fix typo: "monocased_shell" no longer exists.
3315 2000-08-07  Paul Eggert  <eggert@twinsun.com>
3317         Remove FILENAME_MAX limits.
3319         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
3320         that the argument length is less than FILENAME_MAX.
3321         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
3322         Use struct hack to allocate and free file name.
3323         (struct xtmpfile_list): fname is now part of the structure,
3324         not a pointer to another string.
3326 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
3328         * src/include/posix.h: Add a default value for FILENAME_MAX.
3330 2000-08-06  Paul Eggert  <eggert@twinsun.com>
3332         Add support for new BSD-style man pages (with ".Dd" instead of
3333         ".TH"), so that "groff -man" understands both styles, even
3334         when running "groff -man" on a host whose system man page
3335         macros don't support ".Dd".
3337         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
3338         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
3339         in case the system man macros don't define Dd or TH.
3341         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
3342         * tmac/tmac.an: New one-line file.
3343         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
3345 2000-08-06  Werner LEMBERG  <wl@gnu.org>
3347         * src/roff/troff/troff.man: Fixing typos.
3349 Version 1.16.1 released
3350 =======================
3352 2000-07-31  Werner LEMBERG  <wl@gnu.org>
3354         Preparing release 1.16.1.
3356         * REVISION: Revision number set to 1.
3357         * MORE.STUFF: Added info about port to DOS.
3358         * NEWS, win32-diffs: Updated.
3360         * src/include/nonposix.h: Remove first line -- this file is used
3361         in C also.
3363         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
3364         link to it.
3366 2000-07-30  Werner LEMBERG  <wl@gnu.org>
3368         * doc/texinfo.tex: Update to latest version.
3370 2000-06-28  Paul Eggert  <eggert@twinsun.com>
3372         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
3373         commands that fail.  Don't assume that "export a=b" is valid shell
3374         syntax.  This is needed for Solaris 2.5.1.
3376         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
3377         comment about missing Solaris headers.
3379         * PROBLEMS: Add section about problems with Sun Make and VPATH.
3381 2000-06-25  Werner LEMBERG  <wl@gnu.org>
3383         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
3384         SET_BINARY().
3386         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
3388         * win32-diffs: Updated.
3389         * README.WIN32: Added CRs to make all Windows editors happy.
3391         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
3392         src/roff/groff/pipeline.c).
3394 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
3396         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
3397         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
3399 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
3401         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
3402         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
3403         are binary files.
3404         (main): Support non-Posix systems with several different styles of
3405         slash characters in file names.
3407         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
3408         (main) [SET_BINARY]: Switch stdin into binary mode.
3410         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
3411         (main): Support file names with several possible slash-type
3412         characters, as given by DIR_SEPS[] in nonposix.h.
3413         (main) [__MSDOS__]: If renaming the temporary index file fails
3414         because it has more than one dot in its trunk, replace the dot
3415         with an underscore and try again.
3416         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
3417         Newline.
3418         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
3420         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
3421         (File::File): Open the input file in binary mode.  Strip CR
3422         characters from each CR-LF pair.
3423         (xbasename): Support file names with several possible slash-type
3424         characters, as given by DIR_SEPS[] in nonposix.h.
3426         * src/include/Makefile.sub (HDRS): Add nonposix.h.
3428         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
3429         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
3430         [!_POSIX_VERSION]: Define for traditional Unix systems.
3431         (real_output_file::real_output_file): Remove the MSVC-specific
3432         call to popen, use instead POPEN_WT, appropriately defined on
3433         nonposix.h.  #include nonposix.h.
3434         (real_output_file::~real_output_file): Remove the MSVC-specific
3435         call to pclose, a suitable macro is now defined on nonposix.h.
3436         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
3437         and WEXITSTATUS instead of assuming traditional Unix
3438         interpretation of the status returned by pclose.
3440         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
3441         call to popen, use POPEN_RT instead (appropriately defined on
3442         nonposix.h).  #include nonposix.h.
3443         (ps_bbox_request): Open the PostScript file in binary mode.
3444         Close the file after processing it.
3445         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
3446         nonposix.h.
3448         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
3449         A version of run_pipeline that doesn't use `fork'.
3450         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
3451         (system_shell_name, system_shell_dash_c)
3452         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
3453         the ugliness of testing DOS/Windows file names for equality, and
3454         support both stock shells and ports of Unix shells.
3456         * src/roff/groff/groff.cc: #include nonposix.h.
3457         (BSHELL): Definition moved to nonposix.h.
3458         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
3459         instead of a literal "-c".
3460         (xbasename): Support file names with several possible slash-type
3461         characters, as given by DIR_SEPS[] in nonposix.h.
3462         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
3463         of literal strings.
3465         * src/preproc/soelim/soelim.cc: #include nonposix.h.
3466         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
3468         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
3469         pic_tab.h.
3471         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
3473         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
3474         eqn_tab.h.
3476         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
3478         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
3479         P_tmpdir is defined, use it instead of the literal "/tmp".
3480         (remove_tmp_files, add_tmp_file): New functions.
3481         (xtmpfile): Record temporary files and register an atexit function
3482         to delete them explicitly, instead of relying on the OS to do
3483         that, which doesn't work on non-Unix systems.
3485         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
3486         (search_path::search_path): Use PATH_SEP instead of a literal
3487         colon.
3488         (search_path::command_line_dir): Ditto.
3489         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
3490         to support non-Posix systems.
3492         * src/libc/libbib/search.cc: #include nonposix.h.
3493         (search_list::add_file): Open the file in binary mode.
3495         * src/libs/libbib/linear.cc: #include nonposix.h.
3496         (file_buffer::load): Remove \r characters preceding \n from the
3497         loaded buffer.
3499         * src/libs/libbib/index.cc: #include nonposix.h.
3500         (make_index_search_item): Open index_filename in O_BINARY mode.
3501         (index_search_item_iterator::get_tag): Ditto.  Remove \r
3502         characters before \n characters.
3503         (index_search_item::check_files): Open files in binary mode.
3504         (index_search_item::munge_filename): Support DOS-style file names
3505         with backslashes and drive letters, use IS_ABSOLUTE.
3507         * src/devices/grops/ps.cc: #include nonposix.h.
3508         (main) [SET_BINARY]: Switch stdout to binary mode.
3510         * src/devices/grolj4/lj4.cc: #include nonposix.h.
3511         (main) [SET_BINARY]: Switch stdout to binary mode.
3513         * src/devices/grolbp/lbp.cc: #include nonposix.h
3514         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
3516         * src/devices/grodvi/dvi.cc: #include nonposix.h.
3517         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
3518         nonposix.h).
3519         (main) [SET_BINARY]: Switch stdout to binary mode.
3520         [_MSC_VER]: Remove an explicit call to _setmode.
3522         * src/include/nonposix.h: New file.
3524         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
3525         operation when building with DJGPP.
3526         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
3527         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
3528         ENVSETUP.
3530         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
3531         MS-DOS.
3532         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
3533         etc. can include a semi-colon on DOS/Windows.
3534         (depend.temp): Use depend1.temp instead of depend.temp1, to
3535         prevent files from overerwiting each other on 8+3 filesystems.
3537         * gendef.sh (t): Change definition to work with DOS/Windows.
3539         doc/groff.texinfo: Apart of some typo corrections, I also changed
3540         some index entris, to make them more non-ambiguous, and also put
3541         @ignore around some parts that are not yet written, to allow the
3542         Info output be readable.
3544 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
3546         Replaced specific checks for function declarations with a generic
3547         routine taken from GNU bfd.
3549         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
3550         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
3551         * configure.in: Use it.
3552         * src/devices/grolbp/lbp.cc, src/include/lib.h,
3553         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
3554         src/roff/groff/groff.cc: Use it.
3555         * Makefile.in, configure: Updated.
3557 2000-06-07  Paco Andres Verdu  <pandres@dragonet.es>
3559         * src/devides/grolbp/lbp.h: Removed unused variables.
3561 2000-05-31  Keith Thompson  <kst@sdsc.edu>
3563         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
3564         strncasecmp().
3566 2000-05-31  Werner LEMBERG  <wl@gnu.org>
3568         * aclocal.m4 (GROFF_SRAND): New function to test the return value
3569         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
3570         * configure.in: Use it.
3571         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
3572         * configure, Makefile.in: Updated.
3574         * configure.in: Add test for strncasecmp().
3575         * src/include/lib.h: Use it.
3577 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
3579         * src/preproc/grn/Makefile.sub: Add MLIB.
3581 2000-05-29  Nix  <nix@esperi.demon.co.uk>
3583         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
3585 2000-05-29  Werner LEMBERG  <wl@gnu.org>
3587         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
3589         * PROBLEMS: Small update.
3591         * src/devices/grolbp/lbp.cc: Various small fixes.
3593 2000-05-28  Keith Thompson  <kst@sdsc.edu>
3595         * src/roff/nroff/nroff.sh: Fix main loop syntax.
3597         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
3599 2000-05-25  Werner LEMBERG  <wl@gnu.org>
3601         * man/roff.man: Removed unused macro.
3603 2000-05-24  Werner LEMBERG  <wl@gnu.org>
3605         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
3606         This is needed e.g. if you do
3607         `make distclean; ./configure; make dist'.
3609 Version 1.16 released
3610 =====================
3612 2000-05-23  Werner LEMBERG  <wl@gnu.org>
3614         Adding font CWI (constant width italic) to devdvi.
3616         * font/devdvi/CWI: New file.
3617         * font/devdvi/generate/Makefile: Add generating rule.
3618         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
3619         tmac/tmac.dvi: Use it.
3620         * NEWS: Announce it.
3622         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
3623         * font/devlj4/generate/Makefile: Cosmetic changes only.
3625         * man/groff.man: Removed most of the redundant description of
3626         special characters (which is in groff_char.man).  Added font
3627         translation CB->CR for devdvi.  Other minor fixes.
3629         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
3630         (registered) symbols.
3632 2000-05-22  Werner LEMBERG  <wl@gnu.org>
3634         * doc/Makefile: Added rule for creating info files.
3636         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
3637         AMS font metrics.
3638         * font/devdvi/generate/Makefile: Fixed dependencies.
3640         * font/devps/*: Regenerated.  Heavy changes for Bookman and
3641         NewCentury Schoolbook!
3642         * font/devps/generate/afmname: Will now run with GNU awk.
3643         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
3644         * font/devps/generate/Makefile: Cosmetic changes only.
3646 2000-05-21  Werner LEMBERG  <wl@gnu.org>
3648         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
3649         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
3650         `.SS' now produces a heading with a smaller size than `.SH'. 
3651         Completely formatted.
3652         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
3654         * man/groff.man: Improved table appearance.  Use of `eo' request
3655         to reduce number of doubled backslashes in macro definitions.
3656         Replacing `\e' with `\(rs'.  Other minor fixes.
3658         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
3659         to have correct line number.
3661         * INSTALL: Small improvement.
3663 2000-05-20  Bernd Warken  <bwarken@mayn.de>
3665         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
3666         WL).
3668 2000-05-19  Bernd Warken  <bwarken@mayn.de>
3670         * man/groff.man: Complete update (with a lot of corrections by WL).
3672 2000-05-18  Werner LEMBERG  <wl@gnu.org>
3674         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
3676         * font/*/*: Implement it.
3677         * man/groff_char.man, NEWS: Document it.
3679         * src/include/unix.h: Removed.  It isn't used.
3681         * doc/groff.texinfo: Slight improvements.
3683 2000-05-17  Werner LEMBERG  <wl@gnu.org>
3685         * README, win32-diffs: Small fixes and improvements.
3687 2000-05-16  Werner LEMBERG  <wl@gnu.org>
3689         * FDL: New file (the Free Documentation License version 1.1).
3691         * doc/groff.texinfo: Added many start-up values for gtroff.
3692         Some structural improvements of the source code.
3694 2000-05-15  Werner LEMBERG  <wl@gnu.org>
3696         * src/roff/troff/input.cc: Added small comment about troffrc-end.
3697         * src/roff/troff/troff.man: Added info about troffrc-end.
3699 2000-05-14  Werner LEMBERG  <wl@gnu.org>
3701         * Makefile.in (EXTRADIRS): Fix typos.
3702         (dist): Handle deletion of old .tar.gz file correctly.
3703         (DISTDIRS): Include all tty output devices.
3705         * doc/groff.texinfo: Adding more cross references; countless other
3706         fixes.
3708 2000-05-13  Werner LEMBERG  <wl@gnu.org>
3710         * MORE.STUFF: Added Robert Marks's utilities.
3712 2000-05-12  Werner LEMBERG  <wl@gnu.org>
3714         Added win32 port contributed by Blake McBride
3715         <blake@florida-software.com>.
3717         * README.WIN32, win32-diffs: New files.
3718         * NEWS: Updated.
3720         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
3721         (tmove, tmove2): Added parentheses to avoid compiler warnings.
3722         (change): Removed unused variables.
3724         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
3725         (savebounds): Changed return value from `int' to `void'.
3726         * src/preproc/grn/hdb.cc: Ditto.
3728         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
3729         final backslash in comment to avoid compiler warning.
3731         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
3733         * doc/groff.texinfo: More fixes.
3735 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
3737         * tmac/tmac.doc: Documentation fix.
3739 2000-05-11  Werner LEMBERG  <wl@gnu.org>
3741         * doc/groff.texinfo: Reading the source code shows up a lot of
3742         omissions and incorrect data...  More conversion to @Deffn macros.
3744 2000-05-10  Werner LEMBERG  <wl@gnu.org>
3746         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
3747         dependency.
3749         * src/roff/troff/request.h: Removing unused `no_break_flag'.
3751 2000-05-09  Werner LEMBERG  <wl@gnu.org>
3753         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
3754         improvements.
3756         * doc/groff.texinfo: Extended history section.  More conversion to
3757         @Deffn macros.  More .tr documentation.
3759 2000-05-07  Werner LEMBERG  <wl@gnu.org>
3761         * doc/groff.texinfo: Completed tab section.  Added info about
3762         fields.
3764 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
3766         * PROBLEMS: Describe configure script fix for OS/390 Unix.
3768 2000-05-05  Werner LEMBERG  <wl@gnu.org>
3770         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
3771         LaTeX 2e).
3772         * NEWS: Document it.
3774         * man/troff.man: Minor optical improvements.
3776 2000-05-03  Werner LEMBERG  <wl@gnu.org>
3778         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
3780         * font/*/*: Implement it.
3781         * man/groff_char.man, NEWS: Document it.
3783 2000-05-02  Werner LEMBERG  <wl@gnu.org>
3785         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
3786         expansion.
3787         * NEWS: Document the three new man pages.
3789         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
3790         * configure: Updated.
3792         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
3794 2000-05-01  Werner LEMBERG  <wl@gnu.org>
3796         Added grap support to grog.
3798         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
3799         * src/roff/grog/grog.man: Document it.
3801         * doc/groff.texinfo, NEWS: Add info about grap support.
3803         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
3804         (with slight fixes by me).
3806         * tmac/groff_tmac.man: New file documenting tmac mechanism.
3807         * tmac/Makefile.sub: Add groff_tmac.man.
3808         * man/roff.man: New file giving overview of roff system.
3809         * man/troff.man: A short reference of troff.
3810         * man/Makefile.sub: Add roff.man and troff.man.
3812 2000-04-30  Werner LEMBERG  <wl@gnu.org>
3814         Added grap support to groff.
3816         * src/roff/groff/groff.cc: Implement it.
3817         * src/roff/groff/groff.man: Document it.
3819         * src/devices/grotty/grotty.man: Add cp1047 device.
3820         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
3821         Ditto.
3822         * src/roff/groff/groff.man: Ditto.
3823         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
3824         * doc/groff.texinfo: Ditto.
3826         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
3827         for cp1047.
3829 2000-04-29  Werner LEMBERG  <wl@gnu.org>
3831         * man/groff_char.man: Add `pc' glyph.
3832         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
3833         * tmac/tmac.tty: Add `pc' glyph.
3834         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
3835         we use cp1047 output device.
3837         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
3838         there are still hardcoded latin1->unicode values in utf8's font
3839         definition files.
3840         * configure: Updated.
3841         * NEWS: Minor clarification.  Updated.
3843         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
3844         Unix.
3846 2000-04-28  Werner LEMBERG  <wl@gnu.org>
3848         Adding EBCDIC code page 1047.
3850         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
3851         font/devcp1047/DESC.proto: New files.
3853         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
3854         either ascii/latin1 or cp1047.
3855         * Makefile.in: Use it.
3856         * configure: Updated.
3858         Replacing and/or adding `md' (mathdot) glyph with `pc'
3859         (periodcentered) in all text fonts.
3861         * font/*/*: Change it.
3863 2000-04-27  Werner LEMBERG  <wl@gnu.org>
3865         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
3867         * configure.in: Add check for strings.h.
3868         * src/include/driver.h: Use HAVE_STRINGS_H.
3869         * src/devices/grolbp/lpb.cc: Remove string.h.
3871         * src/include/groff-getopt.h: New file.  It will be used instead of
3872         getopt.h (to be included in lib.h) to avoid endless problems with
3873         picky C++ compilers.
3874         * src/include/lib.h: Use groff-getopt.h.
3875         * src/include/Makefile.sub: Updated.
3877         * configure: Updated.
3878         * Makefile.in: Updated.
3880         * NEWS: Mention EBCDIC support.
3882 2000-04-26  Werner LEMBERG  <wl@gnu.org>
3884         * TODO: Some additions.
3886 2000-04-25  Werner LEMBERG  <wl@gnu.org>
3888         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
3889         of mso request.
3891 2000-04-23  Werner LEMBERG  <wl@gnu.org>
3893         * src/roff/troff/troff.man: Minor fixes.
3895 2000-04-22  Werner LEMBERG  <wl@gnu.org>
3897         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
3898         `.T' string register and the incompatible definition of the `.T'
3899         number register (compared to Unix troff).
3901         * man/groff_char.man: Add some missing characters.
3902         * font/devutf8/NOTES: Update.
3904 2000-04-21  Werner LEMBERG  <wl@gnu.org>
3906         * src/include/htmlindicate.h, src/include/lib.h,
3907         src/include/posix.h: Fix copyright.
3909         * src/include/Makefile.sub: Update.
3911 2000-04-20  Werner LEMBERG  <wl@gnu.org>
3913         * src/roff/troff/input.cc (input_char_description): Removing
3914         superfluous space char.
3916         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
3918         * doc/groff.texinfo: Document EBCDIC.
3920 2000-04-19  Werner LEMBERG  <wl@gnu.org>
3922         Introducing `shc' as the glyph name for the soft hyphen character.
3924         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
3925         font/devlatin1/R.proto: Use it.
3927         * NEWS: Updated.
3929 2000-04-18  Werner LEMBERG  <wl@gnu.org>
3931         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
3932         dependency on ASCII order.
3934 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
3936         * src/libs/libgroff/illegal.c: Added EBCDIC table.
3937         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
3939         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
3940         to increase portability.
3942 2000-04-15  Werner LEMBERG  <wl@gnu.org>
3944         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
3945         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
3946         the generic `\n' if under OS/390 Unix.
3948         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
3950         * configure: Regenerated.
3952 2000-04-14  Werner LEMBERG  <wl@gnu.org>
3954         * doc/groff.texinfo: More conversions to @Deffn.
3956 2000-04-12  Werner LEMBERG  <wl@gnu.org>
3958         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
3959         with `:'.
3961         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
3963 2000-04-10  Werner LEMBERG  <wl@gnu.org>
3965         * doc/groff.texinfo: More conversions to @Deffn.
3967 2000-04-08  Werner LEMBERG  <wl@gnu.org>
3969         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
3970         Updated to latest version (glibc 2.1.3).
3972 2000-04-07  Werner LEMBERG  <wl@gnu.org>
3974         * doc/Makefile (clean): Include more index files.
3975         Add rule texinfo->dvi.
3977 2000-04-05  Werner LEMBERG  <wl@gnu.org>
3979         * doc/groff.texinfo: Added new index `op' for operators.  More
3980         info on end of sentence characters.  More use of @Deffn.
3982 2000-03-30  Werner LEMBERG  <wl@gnu.org>
3984         * */*.man: Adding a note that a whitespace can be inserted between
3985         a command line option and its parameter -- we are using GNU getopt.
3987         * src/roff/groff/groff.man: Add example of `-m mandoc'.
3989 2000-03-28  Werner LEMBERG  <wl@gnu.org>
3991         Correct anachronism of calling the man macro file with `-man'
3992         instead of `-m man' etc.
3994         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
3995         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
3996         load tmac.<package>.
3998         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
4000         * NEWS: Updated.
4002         * doc/groff.texinfo: Updated.
4004         * tmac/groff_man.man: Copyright added.
4006 2000-03-27  Werner LEMBERG  <wl@gnu.org>
4008         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
4009         typeset the request resp. escape name with a tt font -- due to a
4010         bug in texinfo.tex it is necessary to use the `-e' switch with
4011         texi2dvi.
4013         Improving info about usage of groff units.
4015         Other minor fixes.
4017 2000-03-20  Werner LEMBERG  <wl@gnu.org>
4019         * doc/groff.texinfo: Added section about man macro package
4020         (I've basically taken groff_man.man).  Introducing new indices `ma'
4021         for macros/strings and `gl' for glyph names.  Other minor fixes.
4023         * tmac/groff_man.man: Fixed some typos.
4025 2000-03-19  Werner LEMBERG  <wl@gnu.org>
4027         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
4028         Other minor fixes.
4030         * doc/texinfo.tex: New file.
4032 2000-03-18  Werner LEMBERG  <wl@gnu.org>
4034         * doc/groff.texinfo: Improved section on number registers.  Other
4035         minor updates.
4037 2000-03-16  Werner LEMBERG  <wl@gnu.org>
4039         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
4040         synopsis.
4042         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
4043         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
4044         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
4045         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
4047         * src/preproc/grn/grn.man: Better synopsis; added copyright.
4049         * src/roff/grog/grog.man: Updated copyright date.
4051 2000-03-14  Francisco Andres Verdu  <pandres@dragonet.es>
4053         * configure.in: Added test for strdup.
4055         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
4056         is available.
4058         Replaced dynamic allocation of arrays `[...]' with `new' operator.
4060         Other minor fixes.
4062 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
4064         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
4066 2000-03-11  Werner LEMBERG  <wl@gnu.org>
4068         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
4069         compilers silent.
4070         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
4071         * src/include/lib.h: Remove some spaces.
4073 2000-03-10  Werner LEMBERG  <wl@gnu.org>
4075         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
4076         initializers from arguments (some compilers don't like this).
4078 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
4080         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
4081         used by pic and eqn to tell grohtml where the graphic regions start
4082         and end.
4083         * src/libs/libgroff/Makefile.sub: Use it.
4084         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
4085         graphic_start() and graphic_end() from htmlindicate.cc.
4087 2000-03-09  Werner LEMBERG  <wl@gnu.org>
4089         * tmac/tmac.safer: Will now work correctly in compatibility mode.
4090         * tmac/groff_man.man: More fixes.
4092 2000-03-08  Werner LEMBERG  <wl@gnu.org>
4094         * doc/Makefile: Added texput.log to the `clean' target.
4095         * doc/groff.texinfo: Added info about delimiters for escapes.
4097 2000-03-08  Bernd Warken  <bwarken@mayn.de>
4099         * src/preproc/pic/pic.man: Add info on conversion of pic images to
4100         other graphic formats.
4102 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
4104         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
4105         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
4106         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
4107         files.
4109 2000-03-07  Werner LEMBERG  <wl@gnu.org>
4111         * doc/groff.texinfo: Spelling fixes.
4113 2000-03-06  Werner LEMBERG  <wl@gnu.org>
4115         * tmac/groff_man.man: Completely revised to cover everything in
4116         tmac.an.
4118         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
4119         Other minor fixings.
4120         * src/roff/troff/env.cc (environment_copy): Improve error message and
4121         fix itoa->i_to_a.
4122         * src/roff/troff/TODO: Updated.
4124         * doc/Makefile: Bug fixes -- this is still provisional, though...
4126         * tmac/eqnrc: Small fixes.
4128 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
4130         Adding a request `evc' to copy environments.
4132         * src/roff/troff/env.cc (environment::copy, environment_copy):
4133         Implement it.
4134         * src/roff/troff/env.h: Add prototype.
4136 2000-03-05  Francisco Andres Verdu  <pandres@dragonet.es>
4138         Adding strsep() -- Solaris 8 doesn't have it.
4140         * configure.in: Test it.
4141         * src/devices/grolbp/lbp.cc: Add code.
4143 2000-03-05  Werner LEMBERG  <wl@gnu.org>
4145         * src/roff/troff/div.cc (macro_diversion::output,
4146         top_level_diversion::output): Fixing an incompatibility with
4147         original troff: \x'0' updates the .a register also.  Thanks to
4148         <Andries.Brouwer@cwi.nl> for pointing this out.
4149         * doc/groff.texinfo: Document it.
4151         * Makefile.in: Create Makefile.dep if necessary before calling the
4152         submake process to avoid warning about nonexistent file.
4154         * NEWS, PROJECTS: Updated.
4156 2000-03-04  Werner LEMBERG  <wl@gnu.org>
4158         * tmac/troffrc: Add tmac.lbp.
4160 2000-03-03  Francisco Andres Verdu  <pandres@dragonet.es>
4162         * tmac/tmac.lbp: New file.
4163         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
4164         command.
4166 2000-03-03  Werner LEMBERG  <wl@gnu.org>
4168         * Makefile.in: Fixing $(subdir).
4170         * README, NEWS: Small fixes.
4172         * test-groff: Adding path to grolbp.
4174         * configure.in: The (new) file src/xditview/Imakefile.in will be
4175         also configured -- it is now possible to build gxditview in a
4176         directory different from $srcdir.
4178 2000-03-02  Blake McBride  <blake@florida-software.com>
4180         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
4182         * MORE.STUFF: Added website of bell labs and info about plot2dev.
4184 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
4186         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
4187         files.
4189 2000-02-29  Werner LEMBERG  <wl@gnu.org>
4191         Adding GNU getopt to the groff distribution.
4193         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
4194         New files.
4195         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
4196         * aclocal.a4: Remove GROFF_GETOPT function.
4197         * configure.in, Makefile.in, PROBLEMS: Update.
4198         * src/include/lib.h: Replace getopt tests with getopt.h.
4199         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
4201         * doc/groff.texinfo: Further checking/updating.  Adding more index
4202         entries.
4204         * man/groff_out.man: Fix nroff mode activation (for emacs).
4205         * man/groff_font.man: Add missing ligature.
4207 2000-02-28  Werner LEMBERG  <wl@gnu.org>
4209         * doc/groff.texinfo: Further checking/updating.  Adding more index
4210         entries.
4212         * src/devices/grolbp/grolbp.man: Added a comment line at the
4213         beginning of the file (similar to shell scripts) which indicates
4214         that `tbl' should be used as a preprocessor.
4216 2000-02-27  Blake McBride  <blake@florida-software.com>
4218         Adapting groff to MS Visual C++ 6.0 compiler (tested with
4219         Windows NT 4.0).  Uses _MSC_VER define where necessary.
4221         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
4222         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
4223         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
4224         src/include/lib.h, src/libs/libgroff/errarg.cc,
4225         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
4226         src/preproc/refer/label.y, src/preproc/refer/label.cc,
4227         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
4228         src/roff/troff/div.cc, src/roff/troff/env.cc,
4229         src/roff/troff/input.cc, src/roff/troff/node.cc,
4230         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
4231         if_to_a() to avoid name clashes.
4232         * src/include/posix.h: Don't use unistd.h.
4233         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
4234         clause for integrating non-Unix xtmpfile() code.
4235         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
4236         structure; use "rt" for popen() in pipe_source(); add getpid()
4237         dummy function.
4238         * src/roff/troff/node.cc: Use special versions of popen() in
4239         real_output_file() and pclose() in ~real_output_file().
4241 2000-02-27  Werner LEMBERG  <wl@gnu.org>
4243         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
4244         LBP-8 series laser printers).  This code has been contributed by
4245         Francisco Andres Verdu <pandres@dragonet.es>.
4247         * src/devices/grolbp/*: The grolbp output device.
4248         * font/devlpb/*: The font description files.
4249         * Makefile.in: Add grolpb and devlbp subdirectories.
4251         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
4252         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
4253         typographic fixes.
4255         * doc/groff.texinfo: Further checking/updating.  Adding more index
4256         entries.
4258         * NEWS: Updated.
4260         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
4262         * man/groff_font.man: Adding info about obsolete DESC keywords.
4263         * src/devices/grolj4/grolj4.man: Documenting additional DESC
4264         keywords.
4266 2000-02-26  Werner LEMBERG  <wl@gnu.org>
4268         * src/preproc/grn/grn.man: Added info about the gremlin file format
4269         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
4271 2000-02-25  Werner LEMBERG  <wl@gnu.org>
4273         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
4274         friends to be non-integer.
4276         * src/preproc/grn/grn.man: Document it.
4278         * doc/groff.texinfo: Further checking/updating.  Adding more index
4279         entries.
4281 2000-02-24  Werner LEMBERG  <wl@gnu.org>
4283         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
4284         line thicknesses to be integer multiples of this value.
4286         * src/preproc/grn/grn.man: Commenting out the -s option -- the
4287         corresponding code doesn't work (yet).
4289         * doc/groff.texinfo: Further checking/updating.  Adding more index
4290         entries.
4292 2000-02-23  Werner LEMBERG  <wl@gnu.org>
4294         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
4295         specify line thickness instead of base units.  The new default
4296         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
4297         thick lines respectively.
4299         Removed unused variable `prevval'.
4301         * src/preproc/grn/grn.man: Updated.
4303 2000-02-22  Werner LEMBERG  <wl@gnu.org>
4305         * src/preproc/grn/main.cc: Slight formatting.
4307         * src/roff/groff/groff.man: Formatting fix.
4308         * src/preproc/grn/grn.man: Ditto.
4310         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
4312         * doc/groff.texinfo: Further checking/updating.
4314 2000-02-21  Werner LEMBERG  <wl@gnu.org>
4316         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
4318         * test-groff: Added grn subdir to path.
4320         * doc/groff.texinfo: Some restructing and other small improvements.
4322         * src/roff/groff/groff.cc (help): Fixed info string.
4324 2000-02-20  Werner LEMBERG  <wl@gnu.org>
4326         * doc/meref.me: Fix description of .GS request.
4328         * src/roff/troff/troff.man: Fixing typo.
4330         Adding the `grn' preprocessor for gremlin graphic files.
4332         * src/preproc/grn/*: This is the Berkeley distribution written by
4333         David Slattengren and Barry Roitblat, adapted to groff by Daniel
4334         Senderowicz and Werner Lemberg.
4336         * doc/grnexampl.{me,g}: A sample for grn.
4338         * Makefile.in: Added subdirectory entry for grn.
4340         * src/roff/groff/groff.cc: Added support for grn.  It can be now
4341         called with the switch `-g'.
4343         * src/roff/groff/groff.man: Updated.
4345         * src/roff/grog/grog.{man,pl,sh}: Updated.
4347         * NEWS: Updated.
4349 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
4351         * src/include/lib.h: Added xtmptemplate and made xtmpfile
4352         parametrically polymorphic.
4354         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
4355         and the alterations to xtmpfile.
4356         xtmpfile can be requested to return the filename created
4357         and asked not to unlink the temp file.  The default behaviour
4358         if parameters are absent is exactly the same as before.
4360 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
4362         A new request `length' is available which returns the length of a
4363         string in a number register:
4365         * src/roff/troff/input.cc (length_macro): Implement it.
4366         * src/roff/troff/input.cc (init_input_requests): Register it.
4368 2000-02-11  Werner LEMBERG  <wl@gnu.org>
4370         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
4371         of the `substring' request.
4373         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
4374         request.
4376         * src/roff/troff/TODO, NEWS: Updated.
4378 2000-02-09  Werner LEMBERG  <wl@gnu.org>
4380         * src/roff/groff/groff.man: Added an example.
4382 2000-02-06  Werner LEMBERG  <wl@gnu.org>
4384         I've considerably modified the directory structure of the
4385         distribution to get a more vertical layout.  For example, the number
4386         of top level directories has been reduced from 42 to 6.
4388         As a consequence, many changes, especially to the makefiles, were
4389         necessary:
4391         * The makefile variables `top_builddir' and `top_srcdir' have been
4392         introduced.  Virtually all relative paths have been replaced with
4393         absolute ones using these two variables.
4395         * Dependencies (in the files `Makefile.dep') are no longer part of
4396         the distribution.  Instead, they are created during a `make install'
4397         in the build directory.
4399         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
4400         make `top_srcdir' and `top_builddir' absolute.
4402         Some other changes:
4404         * Man pages no depend on the files `VERSION' and `REVISION'.
4406         * The added shell script `mkinstalldirs' will replace `mkdir' in
4407         almost all cases.
4409         * VERSION: Version number increased to 1.16.
4411 2000-02-04  Werner LEMBERG  <wl@gnu.org>
4413         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
4415         * Makefile.in: Removed $(tmac_m) since it is no longer needed
4416         (after an update of the mm stuff).
4418         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
4420 2000-02-03  Werner LEMBERG  <wl@gnu.org>
4422         The .psbb request will now also accept Mac PS images (i.e. using LF
4423         as the EOL character).
4425         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
4426         (with slight modifications).
4427         * troff/input.cc (do_ps_file): Use it.
4429         * test-groff: Add grohtml and grolj4 output devices to PATH.
4431 2000-01-30  Werner LEMBERG  <wl@gnu.org>
4433         * NEWS, MORE.STUFF: Updated.
4435 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
4437         Add the `srand' command to pic.
4439         * pic/lex.cc, pic/pic.y: Implement it.
4440         * pic/pic.man: Document it.
4441         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
4443 2000-01-30  Werner LEMBERG  <wl@gnu.org>
4445         Add a new request `.psbb'.  This does exactly what the external
4446         program psbb did.  It scans a PostScript image file for a
4447         %%BoundingBox comment and extracts the bounding box values (in
4448         PostScript units) which are then stored in the four new (read-only)
4449         number registers `llx', `lly', `urx', and `ury'.
4451         This will allow the usage of the .PSPIC macro without worrying
4452         about unsafe behaviour of groff, i.e., it will work without the
4453         `-U' switch of groff.
4455         * troff/input.cc: Implement it.
4456         * tmac/tmac.pspic: Use it.
4457         * troff/troff.man, grops/grops.man, NEWS: Document it.
4458         * psbb/*, Makefile.in: Remove it since it is no longer needed.
4460         This is bloody C code simply adapted from psbb.c!  Any improvements
4461         welcome.
4463 2000-01-29  Werner LEMBERG  <wl@gnu.org>
4465         * man/groff_font.man: Minor clarifications.
4467         * NEWS: Updated.
4469 2000-01-28  Werner LEMBERG  <wl@gnu.org>
4471         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
4473 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
4475         * man/groff_font.man: Brought up to date regarding tcommand
4476         extensions.
4477         * libgroff/font.cc: Handle everything after `--' as a comment
4478         in the font files.
4479         * devps/*: Added comment delimiter inside devps font files.
4481 2000-01-28  Werner LEMBERG  <wl@gnu.org>
4483         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
4484         \fC...\fP (which now works as expected).
4486         * troff/troff.man: Fix typo.
4488 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
4490         Completed the pass_filenames implementation in troff.
4492         * libdriver/input.cc: Will read the new `F' tcommand.
4493         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
4494         * troff/input.cc: Use it.
4496 2000-01-26  Werner LEMBERG  <wl@gnu.org>
4498         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
4499         font will now be updated even if an invalid font is selected.
4501 2000-01-24  Werner LEMBERG  <wl@gnu.org>
4503         * doc/homepage.ms: Updated for new tmac.arkup.
4505         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
4507         * tmac/tmac.arkup: Cleanup.
4509         Added `\&' to .HTML macro to `leave vertical mode', so to say.
4511         Removed obsolete .LINK macro completely.
4513         The macros .URL, .FTP, and .MAILTO now accept a third argument which
4514         will be immediately appended to the second argument (to be used with
4515         punctuation, for example).
4517         Disabled .CDFTP macro temporarily for security reasons.
4519         * tmac/groff_markup.man: Complete revision for latest changes in
4520         tmac.arkup -- note that it does not yet format correctly with
4521         grohtml :-(
4523 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
4525         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
4526         * devutf8/R.proto: Add mappings for wp, lh, rh.
4527         * devutf8/NOTES: Updated.
4529 2000-01-23  Werner LEMBERG  <wl@gnu.org>
4531         * doc/groff.texinfo: Updated version/copyright info.
4533 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
4535         Added support for two new directives in device descriptions:
4536         `pass_filenames' (to pass the input file name to the output device)
4537         and `use_charnames_in_special' (to support e.g. accented characters
4538         in the `X' request).
4540         * include/font.h, troff/charinfo.h: Declare it.
4542         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
4544         * devhtml/DESC: Use it.
4546         * troff/input.cc: New function encoded_char.
4548         * troff/token.h: Add test for `specialness'.
4550 2000-01-21  Werner LEMBERG  <wl@gnu.org>
4552         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
4553         mistake from the list of files to be installed.
4555 2000-01-18  Werner LEMBERG  <wl@gnu.org>
4557         * README: Added info how to apply patches.
4559 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
4561         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
4563 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
4565         * troff/input.cc: Add support for troffrc-end.
4567         * tbl/main.cc: Altered to issue table-start and table-end special
4568         characters if using the html device.
4570         * devhtml/*: Modified font files to incorporate html encoding of
4571         characters.
4573         * tmac/groff_markup.man: New file documenting tmac.arkup.
4575         * tmac/troffrc-end: New file.  This is invoked after all user
4576         specified macros.  Currently used by the html device to include
4577         tmac.html.  Thus no need for users to specify -mhtml anymore.
4579         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
4580         (MAN7): Add groff_markup.man.
4582         * tmac/tmac.an, tmac/tmac.html: Small html updates.
4584         * tmac/troffrc: tmac.arkup will now be called for the html device.
4586         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
4587         extra device specific information about fonts.
4589         * doc/homepage.ms: New file.  It is an example how an HTML home page
4590         could look like with grohtml.
4592         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
4594 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
4596         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
4597         of Im, Re.
4599         * devutf8/NOTES: Updated.
4601 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
4603         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
4604         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
4605         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
4606         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
4607         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
4608         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
4609         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
4610         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
4611         warnings.
4613         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
4615 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
4617         grolj4: Paper size will be searched case-insensitively.
4619         * include/lib.h: Add check for strcasecmp().
4620         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
4621         * configure.in: Check for strcasecmp().
4623 2000-01-11  Werner LEMBERG  <wl@gnu.org>
4625         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
4626         `REVISION'.
4628 2000-01-10  Werner LEMBERG  <wl@gnu.org>
4630         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
4631         revision scheme.
4633         Add a new read-only register, `.Y', which contains the groff
4634         revision.
4636         * troff/input.cc (init_input_requests): Define it.
4637         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
4638         * doc/groff.texinfo, troff/troff.man: Document it.
4640         * libgroff/Makefile.sub (version.cc): Add definition of
4641         `Version_string[]', consisting of `<major>.<minor>.<revision>'
4642         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
4643         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
4644         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
4645         troff/input.cc, pfbtops/pfbtops.c: Use it.
4647 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
4649         Add a revision scheme to the groff package.
4651         * REVISION: New file.
4652         * libgroff/Makefile.sub (version.cc): Use it to define
4653         `revision_string[]'.
4654         * grops/psrm.cc: Use revision_string (converted to an unsigned
4655         integer) in constructor of resource_manager.
4657 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
4659         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
4660         files.
4661         * Makefile.in (DEVDIRS): Add devutf8.
4662         * grotty/tty.cc: Include device.h.
4663         (glyph): Change type of `code' to `unsigned int'.
4664         (tty_printer): New field is_utf8.  Constructor takes device argument.
4665         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
4666         (tty_printer::add_char): Change type of first arg to `unsigned int'.
4667         (tty_printer::put_char): New function.
4668         (tty_printer::end_page): Use put_char() instead of ::putchar().
4669         (make_printer): Pass device to tty_printer constructor.
4670         * nroff.sh: Determine default device by calling 'locale'.  As a
4671         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
4672         Recognize UTF-8 locales.
4673         * tmac/eqnrc: Recognize utf8 like latin1.
4674         * tmac/troffrc: Device utf8 needs tmac.tty.
4676 2000-01-07  Werner LEMBERG  <wl@gnu.org>
4678         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
4680 2000-01-07  Paul Eggert  <eggert@twinsun.com>
4682         Add a new predefined writeable number register, `year',
4683         which contains the current year.
4685         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
4686         * tmac/tmac.s: Use it.
4687         * troff/input.cc (init_registers): Initialize it.
4689 2000-01-06  Werner LEMBERG  <wl@gnu.org>
4691         * PROBLEMS: Fixed typo.
4693 2000-01-04  Paul Eggert  <eggert@twinsun.com>
4695         * PROBLEMS: Add Y2k advice for the yr number register.
4697 2000-01-03  Paul Eggert  <eggert@twinsun.com>
4699         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
4701 2000-01-02  Werner LEMBERG  <wl@gnu.org>
4703         * tmac/tmac.arkup: Slight modification of macros to provide better
4704         appearance for non-HTML formats.
4706 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
4708         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
4709         does not automatically translate to malloc(n) on all OSes
4710         (e.g., SunOS) so do it explicitly.  Also, check the returned
4711         value.
4713 2000-01-01  Werner LEMBERG  <wl@gnu.org>
4715         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
4717         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
4718         expects this variable
4720 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
4722         * doc/Makefile: Added instructions to create HTML and text
4723         versions of some files.
4725 1999-12-31  Werner LEMBERG  <wl@gnu.org>
4727         * Updated INSTALL.gen.
4729         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
4730         better resp. correctly with non-HTML devices.
4732 Version 1.15 released
4733 =====================
4735 1999-12-28  Werner LEMBERG  <wl@gnu.org>
4737         * NEWS, VERSION: Changed to 1.15
4739 1999-12-27  Paul Eggert  <eggert@twinsun.com>
4741         * nroff/nroff.man: -S is safer, not safe.
4743         * groff/groff.cc (main): Use `safer', not `safe', in variable
4744         names.  This does not change the behavior.
4746         * troff/input.cc (main): Likewise.
4748         * nroff/nroff.sh: Likewise.
4750         * troff/input.cc (prepend_string): New function.
4751         (main): Prepend -msafer, so that we check macro libraries for
4752         safety.
4754         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
4756 Version 1.14 released
4757 =====================
4759 1999-12-26  Werner LEMBERG  <wl@gnu.org>
4761         * NEWS, VERSION: Changed to 1.14.
4763 1999-12-24  Werner LEMBERG  <wl@gnu.org>
4765         * refer/refer.cc: Fixing the last fix.
4767 Version 1.13 released
4768 =====================
4770 1999-12-23  Werner LEMBERG  <wl@gnu.org>
4772         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
4773         number disappear.
4775         * NEWS: Updated.
4777         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
4779         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
4780         document conventions, the version number must be a real.
4782 Version 1.12.1 released
4783 =======================
4785 1999-12-22  Werner LEMBERG  <wl@gnu.org>
4787         * VERSION: Changed to 1.12.1.
4789 1999-12-22  Alan Rooks  <arooks@istar.ca>
4791         * refer/refer.cc (do_file): Slight modification to satisfy the
4792         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
4793         UnixWare 7.1.
4795 1999-12-20  Werner LEMBERG  <wl@gnu.org>
4797         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
4798         notices.
4800         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
4801         list of unsafe requests.
4803         * pic/pic.man: Fixed a typo.
4805         * man/groff_out.man: Fixed a typo.
4807 1999-12-18  Werner LEMBERG  <wl@gnu.org>
4809         * Makefile.in: Doc fixes.
4811 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
4813         * groff/groff.cc: Missing `U' option added to getopt().
4815         * troff/troff.man: Missing `U' option added to synopsis.
4817 Version 1.12 released
4818 =====================
4820 1999-12-14  Werner LEMBERG  <wl@gnu.org>
4822         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
4823         to the synopsis.
4825         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
4826         with the more appropriate terms `safer' and `unsafe'.
4828         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
4829         sys_nerr and sys_errlist[].
4831         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
4833         * pic/pic.y, pic/pic.cc: Added check for fmod().
4835 1999-12-13  Werner LEMBERG  <wl@gnu.org>
4837         * VERSION: Changed to 1.12.
4839         Here some patches from various sources; most of them taken from
4840         the Debian distribution.
4842         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
4843         tmac/Makefile.sub: New files copied directly from the NetBSD
4844         distribution.  Probably, some additional adaptation later on is
4845         necessary...
4847         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
4848         of unsafe requests.
4850         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
4851         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
4852         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
4853         (`-S') is now the default.
4855         * README, NEWS: Updated.
4857 1999-12-09  Werner LEMBERG  <wl@gnu.org>
4859         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
4861         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
4863 1999-12-06  Werner LEMBERG  <wl@gnu.org>
4865         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
4866         grief than relief today.  Additionally, it is against the GNU
4867         coding standards.
4869         * configure: Recreated.
4871 1999-12-05  Werner LEMBERG  <wl@gnu.org>
4873         * configure.in: Added GROFF_LIBM.
4875         * configure: Recreated.
4877         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
4878         necessary.
4880         * Makefile.in: Added definition of $(LIBM).
4882         * Makefile.comm (LIBM): Removed.
4884         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
4886 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
4888         * doc/Makefile: Added rule for generation pic.html.
4890         (clean): Files produced by grohtml will be removed also.
4892         * doc/pic.ms: Small fix.
4894         * tmac/tmac.html: Fixed suppression of headers.
4896 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
4898         * tmac/tmac.html: Fixing horizontal arrows.
4900         Turning off hyphenation.
4902         * tmac/tmac.an: Improved support for grohtml; better indentation,
4903         no footers/headers.
4905 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
4907         * tmac/tmac.arkup: Added CDFTP macro
4909         * tmac/tmac.html: All headers are turned off for ms, me, and mm
4910         macros.
4912         * tmac/troffrc: Some additions for HTML stuff.
4914 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
4916         * tmac/tmac.html: Small changes.
4918 1999-09-26  Werner LEMBERG  <wl@gnu.org>
4920         * doc/groff.texinfo: Minor fixes.
4922 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
4924         * devhtml/TR: Changed spacewidth to 3.
4926         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
4928         * tmac/tmac.html: Moved markup macros to tmap.arkup.
4930         * tmac/tmac.arkup: New file.
4932         * grohtml/ChangeLog: New file.
4934 1999-09-16  Werner LEMBERG  <wl@gnu.org>
4936         * doc/groff.texinfo (Common Features): Added Copying chapter.
4937         Changed format to @smallbook.
4939 1999-09-15  Werner LEMBERG  <wl@gnu.org>
4941         * NEWS: Added info about groff.texinfo.
4943         * doc/groff.texinfo: Will now compile (using texi2dvi) without
4944         warning messages.
4946 1999-09-14  Werner LEMBERG  <wl@gnu.org>
4948         * groff/groff.man: More updates.
4950 1999-09-13  Werner LEMBERG  <wl@gnu.org>
4952         * doc/groff.texinfo: New file.  This manual is still very
4953         rudimentary.  It has been originally contributed by Trent
4954         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
4955         additions by me.
4957         * INSTALL: Added information about the `doc' subdir
4959         * troff/troff.man: Minor fixes.
4961         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
4962         reordered options.
4964         * troff/input.cc (usage): Added missing `-ffam' to usage message.
4966         * Makefile.in (dist): groff-$(version).tar.gz must be removed
4967         also, otherwise it is included itself in another call of `make
4968         dist'.
4970         * groff/groff.cc (synopsis): Removed superfluous space.
4972         * PROJECTS, PROBLEMS, NEWS: Updated.
4974         * VERSION: Updated to 1.12beta.
4976         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
4978         * README: Updated: Included documentation about CVS repository,
4979         mailing lists, and daily snapshots.
4981         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
4983 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
4985         * tmac/tmac.an: If the tag didn't fit into the space that the
4986         macro `TP' specifies, the rest of the tag went into the space for
4987         the next line.
4989 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
4991         * grolj4/lj4.cc: Added duplex printing (option `-d').
4993         * grolj4/grolj4.man: Document duplex printing.
4995 1999-09-12  Werner LEMBERG  <wl@gnu.org>
4997         * doc/Makefile (pic.ps): Fixed rule which caused problems with
4998         non-GNUish sed programs.
5000         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
5001         definition.
5003         * configure.in (LIBS): Added `-lc'
5005         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
5007         * pic/tex.cc (solid_arc): Casting M_PI to double.
5009         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
5011         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
5012         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
5013         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
5015         * groff/groff_man.man: New file.  This manual page was originally
5016         written for the Debian GNU/Linux system by Susan G. Kleinmann
5017         <sgk@debian.org>.
5019         * eqn/list.cc (list_box::compute_metrics,
5020         list_box::compute_sublist_width): Removed variable declaration to
5021         avoid shadowing warnings.
5023         * grops/psrm.cc (resource_manager::process_file): Ditto.
5025         * tfmtodit/tfmtodit.cc (main): Ditto.
5027         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
5028         to avoid shadowing warnings.
5030         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
5031         shadowing loop variable.
5033         * groff/groff.man, troff/troff.man: Added doc about grohtml.
5035 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
5037         New grohtml frontend to convert groff input to html.
5039         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
5041         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
5043         * tmac/eqnrc: Added html device.
5045         * tmac/tmac.html: New file.
5047         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
5048         (troff_output::start_picture, troff_output::finish_picture),
5049         tbl/main.cc (process_input_file):
5050         Surrounded output with `graphics_start' and `graphics_end' so that
5051         the html driver can identify non-text portions.
5053         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
5054         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
5055         grotty/tty.ps (tty_printer::set_char): Additional parameter
5056         `name'.
5058         * include/printer.h: Class printer: New function
5059         set_char_and_width; new variables (is_char_named, is_named_set,
5060         named_command, named_char_s, named_char_n) to hold information
5061         about named characters -- needed by the html driver.
5063         * libdriver/printer.cc (printer::set_ascii_char,
5064         printer::set_special_char): Use set_char_and_width.
5066         * devhtml/*: New device files for html driver.
5068         * grohtml/*: New driver grohtml.
5070 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
5072         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
5073         default strings.
5075 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
5077         * libgroff/string.cc (search): Small fix to test against NULL
5078         pointer.
5080 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
5082         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
5083         \b'abc') were stacked in reverse order when processed in a
5084         diversion.
5086         * troff/node.h: Added `*last' to struct `node' to make the above
5087         fix work.
5089         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
5090         The default scale for the 'f' and 't' graphics functions were 'm'
5091         rather than 'u' (i.e., no scaling).
5093 1999-09-11  Peter Miller  <peterm@jna.com.au>
5095         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
5096         do_file), soelim/soelim.man: Added `-I file' option to soelim,
5097         defining include paths.
5099         * soelim/soelim.cc (include_path_append): New function.
5101 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
5103         * tbl/main.cc (process_options): Unix (at least Documenter's
5104         Workbench) tbl allows arbitrary non-alpha characters between
5105         options.
5107 1999-09-11  Paul Eggert  <eggert@twinsun.com>
5109         Y2k fixes.  Don't assume that the current year precedes 2000.
5111         * doc/meref.me: Add \n(y2, \n(y4.
5113         * tmac/doc-common (Yr): New number register.
5114         (Dd): Don't assume current year precedes 2000.
5116         * tmac/tmac.e (td): Likewise.
5117         (y2, y4): New number registers.
5119         * pic/pic.man: Update reference for pic paper to May, 1991
5120         version.
5122 1999-09-11  Werner LEMBERG  <wl@gnu.org>
5124         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
5125         Removed quotation marks which prevented correct expansion of
5126         $(tmac_wrap).
5128         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
5130 1999-09-10  Werner LEMBERG  <wl@gnu.org>
5132         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
5133         `config.cache'.
5135         * Removed configure.old.
5137 1999-08-31  Werner LEMBERG  <wl@gnu.org>
5139         * VERSION: Updated to 1.11.1
5141 1999-05-27  Werner LEMBERG  <wl@gnu.org>
5143         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
5145         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
5146         added quotations around $(tmac_wrap) to avoid syntax error if
5147         variable is empty.
5149         * configure: Newly generated using autoconf 2.13.
5151         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
5153 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
5155         * README, PROJECTS, NEWS, INSTALL, VERSION, 
5156         doc/Makefile. doc/pic.ms, groff/groff.man:
5157         Prepare for 1.11 release.  No code changes.
5158         Documentation for pic added (doc/pic.ms).
5160 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
5162         * Version 1.10 released.
5164 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
5166         * afmtodit/afmtodit.pl: Avoid comment on first line.
5168 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
5170         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
5171         * configure.in: Call it.
5173         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
5174         (distfiles): Doesn't depend on config.log or config.cache.
5176 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
5178         * grog/grog.sh: Use print "" rather than print in END rule.
5180 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
5182         * tbl/main.cc (process_data): Don't give error for excess data
5183         entries that are comments.
5185 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
5187         * tbl/main.cc (process_data): Fix case where new for-scope rules
5188         silently change meaning of code.
5190 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
5192         * troff/env.cc (hyphenate): Loop over all consecutive sequences
5193         of non-zero hyphenation codes.
5195 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
5197         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
5199 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
5201         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
5203 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
5205         * tmac/tmac.andoc: Make it work in compatibility mode.
5207         * refer/token.h (token_info::is_range_sep): New function.
5208         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
5209         * refer/ref.cc (reference::output): More sophisticated check for
5210         multiple pages.
5212         * devps/prologue.ps (MANUAL): New procedure.
5213         * grops/ps.cc (main): New -m option.
5214         (usage): Include -m.
5215         (ps_printer::~ps_printer): Implement -m.
5217         * aclocal.m4 (GROFF_G): New macro.
5218         * configure.in: Call it.
5219         * Makefile.in (g): Provided by configure.
5221         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
5223         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
5224         translations.
5226         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
5227         (tmac_m, tmac_s): Deleted.
5228         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
5229         tmac_s_prefix): New variables.
5230         (MDEFINES): Change accordingly.
5231         * Makefile.comm (.man.n): Use new TMAC_* variables.
5232         * configure.in (GROFF_TMAC): Call.
5233         * aclocal.m4 (GROFF_TMAC): Define.
5234         * tmac/Makefile.sub (stamp_wrap): New target.
5235         (install_data, uninstall_sub): Handle macro wrapping.
5237 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
5239         * tbl/main.cc (main): Ignore -T option.
5241 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
5243         * devlj4/generate/special.map: Add definition of \(nb.
5245         * tmac/tmac.dvi: Add definition of \(nb.
5247         * troff/dictionary.c (dictionary::dictionary): association::v gets
5248         initialized by association::association.
5250         * tmac/Makefile.sub: Avoid using temporary files when installing.
5252         * troff/env.cc (environment::set_font): Make bad font number a
5253         warning.
5255         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
5257         * Makefile.in (datadir): Use share rather than lib.
5259         * groff/groff.cc (basename): Rename to xbasename.
5261 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
5263         * Makefile (CCLIBS): Don't use.
5264         * Makefile.ccpg: Likewise.
5266         * acgroff.m4: Rename to...
5267         * aclocal.m4: Modify extensively for autoconf 2.
5268         * configure.in: Likewise.
5269         * Makefile.in: Likewise.
5271         * groff/pipeline.c (const): Declare as empty if __STDC__ not
5272         defined.
5273         (xstrsignal): Check for definition of NSIG. Conditionalize
5274         on SYS_SIGLIST_DECLARED.  Make return type const.
5276 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
5278         * troff/input.cc (interpolate_macro): Rephrase missing space
5279         warning.
5281 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
5283         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
5284         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
5285         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
5286         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
5287         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
5288         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
5289         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
5290         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
5291         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
5292         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
5293         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
5294         Fix 'for' scoping.
5296 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
5298         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
5299         string_iterator.
5300         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
5301         file.
5302         (macro_iterator::macro_iterator): Add additional argument.
5304 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
5306         * troff/div.cc (vertical_size::vertical_size): In place of integer
5307         specifying line spacing use cunits specifying post vertical
5308         space.
5309         (macro_diversion::output, top_level_diversion::output): Likewise.
5310         * troff/div.h: Change declarations accordingly.
5311         * troff/env.cc (pending_output_line): Replace ls field by post_vs
5312         field.
5313         (pending_output_line::pending_output_line,
5314         pending_output_line::output, environment::output,
5315         environment::output_line, environment::output_title,
5316         environment::hyphenate_line):  In place of
5317         integer specifying line spacing use cunits specifying post vertical
5318         space.
5319         (environment::environment): Add post_vertical_spacing and
5320         prev_post_vertical_spacing arguments.
5321         (environment::get_post_vertical_spacing): New function.
5322         (environment::total_post_vertical_spacing): New function.
5323         (environment::post_vertical_spacing): New function.
5324         (init_env_requests): Initialize pvs request and .pvs register.
5325         * troff/env.h: Change declarations.
5327 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
5329         * tmac/tmac.pspic: Immediately remove the temporary file.
5331 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
5333         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
5334         height is specified.
5336 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
5338         * tbl/table.c (struct vertical rule, class table_entry): Use int
5339         not short for start_row and end_row.
5341 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
5343         * troff/input.cc (trapping_blank_line, blank_line_macro): New
5344         functions.
5345         (diverted_space_node::reread, process_input_stack): Call
5346         trapping_blank_line() rather than blank_line().
5347         (init_input_requests): Bind "blm" to blank_line_macro().
5349         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
5351 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
5353         * troff/env.cc (environment::possibly_break_line): Require that
5354         width total excluding width of final space node be greater than
5355         the target text length.
5357 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
5359         * troff/node.cc (kern_pair_node::vertical_extent): New function.
5361 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
5363         * troff/node.cc (charinfo_node): New class.
5364         (glyph_node, composite_node): Derive from charinfo_node.  Change
5365         member functions accordingly.
5367 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
5369         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
5371 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
5373         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
5375         * devps/generate/textmap (notsubset): Add.
5377         * tmac/tmac.a4: New file.
5379 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
5381         * pic/main.cc (had_parse_error): New variable.
5382         (do_picture, do_whole_file): Set had_parse_error if yyparse()
5383         returns non-zero.
5384         (main): Return 1 if had_parse_error is true.
5386 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
5388         * grolj4/lj4.cc (main): Avoid use of strtoul.
5390 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
5392         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
5393         iso_8859_1 or $LESSCHARSET is latin1.
5395 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
5397         * hpftodit: New directory.
5398         * Makefile.in (CCPROGDIRS): Add hpftodit.
5399         * devlj4/generate: New directory.
5401 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
5403         * configure.in: Don't use AC_VFORK.
5404         * groff/pipeline.c (run_pipeline): Use fork() always.
5406 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
5408         * grops/ps.cc (main): Use %1 not %s in error message for -w.
5410         * Makefile.in (CCPROGDIRS): Add grolj4.
5411         (DEVDIRS): Add devlj4.
5412         * grolj4, devlj4: New directories.
5413         * tmac/troffrc: Handle lj4.
5414         * tmac/tmac.lj4: New file.
5416 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
5418         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
5420 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
5422         * troff/input.cc (do_if_request): At end of second string, switch
5423         environments before getting next token.
5425 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
5427         * devps/psstrip.sed: Split rule that strips whitespace on either
5428         side of delimiters.
5430 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
5432         * troff/node.h (font_family::make_definition): Add return value to
5433         declaration.  * troff/symbol.h (symbol::operator==,
5434         symbol::operator!=): Likewise.
5436 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
5438         * groff/groff.cc (main, help, synopsis): Handle -S.
5439         (possible_command::insert_arg): New function.
5441         * tmac/tmac.safer: New file.
5442         * tmac/msafer.man: New file.
5443         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
5445 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
5447         * pic/pic.h, pic/main.cc (safer_flag): New variable.
5448         * pic/pic.y (placeless_element): Avoid unsafe operations if
5449         `safer_flag' is set.
5450         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
5452 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
5454         * eqn/lex.cc (get_token): Put call to add_context() in block to
5455         work around Sun C++ 4.0 bug.
5457         * include/stringclass.h (operator +): Use ?: instead of `if' to
5458         work around Sun C++ 4.0 bug.
5460 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
5462         * tbl/main.cc (process_format): Accept - as a synonym for the _
5463         key letter.
5465         * libbib/index.cc (minus_one): Don't declare as const.
5467 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
5469         * troff/input.cc (get_char_for_escape_name): Push back a newline.
5471 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
5473         * troff/input.cc (write_macro_request): New function.
5474         (init_input_requests): Bind write_macro_request to writem.
5476 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
5478         * tmac/tmac.s (@EN): Turn filling back on even if there was no
5479         equation.
5481         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
5483         * tmac/tmac.s (@TS): Renamed from TS.
5484         (TS): Call LP then TS again.
5485         (cov*ab-init): Alias @TS to TS.
5487         * tmac/tmac.s: Allow QP or RS to initialize.
5489         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
5490         Move initializations of PS and LL here.
5491         (par@init): Don't initialize HY.  Avoid changing environment 0.
5492         (par*env-init): Don't all par@reset.
5494 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
5496         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
5498 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
5500         * Makefile.in (MDEFINES): Add LDFLAGS.
5501         (LDFLAGS): Add definition line.
5503 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
5505         * troff/input.cc (get_optional_char): Split off error check into...
5506         (check_missing_character): New function.
5507         * troff/token.h: Declare it.
5508         * troff/env.cc (margin_character): Don't call get_optional_char.
5509         Only call tok.next() after making the node.
5511         * include/lib.h (getopt): Make 2nd argument char *const *.
5513 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
5515         * nroff/conftest.sh: Deleted.
5517 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
5519         * pic/make-dos-dist: Deleted.
5521 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
5523         * devps/psstrip.sed: Strip comments before stripping trailing
5524         white space.
5526 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
5528         * Version 1.09 released.
5530 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
5532         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
5534 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
5536         * libgroff/font.cc (font::load_desc): Fix typo in error message.
5538 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
5540         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
5541         about returning without a value.
5543         * troff/charinfo.h (charinfo::get_special_translation): Cast
5544         TRANSLATE_NONE to int.
5546         * refer/token.cc (lookup_token, store_token): Remove bogus loop
5547         test.  Fix test so that it works with n unsigned.
5549         * pic/pic.y (defaults_table): Fully bracket initializer.
5550         * pic/lex.cc (lookup_keyword): Likewise.
5551         * eqn/lex.cc (token_table, def_table): Likewise.
5552         * eqn/box.cc (param_table): Likewise.
5553         * troff/input.cc (warning_table): Likewise.
5554         * libgroff/font.cc (table): Likewise.
5555         * grops/ps.cc (ps_printer::special): Likewise.
5556         * grops/psrm.cc (resource_manager::process_file): Likewise.
5557         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
5558         * refer/command.cc (command_table): Likewise.
5559         * addftinfo/addftinfo.cc (param_table): Likewise.
5561         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
5562         about temp's being unused.
5563         (unused): New function.
5565         * groff/pipeline.cc: Declare c_fatal.
5567         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
5568         uchar.
5570         * libbib/index.cc (index_search_item::load): Prevent compiler
5571         warnings about fd_closer's being unused.
5572         (unused): New function.
5574 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
5576         * troff/input.cc (copy_mode_error): Make `prefix' static.
5577         Fix typo.
5579         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
5580         defined.
5581         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
5582         HAVE_CC_OSFCN_H and modify accordingly.
5584         * troff/input.cc (init_charset_table): radicalex overlaps
5585         horizontally.
5587         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
5588         udodo!hans@relay.NL.net).
5589         * groff/configure.in: Call it.
5591         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
5592         * groff/configure.in: Call it.
5593         * include/lib.h: Conditionalize declaration of pclose.
5595         * troff/div.cc (last_page_number): New global variable.
5596         (top_level_diversion::begin_page): Exit if we just printed the
5597         last page.
5598         * troff/div.h (last_page_number): Declare it.
5599         * troff/input.cc (parse_output_page_list): Set last_page_number.
5601         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
5602         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
5603         tmac/tmac.X: Likewise.
5604         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
5605         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
5607 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
5609         * tmac/doc-ditroff (hK): Remove groff specific code which
5610         prevented page-breaks between separate manual entries.  If this is
5611         the first page, don't set the page number to 1.
5613         * acgroff.m4 (GROFF_POSIX): New macro.
5614         * configure.in: Use it.
5616         * troff/node.cc (class real_output_file,
5617         real_output_file::real_output_file,
5618         real_output_file::~real_output_file): Conditionalize use of
5619         popen/pclose on POPEN_MISSING.
5620         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
5621         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
5622         (pipe_source): Similarily.
5624         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
5626         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
5627         presence of declarations by trying to compile example with
5628         conflicting declarations.  (gcc only gives a warning for missing
5629         declarations.)
5631 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
5633         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
5634         (from Ulrich Lauther).
5636 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
5638         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
5640 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
5642         * indxbib/indxbib.cc (write_hash_table): Add code for case where
5643         pointers and ints have different sizes.
5645 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
5647         * tmac/tmac.s (par*env-init): Call par@reset.
5649 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
5651         * tmac/tmac.s (@IP): Switch to a new environment when diverting
5652         tag.
5653         (par*push-tag-env, par*pop-tag-env): New macros.
5655 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
5657         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
5658         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
5660         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
5661         comment.  Include <time.h>.
5663 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
5665         * grops/ps.cc (is_small_h, is_small_v): Deleted.
5666         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
5667         lines.
5669 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
5671         * troff/input.cc (read_request): Only print a prompt if reading
5672         from the terminal.  Also clearerr on EOF if reading from the
5673         terminal.  Declare isatty.
5675 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
5677         * refer/label.y: Rename map_t to map_func and extractor_t to
5678         extractor_func.
5680 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
5682         * include/assert.h: Don't use volatile.
5683         * libgroff/assert.cc: Likewise.
5685 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
5687         * troff/input.cc (abort_request): Look at character in tok before
5688         calling get_copy().
5690 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
5692         * troff/troff.h (NO_RETURN): Deleted.
5693         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
5694         * troff/input.cc (exit_troff): Likewise
5696         * Makefile.in: Remove `Making ...' messages since GNU make now
5697         gives these. 
5699         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
5701 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
5703         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
5704         to constant 1 inch.
5706 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
5708         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
5710 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
5712         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
5713         MARK_REG if there was no left delimiter.
5715 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
5717         * pic/troff.cc (troff_output::text): Set line thickness to
5718         relative before outputting text.
5720         * tmac/tmac.e (@k): Don't zero ?T.
5721         ((z): Likewise.
5723 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
5725         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
5727 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
5729         * troff/input.cc (decode_args): Warn about unquoted tabs (from
5730         Paul Eggert).
5732 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
5734         * troff/input.cc (ignoring): New variable.
5735         (ignore): Set ignoring during call to do_define_macro.
5736         (do_define_macro): Clear ignoring before interpolating terminating
5737         macro.
5738         (copy_mode_error): New function.
5739         (get_char_for_escape_name, read_long_escape_name,
5740         interpolate_arg): Use copy_mode_error.
5741         (warning_table): Add WARN_IG.
5742         * troff/troff.h (WARN_IG): Declare.
5743         (WARN_TOTAL): Change accordingly.
5745         * groff/pipeline.c (strsignal): Rename to xstrsignal.
5746         * groff/groff.cc (strsignal): Delete declaration.
5748 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
5750         * troff/div.cc (page_offset): Use 'm' as default scaling.
5752 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
5754         * nroff/nroff.sh: Ignore -u.
5756 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
5758         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
5760 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
5762         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
5763         drawing box.
5764         (B2): With -Tascii, leave additional vertical space before
5765         and after. Ensure that the left and right indent is restored to
5766         what it was even if the point size changes.  Don't call
5767         par@finish. Change the indent, line length and title length
5768         directly.  With -Tascii, make the width of the box 1n less.
5769         (B1): Remember 1n at the current point size.  Don't call
5770         par@reset.  Change the indent, line length and title length
5771         directly.  Ensure that the temporary indent is preserved.
5772         (par*box-mark-top): Turn off no spacing mode.
5774 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
5776         * Makefile.in (dist): Use .gz suffix.
5778 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
5780         * troff/input.cc (main): Add return 0.
5781         * pic/main.cc (main): Use return instead of exit.
5782         * tbl/main.cc (main): Likewise.
5783         * eqn/main.cc (main): Likewise.
5784         * grops/ps.cc (main): Likewise.
5785         * grotty/tty.cc (main): Likewise.
5786         * groff/groff.cc (main): Likewise.
5787         * grodvi/dvi.cc (main): Likewise.
5788         * refer/refer.cc (main): Likewise.
5789         * indxbib/indxbib.cc (main): Likewise.
5790         * lkbib/lkbib.cc (main): Likewise.
5791         * soelim/soelim.cc (main): Likewise.
5792         * addftinfo/addftinfo.cc (main): Likewise.
5793         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
5794         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
5796         * troff/token.h (process_input_stack): Don't declare as static.
5797         * troff/input.cc: Likewise.
5799         * troff/node.c (invalidate_fontno): Make it a static member of
5800         class font_family.  Change callers.
5801         * troff/node.c: Change declaration.
5803         * tbl/main.cc (struct input_entry_format): Add explicit public
5804         specifier.
5805         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
5806         struct double_hline_stuff): Likewise.
5807         * tbl/table.h (struct entry_format): Likewise.
5808         * pic/object.h (struct saved_state): Likewise.
5810         * include/stringclass.h: Add forward declarations of friend
5811         functions that are later declared as inline.  Don't include inline
5812         specifier in friend declaration.
5814         * libgroff/lib.h: Declare popen and pclose.
5815         * acgroff.m4 (GROFF_POPEN): New macro.
5816         * configure.in: Call it.
5818         * include/lib.h (PI): New constant. Undef first if necessary.
5819         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
5820         * grops/ps.cc (degrees, radians): Likewise.
5821         * libgroff/font.cc (font::get_skew): Likewise.
5823         * grops/ps.cc (is_ascii): New function.
5824         (ps_output::put_string): Use is_ascii.  Use csprint rather than
5825         isprint.
5826         (ps_printer::define_encoding): Use csspace.
5827         * libgroff/strtol.c (ISASCII): New macro.
5828         (strtol): Cast arguments to is*() and tolower() to unsigned char.
5829         Use ISASCII rather than isascii.
5830         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
5831         * libgroff/cset.cc: Likewise.
5832         * libdriver/input.cc: Include cset.h.
5833         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
5834         than isdigit().
5836         * refer/refer.cc (main): Use %ld rather than %d for longs.
5838         * libbib/index.cc (index_search_item_iterator::get_tag): Use
5839         S_ISREG macro.
5841         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
5843 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
5845         * troff/input.cc (hyphenation_code): Skip white space between
5846         char/code pairs.
5848 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
5850         * tbl/table.h (table::entry_list_tailp): New member.
5851         (table::table): Initialize it.
5852         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
5853         behaviour.
5855 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
5857         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
5858         with negative horizontal positions. Remove casts of glyph::hpos to
5859         int.
5860         (USHRT_MAX): Delete definition.
5861         (SHRT_MAX, SHRT_MIN): New definitions.
5862         (glyph::hpos): Change type to short.
5863         (tty_printer::end_page): Output multiple backspaces if necessary.
5864          Remove casts of glyph::hpos to int.
5865         
5866 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
5868         * tmac/tmac.s (@RT): New definition.
5870 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
5872         * refer/refer.cc (do_file): Make sure current_filename is set when
5873         filename is "-".
5875         * pic/common.cc (common_output::dot_line): Handle zero length
5876         lines.
5878 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
5880         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
5881         (par@init): Initialize \n[HY].
5883 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
5885         * troff/dictionary.cc (dictionary::remove): Continue when
5886         r < j < i.
5888 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
5890         * Makefile.com (.y.cc): Avoid ending up with two versions of
5891         $(YTABH).
5893 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
5895         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
5896         (\(,C): Likewise.  Also fix typo.
5898 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
5900         * lib.h: Delete extraneous semi-colon.
5902         * Add pso request: `so' from a pipe.
5903         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
5904         (file_iterator::close): New function.
5905         (file_iterator::~file_iterator, file_iterator::next_file): Use
5906         file_iterator::close.
5907         (file_iterator::backtrace): Say `process' rather than `file' when
5908         the stream is popened.
5909         (pipe_source): New function.
5910         (init_input_requests): Bind ".pso" to pipe_source.
5912 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
5914         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
5916         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
5917         digits in lower case.
5919 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
5921         * Version 1.08 released.
5923         * Makefile.in (dist): Insert || true after ln -s commands that
5924         might fail.
5926         * mm: Update to mm 1.16.
5928         * acgroff.m4 (GROFF_CSH_HACK): New macro.
5929         * configure.in: Call GROFF_CSH_HACK.  Substitute for
5930         SH_SCRIPT_SED_CMD.
5931         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
5932         MDEFINES.
5933         * nroff/Makefile.sub (nroff): New target.
5934         (install_data): Install nroff.
5935         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
5936         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
5938 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
5940         * eqn/Makefile.sub (neqn): Add chmod +x.
5942         * grog/Makefile.sub (grog): Remove spurious semi-colon.
5944 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
5946         * troff/input.cc (string_iterator::string_iterator()): Initialize
5947         lineno and count.
5949 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
5951         * troff/div.cc (macro_diversion::space,
5952         top_level_diversion::space): Don't set high_water_mark.
5953         (macro_diversion::output, top_level_diversion::output): Don't
5954         include post line space in high water mark.
5956 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
5958         * eqn/eqn.y: Don't define YYDEBUG.
5959         * pic/pic.y: Likewise.
5961 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
5963         * tmac/tmac.e ([3): Add space after comma following editors.
5964         Change double spaces to single spaces.
5965         ([4): Change double spaces to single spaces.
5967         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
5968         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
5969         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
5970         after %!PS-Adobe- (for Newsprint).
5972         * troff/div.cc (top_level_diversion::begin_page): When
5973         before_first_page is 1, set page_number to 1.
5975 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
5977         * eqn/box.cc (box::top_level): Protect equation with \&.
5979 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
5981         * groff/groff.cc (possible_command::set_name): Delete old name.
5983         * groff/groff.cc (possible_command::~possible_command): Use
5984         a_delete.
5986         * troff/node.cc (troff_output_file::begun_page): New member.
5987         (troff_output_file::troff_output_file): Initialize it.
5988         (troff_output_file::really_begin_page): Only output V command if a
5989         page has been begun.
5991         * pic/pic.y (placeless_element): Delete argument to PRINT after
5992         use.
5994 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
5996         * Make wrapman work.
5997         * troff/div.h (class top_level_diversion): Replace
5998         first_page_begun by before_first_page (with opposite sense).
5999         * Change first_page_begun to before_first_page inverting sense.
6000         * troff/div.cc (class nl_reg): New class.
6001         (init_div_requests): Use class nl_reg for \n(nl.
6002         (top_level_diversion::begin_page): Don't call
6003         output_file::begin_page if before_first_page is 2;
6004         reset before_first_page afterwards.  If have_next_page_number is
6005         false, then always increment page_number.
6006         * tmac/tmac.an: Set traps within TH rather than at the top-level.
6007         Restore compatibility mode after loading, and then disable
6008         compatibility mode in TH.
6010 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
6012         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
6013         past last line.
6014         * troff/node.h (output_file::trailer): Declare.
6015         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
6016         * troff/node.cc (output_file::trailer): New function.
6017         (troff_output_file::~troff_output_file): Move most code into...
6018         (troff_output_file::trailer): New function.
6019         (class troff_output_file): Delete page_length member. Declare
6020         trailer().
6021         (troff_output_file::really_begin_page): Use current page length
6022         for final V command.
6024         * tbl/main.cc (struct options): New decimal_point_char member.
6025         (options::options): Initialize this.
6026         (process_options): Implement decimalpoint option.
6027         (process_data): Pass decimal_point_char option to table::table.
6028         * tbl/table.h (class table): New decimal_point_char member.
6029         (table::table): Add additional argument.
6030         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
6031         second argument specifying decimal point character.  Use this
6032         instead of '.'.
6033         (table::table): Initialize decimal_point_char.
6034         (table::add_entry): Change call to find_dot.
6036         * troff/input.cc (get_copy, token::next): Implement \V.
6037         (interpolate_environment_variable): New function.
6039 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
6041         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
6042         * pic/pic.y: Likewise.
6044         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
6045         Add casts to int.
6046         * refer/ref.cc (reference::insert_field, reference::delete_field):
6047         Likewise.
6048         * troff/number.cc (parse_term): Likewise.
6050         * acgroff.m4 (GROFF_PROG_YACC): New macro.
6051         * configure.in: Use GROFF_PROG_YACC.
6053         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
6054         and g++.
6055         * Makefile.in (OPTIMIZE): New define.
6056         (DEBUG): Empty by default.
6057         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
6059         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
6060         (GROFF_ARRAY_DELETE): Likewise.
6061         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
6063         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
6065         * devps/psstrip.sed: Use different delimiter on last line (so that
6066         it works with BSD 4.4 sed.)
6068 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
6070         * devps/psstrip.sed: Delete comments.
6072         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
6073         optind, opterr, optarg.
6074         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
6075         opterr, optarg.
6077 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
6079         * Makefile.in (check): Dummy target.
6081 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
6083         * Version 1.07 released.
6085         * Integrate mm 1.11.
6087         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
6088         where start_col was meant.
6090 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
6092         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
6094 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
6096         * troff/input.cc (token::next): Make \z\o'...' and similar things
6097         work.
6099         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
6100         constants.
6101         (environment): Add margin_character_flags member.
6102         * env.cc (environment::environment(symbol),
6103         environment::environment(const environment *): Initialize
6104         margin_character_flags.
6105         (margin_character): Rewrite.
6106         (environment::output_line): Add a margin character if
6107         margin_character_flags is non-zero.  Turn off the
6108         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
6109         zero, use margin_character_node without copying and then set
6110         margin_character_node to 0.
6112         * devps/DESC.in: Change minimum size to 1000.
6114 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
6116         * troff/symbol.h (symbol::hash): Change return type to unsigned
6117         long.
6118         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
6119         Add casts to int.
6121         * test-groff: Use -r rather than -x.
6123         * grops/psfig.diff: Include in distribution again.
6125 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
6127         * Makefile.in (dist): Use gzip.
6129 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
6131         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
6132         unistd.h as well as in stdlib.h.
6133         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
6134         defined; otherwise include <sys/types.h> and <unistd.h> if
6135         UNISTD_H_DECLARES_GETOPT is defined.
6137         * configure.in: use builtin(include, ... rather than include(...
6138         * configure: Regenerate with autoconf 1.3.
6140         * libdriver/print.cc (printer::adjust_arc_center): Use new
6141         algorithm suggested by Andy Fyfe.
6143         * libdriver/printer.cc (printer::adjust_arc_center): New function.
6144         * include/printer.h: Declare this.
6145         * grops/ps.cc (ps_printer::draw): Use it.
6146         * grodvi/dvi.cc (dvi_printer::draw): Use it.
6148 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
6150         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
6152 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
6154         * eqn/main.cc (main): Handle "eqn -".
6156 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
6158         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
6160         * mm: Integrate version 1.08.
6162         * pic/troff.cc (troff_output::finish_picture): Set
6163         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
6164         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
6165         if it's not defined. Check whether the register is non-zero rather
6166         than whether it's not defined.
6167         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
6169         * indxbib/indxbib.cc: Move all signal handling into...
6170         * indxbib/signal.c: New file.
6171         * configure.in: Call AC_RETSIGTYPE.
6173         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
6174         * configure.in: Call GROFF_STRUCT_EXCEPTION.
6175         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
6177         * troff/input.cc (token::token, token::operator=): Work round SGI
6178         C++ bug.
6179         * pic/object.cc (position::position): Likewise.
6181 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
6183         * pic/pic.h: Move declaration of hypot().
6185 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
6187         * pic/pic.h: Declare hypot().
6189         * pic/pic.h: Define M_PI if necessary.
6191 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
6193         * tmac/tmac.e (re): Add alternative version that doesn't use groff
6194         `.ta T' feature.
6196         * devps/prologue.ps (RE): Handle the possibility that the old font
6197         doesn't have a FontName entry.
6199 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
6201         * tmac/tmac.e (fam): Redefine to set family in environment 2.
6202         (@C): Use @fam not fam.
6204 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
6206         * lookbib/lookbib.cc (main): Change type of start to const char *.
6207         * lkbib/lkbib.cc (main): Likewise.
6209         * eqn/lex.cc (definition::definition): Don't use member
6210         initializer syntax for members of anonymous unions.
6212         * troff/input.cc (input_stack::backtrace): Change type of to const
6213         char *.
6215 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
6217         * include/stringclass.h (class string): Declare inline friend
6218         functions as inline in class declaration.
6219         * troff/hvunits.h (class hunits, class vunits): Likewise.
6220         * include/refid.h (class reference_id): Likewise
6221         * troff/troff.h (points_to_units(units), scale(units, double)):
6222         Delete declarations.
6223         * libdriver/input.cc (get_char): Delete declaration.
6224         * include/lib.h: Change 2nd argument of getopt from const char **
6225         to char **.
6226         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
6227         char **' before assigning to a `const char **'.
6228         * tbl/table.cc: Delete extra declarations of prints().
6230 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
6232         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
6233         char **' before assigning to a `const char **'.
6235         * libgroff/errarg.cc (errarg::errarg): Don't use member
6236         initializer syntax for members of anonymous unions.
6238 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
6240         * mm: Integrate version 1.07.
6242 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
6244         * troff/input.c (translate2): Rename to
6245         (translate_no_transparent).
6246         (init_input_requests): Rename tr2 to trnt.
6248 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
6250         * troff/charinfo.h (class charinfo): Add transparent_translate field.
6251         (charinfo::set_translation, charinfo::set_special_translation):
6252         Add second argument that specifies value for
6253         transparent_translate.
6254         (charinfo::get_translation, charinfo::get_special_translation):
6255         Add optional second argument that specifies whether translation is
6256         being used for transparent throughput.
6257         * troff/input.cc (charinfo::set_translation,
6258         charinfo::set_special_translation): Handle second argument.
6259         (charinfo::charinfo): Initialize transparent_translate.
6260         (translate): Split main part off into
6261         (do_translate): New function.  Pass argument saying whether
6262         translation applies to transparent throughput.
6263         (translate2): New request.
6264         (init_input_requests): Bind translate2 to `tr2'.
6266 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
6268         * tbl/table.h (class table): Add `nokeep' flag.
6269         * tbl/main.cc (process_options): Handle `nokeep' option.
6270         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
6271         table::do_bottom): Don't output keep/release macro definitions or
6272         calls when `nokeep' option has been specified.
6274 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
6276         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
6278 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
6280         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
6281         block_entry::divert, alphabetic_block_entry::divert): Add extra
6282         argument giving column separation.
6283         (table::compute_widths): Pass column separation to
6284         table_entry::divert().
6285         (block_entry::do_divert): If an entry spans multiple columns and a
6286         minimumum width has been specified for each column, then set the
6287         line length to the sum of the widths (plus possibly the column
6288         separations).
6290         * troff/input.cc (set_escape_char): Don't set the escape_char
6291         until after calling has_arg().
6293 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
6295         * tbl/table.cc (table::do_top): Add missing \s0 for double box
6296         case.
6298         * tbl/table.cc (table::print_double_hline): Avoid extra new line
6299         in case where r > nrows - 1.
6301         * tbl/table.cc (BODY_HEIGHT): Deleted.
6302         (LINE_SEP): New definition.
6303         (table::print_single_hline, table::print_double_hline,
6304         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
6305         table::do_row, table::do_top): Use LINE_SEP space before a line
6306         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
6308         * tbl/table.cc (text_entry::print_contents): New function.
6309         (text_string_name, right_text_string_name): Deleted.
6310         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
6311         (simple_text_entry::do_width, numeric_text_entry::do_width,
6312         alphabetic_text_entry::do_width): Don't store the contents of the
6313         entry in a string.
6314         (left_text_entry::simple_print, right_text_entry::simple_print,
6315         center_text_entry::simple_print,
6316         alphabetic_text_entry::simple_print,
6317         numeric_text_entry::simple_print): Print the entry directly
6318         instead of using the stored string.
6320 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
6322         * devps/Makefile: Strip PostScript files.
6323         * devps/prologue: Rename to...
6324         * devps/prologue.ps.
6325         * devps/psstrip.sed: New file.
6326         * devps/download: Use .pfa rather than .ps for installed versions
6327         of fonts.
6329 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
6331         * troff/env.cc (input_trap): Give a warning if the argument is out
6332         of range.
6334         * troff/env.cc (adjust): Treat negative argument as missing. Round
6335         argument > 5 down to 5.
6337         * troff/env.cc (center, right_justify): Make negative argument zero.
6339         * troff/div.cc (page_offset, vertical_position_traps): Treat
6340         invalid argument as missing.
6341         * troff/env.cc (line_spacing, line_length, title_length, indent,
6342         underline, hyphen_line_max_request, control_char,
6343         no_break_control_char, widow_control_request, adjust, input_trap,
6344         point_size): Likewise.
6345         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
6346         constant_space): Likewise.
6347         * troff/input.cc (compatible, shift, warn_request,
6348         set_escape_char): Likewise.
6350         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
6351         * tbl/table.cc (table::table): Likewise.
6353         * Makefile.dev (install_dev): depends on $(DEVFILES).
6355 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
6357         * devX75, devX75-12, devX100, devX100-12: New directories.
6358         * Makefile.in: Add these to DEVDIRS.
6360         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
6361         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
6362         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
6363         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
6364         targets.
6365         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
6366         (uninstall): New target.
6367         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
6368         uninstall_prog, uninstall_dev): New targets.
6370         * troff/div.cc (return_request): Treat an invalid argument as
6371         missing.
6373 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
6375         * tmac/tmac.e ((f): Set up the environment even when there's a
6376         current diversion.  Transperently throughput a call to @N.
6377         (@N): New macro.
6379 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
6381         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
6382         up to vertical resolution.
6384         * tbl/table.cc (table::do_row): Change row number after printing
6385         stuff list.
6387         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
6389 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
6391         * Rename CHANGES to NEWS.
6393 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
6395         * libgroff/new.cc (operator new): Avoid calling malloc(0).
6397 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
6399         * man.ultrix: Removed.
6401 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
6403         * Makefile.comm (extraclean): Delete files whose names begin with
6404         `='.
6406         * pic/troff.cc (troff_output::text): Fix typo in implementation of
6407         aligned text.
6409 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
6411         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
6412         * troff/div.cc (page_length, need_space, space_request): Treat
6413         invalid optional argument as missing.
6414         * troff/env.cc (number_lines): If the first argument is present
6415         but not a number, turn on line numbering, don't change the next
6416         line number and parse the remaining arguments.
6418         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
6420 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
6422         * eqn/box.h: Change declaration accordingly.
6423         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
6424         the specified size was bad but don't give an error.  Check for
6425         overflow.
6426         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
6427         * eqn/lex (do_size): Likewise.
6429 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
6431         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
6432         compatible headers.
6434 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
6436         * tbl/table.cc (table::init_output): Improve error message when
6437         table won't fit on one page.
6439 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
6441         * pic/troff.cc (troff_output::start_picture): Generate line
6442         containing a horizontal motion equal to the width of the picture.
6444         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
6445         using GROFF_COMMAND_PREFIX environment variable.
6447 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
6449         * mdate.sh: Use $NF rather than $(NF).
6451 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
6453         * pic/main.cc (main):  Use %1 not %c in argument to warning.
6455         * eqn/main.cc (main): Output code to check that geqn was given the
6456         correct -T option.
6458 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
6460         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
6461         `ln -s ../Makefile .; make; rm -f Makefile'.
6463         * troff/hyphen: Rename to...
6464         * troff/hyphen.us:
6465         * troff/input.cc (main): Delete -H option. Don't call
6466         read_hyphen_file().
6467         * troff/env.cc: Include searchpath.h and macropath.h.
6468         (exception_dictionary): Deleted.
6469         (ht): Deleted.
6470         (read_hyphen_file): Deleted.
6471         (hyphenation_language): New struct.
6472         (class trie, class hyphen_trie): Move declarations up.
6473         (trie_node::~trie_node): Deleted.
6474         (trie::delete_trie_node): New function.
6475         (trie::do_delete): New pure virtual function.
6476         (hyphen_trie::do_delete): New function.
6477         (trie::~trie): New function.
6478         (hyphen_trie::~hyphen_trie): New function.
6479         (trie::clear): No need to chcek that tp is not 0.
6480         (current_language, language_dictionary): New variables.
6481         (hyphen_word): Give an error if no current language.  Use
6482         exceptions dictionary in current language.
6483         (hyphen_trie::read_patterns_file): Find file using macro_path.
6484         Allow comments (starting with %) in patterns file.  Don't make it
6485         a fatal error if the file can't be found.
6486         (hyphenate): Return if no current language.  Get the exceptions
6487         dictionary and the hyphenation patterns from the current language.
6488         (set_hyphenation_language): New variable.
6489         (hyphenation_patterns_file): New function.
6490         (hyphenation_language_reg): New class.
6491         (hyphenation_language_reg::get_string): New function.
6492         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
6493         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
6494         register.
6495         * groff/groff.cc (main, help, synopsis): Delete -H option.
6496         * include/Makefile.sub: Don't define HYPHENFILE.
6497         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
6498         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
6499         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
6500         hyphenation patterns.
6502 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
6504         * eqn/neqn.sh: New file.
6505         * eqn/Makefile.sub: Handle neqn.sh.
6507         * eqn/eqn.h: Declare `nroff' variable.
6508         * eqn/box.cc (param_table): Add `nroff' param.
6509         (nroff): Define it.
6510         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
6511         variable.
6512         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
6514         * troff/troff.h (WARN_FONT): New warning.
6515         (WARN_TOTAL): Change accordingly.
6516         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
6517         (warning_table): Add WARN_FONT.
6518         * troff/node.cc (mount_font_no_translate): Pass argument to
6519         font::load_font.  If this is non-zero, give a warning.
6520         Don't give an error message when accessing a font that has already
6521         been found to be invalid.
6522         * include/font.h (font::load, font::load_font): Add additional
6523         optional argument which suppresses error message if the font is
6524         not found.
6525         * libgroff/font.cc (font::load_font): Handle additional argument.
6526         (font::load): Add additional argument. If this is non-null, set it
6527         to 1 and don't give error message.
6529         * include/printer.h (printer::end_page): Add argument giving
6530         length of page.
6531         * libdriver/input.cc (do_file): Pass this.
6532         * grops/ps.cc (ps_printer::end_page): Add argument.
6533         * grodvi/dvi.cc (dvi_printer::end_page,
6534         draw_dvi_printer::end_page): Add argument.
6535         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
6536         columns_per_page members. New member nlines.
6537         (DEFAULT_LINES_PER_PAGE): Deleted.
6538         (tty_printer::tty_printer): Don't compute lines_per_page from
6539         font::paperlength. Don't compute columns_per_page from
6540         font::paperwidth.
6541         (tty_printer::add_char): Don't check horizontal position against
6542         columns_per_page. Grow glyphs vector if neccessary.
6543         (tty_printer::end_page): Add argument giving page_length in units.
6544         Discard lines past end of page.
6546 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
6548         * tmac/tmac.tty-char: Fix definition of \(/l.
6550         * tmac/tmac.X: Define \(en.
6552 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
6554         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
6555         lpq, then use lp rather than lpr.
6557         * tmac/tmac.s (par@reset): Don't call `ad'.
6558         (par*env-init): Call `ad'.
6560 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
6562         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
6563         date.
6565         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
6566         * indxbib/indxbib.cc: Likewise.
6568 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
6570         * libgroff/putenv.c: New file.
6571         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
6572         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
6573         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
6574         stdlib.h with AC_HAVE_HEADERS.
6576 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
6578         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
6579         does not exist.
6581 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
6583         * eqn/box.cc (gsize): Make it an int.
6584         (set_gsize): Parse argument handling increment or decrement.
6585         (box::top_level): Convert gsize to a string.
6587         * troff/input.cc (exit_troff): Make buf unsigned char [].
6588         Call to make_temp_iterator casts buf to char*.
6590         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
6592         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
6593         * Makefile.cpg (depend.temp): Likewise.
6595         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
6597         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
6599 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
6601         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
6603 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
6605         * Version 1.06 released.
6607         * Integrate mm 1.04.
6609 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
6611         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
6613 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
6615         * afmtodit/afmtodit.pl: Add -n option that disables generation of
6616         ligatures command.
6617         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
6618         afmtodit. Regenerate.
6620         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
6621         @f back past the current position.
6623         * tmac/tmac.e: Change calls to @R so that comments are not part of
6624         arguments.
6626 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
6628         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
6630         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
6631         check that we can link a call to a function declared in <stdio.h>.
6632         (GROFF_UNISTD_H): New macro.
6633         * configure.in: Call it.
6634         * Makefile.in: Document it.
6635         * include/posix.h: New file.
6636         * troff/troff.h: Don't include <osfcn.h>
6637         * troff/input.cc: Include posix.h.
6638         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
6639         osfcn.h.
6640         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
6641         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
6642         <fcntl.h>.
6643         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
6644         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
6645         * libbib/search.cc (O_RDONLY): Delete definition.
6646         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
6647         Don't include <osfcn.h>.
6649         * acgroff.m4 (GROFF_TIME_T): New macro.
6650         * configure.in: Call it.
6651         * Makefile.in: Document it.
6653         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
6654         * configure.in: Call it.
6655         * Makefile.in: Document -DTRADITIONAL_CPP.
6656         * include/ptable.h: Don't include generic.h.
6657         (name2): Define it.
6659         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
6660         Afterwards remove [T1 and [T2.
6661         (ref*spec!0, ref*spec!2): Use T1 rather than T.
6662         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
6663         (ref*add-T2): Renamed from ref*add-T.
6664         (ref*add-T1): New macro.
6666 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
6668         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
6670         * libbib/index.cc: Include <fcntl.h>.
6671         (O_RDONLY): Define if necessary.
6672         (make_index_search_item, index_search_item_iterator::get_tag,
6673         index_search_item::check_files): Use O_RDONLY.
6674         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
6675         (O_RDONLY): Define if necessary.
6676         (search_list::add_file): Use O_RDONLY.
6677         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
6678         <sys/stat.h>.
6679         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
6680         (main): Use these.
6682         * libbib/index.cc (S_ISREG): Define it if necessary.
6683         (index_search_item::load): Use S_ISREG.
6685         * include/driver.h: Include <errno.h>.
6687 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
6689         * eqn/box.cc (body_height): Increase default value to 85.
6690         (body_depth): Increase default value to 35.
6692 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
6694         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
6695         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
6696         protected from expansion with \E.
6698         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
6700         * Makefile (Makefile): New target.
6702         * Makefile.sub (configure, distfiles): New targets.
6704         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
6705         construct.
6707 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
6709         * eqn/box.cc (param_table): Add body_height and body_depth.
6711         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
6713 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
6715         * psbb/Makefile.sub: Don't link with libgroff.a.
6717         * acgroff.m4 (GROFF_PUTENV): New macro.
6718         * configure.in: Call GROFF_PUTENV.
6719         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
6720         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
6721         is defined.
6723         * troff/env.cc (distribute_space): Rename force_forward argument
6724         to force_reverse.  Reverse the list if force_reverse is true.
6726 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
6728         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
6730         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
6731         height or depth to be negative.  Guard against SUP_RAISE quantity
6732         being negative.
6734 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
6736         * devps/generate/textmap: Add `an' (arrowhorizex).
6737         * tmac/tmac.ps: \(an overlaps horizontally.
6738         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
6740         * devps/symbolchars: Add arrowverttp, arrowvertbt.
6741         * devps/textmap: Add arrowvertex.
6742         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
6743         updownarrow delimiters.
6744         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
6746         * tbl/table.cc (simple_entry::position_vertically,
6747         block_entry::position_vertically):  For a centered entry, perform
6748         the motion in two stages.
6750         * refer/refer.cc (split_punct): Don't call lookup_token if there
6751         is no token.
6753 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
6755         * troff/input.cc (token::next): Delete token_node after copying
6756         token.
6758         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
6759         cur_point_size.
6761         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
6763         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
6765 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
6767         * grops/ps.cc (usage): -b option takes an argument.
6769         * devps/prologue (PLG): New procedure.
6770         * grops/ps.cc (main, usage): New -g option.
6771         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
6772         length using PLG.
6774 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
6776         * include/cset.h: Include <limits.h> if we have it.
6778         * libgroff/illegal.cc: New file.
6779         * include/lib.h (illegal_input_char): Use table.
6780         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
6781         * pic/lex.cc (ARG1): Renumber to 14.
6782         * eqn/lex.cc (ARG1: Likewise.
6784         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
6785         (eg 1.05.90) correctly.
6787 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
6789         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
6790         Rename $r and $R registers to $v and $V.
6791         ($r, $R): Initialize to 0.
6792         (@v, @V): New macros.
6793         (sz): Call @v.
6794         (@M): Call @V.
6796         * troff/input.cc (main, usage): Add -R option that says not to
6797         load troffrc.
6798         * eqn/main.cc (main, usage): Rename -n to -R.
6800 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
6802         * devps/DESC.in: Leave font positions 5-9 blank.
6803         * devdvi/DESC.in: Likewise.
6805         * grog/grog.pl: Handle `.PS <file' correctly.
6807         * troff/input.cc (input_stack::push): Improve error message when
6808         input stack limit exceeded.
6810 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
6812         * refer/refer.cc (main): Fix typo in handling of `a' option.
6814         * refer/refer.cc (do_bib): In state START after a newline remain
6815         in state START.
6817         * groff/groff.sh: Deleted.
6818         * groff/Makefile.sub: Delete handling of groff.sh.
6820         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
6821         to determine whether to use \X'ps:...'.
6822         * tmac/troffrc: Set 0p register to 0.
6823         * tmac/tmac.ps: Set 0p register to 1.
6825         * groff/groff.cc: Support -X option. Give warning for -TXps and
6826         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
6827         * tmac/troffrc: Support -r.X=1.
6829         * pic/troff.cc (troff_output::dot): Don't test
6830         zero_length_line_flag.
6832 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
6834         * include/lib.h: Declare getopt() and friends unless
6835         STDLIB_H_DECLARES_GETOPT is defined.
6837         * doc/chars.tr: Delete.
6838         * man/groff_char.man: New file.
6840 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
6842         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
6843         user has changed register format.
6845 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
6847         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
6848         `postpro' command in DESC file.  Get spooler command from `print'
6849         command in DESC file.  Execute spooler command with /bin/sh.
6851         * groff/groff.cc: Split Unix-specific parts into...
6852         * groff/pipeline.c: New file.
6854         * LICENSE: Delete.
6855         * COPYING: New file.
6856         * all files: Update copyright notices.
6858         * Rearrange files.  Redo Makefiles.  Use autoconf.
6860 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
6862         * troff/input.c (charinfo_to_node_list): Interpret character
6863         definition with escape_char of `\'.
6865 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
6867         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
6868         Define INT_DIGITS as big enough for 64-bit integer.
6869         * lib/strtol.c: Don't include lib.h.
6870         * lib/lib.h: Delete ifdef __cplusplus stuff.
6872 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
6874         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
6875         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
6876         get DESC from current directory.
6878 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
6880         * tbl/main.c (main): Always reset the line number when reading
6881         from stdin.
6883         * tbl/table.c (table::print_single_hline, table::print_double_hline,
6884         table::define_bottom_macro, table::do_row, table::do_top): Round
6885         vertical spacing up to vertical resolution.
6887 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
6889         * ps/ps.h (enum resource_type): Avoid comma at end of
6890         enumerator-list.
6891         * dvi/dvi.c (class dvi_printer): Likewise.
6892         * dvi/tfmtodit.c (gf::load): Likewise.
6893         * refer/label.y (struct expression): Likewise.
6894         * refer/refer.c (class label_processing_state): Likewise.
6895         * refer/indxbib.c (do_file): Likewise.
6896         * troff/troff.c (enum warning_type): Likewise.
6897         * tbl/main.c (process_data): Likewise.
6898         * troff/charinfo.h (class charinfo):
6900 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
6902         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
6904 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
6906         * groff.c: Move to new groff subdirectory.
6907         * groff/Makefile: New file.
6908         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
6910         * man/mdate.sh: Use ls -L if supported.
6912         * Consolidate all header files produced by gendef into lib/defs.h.
6913         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
6914         Don't include path.h.
6915         * lib/Makefile (path.h): Don't generate.
6916         * troff/input.c: Include defs.h. Don't include config.h.
6917         * troff/Makefile (config.h): Don't generate.
6918         * refer/index.h: Don't include suffix.h.
6919         * refer/index.c: Include defs.h.
6920         * refer/indxbib.c: Include defs.h.
6921         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
6922         defs.h.
6923         * refer/Makefile (suffix.h, path.h): Don't generate.
6924         * groff.c: Don't include config.h. Include defs.h.
6925         * Makefile (config.h): Don't generate.
6926         (lib/defs.h): Generate.
6927         (topclean): Remove lib/defs.h.
6929 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
6931         * lib/malloc.c, lib/getpagesize.h: Deleted.
6932         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
6933         related stuff.
6934         * lib/Makefile: Delete malloc-related stuff.
6935         * lib/new.c: Workaround COOKIE_BUG if necessary.
6937         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
6938         needed header files directly.
6939         * refer/refer.h: Omit definition of DEFAULT_INDEX.
6940         * Makefile: Include definition of DEFAULT_INDEX in path.h.
6942 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
6944         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
6945         argument.
6946         * lib/font (font::load_desc, font::load): Don't split argument of
6947         unknown command.
6948         (font::handle_unknown_font_command): Change type.
6949         * ps/ps.c (ps_font::handle_unknown_font_command,
6950         handle_unknown_desc_command): Change type.
6951         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
6953 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
6955         * lib/font.h (font::handle_unknown_font_command): Add file and
6956         line arguments.
6957         * lib/font.c (font::handle_unknown_font_command):
6958         * ps/ps.c (ps_font::handle_unknown_font_command):
6959         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
6960         lineno arguments.  Use _with_file_and_line functions for error
6961         reporting.
6963         * lib/fontfile.c (font::unknown_desc_command_handler): New static
6964         data member.
6965         * lib/font.c (font::set_unknown_desc_command_handler): New
6966         function.
6967         (font::load_desc): For unknown commands, call
6968         unknown_desc_command_handler if not null.
6969         * lib/font.h (class font): Declare them.
6970         (FONT_COMMAND_HANDLER): New typedef.
6971         * ps/ps.c (handle_unknown_desc_command): New function.
6972         (main): Set bflag if we had a -b option. Call
6973         font::set_unknown_desc_command_handler.
6974         (broken.h): Don't include.
6975         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
6976         submake 
6977         * ps/devps/Makefile: Add `broken' command to DESC file using
6978         BROKEN_SPOOLER_FLAGS.
6980         * macros/tmac.e ([, ]): Add as synonyms for { and }.
6982         * macros/tmac.e ($p): Only exdent if \$3 > 0.
6984         * macros/tmac.e (@R, @S): New macros.
6985         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
6986         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
6987         Declare $H, $[0-9], .. macros with @S.
6988         Declare |0, |1, |2, |3 strings with @S.
6990         * macros/tmac.e (@S): Rename to @U.
6992         * macros/tmac.e (@z): Define @b and bp as empty instead of
6993         deleting them,
6995         * macros/tmac.e (@m): Deleted.
6996         (@h): Don't call @m.
6997         (@z): Don't set @m trap.
6999         * macros/tmac.e ($h, $f): Define |z as empty string.
7001         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
7002         (@q): Likewise.
7004         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
7005         removing them.
7006         ()f): Likewise for * register.
7008         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
7009         argument is missing, don't change $R.  Call sr with three
7010         arguments when initializing.
7012 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
7014         * macros/tmac.e (sr): New macro.
7015         Initialize $r and $R using sr.
7017         * macros/tmac.e (,): Delete \*(#[.
7019         * troff/env.c (set_tabs): Read the tab type even if the position
7020         is bad.  Allow the position of the first tab stop to be negative.
7022 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
7024         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
7025         _POSIX_VERSION.
7026         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
7027         rather than -DPATHCONF_MISSING.
7028         * Makefile: Get rid of PATHCONF_MISSING.
7030         * refer/map.c: New file.
7031         * refer/index.c: Interface to mmap through map.c.  Rename map_size
7032         to map_len.
7033         * refer/Makefile: Handle map.c.
7034         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
7036 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
7038         * Makefile: RANLIB should be `true' if there is no ranlib.
7039         * lib/Makefile (libgroff.a): Simplify.
7040         * driver/Makefile (libdriver.a): Simplify.
7042         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
7043         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
7044         defined.
7046 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
7048         * troff/env.c (compare_ranges): Declare as extern "C".
7050         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
7052         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
7054 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
7056         * pic/troff.c (troff_output::text): Merge in grops_output::text,
7057         but conditionalize use of \X based on \*(.T.
7058         (grops_output::*): Deleted.
7059         * pic/output.h: Delete declaration of make_grops_output.
7060         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
7061         by default. -n sets it to 0.
7062         (usage): Corresponding changes.
7063         * groff.c (main): Don't pass -x or -p to pic.
7064         * groff.sh: Likewise.
7066         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
7067         to be non-zero.
7069         * ps/devps/afmtodit: Change calculation of asc_boundary and
7070         desc_boundary.  Make these bounds inclusive.
7071         * ps/devps: Regenerate font files.
7073 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
7075         * macros/tmac.latin1: New file.
7076         * macros/tmac.tty-char: Use tmac.latin1.
7077         (tmac.tty-tr): Deleted.
7078         * macros/Makefile: Install tmac.latin1.
7079         * macros/tmac.dvi: Use tmac.latin1.
7080         * macros/troffrc: Translate \[char160] onto no-break space here.
7081         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
7083 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
7085         * macros/tmac.Xps: Use `do' request.
7087         * macros/tmac.ps: Use `do' request.
7089         * macros/tmac.e (@C): Use `do' request.
7091         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
7092         * macros/Makefile: Install tmac.X*.
7094         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
7095         * tty/Makefile: Don't install tmac.tty*.
7096         * macros/Makefile: Install tmac.tty*.
7098         * dvi/tmac.dvi: Move to macros.
7099         * dvi/Makefile: Don't install tmac.dvi.
7100         * macros/Makefile: Install tmac.dvi.
7102         * ps/tmac.ps*: Move to macros.
7103         * ps/Makefile: Don't install tmac.ps*.
7104         * macros/Makefile: Install tmac.ps*.
7106         * eqn/box.c: Provide draw_lines parameter corresponding to -D
7107         option.
7108         * macros/eqnrc: Set draw_lines parameter based on device.
7109         * groff.c: Don't pass -D flag to eqn.
7110         * groff.sh: Likewise.
7111         * eqn/main.c: Warn about use of -D.
7113         * troff/input.c (process_startup_file): New function.
7114         (main): Call process_startup_file().
7115         * macros/troffrc: New file.
7116         * macros/Makefile: Install troffrc.
7117         * groff.c (main): Don't pass extra -m option to troff. For a 
7118         pseudo device pass the name of the pseudo device to troff using
7119         -d.
7120         * groff.sh: Likewise.
7121         * groff.c (possible_command::prepend_arg): Deleted.
7123         * troff/input.c (do_request): New function.
7124         (init_input_requests): Bind "do" to do_request.
7126         * eqn/main.c (main): Instead of loading eqnchar from device directory,
7127         load eqnrc from macro directory.
7128         * macros/eqnrc: New file.
7129         * macros/Makefile: Install eqnrc.
7130         * ps/devps/eqnchar: Deleted.
7131         * ps/devps/Makefile: Don't install eqnchar.
7132         * dvi/devdvi/eqnchar: Deleted.
7133         * dvi/devdvi/Makefile: Don't install eqnchar.
7134         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
7135         variable optM.
7137         * lib/device.[ch]: New files.
7138         * lib/font.h (font::set_device_name, font::get_device_name):
7139         Deleted.
7140         * lib/fontfile.c: Use device.h.
7141         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
7142         * troff/input.c: Delete definition of `device'.
7143         (main): Don't initialize device.
7144         * troff/troff.h: Include device.h rather than declaring device.
7145         * troff/Makefile: No need to handle DEVICE.
7146         * driver/input.c: Include device.h. Don't use
7147         font::{set,get}_device_name.
7148         * groff.c, Makefile: Rename device.h to config.h.
7149         * groff.c: Use library device variable.
7150         * eqn/main.c: Use library device variable.
7151         * eqn/Makefile: No need to handle DEVICE.
7153         * lib/searchpath.[ch]: New files.
7154         * lib/Makefile: Handle searchpath.[ch].
7155         * troff/input.c (open_file, init_dirs): Deleted.
7156         (macro_dirs): Deleted.
7157         (open_mac_file, macro_source): Use class search_path.
7158         (add_string, struct string_list): Move definition.
7159         (main): Change -M option to use macro_path. Delete call to
7160         init_dirs().
7161         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
7162         Rewrite to use class search_path.
7163         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
7164         * lib/Makefile: fontfile.c depends on searchpath.h.
7165         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
7166         MACROPATH.
7167         * lib/macropath.[ch]: New files.
7168         * troff/Makefile: No need to handle MACROPATH.
7170         * troff/input.c: Delete DUMP code.
7171         * lib/fontfile.c, lib/font.h: Delete
7172         font::forget_command_line_font_dirs.
7174         * troff/input.c (push_token): New function.
7175         (handle_first_page_transition): Use push_token().
7176         (process_input_stack): Change handling of a space at the beginning
7177         of the line.
7179 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
7181         * troff/input.c (font_dirs): Delete unused variable.
7183         * eqn/lex.c (do_set): Correct error messages.
7185 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
7187         * troff/input.c (do_define_string): Allow the string name to be
7188         followed immediately by a tab.
7189         (define_character): Likewise.
7191 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
7193         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
7194         be negative.
7196         * troff/input.c (input_iterator::is_file): New virtual function.
7197         (file_iterator::is_file): New function.
7198         (input_stack::end_file): New function.
7199         (input_stack::next_file): Handle the situation where there is no
7200         file on the input stack correctly.  Avoid making two passes over
7201         the input stack.
7202         (next_file): Make the filename optional; in this case call
7203         input_stack::end_file().
7205 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
7207         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
7208         produce a real _ charater when the current font is CW and _
7209         otherwise.
7211         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
7212         expression to work around gcc 2.2 bug.
7214 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
7216         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
7218         * troff/env.c (environment::add_padding): New function.
7219         (environment::add_char): Use add_padding().
7220         (environment::space): Likewise.
7221         (environment::wrap_up_field): Add some padding if there is none
7222         and there's no current tab.
7223         * troff/env.h: Declare environment::add_padding.
7225 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
7227         * pic/pic.y: undef fmod and rand before declaring them.
7229 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
7231         * troff/input.c (main): If the DESC file specifies a font name of
7232         0, then leave the corresponding font position empty.
7234         * nroff.sh: New file.
7235         * Makefile (install.nobin): Install nroff.sh.
7237         * tty/devlatin1/R.proto: Add ao as synonym for de.
7238         * tty/tmac.tty-char: Define ao as o.
7240         * tty/dev{ascii,latin1}/R.proto: Add aq.
7241         * tty/tmac.tty-char: Delete definition of aq.
7243 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
7245         * troff/input.c (init_charset_table): Don't translate 0240.
7246         * ps/tmac.ps: Translate char160 to space.
7247         * dvi/tmac.dvi: Likewise.
7248         * tty/tmac.tty: Likewise.
7250 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
7252         * dvi/tmac.dvi: Add support for all Latin-1 characters.
7254         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
7255         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
7256         \(oe, \(r?, \(r!.
7258         * tty/tmac.tty-char: Add \(ah.
7260         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
7261         No need to define \(FM and \(!/. Conditionalize all character
7262         definitions.
7264         * ps/devps/lgreekmap: Add +h, +f, +p.
7266         * ps/tmac.psnew: New file.
7267         * ps/Makefile: Install tmac.psnew.
7269         * troff/input.c (charinfo_to_node_list): Don't ever interpret
7270         character definitions in compatible mode.
7272         * troff/input.c (remove_character): New function.
7273         (init_input_requests): Bind remove_character to "rchar".
7275         * ps/tmac.psold: New file.
7276         * ps/Makefile: Install tmac.psold.
7277         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
7278         characters into tmac.psold.  Make these definitions unconditional.
7280         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
7282         * ps/tmac.ps: Don't define \('c and \('C.
7284         * ps/devps/textmap: Move Greek characters to...
7285         * ps/devps/symbolchars:
7287 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
7289         * ps/devps/text.enc: Add quotesingle.
7290         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
7291         * tty/tmac.tty-char: Likewise.
7292         * dvi/devdvi/texmi.map: Add +h, +f, +p.
7293         * dvi/devdvi/texi.map: Add Fn.
7294         * dvi/devdvi/msam.map: Add lz.
7295         * dvi/tmac.dvi: Handle Bq, bq, aq.
7297         * pic/lex.c (get_token): Recognize 'th.
7298         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
7300 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
7302         * ps/devps/textmap: Move di, mu, +- to...
7303         * ps/devps/symbolchars:
7305         * macros/tmac.s (@XS): Don't call par@reset or fi.
7306         (XA): Call LP. Turn off adjustment. Reduce line length.
7308         * macros/tmac.s: Initially alias XS to LP.
7309         (XS): Rename to @XS.
7310         (cov*ab-init): Alias XS to @XS.
7312 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
7314         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
7315         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
7316         (token::is_size, token::changes_env): Deleted.
7317         * troff/number.c (parse_term): No need to process \s explicitly.
7318         Call tok.next() only after scale indicator has been processed.
7319         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
7320         \f etc explicitly.
7321         (token::next): Handle \s, \f, \S, \H immediately rather than
7322         returning them as tokens.
7323         (token::operator==, token::description, token::add_to_node_list,
7324         token::process): Remove handling of deleted tokens.
7326         * troff/env.c (environment::add_char): When adding padding
7327         indicator character, call start_line() if necessary.
7329 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
7331         * ps/devps/afmtodit: Don't output 0 kerns.
7333         * ps/devps/afmtodit: Remove directory from name of encoding in
7334         font description file.
7336         * ps/devps/afmtodit: Improve error messages.
7338         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
7340         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
7341         * ps/devps/FontMakefile: Deleted.
7342         * ps/devps/afmname: New file.
7344         * ps/devps/symbol.sed: New file.
7345         * ps/devps/symbol.diff: Deleted.
7346         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
7347         Generate zapfdr.afm from zapfd.afm.
7349         * tty/tmac.tty (tty-char): Prefix definition with ".
7351         * macros/tmac.an (TP): Don't start a diversion if one has already
7352         been started.
7354         * tty/tmac.tty-char: Add Latin-1 characters.
7356         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
7358 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
7360         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
7361         Move declaration of struct horizontal_span.
7363         * tbl/table.c (table::table): Initialize span_list.
7364         (table::~table): Delete span_list.
7366         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
7368         * ps/devps/Makefile: Avoid dependency on GNU make.
7370         * ps/tmac.ps: Check that character does not already exist before
7371         defining it.
7373         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
7374         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
7375         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
7376         files.
7378         * tty/tmac.tty-char: New file.
7379         * tty/Makefile: Install tmac.tty-char.
7380         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
7381         tmac.tty-char.
7383         * tty/tmac.tty: Fix definition of \(34.
7385         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
7386         bracket-drawing characters onto |. Add *o.
7388         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
7389         only if current_field.
7391         * troff/dictionary.c (dictionary::lookup): Free old_table after
7392         rehashing. 
7394 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
7396         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
7397         whose glyphs are identical to glyphs of some Roman character.
7399         * tty/devlatin1/R.proto (bu): Deleted.
7400         * tty/devascii/R.proto (bu): Deleted.
7401         * tty/tmac.tty: Add definition of \(bu.
7403         * eqn/main.c (do_file): Pass FILE as argument.
7404         (main): Automatically load eqnchar.  New options -F and -n.
7405         Pass do_file an opened FILE.
7406         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
7407         No need to include font.h.
7408         * groff.sh: Likewise.  Don't need to use - for standard input.
7409         Prefix files with -- if first file starts with -.
7411         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
7413         * troff/env.c (environment::possibly_break_line): Don't set line
7414         to 0 across call to output_line().  Don't call output_line() until
7415         after discarding nodes after break.
7417 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
7419         * request.h (macro::empty): Declare it.
7420         * input.c (macro::empty): New method.
7421         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
7422         macro is empty.
7424 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
7426         * troff/env.c (environment::start_field): Decrement space_total
7427         when a space is frozen.
7429 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
7431         * macros/tmac.an (R): Delete macro.
7433         * troff/input.c (get_copy, token::next): Support \# (like \" but
7434         newline is ignored).
7436         * troff/input.c (token::next): Fix error message in 'Y' case.
7438 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
7440         * eqn/delim.c (define_extensible_string): Recognize any prefix of
7441         a delimiter name.
7443 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
7445         * c++test.c: Include <osfcn.h>.
7447         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
7448         <errno.h> doesn't.
7450 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
7452         * tbl/table.c (table::divide_span): Don't count column separation
7453         if expand was specified.
7455         * tbl/main.c (process_format): Don't ignore width specs in
7456         continued format.  Give warning for changing equal widths or
7457         column separation in continued format.
7458         (process_data): Set column separation, minimum width, equal
7459         columns at end of table.
7461 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
7463         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
7464         node::add_discretionary_hyphen): Use soft_hyphen_char.
7465         (set_soft_hyphen_char): New function.
7466         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
7468         * Makefile (c++tested): Give more helpful message if test fails.
7470 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
7472         * troff/input.c (init_charset_table): Translate 0240 to
7473         an unbreakable space.
7475         * troff/token.h (token::hyphen_indicator): New function.
7476         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
7477         translation.
7478         * troff/input.c (translate): Allow translation to \%.
7479         * troff/node.c (node::add_char): Handle
7480         TRANSLATE_HYPHEN_INDICATOR.     
7481         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
7483         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
7484         for \(hy.
7486         * tty/devlatin1/R.proto: \(hy and - should print as 055.
7488 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
7490         * groff.c (run_commands): If the last command gets a SIGPIPE send
7491         a SIGPIPE to all children than haven't yet terminated.  When
7492         command terminates, set pid field to -1.
7494 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
7496         * groff.c (main): Pass an appropriate -filename option to gxditview.
7498 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
7500         * Makefile.bd (install): Remove existing program before copying.
7502         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
7503         programs which have Unix counterparts to be installed with
7504         user-specified prefix.
7506         * troff/input.c (exit_troff): Don't check if exit_started.
7507         (exit_request): Don't call exit_troff if exit_started.
7509         * Makefile.bd (install.mm): Rename to install.dwbmm.
7511 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
7513         * driver/input.c (do_file): Add missing break for '#' case.
7515 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
7517         * troff/input.c (input_stack::clear):  Clear past any boundaries and
7518         then add the boundaries back.
7520         * troff/input.c (exit_troff): Return immediately if already
7521         exiting.
7523         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
7524         end macro.
7525         (pg*end-page): If the text has ended and there are no more
7526         footnotes or keeps, exit.
7528         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
7530         * troff/input.c (init_charset_table): Make \(rq transparent by
7531         default.
7533         * macros/tmac.an: Define lq and rq strings.
7535         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
7537 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
7539         * troff/env.c (environment::final_break): New function.
7540         (environment::newline): Set prev_line_interrupted to 2 if
7541         exit_started.
7542         * troff/env.h: Declare environment::final_break.
7543         * troff/input.c (exit_troff): Call environment::final_break()
7544         instead of environment::do_break().
7546         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
7547         doesn't already exist.
7548         * macros/man.local: New file.
7549         * macros/tmac.an: Load man.local.
7550         * macros/man.ultrix: New file.
7552 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
7554         * troff/input.c (exit_groff): Rename to...
7555         (exit_troff): New function.
7557         * troff/div.c (exit_started, done_end_macro,
7558         seen_last_page_ejector): New global variables.
7559         (began_page_in_end_macro): New static variable.
7560         (exit_flag): Deleted.
7561         (top_level_diversion::top_level_diversion): Initialize
7562         last_page_count.
7563         (top_level_diversion): More elaborate test for whether
7564         cleanup_and_exit() should be called.
7565         Set began_page_in_end_macro if the end macro isn't yet finished.
7566         * troff/div.h (top_level_diversion::last_page_count): New data
7567         member.
7568         (top_level_diversion::set_last_page): New function.
7569         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
7570         * troff/env.c (do_break): Zero prev_line_interrupted.
7571         * troff/input.c (exit_flag): Delete declaration.
7572         (LAST_PAGE_EJECTOR): New magic cookie.
7573         (token::next): Handle LAST_PAGE_EJECTOR.
7574         (exit_groff): Set exit_started and done_end_macro instead of
7575         exit_flag.  Call top_level_diversion::set_last_page.  Push a
7576         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
7577         another ejection after setting seen_last_page_ejector.
7579 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
7581         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
7583         * macros/tmac.e (TH): Make sure there's room for the initial
7584         header.
7586         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
7587         Set FVS in points rather than units.
7589 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
7591         * troff/div.c (top_level_diversion::add_trap): Don't consider the
7592         position of empty slots.
7594 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
7596         * ps/devps/S: Fix height and depth of parenrightex.
7597         * ps/devps/symbol.diff: Regenerate.
7599 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
7601         * tmac.e (u): Do underlining as in -mgs.
7603 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
7605         * tty/tty.c (tty_printer::end_page): If overstriking is
7606         suppressed, still turn overstruck horizontal and vertical lines
7607         into +.
7609         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
7610         2.1.
7612         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
7614 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
7616         * Version 1.05 released.
7618 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
7620         * tty/tty.c: Instead of keeping an array of glyphs and then
7621         sorting it, keep a ordered linked list of glyphs for each line.
7623         * driver/driver.h: Include stddef.h.
7625         * tty/tty.c (compare_glyph):
7626         * refer/refer.c (rcompare):
7627         * troff/env.c (compare_ranges): Arguments of qsort comparison
7628         function should be const void *.
7630         * troff/number.c (parse_term):
7631         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
7632         switch statement.
7634         * refer/label.y (consider_authors): Don't access variables
7635         constructed under a condition outside that condition: put braces
7636         round for statement containing declaration; redeclare use of same
7637         variable later.
7639         * pic/pic.y (text_expr): Delete production that allows
7640         parenthesised text_expr.
7641         (expr): Allow a conditional_expr to appear in parentheses.
7642         (conditional_expr): Rename to any_expr.
7644         * mm: Install new version 1.01 from jh.
7646         * lib/font.c (font::get_width): Cache scaled widths.
7647         (font::font): Initialize widths_cache.
7648         (font::~font): Destroy widths_cache.
7649         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
7651 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
7653         * c++test.c, c++test.ref: New files.
7654         * Makefile: Check that the C++ compiler works.
7656         * ps/tmac.pspic (PSPIC): Do a break.
7658         * ps/tmac.ps: Move definition of PSPIC into...
7659         * ps/tmac.pspic: New file.
7660         (PSPIC): Draw box around picture, but make it invisible to grops.
7661         * ps/tmac.ps: Load tmac.pspic.
7662         * ps/Makefile: Install tmac.pspic.
7664 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
7666         * lib/font.c (scale_round): If n is negative,
7667         subtract .5 before truncating floating point result.
7669         * lib/fontfile.c: Include <errno.h>.
7671 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
7673         * driver/input.c (get_char): Inline. Don't update current_lineno.
7674         Change callers to up date current_lineno if necessary.
7675         Use get_char() instead of getc(current_file).
7677 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
7679         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
7681 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
7683         * tty/tty.c (tmac.tty): Define \(rg as (R).
7685 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
7687         * lib/lib.h: New define a_delete.
7688         * Use a_delete instead of delete when deleting an array of objects
7689         without destructors.
7691         * lib/lib.h: Rename adelete to ad_delete.
7692         * Change uses of adelete.
7694 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
7696         * eqn/eqn.y: Include lib.h.
7698         * troff/node.c (grow_font_table): Delete old_font_table.
7700         * mm: Install new version from jh.
7702 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
7704         * tbl/table.h (format_type): Make global instead of local to class
7705         entry_format.  Prefix enumerators with FORMAT_.
7706         * tbl/table.c, tbl/main.c: Corresponding changes.
7707         * refer/token.h (token_type): Make global.  Prefix enumerators
7708         with TOKEN_.
7709         * refer/token.[ch]: Corresponding changes.
7710         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
7712         * troff/div.c (node::set_vertical_size): Don't name argument.
7714 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
7716         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
7717         * lib/lib.h: Define adelete accordingly.
7718         * pic/object.c (graphic_object::graphic_object):
7719         * tbl/main.c (format::~format):
7720         * tbl/table.c (table::~table):
7721         * refer/ref.c (reference::~reference, reference::merge,
7722         reference::insert_field, reference::delete_field): Use adelete.
7724         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
7725         * refer/token.h:
7726         * tbl/table.h: Corresponding changes.
7728         * common.c (common_output::dashed_arc, common_output::dotted_arc):
7729         Ensure total_angle is positive.
7731 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
7733         * refer/ref.c (reference::merge, reference::insert_field,
7734         reference::delete_field): Avoid delete[0].
7736         * refer/token.c (init_special_chars): Move calls to cmupper
7737         outside calls to init_two_char_letter to work around bug in gcc
7738         2.0.
7740 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
7742         * lib/new.c (operator new): Use __builtin_new for g++.
7744         * pic/object.c (graphic_object::~graphic_object):  Don't use
7745         delete [] on 0.
7747         * pic/object.c (output::compute_scale): Initialize max_width and
7748         max_height.
7750 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
7752         * troff/input.c (write_request): Call fflush.
7754         * troff/node.h (class composite_node): Move declaration to node.c
7755         * troff/input.c (charinfo_to_node): Rename to ...
7756         (charinfo_to_node_list): Return node list rather than composite
7757         node.
7758         * troff/node.c (make_composite_node): New function.
7759         (make_node, add_char): Call make_composite_node instead of
7760         charinfo_to_node.
7761         (class composite_node): Add a tfont * member.  Delete font_size
7762         member.
7763         (composite_node::composite_node, composite_node::copy,
7764         composite_node::size): Corresponding changes.
7765         (composite_node::tprint): Provide constant spacing, emboldening
7766         and track kerning as specified in tfont.
7767         (composite_node::width): Change width calculation accordingly.
7768         * troff/env.h (environment::composite): New member.
7769         (environment::is_composite, environment::set_composite): New
7770         functions.
7771         * troff/env.c (environment::environment): Initialize composite.
7772         * troff/input.c (charinfo_to_node): Call
7773         environment::set_composite.
7774         * troff/node.c (make_composite_node, make_glyph_node): Use the
7775         plain version of the tfont if the environment is composite.
7777         * troff/node.c (font_info::get_space_width): Additional argument
7778         giving space_size.  Handle constant space correctly. Scale by
7779         space_size unless constant spaced.
7780         (env_sentence_space_width): New function.
7781         * troff/node.h: Declare it.
7782         * troff/env.h (environment::get_space_size,
7783         environment::get_sentence_space_size,
7784         environment::get_narrow_space_width,
7785         environment::get_half_narrow_space_width): Make inline.
7786         (environment::get_space_width): Make inline.  Just call
7787         env_space_width.
7788         * troff/env.c: Delete definitions for funtions made inline.
7789         (environment::space_newline, environment::space): Use
7790         env_sentence_space_width(). Don't scale by space_size.
7791         * troff/node.h: Move declarations of env*space_width() functions
7792         into env.h.
7794 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
7796         * macros/tmac.s (PS): Don't try to set negative indent.
7798 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
7800         * pic/pic.y: Fix min function.
7802 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
7804         * man/mdate.sh: Clear LANGUAGE.
7806 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
7808         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
7809         * pic/lex.c: New COMMAND keyword.
7810         * pic/pic.y (print_args, print_arg): New rules.
7811         (placeless_element): Use print_args for PRINT.
7812         New COMMAND element.
7814 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
7816         * troff/input.c (terminal): Handle missing argument correctly.
7818         * pic/pic.y (text_expr): New rule.
7820         * pic/pic.y: Implement := operator.
7822 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
7824         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
7825         mdoc.
7827 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
7829         * ps/devps/dingbatsrmap: Include this in the distribution.
7831         * macros/tmac.doc: Replace with new version from 2nd Networking
7832         Release. Fix loading of doc-* files.
7833         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
7834         * macros/tmac.doc.old: New file.  Apply fixes that had been
7835         applied to old tmac.doc.
7836         * macros/tmac.andoc: Check that we're running under groff.
7837         * macros/Makefile: Rework.
7839 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
7841         * tbl/table.h (format_type): 
7842         * refer/token.h (token_type): If NESTED_TYPES is defined, use
7843         typedef to make these types visible at file scope.
7844         * Makefile: Add NESTED_TYPES configuration option.
7846         * troff/div.c (mark): At the top level use the value of
7847         nl_reg_contents rather than the current vertical position.
7849 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
7851         * tty/tty.c: Implement \D for horizontal or vertical lines.
7852         (tty_printer::set_char): Use vec_used+2 as serial number.
7853         Don't allow size of vector to exceed USHRT_MAX-2.
7854         Split off part into...
7855         (tty_printer::add_char): New function.
7856         (tty_printer::draw): New function.
7857         (compare_glyph): Handle equal serial numbers.
7858         (tty_printer::end_page): Handle overstruck characters from \D.
7859         (main, usage): Implement -d option.
7861 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
7863         * tbl/main.c (process_format):
7864         * eqn/text.c (split_text):
7865         * troff/input.c (token::next): Use inner block for declarations
7866         with initializers in switch statement.
7868 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
7870         * pic/common.c (common_output::dash_line): Cope with zero-length
7871         lines.
7873 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
7875         * Version 1.04 released.
7877 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
7879         * macros/tmac.an (TH): Define a macro an-init to define variables
7880         based on command line arguments.
7881         (an-header): Call it.
7883 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
7885         * Makefile (install.mm): Rename to install.dwbmm.
7887         * Makefile: Integrate mm.
7888         * mm: New directory.
7890 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
7892         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
7893         <sys/types.h>.
7895         * pic/troff.c (troff_output::simple_spline,
7896         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
7897         shadowing parameter.
7899         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
7901         * lib/ptable.h: Add explicit casts when converting from unsigned
7902         long to unsigned.
7904         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
7905         * dvi/devdvi/Makefile: Install SA, SB.
7907         * refer/indxbib.c: Add declaration of mktemp.
7909         * refer/lookbib.c: Add declaration of isatty.
7911 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
7913         * pic/lex.c (interpolate_macro_with_args):  While collecting
7914         arguments, keep track of whether we're in a string.
7916 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
7918         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
7919         down with \v, so as to avoid problems with top of page trap
7920         setting no space mode.
7922 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
7924         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
7926 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
7928         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
7929         Improve error message.
7931 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
7933         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
7934         printf("%03o");
7936 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
7938         * groff.c (possible_command::execp): Always use _exit() after a
7939         failed exec.
7941         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
7942         NO_SYS_WAIT_H   configuration options.
7943         * groff.c: Use these options.  Use POSIX-style macros to extract
7944         fields from the status returned by wait().
7946 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
7948         * tbl/table.c (table::compute_separation_factor): Allow the
7949         separation factor to drop to 0.
7951 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
7953         * refer/search.c: Include <errno.h>.
7955 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
7957         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
7959         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
7960         C++. 
7962         * pic/lex.c (input_stack::bol): Move definition out of class body.
7964         * pic/main.c: On MSDOS munge argv[0].
7966         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
7968         * lib/ptable.c (hash_string): Use unsigned long rather than
7969         unsigned.
7970         (next_ptable_size): Use unsigned rather than int.  Give an error
7971         message if we've hit the largest table size.
7972         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
7973         table size.
7975         * pic/object.h (object_spec): Make flags unsigned long.  Declare
7976         flags as const unisgned long rather than as enums.
7978         * pic/output.c: Deleted.
7980         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
7982         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
7983         Add additional argument.
7984         (line_entry::note_double_vrule_on_{left,right}): Set value of
7985         douvle_vrule_on_{right,left} flag according to argument.
7986         (simple_line_entry::simple_print,
7987         simple_line_entry::double_line_print): If adjacent to double vrule
7988         on a corner extend rather than shorten the rule by half the double
7989         vrule sep.
7991         * troff/number.c (parse_term): In checking for overflow, handle the
7992         case where the current horizontal position is negative.
7994 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
7996         * pic/object.c (draw_arrow): Check for object having zero length.
7998 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
8000         * eqn/main.c (do_file): Split off inline equation handling into...
8001         (inline_equation): New function.  Search for starting delimiter
8002         using...
8003         (delim_search): New function. Don't recognize a delimiter that
8004         occurs in the name of an escape sequence, number register, string
8005         etc.
8007 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
8009         * eqn/delim.c (delim_box::compute_metrics): Don't call
8010         define_extensible_string if left is 0.
8011         (delim_box::output):  Don't print the left delimiter if left is 0.
8012         (delim_box::debug_print): Check for left == 0 before calling printf.
8014 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
8016         * troff/Makefile (majorminor.c): Include only digits in
8017         minor_version.
8019 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
8021         * refer/dirnamemax.c: new file.
8022         * refer/genlimits.c: Deleted.
8023         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
8024         Don't check path length.
8025         * refer/Makefile: Add dir_name_max.o; delete genlimits.
8026         * Makefile: Add PATHCONF_MISSING option.
8028         * refer/indxbib.c (get_cwd): New function.
8029         (main): Use get_cwd().
8030         * lib/getcwd.c: New file.
8031         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
8032         GETCWD in SUBFLAGS.
8033         * lib/Makefile: Compile getcwd.o.
8035         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
8036         userdict.
8038         * refer/indxbib.c (main): Check success of mktemp.
8040         * lib/tmpfile.c: New file.
8041         * lib/Makefile: Add tmpfile.c.
8042         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
8043         * ps/ps.h: Delete declaration of mktemp().
8044         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
8045         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
8046         * driver/driver.h: No need now to include errno.h.
8048         * everywhere: Set errno to 0 before calling fopen().
8050         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
8051         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
8052         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
8054 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
8056         * troff/env.h (translate_space_to_dummy): Declare it.
8057         * troff/env.c (environment::space_newline, environment::space):
8058         If translate_space_to_dummy is set then make the width of spaces 0.
8059         * troff/input.c (translate): If the second character of a
8060         translation is a space, translate to unbreakable space.  If the
8061         first character is a space, set or clear translate_space_to_dummy
8062         according to whether the second character is \&.  Weird!
8064 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
8066         * groff.c (run_commands): Don't use non-zero exit code because a
8067         command gets SIGPIPE.
8069         * groff.c, groff.sh: Use -mXps with -TXps.
8071         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
8072         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
8073         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
8074         (ps_printer::special): New specials invis and endinvis.
8075         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
8076         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
8077         (ps_printer::end_page): Check that invis_count == 0.
8078         (ps_printer::invis_count): New member.
8079         (ps_printer::ps_printer): Initialize invis_count to 0.
8081         * troff/env.c (environment::hyphenate_line): Hyphenation
8082         indicator at beginning of word inhibits splitting after -, \(em
8083         etc.
8085         * pic/pic.y (element): Allow another element to follow } without
8086         any intervening separator.
8088 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
8090         * pic/lex.c (get_delimited): Allow tabs before delimiter.
8092 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
8094         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
8095         declaration of wait() in header files.
8096         * Makefile: Get rid of -DHAVE_UNION_WAIT.
8098         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
8100         * lib/lib.h: Declare return type of strerror as char *.
8102         * man/Makefile: Add g flag to sed substitutions.
8103         * Makefile (shgroff, bindist): Likewise.
8105 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
8107         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
8108         * ps/devps/prologue (PBEGIN): Define showpage after pushing
8109         userdict.
8111 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
8113         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
8114         userdict.
8116 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
8118         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
8119         group.
8121 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
8123         * troff/input.c (define_number_reg):  If currently undefined,
8124         don't define it if the argument is an invalid expression.
8126         * Makefile: Ignore return value of `if' commands without `else'
8127         parts.
8129         * Makefile: Split up CPPDEFINES into a series of separate
8130         configuration options.
8132         * troff/input.c (init_registers): Use time_t instead of long
8133         unless LONG_FOR_TIME_T is defined.  Use returned result rather
8134         than passing pointer.
8135         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
8137         * lib/Makefile (fontpath.h): Use gendef.
8139 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
8141         * troff/input.c (input_iterator::shift): Delete argument name.
8142         * troff/node.c (suppress_output_file::really_begin_page,
8143         suppress_output_file::really_transparent_char, node::ascii_print,
8144         node::tprint): Delete names of unused arguments.
8146 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
8148         * refer/label.y (string):  Pass $4 to command_error.
8150 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
8152         * Version 1.03 released.
8154 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
8156         * Makefile: Pass definition of SHELL in SUBFLAGS.
8158         * gendef: New file.
8159         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
8160         ps/Makefile: Use gendef to construct header files that are
8161         constructed from the Makefile.
8163         * macros/Makefile: make all should build stripped version of tmac.e.
8165         * refer/Makefile (clean): Remove y.output.
8167 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
8169         * ps/pfbtops.c (main): Add -v option which prints out a version
8170         number.
8171         * ps/Makefile (pfbtops): Link with libgroff.a.
8173 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
8175         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
8176         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
8178         * refer/lkbib.c (main): Always terminate reference with blank
8179         line.
8180         * refer/lookbib.c (main): Likewise.
8182         * refer/linear.c (file_buffer::load): Check that the file is not a
8183         binary file.
8185         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
8186         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
8187         Delete second inclusion of <sys/param.h>.
8189 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
8191         * troff/token.h (token::special): Deleted.
8193         * tbl/main.c (process_format): Rework so that opt->tab_char is
8194         recognized only when appropriate.
8196         * ps/Makefile (clean): Remove pfbtops.
8198 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
8200         * lib/font.c (text_file::next): Don't return if we have got a
8201         blank line.
8203 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
8205         * refer/refer.c (store_reference): Get hash code from old_table[i]
8206         when rehashing the table.
8208 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
8210         * eqn/box.c (box::top_level): Save size and prev size using \R and
8211         restore it afterwards. Set the size to the size at the beginning
8212         of the line.
8213         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
8214         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
8216         * refer/Makefile (limits.h): Use ./genlimits.
8218 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
8220         * refer/index.c: Delete declarations of stat() and fstat().
8222 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
8224         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
8226 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
8228         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
8230 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
8232         * troff/input.c (token::get_char): Handle \e.
8234         * refer/linear.c: Delete declarations of fstat() and stat().
8236 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
8238         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
8239         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
8241 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
8243         * troff/input.c (do_define_macro): Improve error handling for end
8244         of file while defining macro.
8246 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
8248         * eqn/box.h: Fix declaration of set_gsize.
8249         * eqn/box.c (set_gsize): Make argument const char *.
8250         (gsize): Declare as char *.
8251         * eqn/main.c (main): Don't convert gsize to int.
8252         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
8254         * Version 1.02 released.
8256 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
8258         * macros/tmac.andoc: New file.
8259         * macros/Makefile: Install tmac.andoc.
8261         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
8262         operator new and delete on OP_DELETE_BROKEN not being defined.
8263         * Makefile: Mention OP_DELETE_BROKEN.
8265 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
8267         * Makefile (bindist): Pass SUBFLAGS.
8269 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
8271         * Makefile, groff.c: Pass definitions to groff.c via device.h.
8273         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
8274         parameter.
8276         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
8278         * ps/ps.h, ps/psrm.c: Make comment_table and
8279         header_comment_table local to resource_manager::process_file.
8281         * groff.sh: With -TXps pass -printCommand option to gxditview.
8283         * groff.c (possible_command::print): Implement using
8284         append_arg_to_string.
8286         * xditview: Merge in new implementation with own ChangeLog.
8288 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
8290         * groff.c (main): Implement PRINT_OPTION.
8291         (append_arg_to_string): New command.
8292         (device_table): Set PRINT_OPTION flag for Xps.
8294 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
8296         * troff/groff.h: Rename to troff.h.
8298         * pic/lex.c (lookup_keyword, docmp): New functions.
8299         (get_token): Use new lookup_keyword.
8300         Don't include key.h.
8301         * pic/key.[ch], pic/pic.gperf: Deleted.
8302         * pic/Makefile: Remove gperf stuff.
8304         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
8305         into output.h.
8306         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
8308         * troff/Makefile, troff/node.c: Move definition of
8309         STORE_WIDTH into node.c.
8311         * etc/grog.pl, etc/grog.sh: Support -mdoc.
8313 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
8315         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
8316         dvi/devdvi/texb.map: Add lq and rq.
8317         dvi/devdvi: Regenerate fonts.
8318         * ps/devps/textmap: Add lq and rq.
8319         * ps/devps: Regenerate fonts.
8320         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
8321         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
8323         * pic/object.c (position_rectangle): When checking radius
8324         cope with possiblity that width or height is negative.
8325         (box_object::box_object): Have separate xrad and yrad with
8326         signs matching signs of dim components.
8327         (box_object::{north,south}_{east,west}): Use xrad and yrad.
8328         (box_object::print): With rounded boxes use absolute values
8329         for dim and rad arguments.
8331         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
8332         in fontpath.h.
8334         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
8336         * various files: Add explicit destructors to keep Saber CC +d
8337         happy.
8339 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
8341         * eqn/box.c (box::top_level): Restore fonts correctly after
8342         font changes in line containing inline equation.  Also
8343         restore previous font as well as current font.
8344         * eqn/pbox.h: Define necessary string and register names.
8346         * troff/input.c (token::next): Case 'R' calls do_register.
8347         (do_register): New function.
8349 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
8351         * groff.c, groff.sh: Support Xps device.  Allow each device
8352         to have a pseudo_name and a real_name.
8354         * groff.c (run_commands): Don't print `Broken pipe' messages.
8356         * ps/pfbtops.c: New file.
8357         * ps/Makefile: Add pfbtops.
8359         * troff/number.c (parse_term): Improved error message.
8361 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
8363         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
8365         * Makefile: Integrate refer.
8366         * refer: New directory.
8367         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
8368         man/lkbib.man: New files.
8369         * man/Makefile: Support refer man pages.
8371         * lib/lib.h: Declare is_prime.
8372         * lib/prime.c: New file.
8374         * troff/input.c (macro_source): New function.
8375         (init_input_requests): Bind "mso" to macro_source.
8377         * troff/env.c (environment::possibly_break_line): Maintain
8378         pointer to pointer to node to be split in ndp so as to avoid
8379         using address of freed node.
8381         * troff/env.c (environment::hyphenate_line): Maintain pointer to
8382         pointer to first node to be hyphenated in startp so as to
8383         avoid using address of freed node.
8385         * troff/env.c (class trie, class hyphen_trie): Make the
8386         elements of the trie be of type char not unsigned char.
8387         Declare arguments to be const char* instead of unsigned char *.
8388         
8389         * troff/env.c (hyphenate): Initialize hbuf[0].
8391         * troff/input.c (set_string): Declare p to be char * and cast
8392         *p to unsigned char when necessary.
8394         * troff/input.c (do_define_macro): Declare s to be const
8395         char*. Cast element to unisgned char when necessary, Declare
8396         d to be an int.  Handle EOF better.
8398         * troff/Makefile, troff/input.c: Different scheme for passing
8399         definitions of MACROPATH, HYPHENFILE and DEVICE.
8401 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
8403         * tty/devascii/R.proto: Delete entry for em.
8404         * tty/devlatin1/R.proto: Likewise.
8406 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
8408         * troff/input.c (translate): Stop when we get a space. Treat eof
8409         like newline.
8411         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
8413 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
8415         * tbl/main.c (process_format): A font name following a `f'
8416         modifier that starts with a digit can be only one character long.
8417         Also deal with EOF on the second character of the font name.
8419 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
8421         * troff/input.c (token::next): Turn \~ into an
8422         unbreakable_space_node.
8423         * troff/node.c (unbreakable_space_node): New class.
8424         * troff/node.h: Declare it.
8426 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
8428         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
8429         it's >= 0, before outputting it as a single byte.
8431 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
8433         * lib/font.c: Make font_char_metric::code an int.
8434         (font::get_code): Change return type to int.
8435         (font::load): Allow code to be arbitrary integer.
8436         * lib/font.h (font::get_code): Change return type to int.
8437         (font::number_to_index): Change argument type to int.
8438         * troff/input.c (token::next):  In case 'N', allow any value.
8439         Store value in token::val.
8440         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
8441         (token::get_char, token::add_to_node_list, token::process): Get
8442         number from val.
8443         (charinfo::set_number): Change argument to int.
8444         (charinfo::get_number):  Require that NUMBERED flag be set.
8445         (get_charinfo_by_number): Store numbered characters not between 0
8446         and 255 in a dictionary.
8447         * troff/charinfo.h (get_charinfo_by_number): Change argument type
8448         to int.
8449         (charinfo::number): Change type to int.
8450         (charinfo::set_number): Change type of set_number to int.
8451         * troff/node.c (troff_output_file::put_char_width,
8452         troff_output_file::put_char): Test whether character is numbered
8453         using charinfo::numbered().
8454         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
8455         values of num.
8456         * lib/nametoindex.c: New implementation to cope with arbitrary
8457         number characters.
8459         * troff/input.c (token::operator==): Test val for
8460         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
8461         TOKEN_SIZE.
8463         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
8464         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
8466 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
8468         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
8469         variable.
8471         * all Makefiles: rm targets of cp and >.
8473         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
8474         it.
8476         * eqn/lex.c (def_table): Add dollar.
8478 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
8480         * troff/input.c (do_width): Push back newline before closing delim
8481         like do_bracket.
8483 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
8485         * groff.c (possible_command::prepend_arg): New function.
8486         (main): Prepend device -m option.
8487         * groff.sh: Put device -m options before command-line options.
8489 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
8491         * macros/tmac.an (IP): Quote argument to TP.
8493         * ps/ps.c (main): New option -b, which sets...
8494         (broken_flags): New variable.
8495         (ps_printer::~ps_printer): Incorporate the setup section in the
8496         prolog if (broken_flags & NO_SETUP_SECTION).
8497         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
8498         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
8499         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
8500         ps_printer::print_needed_font_comment,
8501         ps_printer::print_supplied_font_comment,
8502         ps_printer::print_include_font_comments,
8503         ps_printer::lookup_doc_font, ps_printer::download_fonts,
8504         ps_printer::read_download_file, read_document_fonts, add_font,
8505         skip_line, parse_fonts_arg, document_font::document_font,
8506         document_font::~document_font, document_font::download,
8507         ps_output::include_file):  Deleted.
8508         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
8509         rather than %!PS-Adobe-2.0.  Make calls to
8510         resource_manager::need_font for each font that we used. Replace
8511         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
8512         print_supplied_font_comment, print_needed_font_comment by call to
8513         resource_manager::print_header_comments. Output %%Orientation
8514         comment. Output %%Requirements: numcopies comment if ncopies > 1.
8515         Don't output the prolog directly.  Instead call
8516         resource_manager::output_prolog.  Only define #copies when ncopies
8517         > 1.  Delete calls to print_include_font_comments  and
8518         download_fonts.  Add call to resource_manager::document_setup.
8519         (ps_printer::do_file): Call resource_manager::import_file instead
8520         of including it ourselves.
8521         (ps_printer::do_import): Likewise.  Also don't call
8522         merge_import_fonts. Push userdict on the dictionary stack before
8523         and pop it afterwards.
8524         Move declaration of ps_output into ps.h.
8525         * ps/psrm.c: New file implementing resource_manager class.
8526         * ps/ps.h: New file declaring ps_output and resource_manager
8527         classes.
8528         * ps/devps/zapfdr.ps:
8529         * ps/devps/symbolsl.ps:
8530         * ps/devps/prologue:  Use 3.0 conventions.
8531         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
8532         Add default definition of BROKEN_SPOOLER_FLAGS.
8533         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
8534         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
8536 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
8538         * etc/grog.pl: New file.
8539         * Makefile (GROG): New variable.
8540         Add GROG to SUBFLAGS.
8541         * etc/Makefile (GROG): New variable.
8542         (install.nobin): Install $(GROG) rather than grog.sh.
8544 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
8546         * eqn/special.c (special_box::compute_metrics): Make the input and
8547         output strings the same.  Get the new height and depth from the
8548         predefined height and depth registers.  Also make subscript kern
8549         and skew available.
8550         (special_box::compute_subscript_kern, special_box::compute_skew):
8551         New functions.
8553         * eqn/box.c (pointer_box::compute_skew,
8554         simple_box::compute_metrics, box::top_level)
8555         * eqn/text.c (prime_box::compute_metrics,
8556         prime_box::comput_subscript_kern)
8557         * eqn/limit.c (limit_box::compute_metrics):
8558         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
8559         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
8560         negative numbers in `nr' requests with a leading 0.
8562 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
8564         * eqn/special.c: New file.
8565         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
8566         Add new rule for simple.
8567         * eqn/lex.c (token_table): Add SPECIAL.
8568         * eqn/box.h: Declare make_special_box.
8569         * eqn/Makefile: Add special.[co].
8571 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
8573         * ps/devps/prologue: Possibly set packing to true while defining.
8574         Create grops dictionary here.  Initialize local variables before
8575         defining procedures.
8576         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
8577         the dictionary stack. Set strokeadjust and overprint to false if
8578         the relevant operators are defined.
8579         (PEND): New procedure.
8580         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
8581         prologue.  Do everything else in the setup section.
8582         (ps_printer::do_import): Just call PBEGIN and PEND around the
8583         picture. Also push userdict before, and pop it afterwards.
8585 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
8587         * troff/node.c (bracket_node::tprint): Brackets were being printed
8588         1m too low.
8590         * macros/tmac.an (SH, SS): Set fill mode.
8592 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
8594         * troff/div.c (top_level_diversion::begin_page): Set
8595         high_water_mark to 0.
8597 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
8599         * man/mdate.sh: New file.
8600         * man/mdate.c: Deleted.
8601         * man/Makefile: Use mdate.sh instead of mdate.
8602         (mdate): Deleted.
8604         * eqn/lex.c (do_gsize): Supply missing argument to error message.
8606 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
8608         * man/mdate.c: New file.
8609         * man/*.man: Replace modification date by @MDATE@.
8610         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
8611         (mdate): New target.
8613         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
8614         Remove illegal input characters.
8616 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
8618         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
8620 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
8622         * troff/div.c (begin_page): Change behaviour when
8623         !first_page_begun and !break_flag.
8625         * troff/input.c (do_name_test): Return 0 if argument is empty.
8627         * troff/input.c (read_long_escape_name): Require closing ] to be
8628         at same input level as opening [.
8630         * troff/input.c (read_increment_and_escape_name): New function.
8631         (get_copy, process_input_stack): Use this for \n.
8633 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
8635         * troff/div.c (top_level_diversion::begin_page): Ignore the
8636         current value of page_number if !first_page_begun.
8638         * groff.c (main): Fix declaration of buf.
8640         * troff/input.c (do_name_test): New function.
8641         (token::next): Implement \A.
8642         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
8643         (token::description, token::add_to_node_list, token::process):
8644         Handle TOKEN_ESCAPE.
8645         * troff/token.h: New token TOKEN_ESCAPE.
8647 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
8649         * pic/main.c (do_picture): Allow space before and after filename
8650         following `<'.  Check that the filename is not empty.
8652 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
8654         * Version 1.01 released. 
8656         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
8658         * dvi/tmac.dvi: ftr HR to H.
8660         * macros/tmac.e: Round up computation of $r.
8662         * xditview/tmac.X:  Don't give up completely in compatibility mode.
8663         Use \n(.s instead of \n[.s].
8665         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
8666         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
8667         Add u to factors inside \s[...]. Rename frac to dvi-frac.
8668         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
8669         short names in the char definitions.
8671         * ps/tmac.ps: Don't give up completely in compatibility mode.
8672         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
8673         quote in front of \n(.s. Add u to factors inside \s[...].
8675 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
8677         * tty/tmac.tty: Call the nroff request.
8679         * macros/tmac.e ((x, )x):  Better definitions that work properly
8680         in a diversion.
8681         (@0, @1): Helper macros for (x.
8683         * macros/tmac.e ($s, hl): Use \l rather than \D.
8685         * tty/tmac.tty: Make it work better in compatibility mode.
8686         (pchar): Rename to tty-char.
8688         * macros/tmac.e (@E): New macro.
8689         (r, i, b, rb, bi): Use @E.
8691         * macros/tmac.e (@F): Don't use (;...) syntax.
8693         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
8694         it was modified for groff.
8696         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
8698         * macros/tmac.e (<., .>): Removed.
8699         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
8701         * macros/tmac.e: Remove check that groff is being used.
8703         * macros/tmac.e (@C): Change families only if using groff; turn
8704         compatibility mode off while changing familes. Save compatibility
8705         mode before changing families and restore it afterwards.
8707         * macros/tmac.e (@h): Remove test for offset + line length.
8709         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
8710         (lo, th, ac): Define to call @S instead of using als.
8712         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
8713         the ratio of the vertical spacing to the point size in units
8714         expressed as a percentage.  Use these instead of $10r and $10R,
8715         Delete $10r and $10R.
8717         * lib/font.c (font::load): In default computation of space_width,
8718         divide by sizescale.  Use scale_round.
8720         * macros/tmac.an (TP): Don't call `nf'.
8721         (an-do-tag): Don't call `fi'.
8723 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
8725         * troff/input.c (process_input_stack): Handle the case where
8726         spaces at the beginning of an input line are followed by a
8727         newline.
8729 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
8731         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
8732         * groff.sh: Use pic -x with the dvi device.
8734         * dvi/devdvi/FontMakefile (H): Don't use -s.
8736         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
8737         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
8738         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
8739         in FONTS.
8741 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
8743         * ps/psfig.diff: New file.
8744         * ps/tmac.psfig: New file.
8746 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
8748         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
8749         (]-): Don't call ref*do-tl.
8751         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
8753         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
8754         (fn@do-FS): Rename to fn*do-FS.
8756         * troff/input.c (transparent_translate): New function.
8757         (process_input_stack): Apply transparent_translate before calling
8758         diversion::transparent_output(unsigned char).
8760 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
8762         * troff/input.c (do_define_macro): Define the macro before calling
8763         skip_line.
8765         * xditview/Makefile: Add DEVICES variable.  Change install target
8766         to use this.
8768 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
8770         * groff.c (run_commands): Handle the possibility that there are
8771         child processes other than those forked by us.
8773 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
8775         * lib/string.c (string::append): New function.
8776         * lib/stringclass.h: Declare it.
8778 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
8780         * eqn/main.c (main): New option -N which sets
8781         no_newline_in_delim_flag. 
8782         (do_file): If no_newline_in_delim_flag is set don't allow newlines
8783         in delimiters.
8784         * groff.c (main): Pass -N on to eqn.
8785         (help, synopsis): Mention -N.
8786         * groff.sh: Implement -N.
8788 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
8790         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
8791         (]-): Call ref*do-tl if ref*need-tl is non-zero.
8792         (XP): Allow as initializer.
8794 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
8796         * troff/env.c (environment::wrap_up_field): If field_spaces are
8797         non-zero and we have a current_tab, subtract padding from
8798         tab_distance.  If this makes tab_distance <= 0, use the next tab
8799         stop instead.  If there isn't any next tab or it's a left tab,
8800         wrap up the current tab.
8801         (environment::start_field): Initialize tab_precedes_field.
8802         (environment::wrap_up_tab): If there's a current field, update
8803         pre_field_width, field_distance and tab_precedes_field.
8804         * troff/env.h (environment::tab_precedes_field): New member.
8806 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
8808         * ps/ps.c (ps_printer::do_file): New function.
8809         (ps_printer::special): Bind to `file' special.
8810         (ps_printer::do_exec): Set ndefined_styles to 0.
8812 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
8814         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
8815         Avoid stripping first character from the start of unrecognized
8816         escapes.  Use lex_error instead of error to report errors.
8817         * eqn/lex.c (get_token): Rework handling of escapes.
8818         (lex_error): Move declaration into...
8819         * eqn/eqn.h.
8821         * xditview/xditview.c (main): Make -page option work.
8823         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
8825 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
8827         * macros/tmac.s (B2): Correct size of box.
8829 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
8831         * macros/tmac.s (B2): Postpone drawing the box until in the
8832         top-level diversion.
8834         * tty/tmac.tty: Add font translations for C, CR, CW.
8836         * groff.c (synopsis, help): Document -i.
8837         * groff.sh: Implement -i.
8839         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
8840         Simplify the construction of SN.
8842         * troff/number.c (parse_term): Give `|' a higher precedence.
8843         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
8844         accordingly.
8846         * macros/tmac.s (B2): Use par@finish instead of par@reset.
8848 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
8850         * lib/string.c (string::move): New function.
8851         * lib/stringclass.h: Declare it.
8853 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
8855         * troff/env.c (distribute_space): Add optional argument
8856         `force_forward'.
8857         (environment::wrap_up_field): Call distribute_space with
8858         `force_forward' argument of 1.
8860 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
8862         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
8863         Inline it.  Move reallocation into...
8864         (string::grow1): New function.
8865         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
8866         dependencies to include library header files.
8867         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
8869 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
8871         * macros/tmac.s (@NH): Use the same number registers than -ms does
8872         for the heading level counters.  Use the same string that -ms does
8873         for the number for this heading.
8875 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
8877         * lib/new.c (operator new): Cast result of malloc to char *.
8879         * troff/input.c (spring_trap, lookup_request): Add assert that nm
8880         is not null.
8882 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
8884         * groff.c (main): Support -i.
8886 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
8888         * pic/pic.h: Include <osfcn.h>.
8890         * ps/ps.c: Add declaration of mktemp.
8892         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
8893         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
8894         argument as union wait *.
8895         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
8896         argument to union wait *.
8898 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
8900         * tty/tmac.tty: Add definition of \(co.
8902         * pic/object.c (make_arc): Only increase radius when radius
8903         strictly less than d.
8904         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
8905         more than once.
8907         * troff/env.c (environment::environment(symbol),
8908         environment::environment(const environment *)):  Initialize
8909         input_trap_count.
8911 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
8913         * tbl/main.c (main): Add exit(0).
8915         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
8917         * pic/main.c (main):
8918         * eqn/main.c (main):
8919         * tbl/main.c (main):
8920         * etc/soelim.c (main):
8921         * driver/printer.c (printer::~printer):
8922         * troff/node.c (real_output_file::~real_output_file,
8923         real_output_file::flush):  Check for errors on stdout.
8925         * most files: Add 1991 to copyright notice.
8927         * macros/tmac.s: Don't test \n(.x and \n(.y.
8929         * troff/input.c (token::next): Rename `escape_char' label to
8930         `handle_escape_char' and `normal_char' label to
8931         `handle_normal_char'.
8933 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
8935         * groff.c (main, synopsis, help): Support -a option.
8936         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
8937         to trflags while parsing options.
8939 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
8941         * troff/number.c (parse_term): With `m', `M' and `n' scale
8942         indicators, convert scale factor to hunits before scaling.
8944 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
8946         * lib/font.c (scale_round): Better test for overflow when n is
8947         negative.
8949 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
8951         * tbl/main.c (process_format): Add second argument of type
8952         options*. Change callers.  Allow opt->tab_char as well as '\t'
8953         between format items.
8955 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
8957         * macros/tmac.an (PD): With no arguments, make sure register PD is
8958         at least \n[.V].
8959         (TH): Call PD with no argument, instead of setting register PD
8960         directly.
8962 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
8964         * Version 1.00 released.
8966 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
8968         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
8970         * dvi/devdvi/DESC: Mount CW instead of CR.
8972         * dvi/tmac.dvi: Add definition of \(tm.
8974         * dvi/devdvi/texsy.map: Add lh, and rh.
8975         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
8976         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
8978         * dvi/devdvi/FontMakefile: Generate H from cmss10.
8979         * dvi/devdvi/Makefile: Install H.
8980         * dvi/devdvi/H: New file.
8982 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
8984         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
8985         be 0.
8987 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
8989         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
8991         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
8993         * macros/tmac.s (@EN): Handle the case where the equation is empty
8994         but the label is not.
8996 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
8998         * troff/groff.h: New warning category WARN_SPACE.
8999         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
9000         WARN_SPACE to warning_table.
9001         (interpolate_macro): Give a warning of type WARN_SPACE if the name
9002         is longer than two characters and is not defined, but the first
9003         two characters do make a defined name.
9005         * PROBLEMS: New file.
9007         * CHANGES: New file.
9008         * README-0.6, README-1.00: Deleted.
9010         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
9011         * xditview/devX75/Makefile: Make devX75-12.
9012         * xditview/devX100/Makefile: Make devX100-12.
9014         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
9015         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
9017 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
9019         * README-0.7: Rename to README-1.00.
9021         * macros/tmac.pic: New file.
9022         * macros/Makefile (install.nobin): Install tmac.pic.
9024 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
9026         * troff/env.c (hyphen_word): Correct the test for whether the
9027         token is a hyphen.  Reset npos to 0.
9029         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
9031 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
9033         * macros/tmac.s (ds*common-end): Call par*reset.
9034         (PE): Likewise.
9035         (par@reset-indent): Deleted.
9037         * macros/tmac.s (@IP): Divert the label.
9039 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
9041         * xditview/draw.c (setGC): Use a line width of .1m rather than
9042         .04m by default; round rather than truncate value.
9044         * tbl/table.c (class empty_entry): New class.
9045         (empty_entry::empty_entry, empty_entry::line_type): New functions.
9046         (table::add_entry): Represent empty entries by objects of type
9047         empty_entry.
9048         (table_entry::line_type): Return -1.
9049         (table::determine_row_type): Ignore entries with line_type 0.
9050         Treat type -1 as non-lines.
9052 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
9054         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
9055         macros/tmac.s: Rename \(-d to \(Sd.
9057 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
9059         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
9060         * xditview/libXdvi/DviChar.c: Likewise.
9061         * dvi/devdvi/texsy.map: Add `<<', `>>'.
9063 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
9065         * troff/div.c (top_level_diversion::begin_page): Call
9066         init_output() if the_output is 0.
9068 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
9070         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
9071         ESCAPE_c.
9072         (get_copy): Turn \E into ESCAPE_E.
9073         (token::process, asciify): Handle ESCAPE_E.
9075         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
9076         (RD): New macro.
9077         (DS): Implement `.DS R'.
9079 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
9081         * macros/tmac.s (FS): New macro.
9083         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
9085         * macros/tmac.s (cov*tl-init): Remove after first execution
9086         instead of aliasing to @nop.  Call top of page macro explicitly
9087         instead of setting trap; call @init first.  Set pg@top as top of
9088         page macro.
9089         (cov*auto-init): Deleted.  Set cov*tl-init instead of
9090         cov*auto-init as top of page trap. 
9091         (TL, LP): Do a break instead of calling cov*tl-init.
9092         (cov*print): With RP format but no TL, alias FS and FE to @FS and
9093         @FE; in this case also give a warning and always start another
9094         page. No need to set pg@top here.
9095         (cov*tl-init): Rename to cov*first-page-init.
9097         * macros/tmac.s (RP): Do `.pn 0'.
9098         (cov*tl-init): With RP format don't do `.pn 0'.
9100         * macros/tmac.s (pg@cs-top): Set no space mode.
9102         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
9103         (cov*ab-init): Alias TL, AU and AI to these.
9105 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
9107         * macros/tmac.s (@EQ): Move the space before the equation into @EN
9108         (@EN): Do nothing unless \n[dl] is > 0.
9110 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
9112         * pic/object.c (ellipse_object::radius): New function.
9114         * VERSION: Change version to 0.7.
9116         * tbl/table.c (block_entry::do_divert): Declare return type as
9117         void.
9118         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
9120 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
9122         * troff/column.c: New file.
9123         * troff/Makefile: Corresponding changes.
9125         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
9126         Friend of vunits.
9128         * troff/div.c (top_level_diversion::space): If the space causes
9129         the first-page transition and springs a trap, truncate the space
9130         to 0.
9132 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
9134         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
9135         the document.
9137         * pic/troff.c (troff_output::line_thickness,
9138         troff_output::set_fill): Do a horizontal motion to compensate for
9139         the width of the \D escape sequence.
9141 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
9143         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
9144         (not X75).
9146         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
9147         to printf.
9149         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
9150         Supply empty definition.
9151         (text_entry::simple_print, simple_text_entry::simple_print):
9152         Delete declarations.
9153         (table::add_entry): Represent empty entries by objects of type
9154         `simple_entry'.
9156 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
9158         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
9160         * tbl/table.c (left_text_entry::add_tab): New function.
9162         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
9163         initialize like LP.
9165 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
9167         * troff/env.c (environment::start_field): Give an error message if
9168         there is no next tab.
9170 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
9172         * troff/env.c (hyphenate): Skip initial elements with zero
9173         hyphenation code.
9175         * macros/tmac.s (par@init): Keep VS in points rather than units.
9177 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
9179         * pic/main.c (main): Implement `-c' option.
9180         * pic/output.h: Declare make_tpic_output().
9181         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
9182         protected.
9183         (tpic_output): New class.
9184         (tpic_output::tpic_output, tpic_output::set_pen_size,
9185         tpic_output::command, make_tpic_output): New functions.
9187 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
9189         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
9190         if they're not already defined.
9191         * tbl/table.c (init_output): Don't test \n(.g.
9193         * troff/input.c (do_if_request): Delete `g' condition. Recognize
9194         `d', `r' and `c' conditions even in compatibility mode.
9196 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
9198         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
9199         box.
9201 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
9203         * troff/env.h (environment::prev_line_interrupted): New member.
9204         (environment::get_prev_line_interrupted): New function.
9205         * troff/env.c (environment::newline): Set prev_line_interrupted.
9206         (environment::environment(const environment *),
9207         environment::environment(symbol)): Initialize
9208         prev_line_interrupted.
9209         * troff/input.c (process_input_stack): Don't give special
9210         treatment to space and newline at the beginning of the line if the
9211         previous line was interrupted.
9213 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
9215         * eqn/eqn.y: Disallow PRIME by itself.
9216         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
9217         PRIME.
9218         (def_table): Remove definition of '.  Define prime to be `.
9220         * eqn/eqn.y: Split off part of rule `script' into a new rule
9221         `nonsup'.
9223 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
9225         * macros/tmac.s ({, }): New string aliases.
9227 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
9229         * README-0.7: New file.
9231 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
9233         * macros/tmac.s: New file.
9234         * man/groff_ms.man: New file.
9235         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
9236         * Makefile.bd: Similarily.
9237         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
9238         definition of TMAC_S.
9239         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
9240         * macros/TODO: New file.
9242 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
9244         * troff/env.c (right_justify): New function.
9245         (init_env_requests): Bind this to request "rj".
9246         (center_lines): Set right_justify_lines to 0. If we get a bad
9247         integer, center 1 line.
9248         (environment::environment(symbol), environment::environment(const
9249         environment *)): Initialize right_justify_lines.
9250         (environment::get_right_justify_lines): New function.
9251         (init_env_requests): Bind this to number_register ".rj".
9253         * troff/env.c (environment::choose_breakpoint): Implement
9254         hyphenation_margin and hyphenation_space.
9255         (environment::get_hyphenation_space,
9256         environment::get_hyphenation_margin): New functions.
9257         (init_env_requests): Bind these to .hys and .hym.
9258         (hyphenation_space_request, hyphenation_margin_request): New
9259         functions
9260         (init_env_requests): Bind these to hys and hym.
9261         (environment::environment(symbol), environment::environment(const
9262         environment *)): Initialize hyphenation_margin and
9263         hyphenation_space.
9264         * troff/env.h: Corresponding changes to class environment.
9266 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
9268         * troff/div.c (blank_line): Always do a break.
9270         * eqn/box.c (do_text): Turn off escapes while appending text to
9271         string.
9273 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
9275         * troff/input.c (while_break_request, while_continue_request): New
9276         functions.
9277         (init_input_requests): Bind these to "break" and "continue".
9278         (while_depth, while_break_flag): New variables.
9279         (while_request): Update while_depth.  Break out of loop if
9280         while_break_flag is set.
9282 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
9284         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
9285         rather than 0.
9287 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
9289         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
9291         * stringify: New file.
9292         * Makefile (groff.o): Use stringify.
9294         * xditview/tmac.X: Remove definition of \(rn.
9295         * xditview/libXdvi/DviChar.c: Remove radicalex from
9296         Adobe_symbol_map.
9298 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
9300         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
9301         (alphabetic_block_entry::alphabetic_block_entry,
9302         alphabetic_block_entry::divert, alphabetic_block_entry::print):
9303         New functions.
9304         (block_entry::divert): Split off body into ...
9305         (block_entry::do_divert): If the block is alphabetic, subtract 2n
9306         from the line length; also update the span width to dl+2n, and the
9307         alphabetic span width to dl.
9309         * driver/input.c (do_file):  While reading argument to D command,
9310         when expanding buffer, multiply szp by sizeof(int) rather than 2
9311         in the argument to memcpy.
9313         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
9314         width of alphabetic columns.
9316 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
9318         * troff/node.c (lookup_family): Supply second argument to lookup.
9320         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
9321         search, return immediately if v is 0.
9323         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
9324         (troff_output::start_picture): Set this reg.
9325         (troff_output::end_picture): Remove this reg
9326         * eqn/box.c (box::extra_space): Don't produce `\x's if
9327         EQN_NO_EXTRA_SPACE_REG is defined.
9329         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
9330         * eqn/text.c (split_text): Map ' to \(fm when it's the first
9331         character.
9333 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
9335         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
9336         requests.
9338         * troff/div.c (top_level_diversion::top_level_diversion):
9339         Initialize page_number to 0.
9341 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
9343         * groff/troff (environment::environment(const environment *)):
9344         Initialize name to e->name, rather than "anonymous".
9346 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
9348         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
9349         requested_page.  Split middle part into ...
9350         (FindPage): New function.
9351         (SetValues): If we don't yet know the last page, and the requested
9352         page is greater than the current page, call FindPage.
9353         Update the font_map_string before doing this.
9355         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
9356         Translate \(lh and \(rh into left and right double arrows.
9358         * troff/node.c (class hyphen_inhibitor_node): New class.
9359         (hyphen_inhibitor_node::hyphen_inhibitor_node,
9360         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
9361         hyphen_inhibitor_node::type,
9362         hyphen_inhibitor_node::get_hyphenation_type): New functions.
9363         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
9364         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
9365         word.
9367 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
9369         * troff/node.h (dummy_node::get_hyphenation_type,
9370         transparent_dummy_node::get_hyphenation_type):  Declare them.
9371         * troff/node.c: (dummy_node::get_hyphenation_type,
9372         transparent_dummy_node::get_hyphenation_type): New functions.
9374 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
9376         * xditview/libXdvi/draw.c: If M_PI not defined after including
9377         math.h, then define it.
9379         * xditview/Makefile: Add definition of AR. Pass it to the submake
9380         in libXdvi.
9381         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
9383 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
9385         * troff/dictionary.h (object_dictionary::alias): Declare return
9386         value as int.
9387         * troff/dictionary.c (object_dictionary::alias): Return non-zero
9388         if the old name was defined.
9389         * troff/input.c (alias_macro): Give a warning if the old name was
9390         not defined.
9391         * troff/reg.c (alias_reg): Likewise.
9393 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
9395         * troff/input.c (token::next): Delete implementation of \R.
9397         * macros/Makefile: Strip comments from tmac.e while installing it.
9399         * troff/input.c: New variable `nroff_mode'.
9400         (troff_request, nroff_request): New functions.
9401         (init_input_requests): Bind `troff' and `nroff' to troff_request
9402         and nroff_request.
9403         (do_if_request): Compute results of t and n conditions from
9404         nroff_mode.
9406         * text/text.c (split_text): Fix typo in >=.
9408         * eqn/lex.c: Add definition of `==' to def_table.
9410 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
9412         * pic/tex.c (tex_output::start_picture): Change the definitions of
9413         \graph and \graphtemp so that they work properly with Plain TeX.
9415         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
9416         argument to `ar' is not less than the first.
9418         * pic/pic.y: Allow a comma between elements of the variable list
9419         in the argument to `reset'.
9421         * pic/object.c (arc_object::arc_object): Fix computation of
9422         radius.
9424         * eqn/main.c (main): Add exit(0).
9426 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
9428         * troff/div.c (begin_page): Test no_space_mode after doing the
9429         break, but still push the page ejector cookie before doing the
9430         break.  Also set the next page number after doing the break.
9431         
9432         * xditview/xditview.c (NewFile): Don't set the title and icon name
9433         if this is the first file and its name is `-'.
9434         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
9435         the X75 and X100 devices.
9436         (main): If a device has the XT_OPTION flag set and there's exactly
9437         one file argument, pass the driver -xrm and -title options to set
9438         the icon name and window title to the name of the file.
9440         * troff/env.c (environment_switch): If there was an argument but
9441         it wasn't a valid number or name, then pop an environment but
9442         don't give an error message on underflow.
9444         * troff/number.c (start_number): Correct spelling in error message.
9446         * troff/input.c (token::delimiter): Don't print an error message
9447         if err is false.
9449         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
9450         ParseDrawFunction if dw->display_enable is true.
9452 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
9454         * pic/pic.y: Parse text positioning like normal attributes, so as
9455         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
9456         positioning attribute.
9458 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
9460         * tbl/main.c (process_data): When in state START while reading a
9461         text block, don't change to state MIDDLE if c is a newline.
9463 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
9465         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
9466         so as to avoid shadowing parameter.
9468 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
9470         * tbl/table.c (trim_space): Deleted.
9471         (table::add_entry): Don't call trim_space.
9473 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
9475         * VERSION: Change version to 0.6.
9477         * troff/number.c (parse_expr): Make == work.
9479 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
9481         * man/grog.man: New file.
9482         * man/Makefile: Add grog.n to MAN1PAGES.
9483         * etc/grog.sh: New file.
9484         * etc/Makefile: Install grog.sh as grog.
9486 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
9488         * troff/input.c (token::next): Implement \E.
9490 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
9492         * xditview/tmac.X: Change font translations to match tmac.ps.
9494         * troff/input.c (non_empty_name_warning): Don't give a warning if
9495         `\{' terminates the name.
9497 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
9499         * ps/devps/symbol.diff: New file.
9500         * ps/devps/FontMakefile: Mention symbol.diff.
9502 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
9504         * troff/node.c (font_position): Use get_long_name to read the
9505         external_name.
9507         * troff/env.c (environment_switch): If we get a number that's < 0
9508         or >= NENVIRONMENTS, treat it like a name.
9509         Change NENVIRONMENTS to 10.
9511         * troff/groff.h: Remove definition of FONTS_MAX.
9512         * troff/node.h (class font_family): Make map a pointer instead of
9513         an array. Add a map_size member. Make it a class. Make nm const
9514         and public. Make invalidate_fontno a friend.
9515         * troff/node.c: Define font_table_size. Make font_info a pointer
9516         rather than an array.
9517         (class troff_output_file): Allocate font_position dynamically. Add
9518         nfont_positions member.
9519         (troff_output_file::set_font): Grow font_position if necessary.
9520         (troff_output_file::~troff_output_file): Delete font_position.
9521         (troff_output_file::troff_output_file): Allocate font_position.
9522         (grow_font_table): New function.
9523         (troff_output_file::really_begin_page,
9524         troff_output_file:really_copy_page): Use nfont_positions rather
9525         than FONTS_MAX.
9526         (mount_font_no_translate, mount_style): Call grow_font_table if
9527         necessary.
9528         (font_family::font_family): Allocate map.
9529         (font_family::make_definite): Grow map if necessary. Use
9530         font_table_size instead of FONTS_MAX.
9531         (font_family::~font_family): New function.
9532         (invalidate_fontno): Use font_family::map_size.
9533         (get_fontno, env_space_width, env_half_narrow_space_width,
9534         env_narrow_space_width, symbol_fotno, is_good_fontno,
9535         get_bold_fontno, make_glyph_node): Use font_table_size rather than
9536         FONTS_MAX.
9537         (next_available_font_position): Never return 0.
9539 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
9541         * ps/tmac.ps: Add font translations for compatibility with dpost.
9543 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
9545         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
9546         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
9547         Move definitions baseline_sep, shift_down, column_sep,
9548         matrix_side_sep into...
9549         * eqn/box.c: Add them to param_table.
9550         * eqn/pbox.h: Add declarations to pbox.h.
9552         * troff/input.c (set_string): Cast value to unsigned char *.
9554         * troff/token.h (process_input_stack): Declare it static before
9555         declaring it a friend.
9557 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
9559         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
9560         and bottom.
9561         * dvi/devdvi/EX: Regenerate.
9563         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
9564         transparent.
9566 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
9568         * eqn/lex.c: In defaults_table, make definition of `dot' call
9569         `dot_def'.  Don't explicitly make it roman.  Similarily for other
9570         accents.
9572         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
9573         argument.
9574         (for_input::get, for_input::peek): Use this.
9575         (do_for): Add by_is_multiplicative argument.
9576         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
9577         Change semantic value of optional_by to be a double plus a flag
9578         saying whethet the by clause is multiplicative.
9580         * eqn/lex.c (get_delimited_text): Remember location of start of
9581         definition.  Improve error handling when EOF is encountered.
9583         * lib/font.h: Rename handle_x_command to
9584         handle_unknown_font_command.
9585         * lib/font.c (font::load): Call handle_unknown_font_command for
9586         any unknown command in the font description file.  Don't call
9587         handle_x_command. Include the name of the command in the argv.
9588         Improve message for unknown command after kernpairs or charset
9589         command.
9590         * ps/ps.c (ps_font::handle_x_command): Rename to
9591         handle_unknown_font_command.  Remove message about `x download'
9592         command.  Give error message for wrong number of arguments.
9593         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
9594         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
9595         handle_unknown_font_command. Give an error message for wrong
9596         number of arguments.  Rename design_size to designsize.
9597         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
9598         checksum', `designsize' instead of `design_size'.
9600 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
9602         * eqn/*.[chy]: Change underaccent to uaccent.
9604         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
9605         give it the same precedence as ACCENT.
9606         * eqn/other.c (make_underaccent_box): New function.
9607         * eqn/box.h: Declare it.
9608         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
9609         def_table.
9611 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
9613         * pic/pic.y (reset_all): New function. Called in rule for RESET.
9614         (parse_init): Call reset_all.
9615         (define_variable): When defining scale reset only those
9616         pre-defined variables that are scaled.
9617         (defaults_table): Add `scale' as non-scaled value.
9619         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
9620         together with the text; allow any number of positioning words;
9621         allow center as a positioning word.
9623         * pic/object.c (output::compute_scale): Get picture maximum height
9624         and width from variables called maxpswid and maxpsht.
9625         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
9627 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
9629         * pic/object.c (object_spec::make_text): Multiply textht by number
9630         of text items.
9632         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
9633         occur.
9634         (do_sprintf): New function.
9635         (pic.gperf): Add sprintf token.
9636         (text, sprintf): New rules.
9638         * pic/pic.y: `rand()' with no arguments returns a random number
9639         in the range [0,1).
9641         * pic/pic.y: Allow a bare expression to be an attribute: change
9642         precedences to support this.  Change optional_ordinal rule to
9643         optional_ordinal_last to avoid reduce/reduce conflict.
9644         * pic/object.c (object_spec::object_spec): Initialize direction.
9646         * pic/pic.y: Implement ^ operator meaning exponentiation.
9648         * troff/node.h: Add default argument to mount_font.
9649         * troff/node.c (font_position): Read an optional third argument
9650         giving the external_name.
9651         (mount_font): Add optional argument giving the external_name.
9652         (mount_font_not_translate): Have additional argument giving
9653         external name.  Use this name to load the font.  Pass both names
9654         to font_info::font_info.
9655         (font_info::font_info): Have additional argument giving
9656         external_name.
9657         (class tfont): New member external_name.
9658         (font_info::get_tfont): Use external name to construct tfont_spec.
9660 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
9662         * eqn/lex.c (init_table): Add argument giving device.  Define
9663         name of device to be "1".
9664         (do_ifdef): Counts as true if the argument has been defined with
9665         `define'.
9666         * eqn/main.c (main): Call init_table with device argument. Make
9667         device local to main.
9668         * eqn/eqn.h: Change declaration of init_table. Remove declaration
9669         of device.
9671         * pic/lex.c (get_delimited): Allow text to be delimited by
9672         matching {}s.  Don't recognize ending delimiter within a string.
9674         * troff/input.c (get_delim_name): New function.
9675         (token::next): Implement \C.
9677         * lib/font.c (font::load): Grok ---.  Add an alias for each
9678         character based on its code.
9679         (font::get_code_width): Deleted.
9680         * lib/font.h (class font): Declare font::number_to_index().
9681         Remove declaration of font::get_code_width.
9682         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
9683         to indices of named characters.
9684         (font::number_to_index): New function.
9685         * troff/input.c (font::number_to_index): New function.
9686         (get_charinfo_by_number, charinfo::get_number,
9687         charinfo::set_number): New functions.
9688         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
9689         (token::process, token::description, token::get_char,
9690         token::add_to_node_list, token::operator==): Handle
9691         TOKEN_NUMBERED_CHAR.
9692         * troff/charinfo.h: Declare get_charinfo_by_number,
9693         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
9694         charinfo class.
9695         (charinfo::numbered): New function.
9696         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
9697         * troff/env.h (class environment): Remove declaration of ...
9698         * troff/env.c (environment::make_numbered_char_node): Deleted.
9699         * troff/node.c (make_numbered_node): Deleted.
9700         (class numbered_glyph_node): Remove.
9701         (troff_output_file::put_char_width, troff_output_file::put_char):
9702         Handle numbered chars.
9703         (troff_output_file::numbered_char): Removed.
9704         (tfont::get_code_width): Removed.
9705         (make_glyph_node): Don't search special fonts for numbered
9706         characters.
9707         * troff/node.h: Remove declaration of make_numbered_node.
9708         * driver/input.c (do_file): Handle N command.
9709         * driver/printer.h: Add declaration of ...
9710         * driver/printer.c (printer::set_numbered_char): New function.
9711         * dvi/tfmtodit.c (main): Generate unnamed entries.
9712         * ps/devps/afmtodit: Likewise.
9713         * xditview/xtotroff.c (MapFont): Likewise.
9714         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
9716         * tbl/main.c (process_format): If multiple widths are specified
9717         for a column but all the widths are the same, don't give an error
9718         message.
9720         * tbl/table.c (table::do_row): If the current row is all lines and
9721         the stuff doesn't contains a line, mark the top of the row after
9722         printing stuff before the row.  If the current row is not all
9723         lines and the stuff doesn't contain a line, don't unnecessarily
9724         mark the top of the row before printing the stuff.
9725         
9726 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
9728         * troff/groff.h: Remove MAX_PATH.
9729         * troff/input.c (open_file): Dynamically allocate space for the
9730         path.
9731         (open_mac_file, process_macro_file): Corresponding changes.
9733 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
9735         * troff/node.h (class output_file): Make copy_file pure.  Add
9736         vspace method ifdef COLUMN. Add is_printing method.
9737         * troff/node.c: Add class printing_reg. Add class
9738         real_output_file. Derive other output_file classes from
9739         real_output_file; in these classes rename begin_page to
9740         really_begin_page, print_line to really_print_line, copy_file to
9741         really_copy_file, transparent_char to really_transparent_char.
9742         Move output_file::flush to real_output_file. Add printing member
9743         to class output_file.
9744         * troff/div.h: Remove printing member from top_level_diversion.
9745         Add vspace member function to class diversion ifdef COLUMN. Add
9746         some declarations ifdef COLUMN.
9747         * troff/div.c (top_level_diversion::copy_file,
9748         top_level_diversion::transparent_output,
9749         top_level_diversion::output): Don't test printing member before
9750         output.
9751         * troff/input.c: Handle initial variable_space_request ifdef
9752         COLUMN.
9753         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
9754         but comment it out.
9756 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
9758         * troff/div.c (diversion::need): Make any space forced.  If we
9759         sprung a trap, set truncated_space to minus the distance to the
9760         trap and set needed_space to the amount that was needed.
9761         (top_level_diversion::space): A forced space turns no_space_mode
9762         off.
9763         (class constant_vunits_reg): New class.
9764         (init_div_requests): Implement number registers .trunc and .ne
9765         using constant_vunits_reg.
9766         (class truncated_space_reg): Deleted.   
9768         * troff/div.h: Don't have a no_space_mode member in diversion.
9769         Instead have it in top_level_diversion.
9770         * troff/div.c (diversion::diversion): Don't initialize
9771         no_space_mode.
9772         (top_level_diversion::top_level_diversion): Initialize
9773         no_space_mode.
9774         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
9775         (macro_diversion::output): Don't clear no_space_mode.
9777         * troff/input.c (diverted_space_node::reread): Don't call
9778         environment::do_break.  In fill mode, act like a blank line.
9779         (diverted_copy_file_node::reread): Don't call
9780         environment::do_break.
9782         * troff/div.c (blank_line): New function.
9783         * troff/div.h: Declare it.
9784         * troff/input.c (process_input_stack): Call it.
9786         * troff/div.c (truncated_space_reg::get_string): New function.
9787         (init_div_requests): Bind to .trunc.
9788         (space_request, top_level_diversion::space,
9789         top_level_diversion::output, macro_diversion::space,
9790         macro_diversion::output): Update truncated_space.
9791         (macro_diversion::output): Redo calculations when trap sprung.
9792         (macro_diversion::output, macro_diversion::space): No need for
9793         trap_flag.
9795         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
9796         after truncating post line spacing.
9798 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
9800         * ps/devps/prologue (MF, SF): Make them work even if setfont is
9801         defined as a procedure rather than as an operator.
9803 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
9805         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
9807 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
9809         * troff/div.c (top_level_diversion::output): Merge
9810         output_file::print_line and output_file::end_of_line member
9811         functions.
9812         * troff/div.h (class output_file):
9813         * troff/node.c (troff_output_file::print_line,
9814         troff_output_file::end_of_line, output_file::end_of_line,
9815         ascii_output_file::print_line, suppress_output_file::print_line):
9816         Corresponding changes.  
9818 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
9820         * troff/input.c (token::next): Don't give a warning for `\.'.
9822         * troff/env.c (environment::get_center_lines): New function.
9823         (init_env_requests): Bind number register .ce to it.
9824         * troff/env.h: Declare it.
9825         * tbl/table.c (table::init_output): Define reset macro to restore
9826         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
9827         Then do .ce 0.
9828         (table::print): If center option not given, then imply center
9829         option if SAVED_CENTER_REG > 0.
9831 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
9833         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
9834         Troff.ps from DOWNLOAD.
9835         
9836         * troff/Makefile: Change comment in DEFINES to avoid confusing
9837         System V make.
9839         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
9840         code.  Don't try to catch errors with stopped.
9841         (check_line_lengths): New function.
9842         * ps/devps/prologue (EXEC): Deleted.
9843         (EBEGIN, EEND): New procedures.
9845 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
9847         * troff/input.c: Include request.h before node.h.
9848         * troff/node.c: Likewise.
9849         * troff/env.c: Likewise.
9850         * troff/div.c: Likewise.
9851         * troff/node.h (class special_node): Store argument as a macro
9852         rather than a char *.
9853         * troff/node.c (special_node::special_node, special_node::copy):
9854         Grok this.
9855         (special_node::~special_node): Deleted.
9856         (special_node::tprint): Deleted.
9857         (special_node::tprint_start, special_node::tprint_end,
9858         special_node::tprint_char): New functions.
9859         (troff_output_file::special): Deleted.
9860         (troff_output_file::start_special, troff_output_file::end_special,
9861         troff_output_file::special_char): New functions.
9862         * troff/input.c (special_node::tprint): New function.
9863         (do_special): Use macro not char *.
9864         (do_transparent_macro): Deleted.
9865         (token::next): Don't call do_transparent_macro.
9867         * troff/input.c (token::next): Add 'Y' case.
9868         (do_transparent_macro): New function.
9869         * troff/node.c (troff_output_file::special): Handle newlines with
9870         argument using new continuation convention.
9871         * driver/input.c (get_string): Cope with continuation convention.
9872         (do_file): Don't call skip_line after calling get_string(1).
9873         * ps/ps.c (ps_printer::special, ps_printer::do_import,
9874         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
9875         arg.
9876         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
9877         with +.
9879 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
9881         * troff/input.c (asciify): By default, illegal input characters
9882         should return empty string.
9884         * troff/input.c (copy_file): Handle first page transition like title.
9885         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
9887         * troff/input.c (token::next): Improve error message for EOF after
9888         escape character.
9889         (input_char_description): New function.
9890         (get_char_for_escape_name): Use input_char_description.
9891         (token::next): Warn about unrecognized escape sequences.
9892         (warning_table): Add WARN_ESCAPE.
9893         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
9894         accordingly.
9896         * troff/token.h: Remove declaration of process_input_stack.
9898         * troff/input.c: Remove declaration of init_hyphen_requests.
9899         * troff/request.h: Correct spelling in declaration of same.
9901         * troff/input.c (token::next): Check whether escape_char is 0.
9903 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
9905         * groff.c (main, usage, help): Implement -P and -L options.
9906         * groff.sh: Likewise.
9908         * troff/input.c (token::next): Use some gotos to avoid code
9909         duplication.
9911         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
9912         Avoid calling symbol::symbol if name empty.
9914 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
9916         * troff/input.c (init_input_requests): Make \n(.x return the major
9917         version number and \n(.y return the minor version number.
9918         * troff/Makefile: Construct file majorminor.c defining
9919         major_version and minor_version automatically from ../VERSION.
9921         * troff/node.c (class glyph_node): Make operator new and operator
9922         delete public.
9923         (class ligature_node): Similarily.
9925         * troff/input.c (operator==(const macro &, const macro &)): New
9926         function.
9927         (non_interpreted_node::same): Use this.
9928         (string_iterator::string_iterator): Make macro& argument const.
9930         * troff/input.c (input_iterator::get): New function. Don't make
9931         asciify_macro or class non_interpreted_node friends of class
9932         input_iterator.
9933         (non_interpreted_node::interpret): Use input_iterator::get.
9934         (asciify_macro): Likewise.
9936         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
9937         ~non_interpreted_node): Deleted.
9938         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
9939         Deleted.
9941         * troff/symbol.h: Make all symbol member functions const.
9943         * lib/strtol.c: New file.
9944         * lib/Makefile: Add strtol.c.
9945         * Makefile: Define STRTOL as strtol.o to include strtol in
9946         libgroff.a.
9948 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
9950         * pic/troff.c (troff_output::simple_circle): Divide by scale.
9952 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
9954         * troff/input.c (do_special): Use input_level.
9956         * troff/token.h (TOKEN_BACKSPACE): New token.
9957         (token::backspace): New function.
9958         * troff/input.c (token::description, token::next, token::process):
9959         Grok TOKEN_BACKSPACE.
9960         (do_special): Turn TOKEN_BACKSPACE back into \b.
9962         * troff/token.h (token::leader): New function.
9963         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
9965         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
9967         * troff/input.c (do_special): Use token::description in error
9968         message.
9970 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
9972         * troff/input.c (decode_args): Combine quoted and
9973         quote_input_level variables. Make it a for (;;) loop.
9975         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
9977         * troff/input.c (read_long_escape_name): The test for whether to
9978         expand buffer was off by 1.
9979         (read_string): Similarily.
9981 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
9983         * troff/input.c: Use `const int' rather than `static const int'.
9985         * troff/div.h (diversion::copy_file): Declare as pure virtual.
9986         (macro_diversion::copy_file): New function.
9987         * troff/node.h: New class diverted_copy_file_node.
9988         * troff/node.c: Implement it.
9989         * troff/input.c (copy_file): Use diversion::copy_file. Handle
9990         first page transition by pushing a diverted_copy_file_node.
9991         * troff/input.c (token::next, process_input_stack): Don't handle
9992         COPY_FILE_REQUEST.
9994 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
9996         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
9997         whether space widths need adjusting.
9999         * troff/charinfo.h: Generalize translated_to_space to
10000         special_translation so as to allow translation to \&.
10001         * troff/input.c (translate): Allow translation to \&.
10002         (charinfo::*): Corresponding changes.
10003         * troff/node.c (make_node, node::add_char): Corresponding changes.
10004         * troff/node.h (dummy_node::dummy_node): Allow optional first
10005         argument.
10007         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
10008         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
10009         TOKEN_REQUEST.
10010         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
10011         TOKEN_REQUEST with an argument of TITLE_REQUEST.
10012         (token::process): Grok that.
10013         * troff/input.c (copy_file): Handle first page transition like
10014         title by pushing a COPY_FILE_REQUEST cookie.
10015         (token::next, process_input_stack): Grok that.
10016         * troff/node.h (output_file::copy_file): Add x and y arguments.
10017         Make it non-pure.
10018         * troff/div.c (top_level_diversion::copy_file): Supply them.
10019         * troff/node.c (troff_output_file::copy_file): Add x and y
10020         arguments; moveto specified position.  Invalidate font_position
10021         array after copying file.
10022         (output_file::copy_file): New function.
10023         (suppressed_output_file::copy_file, ascii_output::copy_file):
10024         Removed.
10025         * troff/input.c (transparent_file): New function.
10026         (init_input_requests): Bind to "trf".
10027         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
10028         (process_input_stack): Likewise.
10030         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
10032         * troff/node.c (init_node_requests): New number registers .kern
10033         pointing to global_kern_mode, and .lg pointing to
10034         global_ligature_mode.
10036         * troff/node.c (ligature): Don't change it if we get a bad
10037         integer.
10039         * troff/input.c (do_define_string): Don't strip tabs.
10041         * troff/input.c (asciify_macro): Make the string_iterator auto.
10043         * troff/node.c (init_font_requests): Rename to...
10044         (init_node_requests):
10045         * troff/node.h: Change declaration.
10046         * troff/input.c (main): Change call.
10048         * troff/input.c (node::reread, diverted_space_node::reread): New
10049         methods.
10050         (process_input_stack): Call reread rather than
10051         get_diverted_space_node.
10052         * troff/node.c (node::get_diverted_space_node,
10053         diverted_space_node::get_diverted_space_node): Removed.
10054         * troff/node.h: Declare reread methods instead of
10055         get_diverted_space_node methods. Make `n' member private.
10056         * troff/input.c: (token::diverted_space): Removed.
10057         * troff/token.h: Removed declaration.
10058         
10060 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
10062         * eqn/script.c (script_box::compute_metrics): Don't let
10063         SUP_RAISE_FORMAT become negative.
10065         * tbl/table.c (table::do_row): Entries that don't end in the
10066         this row shouldn't make the row non-blank.
10067         
10068         * tbl/table.c (table::make_columns_equal): Only set the width of
10069         columns which are marked as equal.
10070         
10071         * tbl/main.c (process_data): Before issuing excess data error,
10072         if last character was a newline unget it; then get it again after
10073         the error.  Also include the contents of the entry in the message.
10075         * groff.c: New file.
10076         * Makefile: Build groff from groff.c.  Make it possible to use
10077         either groff.sh or groff.c as groff.
10078         * Makefile.bd: Similarily.
10080 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
10082         * groff.sh: Don't delay expansion of $@ in assignment to files.
10083         Remove occurrences of \".
10085 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
10087         * all Makefiles: Simplify and rearrange.
10089         * Makefile: Handle fmod like malloc.
10090         * lib/Makefile: Similarily.
10091         * lib/fmod.c: Remove #ifdef NEED_FMOD.
10093         * Makefile: Rename OPTIMISE to OPTIMIZE.
10095         * groff.sh: Remove assignment to PATH.
10096         * Makefile: Remove SHPATH variable.
10097         * Makefile.bd: Similarily.
10099         * groff.sh: Add -V option to print the pipeline instead of
10100         executing it.
10102 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
10104         * lib/font.c: Split off file searching into ...
10105         * lib/fontfile.c: New file.
10107         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
10109 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
10111         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
10112         Also change misleading comment.
10113         (table::do_vspan): Change similarily misleading comment.
10114         * tbl/main.c (process_data): A format row with an explicit `s'
10115         uses up a data line, even if all the other columns are `_' or `='.
10117         * troff/input.c (token::description): Fix description of
10118         TOKEN_DUMMY and TOKEN_EMPTY.
10120 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
10122         * groff.sh: Fix description of -Z in help message.
10124 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
10126         * pic/object.c (object_spec::make_object): Allow negative and zero
10127         line thicknesses.
10128         * pic/pic.y: Give linethick default value of -1.0.
10129         * pic/troff.c (troff_output::troff_output): Initialize
10130         last_line_thickness to BAD_THICKNESS.
10131         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
10132         (troff_output::line_thickness): Canonicalize negative thicknesses
10133         to RELATIVE_THICKNESS.
10134         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
10135         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
10136         to -1.0.
10137         (tex_output::start_picture): Set pen_size to -2.0.
10139         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
10140         0, then use 0 linewidth.
10141         (ps_printer::ps_printer): Initialize line_thickness to -1.
10143         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
10145         * ps/devps/symbolchars: Remove `or'.
10146         * ps/tmac.ps: Implement \(or with .char.
10148         * ps/devps/symbolchars: Move most characters into textmap.
10149         * ps/devps/textmap: Add names for troff bracket characters. Remove
10150         ul, ru, br, bv.
10152         * ps/devps/TSymbol.ps: Removed.
10153         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
10154         * ps/tmac.ps: Do with .char what TSymbol did.
10155         * ps/devps/download: Remove TSymbol.
10157         * ps/devps/T: Removed.
10158         * ps/devps/Troff.ps: Removed.
10159         * ps/devps/Troff.afm: Removed.
10160         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
10161         * ps/devps/download: Remove Troff.
10162         * ps/devps/FontMakefile: Remove T target.
10163         * ps/devps/DESC-A4: Remove T from font list.
10164         * ps/devps/DESC-letter: Likewise.
10166         * troff/input.c (macro_to_node): Rename to ...
10167         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
10168         character's definition while processing it.
10169         * troff/node.c (node::add_char, make_node): Change calls to
10170         macro_to_node accordingly.
10172         * troff/input.c (token::next): Translate \_ to \(ul.
10174         * tty/devascii/R.proto: Add `|'.
10175         * tty/devlatin1/R.proto: Likewise.
10177 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
10179         * man: Put the version number in all the man pages.
10181 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
10183         * Makefile.bd: New file.
10184         * README.bd: New file.
10186         * VERSION: New file.
10187         * lib/version.c: Removed.
10188         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
10189         in clean target.
10191         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
10192         environment variable.
10194         * all Makefiles: Split install target into install.bin for
10195         binaries, and install.nobin for everything else.
10196         * Makefile: Add bindist target.
10198         * man/afmtodit.man: New file.
10199         * man/Makefile: Add afmtodit.n to MAN1PAGES.
10200         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
10201         in BINDIR.
10202         * ps/Makefile: Pass BINDIR to make install in devps.
10204         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
10205         the space character.
10207         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
10209 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
10211         * ps/ps.c: Redo font downloading.
10212         * ps/devps/download: New file.
10213         * ps/devps/Makefile: Add download to DEVICEFILES.
10214         * ps/devps/afmtodit: Remove -d option.
10215         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
10216         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
10217         * ps/devps/zapfdr.ps: Likewise.
10218         * ps/devps/TSymbol.ps: Likewise.
10220 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
10222         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
10224 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
10226         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
10227         then strip the first line if it starts with %.
10228         * Makefile: Add a comment about this.
10230         * man/tfmtodit.man: New file.
10231         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
10232         * dvi/Makefile: Install tfmtodit in BINDIR.
10234         * dvi/tfmtodit.c (usage): Mention -v option.
10236 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
10238         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
10239         * troff/node.c (troff_output_file::transparent_char): Don't call
10240         flush_tbuf.
10242         * eqn: Add check_tabs method to most box classes.
10243         * eqn/box.c (box::top_level): Call check_tabs.
10245         * eqn/script.c (script_box::output): Use \Z.
10246         * eqn/limit.c (limit_box::output): Use \Z.
10248         * eqn/box.c (box::top_level): Use itoa.
10250 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
10252         * dvi/tmac.dvi: Add font translations for CR, C, TT.
10253         * dvi/devdvi/Makefile: Don't make links to CW.
10255         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
10256         HX, HD.
10257         * xditview/tmac.X: Likewise.
10259         * troff/node.c: Add font translation feature.
10260         (get_font_translation): New function.
10261         (symbol_fontno): Translate the font name.
10262         (mount_font_no_translate): Rename to mount_font to this.
10263         (mount_font): New function.
10264         (font_family::make_definite): Call mount_font_no_translate instead
10265         of mount_font.
10266         (mount_style): Translate the font name.
10267         (font_translate): New function.
10268         (init_font_requests): Bind "ftr" to font_translate.
10270         * ps/devps/prologue (SN): New procedure that rounds a position to
10271         the nearest (pixel + (.25,.25)).
10272         (DL): Use SN to round endpoints.
10274         * lib/version.c: Changed version to 0.5.
10276 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
10278         * Makefile: Move definition of PAGE to the very beginning, so that
10279         people are less likely to miss it.
10281 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
10283         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
10285         * troff/env.c (environment::choose_breakpoint): Make `can't find
10286         breakpoint' error a warning of type WARN_BREAK.  Change message to
10287         `can't break line'.
10288         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
10289         code 040000.
10290         * troff/input.c: Add WARN_BREAK to warning_table.  Include
10291         WARN_BREAK in DEFAULT_WARNING_MASK.
10293         * tty/tmac.tty: Add definition of \(+-.
10295         * groff.sh: Remove `--' option to set command.
10297         * dvi/devdvi/texsy.map: Remove duplicate md entry.
10299         * ps/devps/eqnchar: Better definition of cdot using md.
10300         * dvi/devdvi/eqnchar:  Likewise.
10301         * xditview/devX100/eqnchar:  Likewise.
10302         * xditview/devX75/eqnchar: Likewise.
10303         * eqn/lex.c: Add definition of cdot.
10305 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
10307         * troff/input.c (get_optional_char): New function.
10308         * troff/input.c (set_page_character): Use get_optional_char(),
10309         rather than has_arg() and tok.get_char(1).
10310         * troff/env.c (tab_character, leader_character, hyphen_char,
10311         field_characters): Likewise.
10312         (margin_character): Likewise.  Also always delete the
10313         margin_character_node.
10315         * troff/input.c (token::get_char): Use token::description.
10317         * troff/input.c (has_arg): Don't skip over tab and \}.
10318         * troff/number.c (start_number): Give a warning if the number
10319         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
10321 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
10323         * troff/input.c (empty_name_warning, non_empty_name_warning): New
10324         functions.
10325         (get_name, get_long_name): Use these.  Rename `warn' argument to
10326         `required'.
10328         * troff/node.c (get_fontno): Test that the symbol is not null.
10330         * troff/input.c (token::description): New function.
10331         * troff/number.c (parse_term): Use token::description in `numeric
10332         expression expected' message.
10333         * troff/groff.h: Add WARN_MISSING.
10334         * troff/number.c (start_number): New function.
10335         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
10336         get_incr_number): Use start_number().
10337         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
10338         default.
10339         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
10340         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
10341         token::descripion.
10342         * troff/input.c (token::get_char): Use WARN_MISSING.
10343         * troff/input.c (token::delimiter): Use token::description.
10344         * troff/env.c (environment_switch): Back out Aug 3 change.
10345         * troff/input.c (has_arg): Skip over \}s and tabs but give a
10346         warning.
10347         * troff/token.h (token::tab): New function.
10348         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
10349         * troff/reg.c (alter_format): Likewise.
10350         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
10352 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
10354         * troff (most files): Redo warnings. Divide warnings into various
10355         categories; warning() has an additional first argument indicating
10356         the category it falls into.
10357         * troff/input.c (main): -w now takes an argument. New option -W.
10358         (enable_warning, disable_warning): New functions.
10360         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
10361         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
10363 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
10365         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
10366         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
10367         * xditview/devX75/eqnchar: Likewise.
10368         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
10370         * eqn/other.c: When bar or over applies to a single character
10371         don't produce an overline_box or an underline_box. Instead produce
10372         an accent_box or an underaccent_box, with the accent a line
10373         whose width is accent_width.  New classes underaccent_box,
10374         overline_char_box and underline_char_box.
10375         * eqn/box.h: Move overline_box, underline_box, accent_box class
10376         declarations into eqn/other.c. Add declarations of
10377         make_underline_box, make_overline_box, make_accent_box.
10378         * eqn/eqn.y: Call make_overline_box, make_underline_box
10379         make_accent_box instead of constructors.
10380         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
10382         * eqn/other.c: Add accent_box::~accent_box.
10383         * eqn/box.h: Declare it.
10385         * groff.sh: With -Tps, use eqn -D.
10387         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
10388         rather than \l.
10389         (underline_box::output): Similarily.
10390         (accent_box::output): Use \Z.
10392         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
10393         bit smaller.)
10395 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
10397         * troff/div.c (top_level_diversion::transparent_output(unsigned
10398         char)): Use asciify.
10399         * troff/input.c (asciify): Don't make it static.
10400         * troff/token.h (asciify): Declare it.
10401         
10402         * troff/input.c (get_name, get_long_name, token::get_char,
10403         token::delimiter): Add an extra default argument which says
10404         whether a warning should be printed.
10405         * troff: Pass a non-zero argument to one of these rather than
10406         printing a warning directly.
10408 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
10410         * troff: Consistently use symbol::is_null.
10412         * troff/dictionary.h: Move some inline functions into
10413         dictionary.c.
10415         * troff/request.h: Move inline functions into input.c.
10416         (request_or_macro::invoke): Make it pure.
10418         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
10419         * troff/input.c (init_input_requests): Use class constant_int_reg.
10420         (class compatible_reg): Deleted.
10421         * troff/div.c (init_div_requests): Use class constant_int_reg.
10422         (class last_post_line_extra_space_reg): Deleted.
10424         * troff/env.c (tab_character): Don't change the tab character if
10425         we get an invalid argument.
10426         (hyphen_char): Similarily.
10428         * troff/reg.c (alter_format): Check that nm is not null.
10430         * Makefile, groff.sh: Make it possible to customize the commands
10431         used for printing PostScript and dvi files. Also make it possible
10432         to customize the path used by groff.sh.
10434         * eqn/eqn.y: Make `left' right associative.
10436 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
10438         * pic/pic.h: Added definition of M_SQRT2 for those systems that
10439         don't have it.
10441         * pic/pic.h: Removed definition of INT_MAX.
10443         * troff/node.c (italic_corrected_node::vertical_extent): Omit
10444         `return'.
10446         * troff/input.c (token::next):  Handle \R like \n.
10448 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
10450         * ps/tmac.pc (PSPIC): Simplify.
10452         * troff/env.c (tab_stops::to_string):
10453         * pic/pic.y (object_type_name):
10454         * pic/troff.c (simple_output::line):
10455         * pic/tex.c (tex_output::spline):
10456         * pic/object.c (object_spec::make_object):
10457         * tbl/main.c (process_data):  Add cases to switch statements to
10458         avoid cfront warnings. (Some of these are spurious, since the
10459         switch already has a default case.)
10461         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
10462         `ps-'.  Don't test systat; instead check number of arguments to
10463         ps-bb.
10465 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
10467         * macros/tmac.e: Do not decrease the page offset by 0.5i.
10469         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
10470         Unlink the file as soon as we have opened it, so that we don't
10471         have to bother with signal handlers.
10472         (handler): Deleted.
10473         (fatal_error_exit): Deleted.
10474         (main): Don't call signal.
10476         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
10477         can be ignored.
10478         * dvi/devdvi/Makefile: Use the -k option with S and MI.
10480         * pic/pic.y:  If there is a label, or an nth construction before
10481         the first `.' in the argument to `with', ignore it and generate a
10482         warning.
10483         * pic/lex.c (lex_warning): New function.
10485         * tbl/table.c (table::init_output): In section keep and release
10486         macro, use 0 indent when diverting and the correct indent when
10487         rereading.
10489         * troff/input.c (interpolate_number_format): Do not interpolate
10490         anything if the number register is not defined.
10492         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
10494 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
10496         * ps/devps/prologue (PICTURE): Set components of graphics state to
10497         their default values.
10499         * ps/devps/text.enc: Add trademark
10500         * ps/devps/textmap: Add names for club, spade, heart, diamond,
10501         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
10502         * ps/devps/symbolchars: Add names for summation and product.
10504         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
10505         suchthat. Add pp. Add upper-case letters.
10507         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
10508         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
10509         Upsilon.
10511         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
10512         rA (right angle bracket) to ra.  Introduce names for double-headed
10513         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
10514         * ps/devps/textmap: Likewise for ps device.
10515         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
10516         * tty/devascii/R.proto: Rename lA to la and rA to ra.
10517         * tty/devascii/R.proto: Likewise.
10518         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
10519         \(uA, \(dA.
10520         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
10522         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
10524         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
10525         def_table.
10527 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
10529         * troff/div.c (when_request): Use symbol::is_null rather than
10530         has_arg to determine whether we have an argument.
10531         (change_trap): Remove the trap if we get an invalid number. Give
10532         an error if we don't get at least the macro name.
10533         (diversion_trap): Remove trap if we get an invalid name or number.
10535         * troff/env.c (environment_switch): Pop if we get an invalid
10536         symbol or numeric expression.
10538         * troff/input.c (do_define_macro):  If EOF is encoutered while
10539         defining the macro, do tok.next() before returning.
10541         * troff/token.h (has_arg): Move definition from here, to ...
10542         * troff/input.c (has_arg): ... here
10544         * troff/env.c (space_size): Do nothing if we get an invalid argument.
10545         * troff/input.c (shift): Likewise.
10547         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
10548         for `.c'.
10550         * pic/troff.c (troff_output::start_picture):  Comment out calls to
10551         `..'.
10553         * eqn/main.c (do_file): Subtract 1 from current_lineno if
10554         interpret_lf_args succeeds.
10556         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
10557         \\.  This avoids problems with \$N.
10559         * groff.sh: Pass -C to preprocessors.
10561         * lib/lf.c (interpret_lf_args):  Be more flexible.
10563         * tbl/main.c (main): Add -C option.
10564         (table_input::get): Do not recognize TE if followed by character
10565         other than a space or newline unless -C option given.
10566         (process_input_file): Likewise for lf, TS.
10567         (process_data): Likewise for lf in text blocks.
10569         * eqn/main.c (main): Add -C option.
10570         (do_file): Don't recognize EQ, EN or lf if followed by character
10571         other than space or newline unless -C option given.
10572         * eqn/lex.c (file_input::read_line): Similarily.
10573         * eqn/eqn.h: Declare compatible_flag.
10575         * etc/soelim.c (main): Add -C option.
10576         (interpret_lf_args): Use version in libgroff.
10577         (do_file):
10579         * pic/main.c (main): Add -C option, which sets compatible_flag.
10580         (top_input::get), (top_input::peek):  If -C option not given,
10581         do not recognize .PS/.PE/.PF/.lf if followed by a character
10582         other than space or newline.
10583         * pic/lex.c (file_input::read_line): Similarily.
10584         * pic/pic.h: Add declaration of compatible_flag.
10586 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
10588         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
10590         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
10591         derived from node.  New class space_char_hmotion_node.
10592         * troff/input.c (asciify_macro): New function.
10593         * troff/input.c (init_input_requests): New request `asciify' bound
10594         to asciify_macro.
10595         * macros/mm.diff: New file.
10596         * Makefile:  In install.mm target use `patch' to apply
10597         macros/mm.diff.
10599         * troff/input.c (macro::print_size): Just print the size in bytes.
10601         * troff/div.c (return_request): Correct the argument
10602         interpretation.
10604 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
10606         * troff/node.h (class composite_node): Add sz member.
10607         * troff/node.c (composite_node::size): Return sz.
10608         * troff/input.c (macro_to_node):  Use the initial size in the
10609         environment as the size of the composite_node.
10611         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
10612         default.
10614 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
10616         * troff/div.c (change_trap): If we get a bad number expression,
10617         do nothing.
10619 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
10621         * lib/matherr.c (matherr): Define this only if math.h defines
10622         TLOSS.
10624 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
10626         * troff/div.c (macro_diversion::distance_to_next_trap): If there
10627         no diversion trap return vunits(INT_MAX - vresolution).
10629 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
10631         * troff/input.c (do_zero_width): New implementation that doesn't
10632         use a temporary environment. Use instead:
10633         (token::add_to_node_list): New function.
10634         * troff/env.c (environment::get_prev_char_height),
10635         (environment::get_prev_char_height),
10636         (environment::get_prev_char_skew): New functions.
10637         (environment::get_prev_char): New function.
10638         (environment::get_prev_char_width): Change to use get_prev_char.
10639         (init_env_request): Implement new registers .cht, .cdp, .csk.
10640         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
10641         \Z being processed in a separate environment.
10643 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
10645         * tbl/table.c: Removed TABLE_BOTTOM_REG.
10647         * tbl/table.c (table::init_output): In the section release macro,
10648         give a warning message if the section won't fit on one page.
10650         * tbl/table.c (table::do_top): Emit table keep only if table is
10651         boxed.
10652         (table::do_bottom): Likewise for table release.
10653         (table::table), (table::add_vertical_rule):  Remove reference to
10654         keep member.
10655         * tbl/table.h: Remove keep member.
10657         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
10658         SECTION_RELEASE_MACRO, if there's not enough space before the next
10659         trap to output the diversion, call T# ourselves, set
10660         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
10661         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
10662         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
10663         vertical position and return to it before turning traps on again.
10664         
10665 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
10667         * troff/node.c, troff/node.h: In classes derived from node,
10668         replace prev_char_width method by last_char_node method.
10669         * troff/env.c (environment::get_prev_char_width): Use
10670         node::last_char_node rather than node::get_prev_char_width.
10672         * Makefile: Added comment about -fno-inline on 68030-based
10673         Apollos.
10675         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
10676         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
10677         expressions using sizeof to int.
10678         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
10680         * macros/tmac.e (TS):  Don't move @f back past the current
10681         position.
10683 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
10685         * ps/ps.c (main): Buffer stderr.
10686         * dvi/dvi.c (main): Likewise.
10687         * tty/tty.c (main): Likewise.
10689         * ps/ps.c (ps_printer::do_import): Improve error handling.
10691         * troff/input.c (abort_request): Use asciify.
10693         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
10694         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
10695         type of first argument int rather than char.  This works around a
10696         bug on the 68030 based Apollo using g++ 1.37.1.
10698         * tbl/table.h (class table): Add `keep' member.
10699         * tbl/table.c (table::table): Initialize `keep'.
10700         (table::add_vertical_rule): Set `keep' to 1.
10701         (table::do_top): Only emit table keep macro is `keep' is non-zero.
10702         (table::do_bottom): Likewise for table release macro.
10703         (table::do_row): Emit section keep macro even if the row is 0.
10705 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
10707         * macros/tmac.e (@C): Preserve the font family across the change
10708         in environments.
10710 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
10712         * lib/font.c: Initialize font::hor and font::vert to 1.
10713         (font::load_desc): Check the values of font::hor and font::vert.
10715         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
10716         be included in a C compilation.
10717         (iftoa): Use INT_DIGITS. Include lib.h.
10718         (itoa): Likewise.
10719         (as_string): Likewise.
10720         * tbl/table.c: Removed definition of INT_DIGITS.
10721         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
10722         * troff/input.c (input_input_requests): Likewise.
10723         * ps/ps.c (make_encoding_name): Likewise.
10724         (ps_printer::set_style): Likewise.
10725         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
10727         * tty/devascii/R.proto: Map fm onto '.
10728         * tty/devlatin1/R.proto: Likewise.
10730 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
10732         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
10733         argument to \w is at a different input level.
10735         * tbl/table.c (table::init_output): Define a new macro
10736         REPEATED_VPT_MACRO, like vpt but if in a diversion also
10737         transparently outputs itself.
10738         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
10739         vpt.
10740         (table::do_row): Likewise.
10742         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
10743         TRANSPARENT_STRING_NAME.
10745         * tbl/table.c (table::init_output): In the table release macro
10746         print an error message and don't produce any output if after
10747         issuing the need request the table still will not fit.  Also
10748         remove the diversion after bringing it back.
10750         * tbl/table.c (table::init_output): Define a new macro
10751         REPEATED_MARK_MACRO, like mk but if in a diversion also
10752         transparently outputs itself.
10753         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
10754         is necessary because .TH might not call .T#.
10755         (table::do_top): Likewise TOP_REG.
10756         (table::define_bottom_macro): If TOP_REG is no longer valid, use
10757         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
10758         table header might contain just the two top rules.
10760 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
10762         * troff/div.c: Implement new request `ptr' to print all traps.
10764         * troff/env.c (init_env_requests): Implement `.tabs' reg with
10765         init_string_env_reg.
10766         * troff/env.c (class tab_reg): Deleted.
10768 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
10770         * troff/div.c: New number register .pn returns the number of the
10771         next page as set by the pn request.
10773         * macros/tmac.an: Redid headers and footers.  Number each manual
10774         entry starting from 1 unless \nC is > 0, like Sun.  Added an
10775         optional 5th argument to .TH which specifies the manual name and
10776         appears in the center of the header.  Understand the X, P and D
10777         registers like Sun.
10779 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
10781         * troff/env.c (init_env_requests): New number register `.lt' to
10782         return the title length.
10784         * troff/node.h (class transparent_dummy_node): New class.
10785         * troff/node.c (class transparent_dummy_node): Provide member
10786         functions. 
10787         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
10788         than a dummy_node.
10790         * troff/input.c (token::next): New escape sequence \).
10791         * troff/input.c (get_copy): Recognize \) in copy mode.
10793         * troff/input.c (input_stack::clear): New function.
10794         * troff/input.c (exit_request): Use input_stack::clear.
10796         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
10797         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
10799         * troff/env.c: Move set_page_character to input.c.  Move
10800         page_character to input.c also.
10801         * troff/env.c (title): Split off the reading of the parts of the
10802         title into read_title_parts.
10803         * troff/input.c (read_title_parts): New function.  Check the
10804         input_level when testing whether a token matches the delimiter.
10806         * troff/input.c (exit_request): New function.
10807         * troff/input.c (init_input_requests): Bind ex request to
10808         exit_request rather than exit_groff.
10810         * troff/input.c (exit_groff): Call tok.next() before
10811         process_input_stack().
10813 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
10815         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
10816         * troff/env.h: ditto.
10817         * troff/input.c: ditto.
10819         * troff/env.c (environment::is_empty): Test pending_lines.
10821         * troff/env.c (environment::have_pending_lines): Removed.
10823         * troff/input.c: Add request to flush pending lines from the
10824         environment.
10826         * troff/env.c, troff/env.h: Add automatic widow control feature.
10828         * troff/input.c (exit_groff):  Do process_input_stack() after
10829         do_break() but before setting exit_flag to 2.
10831         * troff/input.c: Remove FLUSH_PENDING_LINES and
10832         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
10833         environment after END_TRAP token seen, but only if there aren't
10834         any more traps still unfinished.
10835         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
10837 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
10839         * troff/env.c: Rename the `retain_size' member of class
10840         pending_output_line to `no_fill'.
10842         * troff/env.c (title): When the line is output, make the
10843         retain_size argument !fill.
10845         * troff/node.h: Add `hyphenated' member to struct breakpoint.
10846         * troff/node.c (space_node::get_breakpoints),
10847         (dbreak_node::get_breakpoints):  Fill this in.
10848         * troff/env.c:  Allow specification of maximum number of
10849         consecutive hyphenated lines.
10851         * troff/env.c (environment::is_empty): Add test for !current_tab.
10853 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
10855         * troff/env.c (environment::hyphenate_line): Don't completely give
10856         up if the word is not to be hyphenated; continue so that breaks
10857         can be made at break_char_node's.
10859         * lib/lib.h: Only define INT_MAX if it's not already defined;
10860         undef INT_MIN if it's already defined.
10862         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
10864         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
10865         This works around a bug in AT&T C++ 2.0 used with an ANSI C
10866         compiler.
10867         
10868         * macros/tmac.an (an-header): Set no-space mode.
10870         * macros/tmac.an (TH): Start a new page if necessary.
10872         * Started using ChangeLog at version 0.4.
10874 Local Variables:
10875 version-control: never
10876 coding: latin-1
10877 End: