* tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
[s-roff.git] / ChangeLog
blob30d867eb4eb0d9f941c7a1a8ba5921a6fe9fb7a4
1 2002-01-28  Werner LEMBERG  <wl@gnu.org>
3         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
5 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
7         Add two switches -a and -g to control the antialiasing bits for
8         text and graphics, respectively.
10         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
11         `-g'.
12         * src/devices/grohtml/grohtml.man: Document them.
13         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
14         New macros.
15         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
16         (setupAntiAlias): New function.
17         (createAllPages): Updated.
18         (scanArguments): Handle `-a' and `-g'.
19         (main): Call `setupAntiAlias'.
20         * NEWS: Updated.
22 2002-01-27  Werner LEMBERG  <wl@gnu.org>
24         * doc/groff.texinfo (Def*): Call index function after deffn.
26         * tmac/html.tmac: Call `nroff' request.
28 2002-01-26  Larry Kollar  <kollar@alltel.net>
30         * tmac/groff_ms.man: Add some omissions.
32 2002-01-25  Larry Kollar  <kollar@alltel.net>
34         * tmac/groff_ms.man: Typographical improvements.
36 2002-01-25  Werner LEMBERG  <wl@gnu.org>
38         * doc/groff.texinfo: Updated version and copyright.
39         * src/devices/grops/grops.man: Updated.
41         * tmac/groff_tmac.man: Fix `ig' macro.
43         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
44         nroff mode.
45         Use `.ne' unconditionally everywhere.
46         (TS): Only insert some vertical space.  Doing a page break is no
47         longer necessary due to the redefinition of the `ne' request.
49         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
50         warning for unknown subcommands but parse and pass them to the
51         device driver.
53 2002-01-24  Werner LEMBERG  <wl@gnu.org>
55         * tmac/groff_www.man, NEWS: Fix typos.
57 2002-01-21  Werner LEMBERG  <wl@gnu.org>
59         Complete revision of color support:
61           Adapt programs to the new libdriver/input.cc.
63           Color spaces are no longer converted to RGB but transferred as-is
64           in the troff intermediate output format.
66           Handle default color gracefully.  troff now supports a `default'
67           color (which can't be changed).
69           grops will now use the proper color space functions if available.
71           Update pic.
73         Note that currently grohtml doesn't handle colors properly.  This
74         has to be fixed.
76         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
77         (ui_to_a): New function.
78         * src/include/lib.h: Updated.
80         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
81         (color): Simplified; removed all `double' members and methods.
82         A new array `components' now holds the color parameters.
83         (color::is_default, color::get_components): New methods.
84         (color::operator==, color:operator!=): New.
85         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
86         to make access to the `components' array more comprehensible.
87         * src/libs/libgroff/color.cc: Implement new color support.
88         (atoh): Small fixes.
89         (color::read_encoding): Simplified for new troff intermediate color
90         output format.
91         (default_color): New global variable.
93         * src/roff/troff/input.cc (default_symbol): New global variable.
94         (lookup_color): Use it.
95         (default_black): Removed.
96         (do_glyph_color, do_fill_color): Simplified.
97         (define_color): Handle default color.
98         Improve warnings.
99         (do_if_request): Handle default color.
100         * src/roff/troff/env.cc (environment::environment): Initialize
101         colors with `default_color'.
102         * src/roff/troff/node.cc (troff_output_file::put): Add method
103         for `unsigned int'.
104         (troff_output_file::hex): Removed.
105         (troff_output_file::fill_color, troff_output_file::glyph_color):
106         Updated to include/color.h and libdriver/input.cc.
108         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
109         fill color properly (identically to the outline color).  \D'f...'
110         doesn't work any more.
111         All function calls to it updated.
113         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
114         Updated.
115         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
116         Updated.
118         * src/devices/grops/ps.cc (ps_output::put_color): New method.
119         (ps_printer::sbuf_color): Make a real member instead of pointer.
120         (ps_printer::fill_color, ps_printer::output_color): Removed.
121         (ps_printer::ps_printer): Updated.
122         (ps_printer::set_char): Ditto.
123         (ps_printer::set_color): Use various color schemes.
124         Use `put_color' method.
125         (ps_printer::flush_sbuf): Don't set color.
126         (ps_printer::fill_path): Take `environment' as parameter.
127         Simplify color handling.
128         (ps_printer::set_line_thickness): Renamed to ...
129         (ps_printer::set_line_thickness_and_color): This (and updated).
130         (ps_printer::set_color): Change second parameter from `complete'
131         to `fill' which better describes what it does.
132         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
133         and text in the right order.
134         Updated.
135         Remove branches for `f' and `F'; this is handled by
136         libdriver/input.cc.
137         * src/devices/grops/ps.h: Updated.
138         * font/devps/prologue (FL): Redefined
139         ({F,C}r,k,g: New color functions (with and without filling).
141         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
142         * man/groff_diff.man, man/groff.man, man/groff_out.man,
143         doc/groff.texinfo, NEWS: Updated.
145 2002-01-20  Bernd Warken  <bwarken@mayn.de>
147         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
148         in this file for what has been changed.
150 2002-01-19  Werner LEMBERG  <wl@gnu.org>
152         * test-groff: Fix GROFF_FONT_PATH.
153         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
154         is read before .TH or .Dd is parsed.
156 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
158         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
159         quadrant boundaries.
161 2002-01-18  Werner LEMBERG  <wl@gnu.org>
163         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
164         applied last patch.
166 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
168         * tmac/doc.common: Initialize %I register for the %I macro to
169         avoid (harmless) warning.
170         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
171         when in the SYNOPSIS section.
173 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
175         * src/preproc/pic/lex.cc (get_token): Fix typo.
177 2002-01-17  Werner LEMBERG  <wl@gnu.org>
179         * devices/grops/ps.cc: Fix incorrectly applied last patch.
181 2002-01-17  Larry Kollar  <kollar@alltel.net>
183         * tmac/groff_ms.man: Completely rewritten.
185 2002-01-16  Werner LEMBERG  <wl@gnu.org>
187         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
189 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
191         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
192         fill colors.
193         (ps_printer::draw): Ditto.
195 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
197         * tmac/groff_mdoc.man: Minor fixes.
199 2002-01-13  Werner LEMBERG  <wl@gnu.org>
201         * man/groff_out.man: Some fixes.
203 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
205         * doc/pic.ms: Fix typos.
207 2002-01-12  Werner LEMBERG  <wl@gnu.org>
209         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
211 2002-01-10  Werner LEMBERG  <wl@gnu.org>
213         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
214         symbols.
215         * NEWS: Updated.
217 2002-01-09  Bernd Warken  <bwarken@mayn.de>
219         * man/groff_out.man: Revised.
220         * man/roff.man: Minor fixes.
221         * src/roff/troff/troff.man: Some reordering.
223 2002-01-09  Werner LEMBERG  <wl@gnu.org>
225         * tmac/an-old.tmac: Add dummy macros for equation support.
227 2002-01-07  Werner LEMBERG  <wl@gnu.org>
229         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
231         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
232         man pages.
233         * tmac/groff_man.man: Small improvements.
235 2002-01-07  Bernd Warken  <bwarken@mayn.de>
237         * man/groff_diff.man: Revised.
239 2002-01-06  Werner LEMBERG  <wl@gnu.org>
241         * tmac/www.tmac: Remove extraneous backslash.
243 2002-01-06  Bernd Warken  <bwarken@mayn.de>
245         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
247 2002-01-05  Werner LEMBERG  <wl@gnu.org>
249         Integrated groffer, contributed by Bernd Warken.
251         * contrib/groffer/*: New.       
252         * Makefile.in, NEWS: Updated.
254 2002-01-04  Werner LEMBERG  <wl@gnu.org>
256         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
257         registers defined in macro packages.
258         Revising the ms part.
260 2002-01-04  Larry Kollar  <kollar@alltel.net>
262         * doc/groff.texinfo: Add documentation for ms macros.
264 2002-01-02  Werner LEMBERG  <wl@gnu.org>
266         First step in adding PS support for the Euro symbol.  `eu' is the
267         official Euro logo, `Eu' is a font-specific glyph variant.
269         * font/devps/text.enc: Add `Euro' at position 9.
270         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
271         * font/devps/symbolmap: Regenerated.
273         * NEWS: Updated.
275 2002-01-02  Bernd Warken  <bwarken@mayn.de>
277         * man/roff.man: Revised.
279 2002-01-01  Bernd Warken  <bwarken@mayn.de>
281         * src/roff/groff/groff.man: Completely rewritten.
283 2001-12-31  Werner LEMBERG  <wl@gnu.org>
285         * doc/Makefile: Updated.
287 2001-12-30  Werner LEMBERG  <wl@gnu.org>
289         * tmac/www.tmac: Make all names of internal macros/registers/strings
290         lowercase, and prepend `www-'.
291         Other minor changes.
292         * src/roff/troff/troff.man: Add preprocessor string at BOF.
294 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
296         Implement option `-b' in grohtml to set the HTML background colour.
298         * src/devices/grohtml/post-html.cc (default_background): New global
299         variable.
300         (html_printer::html_printer): Initialize `background' to
301         `default_background'.
302         (main): Implement option `-b'.
303         (usage): Updated.
304         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
305         of `-b' option.
306         * src/devices/grohtml/grohtml.man: Updated.
307         * doc/Makefile (.ms.html): Use `-b'.
308         * tmac/html.tmac: Don't set background color.
310         Add new grohtml tag `.html-tl'.
312         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
313         member variable.
314         (title_desc::title_desc): Updated.
315         (html_printer::troff_tag): Handle `.html-tl'.
316         (html_printer::write_title): Use `with_h1'.
317         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
318         (HTML-TL): New macro.
320         Add support for unordered lists in HTML.
322         * tmac/www.tmac (www-level): New auxiliary register.
323         (www-level1, www-level2, www-level3): New auxiliary strings.
324         (www-push-level, www-pop-level): New auxiliary macros
325         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
327         Miscellaneous.
329         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
330         (DEFAULT_VERTICAL_OFFSET): Removed.
331         (IMAGE_BOARDER_PIXELS): Set to 0.
332         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
333         (vertical_offset): Initialize with 0.
334         (gsPaper): New global variable.
335         (get_resolution): Scan for and return unsigned int.
336         (get_papersize): New function to get paper length from devps/DESC.
337         (determine_vertical_offset): New function.
338         (createAllPages): Produce gray-level images and use proper page
339         length.
340         (createImage): Use `-quiet' option of pnmcrop.
341         (addZ): Fix passing of `-Z'.
342         (scanArguments): Fix handling of `-o'.
343         (main): Call `determine_vertical_offset'.
344         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
345         code for `l'.
347         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
348         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
349         glyph descenders properly.
351         * doc/homepage.ms: Include `gnubw.eps'.
352         * doc/Makefile (gnubw.eps): New rule.
353         (homepage.html): Depend on `gnubw.eps'.
355 2001-12-25  Werner LEMBERG  <wl@gnu.org>
357         * src/roff/troff/input.cc (default_black): Fix return value.
359 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
361         * tmac/doc-common (Dt): Change output of architecture strings.
362         Do some syntax cleanup.
363         * tmac/groff_mdoc.man: Updated.
365 2001-12-23  Werner LEMBERG  <wl@gnu.org>
367         Adding an `itc' request (input line trap accepting \c).
369         * src/roff/troff/env.h (environment): New member
370         `continued_input_trap'.
371         Make `do_input_trap' a friend function instead of `input_trap'.
372         * src/roff/troff/env.cc (environment::environment,
373         environment::copy): Updated.
374         (environment::newline): Implement it.
375         (do_input_trap): New function.
376         (input_trap): Call `do_input_trap'.
377         (input_trap_continued): New function.
378         (init_env_requests): Updated.
379         * src/roff/troff/TODO: Updated.
381         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
382         `.it'.
384         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
386 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
388         * tmac/doc-common, tmac/doc-syms: Small updates.
390 2001-12-22  Colin Watson  <cjwatson@debian.org>
392         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
394 2001-12-22  Bernd Warken  <bwarken@mayn.de>
396         * MANIFEST: New file.
398 2001-12-22  Werner LEMBERG  <wl@gnu.org>
400         * src/preproc/grn/grn.man: Updated.
402 2001-12-22  Solar Designer  <solar@openwall.com>
404         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
405         (DBRead): Use it.
407 2001-12-19  Werner LEMBERG  <wl@gnu.org>
409         Implement a fallback character request `.fchar'.
411         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
412         (is_fallback): New inline function.
413         * src/roff/troff/input.cc (do_define_character): New function.
414         (define_character): Call `do_define_character'.
415         (define_fallback_character): New function.
416         (init_input_requests): Add `fchar'.
417         (charinfo::charinfo): Updated.
418         (charinfo::set_macro): New argument to set `fallback' flag.
419         * src/roff/troff/node.cc (make_glyph_node, make_node,
420         node::add_char): Check `fallback' flag.
421         * NEWS, man/groff_diff.man, man/groff_man: Updated.
423 2001-12-16  Werner LEMBERG  <wl@gnu.org>
425         * groff.texinfo: Document exact search algorithm for glyphs.
427 2001-12-15  Werner LEMBERG  <wl@gnu.org>
429         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
430         the left side of $(MANPAGES) rule to make it always non-empty.
432 2001-12-14  Werner LEMBERG  <wl@gnu.org>
434         * src/roff/troff/input.cc (default_black): Define default color
435         `black' if not yet defined.
437 2001-12-13  Werner LEMBERG  <wl@gnu.org>
439         Implement new string-valued register `.fn' to return the current
440         real (internal) font name.
442         * env.cc (environment::get_font_name_string): New function.
443         (init_env_requests): Add `.fn' register.
444         * env.h (environment): Updated.
445         * node.cc (font_info): Make `get_font_name' a friend.
446         (get_font_name): New function.
447         * node.h: Updated.
449         * man/groff_diff.man, man/groff.man, NEWS: Updated.
451 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
453         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
455 2001-12-12  Werner LEMBERG  <wl@gnu.org>
457         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
459 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
461         * man/groff_diff.man: Adding documentation for \O.
463 2001-12-10  Werner LEMBERG  <wl@gnu.org>
465         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
466         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
468 2001-12-09  Werner LEMBERG  <wl@gnu.org>
470         * man/roff.man: Revised.
471         * src/roff/groff/groff.man: Replace man page references with a
472         pointer to roff.man.
474 2001-12-09  Bernd Warken  <bwarken@mayn.de>
476         * man/roff.man: Completely rewritten.
478 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
480         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
482 2001-12-05  Werner LEMBERG  <wl@gnu.org>
484         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
485         longer used.
486         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
487         order of initializers.
488         * NEWS: Updated.
490 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
492         * doc/groff.texinfo: Fix documentation of \O.
494         * src/devices/grohtml/html-text.cc (html_text::do_indent,
495         html_text::do_table, html_text::do_emittext, html_text::do_para):
496         Use `const' for first argument.
497         (html_text::do_table): Use cast.
498         * src/devices/grohtml/html-text.h: Updated.
499         * src/devices/grohtml/output.cc (simple_output::put_string): Add
500         method for `const string &s'.
501         * src/devices/grohtml/html.h: Updated.
502         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
503         (ANCHOR_TEMPLATE): Modified.
504         (manufacture_headings): New global variable to handle `-h' option.
505         (is_subsection): Removed.
506         (char_buffer::add_string): Add `const' to first argument.
507         Protect against invalid string argument.
508         Add method for `const string &s'.
509         (text_glob): Completely redesigned.
510         (page): Use `const' for strings and remove string length variable.
511         (page::add_html): Removed.
512         (page::add_end_encode): New member function.
513         (to_unicode): Moved upwards.
514         (title_desc, header_desc): Updated.
515         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
516         definition.
517         (html_printer::is_bold, html_printer::make_bold): New member
518         functions.
519         (html_printer::end_of_line): Updated.
520         (generate_img_src, html_printer::do_auto_image,
521         html_printer::do_title, html_printer::write_header,
522         html_printer::determine_header_level, html_printer::do_heading,
523         html_printer::do_linelength, html_printer::do_pageoffset,
524         html_printer::do_indentation, html_printer::do_tempindent,
525         html_printer::do_indentedparagraph, html_printer::do_break,
526         html_printer::flush_sbuf, get_html_translation,
527         html_printer::begin_page, html_printer::special): Rewritten to get
528         rid of static string length limit.
529         (html_printer::troff_tag): Added `.no-auto-rule'.
530         (html_printer::flush_globs): Small fix.
531         (html_printer::determine_space): Don't compute `space_width'.
532         (html_printer::translate_to_html): Renamed to ...
533         (html_printer::emit_html): This (with updates).
534         (html_printer::write_header): Implement `-h' option.
535         (html_printer::draw): Remove commented-out code.  Handle `F'
536         command.
537         (html_printer::add_char_to_sbuf): Removed.
538         (html_printer::add_to_sbuf): Rewritten.
539         (html_printer::sbuf_continuation): Fixed.
540         (html_printer::seen_backwards_escape, reverse,
541         html_printer::remove_last_char_from_sbuf): Removed.
542         (char_translate_to_html, str_translate_to_html): Removed.
543         (html_printer::overstrike): New function member.
544         (html_printer::set_char): Use it.
545         (html_printer::do_body): New function member.
546         (html_printer::~html_printer): Use it.
547         (main): Handle `-h' option.
548         (usage): Updated.
549         * src/devices/grohtml/grohtml.man: Document -h switch.
551         * src/preproc/html/pre-html.cc: Include searchpath.h
552         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
553         (get_resolution): New function.
554         (checkImageDir): Use `0777' permissions in mkdir()
555         (write_start_image): Rewritten to use `\O[5...]'.
556         (createImage, generateImages): Updated.
557         (main): Handle `F' and `h' options.
558         Use `get_resolution'.
560         * src/roff/troff/input.cc (begin, end, image): Removed.
561         (do_suppress): Take parameter.
562         Handle modified syntax of `\O'.
563         (token::next): Updated.
564         (init_markup_requests): Removed.
565         (main): Updated.
567         * src/roff/troff/div.h: Add declaration for begin_page().
569         * tmac/color-html.tmac: Removed.  Contents moved to...
570         * tmac/html.tmac: Here.  Set background color.
571         * tmac/color.tmac: Removed.  Contents moved to...
572         * tmac/ps.tmac: Here.
573         * tmac/www.tmac: Remove the title command when generating images
574         for html.
575         (NO_AUTO_RULE): New macro.
576         (HTML_DO_IMAGE): Use revised `\O' escapes.
577         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
579 2001-12-02  Werner LEMBERG  <wl@gnu.org>
581         * tmac/groff_mdoc.man: Fix typo.
583 2001-12-01  Colin Watson  <cjwatson@debian.org>
585         * man/roff.man: Fix typo.
587 2001-11-29  Werner LEMBERG  <wl@gnu.org>
589         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
590         stdlib.h.
592         * src/roff/troff/input.cc (read_draw_node): Emit error message if
593         more than one argument to \D'f ...'.
595         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
597 2001-11-28  Werner LEMBERG  <wl@gnu.org>
599         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
600         loaded only once.
602         * tmac/groff_man.man: Minor cosmetic fix.
604 2001-11-27  Werner LEMBERG  <wl@gnu.org>
606         * src/roff/groff/groff.man, tmac/groff_tmac.man,
607         tmac/groff_www.man: s/mwww/www/.
609 2001-11-26  Werner LEMBERG  <wl@gnu.org>
611         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
612         * configure: Regenerated.
613         * win32-diffs: Updated.
615         * tmac/groff_mwww.tmac: Renamed to ...
616         * tmac/groff_www.tmac: This.
617         * tmac/mwww.tmac: Removed.
618         * NEWS, tmac/Makefile.sub: Updated.
620 2001-11-21  Werner LEMBERG  <wl@gnu.org>
622         * doc/groff.texinfo: Improve documentation of the `\v' escape.
623         Fix explanation of `\D' and `rt'.
625 2001-11-20  Werner LEMBERG  <wl@gnu.org>
627         * tmac/an-old.tmac (an-header): Set header length equal to page
628         width.
629         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
630         minor fixes.
631         * NEWS: Small fix.
633 2001-11-19  Werner LEMBERG  <wl@gnu.org>
635         * NEWS, man/Makefile.sub: Updated.
637 2001-11-19  Bernd Warken  <bwarken@mayn.de>
639         * man/ditroff.man: New file.
641 2001-11-17  Werner LEMBERG  <wl@gnu.org>
643         * man/groff_differences.man: Renamed to ...
644         * man/groff_diff.man: This.  Updated.
645         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
647         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
648         * src/preproc/html/pushback.cc: This.  Updated.
649         * src/preproc/html/pushbackbuffer.h: Renamed to ...
650         * src/preproc/html/pushback.h: This.
651         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
652         Updated.
654         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
655         * src/libs/libgroff/htmlhint.cc: This.
656         * src/libs/libgroff/Makefile.sub: Updated.
658         * tmac/an-old.tmac (an-end): Fix page length.
660 2001-11-16  Werner LEMBERG  <wl@gnu.org>
662         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
663         * man/Makefile.sub: Include groff_differences.man.
664         * VERSION: Set to 1.18.
665         * REVISION: Set to 0.
667 2001-11-16  Bernd Warken  <bwarken@mayn.de>
669         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
670         the second dot (or ending macro name) to end a macro.
671         * doc/groff.texinfo: Doc fix.
673 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
675         * tmac/doc-common (doc-header): Handle very long document titles
676         better.
678 2001-11-16  Werner LEMBERG  <wl@gnu.org>
680         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
682 2001-11-15  Werner LEMBERG  <wl@gnu.org>
684         * src/roff/troff/troff.man: Revised and split into troff.man and...
685         * man/groff_differences.man: New file.
686         * NEWS: Updated.
688 2001-11-13  Werner LEMBERG  <wl@gnu.org>
690         * tmac/an-old.tmac (TS, TE): New macros for table support.
692 2001-11-12  Werner LEMBERG  <wl@gnu.org>
694         * src/include/lib.h: Provide a fix for emx to not include
695         groff-getopt.h.
697 2001-10-27  Werner LEMBERG  <wl@gnu.org>
699         * src/roff/troff/input.cc (substring_macro): Fix computation of
700         boundary values.
702 2001-10-20  Werner LEMBERG  <wl@gnu.org>
704         Undo change from 2001-08-28.
706         * src/roff/troff/input.cc (have_input): New global variable.
707         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
708         in compatibility mode.
709         (process_input_stack): Use it.
711 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
713         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
714         being handled as end-of-sentence characters,
716 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
718         * src/roff/troff/input.cc (file_iterator): New members
719         `suppress_newline_flag' and `seen_escape'.
720         (file_iterator::next_file): Updated.
721         (file_iterator::fill): Use it.
722         (string_iterator): New member `suppress_newline_flag'.
723         (string_iterator::fill): Set it.
724         (get_color_element): Use MAX_COLOR_VAL.
725         * src/roff/troff/env.cc (environment): Remove `need_eol'.
726         (no_fill): Don't set `env->ignore_next_eol'.
727         (environment::newline): Handle `eol' tag properly.
728         Emit `eol.ce'.
729         (environment::add_html_tag): Set `env->ignore_next_eol'.
730         Don't handle `.ce'.
731         * src/roff/troff/env.h (environment): Updated.
733         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
734         member function.
735         (html_printer::outstanding_eol): New member function.
736         (html_printer::do_title): Use new functions.
737         (html_printer::troff_tag): Test `id_eol_ce'.
739 2001-10-10  Werner LEMBERG  <wl@gnu.org>
741         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
742         files work with -C also.
744 2001-10-05  Werner LEMBERG  <wl@gnu.org>
746         * doc/pic.ms: Minor fix.
747         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
748         as a valid command line switch.
749         * src/devices/grohtml/post-html.cc (main): Ditto.
750         (usage): Updated.
751         * src/devices/grohtml/grohtml.man: Updated.
752         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
754 2001-10-04  Werner LEMBERG  <wl@gnu.org>
756         Implementing color support in troff, pic, grops, and grohtml.  These
757         changes are based on a major patch provided by Gaius Mulley
758         <gaius@glam.ac.uk>.
760         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
761         definitions with both hex values and fractions.
763         New escapes: \m and \M for drawing and background color,
764         respectively.  This corresponds to the troff output commands `m'
765         and `DF'.
767         groff and troff accept command line switch `-c' to disable color
768         output (which is automatically disabled in compatibility mode).
770         New scaling indicator `f' for fractions (1f = 65536u).
772         New conditional operator `m' to test for defined colors with `if'
773         and `ie'.
775         New keywords `color' (or `colour', `colored', `coloured'), `outline'
776         (or `outlined'), and `shaded' added to pic.
778         * src/include/color.h: New file.
779         * src/include/driver.h: Include it.
780         * src/include/printer.h: Include color.h.
781         (environment): New members `col' and `fill'.
782         (printer): Remove `adjust_arc_center' member function.
783         * src/include/Makefile.sub: Updated.
785         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
786         `env.fill'.
787         Handle `m' and `DF' troff commands.
788         * src/libs/libgroff/color.cc: New file.
789         * src/libs/libgroff/Makefile.sub: Updated.
791         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
792         (stop): Removed.
793         (createImage): Fix computation of `y2'.
794         Use `pnmcrop' also.
795         (buffer::write_file_html): Remove calls to `stop'.
797         * src/preproc/pic/common.h (common_output): New abstract function
798         members `set_color', `reset_color', `get_last_filled', and
799         `get_outline_color'.
800         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
801         (object_spec): Add members `shaded' and `outlined'.
802         * src/preproc/pic/output.h (output): `command' is now abstract.
803         New function members `set_color', `reset_color', `get_last_filled',
804         and `get_outline_color'.
805         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
806         `outline[d]', and `shaded'.
807         * src/preproc/pic/object.cc (output::command): Removed.
808         (output::set_location): Moved to output.h.
809         (graphic_object): Add protected members `outline_color' and
810         `color_fill'.
811         Add member functions `set_outline_color', `get_outline_color', and
812         `set_fill_color'.
813         (closed_object): Add member function `set_fill_color'.
814         Add member `color_fill'.
815         (graphic_object::print_text): Use `out->set_color' and
816         `out->reset_color'.
817         (box_object::print, ellipse_object::print, circle_object::print,
818         line_object::print, spline_object::print, arc_object::print): Ditto.
819         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
820         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
821         `SHADED', making them `%left'.
822         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
823         * src/preproc/pic/tex.cc (tex_output): New dummy function members
824         `set_color', `reset_color', `get_last_filled', and
825         `get_outline_color'.
826         * src/preproc/pic/troff.cc (simple_output): New abstract function
827         members `set_color', `reset_color', and `get_last_filled'.
828         (simple_output::polygon, simple_output::circle,
829         simple_output::ellipse): Use `get_last_filled'.
830         (troff_output): New members `last_filled' and `last_outlined'.
831         New function members `set_color', `reset_color', `get_last_filled',
832         and `get_outline_color'.
833         (troff_output::finish_picture): Use `reset_color'.
834         (troff_output::set_fill): Test `last_filled'.
835         * src/preproc/pic/pic.man: Updated.
837         * src/roff/groff/groff.cc (main): Implement `-c' option.
838         (synopsis, help): Updated.
839         src/roff/groff/groff.man: Updated.
841         * src/roff/troff/troff.h: Include color.h.
842         (warning_type): Add WARN_COLOR.
843         * src/roff/troff/env.h (environment): New members
844         `{cur,prev}_{glyph,fill}_color'.
845         New member functions `get_{prev_,}{glyph,fill}_color'.
846         * src/roff/troff/env.cc: Initialize and implement them.
847         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
848         Replace `NULL' with `0' everywhere for consistency.
849         (lookup_color, default_black, do_glyph_color, do_fill_color,
850         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
851         define_color): New functions.
852         (token::next): Implement \M and \m escapes.
853         (do_if_request): Implement `m' operator.
854         (usage): Updated.
855         (main): Implement `-c' option.
856         (init_markup_requests): Add `defcolor' request.
857         (warning_table): Add `color' warning.
858         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
859         classes.
860         * src/roff/troff/node.cc (troff_output_file): New members
861         `current_{page,glyph}color'.  New member functions `put_hex',
862         `glyph_color', and `fill_color'.
863         (glyph_color_node::*, fill_color_node::*): Implement it.
864         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
865         (parse_term): Add support for `f'.
866         * src/roff/troff/troff.man: Updated.
868         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
869         entry for `F'.
870         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
871         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
873         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
874         (tag_definition): Use `void *' for arg1.
875         (html_text): New member functions `do_color' and `done_color'.
876         Use `void *' for second parameter of `push_para' member function.
877         New `push_para' member function with a single parameter.
878         Use `char *' for parameter of `issue_table_begin' member funtion.
879         New `issue_color_begin' member function.
880         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
881         COLOR_TAG.
882         (html_text::issue_color_begin): New function.
883         (html_text::issue_table_begin): Use `char *' for parameter.
884         (html_text::start_tag, html_text::shutdown,
885         html_text::check_emit_text): Updated.
886         (html_text::push_para): Use `void *' for second parameter.
887         Add same function with only one parameter.
888         (html_text::do_*): Updated.
889         (html_text::do_color, html_text::done_color): New functions.
890         * src/devices/grohtml/post-html.cc (style): New member `col'.
891         Mew member `style' with 6 parameters.
892         (style::style, style::operator==): Updated.
893         (html_printer::do_font): Use it.
894         (html_printer::draw): Add dummy entry for `F'.
895         (html_printer::set_char): Updated.
896         * src/devices/grohtml/grohtml.man: Updated.
898         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
899         trailing zeroes removed.
900         (ps_printer): New members `sbuf_color', `fill_color', and
901         `output_color'.
902         Removed member `fill'.
903         New member function `set_color'.
904         (ps_printer::ps_printer, ps_printer::set_char): Updated.
905         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
906         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
908         * tmac/color-html.tmac, tmac/color.tmac: New files.
909         * tmac/troffrc: Include them.
910         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
911         * tmac/Makefile.sub: Updated.
913         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
914         man/groff.man: Updated.
915         * font/devps/prologue.ps: Define FC and CO functions.
917 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
919         Fix incorrect cropping of images and incorrect handling of special
920         characters.  Fix handling of file names in \O.
922         * src/include/geometry.h: New file.
923         * src/libs/libgroff/geometry.cc: New file.
924         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
925         to `geometry.cc'.
926         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
927         initial spaces.
928         (do_suppress): Updated.
929         * src/roff/troff/node.cc: Include geometry.h.
930         (troff_output_file::flush_tbuf): Fixed parameters to
931         `check_output_limits'.
932         (troff_output_file::check_charinfo): Ditto.
933         (troff_output_file::determine_line_limits): Add support for `Da'
934         and `Dl' commands.
936         * src/devices/grohtml/post-html.cc (str_translate_to_html):
937         Add new parameter `is_special' to decode special characters from
938         escape sequences.
939         (html_printer::do_title, html_printer::do_heading,
940         html_printer::do_indentedparagraph,
941         html_printer::translate_to_html, html_printer::special): Updated.
943 2001-10-03  Werner LEMBERG  <wl@gnu.org>
945         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
946         Fix entry for config.h.
947         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
948         * tmac/troffrc: Translate nonbreakable space character to `\~'.
949         * src/preproc/eqn/eqn.man: Document -d command line option.
951 2001-09-27  Werner LEMBERG  <wl@gnu.org>
953         * man/groff.man: Use
955           .ev xxx
956           .na
957           .nh
958           <table>
959           .ev
961         instead of the old code (`.ad .hy' after the table) to suppress
962         incorrect hyphenation for grohtml output.
964 2001-09-22  Werner LEMBERG  <wl@gnu.org>
966         * man/groff_font.man, man/groff_out.man: Minor fixes.
968 2001-09-20  Werner LEMBERG  <wl@gnu.org>
970         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
971         Arnold Robbins <arnold@skeeve.com>).
973 2001-09-09  Werner LEMBERG  <wl@gnu.org>
975         * configure: Regenerated with autoconf 2.52.
977         * doc/groff.texinfo: Complete revision of indices.
979 2001-09-07  Werner LEMBERG  <wl@gnu.org>
981         * doc/Makefile (clean): Updated to delete all indices.
983 2001-09-05  Werner LEMBERG  <wl@gnu.org>
985         * src/roff/troff/troff.man: Remove superfluous line.
987         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
988         given on the command line (or rather, if only the default warnings
989         are set).
991 2001-09-03  Werner LEMBERG  <wl@gnu.org>
993         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
994         use .ne for TTY devices.
996 2001-08-31  Werner LEMBERG  <wl@gnu.org>
998         * src/roff/troff/token.h, src/roff/troff/input.cc:
999         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
1001 2001-08-28  Werner LEMBERG  <wl@gnu.org>
1003         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
1004         * src/roff/troff/input.cc (token::next): Return
1005         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
1006         compatibility mode.
1007         (token::description): Updated.
1008         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
1009         (token::add_to_node_list, token::process): Ignore
1010         TOKEN_TRANSPARENT_ESCAPE.
1012 2001-08-27  Werner LEMBERG  <wl@gnu.org>
1014         * tmac/an-old.tmac: Fix `S' string.
1016 2001-08-26  Werner LEMBERG  <wl@gnu.org>
1018         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
1020 2001-08-25  Werner LEMBERG  <wl@gnu.org>
1022         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
1023         backslashes).
1024         Many other minor fixes.
1026         * configure.ac: Add message at end to inform how to compile
1027         xditview.
1028         * configure: Regenerated.
1030 2001-08-24  Werner LEMBERG  <wl@gnu.org>
1032         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
1033         Updated to latest version of libc.
1035 2001-08-23  Werner LEMBERG  <wl@gnu.org>
1037         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
1038         Autoconf 2.50 and newer can handle this.
1039         * configure: Regenerated.
1041 2001-08-21  Werner LEMBERG  <wl@gnu.org>
1043         * doc/pic.ms: Fix typo.
1044         * src/preproc/tbl/tbl.man: Document case of global options.
1046 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
1048         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
1049         handling of `CR' font.
1051 2001-08-20  Werner LEMBERG  <wl@gnu.org>
1053         Use a config.h file.
1055         * src/include/lib.h: Include config.h.
1056         * All C files: Ditto (if necessary).
1057         * All C++ source and header files: Include lib.h first (if
1058         necessary).
1060         * src/include/config.hin: New file (autogenerated by autoheader).
1061         * stamp-h.in: New file.
1062         * configure.ac: Updated.
1063         * aclocal.m4: Add third parameters to AC_DEFINE macros.
1064         (GROFF_ARRAY_DELETE): Simplified.
1065         * Makefile.sub (DISTCLEANFILES): Updated.
1066         Added targets for remaking config.status, config.hin, config.h,
1067         stamp-h.in, and stamp-h.
1068         * configure: Regenerated.
1070 2001-08-19  Werner LEMBERG  <wl@gnu.org>
1072         * NEWS: Updated.
1074 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
1076         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
1077         (do_sprintf): Use snprintf().
1079 2001-08-18  Werner LEMBERG  <wl@gnu.org>
1081         * src/libs/snprintf/*: Added an snprintf module written by Mark
1082         Martinec.
1083         * src/libs/libgroff/Makefile.sub: Updated.
1084         * configure.ac: Add test for snprintf().
1085         * Makefile.in: Updated.
1086         * configure: Regenerated.
1088         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
1089         uses snprintf().
1091 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
1093         * tmac/doc.tmac (Ex): New implementation.
1094         * tmac/doc-common, tmac/groff_tmac.man: Updated.
1096 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
1098         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
1099         argument.
1100         * tmac/groff_tmac.man: Updated.
1102 2001-08-13  Werner LEMBERG  <wl@gnu.org>
1104         * src/preproc/tbl/tbl.man: Minor documentation update.
1106 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1108         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
1109         * configure.ac: Add declaration test for gettimeofday().
1110         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
1111         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
1112         * configure: Regenerated.
1114 2001-08-11  Werner LEMBERG  <wl@gnu.org>
1116         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
1117         * configure.ac: Add declaration test for strcasecmp().
1118         * Makefile.in: Updated.
1119         * configure: Regenerated.
1120         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
1121         this is necessary because groff's mkstemp.cc is C++.
1122         Add declaration conditionally for strcasecmp().
1124 2001-08-10  Werner LEMBERG  <wl@gnu.org>
1126         Integrated pic2graph, contributed by Eric S. Raymond.
1128         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
1129         files.
1130         * Makefile.in, NEWS: Updated.
1132         * src/preproc/tbl/tbl.man: Revised.
1134 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
1136         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
1138 2001-08-09  Werner LEMBERG  <wl@gnu.org>
1140         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
1141         requests.
1143 2001-08-08  Paul Eggert  <eggert@twinsun.com>
1145         * Makefile.sub (configure): Depend on configure.ac, not
1146         configure.in.
1147         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
1149 2001-08-07  Werner LEMBERG  <wl@gnu.org>
1151         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
1152         fixes.
1154 2001-08-06  Werner LEMBERG  <wl@gnu.org>
1156         * src/roff/troff/troff.man: Improve documentation of -E option.
1158 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
1160         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
1161         Simplified.
1163 2001-07-27  Werner LEMBERG  <wl@gnu.org>
1165         * src/preproc/refer/refer.cc: Undo last change.
1166         * src/devices/grohtml/post-html.cc: Ditto.
1168 2001-07-26  Werner LEMBERG  <wl@gnu.org>
1170         * src/preproc/refer/refer.cc: Include `lib.h'.
1171         * src/devices/grohtml/post-html.cc: Ditto.
1173 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
1175         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
1176         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
1177         * Makefile.in: Comment updated.
1178         * configure: Regenerated.
1180 2001-07-25  Werner LEMBERG  <wl@gnu.org>
1182         * src/preproc/pic/pic.cc: Removed.
1183         * src/preproc/pic/pic_tab.h: Removed.
1184         * src/preproc/refer/label.cc: Removed.
1186         * doc/Makefile (.ms.html): Don't use a file name extension in
1187         argument to grohtml's -I option.
1188         * Makefile.in (dist): Remove CVS directories.
1189         Call `distfiles' target.
1191         * src/devices/grohtml/grohtml.man: Add information about valid
1192         versions of pnmtopng.
1193         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
1194         name instead of number.
1196 2001-07-24  Werner LEMBERG  <wl@gnu.org>
1198         * doc/groff.texinfo: Minor fixes.
1200 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
1202         * doc/Makefile (.ms.html): Put image files into a subdirectory.
1203         (clean): Updated.
1205 2001-07-20  Werner LEMBERG  <wl@gnu.org>
1207         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
1208         * src/libs/libgroff/mkstemp.cc: New file.
1209         * src/libs/libgroff/mksdir.cc: New file.
1210         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
1211         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
1212         * src/libs/libgroff/Makefile.sub: Updated.
1213         * src/include/lib.h: Add mksdir() prototype.
1214         * src/include/posix.h: Define S_IXUSR if not yet defined.
1216         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
1217         (createAllPages): Use mksdir() instead of current code.
1218         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
1219         (main): [!HAVE_MKSTEMP]: Removed.
1221         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
1222         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
1223         macros.
1224         * configure.ac: Add tests for stdint.h, sys/time.h, and
1225         gettimeofday().
1226         Call new GROFF_xxx macros.
1227         * configure: Regenerated.
1228         * Makefile.in: Comments updated.
1230 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
1232         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
1233         instead of current code.
1234         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
1235         * src/roff/groff/groff.cc (possible_command::insert_args): New
1236         function.
1237         (main): Use it for predriver handling instead of insert_arg().
1239 2001-07-19  Werner LEMBERG  <wl@gnu.org>
1241         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
1242         groff also.
1244         * src/include/posix.h: Define S_IWUSR if not yet defined.
1246 2001-07-18  Werner LEMBERG  <wl@gnu.org>
1248         * NEWS: Updated.
1250 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
1252         * tmac/groff_mdoc.man: Document new -width and -column syntax.
1253         Some other minor fixes.
1254         * tmac/an-old.tmac: Add `AT' and `UC' macros.
1256 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
1258         Replace call to `troff' with `groff -Z' to make it aware of
1259         GROFF_BIN_PATH.
1261         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
1262         (troff_command, command_prefix): Removed.
1263         (alterDeviceTo): Use groff.
1264         (addZ): New function.
1265         (char_buffer::do_html): Use it.
1266         (scanArguments): Use TROFF_COMMAND.
1267         (findPrefix): Removed.
1268         (main): Updated.
1269         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
1271 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
1273         * doc/pic.ms: Documentation fixes.
1275 2001-07-17  Werner LEMBERG  <wl@gnu.org>
1277         Replace atexit() with global destructor.
1279         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
1280         (xtmpfile_list_init): New global structure to deallocate
1281         xtmpfile_list on exit.  Its destructor inherits most code from
1282         remove_tmp_files().
1283         (remove_tmp_files): Deleted.
1284         (add_tmp_file): Simplified.
1286 2001-07-16  Werner LEMBERG  <wl@gnu.org>
1288         Replace strdup() with strsave().
1290         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
1291         (set_papersize): Use strsave() and a_delete.
1292         (main): Use strsave().
1293         * src/preproc/html/pre-html.cc (make_message, createAllPages,
1294         removeAllPages): Use strsave() and a_delete.
1296         * configure.ac: Remove test for strdup.
1297         * Makefile.in: Comment updated.
1298         * configure: Regenerated.
1300 2001-07-15  Werner LEMBERG  <wl@gnu.org>
1302         * win32-diffs: Updated.
1304 2001-07-14  Werner LEMBERG  <wl@gnu.org>
1306         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
1307         removing the old one.
1308         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
1310 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
1312         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
1314 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
1316         Merge -xwidth into -width.  Add -xwidth functionality to -column
1317         also.
1319         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
1320         avoid warning.
1321         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
1322         string immediately following a leading dot starts with a valid mdoc
1323         argument.
1324         Add similar code to the -column branch.
1325         (doc-Bl-usage): Updated.
1326         * groff_mdoc.man: s/-xwidth/-width/.
1328 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
1330         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
1331         running into centered or non-formatted text.
1333 2001-07-11  Werner LEMBERG  <wl@gnu.org>
1335         Introduce short and long prefixes to have the selection at run-time
1336         whether there is a 8+3 limit for names of temporary files.
1338         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
1339         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
1340         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
1341         variables.
1342         (temp_init): New global structure to initialize above three
1343         variables.
1344         (xtmptemplate): Use two parameters for long and short prefix.
1345         Simplify code use above three variables.
1346         (xtmpfile): Use long and short prefixes as parameters.
1347         * src/include/lib.h: Updated.
1349         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
1350         with ...
1351         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
1352         (createAllPages, makeTempFiles): Updated.
1354 2001-07-09  Werner LEMBERG  <wl@gnu.org>
1356         * REVISION: Increased to 3.
1358 Version 1.17.2 released
1359 =======================
1361 2001-07-07  Werner LEMBERG  <wl@gnu.org>
1363         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
1364         to size_t.
1366 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
1368         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
1369         Fix synopsis.
1370         * tmac/groff_mdoc.man: Fix synopsis.
1372 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
1374         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
1375         Restore `doc-Pa-font'.
1377 2001-07-04  Werner LEMBERG  <wl@gnu.org>
1379         * src/utils/indxbib/dirnamemax.c: Moved to ...
1380         * src/libs/libgroff/maxfilename.cc: Here.
1381         s/dir_name_max/file_name_max/.
1382         Add copyright.
1383         * src/include/lib.h: Add file_name_max.
1384         * src/utils/indxbib/indxbib.cc: Updated.
1385         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
1386         Updated.
1388         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
1389         as empty.
1390         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
1392         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
1393         REGION_TEMPLATE): New macros.
1394         (createAllPages, makeTempFiles): Use them.
1395         Include `nonposix.h'.
1396         (html_system): New function.
1397         (createAllPages, createImage): Use it.
1398         Use EXE_EXT.
1400         * tmac/www.tmac: Fix typos.
1402 2001-07-03  Werner LEMBERG  <wl@gnu.org>
1404         * tmac/www.tmac: Disable hyphenation in normal text only if output
1405         device is html.
1406         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
1407         * tmac/groff_mwww.man, NEWS: Updated.
1409 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
1411         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
1412         image location.
1414 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
1416         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
1417         doc-display-ps-stack): Implement font and font size stack for
1418         displays.
1420 2001-07-02  Werner LEMBERG  <wl@gnu.org>
1422         * REVISION: Increased to 2.
1423         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
1425         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
1426         beginning of a line.
1427         * src/groff/grog/grog.sh: Ditto.
1429 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
1431         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
1432         make it portable.
1434 2001-06-27  Werner LEMBERG  <wl@gnu.org>
1436         Fix problems with preprocessor string for `man' program.
1438         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
1439         Updated/added copyright.
1440         Moved Emacs's local variable to identify nroff mode to the end of
1441         the file; add local variable if missing.
1443 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
1445         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
1446         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
1447         * configure: Regenerated.
1449 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
1451         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
1452         * configure: Regenerated.
1454 2001-06-24  Werner LEMBERG  <wl@gnu.org>
1456         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
1457         but www.tmac.
1458         * doc/pic.ms: Fix typos.
1460 Version 1.17.1 released
1461 =======================
1463 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
1465         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
1466         * configure: Updated.
1468 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
1470         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
1471         image names.
1472         * src/roff/troff/dic.cc (blank_line): Add html tag.
1474 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
1476         * src/roff/troff/input.cc (do_suppress): Fix typo.
1478 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
1480         Added two new options (-D and -I) to specify image names and a
1481         subdirectory to place the images in.
1483         Change syntax from \\Ox to \\O[x].
1485         * src/devices/grohtml/post-html.cc (main): Add options.
1486         (usage): Updated.
1487         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
1488         Use `NULL' instead of `0' for null string pointers.
1489         (MAX_RETRIES): New macro.
1490         (lengthOfintToStr, intToStr, make_message): New functions.
1491         (makeFileName): Make function static.
1492         Implement -D and -I options.
1493         (checkImageDir): New function.
1494         (write_end_image, write_start_image): Use new syntax of \O.
1495         (createAllPages, removeAllPages): Implement -D and -I options.  Use
1496         make_message().
1497         (createImage): Use make_message().
1498         (addps4html): Add guard for malloc().
1499         (usage, scanArguments): Updated.
1500         (makeTempFiles): Use mkstemp().
1501         (removeTempFiles): Use unlink().
1502         (findPrefix): Add guard for malloc().
1503         (main): Updated.
1504         * src/roff/troff/input.cc (get_delim_file_name): New function to
1505         parse \O.
1506         (do_suppress): Updated to parse new syntax.
1507         * src/devices/grohtml/grohtml.man: Updated.
1508         * tmac/www.tmac: Updated to new syntax.
1510         * NEWS: Updated.
1512 2001-06-15  Werner LEMBERG  <wl@gnu.org>
1514         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
1516         * src/devices/grohtml/grohtml.man: Minor improvements.
1518 2001-06-14  Werner LEMBERG  <wl@gnu.org>
1520         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
1522 2001-06-11  Werner LEMBERG  <wl@gnu.org>
1524         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
1525         line to specify preprocessor options -- mandb 2.3.1 only recognizes
1526         the former.
1527         * src/preproc/grn/grn.man: Add proper '\" string.
1529 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
1531         * test-groff: Don't use PATH but GROFF_BIN_PATH.
1533 2001-06-08  Werner LEMBERG  <wl@gnu.org>
1535         Updated to autoconf 2.50.
1537         * configure.in: Renamed to...
1538         * configure.ac: This.
1539         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
1540         (GROFF_OS390): Updated.
1541         * configure: Regenerated.
1543 2001-05-18  Werner LEMBERG  <wl@gnu.org>
1545         * src/roff/troff/env.c, src/roff/troff/env.h,
1546         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
1547         from 2000-12-21.
1549 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
1551         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
1553 2001-05-16  Werner LEMBERG  <wl@gnu.org>
1555         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
1556         less than or equal zero; set it to 1 then.
1557         * src/roff/troff/node.h (node::node): Initialize `last'.
1559 2001-05-08  Werner LEMBERG  <wl@gnu.org>
1561         * tmac/an-old.tmac: Make predefined strings work in compatibility
1562         mode.
1563         Add troff version guard.
1564         * tmac/doc.tmac: Simplify version guard.
1566 2001-05-07  Werner LEMBERG  <wl@gnu.org>
1568         The .ns and .rs requests are now honoured not only in the top-level
1569         but in all diversions (similar to UNIX troff).
1571         This change is based on a patch from Tadziu Hoffmann
1572         <hoffmann@usm.uni-muenchen.de>.
1574         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
1575         (top_level_diversion): Remove `no_space_mode' member.
1576         * src/roff/troff/div.cc (diversion::diversion,
1577         top_level_diversion::top_level_diversion): Updated.
1578         (macro_diversion::output): Reset `no_space_mode'.
1579         (no_space, restore_spacing): Use `curdiv' unconditionally.
1580         (space_request, blank_line): Check `curdiv->no_space_mode'.
1581         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
1582         `curdiv' unconditionally.
1583         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
1584         Updated.
1586 2001-05-06  Werner LEMBERG  <wl@gnu.org>
1588         Added two new requests `de1' and `am1' which are similar to `de' and
1589         `am' with the difference that compatibility mode is saved on entry,
1590         switched off during macro execution, and restored on exit.
1592         * src/roff/troff/input.h: Added two new special characters
1593         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
1594         * src/roff/troff/input.cc (input_iterator): Added two member
1595         functions `save_compatible_flag' and `get_compatible_flag'.
1596         (input_stack): Ditto.
1597         (string_iterator): Ditto.  Also add private member
1598         `saved_compatible_flag'.
1599         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
1600         (calling_mode): New enumeration.
1601         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
1602         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
1603         (define_macro, define_indirect_macro, append_macro, ignore): Use
1604         `calling_mode'.
1605         (define_nocomp_macro, append_nocomp_macro): New functions.
1606         (init_input_requests): Updated.
1607         (do_request): Rename local variable `saved_compatible_flag' to
1608         `old_compatible_flag'.
1609         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
1611         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
1612         public and trap-invoked macros.  As a consequence, the man macros
1613         work in compatibility mode also.
1615 2001-05-06  Solar Designer  <solar@openwall.com>
1617         * Makefile.in: Use $(mandir).
1619 2001-05-06  Alexios Zavras  <zvr@pobox.com>
1621         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
1623 2001-05-05  Werner LEMBERG  <wl@gnu.org>
1625         Added `.ns' number register: Returns 1 in no-space mode (if in
1626         top-level diversion), 0 otherwise.
1628         * src/roff/troff/div.cc (no_space_mode_reg): New class.
1629         (init_div_requests): Updated.
1630         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
1631         Document it.
1633 2001-05-04  Werner LEMBERG  <wl@gnu.org>
1635         * src/roff/nroff/nroff.man: Improved documentation (especially
1636         locales).
1638 2001-05-02  Werner LEMBERG  <wl@gnu.org>
1640         Added `brp' request: This is \p as a request.
1642         * src/roff/troff/env.cc (environment::do_break): Add parameter
1643         `spread'.
1644         (do_break_request): New function (was `break_request').
1645         (break_request): Calls `do_break_request'.
1646         (break_spread_request): New; calls `do_break_request'.
1647         (init_env_requests): Updated.
1648         * src/roff/troff/env.h: Updated.
1649         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
1651         * REVISION: Increased to 1.
1652         * win32-diffs: Updated.
1654 2001-05-01  Werner LEMBERG  <wl@gnu.org>
1656         * tmac/an-old.tmac: Fix minor compatibility mode issue.
1657         * tmac/troffrc-end: Make it really work in compatibility mode.
1659 2001-04-27  Werner LEMBERG  <wl@gnu.org>
1661         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
1662         stdlib.h.
1664 2001-04-22  Werner LEMBERG  <wl@gnu.org>
1666         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
1667         latest versions from glibc CVS archive.
1669         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
1670         <c.zeelenberg@hccnet.nl>.
1672 2001-04-21  Werner LEMBERG  <wl@gnu.org>
1674         * configure.in: Move check for mkstemp() to...
1675         * aclocal.m4 (GROFF_MKSTEMP): This new function.
1676         * configure: Regenerated.
1678         * src/include/groff-getopt.h: Don't use variable names in
1679         declarations.
1681         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
1682         * src/devices/grohtml/Makefile.sub,
1683         src/devices/grohtml/post-html.cc: Updated.
1685 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
1687         * configure.in: Add special check for mkstemp().
1688         * src/libs/libgroff/tmpfile.cc: Use it.
1689         * src/utils/indxbib/indxbib.cc: Ditto.
1690         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
1691         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
1692         `const'.
1694 2001-04-20  Bruce Lilly  <blilly@erols.com>
1696         `Version_string' as C++ object was not visible to linker from C
1697         object files.
1698         Add `const' to `Version_string'.
1700         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
1701         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
1702         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
1703         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
1704         (scanArguments), src/preproc/refer/refer.cc (main),
1705         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
1706         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
1707         (main), src/devices/grohtml/post-html.cc (main),
1708         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
1709         (main), src/utils/hpftodit/hpftodit.cc (main),
1710         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
1711         (main), src/utils/lkbib/lkbib.cc (main),
1712         src/utils/addftinfo/addftinfo.cc (main): Implement it.
1714         * src/roff/groff/pipeline.c: Add _UWIN.
1715         * src/include/nonposix.h: Ditto.
1717 2001-04-20  Werner LEMBERG  <wl@gnu.org>
1719         * src/include/lib.h: Use HAVE_STRERROR.
1720         * src/roff/groff/pipeline.c: Ditto.
1721         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
1722         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
1723         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
1724         * win32-diffs: Updated.
1725         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
1727 2001-04-19  Werner LEMBERG  <wl@gnu.org>
1729         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
1730         instead of hardwired `"troff"'.
1731         (char_buffer::read_file): Remove unused variables.
1732         (char_buffer::write_file_troff): Ditto.
1733         (char_buffer::write_file_html): Ditto.
1734         (generateImages): Ditto.
1735         (abs): Removed.
1736         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
1738         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
1740         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
1741         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
1742         index_search_item::search1): Ditto.
1743         * src/roff/troff/node.h (width_list): Reorder members.
1744         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
1745         (lookup_warning): Ditto.
1746         (prepend_string): Commented out.
1747         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
1748         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
1749         * src/preproc/tbl/main.cc (process_format): Ditto.
1750         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
1751         compiler warnings.
1752         * src/preproc/pic/pic.cc: Updated.
1753         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
1754         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
1755         * src/preproc/refer/command.cc (execute_command): Ditto.
1756         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
1757         * src/preproc/refer/token.cc (lookup_token): Ditto.
1758         * src/preproc/soelim/soelim.cc: Ditto.
1759         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
1760         (isHexDigit): Commented out.
1761         (pushBackBuffer::isString): Remove unused variable.
1762         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
1763         warning.
1764         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
1765         resource_manager::read_resource_arg, read_one_of, parse_extensions):
1766         Ditto.
1767         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
1768         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
1769         lookup_paper_size): Ditto.
1770         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
1771         (text_glob, element_list): Reorder members.
1772         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
1773         compiler warning.
1774         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
1775         return value to `void'.
1776         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
1777         of initializers.
1778         * src/devices/grohtml/html.h (simple_output::check_newline,
1779         simple_output::space_or_newline, simple_output::enable_newlines):
1780         Add return value.
1781         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
1782         compiler warnings.
1783         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
1784         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
1785         output_ligatures, output_charset, read_map): Ditto.
1786         * src/utils/lookbib/lookbib.cc (main): Ditto.
1787         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
1788         (do_file): Fix typo (`=' -> `==').
1789         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
1790         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
1792 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
1794         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
1795         Fix usage of GROFF_BIN_PATH.
1796         * src/roff/nroff/nroff.man: Updated.
1798 2001-04-18  Werner LEMBERG  <wl@gnu.org>
1800         * NEWS: Fixing typos.
1801         Updated.
1803 Version 1.17 released
1804 =====================
1806 2001-04-17  Werner LEMBERG  <wl@gnu.org>
1808         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
1809         directory, not in $(srcdir).
1811 2001-04-16  Werner LEMBERG  <wl@gnu.org>
1813         * doc/groff.texinfo: More info on conditionals.
1815 2001-04-15  Werner LEMBERG  <wl@gnu.org>
1817         * doc/groff.texinfo: Added some info about groff internals.
1819         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
1820         about missing special character only if the name is non-null.
1822 2001-04-14  Werner LEMBERG  <wl@gnu.org>
1824         Removing the grohtml-old device driver which is now obsolete.
1826         * src/devices/grohtml-old/*: Removed.
1827         * font/devhtml-old/*: Removed.
1828         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
1829         Remove comments.
1830         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
1831         * test-groff (PATH): Updated.
1832         * tmac/Makefile.sub (NORMALFILES): Updated.
1833         * tmac/an-old.tmac: Remove special code for html-old device.
1834         Replace `html-or-html-old' register with `an-html'.
1835         * tmac/eqnrc: Updated.
1836         * tmac/html-old.tmac: Removed.
1837         * tmac/troffrc, tmac/troffrc-end: Updated.
1838         * tmac/www.tmac: Remove special code for html-old device.
1839         Replace `html-or-html-old' register with `www-html'.
1841         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
1842         src/libs/libgroff/htmlindicate.cc (graphic_end),
1843         include/htmlindicate.h, src/preproc/grn/*.cc,
1844         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
1845         single argument for consistency with rest of source code.
1847         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
1849 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
1851         * src/roff/troff/troff.man: Fixing typos.
1853 2001-04-13  Werner LEMBERG  <wl@gnu.org>
1855         * doc/pic.ms: Fixing many font switches.
1856         * doc/groff.texinfo: Fixes, additions.
1857         * MORE.STUFF: Updated.
1859 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
1861         * src/devices/grohtml/grohtml.man: Updated manual page regarding
1862         simple anchor.
1863         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
1864         cropping of images.
1865         (removeTempFiles): New function to tidy up temporary files.
1866         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
1867         Many fixes to do with the new inline suppress node and image regions
1868         are much tighter.
1869         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
1870         (generate_img_src): New function.
1871         (html_printer::do_auto_image): Utilizes it.
1872         (do_heading, do_title): Include inline images within their contents.
1873         (html_printer::begin_page): Tidied up comments that are issued to
1874         the html output file.
1875         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
1876         than courier.
1877         (text_glob::is_br): New method used by do_heading.
1878         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
1879         equivalent diversion.
1880         * src/include/html-strings.h: Altered image tags to reflect the
1881         inline image node.
1882         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
1883         parameter.
1884         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
1885         it is already inside a pic image.  Only emit tags if the argument
1886         `-Tps:html' is present.
1887         * src/preproc/tbl/main.cc: Changes to reflect additional
1888         `html_end_suppress' parameter.
1889         * src/roff/troff/env.cc: Only emit eol tag if a node has been
1890         emitted since the last eol tag was written.
1891         * src/roff/troff/env.h: New boolean `emitted_node'.
1892         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
1893         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
1894         * src/roff/troff/node.cc (check_charinfo): New method. 
1895         (troff_output_file::determine_line_limits): Alterations to limit
1896         checking.
1897         * tmac/www.tmac: Changes to reflect new suppress nodes.
1898           
1899 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
1901         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
1902         Escape the html_glyph in the buffer.
1903         (str_translate_to_html): Output the unescaped escaped_char.
1904         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
1905         `frame=void', not `frame=none'.  Add `border=0'.
1907 2001-04-12  Werner LEMBERG  <wl@gnu.org>
1909         * PROBLEMS: Add some words on how to avoid wrapper macros.
1911 2001-04-11  Blake McBride  <blake@florida-software.com>
1913         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
1915 2001-04-11  Werner LEMBERG  <wl@gnu.org>
1917         * font/devlbp/Makefile.sub (CLEANADD): Set it.
1918         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
1919         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
1920         * Makefile.sub (DISTCLEANFILES): Here.
1922         * libs/libgroff/new.cc: Include `nonposix.h'.
1923         * win32-diffs: Updated.
1925 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
1927         Added skeleton macro for defunct macros.
1929         Updated documentation.
1931         When inside displays, an empty input line warning should be
1932         suppressed.  If another macro call is put inside a display,
1933         all subsequent empty lines found in that display caused a
1934         warning to be emitted.
1936         * tmac/doc.tmac (doc-defunct-macro): New macro.
1937         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
1938         (doc-restore-global-vars): Fixed typo.
1939         (doc-empty-line): Check the `doc-display-depth' register to
1940         determine whether we are inside display or not.
1942         * tmac/doc-common: Removed `Or' and `Sf' registers.
1943         Moved obsolete `Ds' macro to doc.tmac.
1945         * tmac/groff_mdoc.man: Bump document date.
1946         Document `.Vt' under ``Variable Types''.
1947         Removed documentation for obsolete `.Or' macro.
1949 2001-04-10  Werner LEMBERG  <wl@gnu.org>
1951         * NEWS: Updated.
1952         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
1954 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
1956         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
1957         (usage): Add stream argument. Don't exit.
1958         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
1959         Write --version output to stdout, not stderr.
1960         (usage): Add stream argument. Don't exit.
1961         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
1962         (usage): Add stream argument. Don't exit.
1963         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
1964         constants.
1965         (usage): Add stream argument. Don't exit.
1966         (main): Write --help output to stdout, not stderr.
1967         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
1968         (usage): Add stream argument. Don't exit.
1969         * src/devices/grops/ps.cc (main): Accept --help and --version.
1970         (usage): Add stream argument. Don't exit.
1971         * src/devices/grotty/tty.cc (main): Accept --help and --version.
1972         (usage): Add stream argument. Don't exit.
1973         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
1974         (main): Accept --help and --version.
1975         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
1976         (main): Accept --help and --version.
1977         * src/preproc/html/pre-html.cc (usage): Add stream argument.
1978         (scanArguments): Accept --help and --version.
1979         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
1980         (main): Accept --help and --version.
1981         * src/preproc/refer/refer.cc (main): Accept --help and --version.
1982         (usage): Add stream argument. Don't exit.
1983         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
1984         exit.
1985         (main): Accept --help and --version.
1986         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
1987         (main): Accept --help and --version.
1988         * src/roff/groff/groff.cc (main): Accept --help and --version.
1989         (synopsis): Add stream argument.
1990         (help): Write --help output to stdout, not stderr.
1991         (usage): Add stream argument. Don't exit.
1992         * src/roff/grog/grog.pl: Accept --help and --version.
1993         (help): New sub.
1994         * src/roff/grog/grog.sh: Accept --help and --version.
1995         * src/roff/nroff/nroff.sh: Accept --help and --version.
1996         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
1997         (usage): Add stream argument. Don't exit.
1998         (main): Accept --help and --version.
1999         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
2000         (usage): New function with stream argument, doesn't exit.
2001         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
2002         (usage): New function with stream argument, doesn't exit.
2003         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
2004         (usage): Add stream argument. Don't exit.
2005         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
2006         (main): Accept --help and --version.
2007         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
2008         exit.
2009         (main): Accept --help and --version.
2010         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
2011         (main): Accept --help and --version.
2012         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
2013         (usage): Add stream argument. Don't exit.
2015 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
2017         Fix indentation in SYNOPSIS.
2019         Updated to include changes of latest BSD mdoc version (basically,
2020         the only change is that `.Fn' and `.Fc' put a final semicolon after
2021         a function declaration in the SYNOPSIS section).
2023         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
2024         (doc-in-synopsis-section): New variable.  Updated all related
2025         functions.
2026         (doc-indent-synopsis-active): New register.
2027         (Nd, Fn, Fo): Use it.
2028         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
2029         `.Cd' with long argument line produces indented wrapped lines. 
2030         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
2031         undesirable line break to be output.
2032         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
2033         `.rs'.
2034         (Fn, Fc): Add final `;' to output.
2035         (doc-save-global-vars, doc-restore-global-vars): Updated.
2036         * tmac/doc-common: Remove `Ex' register.
2037         Updated.
2038         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
2039         copyright.
2041 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
2043         * tmac/doc.tmac (Cd): Simplify code.
2044         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
2046 2001-04-06  Werner LEMBERG  <wl@gnu.org>
2048         Implement continuous underlining for nroff mode.  To do that, a new
2049         request in the ditroff language has been added: `x u N' (N is 0
2050         or 1).
2052         \X and \Y are now transparent to end-of-sentence recognition.
2054         * src/include/printer.h (printer): Add `type' parameter to `special'
2055         method.
2056         * src/libs/libdriver/printer.cc (printer::special): Updated.
2057         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
2059         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
2060         specials of type `p'.
2061         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
2062         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
2063         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
2064         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
2065         (glyph::order): New method.
2066         (tty_printer::add_char): Use it.
2067         (tty_printer::special): New method.
2068         (tty_printer::end_page): Implement it.
2070         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
2071         * src/roff/troff/node.cc (special_node::special_node): Add parameter
2072         to set `no_init_string'.
2073         (special_node::tprint_start): Use it.
2074         (special_node::same, special_node::copy): Updated.
2075         (special_node::ends_sentence): New method.
2076         (troff_output_file::start_special): Add parameter to include
2077         inititialization of special conditionally.
2079         * src/roff/troff/env.h (environment): New member `underline_spaces'.
2080         * src/roff/troff/env.cc (do_underline_special): New function.
2081         (environment::set_font): Use it.
2082         (do_underline): Use it.  This was `underline()'.
2083         (underline): Call `do_underline()'.
2084         (continuous_underline): New function which calls `do_underline()'.
2085         (environment::newline): Use `do_underline_special()'.
2086         (init_env_requests): Updated.
2088         * NEWS, man/troff_out.man: Updated.
2090 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
2092         * font/devutf8/R.proto: Fix code of 'shc'.
2094 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
2096         Many fixes.  Diag lists can now be nested also; additionally,
2097         `-compact' and `-offset' are supported.
2099         * tmac/doc.tmac (doc-have-indent): Replaced with ...
2100         (doc-list-have-indent-stackXXX): A new register stack.
2101         (doc-have-diag-list): Removed.
2102         (Bl): Use `doc-list-have-indent-stackXXX'.
2103         (El): Updated.
2104         (doc-diag-list): Use `doc-compact-list-stackXXX'.
2105         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
2106         (doc-set-vertical-and-indent): Ditto.
2107         (doc-next-list-depth): Removed.
2108         (doc-increment-list-stack): Updated.
2109         (doc-decrement-list-stack): Use `doc-list-depth' instead of
2110         `doc-next-list-depth'.
2111         (doc-end-list, doc-end-column-list): Don't use
2112         `doc-increment-list-stack'.
2113         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
2114         (doc-save-global-vars, doc-restore-global-vars): Updated.
2115         * tmac/doc-common: Updated.
2116         * tmac/groff_mdoc.man: Updated.
2117         * NEWS: Fix typo.
2119 2001-04-02  Werner LEMBERG  <wl@gnu.org>
2121         * src/devices/grotty/grotty.man: Fix grammatical error.
2123 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
2125         Remove .Ld from mdoc package; replace it with special handling of
2126         `...'.
2128         * tmac/doc-common: Remove `Ld' register.
2129         Uncomment `doc-volume-ds-*' strings.
2130         Remove `doc-operating-system-default'.
2131         (Os): Updated.
2132         * tmac/doc-syms (Ld): Removed.
2133         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
2134         `...' specially.
2135         * NEWS: Updated.
2137         * tmac/groff_mdoc.man: Many fixes and updates.
2139 2001-03-29  Werner LEMBERG  <wl@gnu.org>
2141         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
2142         Bond <tkb@tkb.mpl.com>.
2143         * tmac/www.tmac: Save compatibility mode.
2145 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
2147         * tmac/groff_mdoc.man: Many fixes.
2149 2001-03-28  Werner LEMBERG  <wl@gnu.org>
2151         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
2152         isn't recognized.
2154 2001-03-27  Werner LEMBERG  <wl@gnu.org>
2156         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
2157         diversion.  This fixes overlong tags.
2159 2001-03-26  Werner LEMBERG  <wl@gnu.org>
2161         * doc/groff.texinfo: Fixed and improved documentation of fonts.
2162         * tmac/doc-syms: Fix error messages.
2163         * tmac/an-old.tmac: Remove incorrect double backslashes.
2165 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
2167         * tmac/Makefile.sub: Strip mdoc.local also
2168         * tmac/strip.sed: Fixed.
2170 2001-03-24  Werner LEMBERG  <wl@gnu.org>
2172         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
2173         selecting the font size.
2174         * tmac/groff_mdoc.man, NEWS: Document it.
2176 2001-03-23  Werner LEMBERG  <wl@gnu.org>
2178         * src/roff/troff/div.cc (save_vertical_space): Add default argument
2179         to `sv' request.
2180         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
2181         argument to restore previous font family.
2182         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
2184         * doc/groff.texinfo: More fixes and additions (mainly for font
2185         manipulating commands).
2187         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
2188         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
2189         * tmac/Makefile.sub, NEWS: Updated.
2191 2001-03-23  Werner LEMBERG  <wl@gnu.org>
2193         Replaced mdoc implementation.  The new version is `state of the
2194         art', using almost all new features of groff 1.17 -- it won't run
2195         with older versions.
2197         * tmac/doc.tmac: Completely rewritten.
2198         * tmac/doc-common: Ditto.
2199         * tmac/doc-nroff: Ditto.
2200         * tmac/doc-ditroff: Ditto.
2201         * tmac/doc-syms: Ditto.
2202         * tmac/mdoc.local: New file.
2203         * tmac/groff_mdoc.samples.man: Replaced with ...
2204         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
2205         * tmac/strip.sed: Updated.
2206         * tmac/Makefile.sub: Updated.
2207         * INSTALL: Updated.
2209         * tmac/groff_man.man: Add `man.local' to the FILES section.
2211 2001-03-22  Werner LEMBERG  <wl@gnu.org>
2213         * doc/groff.texinfo: Added many @noindent.
2214         Replaced @end_Example -> @endExample.
2215         Added info whether registers are r/o.
2216         Many other additions and fixes.
2218 2001-03-21  Werner LEMBERG  <wl@gnu.org>
2220         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
2221         in makeinfo of texinfo 4.0) to be used in @Def* macros.
2222         Improved @Def* macros: Now the exact syntax of request, register,
2223         and escapes is shown.
2224         Added macros for parentheses and brackets to be used in @Def*.
2225         Many fixes and improvements of the documentation.
2227 2001-03-20  Werner LEMBERG  <wl@gnu.org>
2229         * doc/groff.texinfo: Added new index: `st' (for strings).
2230         Added macros @Defstr(x).
2231         Added macro @Example (adding @group).
2232         Other minor improvements.
2234 2001-03-19  Werner LEMBERG  <wl@gnu.org>
2236         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
2237         `rq' for requests.  `fn' is no longer used.
2238         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
2239         Removed @Deffn(x).
2241         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
2242         number with name of man page.
2244 2001-03-19  Larry Kollar  <kollar@alltel.net>
2246         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
2247         consistency.
2249 2001-03-19  Werner LEMBERG  <wl@gnu.org>
2251         * man/groff_font.man: Document `prepro', `postpro', and `print'.
2252         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
2253         * src/devices/grohtml/grohtml.man: Fixing typos.
2255 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
2257         * tmac/s.tmac (@IP): Pass `.ip' html tag.
2258         * tmac/groff_mwww.man: Remove .LINE macro
2259         * tmac/www.tmac (LINE): Add `.ti'.
2261         * src/devices/grohtml/post-html.cc (html_printer): New member
2262         `indent'.
2263         (html_printer::emit_raw): Use it.
2264         (html_printer::do_linelength): Ditto.
2265         (html_printer::do_pageoffset): Ditto.
2266         (html_printer::do_indentation): Ditto.
2267         (html_printer::do_tempindent): Ditto.
2268         (html_printer::do_break): Ditto.
2269         (html_printer::begin_page): Ditto.
2270         (html_printer::do_indentedparagraph): New function.
2271         (html_printer::troff_tag): Handle `.ip'.
2272         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
2273         Add `<td width=...>' handling.
2274         (html_text::do_table): Add parameter.
2275         (html_text::do_indent): Updated.
2276         * src/devices/groohtml/html-text.h: Updated.
2278 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
2280         Introduced simple html tables to implement indentation.
2282         * src/devices/grohtml/html.h (word, word_list): New structures.
2283         (simple_output): Use it.
2284         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
2285         (html_printer): Improve indentation handling.
2286         (html_printer::emit_raw): Set `in_table' element.  Handle
2287         indentation if set.
2288         (html_printer::write_header): Move conditional downwards.
2289         Don't allow whitespace in tags.
2290         (html_printer::do_linelength): Handle line length and indentation
2291         conditionally.
2292         (html_printer::do_pageoffset): Handle indentation conditionally.
2293         (html_printer::do_indentation): Ditto.
2294         (html_printer::do_tempindent): New function member.
2295         (html_printer::do_fill): Take care of indentation.
2296         (html_printer::do_flush): Finish table.
2297         (html_printer::do_links): Ditto.
2298         (html_printer::do_break): New function for handling `.br' and `.ti'.
2299         (html_printer::troff_tag): Use it.
2300         Handle `.ti'.
2301         (html_printer::flush_globs): Fix.
2302         (html_printer::flush_page): Finish table.
2303         (html_printer::html_printer): Fix error message.  Set up
2304         `linelength'.
2305         (html_printer::add_to_sbuf): Remove special handling of character
2306         code 255.
2307         (to_unicode): Remove `stop()'.
2308         (html_printer::write_title): Cleanup.
2309         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
2310         (html_printer::~html_printer): Flush text and end the line.
2311         Use `put_string()'.
2312         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
2313         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
2314         emission of tags.
2315         (html_text::start_tag): Disable newlines.
2316         (html_text::table_is_void): New function.
2317         (html_text::issue_table_begin): Ditto.
2318         (html_text::issue_table_end): Ditto.
2319         (html_text::push_para): Better table handling.
2320         (html_text::do_indent): New function.
2321         (html_text::do_table): Ditto.
2322         (html_text::done_table): Ditto.
2323         (html_text::do_tt): Handle PRE_TAG.
2324         (html_text::is_in_table): New function.
2325         (html_text::check_emit_text): Handle tables.
2326         (html_text::do_emittext): Use `nl()'.
2327         (html_text::do_para): Handle table.
2328         (html_text::remove_def): New function.
2329         * src/devices/grohtml/output.cc (word, word_list): Implement
2330         methods.
2331         (simple_output::end_line): Flush last word.
2332         (simple_output::simple_comment): Ditto.
2333         (simple_output::begin_comment): Recoded.
2334         (simple_output::end_comment): Ditto.
2335         (simple_output::comment_arg): Removed.
2336         (simple_output::check_newline): Improve test and flush last word.
2337         (simple_output::space_or_newline): Improved.
2338         (simple_output::write_newline): Replaced with...
2339         (simple_output::nl): This.
2340         (simple_output::put_raw_char): Flush last word.
2341         (simple_output::check_space): Removed.
2342         (simple_output::put_translated_string): Ditto.
2343         (simple_output::put_string): Simplified.
2344         (simple_output::put_number): Updated.
2345         (simple_output::put_float): Ditto.
2346         (simple_output::put_symbol): Removed.
2347         (simple_output::enable_newlines): Add `check_newline()'.
2348         (simple_output::flush_last_word): New function.
2350         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
2351         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
2353         * tmac/s.tmac (@PP, @IP): Add html conditional code.
2354         * tmac/an-old.tmac (TP): Ditto.
2356 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
2358         * mdate.sh: Make it POSIX compliant.
2360 2001-03-09  Werner LEMBERG  <wl@gnu.org>
2362         Added the `return' request to end a macro immediately.  It simply
2363         pops iterators from the input stack until a macro iterator is found.
2365         * src/roff/troff/input.cc (input_iterator::is_macro,
2366         macro_iterator::is_macro): New member.
2367         (input_return_boundary): New class to signal an immediate return
2368         to while_request().
2369         (input_stack::add_return_boundary, input_stack::is_return_boundary):
2370         New functions.
2371         (input_stack::clear): Use it.
2372         (input_stack::pop_macro): New function.
2373         (while_request): Use `is_return_boundary()'.
2374         (return_macro_request): New function.
2375         (init_input_requests): Use it.
2377         * src/roff/troff/TODO: Updated.
2378         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2380 2001-03-08  Werner LEMBERG  <wl@gnu.org>
2382         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
2383         cleanup.
2385 2001-03-07  Werner LEMBERG  <wl@gnu.org>
2387         Make `\B' more rigid.
2389         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
2390         parameter.
2391         (get_number_rigidly): New function.
2392         * src/roff/troff/input.cc (do_expr_test): Use it.
2393         * src/roff/troff/token.h: Updated.
2395         * src/roff/troff/request.h: Fix typo (init_html_request ->
2396         init_markup_request).
2398 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
2400         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
2401         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
2402         are now `.begin', `.end', `.image'.
2404         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
2405         (html_printer::add_to_sbuf): Changing type of `code' parameter.
2406         Use add_char_to_sbuf().
2407         (to_unicode): New function.
2408         (char_translate_to_html): Changing type of `ch' parameter.
2409         Use `to_unicode()'.
2410         (html_printer::~html_printer): Comment out doctype string.
2411         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
2412         instead of `.html-end'.
2413         (write_start_image): Use `.begin' and `.image' instead of
2414         `.html-begin' and `.html-image'.
2415         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
2416         (html_begin): Renamed to ...
2417         (begin): This.
2418         (html_end): Renamed to ...
2419         (end): This.
2420         (html_image): Renamed to ...
2421         (image): This.
2422         (init_html_requests): Renamed to ...
2423         (init_markup_requests): This.
2424         * tmac/www.tmac: Updated.
2426 2001-02-28  Bram  <bram@avontuur.org>
2428         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
2429         constructor.
2431 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
2433         * doc/meref.me: Fixing some typos.
2435 2001-02-16  Werner LEMBERG  <wl@gnu.org>
2437         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
2438         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
2439         * src/roff/troff/node.h: Updated.
2441 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
2443         * tmac/groff_tmac.man: Fix typo.
2445 2001-02-16  Werner LEMBERG  <wl@gnu.org>
2447         Fixing a bug which prevented proper end-of-sentence recognition
2448         between an `unformatted' box and the following text.  As a
2449         consequence, vertical line distances are no longer preserved in
2450         boxes after a call to `.unformat' -- because boxes aren't
2451         line-oriented (contrary to diversions), this doesn't make sense
2452         anyway.
2454         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
2455         value.
2456         (vertical_size_node::set_unformat_flag): New method.
2457         * src/roff/troff/node.hh: Updated.
2458         * src/roff/troff/input.cc (word_space_node::reread,
2459         hmotion_node::reread): Reset `unformat' flag after usage.
2460         (unformat_macro): Append only if `set_unformat_flag()' returns
2461         non-zero.
2462         * src/roff/troff/troff.man: Updated.
2464 2001-02-15  Werner LEMBERG  <wl@gnu.org>
2466         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
2467         documentation of `asciify' and `unformat' requests.
2469 2001-02-13  Werner LEMBERG  <wl@gnu.org>
2471         Redesigned the `unformat' request.  It is no longer connected with
2472         `asciify' but rather uses new `reread()' methods if the `unformat'
2473         flag is set.  Additionally, the handling of space characters after
2474         unformatting has been fixed so that they retain their width.
2476         * src/roff/troff/node.h (width_list): New structure to store
2477         original widths of spaces.
2478         (node): Added `unformat' member.
2479         Replaced `num_spaces' variable with `orig_width' list.
2480         * src/roff/troff/node.cc (*node::asciify,
2481         asciify_reverse_node_list): Removed `unformat_only' flag and related
2482         code.
2483         (word_space_node::asciify, word_space_node::word_space_node): Use
2484         `orig_width'.
2485         (word_space_node::~word_space_node): New destructor.
2486         (word_space_node::copy): Updated to handle `orig_width'.
2487         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
2488         (*node::merge_space): Update `orig_width' list if necessary.
2489         (*node::set_unformat_flag): New methods to set the `unformat' flag.
2490         * src/roff/troff/enc.cc (environment::space_newline): Use
2491         `width_list'.
2492         (environment::space): Added method to handle space width and
2493         sentence space width as parameters.  Use `width_list'.
2494         (environment::make_tab_node): Updated.
2495         * src/roff/troff/env.h: Updated.
2496         * src/roff/troff/input.cc (word_space_node::reread,
2497         unbreakable_space_node::reread, hmotion_node::reread): New methods
2498         to handle nodes specially if `unformat' flag is set.
2499         (do_asciify_macro): Renamed back to ...
2500         (asciify_macro): This.
2501         (unformat_macro): New implementation to simply set the `unformat'
2502         flag.
2504         * MORE.STUFF: Added more info about deroff.
2506 2001-02-08  Werner LEMBERG  <wl@gnu.org>
2508         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
2509         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
2510         and `add_self()' methods to avoid hyphenation.  For example, the
2511         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
2512         soft hyphen after `foo'.  Now the hyphen list is correctly
2513         `foo<ignore><ignore>bar'.
2515 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
2517         * tmac/groff_tmac.man: Fix `BIR' macro.
2519 2001-02-04  Werner LEMBERG  <wl@gnu.org>
2521         A new escape sequence `\:', inserting a zero-width break point.
2523         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
2524         * src/roff/troff/input.cc (get_copy, token::next, asciify):
2525         Implement it.
2526         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
2527         method.
2528         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
2529         and `asciify()' methods.
2530         * src/roff/troff/node.cc (space_node::space_node): Updated.
2531         (space_node::asciify): Handle `was_escape_colon'.
2532         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2534         Handle `\~' similar to other comparable requests.
2536         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
2537         label.
2538         (token::next): Move creation of an unbreakable_space_node to...
2539         (token::add_to_node_list): Here.
2541         Fix a bug which sometimes prevented hyphenation of words connected
2542         with `\~' or `\ ' (and other escape sequences handled as
2543         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
2544         (after a call to the `unformat' request).
2546         * src/roff/troff/env.h (environment::possibly_break_line,
2547         environment::hyphenate_line): Introducing `start_here' parameter.
2548         * src/roff/troff/env.cc (environment::space_newline,
2549         environment::space): Use it.
2550         (environment::possibly_break_line, environment::hyphenate_line):
2551         Implement it.
2552         * src/roff/troff/input.cc (process_input_stack): Use it.
2553         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
2554         space_char_hmotion_node, overstrike_node): Add
2555         `get_hyphenation_type()' method.
2556         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
2557         if `unformat_only' is active.
2559 2001-01-30  Werner LEMBERG  <wl@gnu.org>
2561         Implemented new read-only number register `.linetabs' which
2562         returns 1 if in line-tabs mode, 0 otherwise.
2564         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
2565         * src/roff/troff/env.cc (get_line_tabs): New function.
2566         (init_env_requests): Use it.
2567         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2569         * VERSION, REVISION: Changing to 1.17.0.
2571 2001-01-28  Werner LEMBERG  <wl@gnu.org>
2573         Fixed a bug which prevented hyphenation of words which are finished
2574         with `\)'.
2576         * src/roff/troff/token.h (token): Add enum type
2577         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
2578         * src/roff/troff/input.cc (token::next, token::description,
2579         get_line_arg, token::add_to_node_list, token::process): Use it.
2581 2001-01-27  Werner LEMBERG  <wl@gnu.org>
2583         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
2584         * src/roff/troff/div.cc (do_divert): Use it.
2586         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
2588 2001-01-25  Werner LEMBERG  <wl@gnu.org>
2590         Adding the `linetabs' request.  If set, tab distances are not
2591         computed relative to the input line but relative to the output line.
2593         * src/roff/troff/env.h (environment): New member `line_tabs'.
2594         * src/roff/troff/env.cc (line_tabs_request): Implement request.
2595         (environment::environment, environment::copy): Updated.
2596         (environment::distance_to_next_tab): Use `line_tabs'.
2597         (init_env_requests): Register request.
2598         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
2599         fixes.
2601 2001-01-24  Werner LEMBERG  <wl@gnu.org>
2603         Introducing a new read-only register `.int' which is set to a
2604         positive value if the last output line is interrupted (i.e., if it
2605         contains `\c').
2607         * src/roff/troff/env.cc (init_env_requests): Add it.
2608         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2610 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
2612         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
2613         * src/preproc/html/pre-html.cc (findPrefix): New function which
2614         generates the troff executable name via the system prefix.
2615         * src/preproc/eqn/main.cc: Modified warning message.
2617 2001-01-23  Werner LEMBERG  <wl@gnu.org>
2619         troff's `box' and `boxa' requests didn't preserve temporary
2620         indentation.
2622         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
2623         `saved_target_text_length' members.
2624         * src/roff/troff/div.cc (do_divert): Use them.
2626         Tabs (but not yet leaders and fields) are now handled correctly by
2627         `asciify' request.
2629         * node.h (hmotion_node): Add field `was_tab'.
2630         * env.cc (environment::make_tab_node): Set it.
2631         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
2633         Added new request `unformat' which will, contrary to `asciify',
2634         preserve font information after unformatting (i.e., only nodes
2635         dealing with horizontal space are converted back to input
2636         characters).
2638         * input.cc (asciify_macro): Renamed to ...
2639         (do_asciify_macro): this, having a new parameter `unformat_only'.
2640         (asciify_macro, unformat_macro): New; using do_asciify_macro.
2641         (init_input_requests): Added `unformat'.
2642         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
2643         parameter to control asciification process.
2644         * node.h (*_node::asciify): Ditto.
2645         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2647 2001-01-20  Werner LEMBERG  <wl@gnu.org>
2649         * doc/groff.texinfo: Minor improvement of `.in' documentation.
2651 2001-01-18  Werner LEMBERG  <wl@gnu.org>
2653         * tmac/ps.tmac: Remove call of psold.tmac.
2654         * tmac/psold.tmac: Comment updated.
2655         * tmac/psnew.tmac: Removed since no longer needed.
2656         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
2658         * font/devutf8/R.proto: Adding `shc' glyph.
2659         * font/devutf8/NOTES: Updated.
2661         * test-groff: Updated.
2663 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
2665         First cut of the new html device driver.  Changes to pre-html and
2666         the new grohtml are too numerous to be documented here.
2668         Stuff related to `html' has been renamed to `html-old' and `html2'
2669         stuff has been renamed to `html' (including directories).  The new
2670         html device driver is therefore invoked as `-Thtml'.
2672         Added new `\O' escape to suppress output (needed by html driver).
2674         Added functions and code to pass info about input-level commands
2675         (`.in', `.fl', etc.) to html driver.
2677         Three new functions (.html-begin, .html-end, and .html-image) for
2678         better html handling: `html-begin' will execute the remaining line
2679         if at the outermost nesting level, increasing an internal counter.
2680         `html-end' does the same but decreases the internal counter.
2681         `html_image' puts its arguments into a special node (suppress_node)
2682         to define an image region.
2684         The `output' request has been removed.
2686         * tmac/html-tags.tmac: Removed.
2687         * tmac/arkup.tmac: Updated and renamed to ...
2688         * tmac/www.tmac: New file.
2689         * tmac/markup.tmac Updated and renamed to ...
2690         * tmac/mwww.tmac: New file.
2691         * tmac/Makefile.sub: Updated.
2692         * tmac/an-old.tmac: Updated.
2693         * tmac/eqnrc: Updated.
2694         * tmac/groff_man.man
2695         * tmac/groff_markup.man: Updated and renamed to ...
2696         * tmac/groff_mwww.man: New file.
2697         * tmac/groff_tmac.man: Updated.
2698         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
2699         * tmac/html.tmac: Updated and renamed from html2.tmac.
2700         * tmac/pspic.tmac: Updated html support.
2701         * tmac/s.tmac: Added html output support.
2702         * tmac/troffrc, tmac/troffrc-end: Updated.
2704         * Makefile.in, doc/Makefile: Updated.
2705         * doc/groff.texinfo: Added info about new `\O' escape.
2706         * doc/homepage.ms: Use `MAILTO' macro.
2708         * font/devhtml/DESC.proto: Add `C' font.
2709         * font/devhtml/Makefile.sub: Updated.
2710         * font/devhtml/R.proto: Minor fixes.
2711         * font/devhtml-old/Makefile.sub: Updated.
2713         * src/devices/grohtml-old/Makefile.sub: Updated.
2715         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
2716         method.
2717         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
2718         graphic_start): Add `inline' parameter.  Update.
2719         (html_end_suppress, graphic_end): Update.
2721         * src/include/html-strings.h: New file.
2722         * src/include/htmlindicate.h: Comments updated.
2723         * src/include/printer.h: Updated.
2725         * src/preproc/eqn/main.cc (do_file, main): Updated.
2726         * src/preproc/pic/troff.cc (troff_output::start_picture,
2727         troff_output::finish_picture): Updated.
2728         * src/preproc/tbl/main.cc (process_input_file): Updated.
2730         * src/roff/groff/groff.cc (main): Updated.
2731         Pass device arguments to predrivers also.
2732         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
2733         * src/roff/troff/env.h (environment): Updated.
2734         New elements `need_eol' and `ignore_next_eol' (for html output).
2735         * src/roff/troff/env.cc (environment::environment): Add initializers
2736         for `need_eol' and `ignore_next_eol'.
2737         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
2738         functions.
2739         (point_size, fill, no_fill, center, right_justify, line_length,
2740         indent, temporary_indent, break_request, handle_tab): Use
2741         `add_html_tag()'.
2742         (set_tabs): Use `add_html_tag_tabs()'.
2743         (environment::add_html_tag): Updated.
2744         (environment::do_break): Updated.
2745         * src/roff/troff/div.cc (space_request, flush_output): Use
2746         `environment::add_html_tag()'.
2747         * src/roff/troff/input.cc: Updated.
2748         New variable `html_level' to indicate nested `html-begin' requests.
2749         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
2750         (non_interpreted_char_node, token_node, non_interpreted_node): Add
2751         `force_tprint()' method.
2752         (token::next): Handle `\O'.
2753         (do_suppress): Implement it.
2754         (html_begin, html_end, html_image): New functions.
2755         (init_output_requests): Renamed to ...
2756         (init_html_requests): this.
2757         (main): Use it.
2758         (macro::append_str, macro::append_unsigned, macro::append_int): New
2759         methods.
2760         New variable `output_low_mark_miny' to limit minimal value of y.
2761         (reset_output_registers): Use it.
2762         (output_request): Removed.
2763         (get_output_registers): New function.
2764         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
2765         (*_node): Added `force_tprint()' if necessary.
2766         (special_node): New elements `tf' and `get_tfont()'.
2767         (suppress_node): New class.
2768         * src/roff/troff/node.cc:
2769         New global variables `image_no' and `suppress_start_page'.
2770         (real_output_file): New method `is_on()'.
2771         (troff_output_file): New method `start_special(tfont)'.
2772         (troff_output_file::really_print_line): Use `tprint' conditionally.
2773         (real_output_file::print_line): Updated.
2774         (real_output_file::on): Updated.
2775         (*_node): Added `force_tprint()'.
2776         (special_node::special_node): Initializer updated.
2777         (special_node::same, special_node::copy, special_node::tprint_start):
2778         Updated.
2779         (get_reg_int, get_reg_str): New functions.
2780         (suppress_node::*): New methods.
2781         New global variables last_position, last_image_filename;
2782         (min): New inline function.
2783         * src/roff/troff/reg.h, src/roff/troff/request.h,
2784         src/roff/troff/troff.h: Updated.
2786 2001-01-13  Werner LEMBERG  <wl@gnu.org>
2788         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
2789         documentation of `asciify' request.
2791 2001-01-12  Werner LEMBERG  <wl@gnu.org>
2793         * src/roff/troff/input.cc: Move definition of special characters
2794         like `ESCAPE_TILDE' to ...
2795         * src/roff/troff/input.h: New file.
2796         * src/roff/troff/Makefile.sub (HDRS): Add it.
2798         Extending the .asciify request to `unformat' space characters also.
2800         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
2801         to count input space characters.
2802         Update constructors to take care of it.
2803         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
2804         `ESCAPE_SPACE' instead of normal space.
2805         (word_space_node::asciify): New method.
2806         (unbreakable_space_node::asciify): New method.
2807         (word_space_node::merge_space): New method.
2808         * src/roff/troff/env.cc (environment::space_newline,
2809         environment::space): Add code to initialize `num_spaces' (using the
2810         constructor of `word_space_node').
2811         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
2812         Document it.
2814 2001-01-09  Werner LEMBERG  <wl@gnu.org>
2816         * man/groff_char.man: Use table header traps only conditionally.
2818 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
2820         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
2822 2001-01-08  Werner LEMBERG  <wl@gnu.org>
2824         Introducing the `box' and `boxa' requests which are similar to
2825         `di' resp. `da' but omitting a partially filled line (which is
2826         restored after ending the diversion).
2828         * src/roff/troff/div.h (diversion): Add elements to save partially
2829         filled line.
2830         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
2831         partially filled line.
2832         (divert, divert_append): Updated.
2833         (box, box_append): New functions.
2834         (init_div_requests): Use them.
2835         * src/roff/troff/env.h (environment): do_divert() is now a friend.
2836         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2838         * doc/groff.texinfo: Fix documentation of `lf' request.
2840 2000-12-25  Werner LEMBERG  <wl@gnu.org>
2842         * src/roff/troff/troff.man, NEWS: Document `writem' request.
2844 2000-12-21  Werner LEMBERG  <wl@gnu.org>
2846         Ignore `ss' request if in compatibility mode.
2848         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
2849         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
2850         * src/roff/troff/env.cc (space_size): Use it.
2852         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
2853         `ss' request in nroff mode.
2855         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
2856         changes.
2858 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
2860         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
2862 2000-12-13  Werner LEMBERG  <wl@gnu.org>
2864         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
2865         * src/preproc/eqn/neqn.man: Small fixes and additions.
2867 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
2869         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
2870         Fixing typo.
2872         * src/preproc/eqn/neqn.man: New file.
2874         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
2875         negative' warning.
2877         * tmac/e.tmac: Add `T&' macro.
2878         Fix `indent cannot be negative' warning.
2879         * tmac/s.tmac: Fix `indent cannot be negative' warning.
2881 2000-12-07  Werner LEMBERG  <wl@gnu.org>
2883         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
2885 2000-12-06  Werner LEMBERG  <wl@gnu.org>
2887         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
2888         `alloca' symbol .
2890         * MORE.STUFF: Added info about deroff for djgpp.
2892         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
2893         documentation of -rcR switch.
2895 2000-12-03  Werner LEMBERG  <wl@gnu.org>
2897         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
2898         if -rcR=1 (which is now the default in nroff mode), a single, very
2899         long page is created instead of multiple pages: All `ne' and `wh'
2900         requests are put into conditionals; a new macro `an-end' is added to
2901         be called with `em'.
2903         Some other minor cleanups.
2905         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
2907 2000-12-02  Werner LEMBERG  <wl@gnu.org>
2909         Fixing a bug which prevented hyphenation in words followed
2910         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
2912         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
2913         Adding possibly_break_line().
2914         * src/roff/troff/env.h (environment): Make possibly_break_line()
2915         public.
2917         Make `\~' usable in .tr request.
2919         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
2920         (token): Add stretchable_space().
2921         * src/roff/troff/input.cc (token::next, token::delimiter,
2922         token::description, process_input_stack, do_translate,
2923         add_to_node_list, token::process): Use it.
2924         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
2925         for adjusting the space.
2926         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
2927         for stretchable space.
2928         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
2929         (make_node): Add code for stretchable space.
2930         * src/roff/troff/env.cc (environment::add_char): Use it.
2931         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
2932         (get_copy, token::next, transparent_translate, asciify): Use it.
2934         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
2935         doc/groff.texinfo: Updated.
2936         * man/groff.man: Small reorderings.
2938 2000-11-23  Werner LEMBERG  <wl@gnu.org>
2940         * NEWS: Fixes.
2941         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
2942         option.
2943         * src/roff/troff/input.cc (main): Add `config_macro_path' and
2944         `safer_macro_path' to -M option.
2945         * src/roff/troff/troff.man: Fixes.
2947 2000-11-22  Werner LEMBERG  <wl@gnu.org>
2949         Use safer path (except for config files) if -U isn't specified.  Add
2950         a special macro path (without home and current directory) for config
2951         files.  Add home directory to unsafe path for consistency.  Don't
2952         include the home directory in the font path.
2954         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
2955         `macro_path'.
2956         * src/include/macropath.h: Add `config_macrp_path'.
2957         * src/libs/libgroff/fontfile.cc: Fix font path.
2958         * src/roff/troff/input.cc (process_startup_file): Use
2959         `config_macro_path'.
2960         (main): Select unsafe path if -U is given.
2962         * src/preproc/eqn/main.cc (main): Fixing search path for
2963         configuration file.
2964         * src/preproc/eqn/eqn.man: Updated.
2966         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
2967         Updated.
2969         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
2970         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
2971         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
2972         src/devices/grotty/grotty.man: Updated.
2974         * Makefile.in: Fix comments.
2976 2000-11-17  Werner LEMBERG  <wl@gnu.org>
2978         * tmac/safer.tmac: Empty file added (again) for compatibility
2979         reasons.
2980         * tmac/Makefile.sub: Updated.
2982 2000-11-16  Werner LEMBERG  <wl@gnu.org>
2984         * src/devices/grodvi/dvi.cc (main),
2985         src/devices/grohtml2/post-html.cc (main),
2986         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
2987         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
2988         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
2989         (main), src/preproc/html2/pre-html.cc (main),
2990         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
2991         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
2992         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
2993         (main), src/utils/hpftodit/hpftodit.cc (main),
2994         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
2995         (main), src/utils/lookbib/lookbib.cc (main),
2996         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
2997         (main): Use stdout for -v.
2998         * src/roff/groff/groff.cc (run_commands),
2999         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
3000         to make direct printing to stdout possible.
3001         * src/roff/groff/pipeline.h: Updated.
3003         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
3004         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
3005         * src/utils/afmtodit/afmtodit.man: Updated.
3007         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
3008         (version): New function.
3009         (usage): Updated.
3010         * src/utils/addftinfo/addftinfo.man: Updated.
3012         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
3013         Fixing copyright dates.
3015         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
3016         replacing it.
3018         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
3019         version_string.
3021         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
3023 2000-11-15  Werner LEMBERG  <wl@gnu.org>
3025         In all programs, make -v return immediately with exit status 0 to
3026         be compliant with the GNU standard.
3028         * src/devices/grodvi/dvi.cc (main),
3029         src/devices/grohtml2/post-html.cc (main),
3030         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
3031         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
3032         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
3033         (main), src/preproc/html2/pre-html.cc (main),
3034         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
3035         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
3036         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
3037         (main): Implement it.
3038         * NEWS: Updated.
3040         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
3041         and postprocessors to the -v option.
3043         * src/roff/grog/grog.pl: Implement -v.
3044         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
3045         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
3047         * src/roff/nroff/nroff.sh: Implement -v.
3048         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
3049         * src/roff/nroff/nroff.man: Updated.
3050         
3051         * src/preproc/eqn/main.cc (main): Fix comment typo.
3053         * MORE.STUFF: Added info about djgpp port of grap.
3055 2000-11-14  Werner LEMBERG  <wl@gnu.org>
3057         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
3058         mode (or rather, implemented non-compatibility mode).
3059         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
3061         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
3062         replacing it -- we don't find gxditview otherwise.
3063         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
3065         * src/preproc/pic/depend: Removed.  Unnecessary.
3067         Implemented dummy keyword `solid' in pic for compatibility with
3068         AT&T pic.
3070         * lex.cc (lookup_keyword): Added `solid'.
3071         * pic.y: Added SOLID with dummy rule.
3072         * pic.cc, pic_tab.h: Regenerated.
3073         * doc/pic.ms: Updated.
3075 2000-11-13  Werner LEMBERG  <wl@gnu.org>
3077         For security reasons, don't use the current directory but the home
3078         directory while searching and scanning troffrc and troffrc-end.
3079         Similarly, replace the current directory with the home directory
3080         in the font path.
3082         * Makefile.in (fontpath, tmacpath): Remove current directory.
3084         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
3085         two parameters `add_home' and `add_current'.
3086         (search_path::~search_path, search_path::command_line_dir,
3087         search_path::open_file): Remove tests for `dirs' being zero.
3088         * src/include/searchpath.h: Adjust.
3089         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
3090         `safer_macro_path'.
3091         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
3093         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
3094         * src/roff/troff/input.cc: Use `mac_path', initialized with
3095         `macro_path'.
3096         (process_startup_file): Set `mac_path' to `safer_macro_path'.
3097         * src/roff/troff/env.cc: Use `mac_path'.
3099         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
3101         * NEWS, man/roff.man, src/roff/troff/troff.man,
3102         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
3103         Updated.
3105 2000-11-12  Werner LEMBERG  <wl@gnu.org>
3107         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
3109         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
3110         * configure.in: Fix typo in comment.
3111         * configure: Regenerated.
3113         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
3114         copyright dates.
3116 2000-11-08  Werner LEMBERG  <wl@gnu.org>
3118         Add system tmac directory (/usr/local/lib/groff/site-tmac).
3120         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
3121         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
3122         $(systemtmacdir).
3123         Use @libdir@.
3124         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
3125         * tmac/Makefile.sub (install_data): Create
3126         $(systemtmacdir) and $(localtmacdir).
3127         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
3128         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
3129         NEWS, doc/groff.texinfo: Updated and minor fixes.
3131         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
3132         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
3133         $(systemtmacdir) since the wrapper files are platform-dependent.
3135 2000-11-01  Werner LEMBERG  <wl@gnu.org>
3137         * doc/groff.texinfo: Fix typo.
3139 2000-10-26  Werner LEMBERG  <wl@gnu.org>
3141         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
3142           tmac.doc.old -> doc-old.tmac
3143           tmac.an.old  -> an-old.tmac
3145         * tmac/tmac.*: Moved to ...
3146         * tmac/*.tmac: this.
3147         * tmac/man.local: Fix comment.
3148         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
3149         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
3150         Added some `FILES' sections.  More use of @...@ directives.  Other
3151         minor updates.
3152         * arch/djgpp/README, font/devutf8/NOTES: Updated.
3153         * doc/homepage.ms, doc/groff.texinfo: Updated.
3154         * man/groff.man, man/roff.man: Updated.
3155         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
3156         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
3157         src/devices/grotty/grotty.man: Updated.
3158         * src/preproc/pic/pic.man: Updated.
3159         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
3160         instead of -mdoc.old.
3161         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
3162         * src/roff/nroff/nroff.man: Updated.
3163         * NEWS: Updated.
3165         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
3167         * tmac/mm.diff: Removed -- it has no use now since the mm package
3168         is part of groff.
3170         * tmac/*: Removed trailing spaces.
3172         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
3173         the tmac subdirectory also).
3175         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
3176         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
3177         stuff since it is no longer needed.
3179         * README, PROBLEMS: Updated.
3181 2000-10-25  Werner LEMBERG  <wl@gnu.org>
3183         Invert current behaviour: Search first FOOBAR.tmac, then
3184         tmac.FOOBAR.
3186         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
3187         (open_mac_file, macro_source): Implement it.
3188         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
3189         doc/groff.texinfo, NEWS: Document it.
3191         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
3192         Small documentation improvements.
3194         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
3195         subdirectory also).
3197         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
3199 2000-10-24  Werner LEMBERG  <wl@gnu.org>
3201         Add local tmac directory (groff/site-tmac).
3203         * Makefile.in: Add $(localtmacdir).
3204         (uninstall_dirs): Add $(localtmacdir).
3205         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
3206         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
3207         in $(localtmacdir).  Create $(localtmacdir).
3208         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
3209         Updated and minor fixes.
3211         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
3213         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
3215 2000-10-23  Werner LEMBERG  <wl@gnu.org>
3217         Move hyphen.us to tmac directory.
3219         * src/roff/troff/hyphen.us: Removed.
3220         * src/tmac/hyphen.us: Added.
3221         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
3223         Change installation structure for data files from .../groff/... to
3224         .../groff/<version><revision>/... to be conform with other GNU
3225         programs.
3227         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
3228         doc/Makefile: Implement it.
3229         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
3230         * configure: Updated.
3231         * arch/djgpp/README, font/devutf8/NOTES: Use it.
3232         * NEWS: Document it.
3233         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
3234         @MACRODIR@ instead of hard-coded directories.
3236 2000-10-22  Werner LEMBERG  <wl@gnu.org>
3238         Implement $GROFF_BIN_PATH environment variable (which defaults to
3239         $bindir) used for child programs of groff and similar wrappers.
3241         * gendefs.sh: Improve documentation.
3242         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
3243         src/preproc/eqn/Makefile.sub (neqn),
3244         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
3245         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
3246         $GROFF_BIN_PATH.
3247         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
3248         $GROFF_PATH__ (the latter for communication with troff).
3249         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
3250         set.
3251         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
3252         doc/groff.texinfo: Document it.
3254         * doc/groff.texinfo: Improve documentation of troff's -a option.
3256 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
3258         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
3259         non-intrusive eol marker.
3260         (troff_output_file::determine_line_limits): New function.
3261         (troff_output_file::draw): Use it.
3262         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
3263         output_pending_lines() instead of output_line().
3264         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
3265         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
3266         createImage): Small fixes.
3267         
3268 2000-10-14  Werner LEMBERG  <wl@gnu.org>
3270         Replace tmac.safer with a real secure solution.
3272         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
3273         system_request, pipe_output): Disable requests if in safer mode.
3274         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
3275         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
3276         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
3277         doc/groff.texinfo, src/roff/groff/groff.man,
3278         src/roff/troff/troff.man, arch/djgpp/README: Updated.
3280         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
3281         (resource_manager::output_prolog): Replace setenv() with putenv().
3283 2000-10-09  Werner LEMBERG  <wl@gnu.org>
3285         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
3286         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
3287         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
3288         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
3289         compilation errors with some compilers.  It seems that this code
3290         is no longer necessary -- if yes, it is easy to add some #ifdef's
3291         for that particular old-fashioned compiler.
3293         * MORE.STUFF: Added info about Meta-tbl.
3295         * doc/groff.texinfo: Added more info about `.if "..."..."'.
3297 2000-10-07  Werner LEMBERG  <wl@gnu.org>
3299         Adding a new escape sequence \B'...': If the string between
3300         the delimiters is a valid numeric expression, return the character
3301         `1', and `0' otherwise.  This is an analogon to \A.
3303         * src/roff/troff/input.cc (do_expr_test): Implement it.
3304         (token::next): Use it.
3305         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
3307         * tmac/tmac.trace: Made independent from escape character.
3309 2000-10-06  Werner LEMBERG  <wl@gnu.org>
3311         Adding a new request .dei: define indirect.  The first and second
3312         parameter of .dei are taken from string registers instead directly;
3313         this very special request is needed to make tmac.trace independent
3314         from the escape character (which might even be disabled).
3316         * src/roff/troff/input.cc (do_define_macro): Implement it.
3317         (define_macro_indirect): New function.
3318         (init_input_requests): Use it.
3320         Adding two requests .ecs and .ecr: Save and restore the escape
3321         character.  These two requests are needed to make tmac.trace
3322         independent from the escape character (which might even be
3323         disabled).
3325         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
3326         Implement it.
3327         (init_input_requests): Use it.
3329         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
3331 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
3333         Adding a new option -P and new environment variable GROPS_PROLOGUE
3334         to grops, selecting a different prologue file (minor modifications
3335         by WL).
3337         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
3338         src/devices/grops/ps.cc (main): Implement it.
3339         * src/devices/grops/grops.man, NEWS: Document it.
3341 2000-09-22  Werner LEMBERG  <wl@gnu.org>
3343         * INSTALL: Add info about selecting paper format.
3345 2000-09-21  Werner LEMBERG  <wl@gnu.org>
3347         * src/roff/troff/input.cc (main): Fixing compiler warning.
3348         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
3349         strings.h from the former to the latter.
3350         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
3351         stuff from the former to the latter.
3353 2000-09-11  Werner LEMBERG  <wl@gnu.org>
3355         Implementing two new requests .tm1 and .tmc: The former is similar
3356         to .tm but can output leading spaces; its syntax is similar to
3357         defining a string, i.e., a `"' can be used to mark the beginning of
3358         the string to be written to stderr: `.tm1 " test'.  The latter is
3359         similar to .tm1 but doesn't write out a final newline character.
3361         * src/roff/troff/input.cc (terminal1, terminal_continue,
3362         do_terminal): New functions.
3363         (init_input_requests): Use them.
3364         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
3366 2000-09-09  Werner LEMBERG  <wl@gnu.org>
3368         * tmac/groff_mdoc.samples.man: Small fixes.
3370 2000-09-08  Werner LEMBERG  <wl@gnu.org>
3372         * tmac/groff_mdoc.man: Fixing typo.
3374 2000-09-02  Werner LEMBERG  <wl@gnu.org>
3376         Implementing a .nop request which does nothing.
3378         * src/roff/troff/input.cc (nop_request): New function.
3379         (init_input_requests): Use it.
3380         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
3382 2000-09-01  Werner LEMBERG  <wl@gnu.org>
3384         * doc/groff.texinfo: Added some comments.
3386 2000-08-30  Werner LEMBERG  <wl@gnu.org>
3388         * src/roff/troff/TODO: Updated.
3390 2000-08-25  Werner LEMBERG  <wl@gnu.org>
3392         * doc/groff.texinfo: Fix comment how to compile the DVI file.
3394 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
3396         * font/devps/generate/Makefile (SHELL): Define explicitly to
3397         "/bin/sh", for non-Unix platforms.
3398         (extraclean): Use a more portable "" quoting instead of a
3399         backslash (which doesn't work on DOS/Windows).
3400         
3401         * font/devlj4/generate/Makefile (extraclean): Ditto.
3403         * font/devdvi/generate/Makefile (extraclean): Ditto.
3405 2000-08-25  Werner LEMBERG  <wl@gnu.org>
3407         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
3408         src/roff/troff/troff.man: Document Eli's latest changes.
3410 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
3412         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
3413         macro file names of the form NAME.tmac as well as tmac.NAME.
3415 2000-08-25  Werner LEMBERG  <wl@gnu.org>
3417         * src/include/posix.h: Remove definition of FILENAME_MAX.
3419         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
3420         `sys_fatal' and `stop' function().
3422         * test-groff: Updated.
3424 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
3426         Added the new troff command .output <arg> to suppress output (while
3427         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
3428         registers (for passing the output dimensions to the output device).
3430         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
3431         parameter.
3432         * src/roff/troff/node.h, src/roff/troff/node.cc
3433         (troff_output_file::really_print_line,
3434         ascii_output_file::really_print_line,
3435         supress_output_file::really_print_line): Use `width' parameter.
3436         (troff_output_file::really_on, troff_output_file::really_off,
3437         output_file::on, output_file::off, real_output_file::on,
3438         real_output_file::off, real_output_file::really_on,
3439         real_output_file::really_off): New functions.
3440         (real_output_file:public output_file): New variable `output_on'.
3441         (real_output_file::begin_page, real_output_file::copy_file,
3442         real_output_file::transparent_char, real_output_file::print_line):
3443         Use it.
3444         (real_output_file::print_line): Use check_output_limits.
3445         * src/roff/troff/reg.h, src/roff/troff/request.h,
3446         src/roff/troff/input.cc (assign_registers): New function to remove
3447         two `goto's.
3448         (do_ps_file): Use it.
3449         (check_output_limits, reset_output_registers, output_request,
3450         init_output_requests): New functions.
3451         (init_input_requests): Updated.
3453         Added new grohtml2 device and html2 preprocessor (coding
3454         not yet finished) which will eventually replace grohtml.
3456         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
3457         Updated.
3458         * src/include/htmlindicate.h, src/include/htmlindicate
3459         (html_begin_suppress, html_end_suppress): New functions.
3460         * src/preproc/tbl/main.cc: Use it.
3461         * src/roff/groff/groff.cc: Add support for html2 device (which will
3462         automatically invoke the html2 preprocessor).
3463         * src/roff/troff/input.cc (is_html2): New variable.
3464         * src/roff/troff/troff.h, src/roff/troff/env.h,
3465         src/roff/troff/env.cc (environment::add_html_tag): New function
3466         (uses `is_html2').
3467         (environment::do_break): Use it.
3468         * font/devhtml2/*: New files.
3469         * src/devices/grohtml2: New device.
3470         * src/preproc/html2: New preprocessor.
3471         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
3473 2000-08-23  Werner LEMBERG  <wl@gnu.org>
3475         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
3477 2000-08-22  Werner LEMBERG  <wl@gnu.org>
3479         * src/include/lib.h: Provide a fix for IRIX to not include
3480         groff-getopt.h.
3482 2000-08-18  Werner LEMBERG  <wl@gnu.org>
3484         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
3485         since some non-GNU sed programs can't handle null regexps.
3486         * configure, src/preproc/eqn/Makefile.sub,
3487         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
3489         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
3490         bug (string.h and strings.h are both needed according to latest
3491         POSIX standard).
3493         * MORE.STUFF: Added info about unroff and troffcvt.
3495 2000-08-08  Werner LEMBERG  <wl@gnu.org>
3497         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
3498         used before -ms.
3500         * tmac/tmac.man.old: Remove unused number register.
3502         * tmac.doc: Minor documentation fix.
3504 2000-08-07  Paul Eggert  <eggert@twinsun.com>
3506         * src/roff/groff/pipeline.c (is_system_shell):
3507         Fix typo: "monocased_shell" no longer exists.
3509 2000-08-07  Paul Eggert  <eggert@twinsun.com>
3511         Remove FILENAME_MAX limits.
3513         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
3514         that the argument length is less than FILENAME_MAX.
3515         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
3516         Use struct hack to allocate and free file name.
3517         (struct xtmpfile_list): fname is now part of the structure,
3518         not a pointer to another string.
3520 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
3522         * src/include/posix.h: Add a default value for FILENAME_MAX.
3524 2000-08-06  Paul Eggert  <eggert@twinsun.com>
3526         Add support for new BSD-style man pages (with ".Dd" instead of
3527         ".TH"), so that "groff -man" understands both styles, even
3528         when running "groff -man" on a host whose system man page
3529         macros don't support ".Dd".
3531         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
3532         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
3533         in case the system man macros don't define Dd or TH.
3535         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
3536         * tmac/tmac.an: New one-line file.
3537         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
3539 2000-08-06  Werner LEMBERG  <wl@gnu.org>
3541         * src/roff/troff/troff.man: Fixing typos.
3543 Version 1.16.1 released
3544 =======================
3546 2000-07-31  Werner LEMBERG  <wl@gnu.org>
3548         Preparing release 1.16.1.
3550         * REVISION: Revision number set to 1.
3551         * MORE.STUFF: Added info about port to DOS.
3552         * NEWS, win32-diffs: Updated.
3554         * src/include/nonposix.h: Remove first line -- this file is used
3555         in C also.
3557         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
3558         link to it.
3560 2000-07-30  Werner LEMBERG  <wl@gnu.org>
3562         * doc/texinfo.tex: Update to latest version.
3564 2000-06-28  Paul Eggert  <eggert@twinsun.com>
3566         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
3567         commands that fail.  Don't assume that "export a=b" is valid shell
3568         syntax.  This is needed for Solaris 2.5.1.
3570         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
3571         comment about missing Solaris headers.
3573         * PROBLEMS: Add section about problems with Sun Make and VPATH.
3575 2000-06-25  Werner LEMBERG  <wl@gnu.org>
3577         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
3578         SET_BINARY().
3580         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
3582         * win32-diffs: Updated.
3583         * README.WIN32: Added CRs to make all Windows editors happy.
3585         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
3586         src/roff/groff/pipeline.c).
3588 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
3590         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
3591         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
3593 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
3595         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
3596         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
3597         are binary files.
3598         (main): Support non-Posix systems with several different styles of
3599         slash characters in file names.
3601         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
3602         (main) [SET_BINARY]: Switch stdin into binary mode.
3604         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
3605         (main): Support file names with several possible slash-type
3606         characters, as given by DIR_SEPS[] in nonposix.h.
3607         (main) [__MSDOS__]: If renaming the temporary index file fails
3608         because it has more than one dot in its trunk, replace the dot
3609         with an underscore and try again.
3610         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
3611         Newline.
3612         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
3614         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
3615         (File::File): Open the input file in binary mode.  Strip CR
3616         characters from each CR-LF pair.
3617         (xbasename): Support file names with several possible slash-type
3618         characters, as given by DIR_SEPS[] in nonposix.h.
3620         * src/include/Makefile.sub (HDRS): Add nonposix.h.
3622         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
3623         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
3624         [!_POSIX_VERSION]: Define for traditional Unix systems.
3625         (real_output_file::real_output_file): Remove the MSVC-specific
3626         call to popen, use instead POPEN_WT, appropriately defined on
3627         nonposix.h.  #include nonposix.h.
3628         (real_output_file::~real_output_file): Remove the MSVC-specific
3629         call to pclose, a suitable macro is now defined on nonposix.h.
3630         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
3631         and WEXITSTATUS instead of assuming traditional Unix
3632         interpretation of the status returned by pclose.
3634         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
3635         call to popen, use POPEN_RT instead (appropriately defined on
3636         nonposix.h).  #include nonposix.h.
3637         (ps_bbox_request): Open the PostScript file in binary mode.
3638         Close the file after processing it.
3639         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
3640         nonposix.h.
3642         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
3643         A version of run_pipeline that doesn't use `fork'.
3644         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
3645         (system_shell_name, system_shell_dash_c)
3646         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
3647         the ugliness of testing DOS/Windows file names for equality, and
3648         support both stock shells and ports of Unix shells.
3650         * src/roff/groff/groff.cc: #include nonposix.h.
3651         (BSHELL): Definition moved to nonposix.h.
3652         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
3653         instead of a literal "-c".
3654         (xbasename): Support file names with several possible slash-type
3655         characters, as given by DIR_SEPS[] in nonposix.h.
3656         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
3657         of literal strings.
3659         * src/preproc/soelim/soelim.cc: #include nonposix.h.
3660         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
3662         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
3663         pic_tab.h.
3665         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
3667         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
3668         eqn_tab.h.
3670         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
3672         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
3673         P_tmpdir is defined, use it instead of the literal "/tmp".
3674         (remove_tmp_files, add_tmp_file): New functions.
3675         (xtmpfile): Record temporary files and register an atexit function
3676         to delete them explicitly, instead of relying on the OS to do
3677         that, which doesn't work on non-Unix systems.
3679         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
3680         (search_path::search_path): Use PATH_SEP instead of a literal
3681         colon.
3682         (search_path::command_line_dir): Ditto.
3683         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
3684         to support non-Posix systems.
3686         * src/libs/libbib/search.cc: #include nonposix.h.
3687         (search_list::add_file): Open the file in binary mode.
3689         * src/libs/libbib/linear.cc: #include nonposix.h.
3690         (file_buffer::load): Remove \r characters preceding \n from the
3691         loaded buffer.
3693         * src/libs/libbib/index.cc: #include nonposix.h.
3694         (make_index_search_item): Open index_filename in O_BINARY mode.
3695         (index_search_item_iterator::get_tag): Ditto.  Remove \r
3696         characters before \n characters.
3697         (index_search_item::check_files): Open files in binary mode.
3698         (index_search_item::munge_filename): Support DOS-style file names
3699         with backslashes and drive letters, use IS_ABSOLUTE.
3701         * src/devices/grops/ps.cc: #include nonposix.h.
3702         (main) [SET_BINARY]: Switch stdout to binary mode.
3704         * src/devices/grolj4/lj4.cc: #include nonposix.h.
3705         (main) [SET_BINARY]: Switch stdout to binary mode.
3707         * src/devices/grolbp/lbp.cc: #include nonposix.h
3708         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
3710         * src/devices/grodvi/dvi.cc: #include nonposix.h.
3711         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
3712         nonposix.h).
3713         (main) [SET_BINARY]: Switch stdout to binary mode.
3714         [_MSC_VER]: Remove an explicit call to _setmode.
3716         * src/include/nonposix.h: New file.
3718         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
3719         operation when building with DJGPP.
3720         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
3721         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
3722         ENVSETUP.
3724         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
3725         MS-DOS.
3726         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
3727         etc. can include a semi-colon on DOS/Windows.
3728         (depend.temp): Use depend1.temp instead of depend.temp1, to
3729         prevent files from overerwiting each other on 8+3 filesystems.
3731         * gendef.sh (t): Change definition to work with DOS/Windows.
3733         doc/groff.texinfo: Apart of some typo corrections, I also changed
3734         some index entris, to make them more non-ambiguous, and also put
3735         @ignore around some parts that are not yet written, to allow the
3736         Info output be readable.
3738 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
3740         Replaced specific checks for function declarations with a generic
3741         routine taken from GNU bfd.
3743         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
3744         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
3745         * configure.in: Use it.
3746         * src/devices/grolbp/lbp.cc, src/include/lib.h,
3747         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
3748         src/roff/groff/groff.cc: Use it.
3749         * Makefile.in, configure: Updated.
3751 2000-06-07  Paco Andres Verdu  <pandres@dragonet.es>
3753         * src/devides/grolbp/lbp.h: Removed unused variables.
3755 2000-05-31  Keith Thompson  <kst@sdsc.edu>
3757         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
3758         strncasecmp().
3760 2000-05-31  Werner LEMBERG  <wl@gnu.org>
3762         * aclocal.m4 (GROFF_SRAND): New function to test the return value
3763         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
3764         * configure.in: Use it.
3765         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
3766         * configure, Makefile.in: Updated.
3768         * configure.in: Add test for strncasecmp().
3769         * src/include/lib.h: Use it.
3771 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
3773         * src/preproc/grn/Makefile.sub: Add MLIB.
3775 2000-05-29  Nix  <nix@esperi.demon.co.uk>
3777         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
3779 2000-05-29  Werner LEMBERG  <wl@gnu.org>
3781         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
3783         * PROBLEMS: Small update.
3785         * src/devices/grolbp/lbp.cc: Various small fixes.
3787 2000-05-28  Keith Thompson  <kst@sdsc.edu>
3789         * src/roff/nroff/nroff.sh: Fix main loop syntax.
3791         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
3793 2000-05-25  Werner LEMBERG  <wl@gnu.org>
3795         * man/roff.man: Removed unused macro.
3797 2000-05-24  Werner LEMBERG  <wl@gnu.org>
3799         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
3800         This is needed e.g. if you do
3801         `make distclean; ./configure; make dist'.
3803 Version 1.16 released
3804 =====================
3806 2000-05-23  Werner LEMBERG  <wl@gnu.org>
3808         Adding font CWI (constant width italic) to devdvi.
3810         * font/devdvi/CWI: New file.
3811         * font/devdvi/generate/Makefile: Add generating rule.
3812         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
3813         tmac/tmac.dvi: Use it.
3814         * NEWS: Announce it.
3816         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
3817         * font/devlj4/generate/Makefile: Cosmetic changes only.
3819         * man/groff.man: Removed most of the redundant description of
3820         special characters (which is in groff_char.man).  Added font
3821         translation CB->CR for devdvi.  Other minor fixes.
3823         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
3824         (registered) symbols.
3826 2000-05-22  Werner LEMBERG  <wl@gnu.org>
3828         * doc/Makefile: Added rule for creating info files.
3830         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
3831         AMS font metrics.
3832         * font/devdvi/generate/Makefile: Fixed dependencies.
3834         * font/devps/*: Regenerated.  Heavy changes for Bookman and
3835         NewCentury Schoolbook!
3836         * font/devps/generate/afmname: Will now run with GNU awk.
3837         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
3838         * font/devps/generate/Makefile: Cosmetic changes only.
3840 2000-05-21  Werner LEMBERG  <wl@gnu.org>
3842         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
3843         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
3844         `.SS' now produces a heading with a smaller size than `.SH'. 
3845         Completely formatted.
3846         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
3848         * man/groff.man: Improved table appearance.  Use of `eo' request
3849         to reduce number of doubled backslashes in macro definitions.
3850         Replacing `\e' with `\(rs'.  Other minor fixes.
3852         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
3853         to have correct line number.
3855         * INSTALL: Small improvement.
3857 2000-05-20  Bernd Warken  <bwarken@mayn.de>
3859         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
3860         WL).
3862 2000-05-19  Bernd Warken  <bwarken@mayn.de>
3864         * man/groff.man: Complete update (with a lot of corrections by WL).
3866 2000-05-18  Werner LEMBERG  <wl@gnu.org>
3868         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
3870         * font/*/*: Implement it.
3871         * man/groff_char.man, NEWS: Document it.
3873         * src/include/unix.h: Removed.  It isn't used.
3875         * doc/groff.texinfo: Slight improvements.
3877 2000-05-17  Werner LEMBERG  <wl@gnu.org>
3879         * README, win32-diffs: Small fixes and improvements.
3881 2000-05-16  Werner LEMBERG  <wl@gnu.org>
3883         * FDL: New file (the Free Documentation License version 1.1).
3885         * doc/groff.texinfo: Added many start-up values for gtroff.
3886         Some structural improvements of the source code.
3888 2000-05-15  Werner LEMBERG  <wl@gnu.org>
3890         * src/roff/troff/input.cc: Added small comment about troffrc-end.
3891         * src/roff/troff/troff.man: Added info about troffrc-end.
3893 2000-05-14  Werner LEMBERG  <wl@gnu.org>
3895         * Makefile.in (EXTRADIRS): Fix typos.
3896         (dist): Handle deletion of old .tar.gz file correctly.
3897         (DISTDIRS): Include all tty output devices.
3899         * doc/groff.texinfo: Adding more cross references; countless other
3900         fixes.
3902 2000-05-13  Werner LEMBERG  <wl@gnu.org>
3904         * MORE.STUFF: Added Robert Marks's utilities.
3906 2000-05-12  Werner LEMBERG  <wl@gnu.org>
3908         Added win32 port contributed by Blake McBride
3909         <blake@florida-software.com>.
3911         * README.WIN32, win32-diffs: New files.
3912         * NEWS: Updated.
3914         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
3915         (tmove, tmove2): Added parentheses to avoid compiler warnings.
3916         (change): Removed unused variables.
3918         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
3919         (savebounds): Changed return value from `int' to `void'.
3920         * src/preproc/grn/hdb.cc: Ditto.
3922         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
3923         final backslash in comment to avoid compiler warning.
3925         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
3927         * doc/groff.texinfo: More fixes.
3929 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
3931         * tmac/tmac.doc: Documentation fix.
3933 2000-05-11  Werner LEMBERG  <wl@gnu.org>
3935         * doc/groff.texinfo: Reading the source code shows up a lot of
3936         omissions and incorrect data...  More conversion to @Deffn macros.
3938 2000-05-10  Werner LEMBERG  <wl@gnu.org>
3940         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
3941         dependency.
3943         * src/roff/troff/request.h: Removing unused `no_break_flag'.
3945 2000-05-09  Werner LEMBERG  <wl@gnu.org>
3947         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
3948         improvements.
3950         * doc/groff.texinfo: Extended history section.  More conversion to
3951         @Deffn macros.  More .tr documentation.
3953 2000-05-07  Werner LEMBERG  <wl@gnu.org>
3955         * doc/groff.texinfo: Completed tab section.  Added info about
3956         fields.
3958 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
3960         * PROBLEMS: Describe configure script fix for OS/390 Unix.
3962 2000-05-05  Werner LEMBERG  <wl@gnu.org>
3964         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
3965         LaTeX 2e).
3966         * NEWS: Document it.
3968         * man/troff.man: Minor optical improvements.
3970 2000-05-03  Werner LEMBERG  <wl@gnu.org>
3972         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
3974         * font/*/*: Implement it.
3975         * man/groff_char.man, NEWS: Document it.
3977 2000-05-02  Werner LEMBERG  <wl@gnu.org>
3979         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
3980         expansion.
3981         * NEWS: Document the three new man pages.
3983         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
3984         * configure: Updated.
3986         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
3988 2000-05-01  Werner LEMBERG  <wl@gnu.org>
3990         Added grap support to grog.
3992         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
3993         * src/roff/grog/grog.man: Document it.
3995         * doc/groff.texinfo, NEWS: Add info about grap support.
3997         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
3998         (with slight fixes by me).
4000         * tmac/groff_tmac.man: New file documenting tmac mechanism.
4001         * tmac/Makefile.sub: Add groff_tmac.man.
4002         * man/roff.man: New file giving overview of roff system.
4003         * man/troff.man: A short reference of troff.
4004         * man/Makefile.sub: Add roff.man and troff.man.
4006 2000-04-30  Werner LEMBERG  <wl@gnu.org>
4008         Added grap support to groff.
4010         * src/roff/groff/groff.cc: Implement it.
4011         * src/roff/groff/groff.man: Document it.
4013         * src/devices/grotty/grotty.man: Add cp1047 device.
4014         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
4015         Ditto.
4016         * src/roff/groff/groff.man: Ditto.
4017         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
4018         * doc/groff.texinfo: Ditto.
4020         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
4021         for cp1047.
4023 2000-04-29  Werner LEMBERG  <wl@gnu.org>
4025         * man/groff_char.man: Add `pc' glyph.
4026         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
4027         * tmac/tmac.tty: Add `pc' glyph.
4028         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
4029         we use cp1047 output device.
4031         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
4032         there are still hardcoded latin1->unicode values in utf8's font
4033         definition files.
4034         * configure: Updated.
4035         * NEWS: Minor clarification.  Updated.
4037         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
4038         Unix.
4040 2000-04-28  Werner LEMBERG  <wl@gnu.org>
4042         Adding EBCDIC code page 1047.
4044         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
4045         font/devcp1047/DESC.proto: New files.
4047         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
4048         either ascii/latin1 or cp1047.
4049         * Makefile.in: Use it.
4050         * configure: Updated.
4052         Replacing and/or adding `md' (mathdot) glyph with `pc'
4053         (periodcentered) in all text fonts.
4055         * font/*/*: Change it.
4057 2000-04-27  Werner LEMBERG  <wl@gnu.org>
4059         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
4061         * configure.in: Add check for strings.h.
4062         * src/include/driver.h: Use HAVE_STRINGS_H.
4063         * src/devices/grolbp/lpb.cc: Remove string.h.
4065         * src/include/groff-getopt.h: New file.  It will be used instead of
4066         getopt.h (to be included in lib.h) to avoid endless problems with
4067         picky C++ compilers.
4068         * src/include/lib.h: Use groff-getopt.h.
4069         * src/include/Makefile.sub: Updated.
4071         * configure: Updated.
4072         * Makefile.in: Updated.
4074         * NEWS: Mention EBCDIC support.
4076 2000-04-26  Werner LEMBERG  <wl@gnu.org>
4078         * TODO: Some additions.
4080 2000-04-25  Werner LEMBERG  <wl@gnu.org>
4082         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
4083         of mso request.
4085 2000-04-23  Werner LEMBERG  <wl@gnu.org>
4087         * src/roff/troff/troff.man: Minor fixes.
4089 2000-04-22  Werner LEMBERG  <wl@gnu.org>
4091         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
4092         `.T' string register and the incompatible definition of the `.T'
4093         number register (compared to Unix troff).
4095         * man/groff_char.man: Add some missing characters.
4096         * font/devutf8/NOTES: Update.
4098 2000-04-21  Werner LEMBERG  <wl@gnu.org>
4100         * src/include/htmlindicate.h, src/include/lib.h,
4101         src/include/posix.h: Fix copyright.
4103         * src/include/Makefile.sub: Update.
4105 2000-04-20  Werner LEMBERG  <wl@gnu.org>
4107         * src/roff/troff/input.cc (input_char_description): Removing
4108         superfluous space char.
4110         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
4112         * doc/groff.texinfo: Document EBCDIC.
4114 2000-04-19  Werner LEMBERG  <wl@gnu.org>
4116         Introducing `shc' as the glyph name for the soft hyphen character.
4118         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
4119         font/devlatin1/R.proto: Use it.
4121         * NEWS: Updated.
4123 2000-04-18  Werner LEMBERG  <wl@gnu.org>
4125         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
4126         dependency on ASCII order.
4128 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
4130         * src/libs/libgroff/illegal.c: Added EBCDIC table.
4131         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
4133         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
4134         to increase portability.
4136 2000-04-15  Werner LEMBERG  <wl@gnu.org>
4138         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
4139         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
4140         the generic `\n' if under OS/390 Unix.
4142         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
4144         * configure: Regenerated.
4146 2000-04-14  Werner LEMBERG  <wl@gnu.org>
4148         * doc/groff.texinfo: More conversions to @Deffn.
4150 2000-04-12  Werner LEMBERG  <wl@gnu.org>
4152         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
4153         with `:'.
4155         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
4157 2000-04-10  Werner LEMBERG  <wl@gnu.org>
4159         * doc/groff.texinfo: More conversions to @Deffn.
4161 2000-04-08  Werner LEMBERG  <wl@gnu.org>
4163         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
4164         Updated to latest version (glibc 2.1.3).
4166 2000-04-07  Werner LEMBERG  <wl@gnu.org>
4168         * doc/Makefile (clean): Include more index files.
4169         Add rule texinfo->dvi.
4171 2000-04-05  Werner LEMBERG  <wl@gnu.org>
4173         * doc/groff.texinfo: Added new index `op' for operators.  More
4174         info on end of sentence characters.  More use of @Deffn.
4176 2000-03-30  Werner LEMBERG  <wl@gnu.org>
4178         * */*.man: Adding a note that a whitespace can be inserted between
4179         a command line option and its parameter -- we are using GNU getopt.
4181         * src/roff/groff/groff.man: Add example of `-m mandoc'.
4183 2000-03-28  Werner LEMBERG  <wl@gnu.org>
4185         Correct anachronism of calling the man macro file with `-man'
4186         instead of `-m man' etc.
4188         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
4189         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
4190         load tmac.<package>.
4192         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
4194         * NEWS: Updated.
4196         * doc/groff.texinfo: Updated.
4198         * tmac/groff_man.man: Copyright added.
4200 2000-03-27  Werner LEMBERG  <wl@gnu.org>
4202         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
4203         typeset the request resp. escape name with a tt font -- due to a
4204         bug in texinfo.tex it is necessary to use the `-e' switch with
4205         texi2dvi.
4207         Improving info about usage of groff units.
4209         Other minor fixes.
4211 2000-03-20  Werner LEMBERG  <wl@gnu.org>
4213         * doc/groff.texinfo: Added section about man macro package
4214         (I've basically taken groff_man.man).  Introducing new indices `ma'
4215         for macros/strings and `gl' for glyph names.  Other minor fixes.
4217         * tmac/groff_man.man: Fixed some typos.
4219 2000-03-19  Werner LEMBERG  <wl@gnu.org>
4221         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
4222         Other minor fixes.
4224         * doc/texinfo.tex: New file.
4226 2000-03-18  Werner LEMBERG  <wl@gnu.org>
4228         * doc/groff.texinfo: Improved section on number registers.  Other
4229         minor updates.
4231 2000-03-16  Werner LEMBERG  <wl@gnu.org>
4233         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
4234         synopsis.
4236         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
4237         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
4238         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
4239         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
4241         * src/preproc/grn/grn.man: Better synopsis; added copyright.
4243         * src/roff/grog/grog.man: Updated copyright date.
4245 2000-03-14  Francisco Andres Verdu  <pandres@dragonet.es>
4247         * configure.in: Added test for strdup.
4249         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
4250         is available.
4252         Replaced dynamic allocation of arrays `[...]' with `new' operator.
4254         Other minor fixes.
4256 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
4258         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
4260 2000-03-11  Werner LEMBERG  <wl@gnu.org>
4262         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
4263         compilers silent.
4264         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
4265         * src/include/lib.h: Remove some spaces.
4267 2000-03-10  Werner LEMBERG  <wl@gnu.org>
4269         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
4270         initializers from arguments (some compilers don't like this).
4272 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
4274         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
4275         used by pic and eqn to tell grohtml where the graphic regions start
4276         and end.
4277         * src/libs/libgroff/Makefile.sub: Use it.
4278         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
4279         graphic_start() and graphic_end() from htmlindicate.cc.
4281 2000-03-09  Werner LEMBERG  <wl@gnu.org>
4283         * tmac/tmac.safer: Will now work correctly in compatibility mode.
4284         * tmac/groff_man.man: More fixes.
4286 2000-03-08  Werner LEMBERG  <wl@gnu.org>
4288         * doc/Makefile: Added texput.log to the `clean' target.
4289         * doc/groff.texinfo: Added info about delimiters for escapes.
4291 2000-03-08  Bernd Warken  <bwarken@mayn.de>
4293         * src/preproc/pic/pic.man: Add info on conversion of pic images to
4294         other graphic formats.
4296 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
4298         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
4299         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
4300         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
4301         files.
4303 2000-03-07  Werner LEMBERG  <wl@gnu.org>
4305         * doc/groff.texinfo: Spelling fixes.
4307 2000-03-06  Werner LEMBERG  <wl@gnu.org>
4309         * tmac/groff_man.man: Completely revised to cover everything in
4310         tmac.an.
4312         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
4313         Other minor fixings.
4314         * src/roff/troff/env.cc (environment_copy): Improve error message and
4315         fix itoa->i_to_a.
4316         * src/roff/troff/TODO: Updated.
4318         * doc/Makefile: Bug fixes -- this is still provisional, though...
4320         * tmac/eqnrc: Small fixes.
4322 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
4324         Adding a request `evc' to copy environments.
4326         * src/roff/troff/env.cc (environment::copy, environment_copy):
4327         Implement it.
4328         * src/roff/troff/env.h: Add prototype.
4330 2000-03-05  Francisco Andres Verdu  <pandres@dragonet.es>
4332         Adding strsep() -- Solaris 8 doesn't have it.
4334         * configure.in: Test it.
4335         * src/devices/grolbp/lbp.cc: Add code.
4337 2000-03-05  Werner LEMBERG  <wl@gnu.org>
4339         * src/roff/troff/div.cc (macro_diversion::output,
4340         top_level_diversion::output): Fixing an incompatibility with
4341         original troff: \x'0' updates the .a register also.  Thanks to
4342         <Andries.Brouwer@cwi.nl> for pointing this out.
4343         * doc/groff.texinfo: Document it.
4345         * Makefile.in: Create Makefile.dep if necessary before calling the
4346         submake process to avoid warning about nonexistent file.
4348         * NEWS, PROJECTS: Updated.
4350 2000-03-04  Werner LEMBERG  <wl@gnu.org>
4352         * tmac/troffrc: Add tmac.lbp.
4354 2000-03-03  Francisco Andres Verdu  <pandres@dragonet.es>
4356         * tmac/tmac.lbp: New file.
4357         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
4358         command.
4360 2000-03-03  Werner LEMBERG  <wl@gnu.org>
4362         * Makefile.in: Fixing $(subdir).
4364         * README, NEWS: Small fixes.
4366         * test-groff: Adding path to grolbp.
4368         * configure.in: The (new) file src/xditview/Imakefile.in will be
4369         also configured -- it is now possible to build gxditview in a
4370         directory different from $srcdir.
4372 2000-03-02  Blake McBride  <blake@florida-software.com>
4374         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
4376         * MORE.STUFF: Added website of bell labs and info about plot2dev.
4378 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
4380         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
4381         files.
4383 2000-02-29  Werner LEMBERG  <wl@gnu.org>
4385         Adding GNU getopt to the groff distribution.
4387         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
4388         New files.
4389         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
4390         * aclocal.a4: Remove GROFF_GETOPT function.
4391         * configure.in, Makefile.in, PROBLEMS: Update.
4392         * src/include/lib.h: Replace getopt tests with getopt.h.
4393         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
4395         * doc/groff.texinfo: Further checking/updating.  Adding more index
4396         entries.
4398         * man/groff_out.man: Fix nroff mode activation (for emacs).
4399         * man/groff_font.man: Add missing ligature.
4401 2000-02-28  Werner LEMBERG  <wl@gnu.org>
4403         * doc/groff.texinfo: Further checking/updating.  Adding more index
4404         entries.
4406         * src/devices/grolbp/grolbp.man: Added a comment line at the
4407         beginning of the file (similar to shell scripts) which indicates
4408         that `tbl' should be used as a preprocessor.
4410 2000-02-27  Blake McBride  <blake@florida-software.com>
4412         Adapting groff to MS Visual C++ 6.0 compiler (tested with
4413         Windows NT 4.0).  Uses _MSC_VER define where necessary.
4415         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
4416         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
4417         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
4418         src/include/lib.h, src/libs/libgroff/errarg.cc,
4419         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
4420         src/preproc/refer/label.y, src/preproc/refer/label.cc,
4421         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
4422         src/roff/troff/div.cc, src/roff/troff/env.cc,
4423         src/roff/troff/input.cc, src/roff/troff/node.cc,
4424         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
4425         if_to_a() to avoid name clashes.
4426         * src/include/posix.h: Don't use unistd.h.
4427         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
4428         clause for integrating non-Unix xtmpfile() code.
4429         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
4430         structure; use "rt" for popen() in pipe_source(); add getpid()
4431         dummy function.
4432         * src/roff/troff/node.cc: Use special versions of popen() in
4433         real_output_file() and pclose() in ~real_output_file().
4435 2000-02-27  Werner LEMBERG  <wl@gnu.org>
4437         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
4438         LBP-8 series laser printers).  This code has been contributed by
4439         Francisco Andres Verdu <pandres@dragonet.es>.
4441         * src/devices/grolbp/*: The grolbp output device.
4442         * font/devlpb/*: The font description files.
4443         * Makefile.in: Add grolpb and devlbp subdirectories.
4445         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
4446         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
4447         typographic fixes.
4449         * doc/groff.texinfo: Further checking/updating.  Adding more index
4450         entries.
4452         * NEWS: Updated.
4454         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
4456         * man/groff_font.man: Adding info about obsolete DESC keywords.
4457         * src/devices/grolj4/grolj4.man: Documenting additional DESC
4458         keywords.
4460 2000-02-26  Werner LEMBERG  <wl@gnu.org>
4462         * src/preproc/grn/grn.man: Added info about the gremlin file format
4463         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
4465 2000-02-25  Werner LEMBERG  <wl@gnu.org>
4467         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
4468         friends to be non-integer.
4470         * src/preproc/grn/grn.man: Document it.
4472         * doc/groff.texinfo: Further checking/updating.  Adding more index
4473         entries.
4475 2000-02-24  Werner LEMBERG  <wl@gnu.org>
4477         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
4478         line thicknesses to be integer multiples of this value.
4480         * src/preproc/grn/grn.man: Commenting out the -s option -- the
4481         corresponding code doesn't work (yet).
4483         * doc/groff.texinfo: Further checking/updating.  Adding more index
4484         entries.
4486 2000-02-23  Werner LEMBERG  <wl@gnu.org>
4488         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
4489         specify line thickness instead of base units.  The new default
4490         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
4491         thick lines respectively.
4493         Removed unused variable `prevval'.
4495         * src/preproc/grn/grn.man: Updated.
4497 2000-02-22  Werner LEMBERG  <wl@gnu.org>
4499         * src/preproc/grn/main.cc: Slight formatting.
4501         * src/roff/groff/groff.man: Formatting fix.
4502         * src/preproc/grn/grn.man: Ditto.
4504         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
4506         * doc/groff.texinfo: Further checking/updating.
4508 2000-02-21  Werner LEMBERG  <wl@gnu.org>
4510         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
4512         * test-groff: Added grn subdir to path.
4514         * doc/groff.texinfo: Some restructing and other small improvements.
4516         * src/roff/groff/groff.cc (help): Fixed info string.
4518 2000-02-20  Werner LEMBERG  <wl@gnu.org>
4520         * doc/meref.me: Fix description of .GS request.
4522         * src/roff/troff/troff.man: Fixing typo.
4524         Adding the `grn' preprocessor for gremlin graphic files.
4526         * src/preproc/grn/*: This is the Berkeley distribution written by
4527         David Slattengren and Barry Roitblat, adapted to groff by Daniel
4528         Senderowicz and Werner Lemberg.
4530         * doc/grnexampl.{me,g}: A sample for grn.
4532         * Makefile.in: Added subdirectory entry for grn.
4534         * src/roff/groff/groff.cc: Added support for grn.  It can be now
4535         called with the switch `-g'.
4537         * src/roff/groff/groff.man: Updated.
4539         * src/roff/grog/grog.{man,pl,sh}: Updated.
4541         * NEWS: Updated.
4543 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
4545         * src/include/lib.h: Added xtmptemplate and made xtmpfile
4546         parametrically polymorphic.
4548         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
4549         and the alterations to xtmpfile.
4550         xtmpfile can be requested to return the filename created
4551         and asked not to unlink the temp file.  The default behaviour
4552         if parameters are absent is exactly the same as before.
4554 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
4556         A new request `length' is available which returns the length of a
4557         string in a number register:
4559         * src/roff/troff/input.cc (length_macro): Implement it.
4560         * src/roff/troff/input.cc (init_input_requests): Register it.
4562 2000-02-11  Werner LEMBERG  <wl@gnu.org>
4564         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
4565         of the `substring' request.
4567         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
4568         request.
4570         * src/roff/troff/TODO, NEWS: Updated.
4572 2000-02-09  Werner LEMBERG  <wl@gnu.org>
4574         * src/roff/groff/groff.man: Added an example.
4576 2000-02-06  Werner LEMBERG  <wl@gnu.org>
4578         I've considerably modified the directory structure of the
4579         distribution to get a more vertical layout.  For example, the number
4580         of top level directories has been reduced from 42 to 6.
4582         As a consequence, many changes, especially to the makefiles, were
4583         necessary:
4585         * The makefile variables `top_builddir' and `top_srcdir' have been
4586         introduced.  Virtually all relative paths have been replaced with
4587         absolute ones using these two variables.
4589         * Dependencies (in the files `Makefile.dep') are no longer part of
4590         the distribution.  Instead, they are created during a `make install'
4591         in the build directory.
4593         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
4594         make `top_srcdir' and `top_builddir' absolute.
4596         Some other changes:
4598         * Man pages no depend on the files `VERSION' and `REVISION'.
4600         * The added shell script `mkinstalldirs' will replace `mkdir' in
4601         almost all cases.
4603         * VERSION: Version number increased to 1.16.
4605 2000-02-04  Werner LEMBERG  <wl@gnu.org>
4607         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
4609         * Makefile.in: Removed $(tmac_m) since it is no longer needed
4610         (after an update of the mm stuff).
4612         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
4614 2000-02-03  Werner LEMBERG  <wl@gnu.org>
4616         The .psbb request will now also accept Mac PS images (i.e. using LF
4617         as the EOL character).
4619         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
4620         (with slight modifications).
4621         * troff/input.cc (do_ps_file): Use it.
4623         * test-groff: Add grohtml and grolj4 output devices to PATH.
4625 2000-01-30  Werner LEMBERG  <wl@gnu.org>
4627         * NEWS, MORE.STUFF: Updated.
4629 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
4631         Add the `srand' command to pic.
4633         * pic/lex.cc, pic/pic.y: Implement it.
4634         * pic/pic.man: Document it.
4635         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
4637 2000-01-30  Werner LEMBERG  <wl@gnu.org>
4639         Add a new request `.psbb'.  This does exactly what the external
4640         program psbb did.  It scans a PostScript image file for a
4641         %%BoundingBox comment and extracts the bounding box values (in
4642         PostScript units) which are then stored in the four new (read-only)
4643         number registers `llx', `lly', `urx', and `ury'.
4645         This will allow the usage of the .PSPIC macro without worrying
4646         about unsafe behaviour of groff, i.e., it will work without the
4647         `-U' switch of groff.
4649         * troff/input.cc: Implement it.
4650         * tmac/tmac.pspic: Use it.
4651         * troff/troff.man, grops/grops.man, NEWS: Document it.
4652         * psbb/*, Makefile.in: Remove it since it is no longer needed.
4654         This is bloody C code simply adapted from psbb.c!  Any improvements
4655         welcome.
4657 2000-01-29  Werner LEMBERG  <wl@gnu.org>
4659         * man/groff_font.man: Minor clarifications.
4661         * NEWS: Updated.
4663 2000-01-28  Werner LEMBERG  <wl@gnu.org>
4665         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
4667 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
4669         * man/groff_font.man: Brought up to date regarding tcommand
4670         extensions.
4671         * libgroff/font.cc: Handle everything after `--' as a comment
4672         in the font files.
4673         * devps/*: Added comment delimiter inside devps font files.
4675 2000-01-28  Werner LEMBERG  <wl@gnu.org>
4677         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
4678         \fC...\fP (which now works as expected).
4680         * troff/troff.man: Fix typo.
4682 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
4684         Completed the pass_filenames implementation in troff.
4686         * libdriver/input.cc: Will read the new `F' tcommand.
4687         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
4688         * troff/input.cc: Use it.
4690 2000-01-26  Werner LEMBERG  <wl@gnu.org>
4692         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
4693         font will now be updated even if an invalid font is selected.
4695 2000-01-24  Werner LEMBERG  <wl@gnu.org>
4697         * doc/homepage.ms: Updated for new tmac.arkup.
4699         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
4701         * tmac/tmac.arkup: Cleanup.
4703         Added `\&' to .HTML macro to `leave vertical mode', so to say.
4705         Removed obsolete .LINK macro completely.
4707         The macros .URL, .FTP, and .MAILTO now accept a third argument which
4708         will be immediately appended to the second argument (to be used with
4709         punctuation, for example).
4711         Disabled .CDFTP macro temporarily for security reasons.
4713         * tmac/groff_markup.man: Complete revision for latest changes in
4714         tmac.arkup -- note that it does not yet format correctly with
4715         grohtml :-(
4717 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
4719         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
4720         * devutf8/R.proto: Add mappings for wp, lh, rh.
4721         * devutf8/NOTES: Updated.
4723 2000-01-23  Werner LEMBERG  <wl@gnu.org>
4725         * doc/groff.texinfo: Updated version/copyright info.
4727 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
4729         Added support for two new directives in device descriptions:
4730         `pass_filenames' (to pass the input file name to the output device)
4731         and `use_charnames_in_special' (to support e.g. accented characters
4732         in the `X' request).
4734         * include/font.h, troff/charinfo.h: Declare it.
4736         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
4738         * devhtml/DESC: Use it.
4740         * troff/input.cc: New function encoded_char.
4742         * troff/token.h: Add test for `specialness'.
4744 2000-01-21  Werner LEMBERG  <wl@gnu.org>
4746         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
4747         mistake from the list of files to be installed.
4749 2000-01-18  Werner LEMBERG  <wl@gnu.org>
4751         * README: Added info how to apply patches.
4753 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
4755         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
4757 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
4759         * troff/input.cc: Add support for troffrc-end.
4761         * tbl/main.cc: Altered to issue table-start and table-end special
4762         characters if using the html device.
4764         * devhtml/*: Modified font files to incorporate html encoding of
4765         characters.
4767         * tmac/groff_markup.man: New file documenting tmac.arkup.
4769         * tmac/troffrc-end: New file.  This is invoked after all user
4770         specified macros.  Currently used by the html device to include
4771         tmac.html.  Thus no need for users to specify -mhtml anymore.
4773         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
4774         (MAN7): Add groff_markup.man.
4776         * tmac/tmac.an, tmac/tmac.html: Small html updates.
4778         * tmac/troffrc: tmac.arkup will now be called for the html device.
4780         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
4781         extra device specific information about fonts.
4783         * doc/homepage.ms: New file.  It is an example how an HTML home page
4784         could look like with grohtml.
4786         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
4788 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
4790         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
4791         of Im, Re.
4793         * devutf8/NOTES: Updated.
4795 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
4797         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
4798         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
4799         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
4800         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
4801         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
4802         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
4803         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
4804         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
4805         warnings.
4807         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
4809 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
4811         grolj4: Paper size will be searched case-insensitively.
4813         * include/lib.h: Add check for strcasecmp().
4814         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
4815         * configure.in: Check for strcasecmp().
4817 2000-01-11  Werner LEMBERG  <wl@gnu.org>
4819         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
4820         `REVISION'.
4822 2000-01-10  Werner LEMBERG  <wl@gnu.org>
4824         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
4825         revision scheme.
4827         Add a new read-only register, `.Y', which contains the groff
4828         revision.
4830         * troff/input.cc (init_input_requests): Define it.
4831         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
4832         * doc/groff.texinfo, troff/troff.man: Document it.
4834         * libgroff/Makefile.sub (version.cc): Add definition of
4835         `Version_string[]', consisting of `<major>.<minor>.<revision>'
4836         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
4837         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
4838         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
4839         troff/input.cc, pfbtops/pfbtops.c: Use it.
4841 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
4843         Add a revision scheme to the groff package.
4845         * REVISION: New file.
4846         * libgroff/Makefile.sub (version.cc): Use it to define
4847         `revision_string[]'.
4848         * grops/psrm.cc: Use revision_string (converted to an unsigned
4849         integer) in constructor of resource_manager.
4851 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
4853         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
4854         files.
4855         * Makefile.in (DEVDIRS): Add devutf8.
4856         * grotty/tty.cc: Include device.h.
4857         (glyph): Change type of `code' to `unsigned int'.
4858         (tty_printer): New field is_utf8.  Constructor takes device argument.
4859         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
4860         (tty_printer::add_char): Change type of first arg to `unsigned int'.
4861         (tty_printer::put_char): New function.
4862         (tty_printer::end_page): Use put_char() instead of ::putchar().
4863         (make_printer): Pass device to tty_printer constructor.
4864         * nroff.sh: Determine default device by calling 'locale'.  As a
4865         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
4866         Recognize UTF-8 locales.
4867         * tmac/eqnrc: Recognize utf8 like latin1.
4868         * tmac/troffrc: Device utf8 needs tmac.tty.
4870 2000-01-07  Werner LEMBERG  <wl@gnu.org>
4872         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
4874 2000-01-07  Paul Eggert  <eggert@twinsun.com>
4876         Add a new predefined writeable number register, `year',
4877         which contains the current year.
4879         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
4880         * tmac/tmac.s: Use it.
4881         * troff/input.cc (init_registers): Initialize it.
4883 2000-01-06  Werner LEMBERG  <wl@gnu.org>
4885         * PROBLEMS: Fixed typo.
4887 2000-01-04  Paul Eggert  <eggert@twinsun.com>
4889         * PROBLEMS: Add Y2k advice for the yr number register.
4891 2000-01-03  Paul Eggert  <eggert@twinsun.com>
4893         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
4895 2000-01-02  Werner LEMBERG  <wl@gnu.org>
4897         * tmac/tmac.arkup: Slight modification of macros to provide better
4898         appearance for non-HTML formats.
4900 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
4902         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
4903         does not automatically translate to malloc(n) on all OSes
4904         (e.g., SunOS) so do it explicitly.  Also, check the returned
4905         value.
4907 2000-01-01  Werner LEMBERG  <wl@gnu.org>
4909         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
4911         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
4912         expects this variable
4914 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
4916         * doc/Makefile: Added instructions to create HTML and text
4917         versions of some files.
4919 1999-12-31  Werner LEMBERG  <wl@gnu.org>
4921         * Updated INSTALL.gen.
4923         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
4924         better resp. correctly with non-HTML devices.
4926 Version 1.15 released
4927 =====================
4929 1999-12-28  Werner LEMBERG  <wl@gnu.org>
4931         * NEWS, VERSION: Changed to 1.15
4933 1999-12-27  Paul Eggert  <eggert@twinsun.com>
4935         * nroff/nroff.man: -S is safer, not safe.
4937         * groff/groff.cc (main): Use `safer', not `safe', in variable
4938         names.  This does not change the behavior.
4940         * troff/input.cc (main): Likewise.
4942         * nroff/nroff.sh: Likewise.
4944         * troff/input.cc (prepend_string): New function.
4945         (main): Prepend -msafer, so that we check macro libraries for
4946         safety.
4948         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
4950 Version 1.14 released
4951 =====================
4953 1999-12-26  Werner LEMBERG  <wl@gnu.org>
4955         * NEWS, VERSION: Changed to 1.14.
4957 1999-12-24  Werner LEMBERG  <wl@gnu.org>
4959         * refer/refer.cc: Fixing the last fix.
4961 Version 1.13 released
4962 =====================
4964 1999-12-23  Werner LEMBERG  <wl@gnu.org>
4966         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
4967         number disappear.
4969         * NEWS: Updated.
4971         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
4973         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
4974         document conventions, the version number must be a real.
4976 Version 1.12.1 released
4977 =======================
4979 1999-12-22  Werner LEMBERG  <wl@gnu.org>
4981         * VERSION: Changed to 1.12.1.
4983 1999-12-22  Alan Rooks  <arooks@istar.ca>
4985         * refer/refer.cc (do_file): Slight modification to satisfy the
4986         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
4987         UnixWare 7.1.
4989 1999-12-20  Werner LEMBERG  <wl@gnu.org>
4991         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
4992         notices.
4994         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
4995         list of unsafe requests.
4997         * pic/pic.man: Fixed a typo.
4999         * man/groff_out.man: Fixed a typo.
5001 1999-12-18  Werner LEMBERG  <wl@gnu.org>
5003         * Makefile.in: Doc fixes.
5005 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
5007         * groff/groff.cc: Missing `U' option added to getopt().
5009         * troff/troff.man: Missing `U' option added to synopsis.
5011 Version 1.12 released
5012 =====================
5014 1999-12-14  Werner LEMBERG  <wl@gnu.org>
5016         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
5017         to the synopsis.
5019         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
5020         with the more appropriate terms `safer' and `unsafe'.
5022         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
5023         sys_nerr and sys_errlist[].
5025         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
5027         * pic/pic.y, pic/pic.cc: Added check for fmod().
5029 1999-12-13  Werner LEMBERG  <wl@gnu.org>
5031         * VERSION: Changed to 1.12.
5033         Here some patches from various sources; most of them taken from
5034         the Debian distribution.
5036         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
5037         tmac/Makefile.sub: New files copied directly from the NetBSD
5038         distribution.  Probably, some additional adaptation later on is
5039         necessary...
5041         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
5042         of unsafe requests.
5044         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
5045         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
5046         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
5047         (`-S') is now the default.
5049         * README, NEWS: Updated.
5051 1999-12-09  Werner LEMBERG  <wl@gnu.org>
5053         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
5055         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
5057 1999-12-06  Werner LEMBERG  <wl@gnu.org>
5059         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
5060         grief than relief today.  Additionally, it is against the GNU
5061         coding standards.
5063         * configure: Recreated.
5065 1999-12-05  Werner LEMBERG  <wl@gnu.org>
5067         * configure.in: Added GROFF_LIBM.
5069         * configure: Recreated.
5071         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
5072         necessary.
5074         * Makefile.in: Added definition of $(LIBM).
5076         * Makefile.comm (LIBM): Removed.
5078         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
5080 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
5082         * doc/Makefile: Added rule for generation pic.html.
5084         (clean): Files produced by grohtml will be removed also.
5086         * doc/pic.ms: Small fix.
5088         * tmac/tmac.html: Fixed suppression of headers.
5090 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
5092         * tmac/tmac.html: Fixing horizontal arrows.
5094         Turning off hyphenation.
5096         * tmac/tmac.an: Improved support for grohtml; better indentation,
5097         no footers/headers.
5099 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
5101         * tmac/tmac.arkup: Added CDFTP macro
5103         * tmac/tmac.html: All headers are turned off for ms, me, and mm
5104         macros.
5106         * tmac/troffrc: Some additions for HTML stuff.
5108 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
5110         * tmac/tmac.html: Small changes.
5112 1999-09-26  Werner LEMBERG  <wl@gnu.org>
5114         * doc/groff.texinfo: Minor fixes.
5116 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
5118         * devhtml/TR: Changed spacewidth to 3.
5120         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
5122         * tmac/tmac.html: Moved markup macros to tmap.arkup.
5124         * tmac/tmac.arkup: New file.
5126         * grohtml/ChangeLog: New file.
5128 1999-09-16  Werner LEMBERG  <wl@gnu.org>
5130         * doc/groff.texinfo (Common Features): Added Copying chapter.
5131         Changed format to @smallbook.
5133 1999-09-15  Werner LEMBERG  <wl@gnu.org>
5135         * NEWS: Added info about groff.texinfo.
5137         * doc/groff.texinfo: Will now compile (using texi2dvi) without
5138         warning messages.
5140 1999-09-14  Werner LEMBERG  <wl@gnu.org>
5142         * groff/groff.man: More updates.
5144 1999-09-13  Werner LEMBERG  <wl@gnu.org>
5146         * doc/groff.texinfo: New file.  This manual is still very
5147         rudimentary.  It has been originally contributed by Trent
5148         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
5149         additions by me.
5151         * INSTALL: Added information about the `doc' subdir
5153         * troff/troff.man: Minor fixes.
5155         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
5156         reordered options.
5158         * troff/input.cc (usage): Added missing `-ffam' to usage message.
5160         * Makefile.in (dist): groff-$(version).tar.gz must be removed
5161         also, otherwise it is included itself in another call of `make
5162         dist'.
5164         * groff/groff.cc (synopsis): Removed superfluous space.
5166         * PROJECTS, PROBLEMS, NEWS: Updated.
5168         * VERSION: Updated to 1.12beta.
5170         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
5172         * README: Updated: Included documentation about CVS repository,
5173         mailing lists, and daily snapshots.
5175         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
5177 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
5179         * tmac/tmac.an: If the tag didn't fit into the space that the
5180         macro `TP' specifies, the rest of the tag went into the space for
5181         the next line.
5183 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
5185         * grolj4/lj4.cc: Added duplex printing (option `-d').
5187         * grolj4/grolj4.man: Document duplex printing.
5189 1999-09-12  Werner LEMBERG  <wl@gnu.org>
5191         * doc/Makefile (pic.ps): Fixed rule which caused problems with
5192         non-GNUish sed programs.
5194         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
5195         definition.
5197         * configure.in (LIBS): Added `-lc'
5199         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
5201         * pic/tex.cc (solid_arc): Casting M_PI to double.
5203         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
5205         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
5206         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
5207         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
5209         * groff/groff_man.man: New file.  This manual page was originally
5210         written for the Debian GNU/Linux system by Susan G. Kleinmann
5211         <sgk@debian.org>.
5213         * eqn/list.cc (list_box::compute_metrics,
5214         list_box::compute_sublist_width): Removed variable declaration to
5215         avoid shadowing warnings.
5217         * grops/psrm.cc (resource_manager::process_file): Ditto.
5219         * tfmtodit/tfmtodit.cc (main): Ditto.
5221         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
5222         to avoid shadowing warnings.
5224         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
5225         shadowing loop variable.
5227         * groff/groff.man, troff/troff.man: Added doc about grohtml.
5229 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
5231         New grohtml frontend to convert groff input to html.
5233         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
5235         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
5237         * tmac/eqnrc: Added html device.
5239         * tmac/tmac.html: New file.
5241         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
5242         (troff_output::start_picture, troff_output::finish_picture),
5243         tbl/main.cc (process_input_file):
5244         Surrounded output with `graphics_start' and `graphics_end' so that
5245         the html driver can identify non-text portions.
5247         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
5248         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
5249         grotty/tty.ps (tty_printer::set_char): Additional parameter
5250         `name'.
5252         * include/printer.h: Class printer: New function
5253         set_char_and_width; new variables (is_char_named, is_named_set,
5254         named_command, named_char_s, named_char_n) to hold information
5255         about named characters -- needed by the html driver.
5257         * libdriver/printer.cc (printer::set_ascii_char,
5258         printer::set_special_char): Use set_char_and_width.
5260         * devhtml/*: New device files for html driver.
5262         * grohtml/*: New driver grohtml.
5264 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
5266         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
5267         default strings.
5269 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
5271         * libgroff/string.cc (search): Small fix to test against NULL
5272         pointer.
5274 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
5276         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
5277         \b'abc') were stacked in reverse order when processed in a
5278         diversion.
5280         * troff/node.h: Added `*last' to struct `node' to make the above
5281         fix work.
5283         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
5284         The default scale for the 'f' and 't' graphics functions were 'm'
5285         rather than 'u' (i.e., no scaling).
5287 1999-09-11  Peter Miller  <peterm@jna.com.au>
5289         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
5290         do_file), soelim/soelim.man: Added `-I file' option to soelim,
5291         defining include paths.
5293         * soelim/soelim.cc (include_path_append): New function.
5295 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
5297         * tbl/main.cc (process_options): Unix (at least Documenter's
5298         Workbench) tbl allows arbitrary non-alpha characters between
5299         options.
5301 1999-09-11  Paul Eggert  <eggert@twinsun.com>
5303         Y2k fixes.  Don't assume that the current year precedes 2000.
5305         * doc/meref.me: Add \n(y2, \n(y4.
5307         * tmac/doc-common (Yr): New number register.
5308         (Dd): Don't assume current year precedes 2000.
5310         * tmac/tmac.e (td): Likewise.
5311         (y2, y4): New number registers.
5313         * pic/pic.man: Update reference for pic paper to May, 1991
5314         version.
5316 1999-09-11  Werner LEMBERG  <wl@gnu.org>
5318         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
5319         Removed quotation marks which prevented correct expansion of
5320         $(tmac_wrap).
5322         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
5324 1999-09-10  Werner LEMBERG  <wl@gnu.org>
5326         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
5327         `config.cache'.
5329         * Removed configure.old.
5331 1999-08-31  Werner LEMBERG  <wl@gnu.org>
5333         * VERSION: Updated to 1.11.1
5335 1999-05-27  Werner LEMBERG  <wl@gnu.org>
5337         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
5339         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
5340         added quotations around $(tmac_wrap) to avoid syntax error if
5341         variable is empty.
5343         * configure: Newly generated using autoconf 2.13.
5345         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
5347 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
5349         * README, PROJECTS, NEWS, INSTALL, VERSION, 
5350         doc/Makefile. doc/pic.ms, groff/groff.man:
5351         Prepare for 1.11 release.  No code changes.
5352         Documentation for pic added (doc/pic.ms).
5354 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
5356         * Version 1.10 released.
5358 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
5360         * afmtodit/afmtodit.pl: Avoid comment on first line.
5362 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
5364         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
5365         * configure.in: Call it.
5367         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
5368         (distfiles): Doesn't depend on config.log or config.cache.
5370 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
5372         * grog/grog.sh: Use print "" rather than print in END rule.
5374 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
5376         * tbl/main.cc (process_data): Don't give error for excess data
5377         entries that are comments.
5379 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
5381         * tbl/main.cc (process_data): Fix case where new for-scope rules
5382         silently change meaning of code.
5384 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
5386         * troff/env.cc (hyphenate): Loop over all consecutive sequences
5387         of non-zero hyphenation codes.
5389 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
5391         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
5393 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
5395         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
5397 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
5399         * tmac/tmac.andoc: Make it work in compatibility mode.
5401         * refer/token.h (token_info::is_range_sep): New function.
5402         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
5403         * refer/ref.cc (reference::output): More sophisticated check for
5404         multiple pages.
5406         * devps/prologue.ps (MANUAL): New procedure.
5407         * grops/ps.cc (main): New -m option.
5408         (usage): Include -m.
5409         (ps_printer::~ps_printer): Implement -m.
5411         * aclocal.m4 (GROFF_G): New macro.
5412         * configure.in: Call it.
5413         * Makefile.in (g): Provided by configure.
5415         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
5417         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
5418         translations.
5420         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
5421         (tmac_m, tmac_s): Deleted.
5422         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
5423         tmac_s_prefix): New variables.
5424         (MDEFINES): Change accordingly.
5425         * Makefile.comm (.man.n): Use new TMAC_* variables.
5426         * configure.in (GROFF_TMAC): Call.
5427         * aclocal.m4 (GROFF_TMAC): Define.
5428         * tmac/Makefile.sub (stamp_wrap): New target.
5429         (install_data, uninstall_sub): Handle macro wrapping.
5431 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
5433         * tbl/main.cc (main): Ignore -T option.
5435 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
5437         * devlj4/generate/special.map: Add definition of \(nb.
5439         * tmac/tmac.dvi: Add definition of \(nb.
5441         * troff/dictionary.c (dictionary::dictionary): association::v gets
5442         initialized by association::association.
5444         * tmac/Makefile.sub: Avoid using temporary files when installing.
5446         * troff/env.cc (environment::set_font): Make bad font number a
5447         warning.
5449         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
5451         * Makefile.in (datadir): Use share rather than lib.
5453         * groff/groff.cc (basename): Rename to xbasename.
5455 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
5457         * Makefile (CCLIBS): Don't use.
5458         * Makefile.ccpg: Likewise.
5460         * acgroff.m4: Rename to...
5461         * aclocal.m4: Modify extensively for autoconf 2.
5462         * configure.in: Likewise.
5463         * Makefile.in: Likewise.
5465         * groff/pipeline.c (const): Declare as empty if __STDC__ not
5466         defined.
5467         (xstrsignal): Check for definition of NSIG. Conditionalize
5468         on SYS_SIGLIST_DECLARED.  Make return type const.
5470 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
5472         * troff/input.cc (interpolate_macro): Rephrase missing space
5473         warning.
5475 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
5477         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
5478         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
5479         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
5480         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
5481         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
5482         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
5483         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
5484         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
5485         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
5486         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
5487         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
5488         Fix 'for' scoping.
5490 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
5492         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
5493         string_iterator.
5494         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
5495         file.
5496         (macro_iterator::macro_iterator): Add additional argument.
5498 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
5500         * troff/div.cc (vertical_size::vertical_size): In place of integer
5501         specifying line spacing use cunits specifying post vertical
5502         space.
5503         (macro_diversion::output, top_level_diversion::output): Likewise.
5504         * troff/div.h: Change declarations accordingly.
5505         * troff/env.cc (pending_output_line): Replace ls field by post_vs
5506         field.
5507         (pending_output_line::pending_output_line,
5508         pending_output_line::output, environment::output,
5509         environment::output_line, environment::output_title,
5510         environment::hyphenate_line):  In place of
5511         integer specifying line spacing use cunits specifying post vertical
5512         space.
5513         (environment::environment): Add post_vertical_spacing and
5514         prev_post_vertical_spacing arguments.
5515         (environment::get_post_vertical_spacing): New function.
5516         (environment::total_post_vertical_spacing): New function.
5517         (environment::post_vertical_spacing): New function.
5518         (init_env_requests): Initialize pvs request and .pvs register.
5519         * troff/env.h: Change declarations.
5521 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
5523         * tmac/tmac.pspic: Immediately remove the temporary file.
5525 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
5527         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
5528         height is specified.
5530 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
5532         * tbl/table.c (struct vertical rule, class table_entry): Use int
5533         not short for start_row and end_row.
5535 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
5537         * troff/input.cc (trapping_blank_line, blank_line_macro): New
5538         functions.
5539         (diverted_space_node::reread, process_input_stack): Call
5540         trapping_blank_line() rather than blank_line().
5541         (init_input_requests): Bind "blm" to blank_line_macro().
5543         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
5545 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
5547         * troff/env.cc (environment::possibly_break_line): Require that
5548         width total excluding width of final space node be greater than
5549         the target text length.
5551 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
5553         * troff/node.cc (kern_pair_node::vertical_extent): New function.
5555 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
5557         * troff/node.cc (charinfo_node): New class.
5558         (glyph_node, composite_node): Derive from charinfo_node.  Change
5559         member functions accordingly.
5561 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
5563         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
5565 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
5567         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
5569         * devps/generate/textmap (notsubset): Add.
5571         * tmac/tmac.a4: New file.
5573 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
5575         * pic/main.cc (had_parse_error): New variable.
5576         (do_picture, do_whole_file): Set had_parse_error if yyparse()
5577         returns non-zero.
5578         (main): Return 1 if had_parse_error is true.
5580 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
5582         * grolj4/lj4.cc (main): Avoid use of strtoul.
5584 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
5586         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
5587         iso_8859_1 or $LESSCHARSET is latin1.
5589 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
5591         * hpftodit: New directory.
5592         * Makefile.in (CCPROGDIRS): Add hpftodit.
5593         * devlj4/generate: New directory.
5595 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
5597         * configure.in: Don't use AC_VFORK.
5598         * groff/pipeline.c (run_pipeline): Use fork() always.
5600 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
5602         * grops/ps.cc (main): Use %1 not %s in error message for -w.
5604         * Makefile.in (CCPROGDIRS): Add grolj4.
5605         (DEVDIRS): Add devlj4.
5606         * grolj4, devlj4: New directories.
5607         * tmac/troffrc: Handle lj4.
5608         * tmac/tmac.lj4: New file.
5610 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
5612         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
5614 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
5616         * troff/input.cc (do_if_request): At end of second string, switch
5617         environments before getting next token.
5619 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
5621         * devps/psstrip.sed: Split rule that strips whitespace on either
5622         side of delimiters.
5624 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
5626         * troff/node.h (font_family::make_definition): Add return value to
5627         declaration.  * troff/symbol.h (symbol::operator==,
5628         symbol::operator!=): Likewise.
5630 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
5632         * groff/groff.cc (main, help, synopsis): Handle -S.
5633         (possible_command::insert_arg): New function.
5635         * tmac/tmac.safer: New file.
5636         * tmac/msafer.man: New file.
5637         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
5639 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
5641         * pic/pic.h, pic/main.cc (safer_flag): New variable.
5642         * pic/pic.y (placeless_element): Avoid unsafe operations if
5643         `safer_flag' is set.
5644         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
5646 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
5648         * eqn/lex.cc (get_token): Put call to add_context() in block to
5649         work around Sun C++ 4.0 bug.
5651         * include/stringclass.h (operator +): Use ?: instead of `if' to
5652         work around Sun C++ 4.0 bug.
5654 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
5656         * tbl/main.cc (process_format): Accept - as a synonym for the _
5657         key letter.
5659         * libbib/index.cc (minus_one): Don't declare as const.
5661 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
5663         * troff/input.cc (get_char_for_escape_name): Push back a newline.
5665 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
5667         * troff/input.cc (write_macro_request): New function.
5668         (init_input_requests): Bind write_macro_request to writem.
5670 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
5672         * tmac/tmac.s (@EN): Turn filling back on even if there was no
5673         equation.
5675         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
5677         * tmac/tmac.s (@TS): Renamed from TS.
5678         (TS): Call LP then TS again.
5679         (cov*ab-init): Alias @TS to TS.
5681         * tmac/tmac.s: Allow QP or RS to initialize.
5683         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
5684         Move initializations of PS and LL here.
5685         (par@init): Don't initialize HY.  Avoid changing environment 0.
5686         (par*env-init): Don't all par@reset.
5688 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
5690         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
5692 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
5694         * Makefile.in (MDEFINES): Add LDFLAGS.
5695         (LDFLAGS): Add definition line.
5697 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
5699         * troff/input.cc (get_optional_char): Split off error check into...
5700         (check_missing_character): New function.
5701         * troff/token.h: Declare it.
5702         * troff/env.cc (margin_character): Don't call get_optional_char.
5703         Only call tok.next() after making the node.
5705         * include/lib.h (getopt): Make 2nd argument char *const *.
5707 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
5709         * nroff/conftest.sh: Deleted.
5711 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
5713         * pic/make-dos-dist: Deleted.
5715 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
5717         * devps/psstrip.sed: Strip comments before stripping trailing
5718         white space.
5720 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
5722         * Version 1.09 released.
5724 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
5726         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
5728 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
5730         * libgroff/font.cc (font::load_desc): Fix typo in error message.
5732 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
5734         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
5735         about returning without a value.
5737         * troff/charinfo.h (charinfo::get_special_translation): Cast
5738         TRANSLATE_NONE to int.
5740         * refer/token.cc (lookup_token, store_token): Remove bogus loop
5741         test.  Fix test so that it works with n unsigned.
5743         * pic/pic.y (defaults_table): Fully bracket initializer.
5744         * pic/lex.cc (lookup_keyword): Likewise.
5745         * eqn/lex.cc (token_table, def_table): Likewise.
5746         * eqn/box.cc (param_table): Likewise.
5747         * troff/input.cc (warning_table): Likewise.
5748         * libgroff/font.cc (table): Likewise.
5749         * grops/ps.cc (ps_printer::special): Likewise.
5750         * grops/psrm.cc (resource_manager::process_file): Likewise.
5751         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
5752         * refer/command.cc (command_table): Likewise.
5753         * addftinfo/addftinfo.cc (param_table): Likewise.
5755         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
5756         about temp's being unused.
5757         (unused): New function.
5759         * groff/pipeline.cc: Declare c_fatal.
5761         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
5762         uchar.
5764         * libbib/index.cc (index_search_item::load): Prevent compiler
5765         warnings about fd_closer's being unused.
5766         (unused): New function.
5768 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
5770         * troff/input.cc (copy_mode_error): Make `prefix' static.
5771         Fix typo.
5773         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
5774         defined.
5775         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
5776         HAVE_CC_OSFCN_H and modify accordingly.
5778         * troff/input.cc (init_charset_table): radicalex overlaps
5779         horizontally.
5781         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
5782         udodo!hans@relay.NL.net).
5783         * groff/configure.in: Call it.
5785         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
5786         * groff/configure.in: Call it.
5787         * include/lib.h: Conditionalize declaration of pclose.
5789         * troff/div.cc (last_page_number): New global variable.
5790         (top_level_diversion::begin_page): Exit if we just printed the
5791         last page.
5792         * troff/div.h (last_page_number): Declare it.
5793         * troff/input.cc (parse_output_page_list): Set last_page_number.
5795         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
5796         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
5797         tmac/tmac.X: Likewise.
5798         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
5799         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
5801 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
5803         * tmac/doc-ditroff (hK): Remove groff specific code which
5804         prevented page-breaks between separate manual entries.  If this is
5805         the first page, don't set the page number to 1.
5807         * acgroff.m4 (GROFF_POSIX): New macro.
5808         * configure.in: Use it.
5810         * troff/node.cc (class real_output_file,
5811         real_output_file::real_output_file,
5812         real_output_file::~real_output_file): Conditionalize use of
5813         popen/pclose on POPEN_MISSING.
5814         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
5815         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
5816         (pipe_source): Similarily.
5818         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
5820         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
5821         presence of declarations by trying to compile example with
5822         conflicting declarations.  (gcc only gives a warning for missing
5823         declarations.)
5825 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
5827         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
5828         (from Ulrich Lauther).
5830 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
5832         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
5834 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
5836         * indxbib/indxbib.cc (write_hash_table): Add code for case where
5837         pointers and ints have different sizes.
5839 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
5841         * tmac/tmac.s (par*env-init): Call par@reset.
5843 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
5845         * tmac/tmac.s (@IP): Switch to a new environment when diverting
5846         tag.
5847         (par*push-tag-env, par*pop-tag-env): New macros.
5849 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
5851         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
5852         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
5854         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
5855         comment.  Include <time.h>.
5857 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
5859         * grops/ps.cc (is_small_h, is_small_v): Deleted.
5860         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
5861         lines.
5863 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
5865         * troff/input.cc (read_request): Only print a prompt if reading
5866         from the terminal.  Also clearerr on EOF if reading from the
5867         terminal.  Declare isatty.
5869 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
5871         * refer/label.y: Rename map_t to map_func and extractor_t to
5872         extractor_func.
5874 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
5876         * include/assert.h: Don't use volatile.
5877         * libgroff/assert.cc: Likewise.
5879 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
5881         * troff/input.cc (abort_request): Look at character in tok before
5882         calling get_copy().
5884 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
5886         * troff/troff.h (NO_RETURN): Deleted.
5887         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
5888         * troff/input.cc (exit_troff): Likewise
5890         * Makefile.in: Remove `Making ...' messages since GNU make now
5891         gives these. 
5893         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
5895 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
5897         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
5898         to constant 1 inch.
5900 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
5902         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
5904 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
5906         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
5907         MARK_REG if there was no left delimiter.
5909 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
5911         * pic/troff.cc (troff_output::text): Set line thickness to
5912         relative before outputting text.
5914         * tmac/tmac.e (@k): Don't zero ?T.
5915         ((z): Likewise.
5917 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
5919         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
5921 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
5923         * troff/input.cc (decode_args): Warn about unquoted tabs (from
5924         Paul Eggert).
5926 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
5928         * troff/input.cc (ignoring): New variable.
5929         (ignore): Set ignoring during call to do_define_macro.
5930         (do_define_macro): Clear ignoring before interpolating terminating
5931         macro.
5932         (copy_mode_error): New function.
5933         (get_char_for_escape_name, read_long_escape_name,
5934         interpolate_arg): Use copy_mode_error.
5935         (warning_table): Add WARN_IG.
5936         * troff/troff.h (WARN_IG): Declare.
5937         (WARN_TOTAL): Change accordingly.
5939         * groff/pipeline.c (strsignal): Rename to xstrsignal.
5940         * groff/groff.cc (strsignal): Delete declaration.
5942 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
5944         * troff/div.cc (page_offset): Use 'm' as default scaling.
5946 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
5948         * nroff/nroff.sh: Ignore -u.
5950 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
5952         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
5954 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
5956         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
5957         drawing box.
5958         (B2): With -Tascii, leave additional vertical space before
5959         and after. Ensure that the left and right indent is restored to
5960         what it was even if the point size changes.  Don't call
5961         par@finish. Change the indent, line length and title length
5962         directly.  With -Tascii, make the width of the box 1n less.
5963         (B1): Remember 1n at the current point size.  Don't call
5964         par@reset.  Change the indent, line length and title length
5965         directly.  Ensure that the temporary indent is preserved.
5966         (par*box-mark-top): Turn off no spacing mode.
5968 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
5970         * Makefile.in (dist): Use .gz suffix.
5972 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
5974         * troff/input.cc (main): Add return 0.
5975         * pic/main.cc (main): Use return instead of exit.
5976         * tbl/main.cc (main): Likewise.
5977         * eqn/main.cc (main): Likewise.
5978         * grops/ps.cc (main): Likewise.
5979         * grotty/tty.cc (main): Likewise.
5980         * groff/groff.cc (main): Likewise.
5981         * grodvi/dvi.cc (main): Likewise.
5982         * refer/refer.cc (main): Likewise.
5983         * indxbib/indxbib.cc (main): Likewise.
5984         * lkbib/lkbib.cc (main): Likewise.
5985         * soelim/soelim.cc (main): Likewise.
5986         * addftinfo/addftinfo.cc (main): Likewise.
5987         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
5988         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
5990         * troff/token.h (process_input_stack): Don't declare as static.
5991         * troff/input.cc: Likewise.
5993         * troff/node.c (invalidate_fontno): Make it a static member of
5994         class font_family.  Change callers.
5995         * troff/node.c: Change declaration.
5997         * tbl/main.cc (struct input_entry_format): Add explicit public
5998         specifier.
5999         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
6000         struct double_hline_stuff): Likewise.
6001         * tbl/table.h (struct entry_format): Likewise.
6002         * pic/object.h (struct saved_state): Likewise.
6004         * include/stringclass.h: Add forward declarations of friend
6005         functions that are later declared as inline.  Don't include inline
6006         specifier in friend declaration.
6008         * libgroff/lib.h: Declare popen and pclose.
6009         * acgroff.m4 (GROFF_POPEN): New macro.
6010         * configure.in: Call it.
6012         * include/lib.h (PI): New constant. Undef first if necessary.
6013         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
6014         * grops/ps.cc (degrees, radians): Likewise.
6015         * libgroff/font.cc (font::get_skew): Likewise.
6017         * grops/ps.cc (is_ascii): New function.
6018         (ps_output::put_string): Use is_ascii.  Use csprint rather than
6019         isprint.
6020         (ps_printer::define_encoding): Use csspace.
6021         * libgroff/strtol.c (ISASCII): New macro.
6022         (strtol): Cast arguments to is*() and tolower() to unsigned char.
6023         Use ISASCII rather than isascii.
6024         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
6025         * libgroff/cset.cc: Likewise.
6026         * libdriver/input.cc: Include cset.h.
6027         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
6028         than isdigit().
6030         * refer/refer.cc (main): Use %ld rather than %d for longs.
6032         * libbib/index.cc (index_search_item_iterator::get_tag): Use
6033         S_ISREG macro.
6035         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
6037 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
6039         * troff/input.cc (hyphenation_code): Skip white space between
6040         char/code pairs.
6042 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
6044         * tbl/table.h (table::entry_list_tailp): New member.
6045         (table::table): Initialize it.
6046         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
6047         behaviour.
6049 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
6051         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
6052         with negative horizontal positions. Remove casts of glyph::hpos to
6053         int.
6054         (USHRT_MAX): Delete definition.
6055         (SHRT_MAX, SHRT_MIN): New definitions.
6056         (glyph::hpos): Change type to short.
6057         (tty_printer::end_page): Output multiple backspaces if necessary.
6058          Remove casts of glyph::hpos to int.
6059         
6060 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
6062         * tmac/tmac.s (@RT): New definition.
6064 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
6066         * refer/refer.cc (do_file): Make sure current_filename is set when
6067         filename is "-".
6069         * pic/common.cc (common_output::dot_line): Handle zero length
6070         lines.
6072 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
6074         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
6075         (par@init): Initialize \n[HY].
6077 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
6079         * troff/dictionary.cc (dictionary::remove): Continue when
6080         r < j < i.
6082 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
6084         * Makefile.com (.y.cc): Avoid ending up with two versions of
6085         $(YTABH).
6087 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
6089         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
6090         (\(,C): Likewise.  Also fix typo.
6092 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
6094         * lib.h: Delete extraneous semi-colon.
6096         * Add pso request: `so' from a pipe.
6097         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
6098         (file_iterator::close): New function.
6099         (file_iterator::~file_iterator, file_iterator::next_file): Use
6100         file_iterator::close.
6101         (file_iterator::backtrace): Say `process' rather than `file' when
6102         the stream is popened.
6103         (pipe_source): New function.
6104         (init_input_requests): Bind ".pso" to pipe_source.
6106 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
6108         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
6110         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
6111         digits in lower case.
6113 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
6115         * Version 1.08 released.
6117         * Makefile.in (dist): Insert || true after ln -s commands that
6118         might fail.
6120         * mm: Update to mm 1.16.
6122         * acgroff.m4 (GROFF_CSH_HACK): New macro.
6123         * configure.in: Call GROFF_CSH_HACK.  Substitute for
6124         SH_SCRIPT_SED_CMD.
6125         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
6126         MDEFINES.
6127         * nroff/Makefile.sub (nroff): New target.
6128         (install_data): Install nroff.
6129         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
6130         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
6132 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
6134         * eqn/Makefile.sub (neqn): Add chmod +x.
6136         * grog/Makefile.sub (grog): Remove spurious semi-colon.
6138 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
6140         * troff/input.cc (string_iterator::string_iterator()): Initialize
6141         lineno and count.
6143 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
6145         * troff/div.cc (macro_diversion::space,
6146         top_level_diversion::space): Don't set high_water_mark.
6147         (macro_diversion::output, top_level_diversion::output): Don't
6148         include post line space in high water mark.
6150 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
6152         * eqn/eqn.y: Don't define YYDEBUG.
6153         * pic/pic.y: Likewise.
6155 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
6157         * tmac/tmac.e ([3): Add space after comma following editors.
6158         Change double spaces to single spaces.
6159         ([4): Change double spaces to single spaces.
6161         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
6162         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
6163         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
6164         after %!PS-Adobe- (for Newsprint).
6166         * troff/div.cc (top_level_diversion::begin_page): When
6167         before_first_page is 1, set page_number to 1.
6169 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
6171         * eqn/box.cc (box::top_level): Protect equation with \&.
6173 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
6175         * groff/groff.cc (possible_command::set_name): Delete old name.
6177         * groff/groff.cc (possible_command::~possible_command): Use
6178         a_delete.
6180         * troff/node.cc (troff_output_file::begun_page): New member.
6181         (troff_output_file::troff_output_file): Initialize it.
6182         (troff_output_file::really_begin_page): Only output V command if a
6183         page has been begun.
6185         * pic/pic.y (placeless_element): Delete argument to PRINT after
6186         use.
6188 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
6190         * Make wrapman work.
6191         * troff/div.h (class top_level_diversion): Replace
6192         first_page_begun by before_first_page (with opposite sense).
6193         * Change first_page_begun to before_first_page inverting sense.
6194         * troff/div.cc (class nl_reg): New class.
6195         (init_div_requests): Use class nl_reg for \n(nl.
6196         (top_level_diversion::begin_page): Don't call
6197         output_file::begin_page if before_first_page is 2;
6198         reset before_first_page afterwards.  If have_next_page_number is
6199         false, then always increment page_number.
6200         * tmac/tmac.an: Set traps within TH rather than at the top-level.
6201         Restore compatibility mode after loading, and then disable
6202         compatibility mode in TH.
6204 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
6206         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
6207         past last line.
6208         * troff/node.h (output_file::trailer): Declare.
6209         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
6210         * troff/node.cc (output_file::trailer): New function.
6211         (troff_output_file::~troff_output_file): Move most code into...
6212         (troff_output_file::trailer): New function.
6213         (class troff_output_file): Delete page_length member. Declare
6214         trailer().
6215         (troff_output_file::really_begin_page): Use current page length
6216         for final V command.
6218         * tbl/main.cc (struct options): New decimal_point_char member.
6219         (options::options): Initialize this.
6220         (process_options): Implement decimalpoint option.
6221         (process_data): Pass decimal_point_char option to table::table.
6222         * tbl/table.h (class table): New decimal_point_char member.
6223         (table::table): Add additional argument.
6224         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
6225         second argument specifying decimal point character.  Use this
6226         instead of '.'.
6227         (table::table): Initialize decimal_point_char.
6228         (table::add_entry): Change call to find_dot.
6230         * troff/input.cc (get_copy, token::next): Implement \V.
6231         (interpolate_environment_variable): New function.
6233 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
6235         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
6236         * pic/pic.y: Likewise.
6238         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
6239         Add casts to int.
6240         * refer/ref.cc (reference::insert_field, reference::delete_field):
6241         Likewise.
6242         * troff/number.cc (parse_term): Likewise.
6244         * acgroff.m4 (GROFF_PROG_YACC): New macro.
6245         * configure.in: Use GROFF_PROG_YACC.
6247         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
6248         and g++.
6249         * Makefile.in (OPTIMIZE): New define.
6250         (DEBUG): Empty by default.
6251         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
6253         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
6254         (GROFF_ARRAY_DELETE): Likewise.
6255         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
6257         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
6259         * devps/psstrip.sed: Use different delimiter on last line (so that
6260         it works with BSD 4.4 sed.)
6262 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
6264         * devps/psstrip.sed: Delete comments.
6266         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
6267         optind, opterr, optarg.
6268         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
6269         opterr, optarg.
6271 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
6273         * Makefile.in (check): Dummy target.
6275 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
6277         * Version 1.07 released.
6279         * Integrate mm 1.11.
6281         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
6282         where start_col was meant.
6284 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
6286         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
6288 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
6290         * troff/input.cc (token::next): Make \z\o'...' and similar things
6291         work.
6293         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
6294         constants.
6295         (environment): Add margin_character_flags member.
6296         * env.cc (environment::environment(symbol),
6297         environment::environment(const environment *): Initialize
6298         margin_character_flags.
6299         (margin_character): Rewrite.
6300         (environment::output_line): Add a margin character if
6301         margin_character_flags is non-zero.  Turn off the
6302         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
6303         zero, use margin_character_node without copying and then set
6304         margin_character_node to 0.
6306         * devps/DESC.in: Change minimum size to 1000.
6308 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
6310         * troff/symbol.h (symbol::hash): Change return type to unsigned
6311         long.
6312         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
6313         Add casts to int.
6315         * test-groff: Use -r rather than -x.
6317         * grops/psfig.diff: Include in distribution again.
6319 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
6321         * Makefile.in (dist): Use gzip.
6323 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
6325         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
6326         unistd.h as well as in stdlib.h.
6327         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
6328         defined; otherwise include <sys/types.h> and <unistd.h> if
6329         UNISTD_H_DECLARES_GETOPT is defined.
6331         * configure.in: use builtin(include, ... rather than include(...
6332         * configure: Regenerate with autoconf 1.3.
6334         * libdriver/print.cc (printer::adjust_arc_center): Use new
6335         algorithm suggested by Andy Fyfe.
6337         * libdriver/printer.cc (printer::adjust_arc_center): New function.
6338         * include/printer.h: Declare this.
6339         * grops/ps.cc (ps_printer::draw): Use it.
6340         * grodvi/dvi.cc (dvi_printer::draw): Use it.
6342 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
6344         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
6346 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
6348         * eqn/main.cc (main): Handle "eqn -".
6350 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
6352         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
6354         * mm: Integrate version 1.08.
6356         * pic/troff.cc (troff_output::finish_picture): Set
6357         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
6358         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
6359         if it's not defined. Check whether the register is non-zero rather
6360         than whether it's not defined.
6361         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
6363         * indxbib/indxbib.cc: Move all signal handling into...
6364         * indxbib/signal.c: New file.
6365         * configure.in: Call AC_RETSIGTYPE.
6367         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
6368         * configure.in: Call GROFF_STRUCT_EXCEPTION.
6369         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
6371         * troff/input.cc (token::token, token::operator=): Work round SGI
6372         C++ bug.
6373         * pic/object.cc (position::position): Likewise.
6375 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
6377         * pic/pic.h: Move declaration of hypot().
6379 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
6381         * pic/pic.h: Declare hypot().
6383         * pic/pic.h: Define M_PI if necessary.
6385 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
6387         * tmac/tmac.e (re): Add alternative version that doesn't use groff
6388         `.ta T' feature.
6390         * devps/prologue.ps (RE): Handle the possibility that the old font
6391         doesn't have a FontName entry.
6393 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
6395         * tmac/tmac.e (fam): Redefine to set family in environment 2.
6396         (@C): Use @fam not fam.
6398 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
6400         * lookbib/lookbib.cc (main): Change type of start to const char *.
6401         * lkbib/lkbib.cc (main): Likewise.
6403         * eqn/lex.cc (definition::definition): Don't use member
6404         initializer syntax for members of anonymous unions.
6406         * troff/input.cc (input_stack::backtrace): Change type of to const
6407         char *.
6409 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
6411         * include/stringclass.h (class string): Declare inline friend
6412         functions as inline in class declaration.
6413         * troff/hvunits.h (class hunits, class vunits): Likewise.
6414         * include/refid.h (class reference_id): Likewise
6415         * troff/troff.h (points_to_units(units), scale(units, double)):
6416         Delete declarations.
6417         * libdriver/input.cc (get_char): Delete declaration.
6418         * include/lib.h: Change 2nd argument of getopt from const char **
6419         to char **.
6420         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
6421         char **' before assigning to a `const char **'.
6422         * tbl/table.cc: Delete extra declarations of prints().
6424 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
6426         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
6427         char **' before assigning to a `const char **'.
6429         * libgroff/errarg.cc (errarg::errarg): Don't use member
6430         initializer syntax for members of anonymous unions.
6432 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
6434         * mm: Integrate version 1.07.
6436 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
6438         * troff/input.c (translate2): Rename to
6439         (translate_no_transparent).
6440         (init_input_requests): Rename tr2 to trnt.
6442 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
6444         * troff/charinfo.h (class charinfo): Add transparent_translate field.
6445         (charinfo::set_translation, charinfo::set_special_translation):
6446         Add second argument that specifies value for
6447         transparent_translate.
6448         (charinfo::get_translation, charinfo::get_special_translation):
6449         Add optional second argument that specifies whether translation is
6450         being used for transparent throughput.
6451         * troff/input.cc (charinfo::set_translation,
6452         charinfo::set_special_translation): Handle second argument.
6453         (charinfo::charinfo): Initialize transparent_translate.
6454         (translate): Split main part off into
6455         (do_translate): New function.  Pass argument saying whether
6456         translation applies to transparent throughput.
6457         (translate2): New request.
6458         (init_input_requests): Bind translate2 to `tr2'.
6460 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
6462         * tbl/table.h (class table): Add `nokeep' flag.
6463         * tbl/main.cc (process_options): Handle `nokeep' option.
6464         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
6465         table::do_bottom): Don't output keep/release macro definitions or
6466         calls when `nokeep' option has been specified.
6468 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
6470         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
6472 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
6474         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
6475         block_entry::divert, alphabetic_block_entry::divert): Add extra
6476         argument giving column separation.
6477         (table::compute_widths): Pass column separation to
6478         table_entry::divert().
6479         (block_entry::do_divert): If an entry spans multiple columns and a
6480         minimumum width has been specified for each column, then set the
6481         line length to the sum of the widths (plus possibly the column
6482         separations).
6484         * troff/input.cc (set_escape_char): Don't set the escape_char
6485         until after calling has_arg().
6487 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
6489         * tbl/table.cc (table::do_top): Add missing \s0 for double box
6490         case.
6492         * tbl/table.cc (table::print_double_hline): Avoid extra new line
6493         in case where r > nrows - 1.
6495         * tbl/table.cc (BODY_HEIGHT): Deleted.
6496         (LINE_SEP): New definition.
6497         (table::print_single_hline, table::print_double_hline,
6498         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
6499         table::do_row, table::do_top): Use LINE_SEP space before a line
6500         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
6502         * tbl/table.cc (text_entry::print_contents): New function.
6503         (text_string_name, right_text_string_name): Deleted.
6504         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
6505         (simple_text_entry::do_width, numeric_text_entry::do_width,
6506         alphabetic_text_entry::do_width): Don't store the contents of the
6507         entry in a string.
6508         (left_text_entry::simple_print, right_text_entry::simple_print,
6509         center_text_entry::simple_print,
6510         alphabetic_text_entry::simple_print,
6511         numeric_text_entry::simple_print): Print the entry directly
6512         instead of using the stored string.
6514 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
6516         * devps/Makefile: Strip PostScript files.
6517         * devps/prologue: Rename to...
6518         * devps/prologue.ps.
6519         * devps/psstrip.sed: New file.
6520         * devps/download: Use .pfa rather than .ps for installed versions
6521         of fonts.
6523 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
6525         * troff/env.cc (input_trap): Give a warning if the argument is out
6526         of range.
6528         * troff/env.cc (adjust): Treat negative argument as missing. Round
6529         argument > 5 down to 5.
6531         * troff/env.cc (center, right_justify): Make negative argument zero.
6533         * troff/div.cc (page_offset, vertical_position_traps): Treat
6534         invalid argument as missing.
6535         * troff/env.cc (line_spacing, line_length, title_length, indent,
6536         underline, hyphen_line_max_request, control_char,
6537         no_break_control_char, widow_control_request, adjust, input_trap,
6538         point_size): Likewise.
6539         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
6540         constant_space): Likewise.
6541         * troff/input.cc (compatible, shift, warn_request,
6542         set_escape_char): Likewise.
6544         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
6545         * tbl/table.cc (table::table): Likewise.
6547         * Makefile.dev (install_dev): depends on $(DEVFILES).
6549 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
6551         * devX75, devX75-12, devX100, devX100-12: New directories.
6552         * Makefile.in: Add these to DEVDIRS.
6554         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
6555         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
6556         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
6557         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
6558         targets.
6559         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
6560         (uninstall): New target.
6561         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
6562         uninstall_prog, uninstall_dev): New targets.
6564         * troff/div.cc (return_request): Treat an invalid argument as
6565         missing.
6567 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
6569         * tmac/tmac.e ((f): Set up the environment even when there's a
6570         current diversion.  Transperently throughput a call to @N.
6571         (@N): New macro.
6573 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
6575         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
6576         up to vertical resolution.
6578         * tbl/table.cc (table::do_row): Change row number after printing
6579         stuff list.
6581         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
6583 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
6585         * Rename CHANGES to NEWS.
6587 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
6589         * libgroff/new.cc (operator new): Avoid calling malloc(0).
6591 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
6593         * man.ultrix: Removed.
6595 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
6597         * Makefile.comm (extraclean): Delete files whose names begin with
6598         `='.
6600         * pic/troff.cc (troff_output::text): Fix typo in implementation of
6601         aligned text.
6603 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
6605         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
6606         * troff/div.cc (page_length, need_space, space_request): Treat
6607         invalid optional argument as missing.
6608         * troff/env.cc (number_lines): If the first argument is present
6609         but not a number, turn on line numbering, don't change the next
6610         line number and parse the remaining arguments.
6612         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
6614 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
6616         * eqn/box.h: Change declaration accordingly.
6617         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
6618         the specified size was bad but don't give an error.  Check for
6619         overflow.
6620         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
6621         * eqn/lex (do_size): Likewise.
6623 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
6625         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
6626         compatible headers.
6628 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
6630         * tbl/table.cc (table::init_output): Improve error message when
6631         table won't fit on one page.
6633 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
6635         * pic/troff.cc (troff_output::start_picture): Generate line
6636         containing a horizontal motion equal to the width of the picture.
6638         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
6639         using GROFF_COMMAND_PREFIX environment variable.
6641 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
6643         * mdate.sh: Use $NF rather than $(NF).
6645 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
6647         * pic/main.cc (main):  Use %1 not %c in argument to warning.
6649         * eqn/main.cc (main): Output code to check that geqn was given the
6650         correct -T option.
6652 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
6654         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
6655         `ln -s ../Makefile .; make; rm -f Makefile'.
6657         * troff/hyphen: Rename to...
6658         * troff/hyphen.us:
6659         * troff/input.cc (main): Delete -H option. Don't call
6660         read_hyphen_file().
6661         * troff/env.cc: Include searchpath.h and macropath.h.
6662         (exception_dictionary): Deleted.
6663         (ht): Deleted.
6664         (read_hyphen_file): Deleted.
6665         (hyphenation_language): New struct.
6666         (class trie, class hyphen_trie): Move declarations up.
6667         (trie_node::~trie_node): Deleted.
6668         (trie::delete_trie_node): New function.
6669         (trie::do_delete): New pure virtual function.
6670         (hyphen_trie::do_delete): New function.
6671         (trie::~trie): New function.
6672         (hyphen_trie::~hyphen_trie): New function.
6673         (trie::clear): No need to chcek that tp is not 0.
6674         (current_language, language_dictionary): New variables.
6675         (hyphen_word): Give an error if no current language.  Use
6676         exceptions dictionary in current language.
6677         (hyphen_trie::read_patterns_file): Find file using macro_path.
6678         Allow comments (starting with %) in patterns file.  Don't make it
6679         a fatal error if the file can't be found.
6680         (hyphenate): Return if no current language.  Get the exceptions
6681         dictionary and the hyphenation patterns from the current language.
6682         (set_hyphenation_language): New variable.
6683         (hyphenation_patterns_file): New function.
6684         (hyphenation_language_reg): New class.
6685         (hyphenation_language_reg::get_string): New function.
6686         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
6687         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
6688         register.
6689         * groff/groff.cc (main, help, synopsis): Delete -H option.
6690         * include/Makefile.sub: Don't define HYPHENFILE.
6691         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
6692         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
6693         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
6694         hyphenation patterns.
6696 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
6698         * eqn/neqn.sh: New file.
6699         * eqn/Makefile.sub: Handle neqn.sh.
6701         * eqn/eqn.h: Declare `nroff' variable.
6702         * eqn/box.cc (param_table): Add `nroff' param.
6703         (nroff): Define it.
6704         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
6705         variable.
6706         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
6708         * troff/troff.h (WARN_FONT): New warning.
6709         (WARN_TOTAL): Change accordingly.
6710         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
6711         (warning_table): Add WARN_FONT.
6712         * troff/node.cc (mount_font_no_translate): Pass argument to
6713         font::load_font.  If this is non-zero, give a warning.
6714         Don't give an error message when accessing a font that has already
6715         been found to be invalid.
6716         * include/font.h (font::load, font::load_font): Add additional
6717         optional argument which suppresses error message if the font is
6718         not found.
6719         * libgroff/font.cc (font::load_font): Handle additional argument.
6720         (font::load): Add additional argument. If this is non-null, set it
6721         to 1 and don't give error message.
6723         * include/printer.h (printer::end_page): Add argument giving
6724         length of page.
6725         * libdriver/input.cc (do_file): Pass this.
6726         * grops/ps.cc (ps_printer::end_page): Add argument.
6727         * grodvi/dvi.cc (dvi_printer::end_page,
6728         draw_dvi_printer::end_page): Add argument.
6729         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
6730         columns_per_page members. New member nlines.
6731         (DEFAULT_LINES_PER_PAGE): Deleted.
6732         (tty_printer::tty_printer): Don't compute lines_per_page from
6733         font::paperlength. Don't compute columns_per_page from
6734         font::paperwidth.
6735         (tty_printer::add_char): Don't check horizontal position against
6736         columns_per_page. Grow glyphs vector if neccessary.
6737         (tty_printer::end_page): Add argument giving page_length in units.
6738         Discard lines past end of page.
6740 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
6742         * tmac/tmac.tty-char: Fix definition of \(/l.
6744         * tmac/tmac.X: Define \(en.
6746 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
6748         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
6749         lpq, then use lp rather than lpr.
6751         * tmac/tmac.s (par@reset): Don't call `ad'.
6752         (par*env-init): Call `ad'.
6754 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
6756         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
6757         date.
6759         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
6760         * indxbib/indxbib.cc: Likewise.
6762 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
6764         * libgroff/putenv.c: New file.
6765         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
6766         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
6767         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
6768         stdlib.h with AC_HAVE_HEADERS.
6770 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
6772         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
6773         does not exist.
6775 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
6777         * eqn/box.cc (gsize): Make it an int.
6778         (set_gsize): Parse argument handling increment or decrement.
6779         (box::top_level): Convert gsize to a string.
6781         * troff/input.cc (exit_troff): Make buf unsigned char [].
6782         Call to make_temp_iterator casts buf to char*.
6784         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
6786         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
6787         * Makefile.cpg (depend.temp): Likewise.
6789         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
6791         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
6793 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
6795         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
6797 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
6799         * Version 1.06 released.
6801         * Integrate mm 1.04.
6803 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
6805         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
6807 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
6809         * afmtodit/afmtodit.pl: Add -n option that disables generation of
6810         ligatures command.
6811         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
6812         afmtodit. Regenerate.
6814         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
6815         @f back past the current position.
6817         * tmac/tmac.e: Change calls to @R so that comments are not part of
6818         arguments.
6820 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
6822         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
6824         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
6825         check that we can link a call to a function declared in <stdio.h>.
6826         (GROFF_UNISTD_H): New macro.
6827         * configure.in: Call it.
6828         * Makefile.in: Document it.
6829         * include/posix.h: New file.
6830         * troff/troff.h: Don't include <osfcn.h>
6831         * troff/input.cc: Include posix.h.
6832         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
6833         osfcn.h.
6834         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
6835         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
6836         <fcntl.h>.
6837         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
6838         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
6839         * libbib/search.cc (O_RDONLY): Delete definition.
6840         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
6841         Don't include <osfcn.h>.
6843         * acgroff.m4 (GROFF_TIME_T): New macro.
6844         * configure.in: Call it.
6845         * Makefile.in: Document it.
6847         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
6848         * configure.in: Call it.
6849         * Makefile.in: Document -DTRADITIONAL_CPP.
6850         * include/ptable.h: Don't include generic.h.
6851         (name2): Define it.
6853         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
6854         Afterwards remove [T1 and [T2.
6855         (ref*spec!0, ref*spec!2): Use T1 rather than T.
6856         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
6857         (ref*add-T2): Renamed from ref*add-T.
6858         (ref*add-T1): New macro.
6860 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
6862         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
6864         * libbib/index.cc: Include <fcntl.h>.
6865         (O_RDONLY): Define if necessary.
6866         (make_index_search_item, index_search_item_iterator::get_tag,
6867         index_search_item::check_files): Use O_RDONLY.
6868         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
6869         (O_RDONLY): Define if necessary.
6870         (search_list::add_file): Use O_RDONLY.
6871         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
6872         <sys/stat.h>.
6873         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
6874         (main): Use these.
6876         * libbib/index.cc (S_ISREG): Define it if necessary.
6877         (index_search_item::load): Use S_ISREG.
6879         * include/driver.h: Include <errno.h>.
6881 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
6883         * eqn/box.cc (body_height): Increase default value to 85.
6884         (body_depth): Increase default value to 35.
6886 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
6888         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
6889         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
6890         protected from expansion with \E.
6892         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
6894         * Makefile (Makefile): New target.
6896         * Makefile.sub (configure, distfiles): New targets.
6898         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
6899         construct.
6901 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
6903         * eqn/box.cc (param_table): Add body_height and body_depth.
6905         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
6907 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
6909         * psbb/Makefile.sub: Don't link with libgroff.a.
6911         * acgroff.m4 (GROFF_PUTENV): New macro.
6912         * configure.in: Call GROFF_PUTENV.
6913         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
6914         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
6915         is defined.
6917         * troff/env.cc (distribute_space): Rename force_forward argument
6918         to force_reverse.  Reverse the list if force_reverse is true.
6920 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
6922         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
6924         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
6925         height or depth to be negative.  Guard against SUP_RAISE quantity
6926         being negative.
6928 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
6930         * devps/generate/textmap: Add `an' (arrowhorizex).
6931         * tmac/tmac.ps: \(an overlaps horizontally.
6932         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
6934         * devps/symbolchars: Add arrowverttp, arrowvertbt.
6935         * devps/textmap: Add arrowvertex.
6936         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
6937         updownarrow delimiters.
6938         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
6940         * tbl/table.cc (simple_entry::position_vertically,
6941         block_entry::position_vertically):  For a centered entry, perform
6942         the motion in two stages.
6944         * refer/refer.cc (split_punct): Don't call lookup_token if there
6945         is no token.
6947 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
6949         * troff/input.cc (token::next): Delete token_node after copying
6950         token.
6952         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
6953         cur_point_size.
6955         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
6957         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
6959 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
6961         * grops/ps.cc (usage): -b option takes an argument.
6963         * devps/prologue (PLG): New procedure.
6964         * grops/ps.cc (main, usage): New -g option.
6965         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
6966         length using PLG.
6968 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
6970         * include/cset.h: Include <limits.h> if we have it.
6972         * libgroff/illegal.cc: New file.
6973         * include/lib.h (illegal_input_char): Use table.
6974         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
6975         * pic/lex.cc (ARG1): Renumber to 14.
6976         * eqn/lex.cc (ARG1: Likewise.
6978         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
6979         (eg 1.05.90) correctly.
6981 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
6983         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
6984         Rename $r and $R registers to $v and $V.
6985         ($r, $R): Initialize to 0.
6986         (@v, @V): New macros.
6987         (sz): Call @v.
6988         (@M): Call @V.
6990         * troff/input.cc (main, usage): Add -R option that says not to
6991         load troffrc.
6992         * eqn/main.cc (main, usage): Rename -n to -R.
6994 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
6996         * devps/DESC.in: Leave font positions 5-9 blank.
6997         * devdvi/DESC.in: Likewise.
6999         * grog/grog.pl: Handle `.PS <file' correctly.
7001         * troff/input.cc (input_stack::push): Improve error message when
7002         input stack limit exceeded.
7004 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
7006         * refer/refer.cc (main): Fix typo in handling of `a' option.
7008         * refer/refer.cc (do_bib): In state START after a newline remain
7009         in state START.
7011         * groff/groff.sh: Deleted.
7012         * groff/Makefile.sub: Delete handling of groff.sh.
7014         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
7015         to determine whether to use \X'ps:...'.
7016         * tmac/troffrc: Set 0p register to 0.
7017         * tmac/tmac.ps: Set 0p register to 1.
7019         * groff/groff.cc: Support -X option. Give warning for -TXps and
7020         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
7021         * tmac/troffrc: Support -r.X=1.
7023         * pic/troff.cc (troff_output::dot): Don't test
7024         zero_length_line_flag.
7026 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
7028         * include/lib.h: Declare getopt() and friends unless
7029         STDLIB_H_DECLARES_GETOPT is defined.
7031         * doc/chars.tr: Delete.
7032         * man/groff_char.man: New file.
7034 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
7036         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
7037         user has changed register format.
7039 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
7041         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
7042         `postpro' command in DESC file.  Get spooler command from `print'
7043         command in DESC file.  Execute spooler command with /bin/sh.
7045         * groff/groff.cc: Split Unix-specific parts into...
7046         * groff/pipeline.c: New file.
7048         * LICENSE: Delete.
7049         * COPYING: New file.
7050         * all files: Update copyright notices.
7052         * Rearrange files.  Redo Makefiles.  Use autoconf.
7054 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
7056         * troff/input.c (charinfo_to_node_list): Interpret character
7057         definition with escape_char of `\'.
7059 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
7061         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
7062         Define INT_DIGITS as big enough for 64-bit integer.
7063         * lib/strtol.c: Don't include lib.h.
7064         * lib/lib.h: Delete ifdef __cplusplus stuff.
7066 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
7068         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
7069         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
7070         get DESC from current directory.
7072 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
7074         * tbl/main.c (main): Always reset the line number when reading
7075         from stdin.
7077         * tbl/table.c (table::print_single_hline, table::print_double_hline,
7078         table::define_bottom_macro, table::do_row, table::do_top): Round
7079         vertical spacing up to vertical resolution.
7081 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
7083         * ps/ps.h (enum resource_type): Avoid comma at end of
7084         enumerator-list.
7085         * dvi/dvi.c (class dvi_printer): Likewise.
7086         * dvi/tfmtodit.c (gf::load): Likewise.
7087         * refer/label.y (struct expression): Likewise.
7088         * refer/refer.c (class label_processing_state): Likewise.
7089         * refer/indxbib.c (do_file): Likewise.
7090         * troff/troff.c (enum warning_type): Likewise.
7091         * tbl/main.c (process_data): Likewise.
7092         * troff/charinfo.h (class charinfo):
7094 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
7096         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
7098 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
7100         * groff.c: Move to new groff subdirectory.
7101         * groff/Makefile: New file.
7102         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
7104         * man/mdate.sh: Use ls -L if supported.
7106         * Consolidate all header files produced by gendef into lib/defs.h.
7107         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
7108         Don't include path.h.
7109         * lib/Makefile (path.h): Don't generate.
7110         * troff/input.c: Include defs.h. Don't include config.h.
7111         * troff/Makefile (config.h): Don't generate.
7112         * refer/index.h: Don't include suffix.h.
7113         * refer/index.c: Include defs.h.
7114         * refer/indxbib.c: Include defs.h.
7115         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
7116         defs.h.
7117         * refer/Makefile (suffix.h, path.h): Don't generate.
7118         * groff.c: Don't include config.h. Include defs.h.
7119         * Makefile (config.h): Don't generate.
7120         (lib/defs.h): Generate.
7121         (topclean): Remove lib/defs.h.
7123 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
7125         * lib/malloc.c, lib/getpagesize.h: Deleted.
7126         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
7127         related stuff.
7128         * lib/Makefile: Delete malloc-related stuff.
7129         * lib/new.c: Workaround COOKIE_BUG if necessary.
7131         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
7132         needed header files directly.
7133         * refer/refer.h: Omit definition of DEFAULT_INDEX.
7134         * Makefile: Include definition of DEFAULT_INDEX in path.h.
7136 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
7138         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
7139         argument.
7140         * lib/font (font::load_desc, font::load): Don't split argument of
7141         unknown command.
7142         (font::handle_unknown_font_command): Change type.
7143         * ps/ps.c (ps_font::handle_unknown_font_command,
7144         handle_unknown_desc_command): Change type.
7145         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
7147 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
7149         * lib/font.h (font::handle_unknown_font_command): Add file and
7150         line arguments.
7151         * lib/font.c (font::handle_unknown_font_command):
7152         * ps/ps.c (ps_font::handle_unknown_font_command):
7153         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
7154         lineno arguments.  Use _with_file_and_line functions for error
7155         reporting.
7157         * lib/fontfile.c (font::unknown_desc_command_handler): New static
7158         data member.
7159         * lib/font.c (font::set_unknown_desc_command_handler): New
7160         function.
7161         (font::load_desc): For unknown commands, call
7162         unknown_desc_command_handler if not null.
7163         * lib/font.h (class font): Declare them.
7164         (FONT_COMMAND_HANDLER): New typedef.
7165         * ps/ps.c (handle_unknown_desc_command): New function.
7166         (main): Set bflag if we had a -b option. Call
7167         font::set_unknown_desc_command_handler.
7168         (broken.h): Don't include.
7169         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
7170         submake 
7171         * ps/devps/Makefile: Add `broken' command to DESC file using
7172         BROKEN_SPOOLER_FLAGS.
7174         * macros/tmac.e ([, ]): Add as synonyms for { and }.
7176         * macros/tmac.e ($p): Only exdent if \$3 > 0.
7178         * macros/tmac.e (@R, @S): New macros.
7179         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
7180         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
7181         Declare $H, $[0-9], .. macros with @S.
7182         Declare |0, |1, |2, |3 strings with @S.
7184         * macros/tmac.e (@S): Rename to @U.
7186         * macros/tmac.e (@z): Define @b and bp as empty instead of
7187         deleting them,
7189         * macros/tmac.e (@m): Deleted.
7190         (@h): Don't call @m.
7191         (@z): Don't set @m trap.
7193         * macros/tmac.e ($h, $f): Define |z as empty string.
7195         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
7196         (@q): Likewise.
7198         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
7199         removing them.
7200         ()f): Likewise for * register.
7202         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
7203         argument is missing, don't change $R.  Call sr with three
7204         arguments when initializing.
7206 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
7208         * macros/tmac.e (sr): New macro.
7209         Initialize $r and $R using sr.
7211         * macros/tmac.e (,): Delete \*(#[.
7213         * troff/env.c (set_tabs): Read the tab type even if the position
7214         is bad.  Allow the position of the first tab stop to be negative.
7216 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
7218         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
7219         _POSIX_VERSION.
7220         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
7221         rather than -DPATHCONF_MISSING.
7222         * Makefile: Get rid of PATHCONF_MISSING.
7224         * refer/map.c: New file.
7225         * refer/index.c: Interface to mmap through map.c.  Rename map_size
7226         to map_len.
7227         * refer/Makefile: Handle map.c.
7228         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
7230 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
7232         * Makefile: RANLIB should be `true' if there is no ranlib.
7233         * lib/Makefile (libgroff.a): Simplify.
7234         * driver/Makefile (libdriver.a): Simplify.
7236         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
7237         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
7238         defined.
7240 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
7242         * troff/env.c (compare_ranges): Declare as extern "C".
7244         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
7246         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
7248 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
7250         * pic/troff.c (troff_output::text): Merge in grops_output::text,
7251         but conditionalize use of \X based on \*(.T.
7252         (grops_output::*): Deleted.
7253         * pic/output.h: Delete declaration of make_grops_output.
7254         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
7255         by default. -n sets it to 0.
7256         (usage): Corresponding changes.
7257         * groff.c (main): Don't pass -x or -p to pic.
7258         * groff.sh: Likewise.
7260         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
7261         to be non-zero.
7263         * ps/devps/afmtodit: Change calculation of asc_boundary and
7264         desc_boundary.  Make these bounds inclusive.
7265         * ps/devps: Regenerate font files.
7267 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
7269         * macros/tmac.latin1: New file.
7270         * macros/tmac.tty-char: Use tmac.latin1.
7271         (tmac.tty-tr): Deleted.
7272         * macros/Makefile: Install tmac.latin1.
7273         * macros/tmac.dvi: Use tmac.latin1.
7274         * macros/troffrc: Translate \[char160] onto no-break space here.
7275         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
7277 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
7279         * macros/tmac.Xps: Use `do' request.
7281         * macros/tmac.ps: Use `do' request.
7283         * macros/tmac.e (@C): Use `do' request.
7285         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
7286         * macros/Makefile: Install tmac.X*.
7288         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
7289         * tty/Makefile: Don't install tmac.tty*.
7290         * macros/Makefile: Install tmac.tty*.
7292         * dvi/tmac.dvi: Move to macros.
7293         * dvi/Makefile: Don't install tmac.dvi.
7294         * macros/Makefile: Install tmac.dvi.
7296         * ps/tmac.ps*: Move to macros.
7297         * ps/Makefile: Don't install tmac.ps*.
7298         * macros/Makefile: Install tmac.ps*.
7300         * eqn/box.c: Provide draw_lines parameter corresponding to -D
7301         option.
7302         * macros/eqnrc: Set draw_lines parameter based on device.
7303         * groff.c: Don't pass -D flag to eqn.
7304         * groff.sh: Likewise.
7305         * eqn/main.c: Warn about use of -D.
7307         * troff/input.c (process_startup_file): New function.
7308         (main): Call process_startup_file().
7309         * macros/troffrc: New file.
7310         * macros/Makefile: Install troffrc.
7311         * groff.c (main): Don't pass extra -m option to troff. For a 
7312         pseudo device pass the name of the pseudo device to troff using
7313         -d.
7314         * groff.sh: Likewise.
7315         * groff.c (possible_command::prepend_arg): Deleted.
7317         * troff/input.c (do_request): New function.
7318         (init_input_requests): Bind "do" to do_request.
7320         * eqn/main.c (main): Instead of loading eqnchar from device directory,
7321         load eqnrc from macro directory.
7322         * macros/eqnrc: New file.
7323         * macros/Makefile: Install eqnrc.
7324         * ps/devps/eqnchar: Deleted.
7325         * ps/devps/Makefile: Don't install eqnchar.
7326         * dvi/devdvi/eqnchar: Deleted.
7327         * dvi/devdvi/Makefile: Don't install eqnchar.
7328         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
7329         variable optM.
7331         * lib/device.[ch]: New files.
7332         * lib/font.h (font::set_device_name, font::get_device_name):
7333         Deleted.
7334         * lib/fontfile.c: Use device.h.
7335         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
7336         * troff/input.c: Delete definition of `device'.
7337         (main): Don't initialize device.
7338         * troff/troff.h: Include device.h rather than declaring device.
7339         * troff/Makefile: No need to handle DEVICE.
7340         * driver/input.c: Include device.h. Don't use
7341         font::{set,get}_device_name.
7342         * groff.c, Makefile: Rename device.h to config.h.
7343         * groff.c: Use library device variable.
7344         * eqn/main.c: Use library device variable.
7345         * eqn/Makefile: No need to handle DEVICE.
7347         * lib/searchpath.[ch]: New files.
7348         * lib/Makefile: Handle searchpath.[ch].
7349         * troff/input.c (open_file, init_dirs): Deleted.
7350         (macro_dirs): Deleted.
7351         (open_mac_file, macro_source): Use class search_path.
7352         (add_string, struct string_list): Move definition.
7353         (main): Change -M option to use macro_path. Delete call to
7354         init_dirs().
7355         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
7356         Rewrite to use class search_path.
7357         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
7358         * lib/Makefile: fontfile.c depends on searchpath.h.
7359         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
7360         MACROPATH.
7361         * lib/macropath.[ch]: New files.
7362         * troff/Makefile: No need to handle MACROPATH.
7364         * troff/input.c: Delete DUMP code.
7365         * lib/fontfile.c, lib/font.h: Delete
7366         font::forget_command_line_font_dirs.
7368         * troff/input.c (push_token): New function.
7369         (handle_first_page_transition): Use push_token().
7370         (process_input_stack): Change handling of a space at the beginning
7371         of the line.
7373 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
7375         * troff/input.c (font_dirs): Delete unused variable.
7377         * eqn/lex.c (do_set): Correct error messages.
7379 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
7381         * troff/input.c (do_define_string): Allow the string name to be
7382         followed immediately by a tab.
7383         (define_character): Likewise.
7385 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
7387         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
7388         be negative.
7390         * troff/input.c (input_iterator::is_file): New virtual function.
7391         (file_iterator::is_file): New function.
7392         (input_stack::end_file): New function.
7393         (input_stack::next_file): Handle the situation where there is no
7394         file on the input stack correctly.  Avoid making two passes over
7395         the input stack.
7396         (next_file): Make the filename optional; in this case call
7397         input_stack::end_file().
7399 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
7401         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
7402         produce a real _ charater when the current font is CW and _
7403         otherwise.
7405         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
7406         expression to work around gcc 2.2 bug.
7408 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
7410         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
7412         * troff/env.c (environment::add_padding): New function.
7413         (environment::add_char): Use add_padding().
7414         (environment::space): Likewise.
7415         (environment::wrap_up_field): Add some padding if there is none
7416         and there's no current tab.
7417         * troff/env.h: Declare environment::add_padding.
7419 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
7421         * pic/pic.y: undef fmod and rand before declaring them.
7423 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
7425         * troff/input.c (main): If the DESC file specifies a font name of
7426         0, then leave the corresponding font position empty.
7428         * nroff.sh: New file.
7429         * Makefile (install.nobin): Install nroff.sh.
7431         * tty/devlatin1/R.proto: Add ao as synonym for de.
7432         * tty/tmac.tty-char: Define ao as o.
7434         * tty/dev{ascii,latin1}/R.proto: Add aq.
7435         * tty/tmac.tty-char: Delete definition of aq.
7437 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
7439         * troff/input.c (init_charset_table): Don't translate 0240.
7440         * ps/tmac.ps: Translate char160 to space.
7441         * dvi/tmac.dvi: Likewise.
7442         * tty/tmac.tty: Likewise.
7444 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
7446         * dvi/tmac.dvi: Add support for all Latin-1 characters.
7448         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
7449         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
7450         \(oe, \(r?, \(r!.
7452         * tty/tmac.tty-char: Add \(ah.
7454         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
7455         No need to define \(FM and \(!/. Conditionalize all character
7456         definitions.
7458         * ps/devps/lgreekmap: Add +h, +f, +p.
7460         * ps/tmac.psnew: New file.
7461         * ps/Makefile: Install tmac.psnew.
7463         * troff/input.c (charinfo_to_node_list): Don't ever interpret
7464         character definitions in compatible mode.
7466         * troff/input.c (remove_character): New function.
7467         (init_input_requests): Bind remove_character to "rchar".
7469         * ps/tmac.psold: New file.
7470         * ps/Makefile: Install tmac.psold.
7471         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
7472         characters into tmac.psold.  Make these definitions unconditional.
7474         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
7476         * ps/tmac.ps: Don't define \('c and \('C.
7478         * ps/devps/textmap: Move Greek characters to...
7479         * ps/devps/symbolchars:
7481 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
7483         * ps/devps/text.enc: Add quotesingle.
7484         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
7485         * tty/tmac.tty-char: Likewise.
7486         * dvi/devdvi/texmi.map: Add +h, +f, +p.
7487         * dvi/devdvi/texi.map: Add Fn.
7488         * dvi/devdvi/msam.map: Add lz.
7489         * dvi/tmac.dvi: Handle Bq, bq, aq.
7491         * pic/lex.c (get_token): Recognize 'th.
7492         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
7494 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
7496         * ps/devps/textmap: Move di, mu, +- to...
7497         * ps/devps/symbolchars:
7499         * macros/tmac.s (@XS): Don't call par@reset or fi.
7500         (XA): Call LP. Turn off adjustment. Reduce line length.
7502         * macros/tmac.s: Initially alias XS to LP.
7503         (XS): Rename to @XS.
7504         (cov*ab-init): Alias XS to @XS.
7506 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
7508         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
7509         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
7510         (token::is_size, token::changes_env): Deleted.
7511         * troff/number.c (parse_term): No need to process \s explicitly.
7512         Call tok.next() only after scale indicator has been processed.
7513         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
7514         \f etc explicitly.
7515         (token::next): Handle \s, \f, \S, \H immediately rather than
7516         returning them as tokens.
7517         (token::operator==, token::description, token::add_to_node_list,
7518         token::process): Remove handling of deleted tokens.
7520         * troff/env.c (environment::add_char): When adding padding
7521         indicator character, call start_line() if necessary.
7523 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
7525         * ps/devps/afmtodit: Don't output 0 kerns.
7527         * ps/devps/afmtodit: Remove directory from name of encoding in
7528         font description file.
7530         * ps/devps/afmtodit: Improve error messages.
7532         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
7534         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
7535         * ps/devps/FontMakefile: Deleted.
7536         * ps/devps/afmname: New file.
7538         * ps/devps/symbol.sed: New file.
7539         * ps/devps/symbol.diff: Deleted.
7540         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
7541         Generate zapfdr.afm from zapfd.afm.
7543         * tty/tmac.tty (tty-char): Prefix definition with ".
7545         * macros/tmac.an (TP): Don't start a diversion if one has already
7546         been started.
7548         * tty/tmac.tty-char: Add Latin-1 characters.
7550         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
7552 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
7554         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
7555         Move declaration of struct horizontal_span.
7557         * tbl/table.c (table::table): Initialize span_list.
7558         (table::~table): Delete span_list.
7560         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
7562         * ps/devps/Makefile: Avoid dependency on GNU make.
7564         * ps/tmac.ps: Check that character does not already exist before
7565         defining it.
7567         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
7568         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
7569         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
7570         files.
7572         * tty/tmac.tty-char: New file.
7573         * tty/Makefile: Install tmac.tty-char.
7574         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
7575         tmac.tty-char.
7577         * tty/tmac.tty: Fix definition of \(34.
7579         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
7580         bracket-drawing characters onto |. Add *o.
7582         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
7583         only if current_field.
7585         * troff/dictionary.c (dictionary::lookup): Free old_table after
7586         rehashing. 
7588 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
7590         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
7591         whose glyphs are identical to glyphs of some Roman character.
7593         * tty/devlatin1/R.proto (bu): Deleted.
7594         * tty/devascii/R.proto (bu): Deleted.
7595         * tty/tmac.tty: Add definition of \(bu.
7597         * eqn/main.c (do_file): Pass FILE as argument.
7598         (main): Automatically load eqnchar.  New options -F and -n.
7599         Pass do_file an opened FILE.
7600         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
7601         No need to include font.h.
7602         * groff.sh: Likewise.  Don't need to use - for standard input.
7603         Prefix files with -- if first file starts with -.
7605         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
7607         * troff/env.c (environment::possibly_break_line): Don't set line
7608         to 0 across call to output_line().  Don't call output_line() until
7609         after discarding nodes after break.
7611 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
7613         * request.h (macro::empty): Declare it.
7614         * input.c (macro::empty): New method.
7615         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
7616         macro is empty.
7618 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
7620         * troff/env.c (environment::start_field): Decrement space_total
7621         when a space is frozen.
7623 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
7625         * macros/tmac.an (R): Delete macro.
7627         * troff/input.c (get_copy, token::next): Support \# (like \" but
7628         newline is ignored).
7630         * troff/input.c (token::next): Fix error message in 'Y' case.
7632 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
7634         * eqn/delim.c (define_extensible_string): Recognize any prefix of
7635         a delimiter name.
7637 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
7639         * c++test.c: Include <osfcn.h>.
7641         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
7642         <errno.h> doesn't.
7644 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
7646         * tbl/table.c (table::divide_span): Don't count column separation
7647         if expand was specified.
7649         * tbl/main.c (process_format): Don't ignore width specs in
7650         continued format.  Give warning for changing equal widths or
7651         column separation in continued format.
7652         (process_data): Set column separation, minimum width, equal
7653         columns at end of table.
7655 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
7657         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
7658         node::add_discretionary_hyphen): Use soft_hyphen_char.
7659         (set_soft_hyphen_char): New function.
7660         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
7662         * Makefile (c++tested): Give more helpful message if test fails.
7664 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
7666         * troff/input.c (init_charset_table): Translate 0240 to
7667         an unbreakable space.
7669         * troff/token.h (token::hyphen_indicator): New function.
7670         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
7671         translation.
7672         * troff/input.c (translate): Allow translation to \%.
7673         * troff/node.c (node::add_char): Handle
7674         TRANSLATE_HYPHEN_INDICATOR.     
7675         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
7677         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
7678         for \(hy.
7680         * tty/devlatin1/R.proto: \(hy and - should print as 055.
7682 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
7684         * groff.c (run_commands): If the last command gets a SIGPIPE send
7685         a SIGPIPE to all children than haven't yet terminated.  When
7686         command terminates, set pid field to -1.
7688 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
7690         * groff.c (main): Pass an appropriate -filename option to gxditview.
7692 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
7694         * Makefile.bd (install): Remove existing program before copying.
7696         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
7697         programs which have Unix counterparts to be installed with
7698         user-specified prefix.
7700         * troff/input.c (exit_troff): Don't check if exit_started.
7701         (exit_request): Don't call exit_troff if exit_started.
7703         * Makefile.bd (install.mm): Rename to install.dwbmm.
7705 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
7707         * driver/input.c (do_file): Add missing break for '#' case.
7709 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
7711         * troff/input.c (input_stack::clear):  Clear past any boundaries and
7712         then add the boundaries back.
7714         * troff/input.c (exit_troff): Return immediately if already
7715         exiting.
7717         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
7718         end macro.
7719         (pg*end-page): If the text has ended and there are no more
7720         footnotes or keeps, exit.
7722         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
7724         * troff/input.c (init_charset_table): Make \(rq transparent by
7725         default.
7727         * macros/tmac.an: Define lq and rq strings.
7729         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
7731 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
7733         * troff/env.c (environment::final_break): New function.
7734         (environment::newline): Set prev_line_interrupted to 2 if
7735         exit_started.
7736         * troff/env.h: Declare environment::final_break.
7737         * troff/input.c (exit_troff): Call environment::final_break()
7738         instead of environment::do_break().
7740         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
7741         doesn't already exist.
7742         * macros/man.local: New file.
7743         * macros/tmac.an: Load man.local.
7744         * macros/man.ultrix: New file.
7746 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
7748         * troff/input.c (exit_groff): Rename to...
7749         (exit_troff): New function.
7751         * troff/div.c (exit_started, done_end_macro,
7752         seen_last_page_ejector): New global variables.
7753         (began_page_in_end_macro): New static variable.
7754         (exit_flag): Deleted.
7755         (top_level_diversion::top_level_diversion): Initialize
7756         last_page_count.
7757         (top_level_diversion): More elaborate test for whether
7758         cleanup_and_exit() should be called.
7759         Set began_page_in_end_macro if the end macro isn't yet finished.
7760         * troff/div.h (top_level_diversion::last_page_count): New data
7761         member.
7762         (top_level_diversion::set_last_page): New function.
7763         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
7764         * troff/env.c (do_break): Zero prev_line_interrupted.
7765         * troff/input.c (exit_flag): Delete declaration.
7766         (LAST_PAGE_EJECTOR): New magic cookie.
7767         (token::next): Handle LAST_PAGE_EJECTOR.
7768         (exit_groff): Set exit_started and done_end_macro instead of
7769         exit_flag.  Call top_level_diversion::set_last_page.  Push a
7770         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
7771         another ejection after setting seen_last_page_ejector.
7773 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
7775         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
7777         * macros/tmac.e (TH): Make sure there's room for the initial
7778         header.
7780         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
7781         Set FVS in points rather than units.
7783 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
7785         * troff/div.c (top_level_diversion::add_trap): Don't consider the
7786         position of empty slots.
7788 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
7790         * ps/devps/S: Fix height and depth of parenrightex.
7791         * ps/devps/symbol.diff: Regenerate.
7793 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
7795         * tmac.e (u): Do underlining as in -mgs.
7797 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
7799         * tty/tty.c (tty_printer::end_page): If overstriking is
7800         suppressed, still turn overstruck horizontal and vertical lines
7801         into +.
7803         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
7804         2.1.
7806         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
7808 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
7810         * Version 1.05 released.
7812 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
7814         * tty/tty.c: Instead of keeping an array of glyphs and then
7815         sorting it, keep a ordered linked list of glyphs for each line.
7817         * driver/driver.h: Include stddef.h.
7819         * tty/tty.c (compare_glyph):
7820         * refer/refer.c (rcompare):
7821         * troff/env.c (compare_ranges): Arguments of qsort comparison
7822         function should be const void *.
7824         * troff/number.c (parse_term):
7825         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
7826         switch statement.
7828         * refer/label.y (consider_authors): Don't access variables
7829         constructed under a condition outside that condition: put braces
7830         round for statement containing declaration; redeclare use of same
7831         variable later.
7833         * pic/pic.y (text_expr): Delete production that allows
7834         parenthesised text_expr.
7835         (expr): Allow a conditional_expr to appear in parentheses.
7836         (conditional_expr): Rename to any_expr.
7838         * mm: Install new version 1.01 from jh.
7840         * lib/font.c (font::get_width): Cache scaled widths.
7841         (font::font): Initialize widths_cache.
7842         (font::~font): Destroy widths_cache.
7843         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
7845 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
7847         * c++test.c, c++test.ref: New files.
7848         * Makefile: Check that the C++ compiler works.
7850         * ps/tmac.pspic (PSPIC): Do a break.
7852         * ps/tmac.ps: Move definition of PSPIC into...
7853         * ps/tmac.pspic: New file.
7854         (PSPIC): Draw box around picture, but make it invisible to grops.
7855         * ps/tmac.ps: Load tmac.pspic.
7856         * ps/Makefile: Install tmac.pspic.
7858 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
7860         * lib/font.c (scale_round): If n is negative,
7861         subtract .5 before truncating floating point result.
7863         * lib/fontfile.c: Include <errno.h>.
7865 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
7867         * driver/input.c (get_char): Inline. Don't update current_lineno.
7868         Change callers to up date current_lineno if necessary.
7869         Use get_char() instead of getc(current_file).
7871 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
7873         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
7875 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
7877         * tty/tty.c (tmac.tty): Define \(rg as (R).
7879 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
7881         * lib/lib.h: New define a_delete.
7882         * Use a_delete instead of delete when deleting an array of objects
7883         without destructors.
7885         * lib/lib.h: Rename adelete to ad_delete.
7886         * Change uses of adelete.
7888 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
7890         * eqn/eqn.y: Include lib.h.
7892         * troff/node.c (grow_font_table): Delete old_font_table.
7894         * mm: Install new version from jh.
7896 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
7898         * tbl/table.h (format_type): Make global instead of local to class
7899         entry_format.  Prefix enumerators with FORMAT_.
7900         * tbl/table.c, tbl/main.c: Corresponding changes.
7901         * refer/token.h (token_type): Make global.  Prefix enumerators
7902         with TOKEN_.
7903         * refer/token.[ch]: Corresponding changes.
7904         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
7906         * troff/div.c (node::set_vertical_size): Don't name argument.
7908 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
7910         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
7911         * lib/lib.h: Define adelete accordingly.
7912         * pic/object.c (graphic_object::graphic_object):
7913         * tbl/main.c (format::~format):
7914         * tbl/table.c (table::~table):
7915         * refer/ref.c (reference::~reference, reference::merge,
7916         reference::insert_field, reference::delete_field): Use adelete.
7918         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
7919         * refer/token.h:
7920         * tbl/table.h: Corresponding changes.
7922         * common.c (common_output::dashed_arc, common_output::dotted_arc):
7923         Ensure total_angle is positive.
7925 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
7927         * refer/ref.c (reference::merge, reference::insert_field,
7928         reference::delete_field): Avoid delete[0].
7930         * refer/token.c (init_special_chars): Move calls to cmupper
7931         outside calls to init_two_char_letter to work around bug in gcc
7932         2.0.
7934 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
7936         * lib/new.c (operator new): Use __builtin_new for g++.
7938         * pic/object.c (graphic_object::~graphic_object):  Don't use
7939         delete [] on 0.
7941         * pic/object.c (output::compute_scale): Initialize max_width and
7942         max_height.
7944 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
7946         * troff/input.c (write_request): Call fflush.
7948         * troff/node.h (class composite_node): Move declaration to node.c
7949         * troff/input.c (charinfo_to_node): Rename to ...
7950         (charinfo_to_node_list): Return node list rather than composite
7951         node.
7952         * troff/node.c (make_composite_node): New function.
7953         (make_node, add_char): Call make_composite_node instead of
7954         charinfo_to_node.
7955         (class composite_node): Add a tfont * member.  Delete font_size
7956         member.
7957         (composite_node::composite_node, composite_node::copy,
7958         composite_node::size): Corresponding changes.
7959         (composite_node::tprint): Provide constant spacing, emboldening
7960         and track kerning as specified in tfont.
7961         (composite_node::width): Change width calculation accordingly.
7962         * troff/env.h (environment::composite): New member.
7963         (environment::is_composite, environment::set_composite): New
7964         functions.
7965         * troff/env.c (environment::environment): Initialize composite.
7966         * troff/input.c (charinfo_to_node): Call
7967         environment::set_composite.
7968         * troff/node.c (make_composite_node, make_glyph_node): Use the
7969         plain version of the tfont if the environment is composite.
7971         * troff/node.c (font_info::get_space_width): Additional argument
7972         giving space_size.  Handle constant space correctly. Scale by
7973         space_size unless constant spaced.
7974         (env_sentence_space_width): New function.
7975         * troff/node.h: Declare it.
7976         * troff/env.h (environment::get_space_size,
7977         environment::get_sentence_space_size,
7978         environment::get_narrow_space_width,
7979         environment::get_half_narrow_space_width): Make inline.
7980         (environment::get_space_width): Make inline.  Just call
7981         env_space_width.
7982         * troff/env.c: Delete definitions for funtions made inline.
7983         (environment::space_newline, environment::space): Use
7984         env_sentence_space_width(). Don't scale by space_size.
7985         * troff/node.h: Move declarations of env*space_width() functions
7986         into env.h.
7988 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
7990         * macros/tmac.s (PS): Don't try to set negative indent.
7992 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
7994         * pic/pic.y: Fix min function.
7996 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
7998         * man/mdate.sh: Clear LANGUAGE.
8000 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
8002         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
8003         * pic/lex.c: New COMMAND keyword.
8004         * pic/pic.y (print_args, print_arg): New rules.
8005         (placeless_element): Use print_args for PRINT.
8006         New COMMAND element.
8008 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
8010         * troff/input.c (terminal): Handle missing argument correctly.
8012         * pic/pic.y (text_expr): New rule.
8014         * pic/pic.y: Implement := operator.
8016 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
8018         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
8019         mdoc.
8021 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
8023         * ps/devps/dingbatsrmap: Include this in the distribution.
8025         * macros/tmac.doc: Replace with new version from 2nd Networking
8026         Release. Fix loading of doc-* files.
8027         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
8028         * macros/tmac.doc.old: New file.  Apply fixes that had been
8029         applied to old tmac.doc.
8030         * macros/tmac.andoc: Check that we're running under groff.
8031         * macros/Makefile: Rework.
8033 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
8035         * tbl/table.h (format_type): 
8036         * refer/token.h (token_type): If NESTED_TYPES is defined, use
8037         typedef to make these types visible at file scope.
8038         * Makefile: Add NESTED_TYPES configuration option.
8040         * troff/div.c (mark): At the top level use the value of
8041         nl_reg_contents rather than the current vertical position.
8043 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
8045         * tty/tty.c: Implement \D for horizontal or vertical lines.
8046         (tty_printer::set_char): Use vec_used+2 as serial number.
8047         Don't allow size of vector to exceed USHRT_MAX-2.
8048         Split off part into...
8049         (tty_printer::add_char): New function.
8050         (tty_printer::draw): New function.
8051         (compare_glyph): Handle equal serial numbers.
8052         (tty_printer::end_page): Handle overstruck characters from \D.
8053         (main, usage): Implement -d option.
8055 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
8057         * tbl/main.c (process_format):
8058         * eqn/text.c (split_text):
8059         * troff/input.c (token::next): Use inner block for declarations
8060         with initializers in switch statement.
8062 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
8064         * pic/common.c (common_output::dash_line): Cope with zero-length
8065         lines.
8067 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
8069         * Version 1.04 released.
8071 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
8073         * macros/tmac.an (TH): Define a macro an-init to define variables
8074         based on command line arguments.
8075         (an-header): Call it.
8077 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
8079         * Makefile (install.mm): Rename to install.dwbmm.
8081         * Makefile: Integrate mm.
8082         * mm: New directory.
8084 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
8086         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
8087         <sys/types.h>.
8089         * pic/troff.c (troff_output::simple_spline,
8090         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
8091         shadowing parameter.
8093         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
8095         * lib/ptable.h: Add explicit casts when converting from unsigned
8096         long to unsigned.
8098         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
8099         * dvi/devdvi/Makefile: Install SA, SB.
8101         * refer/indxbib.c: Add declaration of mktemp.
8103         * refer/lookbib.c: Add declaration of isatty.
8105 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
8107         * pic/lex.c (interpolate_macro_with_args):  While collecting
8108         arguments, keep track of whether we're in a string.
8110 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
8112         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
8113         down with \v, so as to avoid problems with top of page trap
8114         setting no space mode.
8116 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
8118         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
8120 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
8122         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
8123         Improve error message.
8125 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
8127         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
8128         printf("%03o");
8130 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
8132         * groff.c (possible_command::execp): Always use _exit() after a
8133         failed exec.
8135         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
8136         NO_SYS_WAIT_H   configuration options.
8137         * groff.c: Use these options.  Use POSIX-style macros to extract
8138         fields from the status returned by wait().
8140 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
8142         * tbl/table.c (table::compute_separation_factor): Allow the
8143         separation factor to drop to 0.
8145 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
8147         * refer/search.c: Include <errno.h>.
8149 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
8151         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
8153         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
8154         C++. 
8156         * pic/lex.c (input_stack::bol): Move definition out of class body.
8158         * pic/main.c: On MSDOS munge argv[0].
8160         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
8162         * lib/ptable.c (hash_string): Use unsigned long rather than
8163         unsigned.
8164         (next_ptable_size): Use unsigned rather than int.  Give an error
8165         message if we've hit the largest table size.
8166         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
8167         table size.
8169         * pic/object.h (object_spec): Make flags unsigned long.  Declare
8170         flags as const unisgned long rather than as enums.
8172         * pic/output.c: Deleted.
8174         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
8176         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
8177         Add additional argument.
8178         (line_entry::note_double_vrule_on_{left,right}): Set value of
8179         douvle_vrule_on_{right,left} flag according to argument.
8180         (simple_line_entry::simple_print,
8181         simple_line_entry::double_line_print): If adjacent to double vrule
8182         on a corner extend rather than shorten the rule by half the double
8183         vrule sep.
8185         * troff/number.c (parse_term): In checking for overflow, handle the
8186         case where the current horizontal position is negative.
8188 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
8190         * pic/object.c (draw_arrow): Check for object having zero length.
8192 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
8194         * eqn/main.c (do_file): Split off inline equation handling into...
8195         (inline_equation): New function.  Search for starting delimiter
8196         using...
8197         (delim_search): New function. Don't recognize a delimiter that
8198         occurs in the name of an escape sequence, number register, string
8199         etc.
8201 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
8203         * eqn/delim.c (delim_box::compute_metrics): Don't call
8204         define_extensible_string if left is 0.
8205         (delim_box::output):  Don't print the left delimiter if left is 0.
8206         (delim_box::debug_print): Check for left == 0 before calling printf.
8208 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
8210         * troff/Makefile (majorminor.c): Include only digits in
8211         minor_version.
8213 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
8215         * refer/dirnamemax.c: new file.
8216         * refer/genlimits.c: Deleted.
8217         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
8218         Don't check path length.
8219         * refer/Makefile: Add dir_name_max.o; delete genlimits.
8220         * Makefile: Add PATHCONF_MISSING option.
8222         * refer/indxbib.c (get_cwd): New function.
8223         (main): Use get_cwd().
8224         * lib/getcwd.c: New file.
8225         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
8226         GETCWD in SUBFLAGS.
8227         * lib/Makefile: Compile getcwd.o.
8229         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
8230         userdict.
8232         * refer/indxbib.c (main): Check success of mktemp.
8234         * lib/tmpfile.c: New file.
8235         * lib/Makefile: Add tmpfile.c.
8236         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
8237         * ps/ps.h: Delete declaration of mktemp().
8238         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
8239         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
8240         * driver/driver.h: No need now to include errno.h.
8242         * everywhere: Set errno to 0 before calling fopen().
8244         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
8245         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
8246         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
8248 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
8250         * troff/env.h (translate_space_to_dummy): Declare it.
8251         * troff/env.c (environment::space_newline, environment::space):
8252         If translate_space_to_dummy is set then make the width of spaces 0.
8253         * troff/input.c (translate): If the second character of a
8254         translation is a space, translate to unbreakable space.  If the
8255         first character is a space, set or clear translate_space_to_dummy
8256         according to whether the second character is \&.  Weird!
8258 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
8260         * groff.c (run_commands): Don't use non-zero exit code because a
8261         command gets SIGPIPE.
8263         * groff.c, groff.sh: Use -mXps with -TXps.
8265         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
8266         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
8267         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
8268         (ps_printer::special): New specials invis and endinvis.
8269         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
8270         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
8271         (ps_printer::end_page): Check that invis_count == 0.
8272         (ps_printer::invis_count): New member.
8273         (ps_printer::ps_printer): Initialize invis_count to 0.
8275         * troff/env.c (environment::hyphenate_line): Hyphenation
8276         indicator at beginning of word inhibits splitting after -, \(em
8277         etc.
8279         * pic/pic.y (element): Allow another element to follow } without
8280         any intervening separator.
8282 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
8284         * pic/lex.c (get_delimited): Allow tabs before delimiter.
8286 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
8288         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
8289         declaration of wait() in header files.
8290         * Makefile: Get rid of -DHAVE_UNION_WAIT.
8292         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
8294         * lib/lib.h: Declare return type of strerror as char *.
8296         * man/Makefile: Add g flag to sed substitutions.
8297         * Makefile (shgroff, bindist): Likewise.
8299 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
8301         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
8302         * ps/devps/prologue (PBEGIN): Define showpage after pushing
8303         userdict.
8305 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
8307         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
8308         userdict.
8310 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
8312         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
8313         group.
8315 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
8317         * troff/input.c (define_number_reg):  If currently undefined,
8318         don't define it if the argument is an invalid expression.
8320         * Makefile: Ignore return value of `if' commands without `else'
8321         parts.
8323         * Makefile: Split up CPPDEFINES into a series of separate
8324         configuration options.
8326         * troff/input.c (init_registers): Use time_t instead of long
8327         unless LONG_FOR_TIME_T is defined.  Use returned result rather
8328         than passing pointer.
8329         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
8331         * lib/Makefile (fontpath.h): Use gendef.
8333 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
8335         * troff/input.c (input_iterator::shift): Delete argument name.
8336         * troff/node.c (suppress_output_file::really_begin_page,
8337         suppress_output_file::really_transparent_char, node::ascii_print,
8338         node::tprint): Delete names of unused arguments.
8340 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
8342         * refer/label.y (string):  Pass $4 to command_error.
8344 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
8346         * Version 1.03 released.
8348 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
8350         * Makefile: Pass definition of SHELL in SUBFLAGS.
8352         * gendef: New file.
8353         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
8354         ps/Makefile: Use gendef to construct header files that are
8355         constructed from the Makefile.
8357         * macros/Makefile: make all should build stripped version of tmac.e.
8359         * refer/Makefile (clean): Remove y.output.
8361 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
8363         * ps/pfbtops.c (main): Add -v option which prints out a version
8364         number.
8365         * ps/Makefile (pfbtops): Link with libgroff.a.
8367 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
8369         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
8370         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
8372         * refer/lkbib.c (main): Always terminate reference with blank
8373         line.
8374         * refer/lookbib.c (main): Likewise.
8376         * refer/linear.c (file_buffer::load): Check that the file is not a
8377         binary file.
8379         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
8380         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
8381         Delete second inclusion of <sys/param.h>.
8383 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
8385         * troff/token.h (token::special): Deleted.
8387         * tbl/main.c (process_format): Rework so that opt->tab_char is
8388         recognized only when appropriate.
8390         * ps/Makefile (clean): Remove pfbtops.
8392 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
8394         * lib/font.c (text_file::next): Don't return if we have got a
8395         blank line.
8397 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
8399         * refer/refer.c (store_reference): Get hash code from old_table[i]
8400         when rehashing the table.
8402 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
8404         * eqn/box.c (box::top_level): Save size and prev size using \R and
8405         restore it afterwards. Set the size to the size at the beginning
8406         of the line.
8407         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
8408         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
8410         * refer/Makefile (limits.h): Use ./genlimits.
8412 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
8414         * refer/index.c: Delete declarations of stat() and fstat().
8416 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
8418         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
8420 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
8422         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
8424 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
8426         * troff/input.c (token::get_char): Handle \e.
8428         * refer/linear.c: Delete declarations of fstat() and stat().
8430 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
8432         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
8433         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
8435 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
8437         * troff/input.c (do_define_macro): Improve error handling for end
8438         of file while defining macro.
8440 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
8442         * eqn/box.h: Fix declaration of set_gsize.
8443         * eqn/box.c (set_gsize): Make argument const char *.
8444         (gsize): Declare as char *.
8445         * eqn/main.c (main): Don't convert gsize to int.
8446         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
8448         * Version 1.02 released.
8450 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
8452         * macros/tmac.andoc: New file.
8453         * macros/Makefile: Install tmac.andoc.
8455         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
8456         operator new and delete on OP_DELETE_BROKEN not being defined.
8457         * Makefile: Mention OP_DELETE_BROKEN.
8459 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
8461         * Makefile (bindist): Pass SUBFLAGS.
8463 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
8465         * Makefile, groff.c: Pass definitions to groff.c via device.h.
8467         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
8468         parameter.
8470         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
8472         * ps/ps.h, ps/psrm.c: Make comment_table and
8473         header_comment_table local to resource_manager::process_file.
8475         * groff.sh: With -TXps pass -printCommand option to gxditview.
8477         * groff.c (possible_command::print): Implement using
8478         append_arg_to_string.
8480         * xditview: Merge in new implementation with own ChangeLog.
8482 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
8484         * groff.c (main): Implement PRINT_OPTION.
8485         (append_arg_to_string): New command.
8486         (device_table): Set PRINT_OPTION flag for Xps.
8488 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
8490         * troff/groff.h: Rename to troff.h.
8492         * pic/lex.c (lookup_keyword, docmp): New functions.
8493         (get_token): Use new lookup_keyword.
8494         Don't include key.h.
8495         * pic/key.[ch], pic/pic.gperf: Deleted.
8496         * pic/Makefile: Remove gperf stuff.
8498         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
8499         into output.h.
8500         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
8502         * troff/Makefile, troff/node.c: Move definition of
8503         STORE_WIDTH into node.c.
8505         * etc/grog.pl, etc/grog.sh: Support -mdoc.
8507 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
8509         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
8510         dvi/devdvi/texb.map: Add lq and rq.
8511         dvi/devdvi: Regenerate fonts.
8512         * ps/devps/textmap: Add lq and rq.
8513         * ps/devps: Regenerate fonts.
8514         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
8515         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
8517         * pic/object.c (position_rectangle): When checking radius
8518         cope with possiblity that width or height is negative.
8519         (box_object::box_object): Have separate xrad and yrad with
8520         signs matching signs of dim components.
8521         (box_object::{north,south}_{east,west}): Use xrad and yrad.
8522         (box_object::print): With rounded boxes use absolute values
8523         for dim and rad arguments.
8525         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
8526         in fontpath.h.
8528         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
8530         * various files: Add explicit destructors to keep Saber CC +d
8531         happy.
8533 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
8535         * eqn/box.c (box::top_level): Restore fonts correctly after
8536         font changes in line containing inline equation.  Also
8537         restore previous font as well as current font.
8538         * eqn/pbox.h: Define necessary string and register names.
8540         * troff/input.c (token::next): Case 'R' calls do_register.
8541         (do_register): New function.
8543 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
8545         * groff.c, groff.sh: Support Xps device.  Allow each device
8546         to have a pseudo_name and a real_name.
8548         * groff.c (run_commands): Don't print `Broken pipe' messages.
8550         * ps/pfbtops.c: New file.
8551         * ps/Makefile: Add pfbtops.
8553         * troff/number.c (parse_term): Improved error message.
8555 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
8557         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
8559         * Makefile: Integrate refer.
8560         * refer: New directory.
8561         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
8562         man/lkbib.man: New files.
8563         * man/Makefile: Support refer man pages.
8565         * lib/lib.h: Declare is_prime.
8566         * lib/prime.c: New file.
8568         * troff/input.c (macro_source): New function.
8569         (init_input_requests): Bind "mso" to macro_source.
8571         * troff/env.c (environment::possibly_break_line): Maintain
8572         pointer to pointer to node to be split in ndp so as to avoid
8573         using address of freed node.
8575         * troff/env.c (environment::hyphenate_line): Maintain pointer to
8576         pointer to first node to be hyphenated in startp so as to
8577         avoid using address of freed node.
8579         * troff/env.c (class trie, class hyphen_trie): Make the
8580         elements of the trie be of type char not unsigned char.
8581         Declare arguments to be const char* instead of unsigned char *.
8582         
8583         * troff/env.c (hyphenate): Initialize hbuf[0].
8585         * troff/input.c (set_string): Declare p to be char * and cast
8586         *p to unsigned char when necessary.
8588         * troff/input.c (do_define_macro): Declare s to be const
8589         char*. Cast element to unisgned char when necessary, Declare
8590         d to be an int.  Handle EOF better.
8592         * troff/Makefile, troff/input.c: Different scheme for passing
8593         definitions of MACROPATH, HYPHENFILE and DEVICE.
8595 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
8597         * tty/devascii/R.proto: Delete entry for em.
8598         * tty/devlatin1/R.proto: Likewise.
8600 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
8602         * troff/input.c (translate): Stop when we get a space. Treat eof
8603         like newline.
8605         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
8607 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
8609         * tbl/main.c (process_format): A font name following a `f'
8610         modifier that starts with a digit can be only one character long.
8611         Also deal with EOF on the second character of the font name.
8613 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
8615         * troff/input.c (token::next): Turn \~ into an
8616         unbreakable_space_node.
8617         * troff/node.c (unbreakable_space_node): New class.
8618         * troff/node.h: Declare it.
8620 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
8622         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
8623         it's >= 0, before outputting it as a single byte.
8625 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
8627         * lib/font.c: Make font_char_metric::code an int.
8628         (font::get_code): Change return type to int.
8629         (font::load): Allow code to be arbitrary integer.
8630         * lib/font.h (font::get_code): Change return type to int.
8631         (font::number_to_index): Change argument type to int.
8632         * troff/input.c (token::next):  In case 'N', allow any value.
8633         Store value in token::val.
8634         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
8635         (token::get_char, token::add_to_node_list, token::process): Get
8636         number from val.
8637         (charinfo::set_number): Change argument to int.
8638         (charinfo::get_number):  Require that NUMBERED flag be set.
8639         (get_charinfo_by_number): Store numbered characters not between 0
8640         and 255 in a dictionary.
8641         * troff/charinfo.h (get_charinfo_by_number): Change argument type
8642         to int.
8643         (charinfo::number): Change type to int.
8644         (charinfo::set_number): Change type of set_number to int.
8645         * troff/node.c (troff_output_file::put_char_width,
8646         troff_output_file::put_char): Test whether character is numbered
8647         using charinfo::numbered().
8648         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
8649         values of num.
8650         * lib/nametoindex.c: New implementation to cope with arbitrary
8651         number characters.
8653         * troff/input.c (token::operator==): Test val for
8654         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
8655         TOKEN_SIZE.
8657         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
8658         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
8660 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
8662         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
8663         variable.
8665         * all Makefiles: rm targets of cp and >.
8667         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
8668         it.
8670         * eqn/lex.c (def_table): Add dollar.
8672 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
8674         * troff/input.c (do_width): Push back newline before closing delim
8675         like do_bracket.
8677 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
8679         * groff.c (possible_command::prepend_arg): New function.
8680         (main): Prepend device -m option.
8681         * groff.sh: Put device -m options before command-line options.
8683 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
8685         * macros/tmac.an (IP): Quote argument to TP.
8687         * ps/ps.c (main): New option -b, which sets...
8688         (broken_flags): New variable.
8689         (ps_printer::~ps_printer): Incorporate the setup section in the
8690         prolog if (broken_flags & NO_SETUP_SECTION).
8691         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
8692         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
8693         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
8694         ps_printer::print_needed_font_comment,
8695         ps_printer::print_supplied_font_comment,
8696         ps_printer::print_include_font_comments,
8697         ps_printer::lookup_doc_font, ps_printer::download_fonts,
8698         ps_printer::read_download_file, read_document_fonts, add_font,
8699         skip_line, parse_fonts_arg, document_font::document_font,
8700         document_font::~document_font, document_font::download,
8701         ps_output::include_file):  Deleted.
8702         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
8703         rather than %!PS-Adobe-2.0.  Make calls to
8704         resource_manager::need_font for each font that we used. Replace
8705         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
8706         print_supplied_font_comment, print_needed_font_comment by call to
8707         resource_manager::print_header_comments. Output %%Orientation
8708         comment. Output %%Requirements: numcopies comment if ncopies > 1.
8709         Don't output the prolog directly.  Instead call
8710         resource_manager::output_prolog.  Only define #copies when ncopies
8711         > 1.  Delete calls to print_include_font_comments  and
8712         download_fonts.  Add call to resource_manager::document_setup.
8713         (ps_printer::do_file): Call resource_manager::import_file instead
8714         of including it ourselves.
8715         (ps_printer::do_import): Likewise.  Also don't call
8716         merge_import_fonts. Push userdict on the dictionary stack before
8717         and pop it afterwards.
8718         Move declaration of ps_output into ps.h.
8719         * ps/psrm.c: New file implementing resource_manager class.
8720         * ps/ps.h: New file declaring ps_output and resource_manager
8721         classes.
8722         * ps/devps/zapfdr.ps:
8723         * ps/devps/symbolsl.ps:
8724         * ps/devps/prologue:  Use 3.0 conventions.
8725         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
8726         Add default definition of BROKEN_SPOOLER_FLAGS.
8727         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
8728         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
8730 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
8732         * etc/grog.pl: New file.
8733         * Makefile (GROG): New variable.
8734         Add GROG to SUBFLAGS.
8735         * etc/Makefile (GROG): New variable.
8736         (install.nobin): Install $(GROG) rather than grog.sh.
8738 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
8740         * eqn/special.c (special_box::compute_metrics): Make the input and
8741         output strings the same.  Get the new height and depth from the
8742         predefined height and depth registers.  Also make subscript kern
8743         and skew available.
8744         (special_box::compute_subscript_kern, special_box::compute_skew):
8745         New functions.
8747         * eqn/box.c (pointer_box::compute_skew,
8748         simple_box::compute_metrics, box::top_level)
8749         * eqn/text.c (prime_box::compute_metrics,
8750         prime_box::comput_subscript_kern)
8751         * eqn/limit.c (limit_box::compute_metrics):
8752         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
8753         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
8754         negative numbers in `nr' requests with a leading 0.
8756 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
8758         * eqn/special.c: New file.
8759         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
8760         Add new rule for simple.
8761         * eqn/lex.c (token_table): Add SPECIAL.
8762         * eqn/box.h: Declare make_special_box.
8763         * eqn/Makefile: Add special.[co].
8765 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
8767         * ps/devps/prologue: Possibly set packing to true while defining.
8768         Create grops dictionary here.  Initialize local variables before
8769         defining procedures.
8770         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
8771         the dictionary stack. Set strokeadjust and overprint to false if
8772         the relevant operators are defined.
8773         (PEND): New procedure.
8774         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
8775         prologue.  Do everything else in the setup section.
8776         (ps_printer::do_import): Just call PBEGIN and PEND around the
8777         picture. Also push userdict before, and pop it afterwards.
8779 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
8781         * troff/node.c (bracket_node::tprint): Brackets were being printed
8782         1m too low.
8784         * macros/tmac.an (SH, SS): Set fill mode.
8786 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
8788         * troff/div.c (top_level_diversion::begin_page): Set
8789         high_water_mark to 0.
8791 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
8793         * man/mdate.sh: New file.
8794         * man/mdate.c: Deleted.
8795         * man/Makefile: Use mdate.sh instead of mdate.
8796         (mdate): Deleted.
8798         * eqn/lex.c (do_gsize): Supply missing argument to error message.
8800 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
8802         * man/mdate.c: New file.
8803         * man/*.man: Replace modification date by @MDATE@.
8804         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
8805         (mdate): New target.
8807         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
8808         Remove illegal input characters.
8810 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
8812         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
8814 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
8816         * troff/div.c (begin_page): Change behaviour when
8817         !first_page_begun and !break_flag.
8819         * troff/input.c (do_name_test): Return 0 if argument is empty.
8821         * troff/input.c (read_long_escape_name): Require closing ] to be
8822         at same input level as opening [.
8824         * troff/input.c (read_increment_and_escape_name): New function.
8825         (get_copy, process_input_stack): Use this for \n.
8827 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
8829         * troff/div.c (top_level_diversion::begin_page): Ignore the
8830         current value of page_number if !first_page_begun.
8832         * groff.c (main): Fix declaration of buf.
8834         * troff/input.c (do_name_test): New function.
8835         (token::next): Implement \A.
8836         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
8837         (token::description, token::add_to_node_list, token::process):
8838         Handle TOKEN_ESCAPE.
8839         * troff/token.h: New token TOKEN_ESCAPE.
8841 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
8843         * pic/main.c (do_picture): Allow space before and after filename
8844         following `<'.  Check that the filename is not empty.
8846 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
8848         * Version 1.01 released. 
8850         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
8852         * dvi/tmac.dvi: ftr HR to H.
8854         * macros/tmac.e: Round up computation of $r.
8856         * xditview/tmac.X:  Don't give up completely in compatibility mode.
8857         Use \n(.s instead of \n[.s].
8859         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
8860         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
8861         Add u to factors inside \s[...]. Rename frac to dvi-frac.
8862         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
8863         short names in the char definitions.
8865         * ps/tmac.ps: Don't give up completely in compatibility mode.
8866         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
8867         quote in front of \n(.s. Add u to factors inside \s[...].
8869 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
8871         * tty/tmac.tty: Call the nroff request.
8873         * macros/tmac.e ((x, )x):  Better definitions that work properly
8874         in a diversion.
8875         (@0, @1): Helper macros for (x.
8877         * macros/tmac.e ($s, hl): Use \l rather than \D.
8879         * tty/tmac.tty: Make it work better in compatibility mode.
8880         (pchar): Rename to tty-char.
8882         * macros/tmac.e (@E): New macro.
8883         (r, i, b, rb, bi): Use @E.
8885         * macros/tmac.e (@F): Don't use (;...) syntax.
8887         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
8888         it was modified for groff.
8890         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
8892         * macros/tmac.e (<., .>): Removed.
8893         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
8895         * macros/tmac.e: Remove check that groff is being used.
8897         * macros/tmac.e (@C): Change families only if using groff; turn
8898         compatibility mode off while changing familes. Save compatibility
8899         mode before changing families and restore it afterwards.
8901         * macros/tmac.e (@h): Remove test for offset + line length.
8903         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
8904         (lo, th, ac): Define to call @S instead of using als.
8906         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
8907         the ratio of the vertical spacing to the point size in units
8908         expressed as a percentage.  Use these instead of $10r and $10R,
8909         Delete $10r and $10R.
8911         * lib/font.c (font::load): In default computation of space_width,
8912         divide by sizescale.  Use scale_round.
8914         * macros/tmac.an (TP): Don't call `nf'.
8915         (an-do-tag): Don't call `fi'.
8917 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
8919         * troff/input.c (process_input_stack): Handle the case where
8920         spaces at the beginning of an input line are followed by a
8921         newline.
8923 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
8925         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
8926         * groff.sh: Use pic -x with the dvi device.
8928         * dvi/devdvi/FontMakefile (H): Don't use -s.
8930         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
8931         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
8932         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
8933         in FONTS.
8935 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
8937         * ps/psfig.diff: New file.
8938         * ps/tmac.psfig: New file.
8940 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
8942         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
8943         (]-): Don't call ref*do-tl.
8945         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
8947         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
8948         (fn@do-FS): Rename to fn*do-FS.
8950         * troff/input.c (transparent_translate): New function.
8951         (process_input_stack): Apply transparent_translate before calling
8952         diversion::transparent_output(unsigned char).
8954 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
8956         * troff/input.c (do_define_macro): Define the macro before calling
8957         skip_line.
8959         * xditview/Makefile: Add DEVICES variable.  Change install target
8960         to use this.
8962 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
8964         * groff.c (run_commands): Handle the possibility that there are
8965         child processes other than those forked by us.
8967 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
8969         * lib/string.c (string::append): New function.
8970         * lib/stringclass.h: Declare it.
8972 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
8974         * eqn/main.c (main): New option -N which sets
8975         no_newline_in_delim_flag. 
8976         (do_file): If no_newline_in_delim_flag is set don't allow newlines
8977         in delimiters.
8978         * groff.c (main): Pass -N on to eqn.
8979         (help, synopsis): Mention -N.
8980         * groff.sh: Implement -N.
8982 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
8984         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
8985         (]-): Call ref*do-tl if ref*need-tl is non-zero.
8986         (XP): Allow as initializer.
8988 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
8990         * troff/env.c (environment::wrap_up_field): If field_spaces are
8991         non-zero and we have a current_tab, subtract padding from
8992         tab_distance.  If this makes tab_distance <= 0, use the next tab
8993         stop instead.  If there isn't any next tab or it's a left tab,
8994         wrap up the current tab.
8995         (environment::start_field): Initialize tab_precedes_field.
8996         (environment::wrap_up_tab): If there's a current field, update
8997         pre_field_width, field_distance and tab_precedes_field.
8998         * troff/env.h (environment::tab_precedes_field): New member.
9000 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
9002         * ps/ps.c (ps_printer::do_file): New function.
9003         (ps_printer::special): Bind to `file' special.
9004         (ps_printer::do_exec): Set ndefined_styles to 0.
9006 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
9008         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
9009         Avoid stripping first character from the start of unrecognized
9010         escapes.  Use lex_error instead of error to report errors.
9011         * eqn/lex.c (get_token): Rework handling of escapes.
9012         (lex_error): Move declaration into...
9013         * eqn/eqn.h.
9015         * xditview/xditview.c (main): Make -page option work.
9017         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
9019 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
9021         * macros/tmac.s (B2): Correct size of box.
9023 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
9025         * macros/tmac.s (B2): Postpone drawing the box until in the
9026         top-level diversion.
9028         * tty/tmac.tty: Add font translations for C, CR, CW.
9030         * groff.c (synopsis, help): Document -i.
9031         * groff.sh: Implement -i.
9033         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
9034         Simplify the construction of SN.
9036         * troff/number.c (parse_term): Give `|' a higher precedence.
9037         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
9038         accordingly.
9040         * macros/tmac.s (B2): Use par@finish instead of par@reset.
9042 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
9044         * lib/string.c (string::move): New function.
9045         * lib/stringclass.h: Declare it.
9047 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
9049         * troff/env.c (distribute_space): Add optional argument
9050         `force_forward'.
9051         (environment::wrap_up_field): Call distribute_space with
9052         `force_forward' argument of 1.
9054 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
9056         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
9057         Inline it.  Move reallocation into...
9058         (string::grow1): New function.
9059         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
9060         dependencies to include library header files.
9061         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
9063 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
9065         * macros/tmac.s (@NH): Use the same number registers than -ms does
9066         for the heading level counters.  Use the same string that -ms does
9067         for the number for this heading.
9069 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
9071         * lib/new.c (operator new): Cast result of malloc to char *.
9073         * troff/input.c (spring_trap, lookup_request): Add assert that nm
9074         is not null.
9076 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
9078         * groff.c (main): Support -i.
9080 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
9082         * pic/pic.h: Include <osfcn.h>.
9084         * ps/ps.c: Add declaration of mktemp.
9086         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
9087         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
9088         argument as union wait *.
9089         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
9090         argument to union wait *.
9092 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
9094         * tty/tmac.tty: Add definition of \(co.
9096         * pic/object.c (make_arc): Only increase radius when radius
9097         strictly less than d.
9098         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
9099         more than once.
9101         * troff/env.c (environment::environment(symbol),
9102         environment::environment(const environment *)):  Initialize
9103         input_trap_count.
9105 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
9107         * tbl/main.c (main): Add exit(0).
9109         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
9111         * pic/main.c (main):
9112         * eqn/main.c (main):
9113         * tbl/main.c (main):
9114         * etc/soelim.c (main):
9115         * driver/printer.c (printer::~printer):
9116         * troff/node.c (real_output_file::~real_output_file,
9117         real_output_file::flush):  Check for errors on stdout.
9119         * most files: Add 1991 to copyright notice.
9121         * macros/tmac.s: Don't test \n(.x and \n(.y.
9123         * troff/input.c (token::next): Rename `escape_char' label to
9124         `handle_escape_char' and `normal_char' label to
9125         `handle_normal_char'.
9127 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
9129         * groff.c (main, synopsis, help): Support -a option.
9130         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
9131         to trflags while parsing options.
9133 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
9135         * troff/number.c (parse_term): With `m', `M' and `n' scale
9136         indicators, convert scale factor to hunits before scaling.
9138 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
9140         * lib/font.c (scale_round): Better test for overflow when n is
9141         negative.
9143 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
9145         * tbl/main.c (process_format): Add second argument of type
9146         options*. Change callers.  Allow opt->tab_char as well as '\t'
9147         between format items.
9149 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
9151         * macros/tmac.an (PD): With no arguments, make sure register PD is
9152         at least \n[.V].
9153         (TH): Call PD with no argument, instead of setting register PD
9154         directly.
9156 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
9158         * Version 1.00 released.
9160 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
9162         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
9164         * dvi/devdvi/DESC: Mount CW instead of CR.
9166         * dvi/tmac.dvi: Add definition of \(tm.
9168         * dvi/devdvi/texsy.map: Add lh, and rh.
9169         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
9170         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
9172         * dvi/devdvi/FontMakefile: Generate H from cmss10.
9173         * dvi/devdvi/Makefile: Install H.
9174         * dvi/devdvi/H: New file.
9176 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
9178         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
9179         be 0.
9181 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
9183         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
9185         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
9187         * macros/tmac.s (@EN): Handle the case where the equation is empty
9188         but the label is not.
9190 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
9192         * troff/groff.h: New warning category WARN_SPACE.
9193         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
9194         WARN_SPACE to warning_table.
9195         (interpolate_macro): Give a warning of type WARN_SPACE if the name
9196         is longer than two characters and is not defined, but the first
9197         two characters do make a defined name.
9199         * PROBLEMS: New file.
9201         * CHANGES: New file.
9202         * README-0.6, README-1.00: Deleted.
9204         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
9205         * xditview/devX75/Makefile: Make devX75-12.
9206         * xditview/devX100/Makefile: Make devX100-12.
9208         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
9209         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
9211 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
9213         * README-0.7: Rename to README-1.00.
9215         * macros/tmac.pic: New file.
9216         * macros/Makefile (install.nobin): Install tmac.pic.
9218 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
9220         * troff/env.c (hyphen_word): Correct the test for whether the
9221         token is a hyphen.  Reset npos to 0.
9223         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
9225 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
9227         * macros/tmac.s (ds*common-end): Call par*reset.
9228         (PE): Likewise.
9229         (par@reset-indent): Deleted.
9231         * macros/tmac.s (@IP): Divert the label.
9233 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
9235         * xditview/draw.c (setGC): Use a line width of .1m rather than
9236         .04m by default; round rather than truncate value.
9238         * tbl/table.c (class empty_entry): New class.
9239         (empty_entry::empty_entry, empty_entry::line_type): New functions.
9240         (table::add_entry): Represent empty entries by objects of type
9241         empty_entry.
9242         (table_entry::line_type): Return -1.
9243         (table::determine_row_type): Ignore entries with line_type 0.
9244         Treat type -1 as non-lines.
9246 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
9248         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
9249         macros/tmac.s: Rename \(-d to \(Sd.
9251 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
9253         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
9254         * xditview/libXdvi/DviChar.c: Likewise.
9255         * dvi/devdvi/texsy.map: Add `<<', `>>'.
9257 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
9259         * troff/div.c (top_level_diversion::begin_page): Call
9260         init_output() if the_output is 0.
9262 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
9264         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
9265         ESCAPE_c.
9266         (get_copy): Turn \E into ESCAPE_E.
9267         (token::process, asciify): Handle ESCAPE_E.
9269         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
9270         (RD): New macro.
9271         (DS): Implement `.DS R'.
9273 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
9275         * macros/tmac.s (FS): New macro.
9277         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
9279         * macros/tmac.s (cov*tl-init): Remove after first execution
9280         instead of aliasing to @nop.  Call top of page macro explicitly
9281         instead of setting trap; call @init first.  Set pg@top as top of
9282         page macro.
9283         (cov*auto-init): Deleted.  Set cov*tl-init instead of
9284         cov*auto-init as top of page trap. 
9285         (TL, LP): Do a break instead of calling cov*tl-init.
9286         (cov*print): With RP format but no TL, alias FS and FE to @FS and
9287         @FE; in this case also give a warning and always start another
9288         page. No need to set pg@top here.
9289         (cov*tl-init): Rename to cov*first-page-init.
9291         * macros/tmac.s (RP): Do `.pn 0'.
9292         (cov*tl-init): With RP format don't do `.pn 0'.
9294         * macros/tmac.s (pg@cs-top): Set no space mode.
9296         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
9297         (cov*ab-init): Alias TL, AU and AI to these.
9299 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
9301         * macros/tmac.s (@EQ): Move the space before the equation into @EN
9302         (@EN): Do nothing unless \n[dl] is > 0.
9304 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
9306         * pic/object.c (ellipse_object::radius): New function.
9308         * VERSION: Change version to 0.7.
9310         * tbl/table.c (block_entry::do_divert): Declare return type as
9311         void.
9312         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
9314 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
9316         * troff/column.c: New file.
9317         * troff/Makefile: Corresponding changes.
9319         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
9320         Friend of vunits.
9322         * troff/div.c (top_level_diversion::space): If the space causes
9323         the first-page transition and springs a trap, truncate the space
9324         to 0.
9326 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
9328         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
9329         the document.
9331         * pic/troff.c (troff_output::line_thickness,
9332         troff_output::set_fill): Do a horizontal motion to compensate for
9333         the width of the \D escape sequence.
9335 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
9337         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
9338         (not X75).
9340         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
9341         to printf.
9343         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
9344         Supply empty definition.
9345         (text_entry::simple_print, simple_text_entry::simple_print):
9346         Delete declarations.
9347         (table::add_entry): Represent empty entries by objects of type
9348         `simple_entry'.
9350 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
9352         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
9354         * tbl/table.c (left_text_entry::add_tab): New function.
9356         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
9357         initialize like LP.
9359 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
9361         * troff/env.c (environment::start_field): Give an error message if
9362         there is no next tab.
9364 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
9366         * troff/env.c (hyphenate): Skip initial elements with zero
9367         hyphenation code.
9369         * macros/tmac.s (par@init): Keep VS in points rather than units.
9371 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
9373         * pic/main.c (main): Implement `-c' option.
9374         * pic/output.h: Declare make_tpic_output().
9375         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
9376         protected.
9377         (tpic_output): New class.
9378         (tpic_output::tpic_output, tpic_output::set_pen_size,
9379         tpic_output::command, make_tpic_output): New functions.
9381 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
9383         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
9384         if they're not already defined.
9385         * tbl/table.c (init_output): Don't test \n(.g.
9387         * troff/input.c (do_if_request): Delete `g' condition. Recognize
9388         `d', `r' and `c' conditions even in compatibility mode.
9390 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
9392         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
9393         box.
9395 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
9397         * troff/env.h (environment::prev_line_interrupted): New member.
9398         (environment::get_prev_line_interrupted): New function.
9399         * troff/env.c (environment::newline): Set prev_line_interrupted.
9400         (environment::environment(const environment *),
9401         environment::environment(symbol)): Initialize
9402         prev_line_interrupted.
9403         * troff/input.c (process_input_stack): Don't give special
9404         treatment to space and newline at the beginning of the line if the
9405         previous line was interrupted.
9407 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
9409         * eqn/eqn.y: Disallow PRIME by itself.
9410         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
9411         PRIME.
9412         (def_table): Remove definition of '.  Define prime to be `.
9414         * eqn/eqn.y: Split off part of rule `script' into a new rule
9415         `nonsup'.
9417 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
9419         * macros/tmac.s ({, }): New string aliases.
9421 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
9423         * README-0.7: New file.
9425 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
9427         * macros/tmac.s: New file.
9428         * man/groff_ms.man: New file.
9429         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
9430         * Makefile.bd: Similarily.
9431         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
9432         definition of TMAC_S.
9433         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
9434         * macros/TODO: New file.
9436 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
9438         * troff/env.c (right_justify): New function.
9439         (init_env_requests): Bind this to request "rj".
9440         (center_lines): Set right_justify_lines to 0. If we get a bad
9441         integer, center 1 line.
9442         (environment::environment(symbol), environment::environment(const
9443         environment *)): Initialize right_justify_lines.
9444         (environment::get_right_justify_lines): New function.
9445         (init_env_requests): Bind this to number_register ".rj".
9447         * troff/env.c (environment::choose_breakpoint): Implement
9448         hyphenation_margin and hyphenation_space.
9449         (environment::get_hyphenation_space,
9450         environment::get_hyphenation_margin): New functions.
9451         (init_env_requests): Bind these to .hys and .hym.
9452         (hyphenation_space_request, hyphenation_margin_request): New
9453         functions
9454         (init_env_requests): Bind these to hys and hym.
9455         (environment::environment(symbol), environment::environment(const
9456         environment *)): Initialize hyphenation_margin and
9457         hyphenation_space.
9458         * troff/env.h: Corresponding changes to class environment.
9460 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
9462         * troff/div.c (blank_line): Always do a break.
9464         * eqn/box.c (do_text): Turn off escapes while appending text to
9465         string.
9467 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
9469         * troff/input.c (while_break_request, while_continue_request): New
9470         functions.
9471         (init_input_requests): Bind these to "break" and "continue".
9472         (while_depth, while_break_flag): New variables.
9473         (while_request): Update while_depth.  Break out of loop if
9474         while_break_flag is set.
9476 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
9478         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
9479         rather than 0.
9481 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
9483         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
9485         * stringify: New file.
9486         * Makefile (groff.o): Use stringify.
9488         * xditview/tmac.X: Remove definition of \(rn.
9489         * xditview/libXdvi/DviChar.c: Remove radicalex from
9490         Adobe_symbol_map.
9492 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
9494         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
9495         (alphabetic_block_entry::alphabetic_block_entry,
9496         alphabetic_block_entry::divert, alphabetic_block_entry::print):
9497         New functions.
9498         (block_entry::divert): Split off body into ...
9499         (block_entry::do_divert): If the block is alphabetic, subtract 2n
9500         from the line length; also update the span width to dl+2n, and the
9501         alphabetic span width to dl.
9503         * driver/input.c (do_file):  While reading argument to D command,
9504         when expanding buffer, multiply szp by sizeof(int) rather than 2
9505         in the argument to memcpy.
9507         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
9508         width of alphabetic columns.
9510 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
9512         * troff/node.c (lookup_family): Supply second argument to lookup.
9514         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
9515         search, return immediately if v is 0.
9517         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
9518         (troff_output::start_picture): Set this reg.
9519         (troff_output::end_picture): Remove this reg
9520         * eqn/box.c (box::extra_space): Don't produce `\x's if
9521         EQN_NO_EXTRA_SPACE_REG is defined.
9523         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
9524         * eqn/text.c (split_text): Map ' to \(fm when it's the first
9525         character.
9527 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
9529         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
9530         requests.
9532         * troff/div.c (top_level_diversion::top_level_diversion):
9533         Initialize page_number to 0.
9535 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
9537         * groff/troff (environment::environment(const environment *)):
9538         Initialize name to e->name, rather than "anonymous".
9540 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
9542         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
9543         requested_page.  Split middle part into ...
9544         (FindPage): New function.
9545         (SetValues): If we don't yet know the last page, and the requested
9546         page is greater than the current page, call FindPage.
9547         Update the font_map_string before doing this.
9549         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
9550         Translate \(lh and \(rh into left and right double arrows.
9552         * troff/node.c (class hyphen_inhibitor_node): New class.
9553         (hyphen_inhibitor_node::hyphen_inhibitor_node,
9554         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
9555         hyphen_inhibitor_node::type,
9556         hyphen_inhibitor_node::get_hyphenation_type): New functions.
9557         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
9558         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
9559         word.
9561 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
9563         * troff/node.h (dummy_node::get_hyphenation_type,
9564         transparent_dummy_node::get_hyphenation_type):  Declare them.
9565         * troff/node.c: (dummy_node::get_hyphenation_type,
9566         transparent_dummy_node::get_hyphenation_type): New functions.
9568 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
9570         * xditview/libXdvi/draw.c: If M_PI not defined after including
9571         math.h, then define it.
9573         * xditview/Makefile: Add definition of AR. Pass it to the submake
9574         in libXdvi.
9575         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
9577 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
9579         * troff/dictionary.h (object_dictionary::alias): Declare return
9580         value as int.
9581         * troff/dictionary.c (object_dictionary::alias): Return non-zero
9582         if the old name was defined.
9583         * troff/input.c (alias_macro): Give a warning if the old name was
9584         not defined.
9585         * troff/reg.c (alias_reg): Likewise.
9587 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
9589         * troff/input.c (token::next): Delete implementation of \R.
9591         * macros/Makefile: Strip comments from tmac.e while installing it.
9593         * troff/input.c: New variable `nroff_mode'.
9594         (troff_request, nroff_request): New functions.
9595         (init_input_requests): Bind `troff' and `nroff' to troff_request
9596         and nroff_request.
9597         (do_if_request): Compute results of t and n conditions from
9598         nroff_mode.
9600         * text/text.c (split_text): Fix typo in >=.
9602         * eqn/lex.c: Add definition of `==' to def_table.
9604 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
9606         * pic/tex.c (tex_output::start_picture): Change the definitions of
9607         \graph and \graphtemp so that they work properly with Plain TeX.
9609         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
9610         argument to `ar' is not less than the first.
9612         * pic/pic.y: Allow a comma between elements of the variable list
9613         in the argument to `reset'.
9615         * pic/object.c (arc_object::arc_object): Fix computation of
9616         radius.
9618         * eqn/main.c (main): Add exit(0).
9620 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
9622         * troff/div.c (begin_page): Test no_space_mode after doing the
9623         break, but still push the page ejector cookie before doing the
9624         break.  Also set the next page number after doing the break.
9625         
9626         * xditview/xditview.c (NewFile): Don't set the title and icon name
9627         if this is the first file and its name is `-'.
9628         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
9629         the X75 and X100 devices.
9630         (main): If a device has the XT_OPTION flag set and there's exactly
9631         one file argument, pass the driver -xrm and -title options to set
9632         the icon name and window title to the name of the file.
9634         * troff/env.c (environment_switch): If there was an argument but
9635         it wasn't a valid number or name, then pop an environment but
9636         don't give an error message on underflow.
9638         * troff/number.c (start_number): Correct spelling in error message.
9640         * troff/input.c (token::delimiter): Don't print an error message
9641         if err is false.
9643         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
9644         ParseDrawFunction if dw->display_enable is true.
9646 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
9648         * pic/pic.y: Parse text positioning like normal attributes, so as
9649         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
9650         positioning attribute.
9652 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
9654         * tbl/main.c (process_data): When in state START while reading a
9655         text block, don't change to state MIDDLE if c is a newline.
9657 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
9659         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
9660         so as to avoid shadowing parameter.
9662 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
9664         * tbl/table.c (trim_space): Deleted.
9665         (table::add_entry): Don't call trim_space.
9667 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
9669         * VERSION: Change version to 0.6.
9671         * troff/number.c (parse_expr): Make == work.
9673 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
9675         * man/grog.man: New file.
9676         * man/Makefile: Add grog.n to MAN1PAGES.
9677         * etc/grog.sh: New file.
9678         * etc/Makefile: Install grog.sh as grog.
9680 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
9682         * troff/input.c (token::next): Implement \E.
9684 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
9686         * xditview/tmac.X: Change font translations to match tmac.ps.
9688         * troff/input.c (non_empty_name_warning): Don't give a warning if
9689         `\{' terminates the name.
9691 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
9693         * ps/devps/symbol.diff: New file.
9694         * ps/devps/FontMakefile: Mention symbol.diff.
9696 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
9698         * troff/node.c (font_position): Use get_long_name to read the
9699         external_name.
9701         * troff/env.c (environment_switch): If we get a number that's < 0
9702         or >= NENVIRONMENTS, treat it like a name.
9703         Change NENVIRONMENTS to 10.
9705         * troff/groff.h: Remove definition of FONTS_MAX.
9706         * troff/node.h (class font_family): Make map a pointer instead of
9707         an array. Add a map_size member. Make it a class. Make nm const
9708         and public. Make invalidate_fontno a friend.
9709         * troff/node.c: Define font_table_size. Make font_info a pointer
9710         rather than an array.
9711         (class troff_output_file): Allocate font_position dynamically. Add
9712         nfont_positions member.
9713         (troff_output_file::set_font): Grow font_position if necessary.
9714         (troff_output_file::~troff_output_file): Delete font_position.
9715         (troff_output_file::troff_output_file): Allocate font_position.
9716         (grow_font_table): New function.
9717         (troff_output_file::really_begin_page,
9718         troff_output_file:really_copy_page): Use nfont_positions rather
9719         than FONTS_MAX.
9720         (mount_font_no_translate, mount_style): Call grow_font_table if
9721         necessary.
9722         (font_family::font_family): Allocate map.
9723         (font_family::make_definite): Grow map if necessary. Use
9724         font_table_size instead of FONTS_MAX.
9725         (font_family::~font_family): New function.
9726         (invalidate_fontno): Use font_family::map_size.
9727         (get_fontno, env_space_width, env_half_narrow_space_width,
9728         env_narrow_space_width, symbol_fotno, is_good_fontno,
9729         get_bold_fontno, make_glyph_node): Use font_table_size rather than
9730         FONTS_MAX.
9731         (next_available_font_position): Never return 0.
9733 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
9735         * ps/tmac.ps: Add font translations for compatibility with dpost.
9737 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
9739         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
9740         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
9741         Move definitions baseline_sep, shift_down, column_sep,
9742         matrix_side_sep into...
9743         * eqn/box.c: Add them to param_table.
9744         * eqn/pbox.h: Add declarations to pbox.h.
9746         * troff/input.c (set_string): Cast value to unsigned char *.
9748         * troff/token.h (process_input_stack): Declare it static before
9749         declaring it a friend.
9751 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
9753         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
9754         and bottom.
9755         * dvi/devdvi/EX: Regenerate.
9757         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
9758         transparent.
9760 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
9762         * eqn/lex.c: In defaults_table, make definition of `dot' call
9763         `dot_def'.  Don't explicitly make it roman.  Similarily for other
9764         accents.
9766         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
9767         argument.
9768         (for_input::get, for_input::peek): Use this.
9769         (do_for): Add by_is_multiplicative argument.
9770         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
9771         Change semantic value of optional_by to be a double plus a flag
9772         saying whethet the by clause is multiplicative.
9774         * eqn/lex.c (get_delimited_text): Remember location of start of
9775         definition.  Improve error handling when EOF is encountered.
9777         * lib/font.h: Rename handle_x_command to
9778         handle_unknown_font_command.
9779         * lib/font.c (font::load): Call handle_unknown_font_command for
9780         any unknown command in the font description file.  Don't call
9781         handle_x_command. Include the name of the command in the argv.
9782         Improve message for unknown command after kernpairs or charset
9783         command.
9784         * ps/ps.c (ps_font::handle_x_command): Rename to
9785         handle_unknown_font_command.  Remove message about `x download'
9786         command.  Give error message for wrong number of arguments.
9787         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
9788         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
9789         handle_unknown_font_command. Give an error message for wrong
9790         number of arguments.  Rename design_size to designsize.
9791         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
9792         checksum', `designsize' instead of `design_size'.
9794 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
9796         * eqn/*.[chy]: Change underaccent to uaccent.
9798         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
9799         give it the same precedence as ACCENT.
9800         * eqn/other.c (make_underaccent_box): New function.
9801         * eqn/box.h: Declare it.
9802         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
9803         def_table.
9805 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
9807         * pic/pic.y (reset_all): New function. Called in rule for RESET.
9808         (parse_init): Call reset_all.
9809         (define_variable): When defining scale reset only those
9810         pre-defined variables that are scaled.
9811         (defaults_table): Add `scale' as non-scaled value.
9813         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
9814         together with the text; allow any number of positioning words;
9815         allow center as a positioning word.
9817         * pic/object.c (output::compute_scale): Get picture maximum height
9818         and width from variables called maxpswid and maxpsht.
9819         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
9821 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
9823         * pic/object.c (object_spec::make_text): Multiply textht by number
9824         of text items.
9826         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
9827         occur.
9828         (do_sprintf): New function.
9829         (pic.gperf): Add sprintf token.
9830         (text, sprintf): New rules.
9832         * pic/pic.y: `rand()' with no arguments returns a random number
9833         in the range [0,1).
9835         * pic/pic.y: Allow a bare expression to be an attribute: change
9836         precedences to support this.  Change optional_ordinal rule to
9837         optional_ordinal_last to avoid reduce/reduce conflict.
9838         * pic/object.c (object_spec::object_spec): Initialize direction.
9840         * pic/pic.y: Implement ^ operator meaning exponentiation.
9842         * troff/node.h: Add default argument to mount_font.
9843         * troff/node.c (font_position): Read an optional third argument
9844         giving the external_name.
9845         (mount_font): Add optional argument giving the external_name.
9846         (mount_font_not_translate): Have additional argument giving
9847         external name.  Use this name to load the font.  Pass both names
9848         to font_info::font_info.
9849         (font_info::font_info): Have additional argument giving
9850         external_name.
9851         (class tfont): New member external_name.
9852         (font_info::get_tfont): Use external name to construct tfont_spec.
9854 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
9856         * eqn/lex.c (init_table): Add argument giving device.  Define
9857         name of device to be "1".
9858         (do_ifdef): Counts as true if the argument has been defined with
9859         `define'.
9860         * eqn/main.c (main): Call init_table with device argument. Make
9861         device local to main.
9862         * eqn/eqn.h: Change declaration of init_table. Remove declaration
9863         of device.
9865         * pic/lex.c (get_delimited): Allow text to be delimited by
9866         matching {}s.  Don't recognize ending delimiter within a string.
9868         * troff/input.c (get_delim_name): New function.
9869         (token::next): Implement \C.
9871         * lib/font.c (font::load): Grok ---.  Add an alias for each
9872         character based on its code.
9873         (font::get_code_width): Deleted.
9874         * lib/font.h (class font): Declare font::number_to_index().
9875         Remove declaration of font::get_code_width.
9876         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
9877         to indices of named characters.
9878         (font::number_to_index): New function.
9879         * troff/input.c (font::number_to_index): New function.
9880         (get_charinfo_by_number, charinfo::get_number,
9881         charinfo::set_number): New functions.
9882         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
9883         (token::process, token::description, token::get_char,
9884         token::add_to_node_list, token::operator==): Handle
9885         TOKEN_NUMBERED_CHAR.
9886         * troff/charinfo.h: Declare get_charinfo_by_number,
9887         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
9888         charinfo class.
9889         (charinfo::numbered): New function.
9890         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
9891         * troff/env.h (class environment): Remove declaration of ...
9892         * troff/env.c (environment::make_numbered_char_node): Deleted.
9893         * troff/node.c (make_numbered_node): Deleted.
9894         (class numbered_glyph_node): Remove.
9895         (troff_output_file::put_char_width, troff_output_file::put_char):
9896         Handle numbered chars.
9897         (troff_output_file::numbered_char): Removed.
9898         (tfont::get_code_width): Removed.
9899         (make_glyph_node): Don't search special fonts for numbered
9900         characters.
9901         * troff/node.h: Remove declaration of make_numbered_node.
9902         * driver/input.c (do_file): Handle N command.
9903         * driver/printer.h: Add declaration of ...
9904         * driver/printer.c (printer::set_numbered_char): New function.
9905         * dvi/tfmtodit.c (main): Generate unnamed entries.
9906         * ps/devps/afmtodit: Likewise.
9907         * xditview/xtotroff.c (MapFont): Likewise.
9908         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
9910         * tbl/main.c (process_format): If multiple widths are specified
9911         for a column but all the widths are the same, don't give an error
9912         message.
9914         * tbl/table.c (table::do_row): If the current row is all lines and
9915         the stuff doesn't contains a line, mark the top of the row after
9916         printing stuff before the row.  If the current row is not all
9917         lines and the stuff doesn't contain a line, don't unnecessarily
9918         mark the top of the row before printing the stuff.
9919         
9920 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
9922         * troff/groff.h: Remove MAX_PATH.
9923         * troff/input.c (open_file): Dynamically allocate space for the
9924         path.
9925         (open_mac_file, process_macro_file): Corresponding changes.
9927 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
9929         * troff/node.h (class output_file): Make copy_file pure.  Add
9930         vspace method ifdef COLUMN. Add is_printing method.
9931         * troff/node.c: Add class printing_reg. Add class
9932         real_output_file. Derive other output_file classes from
9933         real_output_file; in these classes rename begin_page to
9934         really_begin_page, print_line to really_print_line, copy_file to
9935         really_copy_file, transparent_char to really_transparent_char.
9936         Move output_file::flush to real_output_file. Add printing member
9937         to class output_file.
9938         * troff/div.h: Remove printing member from top_level_diversion.
9939         Add vspace member function to class diversion ifdef COLUMN. Add
9940         some declarations ifdef COLUMN.
9941         * troff/div.c (top_level_diversion::copy_file,
9942         top_level_diversion::transparent_output,
9943         top_level_diversion::output): Don't test printing member before
9944         output.
9945         * troff/input.c: Handle initial variable_space_request ifdef
9946         COLUMN.
9947         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
9948         but comment it out.
9950 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
9952         * troff/div.c (diversion::need): Make any space forced.  If we
9953         sprung a trap, set truncated_space to minus the distance to the
9954         trap and set needed_space to the amount that was needed.
9955         (top_level_diversion::space): A forced space turns no_space_mode
9956         off.
9957         (class constant_vunits_reg): New class.
9958         (init_div_requests): Implement number registers .trunc and .ne
9959         using constant_vunits_reg.
9960         (class truncated_space_reg): Deleted.   
9962         * troff/div.h: Don't have a no_space_mode member in diversion.
9963         Instead have it in top_level_diversion.
9964         * troff/div.c (diversion::diversion): Don't initialize
9965         no_space_mode.
9966         (top_level_diversion::top_level_diversion): Initialize
9967         no_space_mode.
9968         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
9969         (macro_diversion::output): Don't clear no_space_mode.
9971         * troff/input.c (diverted_space_node::reread): Don't call
9972         environment::do_break.  In fill mode, act like a blank line.
9973         (diverted_copy_file_node::reread): Don't call
9974         environment::do_break.
9976         * troff/div.c (blank_line): New function.
9977         * troff/div.h: Declare it.
9978         * troff/input.c (process_input_stack): Call it.
9980         * troff/div.c (truncated_space_reg::get_string): New function.
9981         (init_div_requests): Bind to .trunc.
9982         (space_request, top_level_diversion::space,
9983         top_level_diversion::output, macro_diversion::space,
9984         macro_diversion::output): Update truncated_space.
9985         (macro_diversion::output): Redo calculations when trap sprung.
9986         (macro_diversion::output, macro_diversion::space): No need for
9987         trap_flag.
9989         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
9990         after truncating post line spacing.
9992 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
9994         * ps/devps/prologue (MF, SF): Make them work even if setfont is
9995         defined as a procedure rather than as an operator.
9997 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
9999         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
10001 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
10003         * troff/div.c (top_level_diversion::output): Merge
10004         output_file::print_line and output_file::end_of_line member
10005         functions.
10006         * troff/div.h (class output_file):
10007         * troff/node.c (troff_output_file::print_line,
10008         troff_output_file::end_of_line, output_file::end_of_line,
10009         ascii_output_file::print_line, suppress_output_file::print_line):
10010         Corresponding changes.  
10012 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
10014         * troff/input.c (token::next): Don't give a warning for `\.'.
10016         * troff/env.c (environment::get_center_lines): New function.
10017         (init_env_requests): Bind number register .ce to it.
10018         * troff/env.h: Declare it.
10019         * tbl/table.c (table::init_output): Define reset macro to restore
10020         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
10021         Then do .ce 0.
10022         (table::print): If center option not given, then imply center
10023         option if SAVED_CENTER_REG > 0.
10025 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
10027         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
10028         Troff.ps from DOWNLOAD.
10029         
10030         * troff/Makefile: Change comment in DEFINES to avoid confusing
10031         System V make.
10033         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
10034         code.  Don't try to catch errors with stopped.
10035         (check_line_lengths): New function.
10036         * ps/devps/prologue (EXEC): Deleted.
10037         (EBEGIN, EEND): New procedures.
10039 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
10041         * troff/input.c: Include request.h before node.h.
10042         * troff/node.c: Likewise.
10043         * troff/env.c: Likewise.
10044         * troff/div.c: Likewise.
10045         * troff/node.h (class special_node): Store argument as a macro
10046         rather than a char *.
10047         * troff/node.c (special_node::special_node, special_node::copy):
10048         Grok this.
10049         (special_node::~special_node): Deleted.
10050         (special_node::tprint): Deleted.
10051         (special_node::tprint_start, special_node::tprint_end,
10052         special_node::tprint_char): New functions.
10053         (troff_output_file::special): Deleted.
10054         (troff_output_file::start_special, troff_output_file::end_special,
10055         troff_output_file::special_char): New functions.
10056         * troff/input.c (special_node::tprint): New function.
10057         (do_special): Use macro not char *.
10058         (do_transparent_macro): Deleted.
10059         (token::next): Don't call do_transparent_macro.
10061         * troff/input.c (token::next): Add 'Y' case.
10062         (do_transparent_macro): New function.
10063         * troff/node.c (troff_output_file::special): Handle newlines with
10064         argument using new continuation convention.
10065         * driver/input.c (get_string): Cope with continuation convention.
10066         (do_file): Don't call skip_line after calling get_string(1).
10067         * ps/ps.c (ps_printer::special, ps_printer::do_import,
10068         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
10069         arg.
10070         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
10071         with +.
10073 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
10075         * troff/input.c (asciify): By default, illegal input characters
10076         should return empty string.
10078         * troff/input.c (copy_file): Handle first page transition like title.
10079         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
10081         * troff/input.c (token::next): Improve error message for EOF after
10082         escape character.
10083         (input_char_description): New function.
10084         (get_char_for_escape_name): Use input_char_description.
10085         (token::next): Warn about unrecognized escape sequences.
10086         (warning_table): Add WARN_ESCAPE.
10087         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
10088         accordingly.
10090         * troff/token.h: Remove declaration of process_input_stack.
10092         * troff/input.c: Remove declaration of init_hyphen_requests.
10093         * troff/request.h: Correct spelling in declaration of same.
10095         * troff/input.c (token::next): Check whether escape_char is 0.
10097 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
10099         * groff.c (main, usage, help): Implement -P and -L options.
10100         * groff.sh: Likewise.
10102         * troff/input.c (token::next): Use some gotos to avoid code
10103         duplication.
10105         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
10106         Avoid calling symbol::symbol if name empty.
10108 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
10110         * troff/input.c (init_input_requests): Make \n(.x return the major
10111         version number and \n(.y return the minor version number.
10112         * troff/Makefile: Construct file majorminor.c defining
10113         major_version and minor_version automatically from ../VERSION.
10115         * troff/node.c (class glyph_node): Make operator new and operator
10116         delete public.
10117         (class ligature_node): Similarily.
10119         * troff/input.c (operator==(const macro &, const macro &)): New
10120         function.
10121         (non_interpreted_node::same): Use this.
10122         (string_iterator::string_iterator): Make macro& argument const.
10124         * troff/input.c (input_iterator::get): New function. Don't make
10125         asciify_macro or class non_interpreted_node friends of class
10126         input_iterator.
10127         (non_interpreted_node::interpret): Use input_iterator::get.
10128         (asciify_macro): Likewise.
10130         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
10131         ~non_interpreted_node): Deleted.
10132         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
10133         Deleted.
10135         * troff/symbol.h: Make all symbol member functions const.
10137         * lib/strtol.c: New file.
10138         * lib/Makefile: Add strtol.c.
10139         * Makefile: Define STRTOL as strtol.o to include strtol in
10140         libgroff.a.
10142 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
10144         * pic/troff.c (troff_output::simple_circle): Divide by scale.
10146 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
10148         * troff/input.c (do_special): Use input_level.
10150         * troff/token.h (TOKEN_BACKSPACE): New token.
10151         (token::backspace): New function.
10152         * troff/input.c (token::description, token::next, token::process):
10153         Grok TOKEN_BACKSPACE.
10154         (do_special): Turn TOKEN_BACKSPACE back into \b.
10156         * troff/token.h (token::leader): New function.
10157         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
10159         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
10161         * troff/input.c (do_special): Use token::description in error
10162         message.
10164 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
10166         * troff/input.c (decode_args): Combine quoted and
10167         quote_input_level variables. Make it a for (;;) loop.
10169         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
10171         * troff/input.c (read_long_escape_name): The test for whether to
10172         expand buffer was off by 1.
10173         (read_string): Similarily.
10175 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
10177         * troff/input.c: Use `const int' rather than `static const int'.
10179         * troff/div.h (diversion::copy_file): Declare as pure virtual.
10180         (macro_diversion::copy_file): New function.
10181         * troff/node.h: New class diverted_copy_file_node.
10182         * troff/node.c: Implement it.
10183         * troff/input.c (copy_file): Use diversion::copy_file. Handle
10184         first page transition by pushing a diverted_copy_file_node.
10185         * troff/input.c (token::next, process_input_stack): Don't handle
10186         COPY_FILE_REQUEST.
10188 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
10190         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
10191         whether space widths need adjusting.
10193         * troff/charinfo.h: Generalize translated_to_space to
10194         special_translation so as to allow translation to \&.
10195         * troff/input.c (translate): Allow translation to \&.
10196         (charinfo::*): Corresponding changes.
10197         * troff/node.c (make_node, node::add_char): Corresponding changes.
10198         * troff/node.h (dummy_node::dummy_node): Allow optional first
10199         argument.
10201         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
10202         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
10203         TOKEN_REQUEST.
10204         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
10205         TOKEN_REQUEST with an argument of TITLE_REQUEST.
10206         (token::process): Grok that.
10207         * troff/input.c (copy_file): Handle first page transition like
10208         title by pushing a COPY_FILE_REQUEST cookie.
10209         (token::next, process_input_stack): Grok that.
10210         * troff/node.h (output_file::copy_file): Add x and y arguments.
10211         Make it non-pure.
10212         * troff/div.c (top_level_diversion::copy_file): Supply them.
10213         * troff/node.c (troff_output_file::copy_file): Add x and y
10214         arguments; moveto specified position.  Invalidate font_position
10215         array after copying file.
10216         (output_file::copy_file): New function.
10217         (suppressed_output_file::copy_file, ascii_output::copy_file):
10218         Removed.
10219         * troff/input.c (transparent_file): New function.
10220         (init_input_requests): Bind to "trf".
10221         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
10222         (process_input_stack): Likewise.
10224         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
10226         * troff/node.c (init_node_requests): New number registers .kern
10227         pointing to global_kern_mode, and .lg pointing to
10228         global_ligature_mode.
10230         * troff/node.c (ligature): Don't change it if we get a bad
10231         integer.
10233         * troff/input.c (do_define_string): Don't strip tabs.
10235         * troff/input.c (asciify_macro): Make the string_iterator auto.
10237         * troff/node.c (init_font_requests): Rename to...
10238         (init_node_requests):
10239         * troff/node.h: Change declaration.
10240         * troff/input.c (main): Change call.
10242         * troff/input.c (node::reread, diverted_space_node::reread): New
10243         methods.
10244         (process_input_stack): Call reread rather than
10245         get_diverted_space_node.
10246         * troff/node.c (node::get_diverted_space_node,
10247         diverted_space_node::get_diverted_space_node): Removed.
10248         * troff/node.h: Declare reread methods instead of
10249         get_diverted_space_node methods. Make `n' member private.
10250         * troff/input.c: (token::diverted_space): Removed.
10251         * troff/token.h: Removed declaration.
10252         
10254 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
10256         * eqn/script.c (script_box::compute_metrics): Don't let
10257         SUP_RAISE_FORMAT become negative.
10259         * tbl/table.c (table::do_row): Entries that don't end in the
10260         this row shouldn't make the row non-blank.
10261         
10262         * tbl/table.c (table::make_columns_equal): Only set the width of
10263         columns which are marked as equal.
10264         
10265         * tbl/main.c (process_data): Before issuing excess data error,
10266         if last character was a newline unget it; then get it again after
10267         the error.  Also include the contents of the entry in the message.
10269         * groff.c: New file.
10270         * Makefile: Build groff from groff.c.  Make it possible to use
10271         either groff.sh or groff.c as groff.
10272         * Makefile.bd: Similarily.
10274 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
10276         * groff.sh: Don't delay expansion of $@ in assignment to files.
10277         Remove occurrences of \".
10279 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
10281         * all Makefiles: Simplify and rearrange.
10283         * Makefile: Handle fmod like malloc.
10284         * lib/Makefile: Similarily.
10285         * lib/fmod.c: Remove #ifdef NEED_FMOD.
10287         * Makefile: Rename OPTIMISE to OPTIMIZE.
10289         * groff.sh: Remove assignment to PATH.
10290         * Makefile: Remove SHPATH variable.
10291         * Makefile.bd: Similarily.
10293         * groff.sh: Add -V option to print the pipeline instead of
10294         executing it.
10296 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
10298         * lib/font.c: Split off file searching into ...
10299         * lib/fontfile.c: New file.
10301         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
10303 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
10305         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
10306         Also change misleading comment.
10307         (table::do_vspan): Change similarily misleading comment.
10308         * tbl/main.c (process_data): A format row with an explicit `s'
10309         uses up a data line, even if all the other columns are `_' or `='.
10311         * troff/input.c (token::description): Fix description of
10312         TOKEN_DUMMY and TOKEN_EMPTY.
10314 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
10316         * groff.sh: Fix description of -Z in help message.
10318 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
10320         * pic/object.c (object_spec::make_object): Allow negative and zero
10321         line thicknesses.
10322         * pic/pic.y: Give linethick default value of -1.0.
10323         * pic/troff.c (troff_output::troff_output): Initialize
10324         last_line_thickness to BAD_THICKNESS.
10325         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
10326         (troff_output::line_thickness): Canonicalize negative thicknesses
10327         to RELATIVE_THICKNESS.
10328         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
10329         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
10330         to -1.0.
10331         (tex_output::start_picture): Set pen_size to -2.0.
10333         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
10334         0, then use 0 linewidth.
10335         (ps_printer::ps_printer): Initialize line_thickness to -1.
10337         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
10339         * ps/devps/symbolchars: Remove `or'.
10340         * ps/tmac.ps: Implement \(or with .char.
10342         * ps/devps/symbolchars: Move most characters into textmap.
10343         * ps/devps/textmap: Add names for troff bracket characters. Remove
10344         ul, ru, br, bv.
10346         * ps/devps/TSymbol.ps: Removed.
10347         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
10348         * ps/tmac.ps: Do with .char what TSymbol did.
10349         * ps/devps/download: Remove TSymbol.
10351         * ps/devps/T: Removed.
10352         * ps/devps/Troff.ps: Removed.
10353         * ps/devps/Troff.afm: Removed.
10354         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
10355         * ps/devps/download: Remove Troff.
10356         * ps/devps/FontMakefile: Remove T target.
10357         * ps/devps/DESC-A4: Remove T from font list.
10358         * ps/devps/DESC-letter: Likewise.
10360         * troff/input.c (macro_to_node): Rename to ...
10361         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
10362         character's definition while processing it.
10363         * troff/node.c (node::add_char, make_node): Change calls to
10364         macro_to_node accordingly.
10366         * troff/input.c (token::next): Translate \_ to \(ul.
10368         * tty/devascii/R.proto: Add `|'.
10369         * tty/devlatin1/R.proto: Likewise.
10371 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
10373         * man: Put the version number in all the man pages.
10375 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
10377         * Makefile.bd: New file.
10378         * README.bd: New file.
10380         * VERSION: New file.
10381         * lib/version.c: Removed.
10382         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
10383         in clean target.
10385         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
10386         environment variable.
10388         * all Makefiles: Split install target into install.bin for
10389         binaries, and install.nobin for everything else.
10390         * Makefile: Add bindist target.
10392         * man/afmtodit.man: New file.
10393         * man/Makefile: Add afmtodit.n to MAN1PAGES.
10394         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
10395         in BINDIR.
10396         * ps/Makefile: Pass BINDIR to make install in devps.
10398         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
10399         the space character.
10401         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
10403 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
10405         * ps/ps.c: Redo font downloading.
10406         * ps/devps/download: New file.
10407         * ps/devps/Makefile: Add download to DEVICEFILES.
10408         * ps/devps/afmtodit: Remove -d option.
10409         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
10410         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
10411         * ps/devps/zapfdr.ps: Likewise.
10412         * ps/devps/TSymbol.ps: Likewise.
10414 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
10416         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
10418 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
10420         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
10421         then strip the first line if it starts with %.
10422         * Makefile: Add a comment about this.
10424         * man/tfmtodit.man: New file.
10425         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
10426         * dvi/Makefile: Install tfmtodit in BINDIR.
10428         * dvi/tfmtodit.c (usage): Mention -v option.
10430 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
10432         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
10433         * troff/node.c (troff_output_file::transparent_char): Don't call
10434         flush_tbuf.
10436         * eqn: Add check_tabs method to most box classes.
10437         * eqn/box.c (box::top_level): Call check_tabs.
10439         * eqn/script.c (script_box::output): Use \Z.
10440         * eqn/limit.c (limit_box::output): Use \Z.
10442         * eqn/box.c (box::top_level): Use itoa.
10444 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
10446         * dvi/tmac.dvi: Add font translations for CR, C, TT.
10447         * dvi/devdvi/Makefile: Don't make links to CW.
10449         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
10450         HX, HD.
10451         * xditview/tmac.X: Likewise.
10453         * troff/node.c: Add font translation feature.
10454         (get_font_translation): New function.
10455         (symbol_fontno): Translate the font name.
10456         (mount_font_no_translate): Rename to mount_font to this.
10457         (mount_font): New function.
10458         (font_family::make_definite): Call mount_font_no_translate instead
10459         of mount_font.
10460         (mount_style): Translate the font name.
10461         (font_translate): New function.
10462         (init_font_requests): Bind "ftr" to font_translate.
10464         * ps/devps/prologue (SN): New procedure that rounds a position to
10465         the nearest (pixel + (.25,.25)).
10466         (DL): Use SN to round endpoints.
10468         * lib/version.c: Changed version to 0.5.
10470 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
10472         * Makefile: Move definition of PAGE to the very beginning, so that
10473         people are less likely to miss it.
10475 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
10477         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
10479         * troff/env.c (environment::choose_breakpoint): Make `can't find
10480         breakpoint' error a warning of type WARN_BREAK.  Change message to
10481         `can't break line'.
10482         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
10483         code 040000.
10484         * troff/input.c: Add WARN_BREAK to warning_table.  Include
10485         WARN_BREAK in DEFAULT_WARNING_MASK.
10487         * tty/tmac.tty: Add definition of \(+-.
10489         * groff.sh: Remove `--' option to set command.
10491         * dvi/devdvi/texsy.map: Remove duplicate md entry.
10493         * ps/devps/eqnchar: Better definition of cdot using md.
10494         * dvi/devdvi/eqnchar:  Likewise.
10495         * xditview/devX100/eqnchar:  Likewise.
10496         * xditview/devX75/eqnchar: Likewise.
10497         * eqn/lex.c: Add definition of cdot.
10499 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
10501         * troff/input.c (get_optional_char): New function.
10502         * troff/input.c (set_page_character): Use get_optional_char(),
10503         rather than has_arg() and tok.get_char(1).
10504         * troff/env.c (tab_character, leader_character, hyphen_char,
10505         field_characters): Likewise.
10506         (margin_character): Likewise.  Also always delete the
10507         margin_character_node.
10509         * troff/input.c (token::get_char): Use token::description.
10511         * troff/input.c (has_arg): Don't skip over tab and \}.
10512         * troff/number.c (start_number): Give a warning if the number
10513         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
10515 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
10517         * troff/input.c (empty_name_warning, non_empty_name_warning): New
10518         functions.
10519         (get_name, get_long_name): Use these.  Rename `warn' argument to
10520         `required'.
10522         * troff/node.c (get_fontno): Test that the symbol is not null.
10524         * troff/input.c (token::description): New function.
10525         * troff/number.c (parse_term): Use token::description in `numeric
10526         expression expected' message.
10527         * troff/groff.h: Add WARN_MISSING.
10528         * troff/number.c (start_number): New function.
10529         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
10530         get_incr_number): Use start_number().
10531         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
10532         default.
10533         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
10534         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
10535         token::descripion.
10536         * troff/input.c (token::get_char): Use WARN_MISSING.
10537         * troff/input.c (token::delimiter): Use token::description.
10538         * troff/env.c (environment_switch): Back out Aug 3 change.
10539         * troff/input.c (has_arg): Skip over \}s and tabs but give a
10540         warning.
10541         * troff/token.h (token::tab): New function.
10542         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
10543         * troff/reg.c (alter_format): Likewise.
10544         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
10546 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
10548         * troff (most files): Redo warnings. Divide warnings into various
10549         categories; warning() has an additional first argument indicating
10550         the category it falls into.
10551         * troff/input.c (main): -w now takes an argument. New option -W.
10552         (enable_warning, disable_warning): New functions.
10554         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
10555         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
10557 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
10559         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
10560         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
10561         * xditview/devX75/eqnchar: Likewise.
10562         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
10564         * eqn/other.c: When bar or over applies to a single character
10565         don't produce an overline_box or an underline_box. Instead produce
10566         an accent_box or an underaccent_box, with the accent a line
10567         whose width is accent_width.  New classes underaccent_box,
10568         overline_char_box and underline_char_box.
10569         * eqn/box.h: Move overline_box, underline_box, accent_box class
10570         declarations into eqn/other.c. Add declarations of
10571         make_underline_box, make_overline_box, make_accent_box.
10572         * eqn/eqn.y: Call make_overline_box, make_underline_box
10573         make_accent_box instead of constructors.
10574         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
10576         * eqn/other.c: Add accent_box::~accent_box.
10577         * eqn/box.h: Declare it.
10579         * groff.sh: With -Tps, use eqn -D.
10581         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
10582         rather than \l.
10583         (underline_box::output): Similarily.
10584         (accent_box::output): Use \Z.
10586         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
10587         bit smaller.)
10589 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
10591         * troff/div.c (top_level_diversion::transparent_output(unsigned
10592         char)): Use asciify.
10593         * troff/input.c (asciify): Don't make it static.
10594         * troff/token.h (asciify): Declare it.
10595         
10596         * troff/input.c (get_name, get_long_name, token::get_char,
10597         token::delimiter): Add an extra default argument which says
10598         whether a warning should be printed.
10599         * troff: Pass a non-zero argument to one of these rather than
10600         printing a warning directly.
10602 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
10604         * troff: Consistently use symbol::is_null.
10606         * troff/dictionary.h: Move some inline functions into
10607         dictionary.c.
10609         * troff/request.h: Move inline functions into input.c.
10610         (request_or_macro::invoke): Make it pure.
10612         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
10613         * troff/input.c (init_input_requests): Use class constant_int_reg.
10614         (class compatible_reg): Deleted.
10615         * troff/div.c (init_div_requests): Use class constant_int_reg.
10616         (class last_post_line_extra_space_reg): Deleted.
10618         * troff/env.c (tab_character): Don't change the tab character if
10619         we get an invalid argument.
10620         (hyphen_char): Similarily.
10622         * troff/reg.c (alter_format): Check that nm is not null.
10624         * Makefile, groff.sh: Make it possible to customize the commands
10625         used for printing PostScript and dvi files. Also make it possible
10626         to customize the path used by groff.sh.
10628         * eqn/eqn.y: Make `left' right associative.
10630 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
10632         * pic/pic.h: Added definition of M_SQRT2 for those systems that
10633         don't have it.
10635         * pic/pic.h: Removed definition of INT_MAX.
10637         * troff/node.c (italic_corrected_node::vertical_extent): Omit
10638         `return'.
10640         * troff/input.c (token::next):  Handle \R like \n.
10642 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
10644         * ps/tmac.pc (PSPIC): Simplify.
10646         * troff/env.c (tab_stops::to_string):
10647         * pic/pic.y (object_type_name):
10648         * pic/troff.c (simple_output::line):
10649         * pic/tex.c (tex_output::spline):
10650         * pic/object.c (object_spec::make_object):
10651         * tbl/main.c (process_data):  Add cases to switch statements to
10652         avoid cfront warnings. (Some of these are spurious, since the
10653         switch already has a default case.)
10655         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
10656         `ps-'.  Don't test systat; instead check number of arguments to
10657         ps-bb.
10659 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
10661         * macros/tmac.e: Do not decrease the page offset by 0.5i.
10663         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
10664         Unlink the file as soon as we have opened it, so that we don't
10665         have to bother with signal handlers.
10666         (handler): Deleted.
10667         (fatal_error_exit): Deleted.
10668         (main): Don't call signal.
10670         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
10671         can be ignored.
10672         * dvi/devdvi/Makefile: Use the -k option with S and MI.
10674         * pic/pic.y:  If there is a label, or an nth construction before
10675         the first `.' in the argument to `with', ignore it and generate a
10676         warning.
10677         * pic/lex.c (lex_warning): New function.
10679         * tbl/table.c (table::init_output): In section keep and release
10680         macro, use 0 indent when diverting and the correct indent when
10681         rereading.
10683         * troff/input.c (interpolate_number_format): Do not interpolate
10684         anything if the number register is not defined.
10686         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
10688 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
10690         * ps/devps/prologue (PICTURE): Set components of graphics state to
10691         their default values.
10693         * ps/devps/text.enc: Add trademark
10694         * ps/devps/textmap: Add names for club, spade, heart, diamond,
10695         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
10696         * ps/devps/symbolchars: Add names for summation and product.
10698         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
10699         suchthat. Add pp. Add upper-case letters.
10701         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
10702         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
10703         Upsilon.
10705         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
10706         rA (right angle bracket) to ra.  Introduce names for double-headed
10707         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
10708         * ps/devps/textmap: Likewise for ps device.
10709         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
10710         * tty/devascii/R.proto: Rename lA to la and rA to ra.
10711         * tty/devascii/R.proto: Likewise.
10712         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
10713         \(uA, \(dA.
10714         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
10716         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
10718         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
10719         def_table.
10721 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
10723         * troff/div.c (when_request): Use symbol::is_null rather than
10724         has_arg to determine whether we have an argument.
10725         (change_trap): Remove the trap if we get an invalid number. Give
10726         an error if we don't get at least the macro name.
10727         (diversion_trap): Remove trap if we get an invalid name or number.
10729         * troff/env.c (environment_switch): Pop if we get an invalid
10730         symbol or numeric expression.
10732         * troff/input.c (do_define_macro):  If EOF is encoutered while
10733         defining the macro, do tok.next() before returning.
10735         * troff/token.h (has_arg): Move definition from here, to ...
10736         * troff/input.c (has_arg): ... here
10738         * troff/env.c (space_size): Do nothing if we get an invalid argument.
10739         * troff/input.c (shift): Likewise.
10741         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
10742         for `.c'.
10744         * pic/troff.c (troff_output::start_picture):  Comment out calls to
10745         `..'.
10747         * eqn/main.c (do_file): Subtract 1 from current_lineno if
10748         interpret_lf_args succeeds.
10750         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
10751         \\.  This avoids problems with \$N.
10753         * groff.sh: Pass -C to preprocessors.
10755         * lib/lf.c (interpret_lf_args):  Be more flexible.
10757         * tbl/main.c (main): Add -C option.
10758         (table_input::get): Do not recognize TE if followed by character
10759         other than a space or newline unless -C option given.
10760         (process_input_file): Likewise for lf, TS.
10761         (process_data): Likewise for lf in text blocks.
10763         * eqn/main.c (main): Add -C option.
10764         (do_file): Don't recognize EQ, EN or lf if followed by character
10765         other than space or newline unless -C option given.
10766         * eqn/lex.c (file_input::read_line): Similarily.
10767         * eqn/eqn.h: Declare compatible_flag.
10769         * etc/soelim.c (main): Add -C option.
10770         (interpret_lf_args): Use version in libgroff.
10771         (do_file):
10773         * pic/main.c (main): Add -C option, which sets compatible_flag.
10774         (top_input::get), (top_input::peek):  If -C option not given,
10775         do not recognize .PS/.PE/.PF/.lf if followed by a character
10776         other than space or newline.
10777         * pic/lex.c (file_input::read_line): Similarily.
10778         * pic/pic.h: Add declaration of compatible_flag.
10780 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
10782         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
10784         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
10785         derived from node.  New class space_char_hmotion_node.
10786         * troff/input.c (asciify_macro): New function.
10787         * troff/input.c (init_input_requests): New request `asciify' bound
10788         to asciify_macro.
10789         * macros/mm.diff: New file.
10790         * Makefile:  In install.mm target use `patch' to apply
10791         macros/mm.diff.
10793         * troff/input.c (macro::print_size): Just print the size in bytes.
10795         * troff/div.c (return_request): Correct the argument
10796         interpretation.
10798 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
10800         * troff/node.h (class composite_node): Add sz member.
10801         * troff/node.c (composite_node::size): Return sz.
10802         * troff/input.c (macro_to_node):  Use the initial size in the
10803         environment as the size of the composite_node.
10805         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
10806         default.
10808 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
10810         * troff/div.c (change_trap): If we get a bad number expression,
10811         do nothing.
10813 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
10815         * lib/matherr.c (matherr): Define this only if math.h defines
10816         TLOSS.
10818 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
10820         * troff/div.c (macro_diversion::distance_to_next_trap): If there
10821         no diversion trap return vunits(INT_MAX - vresolution).
10823 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
10825         * troff/input.c (do_zero_width): New implementation that doesn't
10826         use a temporary environment. Use instead:
10827         (token::add_to_node_list): New function.
10828         * troff/env.c (environment::get_prev_char_height),
10829         (environment::get_prev_char_height),
10830         (environment::get_prev_char_skew): New functions.
10831         (environment::get_prev_char): New function.
10832         (environment::get_prev_char_width): Change to use get_prev_char.
10833         (init_env_request): Implement new registers .cht, .cdp, .csk.
10834         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
10835         \Z being processed in a separate environment.
10837 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
10839         * tbl/table.c: Removed TABLE_BOTTOM_REG.
10841         * tbl/table.c (table::init_output): In the section release macro,
10842         give a warning message if the section won't fit on one page.
10844         * tbl/table.c (table::do_top): Emit table keep only if table is
10845         boxed.
10846         (table::do_bottom): Likewise for table release.
10847         (table::table), (table::add_vertical_rule):  Remove reference to
10848         keep member.
10849         * tbl/table.h: Remove keep member.
10851         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
10852         SECTION_RELEASE_MACRO, if there's not enough space before the next
10853         trap to output the diversion, call T# ourselves, set
10854         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
10855         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
10856         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
10857         vertical position and return to it before turning traps on again.
10858         
10859 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
10861         * troff/node.c, troff/node.h: In classes derived from node,
10862         replace prev_char_width method by last_char_node method.
10863         * troff/env.c (environment::get_prev_char_width): Use
10864         node::last_char_node rather than node::get_prev_char_width.
10866         * Makefile: Added comment about -fno-inline on 68030-based
10867         Apollos.
10869         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
10870         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
10871         expressions using sizeof to int.
10872         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
10874         * macros/tmac.e (TS):  Don't move @f back past the current
10875         position.
10877 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
10879         * ps/ps.c (main): Buffer stderr.
10880         * dvi/dvi.c (main): Likewise.
10881         * tty/tty.c (main): Likewise.
10883         * ps/ps.c (ps_printer::do_import): Improve error handling.
10885         * troff/input.c (abort_request): Use asciify.
10887         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
10888         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
10889         type of first argument int rather than char.  This works around a
10890         bug on the 68030 based Apollo using g++ 1.37.1.
10892         * tbl/table.h (class table): Add `keep' member.
10893         * tbl/table.c (table::table): Initialize `keep'.
10894         (table::add_vertical_rule): Set `keep' to 1.
10895         (table::do_top): Only emit table keep macro is `keep' is non-zero.
10896         (table::do_bottom): Likewise for table release macro.
10897         (table::do_row): Emit section keep macro even if the row is 0.
10899 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
10901         * macros/tmac.e (@C): Preserve the font family across the change
10902         in environments.
10904 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
10906         * lib/font.c: Initialize font::hor and font::vert to 1.
10907         (font::load_desc): Check the values of font::hor and font::vert.
10909         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
10910         be included in a C compilation.
10911         (iftoa): Use INT_DIGITS. Include lib.h.
10912         (itoa): Likewise.
10913         (as_string): Likewise.
10914         * tbl/table.c: Removed definition of INT_DIGITS.
10915         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
10916         * troff/input.c (input_input_requests): Likewise.
10917         * ps/ps.c (make_encoding_name): Likewise.
10918         (ps_printer::set_style): Likewise.
10919         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
10921         * tty/devascii/R.proto: Map fm onto '.
10922         * tty/devlatin1/R.proto: Likewise.
10924 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
10926         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
10927         argument to \w is at a different input level.
10929         * tbl/table.c (table::init_output): Define a new macro
10930         REPEATED_VPT_MACRO, like vpt but if in a diversion also
10931         transparently outputs itself.
10932         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
10933         vpt.
10934         (table::do_row): Likewise.
10936         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
10937         TRANSPARENT_STRING_NAME.
10939         * tbl/table.c (table::init_output): In the table release macro
10940         print an error message and don't produce any output if after
10941         issuing the need request the table still will not fit.  Also
10942         remove the diversion after bringing it back.
10944         * tbl/table.c (table::init_output): Define a new macro
10945         REPEATED_MARK_MACRO, like mk but if in a diversion also
10946         transparently outputs itself.
10947         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
10948         is necessary because .TH might not call .T#.
10949         (table::do_top): Likewise TOP_REG.
10950         (table::define_bottom_macro): If TOP_REG is no longer valid, use
10951         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
10952         table header might contain just the two top rules.
10954 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
10956         * troff/div.c: Implement new request `ptr' to print all traps.
10958         * troff/env.c (init_env_requests): Implement `.tabs' reg with
10959         init_string_env_reg.
10960         * troff/env.c (class tab_reg): Deleted.
10962 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
10964         * troff/div.c: New number register .pn returns the number of the
10965         next page as set by the pn request.
10967         * macros/tmac.an: Redid headers and footers.  Number each manual
10968         entry starting from 1 unless \nC is > 0, like Sun.  Added an
10969         optional 5th argument to .TH which specifies the manual name and
10970         appears in the center of the header.  Understand the X, P and D
10971         registers like Sun.
10973 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
10975         * troff/env.c (init_env_requests): New number register `.lt' to
10976         return the title length.
10978         * troff/node.h (class transparent_dummy_node): New class.
10979         * troff/node.c (class transparent_dummy_node): Provide member
10980         functions. 
10981         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
10982         than a dummy_node.
10984         * troff/input.c (token::next): New escape sequence \).
10985         * troff/input.c (get_copy): Recognize \) in copy mode.
10987         * troff/input.c (input_stack::clear): New function.
10988         * troff/input.c (exit_request): Use input_stack::clear.
10990         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
10991         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
10993         * troff/env.c: Move set_page_character to input.c.  Move
10994         page_character to input.c also.
10995         * troff/env.c (title): Split off the reading of the parts of the
10996         title into read_title_parts.
10997         * troff/input.c (read_title_parts): New function.  Check the
10998         input_level when testing whether a token matches the delimiter.
11000         * troff/input.c (exit_request): New function.
11001         * troff/input.c (init_input_requests): Bind ex request to
11002         exit_request rather than exit_groff.
11004         * troff/input.c (exit_groff): Call tok.next() before
11005         process_input_stack().
11007 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
11009         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
11010         * troff/env.h: ditto.
11011         * troff/input.c: ditto.
11013         * troff/env.c (environment::is_empty): Test pending_lines.
11015         * troff/env.c (environment::have_pending_lines): Removed.
11017         * troff/input.c: Add request to flush pending lines from the
11018         environment.
11020         * troff/env.c, troff/env.h: Add automatic widow control feature.
11022         * troff/input.c (exit_groff):  Do process_input_stack() after
11023         do_break() but before setting exit_flag to 2.
11025         * troff/input.c: Remove FLUSH_PENDING_LINES and
11026         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
11027         environment after END_TRAP token seen, but only if there aren't
11028         any more traps still unfinished.
11029         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
11031 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
11033         * troff/env.c: Rename the `retain_size' member of class
11034         pending_output_line to `no_fill'.
11036         * troff/env.c (title): When the line is output, make the
11037         retain_size argument !fill.
11039         * troff/node.h: Add `hyphenated' member to struct breakpoint.
11040         * troff/node.c (space_node::get_breakpoints),
11041         (dbreak_node::get_breakpoints):  Fill this in.
11042         * troff/env.c:  Allow specification of maximum number of
11043         consecutive hyphenated lines.
11045         * troff/env.c (environment::is_empty): Add test for !current_tab.
11047 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
11049         * troff/env.c (environment::hyphenate_line): Don't completely give
11050         up if the word is not to be hyphenated; continue so that breaks
11051         can be made at break_char_node's.
11053         * lib/lib.h: Only define INT_MAX if it's not already defined;
11054         undef INT_MIN if it's already defined.
11056         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
11058         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
11059         This works around a bug in AT&T C++ 2.0 used with an ANSI C
11060         compiler.
11061         
11062         * macros/tmac.an (an-header): Set no-space mode.
11064         * macros/tmac.an (TH): Start a new page if necessary.
11066         * Started using ChangeLog at version 0.4.
11068 Local Variables:
11069 version-control: never
11070 coding: latin-1
11071 End: