Add the new -r option to grotty. It is similar to the -i option
[s-roff.git] / ChangeLog
blob07be782a5fcd36d7da724fd64c4c6068a5bea11b
1 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
3         Add the new -r option to grotty.  It is similar to the -i option
4         except it tells grotty(1) to use the "reverse video" attribute to
5         render italic fonts.
7         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
8         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
9         (tty_printer::make_underline, tty_printer::put_color,
10         tty_printer::end_page): Use it.
11         (main): Add -r switch.
12         (usage): Updated.
13         * src/devices/grotty/grotty.man: Document it.
15 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
17         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
18         cast to `unsigned char' to properly read patterns with 8bit
19         characters.
21 2002-10-08  Werner LEMBERG  <wl@gnu.org>
23         * REVISION: Increased to 2.
25 Version 1.18.1 released
26 =======================
28 2002-10-08  Werner LEMBERG  <wl@gnu.org>
30         * doc/webpage.ms, NEWS: Updated.
32 2002-10-07  Werner LEMBERG  <wl@gnu.org>
34         * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
35         suppress additional whitespace after the header.
37         * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
38         with NetBSD.
40         * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
42 2002-10-07  Ruslan Ermilov  <ru@FreeBSD.org>
44         * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
45         (Dt): Use it to improve language localization (especially Russian
46         and French).
48 2002-10-07  Daniel Senderowicz  <daniel@synchrods.com>
50         * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
51         * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
52         drawing commands.
53         * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
54         curve type.
55         Call `picurve' for BSPLINE.
56         (HGPrintElt): Handle BSPLINE.
57         * src/preproc/grn/README: Document it.
59 2002-10-03  Werner LEMBERG  <wl@gnu.org>
61         * src/roff/troff/node.cc (break_char_node::col): New variable.
62         Updated constructor.
63         (space_node::tprint, word_space_node::tprint): Call `fill_color'
64         unconditionally.
65         (space_node::space_node): Remove assertion.
66         (break_char_node::add_self): Pass color argument to space node.
67         * src/roff/troff/input.cc (token::add_to_node_list, token::process):
68         Ditto.
69         * src/roff/troff/env.cc (environment::do_break,
70         environment::add_padding): Ditto.
72 2002-10-02  Werner LEMBERG  <wl@gnu.org>
74         Redesigning color support in troff.  Colors are no longer
75         represented as separate nodes but are now part of glyph nodes and
76         friends.  This fixes the current formatting misbehaviour due to the
77         changes introduced on 2002-09-20.  Some extra code is necessary for
78         proper grotty support: Without adding color variables to
79         space-related nodes, the background color would be changed too late.
81         * src/roff/troff/node.h, src/roff/troff/node.cc:
82         s/current_pagecolor/current_fill_color/.
83         s/current_glyphcolor/current_glyph_color/.
84         (glyph_color_node, fill_color_node): Removed.
85         (node::get_glyph_color, node::get_fill_color): New virtual member
86         functions.
87         (space_node::col): New variable.
88         Updated constructors of space_node and derived classes accordingly.
89         (hmotion_node::col): New variable.
90         Updated constructors of hmotion_node and space_char_hmotion_node
91         accordingly.
92         (vmotion_node::col): New variable.
93         Updated constructor accordingly.
94         (draw_node::gcol, draw_node::fcol): New variables.
95         Updated constructor accordingly.
96         (special_node::gcol, special_node::fcol): New variables.
97         Updated constructors accordingly.
98         (troff_output_file::put_char, troff_output_file::put_charwidth,
99         troff_output_file::draw): Set glyph and fill color.
100         (troff_output_file::start_special): Set glyph and fill color.
101         Always set current font.
102         (troff_output_file::fill_color, troff_output_file::glyph_color):
103         Don't call `do_motion'.
104         (glyph_node::gcol, glyph_node::fcol): New variables.
105         Updated constructors of glyph_node and ligature_node accordingly.
106         (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
107         member functions.
108         (glyph_node::merge_glyph_node,
109         kern_pair_node::add_discretionary_hyphen,
110         node::add_discretionary_hyphen): Updated.
111         (break_char_node::merge_self): Updated.
112         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
113         vmotion_node::tprint): Handle color.
114         (make_glyph_node, make_node, node::add_char): Updated.
116         * src/roff/troff/env.cc (environment::space_newline,
117         environment::space, environment::output_line, environment::do_break,
118         environment::make_tab_node, environment::add_padding, title):
119         Updated.
120         (environment_switch, environment_copy): Don't add color nodes.
122         * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
123         nothing.
124         (token::next): Updated.
125         \m and \M now are as transparent as \s.
126         (process_input_stack, token::add_to_node_list, token::process,
127         read_draw_node): Updated.
128         (charinfo_to_node_list): Don't add color nodes.
130         * doc/groff.texinfo: Updated.
132 2002-09-27  Ruslan Ermilov  <ru@FreeBSD.org>
134         * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
135         strings.
137 2002-09-27  Colin Watson  <cjwatson@debian.org>
139         * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
141 2002-09-23  Werner LEMBERG  <wl@gnu.org>
143         * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
144         appropriate.
145         (DEFAULT_LINEWIDTH_FACTOR): New macro.
146         (linewidth_factor): New global variable.
147         (lbp_printer::set_line_thickness): Fix case for size < 0, using
148         linewidth_factor.
149         (long_options): Add -w/--linewidth option.
150         (usage): Updated.
151         (main): Handle -w option to set linewidth_factor.
152         (lbp_printer::lbp_printer): Initialize req_linethickness, not
153         line_thickness.
155         * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
157 2002-09-22  Paco Andrés Verdú  <pandres@dragonet.es>
159         Fixed a bug in the line thickness setting code.
161         * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
162         variable.
163         (lbp_printer::set_line_thickness): Pass environment as second
164         parameter.
165         Implement it actually.
166         (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
167         and `set_line_thickness, depending on the current font size.
169 2002-09-21  Werner LEMBERG  <wl@gnu.org>
171         Some Debian patches.
173         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
174         * src/roff/troff/node.cc (bracket_node::copy): Initialize
175         `list->last'.
177 2002-09-20  Werner LEMBERG  <wl@gnu.org>
179         * configure: Regenerated with autoconf 2.54.
181 2002-09-20  Werner LEMBERG  <wl@gnu.org>
183         * src/roff/troff/env.h (environment): Rename cur_glyph_color to
184         glyph_color.
185         Rename cur_fill_color to fill_color.
186         * src/roff/troff/env.cc: Updated.
188 2002-09-20  Werner LEMBERG  <wl@gnu.org>
190         * src/roff/troff/env.cc (title): Copy color status after processing
191         title.
192         * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
193         fill color nodes to reset colors properly.
195         * tmac/www.tmac (DC): Fix color handling.
197         * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
198         * doc/groff.texinfo: Fixing documentation of `tl' request.
199         * doc/webpage.ms: Updated.
201 2002-09-19  Werner LEMBERG  <wl@gnu.org>
203         * src/roff/troff/env.cc (environent_switch, environment_copy):
204         Emit glyph and fill color nodes to initialize colors properly.
206 2002-09-17  Colin Watson  <cjwatson@debian.org>
208         * src/roff/troff/env.cc (environment::set_glyph_color,
209         environment::set_fill_color): Fix typo which prevented \m[] work
210         correctly.
212 2002-09-17  Werner LEMBERG  <wl@gnu.org>
214         Add left and right italic correction to non-slanted PS fonts.  This
215         is an experimental feature to improve image rendering of grohtml.
217         * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
218         ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
219         * font/devps/*: All non-slanted fonts regenerated.
220         * NEWS: Updated.
222 2002-09-16  Werner LEMBERG  <wl@gnu.org>
224         Add a site-specific font directory.
226         * Makefile.in (localfontdir, legacyfontdir): New variables.
227         (fontpath): Use them.
228         (MDEFINES, uninstall_dirs): Updated.
229         * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
230         Remove `FONTPATH' and `MACROPATH'.
232         * src/roff/troff/troff.man, NEWS: Updated.
233         * doc/groff.texinfo (Font Directories): New section.
234         Other minor fixes.
236         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
237         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
238         src/preproc/grn/grn.man: Minor fixes.
240         * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
241         Remove unused variable.
243 2002-09-11  Werner LEMBERG  <wl@gnu.org>
245         * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
246         * man/groff_out.man: Fix documentation of 'N'.
248 2002-09-09  Gaius Mulley  <gaius@glam.ac.uk>
250         * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
251         * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
252         set.
253         * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
254         (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
255         (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
256         * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
257         PRE_TAG>: Call `begin' with `FALSE'.
259 2002-09-09  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
261         * src/libs/libgroff/string.cc (string::extract): Fix position of
262         terminating null byte.
264 2002-09-08  Werner LEMBERG  <wl@gnu.org>
266         Add global option `nospaces' to tbl so that leading and trailing
267         spaces in data items are ignored.
269         * src/libs/libgroff/string.cc (string::remove_spaces): New member
270         function to remove leading and trailing spaces.
271         * src/include/stringclass.h: Updated.
273         * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
275         * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
276         option.
277         Fix typo in error messages.
278         (process_data): Implement `nospaces' option.
279         * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
281 2002-09-07  Werner LEMBERG  <wl@gnu.org>
283         * src/include/config.hin: Add `HAVE_ISATTY'.
284         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
285         `fname' member.
286         * src/libs/libgroff/tmpname.cc: Include `time.h'.
287         * src/libs/libdriver/input.cc (Char): Add `operator==' and
288         `operator!=' for `char'.
289         * doc/groff.texinfo: Replace @ifnottex block for top node with
290         @ifhtml block.
292 2002-09-06  Werner LEMBERG  <wl@gnu.org>
294         * doc/Makefile.in (.texinfo.html): Add -I switch.
295         * doc/groff.texinfo: Add @ifnottex block for top node to make
296         translation to HTML work.
298 2002-09-05  Gaius Mulley  <gaius@glam.ac.uk>
300         * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
301         (get_papersize, determine_vertical_offset): Removed.
302         (char_buffer::do_image): Always specify letter size.
303         (main): Updated.
304         (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
305         -sPAPERSIZE.
307 2002-09-05  Werner LEMBERG  <wl@gnu.org>
309         * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
310         default indentation.
312 2002-09-04  Gaius Mulley  <gaius@glam.ac.uk>
314         * src/preproc/html/pre-html.cc (imageList::createPage): Use
315         -sPAPERSIZE for gs.
316         (generateImages): Clean up push-back buffer.
318 2002-09-04  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
320         * doc/groff.texinfo: Minor fixes.
322 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
324         * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
325         (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
326         (gsPaper): Removed.
327         (determine_vertical_offset): Use LETTER_LENGTH.
328         (createPage): Moved to ...
329         (imageList::createPage): This.
330         Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
331         (imageList::getMaxX): New function.
332         (createImage): Moved to ...
333         (imageList::createImage): This.
334         (imageList::createImages): New function.
335         (generateImages): Read `maxx' directly.
336         Updated.
337         (scanArguments): Don't specify `gsPaper' for `-o'.
338         (makeTempFiles): Call `xtmpfile' with the last argument set to
339         `TRUE'.
341 2002-08-24  Werner LEMBERG  <wl@gnu.org>
343         * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
344         (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
345         * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
346         * src/preproc/html/pushback.cc: Include nonposix.h.
347         * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
348         conditionally.
350 2002-08-23  Werner LEMBERG  <wl@gnu.org>
352         Use $(OBJEXT) for the object file extension.
354         * Makefile.comm (.SUFFIXES): Add .obj.
355         (.cc.obj, .c.obj): New implicit rules.
356         * Makefile.in (OBJEXT): New variable, initialized from autoconf.
357         (MDEFINES): Add EXEEXT and OBJEXT.
358         * */Makefile.sub: s/.o/.$(OBJEXT)/.
360 2002-08-22  Werner LEMBERG  <wl@gnu.org>
362         * INSTALL: Mention texinfo 4.2 as a prerequisite.
364 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
366         * src/devices/grohtml/post-html.cc (colType): Make enum global to
367         the file.
368         (html_printer::update_min_max, html_printer::add_table_end): New
369         methods.
370         (html_printer::lookahead_for_tables): Use them.
371         Reset page offset correctly.
372         (html_printer::~html_printer): Add creation of creator comment up.
374 2002-08-20  Werner LEMBERG  <wl@gnu.org>
376         * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
377         * man/groff_tmac.man: Fix typos.
378         * man/groff_font.man: Minor reordering.
379         * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
380         * contrib/groffer/groffer.man: Fix typos.
382 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
384         Avoid endless loops while scanning for tables.
386         * src/devices/grohtml/post-html.cc (list::insert): Set
387         ptr->right->left.
388         (html_printer::next_horiz_pos): Add `text_glob' argument; update
389         all callers.
390         Return immediately if that argument is NULL.
391         (html_printer::calc_nf): Don't test if `g' is NULL.
392         (html_printer::lookahead_for_tables): Use
393         `glyphs.move_right_get_data'.
394         Don't test if `g' is NULL.
396 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
398         A better fix, replacing fix 2002-08-15, for increasing SIZE.
400         * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
401         a pointer.
402         (char_block::char_block): Allocate `buffer'.
403         (char_buffer::add_string): Use it.
405 2002-08-15  Werner LEMBERG  <wl@gnu.org>
407         * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
408         src/devices/grodvi/grodvi.man: Document default line thickness.
410 2002-08-15  Gaius Mulley  <gaius@glam.ac.uk>
412         * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
413         8192.
415 2002-08-14  Werner LEMBERG  <wl@gnu.org>
417         * doc/webpage.ms: Updated.
419 2002-08-09  Werner LEMBERG  <wl@gnu.org>
421         * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
422         unbreakable space.
424 2002-08-08  Aaron Campbell <aaron@monkey.org>
426         * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
427         (&& -> &).
429 2002-08-08  Werner LEMBERG  <wl@gnu.org>
431         * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
432         tok.next().
433         (read_gray): Ditto.
434         Don't push back a space but a newline onto the stack.
436 2002-08-07  Gaius Mulley  <gaius@glam.ac.uk>
438         Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
439         inadvertently.
441         * src/devices/grohtml/post-html.cc (html_printer::end_font,
442         html_printer::start_font): Handle them.
443         * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
444         reset bold and tt.
445         (html_text::do_bold): Don't reset italic and tt.
446         (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
447         * font/devhtml/DESC.proto: Add those fonts.
448         * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
450 2002-08-07  Werner LEMBERG  <wl@gnu.org>
452         * MORE.STUFF: Added gpresent.
454         * tmac/trace.tmac: Show nesting level by a corresponding amount of
455         whitespace before printing the logging message.
457 2002-07-31  Colin Watson  <cjwatson@debian.org>
459         * src/devices/grohtml/html-table.cc (html_table::finish_row):
460         Initialize `n' to zero.  This fixes a segfault on ARM.
462 2002-07-30  Werner LEMBERG  <wl@gnu.org>
464         * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
466 2002-07-29  Werner LEMBERG  <wl@gnu.org>
468         * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
469         final semicolon.
471 2002-07-28  Colin Watson  <cjwatson@debian.org>
473         * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
474         `.ps'.
475         (html_printer::html_printer): Initialize `pointsize'.
477 2002-07-26  Werner LEMBERG  <wl@gnu.org>
479         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
480         gnu.png.
481         (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
482         (gnu.eps): Add -rle switch to pnmtops.
483         (distfiles): Add gnu.eps and gnu.png.
485 2002-07-25  Petter Reinholdtsen  <pere@hungry.com>
487         * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
488         Add `operator!='.
490 2002-07-24  Werner LEMBERG  <wl@gnu.org>
492         * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
493         ' \+' but '  *' for sed.
494         (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
496 2002-07-23  Werner LEMBERG  <wl@gnu.org>
498         * doc/groff.texinfo: Document `papersize' keyword.
499         * NEWS, man/groff_font.man: Updated.
501 2002-07-23  Colin Watson  <cjwatson@debian.org>
503         Extend papersize keyword to accept more than a single entry.  The
504         first valid will be used.
506         * src/libs/libgroff/font.cc (font::load_desc): Implement it.
507         (font::scan_papersize): Really skip final newline.
508         * src/preproc/html/pre-html.cc (get_papersize): Ditto.
510 2002-07-23  Werner LEMBERG  <wl@gnu.org>
512         * configure.ac: Test for isatty.
513         * configure: Regenerated.
514         * src/include/posix.h: Check HAVE_ISATTY.
515         * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
516         * src/utils/lookbib/lookbib.cc: Include posix.h.
517         Don't declare isatty.
519 2002-07-21  Werner LEMBERG  <wl@gnu.org>
521         * NEWS: Add `output' request.
523         * REVISION: Increased to 1.
525 Version 1.18.0 released
526 =======================
528 2002-07-19  Gaius Mulley  <gaius@glam.ac.uk>
530         Allow internal glyph indices > 0xFF in grohtml for input characters.
532         * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
533         as parameter.
534         (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
535         Updated all callers.
536         (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
537         (html_printer): Updated.
539 2002-07-19  Werner LEMBERG  <wl@gnu.org>
541         * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
542         * font/devutf8/R.proto: Adding some missing glyphs.
543         * font/devutf8/NOTES: Updated.
545         * tmac/dvi.tmac: Add more composite glyphs.
546         * tmac/html.tmac: Updated.
548         * man/groff_char.man: Add `sum' and `product' entities.
550         * NEWS: Updated.
552 2002-07-18  Gaius Mulley  <gaius@glam.ac.uk>
554         Improved table, tab, and indenting support.
556         * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
557         string_iterator::suppress_newline_flag): Removed.  Updated all
558         function which have used it.
560         * src/roff/troff/env.cc: Include `input.h'.
561         (environment::add_node): Accept 0 as parameter.
562         (environment::add_html_tag): Add `force' parameter.
563         Updated all callers.
564         (environment::add_html_tag_tabs): Ditto.
565         For the moment, support left-aligned tabs only.
566         (environment::make_html_tag): New function.
567         (fill, no_fill): Set .br html tag additionally.
568         (environment::newline): Emit `eol.ce' or `eol' tag for html.
569         (environment::add_html_tag_eol): Removed.
570         (tab_stops::distance_to_next_tab): Add variant for handling 
571         nextpos'.
572         (environment::distance_to_next_tab): Ditto.
573         Updated all callers.
574         (environment::handle_tab): Handle tabs for html.
575         
576         * src/roff/troff/env.h: Updated.
578         * src/roff/troff/div.cc: Updated all callers of
579         `environment::add_html_tag'.
581         * src/devices/grohtml/html-table.cc,
582         src/devices/grohtml/html-table.h: New files.
584         * src/devices/grohtml/html-text.cc (html_text): New members
585         `blank_para' and `start_space'.
586         (html_text::issue_tag): Don't emit TABLE_TAG.
587         Handle indentation for PRE_TAG and P_TAG.
588         (html_text::end_tag): Updated.
589         (html_text::table_is_void, html_text::issue_table_begin,
590         html_text::issue_table_end): Removed.
591         (html_text::do_push): Simplified.
592         [DEBUGGING]: Small fix.
593         (html_text::push_para): Add new parameter for indentation; updated
594         all callers.
595         Handle PRE_TAG.
596         (html_text::do_indent, html_text::do_table, html_text::done_table,
597         html_text::is_in_table): Removed.
598         (html_text::do_pre): Handle P_TAG also.
599         (html_text::shutdown): Handle p->indent.
600         (html_text::check_emit_text): Simplified.
601         (html_text::do_emittext): Reset `blank_para'.
602         (html_text::do_para): Add new parameter for indentation; updated
603         all callers.
604         (html_text::remove_indent): New function.
605         (html_text::do_space): Handle verbatim text properly.
606         (html_text::ever_emitted_text, html_text::starts_with_space,
607         html_text::remove_para_align): New functions.
608         (html_text::dump_stack_element, html_text::dump_stack): Updated.
610         * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
611         Updated.
613         * src/devices/grohtml/post-html.cc: Include html-table.h.
614         (INDENTATION): Removed.
615         (text_glob): Added many `is_<foo>' functions.
616         Added table description `tab'.
617         Added `get_arg',`get_tab_args', `remember_table', and `get_table'
618         member functions.
619         (list): Add `insert' and `move_to' member functions.
620         (page): Add `insert_tag' member function.
621         (page::dump_page) [DEBUG_TABLES]: Improved.
622         (html_printer): Add `table' and `max_linelength' elements.
623         Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
624         `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
625         `remove_tabs', `remove_courier_tabs'.
626         (html_printer::emit_raw): Handle indentation.
627         (html_printer::do_center, html_printer::write_header): Updated.
628         (html_printer::is_courier_until_eol): Check for tag.
629         (html_printer::do_linelength): Handle max_linelength.
630         (html_printer::do_page_offset, html_printer::do_indentation): Handle
631         fill_on.
632         (html_printer::do_tempindent): Updated.
633         (html_printer::do_indentedparagraph): Removed.
634         (html_printer::do_indent): Simplified.
635         (html_printer::do_eol): Use `ever_emitted_text'.
636         (html_printer::do_flush, html_printer::do_links): Don't call
637         done_table.
638         (html_printer::do_break): Handle end_tempindent.
639         (html_printer::troff_tag): Get argument.
640         Don't handle `.ip'.
641         Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
642         (html_printer::flush_page): Call `lookahead_for_tables'.
643         Don't call `done_table'.
644         (html_printer::add_to_sbuf): Always call do_indent.
646         * src/devices/grohtml/Makefile.sub: Updated.
648         * tmac/an-old.tmac (TP): Don't handle html device specially.
649         (an-do-tag-html): New function which will be used instead of
650         `an-do-tag' if html device is used.
652         * tmac/html.tmac: Call .po to pass default page offset to grohtml.
654         * tmac/s.tmac (@IP): Don't handle html device specially.
655         (@IP-html): New function which will be used instead of `@IP' if
656         html device is used.
658         * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
659         is a hack which will eventually vanish again.
660         (PIMG): Handle `-C' option correctly if not html.
661         (HR): Use HTML-NS.
663 2002-07-17  Werner LEMBERG  <wl@gnu.org>
665         * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
667 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
669         * contrib/pic2graph/pic2graph.*: Use convert(1).
670         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
672 2002-07-14  Bernd Warken  <bwarken@mayn.de>
674         * tmac/groff_trace.man: New file.
675         * tmac/Makefile.sub: Updated.
676         * NEWS: Updated.
678 2002-07-13  Werner LEMBERG  <wl@gnu.org>
680         * src/roff/groff/groff.man: Add some cross references.
682 2002-07-12  Werner LEMBERG  <wl@gnu.org>
684         * src/roff/troff/input.cc (substring_request): Add warnings for
685         string indices out of range.
687 2002-07-11  Werner LEMBERG  <wl@gnu.org>
689         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
690         * font/devdvi/*EC: Regenerated.
692 2002-07-10  Bernd Warken  <bwarken@mayn.de>
694         * man/groff_char.man: Updated and extended.
696 2002-07-10  Werner LEMBERG  <wl@gnu.org>
698         * src/roff/troff/input.cc (length_macro): Renamed to...
699         (length_request): This.
700         Move call of `tok.next()' to the very end, otherwise the register
701         value hasn't been updated yet.
702         (init_input_requests): Updated.
704 2002-07-09  Werner LEMBERG  <wl@gnu.org>
706         * src/roff/troff/input.cc (substring_macro): Renamed to...
707         (substring_request): This.
708         (init_input_requests): Updated.
709         * src/roff/troff/request.h: Updated.
711 2002-07-08  Robert D. Goulding <goulding@Princeton.EDU>
713         * src/roff/grog/grog.sh: Fix typo.
715 2002-07-08  Werner LEMBERG  <wl@gnu.org>
717         * win32-diffs: Updated.
719         Handle `papersize' keyword properly in DESC.
721         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
722         type.
723         Updated all callers.
724         * src/libs/libgroff/paper.cc: Add four more paper formats used by
725         grolj4.
726         * src/include/paper.h: Updated.
728         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
729         Other minor C syntax fixes.
730         (papersize, paperlength, paperwidth): Renamed to `user_*'.
731         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
732         members.
733         (lbp_printer::lbp_printer): Pass three arguments.
734         Set paper dimensions properly.
735         (make_printer, main): Updated.
736         (handle_unknown_desc_command): Fix error messages.
737         (main): Handle papersize keyword in DESC properly.
739         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
740         `user_paper_size'.
741         (lbp_printer::lbp_printer): Pass an argument.
742         Set paper_size properly.
743         (handle_unknown_desc_command): Removed.
744         (make_printer, main): Updated.
745         * src/devices/grolj4/grolj4.man: Minor documentation fix.
747         * man/groff_font.man, NEWS: Updated.
749 2002-07-07  Werner LEMBERG  <wl@gnu.org>
751         Integrated eqn2graph, contributed by Eric S. Raymond.
753         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
754         files.
755         * Makefile.in, NEWS: Updated.
757 2002-06-04  Werner LEMBERG  <wl@gnu.org>
759         Changing the substring request to make it fit better with other
760         string manipulation functions in other programming languages:
761         Index 0 is now the first character in the string, and index -1
762         indicates the last character.  Since this request didn't work
763         properly anyway in the last release, it doesn't harm too much to
764         change the syntax.
766         * src/roff/troff/input.cc (substring_macro): Use loops to get
767         the real string length (ignoring COMPATIBLE_SAVE and
768         COMPATIBLE_RESTORE) and offsets.
769         Implement change described above.
771         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
772         (doc-do-Bd-args, doc-do-Bl-args: Changed accordingly.
774         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
776 2002-06-03  Werner LEMBERG  <wl@gnu.org>
778         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
779         COMPATIBLE_RESTORE are completely ignored.
781         * src/roff/troff/input.cc (char_list::set, char_list::get): New
782         functions.
783         (macro): `length' field renamed to `len'.
784         Added new field `empty_macro' (1 if macro is empty), to be used
785         instead of checking `len'.
786         Updated all callers.
787         (macro::empty): Updated.
788         (macro::length, macro::set, macro::get): New functions.
789         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
790         Set `empty_macro'.
791         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
792         COMPATIBLE_RESTORE pairs.
793         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
794         * src/roff/troff/request.h: Updated.
796         * doc/groff.texinfo: Document .chop's behaviour better.
798 2002-06-02  Werner LEMBERG  <wl@gnu.org>
800         * doc/pic.ms: Fix documentation for the addition of positions.
802         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
804 2002-06-29  Werner LEMBERG  <wl@gnu.org>
806         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
808         * src/roff/troff/input.cc (have_string_arg): New global variable.
809         (read_mode): New enumeration.
810         (read_escape_name): Use it.  Update all calls.
811         (read_long_escape_name): Use it.  Update all calls.
812         Set have_string_arg if appropriate.
813         (get_char_for_escape_name): Add parameter for handling space
814         character.
815         (interpolate_string_with_args, decode_string_args): New functions.
816         (get_copy, token::next): Call it if necessary.
817         (interpolate_string): Fix error message.
819         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
820         Document it.
822 2002-06-24  Bernd Warken  <bwarken@mayn.de>
824         * man/groff_tmac.man: Updated and extended.
826 2002-06-24  Werner LEMBERG  <wl@gnu.org>
828         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
830 2002-06-23  Werner LEMBERG  <wl@gnu.org>
832         * doc/pic.ms: Improve documentation of composite block objects.
834 2002-06-22  Werner LEMBERG  <wl@gnu.org>
836         * src/roff/troff/input.cc (init_registers): Add three registers
837         `seconds', `minutes', and `hours' to hold the current time.
839         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
840         Updated.
842 2002-06-20  Werner LEMBERG  <wl@gnu.org>
844         Make \X accept both `\ ' and `\~', converting them to single space
845         characters.
847         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
848         (token::unstretchable_space): New inline function.
849         * src/roff/troff/input.cc (token::next, token::delimiter,
850         token::description, token::add_to_node_list, token::process): Handle
851         TOKEN_UNSTRETCHABLE_NODE.
852         (encode_char): Handle tok.stretchable_space and
853         tok.unstretchable_space.
855         * NEWS, doc/groff.texinfo: Document it..
857 2002-06-19  Werner LEMBERG  <wl@gnu.org>
859         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
861         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
862         keyword to enable/disable SGR output.
863         (tty_printer::change_fill_color): New function.
864         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
866         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
867         call.
869 2002-06-18  Werner LEMBERG  <wl@gnu.org>
871         Add a `color' request and a `.color' register to control usage of
872         colours.
874         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
875         (color_flag): This (which is the inverse).
876         (activate_color): New function.
877         (main, init_input_requests): Updated.
878         * src/roff/troff/troff.h, src/roff/troff/node.cc
879         (troff_output_file::fill_color, troff_output_file::glyph_color):
880         Updated.
882         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
883         Document the changes.
885 2002-06-17  Colin Watson  <cjwatson@debian.org>
887         Circumvent bug in autoconf 2.53 regarding top_builddir.
889         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
890         * Makefile.in, doc/Makefile.in:
891         s/@top_builddir@/@groff_top_builddir@/.
892         * configure: Regenerated (with autoconf 2.53).
894 2002-06-17  Werner LEMBERG  <wl@gnu.org>
896         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
897         `paperwidth' and `paperlength' for the `papersize' keyword.
899 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
901         * src/devices/grops/grops.man: Add info about Type 42 fonts.
903 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
905         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
906         html_printer::do_linelength, html_printer::do_pageoffset,
907         html_printer::do_indentation, html_printer::do_tempindent,
908         html_printer::do_break, html_printer::begin_page): Clear indented
909         text.
910         * tmac/html.tmac: Disable hyphenation.
912 2002-06-15  Werner LEMBERG  <wl@gnu.org>
914         Don't produce HTML files if utility programs are missing.
916         * Makefile.in (make_html, make_install_html): New variables.
917         (MDEFINES): Updated.
919         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
920         utility programs.
921         * configure.ac: Use it.
922         * configure: Regenerated.
924         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
925         (HTMLEXAMPLESFILES): This new variable.
926         (EXAMPLESIMAGEFILES): Renamed to...
927         (HTMLEXAMPLEIMAGEFILES): This.
928         (CLEANADD): Add HTMLEXAMPLEFILES.
929         (all): Use `make_html'.
930         (html): New target.
931         (install_data): Use `make_install_html'.
932         Move html stuff to...
933         (install_html): This new target.
934         (uninstall_sub): Updated.
936 2002-06-14  Bernd Warken  <bwarken@mayn.de>
938         * src/roff/grog/Makefile.sub (grog): Renamed to...
939         (grog.old): This.
940         (grog): New rule to always install grog.sh as grog.
942 2002-06-08  Bernd Warken  <bwarken@mayn.de>
944         * src/roff/grog/grog.pl: Fix typo.
946 2002-06-07  Werner LEMBERG  <wl@gnu.org>
948         * doc/groff.texinfo: Add more info on .tr arguments.
950 2002-06-05  Werner LEMBERG  <wl@gnu.org>
952         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
954         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
955         * configure: Regenerated.
957 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
959         * src/roff/troff/symbol.cc (table_sizes): Add more values.
961         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
963 2002-06-04  Werner LEMBERG  <wl@gnu.org>
965         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
966         is not initialized at the time we need it in case `--prefix' hasn't
967         been set.  Check for `ac_default_prefix' also.
968         Test for `papersize' keyword also and generalize allowed whitespace.
969         * configure: Regenerated.
971         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
972         `paperlength'.
974         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
975         with...
976         (src_version, src_revision): New variables to avoid overwriting
977         from parent make process.
978         (version.cc): Updated.
980         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
981         (linebuf, linebufsize): New global variables.
982         (sys_fatal): Use `fatal' to abort properly.
983         (get_line): New function.
984         (get_resolution): Use it.
985         Improve error messages.
986         (get_papersize): Check `papersize' also.
987         Use `get_line'.
988         Improve error messages.
990 2002-06-03  Werner LEMBERG  <wl@gnu.org>
992         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
993         should be removed only if builddir is not srcdir.
994         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
995         (clean): Depend on `mostlyclean'.
996         (distclean): Depend on `clean'.
997         (realclean, extraclean): Depend on `distclean'.
998         (.y.cc, .y.o): Simplified.  The output files are no longer written
999         to srcdir but to builddir.
1000         * Makefile.in (MDEFINES): Add `version' and `revision'.
1001         (uninstall_dirs): Fix order of directories.
1002         * doc/Makefile.sub (version, revision): Removed.
1003         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
1004         Added `HTMLDOCFILES'.
1005         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
1006         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
1007         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
1008         as prefix.
1010         * doc/texinfo.tex (\authortt): New macro.
1011         (\shortcontt): Define.
1012         (\titlepage): Set \tt to \authortt while defining \authorfont.
1013         (\appendixbox): New macro.
1014         (\chapmacro, \appendixentry): Use \appendixbox to get even
1015         indentation for letters.
1016         (\summarycontents): Set \tt.
1017         (\internalpagesize): Add two arguments for real paper width and
1018         height as needed by pdfTeX.
1019         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
1020         Updated.
1021         (\tempdima, \tempdimb): New temporary dimensions.
1022         (\pagesizesyyy): Updated.
1024 2002-06-02  Werner LEMBERG  <wl@gnu.org>
1026         Adding a new keyword `papersize' to the DESC file format (similar
1027         but not completely identical to grolbp's extension).  grops now has
1028         a -p command line option to override `papersize'.  Finally, grolbp
1029         has been adapted to the new syntax.
1031         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
1032         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
1033         elements.
1034         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
1035         (CCSRCS): Add `paper.cc'.
1037         * src/include/font.h (font): Add `papersize' element.
1038         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
1039         (font::scan_papersize): New function.
1040         (font::load_desc): Use it for handling `papersize' keyword.
1041         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
1043         * src/devices/grops/ps.cc: Include paper.h.
1044         (user_paper_length): New global variable.
1045         (ps_printer): Use paper length as initializer.
1046         (make_printer): Updated.
1047         (main): Handle new `-p' option.
1048         * src/devices/grops/grops.man: Updated.
1050         * src/devices/grolbp/lbp.cc: Include paper.h.
1051         s/papersizes/lbp_papersizes/.
1052         (set_papersize): Use new `papersizes' array.
1053         (handle_unknown_desc_command): Don't handle `papersize'.
1054         (main): Use `font::scan_papersize' for handling `-p' option.
1055         * src/devices/grolbp/grolbp.man: Updated.
1057         * man/groff_font.man: Document `papersize'.
1058         * NEWS: Updated.
1060 2002-05-30  Werner LEMBERG  <wl@gnu.org>
1062         * src/devices/grops/TODO: Updated.
1063         * src/devices/grops/grops.man: More info on paper formats.
1064         * man/groff_font.man: Document `paperheight' and `paperwidth'.
1066 2002-05-29  Werner LEMBERG  <wl@gnu.org>
1068         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
1069         to list only if srcdir != currdir.
1070         (distfiles): New target.
1072         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
1073         (NOMAKEDIRS): New variable.
1074         (DISTDIRS): Use it.
1076 2002-05-26  Werner LEMBERG  <wl@gnu.org>
1078         Add .output request, similar to \! at top-level.
1080         * src/roff/troff/input.cc (transparent): Remove unused declaration.
1081         (output_request): New function.
1082         (init_input_requests): Add it.
1083         Sorted.
1084         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
1085         Document it.
1087         * Makefile.in (MDEFINES): Add INSTALL_INFO.
1088         (prepare_examples): Fix typo.
1089         * doc/groff.texinfo (@direntry): Fix it.
1091 2002-05-25  Werner LEMBERG  <wl@gnu.org>
1093         Including the doc subdir into groff's Makefile system.
1095         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
1096         * configure.ac: Use it.
1097         Generate `doc/Makefile'.
1098         * configure: Regenerated.
1100         * Makefile.in (infodir, INSTALL_INFO): New variables.
1101         (MDEFINES, uninstall_dirs): Updated.
1102         (OTHERDIRS): Add `doc'.
1103         * Makefile.comm (CLEANDIRADD): New variable.
1104         (mostlyclean): Use it.
1106         * doc/Makefile.sub, doc/Makefile.in: New files.
1107         * doc/Makefile: Removed.
1109         * NEWS, INSTALL: Updated.
1111 2002-05-24  Werner LEMBERG  <wl@gnu.org>
1113         * doc/homepage.ms: Renamed to ...
1114         * doc/webpage.ms: This.
1115         Use `.NHR'.
1117 2002-05-23  Werner LEMBERG  <wl@gnu.org>
1119         Integrating the `mom' macro package, contributed by Peter Schaffter
1120         <df191@ncf.ca>.
1122         * contrib/mom/*: New subdirectory tree.
1123         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
1124         be used for documentation files.
1125         (MDEFINES, uninstall_dirs): Use them.
1126         (OTHERDIRS): Add contrib/mom.
1127         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
1128         @HTMLDOCDIR@.
1129         * MANIFEST, NEWS: Updated.
1131 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
1133         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
1134         if at outer level; at start-up we are at outer level.
1136         * src/roff/troff/input.cc (do_suppress): Implement it.
1137         Simplify \O[3].
1139         Add option -p to show progress information.
1140         pre-grohtml will now render only one page at a time, reducing the
1141         size of needed disk resources enormously.
1143         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
1144         (imagePageName): New global variable.
1145         (psPageName, show_progress, currentPageNo): New global variables.
1146         (html_system): Close saved stderr and stdout handles.
1147         (write_end_image): Accept a parameter to control \O escape.
1148         (write_start_image): Adapted to new \O meaning.
1149         (char_buffer::write_upto_newline): Updated.
1150         (createAllPages): Replaced with...
1151         (createPage): This new function to create a single page for images.
1152         It uses `psselect' from the psutils package.
1153         (removeAllPages): Removed.
1154         (createImage): Updated.
1155         Handle progress display.
1156         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
1157         (scanArguments): Add option -p.
1158         (makeTempFiles): Updated to create temp files for psPageName and
1159         imagePageName.
1160         (removeTempFiles): Removed.
1161         (main): Updated.
1163         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
1164         html_printer::write_header): Append `\0' to `buffer'.
1165         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
1166         (main): Handle -p.
1167         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
1168         Handle `text_emitted'.
1169         (html_text::table_is_void): Slightly rewritten.
1170         (stop): New external symbol.
1171         (html_text::do_push) [DEBUGGING]: Use it and simplify.
1172         (html_text::shutdown): Call `dump_stack'.
1173         (html_text::do_space): Rewritten.
1174         * src/devices/grohtml/grohtml.man: Document -p and the need of
1175         `psselect'.
1177         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
1178         new \O syntax.
1179         Call \O[0] if `ps4html' is active.
1180         * tmac/s.tmac (@EQ, @EN): Handle html better.
1181         (@TS, TE): Ditto.
1182         * tmac/html.tmac: Don't use black for background colour.
1184         * src/roff/troff/node.cc: Include `div.h'.
1185         (troff_output_file::really_print_line): Don't use `is_on'. 
1186         (troff_output_file::word_marker, troff_output_file::flush_tbuf
1187         troff_output_file::check_charinfo,
1188         troff_output_file::put_char_width, troff_output_file::put_char,
1189         troff_output_file::determine_line_limits, troff_output_file::draw,
1190         real_output_file::begin_page, glyph_color_node::tprintf,
1191         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
1192         Use `is_on'.
1193         (troff_output_file::really_on): Call `do_motion'.
1194         (suppress_node::tprint): Use `get_page_number' instead of `%'
1195         register.
1196         Call `reset_output_registers' conditionally on `is_on'.
1198         * doc/groff.texinfo: Document new syntax of \O.
1199         * NEWS, man/groff_diff.man: Updated.
1201 2002-05-22  Werner LEMBERG  <wl@gnu.org>
1203         * MORE.STUFF: Add info about David Frey's deroff implementation.
1204         Mention troff.org.
1206 2002-05-16  Werner LEMBERG  <wl@gnu.org>
1208         Pic's `with' attribute now accepts positions.
1210         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
1211         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
1212         conflicts.
1213         (object_spec): Add rule for `WITH' and `position'.
1214         (relative_path): Give `corner' the precedence of `CHOP'.
1215         * src/preproc/pic/object.h (path): New members `pos' and
1216         `is_position'.
1217         * src/preproc/pic/object.cc: Updated initializers of `path'.
1218         (path::follow): Handle `is_position'.
1220         * doc/pic.ms: Completely updated grammar description.
1221         Many typographical improvements.
1223 2002-05-15  Werner LEMBERG  <wl@gnu.org>
1225         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
1226         code of x in range 0-127) also.
1227         * doc/groff.texinfo, man/groff_diff.man: Updated.
1229         Added keywords `north', `south', `east', and `west' for corners
1230         in pic.
1232         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
1233         and WEST.
1234         (yylex): Handle them.
1235         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
1236         (corner): Handle them.
1238 2002-05-14  Werner LEMBERG  <wl@gnu.org>
1240         * src/devices/grops/grops.man: Clarify handling of `download' file.
1242 2002-05-11  Werner LEMBERG  <wl@gnu.org>
1244         Adding `warnscale' and `spreadwarn' requests, based on a patch from
1245         Jeffrey Friedl <jfriedl@yahoo.com>.
1247         * src/roff/troff/input.cc (spread_limit, warn_scale,
1248         warn_scaling_indicator): New global variables.
1249         (warnscale_request, spreadwarn_requests): New functions.
1250         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
1251         (init_input_requests): Updated.
1252         (error_type): Add `OUTPUT_WARNING'.
1253         (do_error): Handle it.
1254         (output_warning): New warning function which shows output location.
1255         * src/roff/troff/env.h (spread_limit): New external variable.
1256         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
1257         `output_warning'.
1258         (distribute_space): Emit warning if added space is larger than
1259         `spread_limit'.
1260         (environment::possibly_break_line): Emit warning if a line can't
1261         be adjusted on both sides.
1263         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
1265 2002-05-08  Werner LEMBERG  <wl@gnu.org>
1267         * src/roff/troff/node.cc (special_node::special_node): Use
1268         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
1269         \X''\% crashes, for example.
1271         * doc/groff.texinfo: Document \! and \? used at top-level.
1273 2002-05-06  Werner LEMBERG  <wl@gnu.org>
1275         * src/preproc/pic/pic.man: Fix some keyword syntax.
1276         Other minor typographical fixes.
1278         * src/roff/groff/groff.man: Fix typos.
1280 2002-05-04  Werner LEMBERG  <wl@gnu.org>
1282         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
1283         (ShortOpt[]): This to avoid problems with refer.
1285         * doc/pic.ms: Fix typo.
1286         Fix pic grammar description.
1288         * tmac/an-old.tmac (ne): Use de1, not de.
1290 2002-05-03  Werner LEMBERG  <wl@gnu.org>
1292         * doc/groff.texinfo: Finished separation of glyphs and characters.
1293         Don't use the string `Appendix' for appendix headers (both in
1294         the text and the table of contents).
1295         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
1296         directories.
1298         Use registers LL and LT (similar to -ms) for controlling the
1299         length of title and line, respectively, in the -man and -mdoc
1300         macro packages.
1302         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
1303         (doc-setup-page-layout): Use \n[LL] and \n[LT].
1304         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
1305         (TH): Use \n[LL].
1306         (an-header, an-p-footer): Use \n[LT].
1307         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
1308         doc/groff.texinfo: Document it.
1310 2002-05-02  Werner LEMBERG  <wl@gnu.org>
1312         * doc/fdl.texi: New file.
1313         * doc/groff.texinfo: Include it.
1314         Define and use @copying.
1315         Starting with separating glyph, symbol, and character.
1317 2002-04-27  Werner LEMBERG  <wl@gnu.org>
1319         * Makefile.in (EXEEXT): Set it.
1320         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
1321         programs.
1323         * src/include/nonposix.h: Define GS_NAME.
1324         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
1326         Some preliminary changes for EMX support under OS/2.
1328         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
1329         __EMX__ similar to __MSDOS__.
1330         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
1332 2002-04-25  Werner LEMBERG  <wl@gnu.org>
1334         * doc/groff.texinfo: Integrated groff_out.man.
1335         Some macro fixes.
1337 2002-04-23  Werner LEMBERG  <wl@gnu.org>
1339         * man/groff_out.man: Minor fixes.
1341 2002-04-23  Werner LEMBERG  <wl@gnu.org>
1343         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
1344         correct page references.
1345         Fixed many index entries.
1347 2002-04-23  Bernd Warken  <bwarken@mayn.de>
1349         * man/roff.man: Enlarged.
1351 2002-04-22  Werner LEMBERG  <wl@gnu.org>
1353         * doc/groff.texinfo: More examples, other fixes.
1355 2002-04-20  Werner LEMBERG  <wl@gnu.org>
1357         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
1358         will now form a chain, e.g.
1360           .pi foo
1361           .pi bar
1363         is now the same as
1365           .pi foo | bar
1367         This is for compatibility with plan 9's troff.
1369         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
1370         with UNIX troff.
1371         * NEWS: Updated.
1373         * doc/groff.texinfo: Add documentation of remaining requests and
1374         registers.
1376 2002-04-19  Werner LEMBERG  <wl@gnu.org>
1378         * doc/groff.texinfo: Add documentation of remaining escapes.
1380         * font/devdvi/generate/tc.map: Remove entry for `sr'.
1381         * font/devdvi/*TC: Regenerated.
1383 2002-04-18  Werner LEMBERG  <wl@gnu.org>
1385         * src/roff/troff/input.cc (token::next): Make \H behave consistently
1386         if not in compatibility mode, i.e., increment relative to the
1387         previous height.
1388         * doc/groff.texinfo: Updated accordingly.
1390 2002-04-17  Werner LEMBERG  <wl@gnu.org>
1392         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
1394 2002-04-16  Bernd Warken  <bwarken@mayn.de>
1396         * src/roff/groff/groff.man: Improve documentation of -P option.
1397         Other minor fixes.
1399 2002-04-15  Werner LEMBERG  <wl@gnu.org>
1401         Add new escape \F to switch font family.
1403         * src/roff/troff/input.cc (token::next): Handle \F.
1404         * src/roff/troff/env.cc (environment::set_family): Handle
1405         `interrupted' flag.
1406         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
1407         Document it.
1409 2002-04-14  Werner LEMBERG  <wl@gnu.org>
1411         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
1412         spaces in tags.
1414 2002-04-13  Werner LEMBERG  <wl@gnu.org>
1416         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
1417         \m[] and \M[], respectively.
1419         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
1420         (symbol::symbol): Handle NULL string and empty string differently.
1421         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
1422         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
1423         Add optional parameter.
1424         Updated calling functions.
1425         (get_copy, do_glyph_color, do_fill_color, token::next): Use
1426         `symbol::is_empty'.
1427         * src/roff/troff/env.cc (environment::set_font): Ditto.
1429         * src/preproc/pic/troff.cc (troff_output::set_fill,
1430         troff_output::reset_color: Updated.
1432         * tmac/www.tmac: Updated.
1434         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
1435         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
1436         Updated.
1438         * tmac/Xps.tmac: Remove some redundant code.
1440         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
1441         tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
1442         man/groff_out.man, man/groff.man, man/groff_diff.man,
1443         src/roff/groff/groff.man: Replace \f[P] with \f[].
1445 2002-04-13  Bernd Warken  <bwarken@mayn.de>
1447         * src/include/printer.h, src/libs/libdriver/printer.cc
1448         (printer::change_fill_color): New member function.
1449         * src/libs/libdriver/input.cc (parse_D_command): Use it.
1451 2002-04-12  Werner LEMBERG  <wl@gnu.org>
1453         * doc/groff.texinfo: Completed pass on gtroff reference.
1455 2002-04-11  Werner LEMBERG  <wl@gnu.org>
1457         * doc/groff.texinfo: More fixes.
1459 2002-04-11  Bernd Warken  <bwarken@mayn.de>
1461         * src/include/color.h: Decorate with `const'.
1462         Use `size_t'.
1463         Include `stddef.h'.
1464         * src/libs/libgroff.color.cc: Decorate with `const'.
1465         Use `size_t'.
1466         (color::color): Initialize members.
1467         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
1468         command according to the documentation.
1470         * man/groff_out.man: Updated.
1471         Minor fixes.
1473 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
1475         * src/preproc/html/pre-html.cc (write_start_image): Remove
1476         redundant output.
1477         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
1479         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
1480         \C'hy' caused an assertion failure.
1482         * src/roff/troff/env.cc (environment::environment): Initialize
1483         `emitted_node'.
1484         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
1486 2002-04-10  Werner LEMBERG  <wl@gnu.org>
1488         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1489         Document pvs request and .pvs register.
1491 2002-04-09  Werner LEMBERG  <wl@gnu.org>
1493         * doc/groff.texinfo: Improve and fix documentation of diversions
1494         and environments.
1496 2002-04-08  Werner LEMBERG  <wl@gnu.org>
1498         * doc/groff.texinfo: Fix documentation of drawing functions.
1499         Other minor fixes.
1501 2002-04-07  Werner LEMBERG  <wl@gnu.org>
1503         * doc/groff.texinfo: Better documentation of double quotes as
1504         arguments.
1505         Other minor fixes.
1507 2002-04-06  Werner LEMBERG  <wl@gnu.org>
1509         * man/groff_font.man: Document names of special characters better.
1510         * doc/groff.texinfo: Minor improvements.
1512         * tmac/lbp.tmac: Load latin1.tmac.
1513         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
1515         * font/devX*/*: Regenerated (all chars > 0x80 removed).
1517 2002-04-05  Werner LEMBERG  <wl@gnu.org>
1519         * tmac/tty.tmac: Don't use shc request.
1520         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
1521         * NEWS: Updated.
1523         * man/groff_diff.man: Minor fixes.
1525         * font/devlbp/*: Remove all `charXXX' entities.
1527         * src/libs/libgroff/font.cc (font::~font): Deallocate
1528         `special_device_coding'.
1529         (font::load): Use `new' for allocating `special_device_coding'.
1530         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
1531         Removed unused member.
1533 2002-04-05  Werner LEMBERG  <wl@gnu.org>
1535         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
1536         (resource_manager::do_begin_binary,
1537         resource_manager::do_begin_data): Use it.
1539         * doc/texinfo.tex: Updated to version 4.2.
1541         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
1542         (token::zero_width_break): New inline function.
1543         * src/roff/troff/input.cc (token::next): Use it.
1544         (token::description): Updated.
1545         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
1546         (token::add_to_node_list, token::process): Use it.
1547         * NEWS, doc/groff.texinfo: Updated.
1549         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
1550         * tmac/tty.tmac: Add missing backslash.
1552 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
1554         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
1555         `.ps' register instead of `.s' to handle fractional point sizes.
1556         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
1557         limit_box::output): Ditto.
1558         * src/preproc/eqn/other.cc (size_box::compute_metrics,
1559         size_box::output): Ditto.
1560         * src/preproc/eqn/over.cc (over_box::compute_metrics,
1561         over_box::output): Ditto.
1562         * src/preproc/eqn/script.cc (script_box::compute_metrics,
1563         script_box::output): Ditto.
1564         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
1565         sqrt_box::output): Ditto.
1567 2002-04-03  Michael Selway  <mas@ssl.co.uk>
1569         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
1570         Fix typo.
1572 2002-04-03  Werner LEMBERG  <wl@gnu.org>
1574         * doc/homepage.ms: Reduce title size.
1575         * doc/groff.texinfo: Fix documentation of .t register.
1576         Fix handling of colon.
1577         Fix `\' vs. `\\'.
1579         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
1580         only if page length is positive to avoid a loop.
1582         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
1583         tbl.
1585 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
1587         * src/include/nonposix.h, src/roff/groff/pipeline.c:
1588         s/__CYGWIN32__/__CYGWIN__/.
1590 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
1592         * doc/gnu.xpm: New image contributed by Emily Mulley.
1593         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
1594         (homepage.html): Be dependent on gnu.eps.
1595         * doc/homepage.ms: Updated to new image.
1597         * src/devices/grohtml/post-html.cc (html_printer): New member
1598         `sbuf_prev_hpos'.
1599         (html_printer::flush_sbuf, html_printer::set_char): Set it.
1600         (html_printer::sbuf_continuation): Use it.
1602 2002-03-28  Werner LEMBERG  <wl@gnu.org>
1604         * src/libs/libgroff/getopt.c: Updated to latest version.
1606         * tmac/README: More on hyphen.tex license.
1608 2002-03-26  Larry Kollar  <kollar@alltel.net>
1610         * doc/groff.texinfo: Add documentation of most missing requests.
1612 2002-03-25  Werner LEMBERG  <wl@gnu.org>
1614         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
1615         of `+-', `mu', and `di', respectively.
1617         * font/devascii/R.proto, font/devutf8/R.proto,
1618         font/devlatin1/R.proto, font/devhtml/R.proto,
1619         font/devcp1047/R.proto, font/devlpb/*: Add them.
1620         * font/devps/generate/textmap: Ditto.
1621         * font/devps/*: Regenerated.
1622         * font/devlj4/generate/text.map: Add them.
1623         * font/devlj4/*: Regenerated.
1624         * font/devdvi/generate/tc.map: Use them.
1625         * font/devdvi/generate/texsy.map: Add them.
1626         * font/devdvi/*: Regenerated.
1627         * font/devX*/*: Regenerated.
1629         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
1630         tmac/tty-char.tmac: Updated.
1632         * NEWS, man/groff_char.man: Updated.
1634 2002-03-24  Werner LEMBERG  <wl@gnu.org>
1636         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
1637         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
1638         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
1639         we use `.fchar' in dvi.tmac.
1640         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
1641         * tmac/Xps.tmac: Simplify some char definitions.
1642         Add definition for \[f/].
1643         * man/groff_char.man: Updated for new X.tmac.
1645         * tmac/README: New file.
1647 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
1649         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
1650         internal .y.o rule took precendence over the .y.cc rule, compiling
1651         the yacc files with gcc instead of g++.
1653 2002-03-23  Werner LEMBERG  <wl@gnu.org>
1655         * tmac/dvi.tmac: Add replacement font for `CB'.
1657         * tmac/doc.tmac: s/request/macro/ in messages.
1658         (doc-generic-macro): Improve error message.
1659         * tmac/groff_mdoc.man: Minor improvements.
1661 2002-03-22  Werner LEMBERG  <wl@gnu.org>
1663         * doc/groff.texinfo: Document possible conflict between `tr' and
1664         `char' requests.
1666 2002-03-21  Werner LEMBERG  <wl@gnu.org>
1668         Improve handling of hyphenation patterns.  It is now possible to
1669         use most of TeX's pattern files unmodified.  To make the process
1670         more flexible, a new request `hpfcode' has been added which
1671         provides a character code mapping for the `hpf' request.  See
1672         comment before hpf_getc() for more details.
1674         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
1675         functions.
1676         (read_patterns_file): Additional parameter for exception dictionary.
1677         Extended to recognize \pattern, \hyphenation, and \endinput.
1678         (do_hyphenation_patterns_file): Updated.
1679         * src/roff/troff/env.h (hpf_code_table): New extern.
1681         * src/roff/troff/input.cc (hpf_code_table): New array.
1682         (init_hpf_code_table, hyphenation_patterns_file_code): New
1683         functions.
1684         (hyphenation_code): Handle translation from `trin' correctly.
1685         (main, init_input_requests): Updated.
1686         (charinfo::set_translation): Handle hyphenation code also.
1688         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
1689         inline function.
1691         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
1692         char' is used for offsets in hyphenation exceptions.
1694         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
1696         * NEWS, man/groff_diff.man, man/groff.man: Document it.
1698 2002-03-20  Larry Kollar  <kollar@alltel.net>
1700         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
1701         requests.
1703 2002-03-18  Werner LEMBERG  <wl@gnu.org>
1705         * tmac/html.tmac: Fix serious typo.
1707 2002-03-17  Larry Kollar  <kollar@alltel.net>
1709         * doc/groff.texinfo: Add documentation for `writec' request.
1711 2002-03-17  Werner LEMBERG  <wl@gnu.org>
1713         Added request `hpfa' to append hyphenation patterns.
1715         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
1716         parameter `append'.
1717         (hyphenation_patterns_file): Renamed to...
1718         (do_hyphenation_patterns_file): This.
1719         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
1720         functions.
1721         (init_hyphen_requests): Updated.
1722         * NEWS, man/groff.man, man/groff_diff.man: Document it.
1724 2002-03-16  Werner LEMBERG  <wl@gnu.org>
1726         Added request `writec' in analogy to `tmc'.
1728         * src/roff/troff/input.cc (write_request): Renamed to...
1729         (do_write_request): This.
1730         Added one parameter.
1731         (write_request, write_request_continue): New functions.
1732         (init_input_requests): Updated.
1733         * NEWS, man/groff.man, man/groff_diff.man: Document it.
1735         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
1736         5-10000pt.
1737         * NEWS: Document it.
1739 2002-03-15  Werner LEMBERG  <wl@gnu.org>
1741         * man/groff.man: Add writem request.
1743         Add request `trin' (translate input) to make `.asciify' work
1744         correctly.  This is necessary since `charXXX' entity names are no
1745         longer hardcoded in font definition files.
1747         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
1748         `translate_input' members.
1749         (charinfo::set_asciify_code, charinfo::get_asciify_code,
1750         charinfo::set_translation_input): New methods.
1751         (charinfo::set_translation): Add third argument.
1752         * src/roff/troff/input.cc (charinfo:set_translation): Set
1753         `asciify_code'.
1754         (do_translate): Add second argument.
1755         (translate_input): New function.
1756         (init_input_requests): Updated.
1757         * src/roff/troff/node.cc (glyph_node::asciify,
1758         composite_node::asciify): Use `get_asciify_code'.
1760         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
1762         * NEWS, man/groff.man, man/groff_diff.man: Updated.
1764 2002-03-14  Larry Kollar  <kollar@alltel.net>
1766         * doc/groff.texinfo: Improve documentation of .RS and .RE.
1768 2002-03-14  Werner LEMBERG  <wl@gnu.org>
1770         Add a new request `sizes' similar to the `sizes' command in DESC
1771         files.
1773         * src/roff/troff/env.cc (override_sizes): New function.
1774         (init_env_requests): Use it.
1775         * src/roff/troff/token.h: Export `read_string'.
1776         * NEWS, man/groff_diff.man, man/groff.man: Document it.
1778 2002-03-12  Werner LEMBERG  <wl@gnu.org>
1780         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
1782 2002-03-10  Werner LEMBERG  <wl@gnu.org>
1784         * tmac/pspic.tmac: Add support for -Tdvi.
1785         * tmac/dvi.tmac: Include pspic.tmac.
1786         * src/devices/grodvi/grodvi.man: Document it.
1787         * NEWS: Updated.
1789         * font/devlj4/generate/Makefile: Fix URL of metric files.
1791 2002-03-09  Werner LEMBERG  <wl@gnu.org>
1793         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
1795 2002-03-09  Larry Kollar  <kollar@alltel.net>
1797         * tmac/groff_ms.man: Add documentation for RS and RE macros.
1799 2002-03-08  Werner LEMBERG  <wl@gnu.org>
1801         * doc/groff.texinfo: Fixes for texinfo 4.1.
1803 2002-03-07  Werner LEMBERG  <wl@gnu.org>
1805         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
1806         included.
1807         Handle CYGWIN properly.
1809 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
1811         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
1812         * tmac/lbp.tmac: Add some font translations.
1814 2002-03-02  Werner LEMBERG  <wl@gnu.org>
1816         * font/devcp1047/R.proto, font/devlatin1/R.proto,
1817         font/devhtml/R.proto: Remove `charXXX'  entries.
1818         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
1819         where appropriate.
1821         * font/devlj4/generate/text.map: Remove `charXXX' entries.
1822         * font/devlj4/*: Regenerated all font definition files.
1823         * tmac/lj4.tmac: Load latin1.tmac.
1825         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
1826         from 2000-06-17: LJ4 metric files are *not* text files.
1828         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
1829         register to test for EBCDIC.
1831 2002-03-01  Werner LEMBERG  <wl@gnu.org>
1833         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
1834         files (as grops already does).
1835         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
1836         files.
1837         * src/devices/grops/grops.man: Document comment lines in encoding
1838         files.
1840         * tmac/cp1047.tmac: New file.
1841         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
1842         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
1843         * tmac/Makefile.sub (NORMALFILES): Updated.
1845         * tmac/ec.tmac: Don't load latin1.tmac again.
1847         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
1848         font/devps/generate/dingbats.map,
1849         font/devps/generate/dingbats.rmap, font/devps/text.enc,
1850         font/devps/generate/Makefile (symbolmap): Add header comment.
1851         * font/devps/generate/textmap: Ditto.
1852         Remove `charXXX' entries.
1853         * font/devps/symbolmap: Regenerated.
1854         * font/devps/*: Regenerated all font definition files.
1856 2002-02-28  Werner LEMBERG  <wl@gnu.org>
1858         Add color support to grodvi (for drawing colors are currently
1859         translated to gray values).
1861         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
1862         (dvi_printer): Add `cur_color' member.
1863         (dvi_printer::set_color): New function.
1864         (draw_dvi_printer): Remove `fill'.
1865         (draw_dvi_printer::fill_next): Pass environment as parameter.
1866         Update code for new color support translated to gray.
1867         (dvi_printer::set_char): Updated.
1868         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
1869         changes crossing the page border.
1870         (dvi_printer::draw): Updated.
1871         Remove cases `f' and `F'.
1872         * tmac/dvi.tmac: Add color definitions.
1873         * NEWS, src/devices/grodvi/grodvi.man: Updated.
1875         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
1876         used incorrectly.
1878         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
1879         versions of autoconf.
1880         * configure: Updated.
1882         * doc/homepage.ms: Use `.blm'.
1883         * tmac/www.tmac (www-depth): New auxiliary variable.
1884         (www-pop-level): Don't issue HTML tag.
1885         (ULS, ULE, LI): Use absolute indentation.
1887         * src/devices/grops/ps.cc (ps_printer::begin_page,
1888         ps_printer::end_page): Switch forth and back to default color while
1889         starting a new page.
1891 2002-02-27  Werner LEMBERG  <wl@gnu.org>
1893         Add EC and TC fonts to devdvi.
1895         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
1896         * font/devdvi/generate/cork.map: Renamed to...
1897         * font/devdvi/generate/ec.map: This.
1898         Remove entry for `aq'.
1899         * font/devdvi/generate/tc.map: New file.
1900         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
1901         EC and TC fonts.
1902         (FONTS): Updated.
1903         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
1904         * font/devdvi/Makefile.sub (DEVFILES): Updated.
1905         * tmac/ec.tmac: New file.
1906         * tmac/Makefile.sub (NORMALFILES): Updated.
1907         * NEWS, src/devices/grodvi/grodvi.man: Updated.
1908         * man/groff_char.man: Check `ECFONTS' register.
1910         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
1912 2002-02-26  Werner LEMBERG  <wl@gnu.org>
1914         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
1915         * font/devdvi/generate/cork.map: Add 'y and 'Y.
1916         * font/devdvi/*: Updated.
1917         * tmac/dvi.tmac: Formatting.
1919         Add font `HBI' for the dvi output.
1920         Add support for font families `T' and `H'.
1922         * font/devdvi/HBI: New file.
1923         * font/devdvi/B: Renamed to ...
1924         * font/devdvi/TB: This.
1925         * font/devdvi/BI: Renamed to ...
1926         * font/devdvi/TBI: This.
1927         * font/devdvi/I: Renamed to ...
1928         * font/devdvi/TI: This.
1929         * font/devdvi/R: Renamed to ...
1930         * font/devdvi/TR: This.
1931         * font/devdvi/H: Renamed to ...
1932         * font/devdvi/HR: This.
1933         * font/devdvi/Makefile.sub (DEVFILES): Updated.
1934         * font/devdvi/generate/Makefile (HBI): New rule.
1935         (FONTS): Updated.
1936         (R, I, B, BI, H): Renamed to ...
1937         (TR, TI, TB, TBI, HR): This, respectively.
1938         (srcdir): Fixed.
1939         * NEWS, src/devices/grodvi/grodvi.man: Updated.
1940         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
1941         Add `styles' and `family' keywords.
1942         * tmac/dvi.tmac: Alias `H' to `HR'.
1943         Add some fspecial requests for italic fonts.
1944         Add TR and TI as special.
1945         Add support for `_' with font CWI.
1947         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
1948         operator `:'.  Until now, the expression `0:1' would return 2
1949         instead of 1.
1951 2002-02-25  Werner LEMBERG  <wl@gnu.org>
1953         * man/groff_char.man: Added some missing PS glyph names (from the
1954         Adobe Glyph List).
1955         * font/devps/generate/textmap, font/devps/symbolmap: Add
1956         `arrowupdn'.
1958         * doc/groff.texinfo: Minor additions and fixes.
1959         * man/groff_diff.man: Remove documentation of fp request.  This
1960         is already covered in the original troff manual.
1961         Updated to be consistent with other doc files.
1962         * NEWS: Updated.
1964 2002-02-24  Werner LEMBERG  <wl@gnu.org>
1966         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
1967         TTYDEVDIRS.
1968         Define new variable OTHERDEVDIRS (containing `font/devlj4
1969         font/devlbp' if not EBCDIC).
1970         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
1971         (OTHERDEVDIRS): New variable.
1972         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
1973         * configure: Regenerated.
1975         * NEWS, src/devices/grotty/grotty.man: Updated.
1977 2002-02-23  Werner LEMBERG  <wl@gnu.org>
1979         * src/roff/troff/input.cc (do_overstrike, do_bracket,
1980         get_line_arg): Honour input level.
1982         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
1984         * font/*/*: Implement it in all font files.
1985         * font/devps/generate/textmap, font/devps/generate/symbolchars,
1986         * font/devps/symbolmap: Updated.
1987         * font/devlj4/generate/text.map: Updated.
1988         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
1989         * font/devdvi/generate/texmi.map: Updated.
1991         * font/devutf8/R.proto: Remove all `charXXX' entries.
1992         * font/devutf8/NOTES: Updated.
1994         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
1995         version 4.1.0.
1997         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
1999         * NEWS, man/groff_char.man: Updated.
2001 2002-02-21  Phil Lobbes <phil@perkpartners.com>
2003         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
2005 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2007         * src/roff/grog/grog.pl: Fix computation of $refer.
2009 2002-02-19  Werner LEMBERG  <wl@gnu.org>
2011         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
2012         `snprintf' and `vsnprintf'.
2014         * src/include/htmlindicate.h: Renamed to...
2015         * src/include/htmlhint.h: This.
2016         * src/include/Makefile.sub: Updated.
2017         * src/preproc/eqn/main.cc: Updated.
2019 2002-02-18  Werner LEMBERG  <wl@gnu.org>
2021         * man/roff.man, man/groff_out.man, man/groff.man,
2022         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
2023         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
2025         * win32-diffs: Updated.
2027 2002-02-17  Werner LEMBERG  <wl@gnu.org>
2029         * doc/Makefile (clean): Add *.eps.
2030         (MEMACROS): Removed.
2031         (TFLAG): New variable.
2032         (TROFF): Use it.
2033         Add -ww.
2034         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
2035         (.me.dit): Fixed.
2036         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
2038         * tmac/www.tmac: Use dummy diversion while resetting and disabling
2039         `.tl'.
2040         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
2041         unstripped.
2042         * src/roff/troff/troff.man: Fix order of parameter description.
2044         * NEWS: Updated.
2046 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
2048         Simplify image handling for grohtml.
2049         Fix <p> bug.
2051         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
2052         comment out.
2053         (html_text::dump_stack): Don't emit newline while debugging.
2054         (html_text::do_push) [DEBUGGING]: Print more info.
2055         (html_text::check_emit_text): Fix handling of <p>.
2056         * src/devices/grohtml/html.h: Updated.
2057         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
2058         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
2059         send its data to stderr also.
2060         Update all callers.
2061         (simple_output::space_or_newline) [DEBUGGING]: Removed.
2062         * src/devices/grohtml/post-html.cc (html_printer::do_links,
2063         html_printer::html_printer): Remove `DEBUGGING' conditionals.
2065         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
2066         Removed.
2067         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
2068         is_inline_image): Removed.
2069         (html_begin_suppress, html_end_suppress): Don't take a parameter.
2070         (graphic_start, graphic_end): Removed.
2071         * src/include/htmlindicate.h: Updated.
2072         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
2073         (macroset_template): New global variable.
2074         (makeFileName): Use `macroset_template'.
2075         (write_end_image): Don't take a parameter.
2076         Don't emit newline.
2077         (write_start_image: Don't emit newline.
2078         (char_buffer::write_upto_newline): Updated.
2079         (char_buffer::skip_to_newline): Renamed to ...
2080         (char_buffer::skip_until_newline): This.
2081         Fix code.
2082         (char_buffer::write_file_troff, char_buffer::write_file_html):
2083         Simplified.
2084         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
2085         (removeAllPages): Remove `DEBUGGING' conditionals.
2086         (addRegDef, dump_args): New functions.
2087         (char_buffer::do_html, char_buffer::do_image): Handle
2088         `www-image-template' command line variable.
2089         Add more debugging code.
2090         (addps4html): Removed.
2091         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
2093         * src/preproc/eqn/main.cc: Include `ctype.h'.
2094         (suppress_html): Removed.
2095         (do_file): Updated.
2096         (inline_equation): Use `html_begin_suppress' and
2097         `html_end_suppress'.
2098         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
2099         (troff_output::start_picture, troff_output::finish_picture):
2100         Updated.
2101         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
2102         (process_input_file): Updated.
2104         * src/roff/troff/div.cc (page_number): Set page number only if the
2105         `ps4html' register isn't defined.
2106         * src/roff/troff/input.cc (image_no): New external variable.
2107         (do_suppress): Use it.
2108         * src/roff/troff/node.h (suppress_node::image_id): New member.
2109         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
2110         (suppress_node::suppress_node): Initialize `image_id' member.
2111         (suppress_node::same): Handle `image_id' also.
2112         (suppress_node::copy): Updated.
2113         (last_image_id): New global variable.
2114         (suppress_node::tprint): Use it.
2116         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
2117         HTML-IMAGE-END.
2118         * tmac/pspic.mac (PSPIC): Fix html support.
2119         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
2120         * tmac/www.tmac (www-image-template): Set up.
2121         (HTMLINDEX): Renamed to...
2122         (HX): This.
2123         (BODYCOLOR): Renamed to...
2124         (BCL): This.
2125         (BACKGROUND): Renamed to...
2126         (BGIMG): This.
2127         (URL): Change order of parameters for consistency.
2128         (MAILTO): Renamed to...
2129         (MTO): This.
2130         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
2131         (IMG, PIMG, MPIMG): This.
2132         (HTML-H-BEGIN, HTML-H-END): Renamed to...
2133         (HnS, HnE): This.
2134         (LINKS): Renamed to...
2135         (LK): This.
2136         (LINE): Renamed to...
2137         (HR): This.
2138         (NO-AUTO-RULE): Renamed to...
2139         (NHR): This.
2140         (HTML-TL): Renamed to...
2141         (HTL): This.
2142         (UL-BEGIN, UL-END): Renamed to...
2143         (ULS, ULE): This.
2144         (DROPCAP): Renamed to...
2145         (DC): This.
2146         (TS, TE, EQ, EN): Provide default definitions.
2147         (www-make-unique-name): Updated.
2148         (HTML-IMAGE-INLINE): Fix typo.
2149         * tmac/groff_www.man: Updated.
2151         * doc/Makefile (homepage.html): Add option -r to grohtml.
2152         Use shortened image name.
2153         * doc/groff.texinfo: Updated info on grohtml strings and macros.
2154         * doc/homepage.ms: Updated and extended.
2156 2002-02-14  Werner LEMBERG  <wl@gnu.org>
2158         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
2160         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
2161         SGR_BACK_DEFAULT_COLOR): Replaced with ...
2162         (tty_printer::put_color): Use it.
2163         (ttr_printer::end_page): Simplify.
2165 2002-02-13  Werner LEMBERG  <wl@gnu.org>
2167         * tmac/groff_tmac.man: Moved to...
2168         * man/groff_tmac.man: This place.
2169         * tmac/Makefile.sub, man/Makefile.sub: Updated.
2171 2002-02-12  Werner LEMBERG  <wl@gnu.org>
2173         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
2174         $(COMPILE.c) to not include groff's assert.h.
2176         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
2177         variable.
2178         * NEWS, src/drivers/grotty/grotty.man: Document it.
2180 2002-02-11  Werner LEMBERG  <wl@gnu.org>
2182         * src/libs/snprintf/snprintf.c: Updated to latest version
2183         (2002-02-11).
2185         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
2186         test whether there is `.]' also.
2187         Don't check for spaces after `.['.
2188         * src/roff/grog/grog.sh: Do the same.
2190 2002-02-10  Werner LEMBERG  <wl@gnu.org>
2192         Illegal -> Invalid.
2194         * src/libs/libgroff/illegal.cc: Renamed to ...
2195         * src/libs/libgroff/invalid.cc: This.
2196         (illegal_char_table): Renamed to ...
2197         (invalid_char_table): This.
2198         * src/libs/libgroff/Makefile.sub: Updated.
2199         * win32-diffs: Updated.
2201         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
2202         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
2203         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
2204         font::load), src/preproc/eqn/main.cc (read_line, main),
2205         src/preproc/eqn/lex.cc (file_input::read_line),
2206         src/preproc/pic/lex.cc (file_input::read_line,
2207         simple_file_input::get, simple_file_input::peek),
2208         src/preproc/pic/main.cc (top_input::get, top_input::peek),
2209         src/preproc/pic/pic.man, src/preproc/refer/main.cc
2210         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
2211         do_bib), src/preproc/tbl/main.cc (table_input::get),
2212         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
2213         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
2214         do_zero_width, read_request, encode_char, ps_get_line,
2215         transparent_file, get_char_for_escape_name, transparent_translate,
2216         asciify, input_char_description, read_string, set_string),
2217         src/roff/troff/env.cc (environment::add_html_tag),
2218         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
2220         * src/include/lib.h: Updated.
2222         * src/preproc/eqn/eqn.cc: Removed.
2224         * NEWS: Updated.
2226         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
2228 2002-02-09  Werner LEMBERG  <wl@gnu.org>
2230         * doc/gnu.xpm: New image.
2231         * doc/Makefile (DOCS): Add homepage.ps.
2232         Add rules for converting xpm->png and xpm->eps.
2233         Use `gnu.{xpm,eps}' as image names.
2234         * doc/homepage.ms: Updated.
2236 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
2238         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
2239         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
2240         Remove calls to `B1' and `B2'
2241         (PNG-IMAGE): New macro for inclusion of images in PNG format.
2242         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
2243         auxiliary variables for MARGIN-PNG-IMAGE.
2244         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
2245         auxiliary macros for MARGIN-PNG-IMAGE.
2246         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
2247         the margin.
2248         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
2249         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
2250         (DROPCAP): New macro to produce dropcap characters.
2251         (www-do-image): Renamed back to...
2252         (HTML-DO-IMAGE): This.
2253         Updated all callers.
2255         * doc/Makefile (gnubw.eps): Updated.
2256         * doc/homepage.ms: Updated.
2258 2002-02-08  Werner LEMBERG  <wl@gnu.org>
2260         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
2261         Added `linethick' to table in section `Style Variables'.
2263 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
2265         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
2267 2002-02-07  Werner LEMBERG  <wl@gnu.org>
2269         Adding options -C (compatibility mode) and -c (grotty's old output
2270         scheme) to nroff.
2272         * src/roff/nroff/nroff.sh: Implement it.
2273         Remove `-Wall'.
2274         * NEWS, src/roff/nroff/nroff.man: Updated.
2276         * PROBLEMS: Document bison 1.32 bug.
2278         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
2280         * src/roff/troff/node.cc (make_tfont): Define it earlier.
2281         * src/roff/troff/div.h: Add prototype for `end_diversions'.
2282         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
2283         * src/roff/troff/env.h: Add prototype for `title'.
2285         Adding EBCDIC support to grotty.
2287         * src/devices/grotty/tty.cc (CSI): New macro.
2288         (SGR_*, tty_printer::put_color): Use it.
2290 2002-02-06  Werner LEMBERG  <wl@gnu.org>
2292         Implementing color support in grotty.  The new switch -c activates
2293         the old drawing scheme, disabling color at the same time.  The new
2294         switch `-i' selects italic instead of underlining (SGR only).
2296         * src/devices/grotty/tty.cc (putstring): New define instead of
2297         `fputs'.  Updated all callers.
2298         (old_drawing_scheme): New global variable.
2299         (COLOR_CHANGE): New enum value.
2300         (SGR_*): New defines containing color handling escape sequences.
2301         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
2302         (glyph): New members `back_color_idx' and `fore_color_idx'.
2303         (glyph::order): Add COLOR_CHANGE.
2304         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
2305         `is_underline', `is_bold', `cu_flag', `tty_colors'.
2306         New methods `make_underline', `make_bold', `color_to_idx',
2307         `change_color', `put_color'.
2308         (cu_flag): Moved into `tty_printer' class.
2309         (tty_printer::tty_printer): Initialize colors.
2310         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
2311         tty_printer::draw, tty_printer::end_page): Handle colors also.
2312         (main): Add options `-c' and `-i'.
2313         (usage): Updated.
2314         * NEWS, src/devices/grotty/grotty.man: Updated.
2316         * src/include/errarg.h (errarg): Add support for `unsigned int'.
2317         * src/libs/libgroff/errarg.c: Implement it.
2319         * src/include/printer.h (printer): Add `change_color' method
2320         (currently used by grotty only).
2321         * src/libs/libdriver/printer.cc: Implement it.
2322         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
2323         call to `pr->change_color'.
2325         * src/roff/troff/node.cc (troff_output_file::fill_color,
2326         troff_output_file::glyph_color): Call `do_motion'.
2328         * tmac/tty.tmac: Add color definitions.
2330         * src/roff/groff/groff.man: Minor fixes.
2332 2002-02-05  Bernd Warken  <bwarken@mayn.de>
2334         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
2335         it.  This is a preparation for future changes.
2337 2002-02-05  Werner LEMBERG  <wl@gnu.org>
2339         * src/roff/troff/input.cc (process_input_stack): Fix the case
2340         where leading spaces are followed by \f or \s; previously, an
2341         incorrect space width has been used.
2343         * doc/roff.man (quoted_char): Fix argument.
2344         (comment): Define string.
2346 2002-02-04  Larry Kollar  <kollar@alltel.net>
2348         * doc/groff.texinfo: More fixes.
2350 2002-02-04  Werner LEMBERG  <wl@gnu.org>
2352         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
2353         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
2354         `restore_compatibility' before `output_string' -- the LINE_STRING
2355         register now already contains proper switches from and to
2356         compatibility mode.
2358         * man/groff_char.man: Add Euro symbol.
2359         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
2360         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
2361         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
2362         Other minor fixes.
2364         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
2365         texinfo->pdf.
2366         (.texinfo.html): Add support for texinfo->html.
2368 2002-02-03  Werner LEMBERG  <wl@gnu.org>
2370         Added three new requests `ds1', `as1', and `ami'.  The former two
2371         are equivalent to `ds' and `as' with the difference that
2372         compatibility mode is saved on entry, switched off during string
2373         expansion, and restored on exit.  The latter is the pendant to `dei'
2374         for `am'.
2376         (do_define_string): Use `define_mode' and `calling mode'.
2377         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
2378         end of string, respectively.
2379         (define_string, append_string): Use `calling_mode'.
2380         (define_nocomp_string, append_nocomp_string,
2381         define_string_indirect): New functions.
2382         (init_input_requests): Updated.
2383         * NEWS, man/groff_diff.man, man/groff.man: Document it.
2385         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
2386         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
2387         mm macro package accesses this string register directly.
2388         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
2390         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
2391         compatibility mode.
2393 2002-02-02  Larry Kollar  <kollar@alltel.net>
2395         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
2397 2002-01-31  Werner LEMBERG  <wl@gnu.org>
2399         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
2401 2002-01-31  Bernd Warken  <bwarken@mayn.de>
2403         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
2404         * man/groff_out.man: Revised and updated.
2406 2002-01-30  Bernd Warken  <bwarken@mayn.de>
2408         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
2409         out the unused `{' and `}' commands.  Undefined by default.
2410         (IntArray): Make `data' private.
2411         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
2412         new methods instead.
2413         (skip_line_D, skip_to_end_of_line): New functions.
2414         (get_D_fixed_args): Use `skip_line_D'.
2415         Changed to handle dummy odd arguments by ...
2416         (get_D_fixed_args_odd_dummy): This new function.
2417         (get_D_variable_args): Split some code into ...
2418         (get_possibly_integer_args): This new function.
2419         (send_draw): Use more `const'.
2420         (delete_current_env): New function.
2421         (position_to_end_of_args): Use `size_t'.
2422         Updated.
2423         (send_draw): Updated.
2424         (parse_D_command): Handle `c', `C', and `t' better.
2425         Updated.
2426         (do_file): Updated.
2428 2002-01-29  Werner LEMBERG  <wl@gnu.org>
2430         * NEWS: Revised.
2431         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
2432         @Def...ListEnd which replaces @Def...x.  This is necessary to get
2433         proper HTML output -- see the comment in the file for more
2434         information.
2435         Updated all calls.
2437 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
2439         Fixes to make color changes of 2002-01-21 work with grohtml.
2441         * src/devices/grohtml/post-html.cc (style): Updated.
2442         (html_printer): Remove unused methods.
2443         (html_printer::do_font, html_printer::draw, html_printer::set_char,
2444         html_printer::special): Updated.
2445         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
2446         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
2447         Added some debugging code.
2448         (html_text::start_tag): Updated.
2449         (html_text::do_push): New method.
2450         (html_text::push_para): Call it.
2451         Add method for handling color.
2452         (html_text::do_color): Updated.
2453         (html_text::shutdown): Handle color.
2454         * src/devices/grohtml/html-text.h (tag_definition): New member
2455         `col'.
2456         Updated.
2458 2002-01-28  Werner LEMBERG  <wl@gnu.org>
2460         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
2462 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
2464         Add two switches -a and -g to control the antialiasing bits for
2465         text and graphics, respectively.
2467         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
2468         `-g'.
2469         * src/devices/grohtml/grohtml.man: Document them.
2470         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
2471         New macros.
2472         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
2473         (setupAntiAlias): New function.
2474         (createAllPages): Updated.
2475         (scanArguments): Handle `-a' and `-g'.
2476         (main): Call `setupAntiAlias'.
2477         * NEWS: Updated.
2479 2002-01-27  Werner LEMBERG  <wl@gnu.org>
2481         * doc/groff.texinfo (Def*): Call index function after deffn.
2483         * tmac/html.tmac: Call `nroff' request.
2485 2002-01-26  Larry Kollar  <kollar@alltel.net>
2487         * tmac/groff_ms.man: Add some omissions.
2489 2002-01-25  Larry Kollar  <kollar@alltel.net>
2491         * tmac/groff_ms.man: Typographical improvements.
2493 2002-01-25  Werner LEMBERG  <wl@gnu.org>
2495         * doc/groff.texinfo: Updated version and copyright.
2496         * src/devices/grops/grops.man: Updated.
2498         * tmac/groff_tmac.man: Fix `ig' macro.
2500         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
2501         nroff mode.
2502         Use `.ne' unconditionally everywhere.
2503         (TS): Only insert some vertical space.  Doing a page break is no
2504         longer necessary due to the redefinition of the `ne' request.
2506         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
2507         warning for unknown subcommands but parse and pass them to the
2508         device driver.
2510 2002-01-24  Werner LEMBERG  <wl@gnu.org>
2512         * tmac/groff_www.man, NEWS: Fix typos.
2514 2002-01-21  Werner LEMBERG  <wl@gnu.org>
2516         Complete revision of color support:
2518           Adapt programs to the new libdriver/input.cc.
2520           Color spaces are no longer converted to RGB but transferred as-is
2521           in the troff intermediate output format.
2523           Handle default color gracefully.  troff now supports a `default'
2524           color (which can't be changed).
2526           grops will now use the proper color space functions if available.
2528           Update pic.
2530         Note that currently grohtml doesn't handle colors properly.  This
2531         has to be fixed.
2533         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
2534         (ui_to_a): New function.
2535         * src/include/lib.h: Updated.
2537         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
2538         (color): Simplified; removed all `double' members and methods.
2539         A new array `components' now holds the color parameters.
2540         (color::is_default, color::get_components): New methods.
2541         (color::operator==, color:operator!=): New.
2542         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
2543         to make access to the `components' array more comprehensible.
2544         * src/libs/libgroff/color.cc: Implement new color support.
2545         (atoh): Small fixes.
2546         (color::read_encoding): Simplified for new troff intermediate color
2547         output format.
2548         (default_color): New global variable.
2550         * src/roff/troff/input.cc (default_symbol): New global variable.
2551         (lookup_color): Use it.
2552         (default_black): Removed.
2553         (do_glyph_color, do_fill_color): Simplified.
2554         (define_color): Handle default color.
2555         Improve warnings.
2556         (do_if_request): Handle default color.
2557         * src/roff/troff/env.cc (environment::environment): Initialize
2558         colors with `default_color'.
2559         * src/roff/troff/node.cc (troff_output_file::put): Add method
2560         for `unsigned int'.
2561         (troff_output_file::hex): Removed.
2562         (troff_output_file::fill_color, troff_output_file::glyph_color):
2563         Updated to include/color.h and libdriver/input.cc.
2565         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
2566         fill color properly (identically to the outline color).  \D'f...'
2567         doesn't work any more.
2568         All function calls to it updated.
2570         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
2571         Updated.
2572         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
2573         Updated.
2575         * src/devices/grops/ps.cc (ps_output::put_color): New method.
2576         (ps_printer::sbuf_color): Make a real member instead of pointer.
2577         (ps_printer::fill_color, ps_printer::output_color): Removed.
2578         (ps_printer::ps_printer): Updated.
2579         (ps_printer::set_char): Ditto.
2580         (ps_printer::set_color): Use various color schemes.
2581         Use `put_color' method.
2582         (ps_printer::flush_sbuf): Don't set color.
2583         (ps_printer::fill_path): Take `environment' as parameter.
2584         Simplify color handling.
2585         (ps_printer::set_line_thickness): Renamed to ...
2586         (ps_printer::set_line_thickness_and_color): This (and updated).
2587         (ps_printer::set_color): Change second parameter from `complete'
2588         to `fill' which better describes what it does.
2589         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
2590         and text in the right order.
2591         Updated.
2592         Remove branches for `f' and `F'; this is handled by
2593         libdriver/input.cc.
2594         * src/devices/grops/ps.h: Updated.
2595         * font/devps/prologue (FL): Redefined.
2596         ({F,C}r,k,g: New color functions (with and without filling).
2598         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
2599         * man/groff_diff.man, man/groff.man, man/groff_out.man,
2600         doc/groff.texinfo, NEWS: Updated.
2602 2002-01-20  Bernd Warken  <bwarken@mayn.de>
2604         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
2605         in this file for what has been changed.
2607 2002-01-19  Werner LEMBERG  <wl@gnu.org>
2609         * test-groff: Fix GROFF_FONT_PATH.
2610         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
2611         is read before .TH or .Dd is parsed.
2613 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
2615         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
2616         quadrant boundaries.
2618 2002-01-18  Werner LEMBERG  <wl@gnu.org>
2620         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
2621         applied last patch.
2623 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
2625         * tmac/doc.common: Initialize %I register for the %I macro to
2626         avoid (harmless) warning.
2627         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
2628         when in the SYNOPSIS section.
2630 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
2632         * src/preproc/pic/lex.cc (get_token): Fix typo.
2634 2002-01-17  Werner LEMBERG  <wl@gnu.org>
2636         * devices/grops/ps.cc: Fix incorrectly applied last patch.
2638 2002-01-17  Larry Kollar  <kollar@alltel.net>
2640         * tmac/groff_ms.man: Completely rewritten.
2642 2002-01-16  Werner LEMBERG  <wl@gnu.org>
2644         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
2646 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
2648         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
2649         fill colors.
2650         (ps_printer::draw): Ditto.
2652 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
2654         * tmac/groff_mdoc.man: Minor fixes.
2656 2002-01-13  Werner LEMBERG  <wl@gnu.org>
2658         * man/groff_out.man: Some fixes.
2660 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
2662         * doc/pic.ms: Fix typos.
2664 2002-01-12  Werner LEMBERG  <wl@gnu.org>
2666         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
2668 2002-01-10  Werner LEMBERG  <wl@gnu.org>
2670         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
2671         symbols.
2672         * NEWS: Updated.
2674 2002-01-09  Bernd Warken  <bwarken@mayn.de>
2676         * man/groff_out.man: Revised.
2677         * man/roff.man: Minor fixes.
2678         * src/roff/troff/troff.man: Some reordering.
2680 2002-01-09  Werner LEMBERG  <wl@gnu.org>
2682         * tmac/an-old.tmac: Add dummy macros for equation support.
2684 2002-01-07  Werner LEMBERG  <wl@gnu.org>
2686         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
2688         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
2689         man pages.
2690         * tmac/groff_man.man: Small improvements.
2692 2002-01-07  Bernd Warken  <bwarken@mayn.de>
2694         * man/groff_diff.man: Revised.
2696 2002-01-06  Werner LEMBERG  <wl@gnu.org>
2698         * tmac/www.tmac: Remove extraneous backslash.
2700 2002-01-06  Bernd Warken  <bwarken@mayn.de>
2702         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
2704 2002-01-05  Werner LEMBERG  <wl@gnu.org>
2706         Integrated groffer, contributed by Bernd Warken.
2708         * contrib/groffer/*: New.       
2709         * Makefile.in, NEWS: Updated.
2711 2002-01-04  Werner LEMBERG  <wl@gnu.org>
2713         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
2714         registers defined in macro packages.
2715         Revising the ms part.
2717 2002-01-04  Larry Kollar  <kollar@alltel.net>
2719         * doc/groff.texinfo: Add documentation for ms macros.
2721 2002-01-02  Werner LEMBERG  <wl@gnu.org>
2723         First step in adding PS support for the Euro symbol.  `eu' is the
2724         official Euro logo, `Eu' is a font-specific glyph variant.
2726         * font/devps/text.enc: Add `Euro' at position 9.
2727         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
2728         * font/devps/symbolmap: Regenerated.
2730         * NEWS: Updated.
2732 2002-01-02  Bernd Warken  <bwarken@mayn.de>
2734         * man/roff.man: Revised.
2736 2002-01-01  Bernd Warken  <bwarken@mayn.de>
2738         * src/roff/groff/groff.man: Completely rewritten.
2740 2001-12-31  Werner LEMBERG  <wl@gnu.org>
2742         * doc/Makefile: Updated.
2744 2001-12-30  Werner LEMBERG  <wl@gnu.org>
2746         * tmac/www.tmac: Make all names of internal macros/registers/strings
2747         lowercase, and prepend `www-'.
2748         Other minor changes.
2749         * src/roff/troff/troff.man: Add preprocessor string at BOF.
2751 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
2753         Implement option `-b' in grohtml to set the HTML background colour.
2755         * src/devices/grohtml/post-html.cc (default_background): New global
2756         variable.
2757         (html_printer::html_printer): Initialize `background' to
2758         `default_background'.
2759         (main): Implement option `-b'.
2760         (usage): Updated.
2761         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
2762         of `-b' option.
2763         * src/devices/grohtml/grohtml.man: Updated.
2764         * doc/Makefile (.ms.html): Use `-b'.
2765         * tmac/html.tmac: Don't set background color.
2767         Add new grohtml tag `.html-tl'.
2769         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
2770         member variable.
2771         (title_desc::title_desc): Updated.
2772         (html_printer::troff_tag): Handle `.html-tl'.
2773         (html_printer::write_title): Use `with_h1'.
2774         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
2775         (HTML-TL): New macro.
2777         Add support for unordered lists in HTML.
2779         * tmac/www.tmac (www-level): New auxiliary register.
2780         (www-level1, www-level2, www-level3): New auxiliary strings.
2781         (www-push-level, www-pop-level): New auxiliary macros
2782         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
2784         Miscellaneous.
2786         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
2787         (DEFAULT_VERTICAL_OFFSET): Removed.
2788         (IMAGE_BOARDER_PIXELS): Set to 0.
2789         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
2790         (vertical_offset): Initialize with 0.
2791         (gsPaper): New global variable.
2792         (get_resolution): Scan for and return unsigned int.
2793         (get_papersize): New function to get paper length from devps/DESC.
2794         (determine_vertical_offset): New function.
2795         (createAllPages): Produce gray-level images and use proper page
2796         length.
2797         (createImage): Use `-quiet' option of pnmcrop.
2798         (addZ): Fix passing of `-Z'.
2799         (scanArguments): Fix handling of `-o'.
2800         (main): Call `determine_vertical_offset'.
2801         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
2802         code for `l'.
2804         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
2805         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
2806         glyph descenders properly.
2808         * doc/homepage.ms: Include `gnubw.eps'.
2809         * doc/Makefile (gnubw.eps): New rule.
2810         (homepage.html): Depend on `gnubw.eps'.
2812 2001-12-25  Werner LEMBERG  <wl@gnu.org>
2814         * src/roff/troff/input.cc (default_black): Fix return value.
2816 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
2818         * tmac/doc-common (Dt): Change output of architecture strings.
2819         Do some syntax cleanup.
2820         * tmac/groff_mdoc.man: Updated.
2822 2001-12-23  Werner LEMBERG  <wl@gnu.org>
2824         Adding an `itc' request (input line trap accepting \c).
2826         * src/roff/troff/env.h (environment): New member
2827         `continued_input_trap'.
2828         Make `do_input_trap' a friend function instead of `input_trap'.
2829         * src/roff/troff/env.cc (environment::environment,
2830         environment::copy): Updated.
2831         (environment::newline): Implement it.
2832         (do_input_trap): New function.
2833         (input_trap): Call `do_input_trap'.
2834         (input_trap_continued): New function.
2835         (init_env_requests): Updated.
2836         * src/roff/troff/TODO: Updated.
2838         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
2839         `.it'.
2841         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
2843 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
2845         * tmac/doc-common, tmac/doc-syms: Small updates.
2847 2001-12-22  Colin Watson  <cjwatson@debian.org>
2849         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
2851 2001-12-22  Bernd Warken  <bwarken@mayn.de>
2853         * MANIFEST: New file.
2855 2001-12-22  Werner LEMBERG  <wl@gnu.org>
2857         * src/preproc/grn/grn.man: Updated.
2859 2001-12-22  Solar Designer  <solar@openwall.com>
2861         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
2862         (DBRead): Use it.
2864 2001-12-19  Werner LEMBERG  <wl@gnu.org>
2866         Implement a fallback character request `.fchar'.
2868         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
2869         (is_fallback): New inline function.
2870         * src/roff/troff/input.cc (do_define_character): New function.
2871         (define_character): Call `do_define_character'.
2872         (define_fallback_character): New function.
2873         (init_input_requests): Add `fchar'.
2874         (charinfo::charinfo): Updated.
2875         (charinfo::set_macro): New argument to set `fallback' flag.
2876         * src/roff/troff/node.cc (make_glyph_node, make_node,
2877         node::add_char): Check `fallback' flag.
2878         * NEWS, man/groff_diff.man, man/groff_man: Updated.
2880 2001-12-16  Werner LEMBERG  <wl@gnu.org>
2882         * groff.texinfo: Document exact search algorithm for glyphs.
2884 2001-12-15  Werner LEMBERG  <wl@gnu.org>
2886         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
2887         the left side of $(MANPAGES) rule to make it always non-empty.
2889 2001-12-14  Werner LEMBERG  <wl@gnu.org>
2891         * src/roff/troff/input.cc (default_black): Define default color
2892         `black' if not yet defined.
2894 2001-12-13  Werner LEMBERG  <wl@gnu.org>
2896         Implement new string-valued register `.fn' to return the current
2897         real (internal) font name.
2899         * env.cc (environment::get_font_name_string): New function.
2900         (init_env_requests): Add `.fn' register.
2901         * env.h (environment): Updated.
2902         * node.cc (font_info): Make `get_font_name' a friend.
2903         (get_font_name): New function.
2904         * node.h: Updated.
2906         * man/groff_diff.man, man/groff.man, NEWS: Updated.
2908 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2910         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
2912 2001-12-12  Werner LEMBERG  <wl@gnu.org>
2914         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
2916 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
2918         * man/groff_diff.man: Adding documentation for \O.
2920 2001-12-10  Werner LEMBERG  <wl@gnu.org>
2922         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
2923         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
2925 2001-12-09  Werner LEMBERG  <wl@gnu.org>
2927         * man/roff.man: Revised.
2928         * src/roff/groff/groff.man: Replace man page references with a
2929         pointer to roff.man.
2931 2001-12-09  Bernd Warken  <bwarken@mayn.de>
2933         * man/roff.man: Completely rewritten.
2935 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2937         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
2939 2001-12-05  Werner LEMBERG  <wl@gnu.org>
2941         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
2942         longer used.
2943         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
2944         order of initializers.
2945         * NEWS: Updated.
2947 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
2949         * doc/groff.texinfo: Fix documentation of \O.
2951         * src/devices/grohtml/html-text.cc (html_text::do_indent,
2952         html_text::do_table, html_text::do_emittext, html_text::do_para):
2953         Use `const' for first argument.
2954         (html_text::do_table): Use cast.
2955         * src/devices/grohtml/html-text.h: Updated.
2956         * src/devices/grohtml/output.cc (simple_output::put_string): Add
2957         method for `const string &s'.
2958         * src/devices/grohtml/html.h: Updated.
2959         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
2960         (ANCHOR_TEMPLATE): Modified.
2961         (manufacture_headings): New global variable to handle `-h' option.
2962         (is_subsection): Removed.
2963         (char_buffer::add_string): Add `const' to first argument.
2964         Protect against invalid string argument.
2965         Add method for `const string &s'.
2966         (text_glob): Completely redesigned.
2967         (page): Use `const' for strings and remove string length variable.
2968         (page::add_html): Removed.
2969         (page::add_end_encode): New member function.
2970         (to_unicode): Moved upwards.
2971         (title_desc, header_desc): Updated.
2972         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
2973         definition.
2974         (html_printer::is_bold, html_printer::make_bold): New member
2975         functions.
2976         (html_printer::end_of_line): Updated.
2977         (generate_img_src, html_printer::do_auto_image,
2978         html_printer::do_title, html_printer::write_header,
2979         html_printer::determine_header_level, html_printer::do_heading,
2980         html_printer::do_linelength, html_printer::do_pageoffset,
2981         html_printer::do_indentation, html_printer::do_tempindent,
2982         html_printer::do_indentedparagraph, html_printer::do_break,
2983         html_printer::flush_sbuf, get_html_translation,
2984         html_printer::begin_page, html_printer::special): Rewritten to get
2985         rid of static string length limit.
2986         (html_printer::troff_tag): Added `.no-auto-rule'.
2987         (html_printer::flush_globs): Small fix.
2988         (html_printer::determine_space): Don't compute `space_width'.
2989         (html_printer::translate_to_html): Renamed to ...
2990         (html_printer::emit_html): This (with updates).
2991         (html_printer::write_header): Implement `-h' option.
2992         (html_printer::draw): Remove commented-out code.  Handle `F'
2993         command.
2994         (html_printer::add_char_to_sbuf): Removed.
2995         (html_printer::add_to_sbuf): Rewritten.
2996         (html_printer::sbuf_continuation): Fixed.
2997         (html_printer::seen_backwards_escape, reverse,
2998         html_printer::remove_last_char_from_sbuf): Removed.
2999         (char_translate_to_html, str_translate_to_html): Removed.
3000         (html_printer::overstrike): New function member.
3001         (html_printer::set_char): Use it.
3002         (html_printer::do_body): New function member.
3003         (html_printer::~html_printer): Use it.
3004         (main): Handle `-h' option.
3005         (usage): Updated.
3006         * src/devices/grohtml/grohtml.man: Document -h switch.
3008         * src/preproc/html/pre-html.cc: Include searchpath.h
3009         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
3010         (get_resolution): New function.
3011         (checkImageDir): Use `0777' permissions in mkdir()
3012         (write_start_image): Rewritten to use `\O[5...]'.
3013         (createImage, generateImages): Updated.
3014         (main): Handle `F' and `h' options.
3015         Use `get_resolution'.
3017         * src/roff/troff/input.cc (begin, end, image): Removed.
3018         (do_suppress): Take parameter.
3019         Handle modified syntax of `\O'.
3020         (token::next): Updated.
3021         (init_markup_requests): Removed.
3022         (main): Updated.
3024         * src/roff/troff/div.h: Add declaration for begin_page().
3026         * tmac/color-html.tmac: Removed.  Contents moved to...
3027         * tmac/html.tmac: Here.  Set background color.
3028         * tmac/color.tmac: Removed.  Contents moved to...
3029         * tmac/ps.tmac: Here.
3030         * tmac/www.tmac: Remove the title command when generating images
3031         for html.
3032         (NO_AUTO_RULE): New macro.
3033         (HTML_DO_IMAGE): Use revised `\O' escapes.
3034         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
3036 2001-12-02  Werner LEMBERG  <wl@gnu.org>
3038         * tmac/groff_mdoc.man: Fix typo.
3040 2001-12-01  Colin Watson  <cjwatson@debian.org>
3042         * man/roff.man: Fix typo.
3044 2001-11-29  Werner LEMBERG  <wl@gnu.org>
3046         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
3047         stdlib.h.
3049         * src/roff/troff/input.cc (read_draw_node): Emit error message if
3050         more than one argument to \D'f ...'.
3052         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
3054 2001-11-28  Werner LEMBERG  <wl@gnu.org>
3056         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
3057         loaded only once.
3059         * tmac/groff_man.man: Minor cosmetic fix.
3061 2001-11-27  Werner LEMBERG  <wl@gnu.org>
3063         * src/roff/groff/groff.man, tmac/groff_tmac.man,
3064         tmac/groff_www.man: s/mwww/www/.
3066 2001-11-26  Werner LEMBERG  <wl@gnu.org>
3068         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
3069         * configure: Regenerated.
3070         * win32-diffs: Updated.
3072         * tmac/groff_mwww.tmac: Renamed to ...
3073         * tmac/groff_www.tmac: This.
3074         * tmac/mwww.tmac: Removed.
3075         * NEWS, tmac/Makefile.sub: Updated.
3077 2001-11-21  Werner LEMBERG  <wl@gnu.org>
3079         * doc/groff.texinfo: Improve documentation of the `\v' escape.
3080         Fix explanation of `\D' and `rt'.
3082 2001-11-20  Werner LEMBERG  <wl@gnu.org>
3084         * tmac/an-old.tmac (an-header): Set header length equal to page
3085         width.
3086         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
3087         minor fixes.
3088         * NEWS: Small fix.
3090 2001-11-19  Werner LEMBERG  <wl@gnu.org>
3092         * NEWS, man/Makefile.sub: Updated.
3094 2001-11-19  Bernd Warken  <bwarken@mayn.de>
3096         * man/ditroff.man: New file.
3098 2001-11-17  Werner LEMBERG  <wl@gnu.org>
3100         * man/groff_differences.man: Renamed to ...
3101         * man/groff_diff.man: This.  Updated.
3102         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
3104         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
3105         * src/preproc/html/pushback.cc: This.  Updated.
3106         * src/preproc/html/pushbackbuffer.h: Renamed to ...
3107         * src/preproc/html/pushback.h: This.
3108         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
3109         Updated.
3111         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
3112         * src/libs/libgroff/htmlhint.cc: This.
3113         * src/libs/libgroff/Makefile.sub: Updated.
3115         * tmac/an-old.tmac (an-end): Fix page length.
3117 2001-11-16  Werner LEMBERG  <wl@gnu.org>
3119         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
3120         * man/Makefile.sub: Include groff_differences.man.
3121         * VERSION: Set to 1.18.
3122         * REVISION: Set to 0.
3124 2001-11-16  Bernd Warken  <bwarken@mayn.de>
3126         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
3127         the second dot (or ending macro name) to end a macro.
3128         * doc/groff.texinfo: Doc fix.
3130 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
3132         * tmac/doc-common (doc-header): Handle very long document titles
3133         better.
3135 2001-11-16  Werner LEMBERG  <wl@gnu.org>
3137         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
3139 2001-11-15  Werner LEMBERG  <wl@gnu.org>
3141         * src/roff/troff/troff.man: Revised and split into troff.man and...
3142         * man/groff_differences.man: New file.
3143         * NEWS: Updated.
3145 2001-11-13  Werner LEMBERG  <wl@gnu.org>
3147         * tmac/an-old.tmac (TS, TE): New macros for table support.
3149 2001-11-12  Werner LEMBERG  <wl@gnu.org>
3151         * src/include/lib.h: Provide a fix for emx to not include
3152         groff-getopt.h.
3154 2001-10-27  Werner LEMBERG  <wl@gnu.org>
3156         * src/roff/troff/input.cc (substring_macro): Fix computation of
3157         boundary values.
3159 2001-10-20  Werner LEMBERG  <wl@gnu.org>
3161         Undo change from 2001-08-28.
3163         * src/roff/troff/input.cc (have_input): New global variable.
3164         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
3165         in compatibility mode.
3166         (process_input_stack): Use it.
3168 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
3170         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
3171         being handled as end-of-sentence characters,
3173 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
3175         * src/roff/troff/input.cc (file_iterator): New members
3176         `suppress_newline_flag' and `seen_escape'.
3177         (file_iterator::next_file): Updated.
3178         (file_iterator::fill): Use it.
3179         (string_iterator): New member `suppress_newline_flag'.
3180         (string_iterator::fill): Set it.
3181         (get_color_element): Use MAX_COLOR_VAL.
3182         * src/roff/troff/env.cc (environment): Remove `need_eol'.
3183         (no_fill): Don't set `env->ignore_next_eol'.
3184         (environment::newline): Handle `eol' tag properly.
3185         Emit `eol.ce'.
3186         (environment::add_html_tag): Set `env->ignore_next_eol'.
3187         Don't handle `.ce'.
3188         * src/roff/troff/env.h (environment): Updated.
3190         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
3191         member function.
3192         (html_printer::outstanding_eol): New member function.
3193         (html_printer::do_title): Use new functions.
3194         (html_printer::troff_tag): Test `id_eol_ce'.
3196 2001-10-10  Werner LEMBERG  <wl@gnu.org>
3198         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
3199         files work with -C also.
3201 2001-10-05  Werner LEMBERG  <wl@gnu.org>
3203         * doc/pic.ms: Minor fix.
3204         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
3205         as a valid command line switch.
3206         * src/devices/grohtml/post-html.cc (main): Ditto.
3207         (usage): Updated.
3208         * src/devices/grohtml/grohtml.man: Updated.
3209         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
3211 2001-10-04  Werner LEMBERG  <wl@gnu.org>
3213         Implementing color support in troff, pic, grops, and grohtml.  These
3214         changes are based on a major patch provided by Gaius Mulley
3215         <gaius@glam.ac.uk>.
3217         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
3218         definitions with both hex values and fractions.
3220         New escapes: \m and \M for drawing and background color,
3221         respectively.  This corresponds to the troff output commands `m'
3222         and `DF'.
3224         groff and troff accept command line switch `-c' to disable color
3225         output (which is automatically disabled in compatibility mode).
3227         New scaling indicator `f' for fractions (1f = 65536u).
3229         New conditional operator `m' to test for defined colors with `if'
3230         and `ie'.
3232         New keywords `color' (or `colour', `colored', `coloured'), `outline'
3233         (or `outlined'), and `shaded' added to pic.
3235         * src/include/color.h: New file.
3236         * src/include/driver.h: Include it.
3237         * src/include/printer.h: Include color.h.
3238         (environment): New members `col' and `fill'.
3239         (printer): Remove `adjust_arc_center' member function.
3240         * src/include/Makefile.sub: Updated.
3242         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
3243         `env.fill'.
3244         Handle `m' and `DF' troff commands.
3245         * src/libs/libgroff/color.cc: New file.
3246         * src/libs/libgroff/Makefile.sub: Updated.
3248         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
3249         (stop): Removed.
3250         (createImage): Fix computation of `y2'.
3251         Use `pnmcrop' also.
3252         (buffer::write_file_html): Remove calls to `stop'.
3254         * src/preproc/pic/common.h (common_output): New abstract function
3255         members `set_color', `reset_color', `get_last_filled', and
3256         `get_outline_color'.
3257         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
3258         (object_spec): Add members `shaded' and `outlined'.
3259         * src/preproc/pic/output.h (output): `command' is now abstract.
3260         New function members `set_color', `reset_color', `get_last_filled',
3261         and `get_outline_color'.
3262         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
3263         `outline[d]', and `shaded'.
3264         * src/preproc/pic/object.cc (output::command): Removed.
3265         (output::set_location): Moved to output.h.
3266         (graphic_object): Add protected members `outline_color' and
3267         `color_fill'.
3268         Add member functions `set_outline_color', `get_outline_color', and
3269         `set_fill_color'.
3270         (closed_object): Add member function `set_fill_color'.
3271         Add member `color_fill'.
3272         (graphic_object::print_text): Use `out->set_color' and
3273         `out->reset_color'.
3274         (box_object::print, ellipse_object::print, circle_object::print,
3275         line_object::print, spline_object::print, arc_object::print): Ditto.
3276         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
3277         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
3278         `SHADED', making them `%left'.
3279         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
3280         * src/preproc/pic/tex.cc (tex_output): New dummy function members
3281         `set_color', `reset_color', `get_last_filled', and
3282         `get_outline_color'.
3283         * src/preproc/pic/troff.cc (simple_output): New abstract function
3284         members `set_color', `reset_color', and `get_last_filled'.
3285         (simple_output::polygon, simple_output::circle,
3286         simple_output::ellipse): Use `get_last_filled'.
3287         (troff_output): New members `last_filled' and `last_outlined'.
3288         New function members `set_color', `reset_color', `get_last_filled',
3289         and `get_outline_color'.
3290         (troff_output::finish_picture): Use `reset_color'.
3291         (troff_output::set_fill): Test `last_filled'.
3292         * src/preproc/pic/pic.man: Updated.
3294         * src/roff/groff/groff.cc (main): Implement `-c' option.
3295         (synopsis, help): Updated.
3296         src/roff/groff/groff.man: Updated.
3298         * src/roff/troff/troff.h: Include color.h.
3299         (warning_type): Add WARN_COLOR.
3300         * src/roff/troff/env.h (environment): New members
3301         `{cur,prev}_{glyph,fill}_color'.
3302         New member functions `get_{prev_,}{glyph,fill}_color'.
3303         * src/roff/troff/env.cc: Initialize and implement them.
3304         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
3305         Replace `NULL' with `0' everywhere for consistency.
3306         (lookup_color, default_black, do_glyph_color, do_fill_color,
3307         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
3308         define_color): New functions.
3309         (token::next): Implement \M and \m escapes.
3310         (do_if_request): Implement `m' operator.
3311         (usage): Updated.
3312         (main): Implement `-c' option.
3313         (init_markup_requests): Add `defcolor' request.
3314         (warning_table): Add `color' warning.
3315         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
3316         classes.
3317         * src/roff/troff/node.cc (troff_output_file): New members
3318         `current_{page,glyph}color'.  New member functions `put_hex',
3319         `glyph_color', and `fill_color'.
3320         (glyph_color_node::*, fill_color_node::*): Implement it.
3321         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
3322         (parse_term): Add support for `f'.
3323         * src/roff/troff/troff.man: Updated.
3325         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
3326         entry for `F'.
3327         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
3328         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
3330         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
3331         (tag_definition): Use `void *' for arg1.
3332         (html_text): New member functions `do_color' and `done_color'.
3333         Use `void *' for second parameter of `push_para' member function.
3334         New `push_para' member function with a single parameter.
3335         Use `char *' for parameter of `issue_table_begin' member funtion.
3336         New `issue_color_begin' member function.
3337         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
3338         COLOR_TAG.
3339         (html_text::issue_color_begin): New function.
3340         (html_text::issue_table_begin): Use `char *' for parameter.
3341         (html_text::start_tag, html_text::shutdown,
3342         html_text::check_emit_text): Updated.
3343         (html_text::push_para): Use `void *' for second parameter.
3344         Add same function with only one parameter.
3345         (html_text::do_*): Updated.
3346         (html_text::do_color, html_text::done_color): New functions.
3347         * src/devices/grohtml/post-html.cc (style): New member `col'.
3348         Mew member `style' with 6 parameters.
3349         (style::style, style::operator==): Updated.
3350         (html_printer::do_font): Use it.
3351         (html_printer::draw): Add dummy entry for `F'.
3352         (html_printer::set_char): Updated.
3353         * src/devices/grohtml/grohtml.man: Updated.
3355         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
3356         trailing zeroes removed.
3357         (ps_printer): New members `sbuf_color', `fill_color', and
3358         `output_color'.
3359         Removed member `fill'.
3360         New member function `set_color'.
3361         (ps_printer::ps_printer, ps_printer::set_char): Updated.
3362         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
3363         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
3365         * tmac/color-html.tmac, tmac/color.tmac: New files.
3366         * tmac/troffrc: Include them.
3367         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
3368         * tmac/Makefile.sub: Updated.
3370         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
3371         man/groff.man: Updated.
3372         * font/devps/prologue.ps: Define FC and CO functions.
3374 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
3376         Fix incorrect cropping of images and incorrect handling of special
3377         characters.  Fix handling of file names in \O.
3379         * src/include/geometry.h: New file.
3380         * src/libs/libgroff/geometry.cc: New file.
3381         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
3382         to `geometry.cc'.
3383         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
3384         initial spaces.
3385         (do_suppress): Updated.
3386         * src/roff/troff/node.cc: Include geometry.h.
3387         (troff_output_file::flush_tbuf): Fixed parameters to
3388         `check_output_limits'.
3389         (troff_output_file::check_charinfo): Ditto.
3390         (troff_output_file::determine_line_limits): Add support for `Da'
3391         and `Dl' commands.
3393         * src/devices/grohtml/post-html.cc (str_translate_to_html):
3394         Add new parameter `is_special' to decode special characters from
3395         escape sequences.
3396         (html_printer::do_title, html_printer::do_heading,
3397         html_printer::do_indentedparagraph,
3398         html_printer::translate_to_html, html_printer::special): Updated.
3400 2001-10-03  Werner LEMBERG  <wl@gnu.org>
3402         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
3403         Fix entry for config.h.
3404         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
3405         * tmac/troffrc: Translate nonbreakable space character to `\~'.
3406         * src/preproc/eqn/eqn.man: Document -d command line option.
3408 2001-09-27  Werner LEMBERG  <wl@gnu.org>
3410         * man/groff.man: Use
3412           .ev xxx
3413           .na
3414           .nh
3415           <table>
3416           .ev
3418         instead of the old code (`.ad .hy' after the table) to suppress
3419         incorrect hyphenation for grohtml output.
3421 2001-09-22  Werner LEMBERG  <wl@gnu.org>
3423         * man/groff_font.man, man/groff_out.man: Minor fixes.
3425 2001-09-20  Werner LEMBERG  <wl@gnu.org>
3427         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
3428         Arnold Robbins <arnold@skeeve.com>).
3430 2001-09-09  Werner LEMBERG  <wl@gnu.org>
3432         * configure: Regenerated with autoconf 2.52.
3434         * doc/groff.texinfo: Complete revision of indices.
3436 2001-09-07  Werner LEMBERG  <wl@gnu.org>
3438         * doc/Makefile (clean): Updated to delete all indices.
3440 2001-09-05  Werner LEMBERG  <wl@gnu.org>
3442         * src/roff/troff/troff.man: Remove superfluous line.
3444         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
3445         given on the command line (or rather, if only the default warnings
3446         are set).
3448 2001-09-03  Werner LEMBERG  <wl@gnu.org>
3450         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
3451         use .ne for TTY devices.
3453 2001-08-31  Werner LEMBERG  <wl@gnu.org>
3455         * src/roff/troff/token.h, src/roff/troff/input.cc:
3456         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
3458 2001-08-28  Werner LEMBERG  <wl@gnu.org>
3460         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
3461         * src/roff/troff/input.cc (token::next): Return
3462         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
3463         compatibility mode.
3464         (token::description): Updated.
3465         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
3466         (token::add_to_node_list, token::process): Ignore
3467         TOKEN_TRANSPARENT_ESCAPE.
3469 2001-08-27  Werner LEMBERG  <wl@gnu.org>
3471         * tmac/an-old.tmac: Fix `S' string.
3473 2001-08-26  Werner LEMBERG  <wl@gnu.org>
3475         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
3477 2001-08-25  Werner LEMBERG  <wl@gnu.org>
3479         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
3480         backslashes).
3481         Many other minor fixes.
3483         * configure.ac: Add message at end to inform how to compile
3484         xditview.
3485         * configure: Regenerated.
3487 2001-08-24  Werner LEMBERG  <wl@gnu.org>
3489         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
3490         Updated to latest version of libc.
3492 2001-08-23  Werner LEMBERG  <wl@gnu.org>
3494         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
3495         Autoconf 2.50 and newer can handle this.
3496         * configure: Regenerated.
3498 2001-08-21  Werner LEMBERG  <wl@gnu.org>
3500         * doc/pic.ms: Fix typo.
3501         * src/preproc/tbl/tbl.man: Document case of global options.
3503 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
3505         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
3506         handling of `CR' font.
3508 2001-08-20  Werner LEMBERG  <wl@gnu.org>
3510         Use a config.h file.
3512         * src/include/lib.h: Include config.h.
3513         * All C files: Ditto (if necessary).
3514         * All C++ source and header files: Include lib.h first (if
3515         necessary).
3517         * src/include/config.hin: New file (autogenerated by autoheader).
3518         * stamp-h.in: New file.
3519         * configure.ac: Updated.
3520         * aclocal.m4: Add third parameters to AC_DEFINE macros.
3521         (GROFF_ARRAY_DELETE): Simplified.
3522         * Makefile.sub (DISTCLEANFILES): Updated.
3523         Added targets for remaking config.status, config.hin, config.h,
3524         stamp-h.in, and stamp-h.
3525         * configure: Regenerated.
3527 2001-08-19  Werner LEMBERG  <wl@gnu.org>
3529         * NEWS: Updated.
3531 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
3533         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
3534         (do_sprintf): Use snprintf().
3536 2001-08-18  Werner LEMBERG  <wl@gnu.org>
3538         * src/libs/snprintf/*: Added an snprintf module written by Mark
3539         Martinec.
3540         * src/libs/libgroff/Makefile.sub: Updated.
3541         * configure.ac: Add test for snprintf().
3542         * Makefile.in: Updated.
3543         * configure: Regenerated.
3545         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
3546         uses snprintf().
3548 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
3550         * tmac/doc.tmac (Ex): New implementation.
3551         * tmac/doc-common, tmac/groff_tmac.man: Updated.
3553 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
3555         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
3556         argument.
3557         * tmac/groff_tmac.man: Updated.
3559 2001-08-13  Werner LEMBERG  <wl@gnu.org>
3561         * src/preproc/tbl/tbl.man: Minor documentation update.
3563 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3565         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
3566         * configure.ac: Add declaration test for gettimeofday().
3567         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
3568         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
3569         * configure: Regenerated.
3571 2001-08-11  Werner LEMBERG  <wl@gnu.org>
3573         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
3574         * configure.ac: Add declaration test for strcasecmp().
3575         * Makefile.in: Updated.
3576         * configure: Regenerated.
3577         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
3578         this is necessary because groff's mkstemp.cc is C++.
3579         Add declaration conditionally for strcasecmp().
3581 2001-08-10  Werner LEMBERG  <wl@gnu.org>
3583         Integrated pic2graph, contributed by Eric S. Raymond.
3585         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
3586         files.
3587         * Makefile.in, NEWS: Updated.
3589         * src/preproc/tbl/tbl.man: Revised.
3591 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
3593         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
3595 2001-08-09  Werner LEMBERG  <wl@gnu.org>
3597         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
3598         requests.
3600 2001-08-08  Paul Eggert  <eggert@twinsun.com>
3602         * Makefile.sub (configure): Depend on configure.ac, not
3603         configure.in.
3604         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
3606 2001-08-07  Werner LEMBERG  <wl@gnu.org>
3608         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
3609         fixes.
3611 2001-08-06  Werner LEMBERG  <wl@gnu.org>
3613         * src/roff/troff/troff.man: Improve documentation of -E option.
3615 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
3617         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
3618         Simplified.
3620 2001-07-27  Werner LEMBERG  <wl@gnu.org>
3622         * src/preproc/refer/refer.cc: Undo last change.
3623         * src/devices/grohtml/post-html.cc: Ditto.
3625 2001-07-26  Werner LEMBERG  <wl@gnu.org>
3627         * src/preproc/refer/refer.cc: Include `lib.h'.
3628         * src/devices/grohtml/post-html.cc: Ditto.
3630 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
3632         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
3633         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
3634         * Makefile.in: Comment updated.
3635         * configure: Regenerated.
3637 2001-07-25  Werner LEMBERG  <wl@gnu.org>
3639         * src/preproc/pic/pic.cc: Removed.
3640         * src/preproc/pic/pic_tab.h: Removed.
3641         * src/preproc/refer/label.cc: Removed.
3643         * doc/Makefile (.ms.html): Don't use a file name extension in
3644         argument to grohtml's -I option.
3645         * Makefile.in (dist): Remove CVS directories.
3646         Call `distfiles' target.
3648         * src/devices/grohtml/grohtml.man: Add information about valid
3649         versions of pnmtopng.
3650         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
3651         name instead of number.
3653 2001-07-24  Werner LEMBERG  <wl@gnu.org>
3655         * doc/groff.texinfo: Minor fixes.
3657 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
3659         * doc/Makefile (.ms.html): Put image files into a subdirectory.
3660         (clean): Updated.
3662 2001-07-20  Werner LEMBERG  <wl@gnu.org>
3664         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
3665         * src/libs/libgroff/mkstemp.cc: New file.
3666         * src/libs/libgroff/mksdir.cc: New file.
3667         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
3668         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
3669         * src/libs/libgroff/Makefile.sub: Updated.
3670         * src/include/lib.h: Add mksdir() prototype.
3671         * src/include/posix.h: Define S_IXUSR if not yet defined.
3673         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
3674         (createAllPages): Use mksdir() instead of current code.
3675         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
3676         (main): [!HAVE_MKSTEMP]: Removed.
3678         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
3679         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
3680         macros.
3681         * configure.ac: Add tests for stdint.h, sys/time.h, and
3682         gettimeofday().
3683         Call new GROFF_xxx macros.
3684         * configure: Regenerated.
3685         * Makefile.in: Comments updated.
3687 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
3689         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
3690         instead of current code.
3691         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
3692         * src/roff/groff/groff.cc (possible_command::insert_args): New
3693         function.
3694         (main): Use it for predriver handling instead of insert_arg().
3696 2001-07-19  Werner LEMBERG  <wl@gnu.org>
3698         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
3699         groff also.
3701         * src/include/posix.h: Define S_IWUSR if not yet defined.
3703 2001-07-18  Werner LEMBERG  <wl@gnu.org>
3705         * NEWS: Updated.
3707 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
3709         * tmac/groff_mdoc.man: Document new -width and -column syntax.
3710         Some other minor fixes.
3711         * tmac/an-old.tmac: Add `AT' and `UC' macros.
3713 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
3715         Replace call to `troff' with `groff -Z' to make it aware of
3716         GROFF_BIN_PATH.
3718         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
3719         (troff_command, command_prefix): Removed.
3720         (alterDeviceTo): Use groff.
3721         (addZ): New function.
3722         (char_buffer::do_html): Use it.
3723         (scanArguments): Use TROFF_COMMAND.
3724         (findPrefix): Removed.
3725         (main): Updated.
3726         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
3728 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
3730         * doc/pic.ms: Documentation fixes.
3732 2001-07-17  Werner LEMBERG  <wl@gnu.org>
3734         Replace atexit() with global destructor.
3736         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
3737         (xtmpfile_list_init): New global structure to deallocate
3738         xtmpfile_list on exit.  Its destructor inherits most code from
3739         remove_tmp_files().
3740         (remove_tmp_files): Deleted.
3741         (add_tmp_file): Simplified.
3743 2001-07-16  Werner LEMBERG  <wl@gnu.org>
3745         Replace strdup() with strsave().
3747         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
3748         (set_papersize): Use strsave() and a_delete.
3749         (main): Use strsave().
3750         * src/preproc/html/pre-html.cc (make_message, createAllPages,
3751         removeAllPages): Use strsave() and a_delete.
3753         * configure.ac: Remove test for strdup.
3754         * Makefile.in: Comment updated.
3755         * configure: Regenerated.
3757 2001-07-15  Werner LEMBERG  <wl@gnu.org>
3759         * win32-diffs: Updated.
3761 2001-07-14  Werner LEMBERG  <wl@gnu.org>
3763         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
3764         removing the old one.
3765         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
3767 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
3769         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
3771 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
3773         Merge -xwidth into -width.  Add -xwidth functionality to -column
3774         also.
3776         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
3777         avoid warning.
3778         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
3779         string immediately following a leading dot starts with a valid mdoc
3780         argument.
3781         Add similar code to the -column branch.
3782         (doc-Bl-usage): Updated.
3783         * groff_mdoc.man: s/-xwidth/-width/.
3785 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
3787         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
3788         running into centered or non-formatted text.
3790 2001-07-11  Werner LEMBERG  <wl@gnu.org>
3792         Introduce short and long prefixes to have the selection at run-time
3793         whether there is a 8+3 limit for names of temporary files.
3795         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
3796         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
3797         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
3798         variables.
3799         (temp_init): New global structure to initialize above three
3800         variables.
3801         (xtmptemplate): Use two parameters for long and short prefix.
3802         Simplify code use above three variables.
3803         (xtmpfile): Use long and short prefixes as parameters.
3804         * src/include/lib.h: Updated.
3806         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
3807         with ...
3808         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
3809         (createAllPages, makeTempFiles): Updated.
3811 2001-07-09  Werner LEMBERG  <wl@gnu.org>
3813         * REVISION: Increased to 3.
3815 Version 1.17.2 released
3816 =======================
3818 2001-07-07  Werner LEMBERG  <wl@gnu.org>
3820         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
3821         to size_t.
3823 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
3825         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
3826         Fix synopsis.
3827         * tmac/groff_mdoc.man: Fix synopsis.
3829 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
3831         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
3832         Restore `doc-Pa-font'.
3834 2001-07-04  Werner LEMBERG  <wl@gnu.org>
3836         * src/utils/indxbib/dirnamemax.c: Moved to ...
3837         * src/libs/libgroff/maxfilename.cc: Here.
3838         s/dir_name_max/file_name_max/.
3839         Add copyright.
3840         * src/include/lib.h: Add file_name_max.
3841         * src/utils/indxbib/indxbib.cc: Updated.
3842         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
3843         Updated.
3845         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
3846         as empty.
3847         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
3849         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
3850         REGION_TEMPLATE): New macros.
3851         (createAllPages, makeTempFiles): Use them.
3852         Include `nonposix.h'.
3853         (html_system): New function.
3854         (createAllPages, createImage): Use it.
3855         Use EXE_EXT.
3857         * tmac/www.tmac: Fix typos.
3859 2001-07-03  Werner LEMBERG  <wl@gnu.org>
3861         * tmac/www.tmac: Disable hyphenation in normal text only if output
3862         device is html.
3863         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
3864         * tmac/groff_mwww.man, NEWS: Updated.
3866 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
3868         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
3869         image location.
3871 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
3873         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
3874         doc-display-ps-stack): Implement font and font size stack for
3875         displays.
3877 2001-07-02  Werner LEMBERG  <wl@gnu.org>
3879         * REVISION: Increased to 2.
3880         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
3882         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
3883         beginning of a line.
3884         * src/groff/grog/grog.sh: Ditto.
3886 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
3888         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
3889         make it portable.
3891 2001-06-27  Werner LEMBERG  <wl@gnu.org>
3893         Fix problems with preprocessor string for `man' program.
3895         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
3896         Updated/added copyright.
3897         Moved Emacs's local variable to identify nroff mode to the end of
3898         the file; add local variable if missing.
3900 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
3902         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
3903         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
3904         * configure: Regenerated.
3906 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
3908         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
3909         * configure: Regenerated.
3911 2001-06-24  Werner LEMBERG  <wl@gnu.org>
3913         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
3914         but www.tmac.
3915         * doc/pic.ms: Fix typos.
3917 Version 1.17.1 released
3918 =======================
3920 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
3922         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
3923         * configure: Updated.
3925 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
3927         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
3928         image names.
3929         * src/roff/troff/dic.cc (blank_line): Add html tag.
3931 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
3933         * src/roff/troff/input.cc (do_suppress): Fix typo.
3935 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
3937         Added two new options (-D and -I) to specify image names and a
3938         subdirectory to place the images in.
3940         Change syntax from \\Ox to \\O[x].
3942         * src/devices/grohtml/post-html.cc (main): Add options.
3943         (usage): Updated.
3944         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
3945         Use `NULL' instead of `0' for null string pointers.
3946         (MAX_RETRIES): New macro.
3947         (lengthOfintToStr, intToStr, make_message): New functions.
3948         (makeFileName): Make function static.
3949         Implement -D and -I options.
3950         (checkImageDir): New function.
3951         (write_end_image, write_start_image): Use new syntax of \O.
3952         (createAllPages, removeAllPages): Implement -D and -I options.  Use
3953         make_message().
3954         (createImage): Use make_message().
3955         (addps4html): Add guard for malloc().
3956         (usage, scanArguments): Updated.
3957         (makeTempFiles): Use mkstemp().
3958         (removeTempFiles): Use unlink().
3959         (findPrefix): Add guard for malloc().
3960         (main): Updated.
3961         * src/roff/troff/input.cc (get_delim_file_name): New function to
3962         parse \O.
3963         (do_suppress): Updated to parse new syntax.
3964         * src/devices/grohtml/grohtml.man: Updated.
3965         * tmac/www.tmac: Updated to new syntax.
3967         * NEWS: Updated.
3969 2001-06-15  Werner LEMBERG  <wl@gnu.org>
3971         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
3973         * src/devices/grohtml/grohtml.man: Minor improvements.
3975 2001-06-14  Werner LEMBERG  <wl@gnu.org>
3977         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
3979 2001-06-11  Werner LEMBERG  <wl@gnu.org>
3981         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
3982         line to specify preprocessor options -- mandb 2.3.1 only recognizes
3983         the former.
3984         * src/preproc/grn/grn.man: Add proper '\" string.
3986 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
3988         * test-groff: Don't use PATH but GROFF_BIN_PATH.
3990 2001-06-08  Werner LEMBERG  <wl@gnu.org>
3992         Updated to autoconf 2.50.
3994         * configure.in: Renamed to...
3995         * configure.ac: This.
3996         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
3997         (GROFF_OS390): Updated.
3998         * configure: Regenerated.
4000 2001-05-18  Werner LEMBERG  <wl@gnu.org>
4002         * src/roff/troff/env.c, src/roff/troff/env.h,
4003         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
4004         from 2000-12-21.
4006 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
4008         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
4010 2001-05-16  Werner LEMBERG  <wl@gnu.org>
4012         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
4013         less than or equal zero; set it to 1 then.
4014         * src/roff/troff/node.h (node::node): Initialize `last'.
4016 2001-05-08  Werner LEMBERG  <wl@gnu.org>
4018         * tmac/an-old.tmac: Make predefined strings work in compatibility
4019         mode.
4020         Add troff version guard.
4021         * tmac/doc.tmac: Simplify version guard.
4023 2001-05-07  Werner LEMBERG  <wl@gnu.org>
4025         The .ns and .rs requests are now honoured not only in the top-level
4026         but in all diversions (similar to UNIX troff).
4028         This change is based on a patch from Tadziu Hoffmann
4029         <hoffmann@usm.uni-muenchen.de>.
4031         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
4032         (top_level_diversion): Remove `no_space_mode' member.
4033         * src/roff/troff/div.cc (diversion::diversion,
4034         top_level_diversion::top_level_diversion): Updated.
4035         (macro_diversion::output): Reset `no_space_mode'.
4036         (no_space, restore_spacing): Use `curdiv' unconditionally.
4037         (space_request, blank_line): Check `curdiv->no_space_mode'.
4038         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
4039         `curdiv' unconditionally.
4040         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
4041         Updated.
4043 2001-05-06  Werner LEMBERG  <wl@gnu.org>
4045         Added two new requests `de1' and `am1' which are similar to `de' and
4046         `am' with the difference that compatibility mode is saved on entry,
4047         switched off during macro execution, and restored on exit.
4049         * src/roff/troff/input.h: Added two new special characters
4050         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
4051         * src/roff/troff/input.cc (input_iterator): Added two member
4052         functions `save_compatible_flag' and `get_compatible_flag'.
4053         (input_stack): Ditto.
4054         (string_iterator): Ditto.  Also add private member
4055         `saved_compatible_flag'.
4056         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
4057         (calling_mode): New enumeration.
4058         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
4059         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
4060         (define_macro, define_indirect_macro, append_macro, ignore): Use
4061         `calling_mode'.
4062         (define_nocomp_macro, append_nocomp_macro): New functions.
4063         (init_input_requests): Updated.
4064         (do_request): Rename local variable `saved_compatible_flag' to
4065         `old_compatible_flag'.
4066         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4068         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
4069         public and trap-invoked macros.  As a consequence, the man macros
4070         work in compatibility mode also.
4072 2001-05-06  Solar Designer  <solar@openwall.com>
4074         * Makefile.in: Use $(mandir).
4076 2001-05-06  Alexios Zavras  <zvr@pobox.com>
4078         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
4080 2001-05-05  Werner LEMBERG  <wl@gnu.org>
4082         Added `.ns' number register: Returns 1 in no-space mode (if in
4083         top-level diversion), 0 otherwise.
4085         * src/roff/troff/div.cc (no_space_mode_reg): New class.
4086         (init_div_requests): Updated.
4087         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
4088         Document it.
4090 2001-05-04  Werner LEMBERG  <wl@gnu.org>
4092         * src/roff/nroff/nroff.man: Improved documentation (especially
4093         locales).
4095 2001-05-02  Werner LEMBERG  <wl@gnu.org>
4097         Added `brp' request: This is \p as a request.
4099         * src/roff/troff/env.cc (environment::do_break): Add parameter
4100         `spread'.
4101         (do_break_request): New function (was `break_request').
4102         (break_request): Calls `do_break_request'.
4103         (break_spread_request): New; calls `do_break_request'.
4104         (init_env_requests): Updated.
4105         * src/roff/troff/env.h: Updated.
4106         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4108         * REVISION: Increased to 1.
4109         * win32-diffs: Updated.
4111 2001-05-01  Werner LEMBERG  <wl@gnu.org>
4113         * tmac/an-old.tmac: Fix minor compatibility mode issue.
4114         * tmac/troffrc-end: Make it really work in compatibility mode.
4116 2001-04-27  Werner LEMBERG  <wl@gnu.org>
4118         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
4119         stdlib.h.
4121 2001-04-22  Werner LEMBERG  <wl@gnu.org>
4123         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
4124         latest versions from glibc CVS archive.
4126         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
4127         <c.zeelenberg@hccnet.nl>.
4129 2001-04-21  Werner LEMBERG  <wl@gnu.org>
4131         * configure.in: Move check for mkstemp() to...
4132         * aclocal.m4 (GROFF_MKSTEMP): This new function.
4133         * configure: Regenerated.
4135         * src/include/groff-getopt.h: Don't use variable names in
4136         declarations.
4138         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
4139         * src/devices/grohtml/Makefile.sub,
4140         src/devices/grohtml/post-html.cc: Updated.
4142 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
4144         * configure.in: Add special check for mkstemp().
4145         * src/libs/libgroff/tmpfile.cc: Use it.
4146         * src/utils/indxbib/indxbib.cc: Ditto.
4147         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
4148         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
4149         `const'.
4151 2001-04-20  Bruce Lilly  <blilly@erols.com>
4153         `Version_string' as C++ object was not visible to linker from C
4154         object files.
4155         Add `const' to `Version_string'.
4157         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
4158         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
4159         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
4160         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
4161         (scanArguments), src/preproc/refer/refer.cc (main),
4162         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
4163         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
4164         (main), src/devices/grohtml/post-html.cc (main),
4165         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
4166         (main), src/utils/hpftodit/hpftodit.cc (main),
4167         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
4168         (main), src/utils/lkbib/lkbib.cc (main),
4169         src/utils/addftinfo/addftinfo.cc (main): Implement it.
4171         * src/roff/groff/pipeline.c: Add _UWIN.
4172         * src/include/nonposix.h: Ditto.
4174 2001-04-20  Werner LEMBERG  <wl@gnu.org>
4176         * src/include/lib.h: Use HAVE_STRERROR.
4177         * src/roff/groff/pipeline.c: Ditto.
4178         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
4179         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
4180         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
4181         * win32-diffs: Updated.
4182         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
4184 2001-04-19  Werner LEMBERG  <wl@gnu.org>
4186         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
4187         instead of hardwired `"troff"'.
4188         (char_buffer::read_file): Remove unused variables.
4189         (char_buffer::write_file_troff): Ditto.
4190         (char_buffer::write_file_html): Ditto.
4191         (generateImages): Ditto.
4192         (abs): Removed.
4193         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
4195         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
4197         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
4198         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
4199         index_search_item::search1): Ditto.
4200         * src/roff/troff/node.h (width_list): Reorder members.
4201         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
4202         (lookup_warning): Ditto.
4203         (prepend_string): Commented out.
4204         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
4205         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
4206         * src/preproc/tbl/main.cc (process_format): Ditto.
4207         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
4208         compiler warnings.
4209         * src/preproc/pic/pic.cc: Updated.
4210         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
4211         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
4212         * src/preproc/refer/command.cc (execute_command): Ditto.
4213         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
4214         * src/preproc/refer/token.cc (lookup_token): Ditto.
4215         * src/preproc/soelim/soelim.cc: Ditto.
4216         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
4217         (isHexDigit): Commented out.
4218         (pushBackBuffer::isString): Remove unused variable.
4219         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
4220         warning.
4221         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
4222         resource_manager::read_resource_arg, read_one_of, parse_extensions):
4223         Ditto.
4224         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
4225         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
4226         lookup_paper_size): Ditto.
4227         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
4228         (text_glob, element_list): Reorder members.
4229         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
4230         compiler warning.
4231         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
4232         return value to `void'.
4233         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
4234         of initializers.
4235         * src/devices/grohtml/html.h (simple_output::check_newline,
4236         simple_output::space_or_newline, simple_output::enable_newlines):
4237         Add return value.
4238         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
4239         compiler warnings.
4240         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
4241         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
4242         output_ligatures, output_charset, read_map): Ditto.
4243         * src/utils/lookbib/lookbib.cc (main): Ditto.
4244         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
4245         (do_file): Fix typo (`=' -> `==').
4246         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
4247         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
4249 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
4251         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
4252         Fix usage of GROFF_BIN_PATH.
4253         * src/roff/nroff/nroff.man: Updated.
4255 2001-04-18  Werner LEMBERG  <wl@gnu.org>
4257         * NEWS: Fixing typos.
4258         Updated.
4260 Version 1.17 released
4261 =====================
4263 2001-04-17  Werner LEMBERG  <wl@gnu.org>
4265         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
4266         directory, not in $(srcdir).
4268 2001-04-16  Werner LEMBERG  <wl@gnu.org>
4270         * doc/groff.texinfo: More info on conditionals.
4272 2001-04-15  Werner LEMBERG  <wl@gnu.org>
4274         * doc/groff.texinfo: Added some info about groff internals.
4276         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
4277         about missing special character only if the name is non-null.
4279 2001-04-14  Werner LEMBERG  <wl@gnu.org>
4281         Removing the grohtml-old device driver which is now obsolete.
4283         * src/devices/grohtml-old/*: Removed.
4284         * font/devhtml-old/*: Removed.
4285         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
4286         Remove comments.
4287         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
4288         * test-groff (PATH): Updated.
4289         * tmac/Makefile.sub (NORMALFILES): Updated.
4290         * tmac/an-old.tmac: Remove special code for html-old device.
4291         Replace `html-or-html-old' register with `an-html'.
4292         * tmac/eqnrc: Updated.
4293         * tmac/html-old.tmac: Removed.
4294         * tmac/troffrc, tmac/troffrc-end: Updated.
4295         * tmac/www.tmac: Remove special code for html-old device.
4296         Replace `html-or-html-old' register with `www-html'.
4298         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
4299         src/libs/libgroff/htmlindicate.cc (graphic_end),
4300         include/htmlindicate.h, src/preproc/grn/*.cc,
4301         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
4302         single argument for consistency with rest of source code.
4304         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
4306 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
4308         * src/roff/troff/troff.man: Fixing typos.
4310 2001-04-13  Werner LEMBERG  <wl@gnu.org>
4312         * doc/pic.ms: Fixing many font switches.
4313         * doc/groff.texinfo: Fixes, additions.
4314         * MORE.STUFF: Updated.
4316 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
4318         * src/devices/grohtml/grohtml.man: Updated manual page regarding
4319         simple anchor.
4320         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
4321         cropping of images.
4322         (removeTempFiles): New function to tidy up temporary files.
4323         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
4324         Many fixes to do with the new inline suppress node and image regions
4325         are much tighter.
4326         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
4327         (generate_img_src): New function.
4328         (html_printer::do_auto_image): Utilizes it.
4329         (do_heading, do_title): Include inline images within their contents.
4330         (html_printer::begin_page): Tidied up comments that are issued to
4331         the html output file.
4332         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
4333         than courier.
4334         (text_glob::is_br): New method used by do_heading.
4335         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
4336         equivalent diversion.
4337         * src/include/html-strings.h: Altered image tags to reflect the
4338         inline image node.
4339         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
4340         parameter.
4341         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
4342         it is already inside a pic image.  Only emit tags if the argument
4343         `-Tps:html' is present.
4344         * src/preproc/tbl/main.cc: Changes to reflect additional
4345         `html_end_suppress' parameter.
4346         * src/roff/troff/env.cc: Only emit eol tag if a node has been
4347         emitted since the last eol tag was written.
4348         * src/roff/troff/env.h: New boolean `emitted_node'.
4349         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
4350         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
4351         * src/roff/troff/node.cc (check_charinfo): New method. 
4352         (troff_output_file::determine_line_limits): Alterations to limit
4353         checking.
4354         * tmac/www.tmac: Changes to reflect new suppress nodes.
4355           
4356 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
4358         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
4359         Escape the html_glyph in the buffer.
4360         (str_translate_to_html): Output the unescaped escaped_char.
4361         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
4362         `frame=void', not `frame=none'.  Add `border=0'.
4364 2001-04-12  Werner LEMBERG  <wl@gnu.org>
4366         * PROBLEMS: Add some words on how to avoid wrapper macros.
4368 2001-04-11  Blake McBride  <blake@florida-software.com>
4370         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
4372 2001-04-11  Werner LEMBERG  <wl@gnu.org>
4374         * font/devlbp/Makefile.sub (CLEANADD): Set it.
4375         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
4376         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
4377         * Makefile.sub (DISTCLEANFILES): Here.
4379         * libs/libgroff/new.cc: Include `nonposix.h'.
4380         * win32-diffs: Updated.
4382 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
4384         Added skeleton macro for defunct macros.
4386         Updated documentation.
4388         When inside displays, an empty input line warning should be
4389         suppressed.  If another macro call is put inside a display,
4390         all subsequent empty lines found in that display caused a
4391         warning to be emitted.
4393         * tmac/doc.tmac (doc-defunct-macro): New macro.
4394         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
4395         (doc-restore-global-vars): Fixed typo.
4396         (doc-empty-line): Check the `doc-display-depth' register to
4397         determine whether we are inside display or not.
4399         * tmac/doc-common: Removed `Or' and `Sf' registers.
4400         Moved obsolete `Ds' macro to doc.tmac.
4402         * tmac/groff_mdoc.man: Bump document date.
4403         Document `.Vt' under ``Variable Types''.
4404         Removed documentation for obsolete `.Or' macro.
4406 2001-04-10  Werner LEMBERG  <wl@gnu.org>
4408         * NEWS: Updated.
4409         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
4411 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
4413         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
4414         (usage): Add stream argument. Don't exit.
4415         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
4416         Write --version output to stdout, not stderr.
4417         (usage): Add stream argument. Don't exit.
4418         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
4419         (usage): Add stream argument. Don't exit.
4420         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
4421         constants.
4422         (usage): Add stream argument. Don't exit.
4423         (main): Write --help output to stdout, not stderr.
4424         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
4425         (usage): Add stream argument. Don't exit.
4426         * src/devices/grops/ps.cc (main): Accept --help and --version.
4427         (usage): Add stream argument. Don't exit.
4428         * src/devices/grotty/tty.cc (main): Accept --help and --version.
4429         (usage): Add stream argument. Don't exit.
4430         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
4431         (main): Accept --help and --version.
4432         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
4433         (main): Accept --help and --version.
4434         * src/preproc/html/pre-html.cc (usage): Add stream argument.
4435         (scanArguments): Accept --help and --version.
4436         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
4437         (main): Accept --help and --version.
4438         * src/preproc/refer/refer.cc (main): Accept --help and --version.
4439         (usage): Add stream argument. Don't exit.
4440         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
4441         exit.
4442         (main): Accept --help and --version.
4443         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
4444         (main): Accept --help and --version.
4445         * src/roff/groff/groff.cc (main): Accept --help and --version.
4446         (synopsis): Add stream argument.
4447         (help): Write --help output to stdout, not stderr.
4448         (usage): Add stream argument. Don't exit.
4449         * src/roff/grog/grog.pl: Accept --help and --version.
4450         (help): New sub.
4451         * src/roff/grog/grog.sh: Accept --help and --version.
4452         * src/roff/nroff/nroff.sh: Accept --help and --version.
4453         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
4454         (usage): Add stream argument. Don't exit.
4455         (main): Accept --help and --version.
4456         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
4457         (usage): New function with stream argument, doesn't exit.
4458         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
4459         (usage): New function with stream argument, doesn't exit.
4460         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
4461         (usage): Add stream argument. Don't exit.
4462         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
4463         (main): Accept --help and --version.
4464         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
4465         exit.
4466         (main): Accept --help and --version.
4467         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
4468         (main): Accept --help and --version.
4469         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
4470         (usage): Add stream argument. Don't exit.
4472 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
4474         Fix indentation in SYNOPSIS.
4476         Updated to include changes of latest BSD mdoc version (basically,
4477         the only change is that `.Fn' and `.Fc' put a final semicolon after
4478         a function declaration in the SYNOPSIS section).
4480         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
4481         (doc-in-synopsis-section): New variable.  Updated all related
4482         functions.
4483         (doc-indent-synopsis-active): New register.
4484         (Nd, Fn, Fo): Use it.
4485         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
4486         `.Cd' with long argument line produces indented wrapped lines. 
4487         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
4488         undesirable line break to be output.
4489         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
4490         `.rs'.
4491         (Fn, Fc): Add final `;' to output.
4492         (doc-save-global-vars, doc-restore-global-vars): Updated.
4493         * tmac/doc-common: Remove `Ex' register.
4494         Updated.
4495         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
4496         copyright.
4498 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
4500         * tmac/doc.tmac (Cd): Simplify code.
4501         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
4503 2001-04-06  Werner LEMBERG  <wl@gnu.org>
4505         Implement continuous underlining for nroff mode.  To do that, a new
4506         request in the ditroff language has been added: `x u N' (N is 0
4507         or 1).
4509         \X and \Y are now transparent to end-of-sentence recognition.
4511         * src/include/printer.h (printer): Add `type' parameter to `special'
4512         method.
4513         * src/libs/libdriver/printer.cc (printer::special): Updated.
4514         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
4516         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
4517         specials of type `p'.
4518         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
4519         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
4520         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
4521         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
4522         (glyph::order): New method.
4523         (tty_printer::add_char): Use it.
4524         (tty_printer::special): New method.
4525         (tty_printer::end_page): Implement it.
4527         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
4528         * src/roff/troff/node.cc (special_node::special_node): Add parameter
4529         to set `no_init_string'.
4530         (special_node::tprint_start): Use it.
4531         (special_node::same, special_node::copy): Updated.
4532         (special_node::ends_sentence): New method.
4533         (troff_output_file::start_special): Add parameter to include
4534         inititialization of special conditionally.
4536         * src/roff/troff/env.h (environment): New member `underline_spaces'.
4537         * src/roff/troff/env.cc (do_underline_special): New function.
4538         (environment::set_font): Use it.
4539         (do_underline): Use it.  This was `underline()'.
4540         (underline): Call `do_underline()'.
4541         (continuous_underline): New function which calls `do_underline()'.
4542         (environment::newline): Use `do_underline_special()'.
4543         (init_env_requests): Updated.
4545         * NEWS, man/troff_out.man: Updated.
4547 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
4549         * font/devutf8/R.proto: Fix code of 'shc'.
4551 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
4553         Many fixes.  Diag lists can now be nested also; additionally,
4554         `-compact' and `-offset' are supported.
4556         * tmac/doc.tmac (doc-have-indent): Replaced with ...
4557         (doc-list-have-indent-stackXXX): A new register stack.
4558         (doc-have-diag-list): Removed.
4559         (Bl): Use `doc-list-have-indent-stackXXX'.
4560         (El): Updated.
4561         (doc-diag-list): Use `doc-compact-list-stackXXX'.
4562         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
4563         (doc-set-vertical-and-indent): Ditto.
4564         (doc-next-list-depth): Removed.
4565         (doc-increment-list-stack): Updated.
4566         (doc-decrement-list-stack): Use `doc-list-depth' instead of
4567         `doc-next-list-depth'.
4568         (doc-end-list, doc-end-column-list): Don't use
4569         `doc-increment-list-stack'.
4570         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
4571         (doc-save-global-vars, doc-restore-global-vars): Updated.
4572         * tmac/doc-common: Updated.
4573         * tmac/groff_mdoc.man: Updated.
4574         * NEWS: Fix typo.
4576 2001-04-02  Werner LEMBERG  <wl@gnu.org>
4578         * src/devices/grotty/grotty.man: Fix grammatical error.
4580 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
4582         Remove .Ld from mdoc package; replace it with special handling of
4583         `...'.
4585         * tmac/doc-common: Remove `Ld' register.
4586         Uncomment `doc-volume-ds-*' strings.
4587         Remove `doc-operating-system-default'.
4588         (Os): Updated.
4589         * tmac/doc-syms (Ld): Removed.
4590         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
4591         `...' specially.
4592         * NEWS: Updated.
4594         * tmac/groff_mdoc.man: Many fixes and updates.
4596 2001-03-29  Werner LEMBERG  <wl@gnu.org>
4598         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
4599         Bond <tkb@tkb.mpl.com>.
4600         * tmac/www.tmac: Save compatibility mode.
4602 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
4604         * tmac/groff_mdoc.man: Many fixes.
4606 2001-03-28  Werner LEMBERG  <wl@gnu.org>
4608         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
4609         isn't recognized.
4611 2001-03-27  Werner LEMBERG  <wl@gnu.org>
4613         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
4614         diversion.  This fixes overlong tags.
4616 2001-03-26  Werner LEMBERG  <wl@gnu.org>
4618         * doc/groff.texinfo: Fixed and improved documentation of fonts.
4619         * tmac/doc-syms: Fix error messages.
4620         * tmac/an-old.tmac: Remove incorrect double backslashes.
4622 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
4624         * tmac/Makefile.sub: Strip mdoc.local also
4625         * tmac/strip.sed: Fixed.
4627 2001-03-24  Werner LEMBERG  <wl@gnu.org>
4629         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
4630         selecting the font size.
4631         * tmac/groff_mdoc.man, NEWS: Document it.
4633 2001-03-23  Werner LEMBERG  <wl@gnu.org>
4635         * src/roff/troff/div.cc (save_vertical_space): Add default argument
4636         to `sv' request.
4637         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
4638         argument to restore previous font family.
4639         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
4641         * doc/groff.texinfo: More fixes and additions (mainly for font
4642         manipulating commands).
4644         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
4645         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
4646         * tmac/Makefile.sub, NEWS: Updated.
4648 2001-03-23  Werner LEMBERG  <wl@gnu.org>
4650         Replaced mdoc implementation.  The new version is `state of the
4651         art', using almost all new features of groff 1.17 -- it won't run
4652         with older versions.
4654         * tmac/doc.tmac: Completely rewritten.
4655         * tmac/doc-common: Ditto.
4656         * tmac/doc-nroff: Ditto.
4657         * tmac/doc-ditroff: Ditto.
4658         * tmac/doc-syms: Ditto.
4659         * tmac/mdoc.local: New file.
4660         * tmac/groff_mdoc.samples.man: Replaced with ...
4661         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
4662         * tmac/strip.sed: Updated.
4663         * tmac/Makefile.sub: Updated.
4664         * INSTALL: Updated.
4666         * tmac/groff_man.man: Add `man.local' to the FILES section.
4668 2001-03-22  Werner LEMBERG  <wl@gnu.org>
4670         * doc/groff.texinfo: Added many @noindent.
4671         Replaced @end_Example -> @endExample.
4672         Added info whether registers are r/o.
4673         Many other additions and fixes.
4675 2001-03-21  Werner LEMBERG  <wl@gnu.org>
4677         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
4678         in makeinfo of texinfo 4.0) to be used in @Def* macros.
4679         Improved @Def* macros: Now the exact syntax of request, register,
4680         and escapes is shown.
4681         Added macros for parentheses and brackets to be used in @Def*.
4682         Many fixes and improvements of the documentation.
4684 2001-03-20  Werner LEMBERG  <wl@gnu.org>
4686         * doc/groff.texinfo: Added new index: `st' (for strings).
4687         Added macros @Defstr(x).
4688         Added macro @Example (adding @group).
4689         Other minor improvements.
4691 2001-03-19  Werner LEMBERG  <wl@gnu.org>
4693         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
4694         `rq' for requests.  `fn' is no longer used.
4695         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
4696         Removed @Deffn(x).
4698         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
4699         number with name of man page.
4701 2001-03-19  Larry Kollar  <kollar@alltel.net>
4703         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
4704         consistency.
4706 2001-03-19  Werner LEMBERG  <wl@gnu.org>
4708         * man/groff_font.man: Document `prepro', `postpro', and `print'.
4709         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
4710         * src/devices/grohtml/grohtml.man: Fixing typos.
4712 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
4714         * tmac/s.tmac (@IP): Pass `.ip' html tag.
4715         * tmac/groff_mwww.man: Remove .LINE macro
4716         * tmac/www.tmac (LINE): Add `.ti'.
4718         * src/devices/grohtml/post-html.cc (html_printer): New member
4719         `indent'.
4720         (html_printer::emit_raw): Use it.
4721         (html_printer::do_linelength): Ditto.
4722         (html_printer::do_pageoffset): Ditto.
4723         (html_printer::do_indentation): Ditto.
4724         (html_printer::do_tempindent): Ditto.
4725         (html_printer::do_break): Ditto.
4726         (html_printer::begin_page): Ditto.
4727         (html_printer::do_indentedparagraph): New function.
4728         (html_printer::troff_tag): Handle `.ip'.
4729         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
4730         Add `<td width=...>' handling.
4731         (html_text::do_table): Add parameter.
4732         (html_text::do_indent): Updated.
4733         * src/devices/groohtml/html-text.h: Updated.
4735 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
4737         Introduced simple html tables to implement indentation.
4739         * src/devices/grohtml/html.h (word, word_list): New structures.
4740         (simple_output): Use it.
4741         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
4742         (html_printer): Improve indentation handling.
4743         (html_printer::emit_raw): Set `in_table' element.  Handle
4744         indentation if set.
4745         (html_printer::write_header): Move conditional downwards.
4746         Don't allow whitespace in tags.
4747         (html_printer::do_linelength): Handle line length and indentation
4748         conditionally.
4749         (html_printer::do_pageoffset): Handle indentation conditionally.
4750         (html_printer::do_indentation): Ditto.
4751         (html_printer::do_tempindent): New function member.
4752         (html_printer::do_fill): Take care of indentation.
4753         (html_printer::do_flush): Finish table.
4754         (html_printer::do_links): Ditto.
4755         (html_printer::do_break): New function for handling `.br' and `.ti'.
4756         (html_printer::troff_tag): Use it.
4757         Handle `.ti'.
4758         (html_printer::flush_globs): Fix.
4759         (html_printer::flush_page): Finish table.
4760         (html_printer::html_printer): Fix error message.  Set up
4761         `linelength'.
4762         (html_printer::add_to_sbuf): Remove special handling of character
4763         code 255.
4764         (to_unicode): Remove `stop()'.
4765         (html_printer::write_title): Cleanup.
4766         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
4767         (html_printer::~html_printer): Flush text and end the line.
4768         Use `put_string()'.
4769         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
4770         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
4771         emission of tags.
4772         (html_text::start_tag): Disable newlines.
4773         (html_text::table_is_void): New function.
4774         (html_text::issue_table_begin): Ditto.
4775         (html_text::issue_table_end): Ditto.
4776         (html_text::push_para): Better table handling.
4777         (html_text::do_indent): New function.
4778         (html_text::do_table): Ditto.
4779         (html_text::done_table): Ditto.
4780         (html_text::do_tt): Handle PRE_TAG.
4781         (html_text::is_in_table): New function.
4782         (html_text::check_emit_text): Handle tables.
4783         (html_text::do_emittext): Use `nl()'.
4784         (html_text::do_para): Handle table.
4785         (html_text::remove_def): New function.
4786         * src/devices/grohtml/output.cc (word, word_list): Implement
4787         methods.
4788         (simple_output::end_line): Flush last word.
4789         (simple_output::simple_comment): Ditto.
4790         (simple_output::begin_comment): Recoded.
4791         (simple_output::end_comment): Ditto.
4792         (simple_output::comment_arg): Removed.
4793         (simple_output::check_newline): Improve test and flush last word.
4794         (simple_output::space_or_newline): Improved.
4795         (simple_output::write_newline): Replaced with...
4796         (simple_output::nl): This.
4797         (simple_output::put_raw_char): Flush last word.
4798         (simple_output::check_space): Removed.
4799         (simple_output::put_translated_string): Ditto.
4800         (simple_output::put_string): Simplified.
4801         (simple_output::put_number): Updated.
4802         (simple_output::put_float): Ditto.
4803         (simple_output::put_symbol): Removed.
4804         (simple_output::enable_newlines): Add `check_newline()'.
4805         (simple_output::flush_last_word): New function.
4807         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
4808         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
4810         * tmac/s.tmac (@PP, @IP): Add html conditional code.
4811         * tmac/an-old.tmac (TP): Ditto.
4813 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
4815         * mdate.sh: Make it POSIX compliant.
4817 2001-03-09  Werner LEMBERG  <wl@gnu.org>
4819         Added the `return' request to end a macro immediately.  It simply
4820         pops iterators from the input stack until a macro iterator is found.
4822         * src/roff/troff/input.cc (input_iterator::is_macro,
4823         macro_iterator::is_macro): New member.
4824         (input_return_boundary): New class to signal an immediate return
4825         to while_request().
4826         (input_stack::add_return_boundary, input_stack::is_return_boundary):
4827         New functions.
4828         (input_stack::clear): Use it.
4829         (input_stack::pop_macro): New function.
4830         (while_request): Use `is_return_boundary()'.
4831         (return_macro_request): New function.
4832         (init_input_requests): Use it.
4834         * src/roff/troff/TODO: Updated.
4835         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4837 2001-03-08  Werner LEMBERG  <wl@gnu.org>
4839         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
4840         cleanup.
4842 2001-03-07  Werner LEMBERG  <wl@gnu.org>
4844         Make `\B' more rigid.
4846         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
4847         parameter.
4848         (get_number_rigidly): New function.
4849         * src/roff/troff/input.cc (do_expr_test): Use it.
4850         * src/roff/troff/token.h: Updated.
4852         * src/roff/troff/request.h: Fix typo (init_html_request ->
4853         init_markup_request).
4855 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
4857         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
4858         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
4859         are now `.begin', `.end', `.image'.
4861         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
4862         (html_printer::add_to_sbuf): Changing type of `code' parameter.
4863         Use add_char_to_sbuf().
4864         (to_unicode): New function.
4865         (char_translate_to_html): Changing type of `ch' parameter.
4866         Use `to_unicode()'.
4867         (html_printer::~html_printer): Comment out doctype string.
4868         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
4869         instead of `.html-end'.
4870         (write_start_image): Use `.begin' and `.image' instead of
4871         `.html-begin' and `.html-image'.
4872         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
4873         (html_begin): Renamed to ...
4874         (begin): This.
4875         (html_end): Renamed to ...
4876         (end): This.
4877         (html_image): Renamed to ...
4878         (image): This.
4879         (init_html_requests): Renamed to ...
4880         (init_markup_requests): This.
4881         * tmac/www.tmac: Updated.
4883 2001-02-28  Bram  <bram@avontuur.org>
4885         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
4886         constructor.
4888 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
4890         * doc/meref.me: Fixing some typos.
4892 2001-02-16  Werner LEMBERG  <wl@gnu.org>
4894         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
4895         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
4896         * src/roff/troff/node.h: Updated.
4898 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
4900         * tmac/groff_tmac.man: Fix typo.
4902 2001-02-16  Werner LEMBERG  <wl@gnu.org>
4904         Fixing a bug which prevented proper end-of-sentence recognition
4905         between an `unformatted' box and the following text.  As a
4906         consequence, vertical line distances are no longer preserved in
4907         boxes after a call to `.unformat' -- because boxes aren't
4908         line-oriented (contrary to diversions), this doesn't make sense
4909         anyway.
4911         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
4912         value.
4913         (vertical_size_node::set_unformat_flag): New method.
4914         * src/roff/troff/node.hh: Updated.
4915         * src/roff/troff/input.cc (word_space_node::reread,
4916         hmotion_node::reread): Reset `unformat' flag after usage.
4917         (unformat_macro): Append only if `set_unformat_flag()' returns
4918         non-zero.
4919         * src/roff/troff/troff.man: Updated.
4921 2001-02-15  Werner LEMBERG  <wl@gnu.org>
4923         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
4924         documentation of `asciify' and `unformat' requests.
4926 2001-02-13  Werner LEMBERG  <wl@gnu.org>
4928         Redesigned the `unformat' request.  It is no longer connected with
4929         `asciify' but rather uses new `reread()' methods if the `unformat'
4930         flag is set.  Additionally, the handling of space characters after
4931         unformatting has been fixed so that they retain their width.
4933         * src/roff/troff/node.h (width_list): New structure to store
4934         original widths of spaces.
4935         (node): Added `unformat' member.
4936         Replaced `num_spaces' variable with `orig_width' list.
4937         * src/roff/troff/node.cc (*node::asciify,
4938         asciify_reverse_node_list): Removed `unformat_only' flag and related
4939         code.
4940         (word_space_node::asciify, word_space_node::word_space_node): Use
4941         `orig_width'.
4942         (word_space_node::~word_space_node): New destructor.
4943         (word_space_node::copy): Updated to handle `orig_width'.
4944         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
4945         (*node::merge_space): Update `orig_width' list if necessary.
4946         (*node::set_unformat_flag): New methods to set the `unformat' flag.
4947         * src/roff/troff/enc.cc (environment::space_newline): Use
4948         `width_list'.
4949         (environment::space): Added method to handle space width and
4950         sentence space width as parameters.  Use `width_list'.
4951         (environment::make_tab_node): Updated.
4952         * src/roff/troff/env.h: Updated.
4953         * src/roff/troff/input.cc (word_space_node::reread,
4954         unbreakable_space_node::reread, hmotion_node::reread): New methods
4955         to handle nodes specially if `unformat' flag is set.
4956         (do_asciify_macro): Renamed back to ...
4957         (asciify_macro): This.
4958         (unformat_macro): New implementation to simply set the `unformat'
4959         flag.
4961         * MORE.STUFF: Added more info about deroff.
4963 2001-02-08  Werner LEMBERG  <wl@gnu.org>
4965         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
4966         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
4967         and `add_self()' methods to avoid hyphenation.  For example, the
4968         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
4969         soft hyphen after `foo'.  Now the hyphen list is correctly
4970         `foo<ignore><ignore>bar'.
4972 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
4974         * tmac/groff_tmac.man: Fix `BIR' macro.
4976 2001-02-04  Werner LEMBERG  <wl@gnu.org>
4978         A new escape sequence `\:', inserting a zero-width break point.
4980         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
4981         * src/roff/troff/input.cc (get_copy, token::next, asciify):
4982         Implement it.
4983         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
4984         method.
4985         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
4986         and `asciify()' methods.
4987         * src/roff/troff/node.cc (space_node::space_node): Updated.
4988         (space_node::asciify): Handle `was_escape_colon'.
4989         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4991         Handle `\~' similar to other comparable requests.
4993         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
4994         label.
4995         (token::next): Move creation of an unbreakable_space_node to...
4996         (token::add_to_node_list): Here.
4998         Fix a bug which sometimes prevented hyphenation of words connected
4999         with `\~' or `\ ' (and other escape sequences handled as
5000         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
5001         (after a call to the `unformat' request).
5003         * src/roff/troff/env.h (environment::possibly_break_line,
5004         environment::hyphenate_line): Introducing `start_here' parameter.
5005         * src/roff/troff/env.cc (environment::space_newline,
5006         environment::space): Use it.
5007         (environment::possibly_break_line, environment::hyphenate_line):
5008         Implement it.
5009         * src/roff/troff/input.cc (process_input_stack): Use it.
5010         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
5011         space_char_hmotion_node, overstrike_node): Add
5012         `get_hyphenation_type()' method.
5013         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
5014         if `unformat_only' is active.
5016 2001-01-30  Werner LEMBERG  <wl@gnu.org>
5018         Implemented new read-only number register `.linetabs' which
5019         returns 1 if in line-tabs mode, 0 otherwise.
5021         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
5022         * src/roff/troff/env.cc (get_line_tabs): New function.
5023         (init_env_requests): Use it.
5024         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
5026         * VERSION, REVISION: Changing to 1.17.0.
5028 2001-01-28  Werner LEMBERG  <wl@gnu.org>
5030         Fixed a bug which prevented hyphenation of words which are finished
5031         with `\)'.
5033         * src/roff/troff/token.h (token): Add enum type
5034         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
5035         * src/roff/troff/input.cc (token::next, token::description,
5036         get_line_arg, token::add_to_node_list, token::process): Use it.
5038 2001-01-27  Werner LEMBERG  <wl@gnu.org>
5040         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
5041         * src/roff/troff/div.cc (do_divert): Use it.
5043         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
5045 2001-01-25  Werner LEMBERG  <wl@gnu.org>
5047         Adding the `linetabs' request.  If set, tab distances are not
5048         computed relative to the input line but relative to the output line.
5050         * src/roff/troff/env.h (environment): New member `line_tabs'.
5051         * src/roff/troff/env.cc (line_tabs_request): Implement request.
5052         (environment::environment, environment::copy): Updated.
5053         (environment::distance_to_next_tab): Use `line_tabs'.
5054         (init_env_requests): Register request.
5055         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
5056         fixes.
5058 2001-01-24  Werner LEMBERG  <wl@gnu.org>
5060         Introducing a new read-only register `.int' which is set to a
5061         positive value if the last output line is interrupted (i.e., if it
5062         contains `\c').
5064         * src/roff/troff/env.cc (init_env_requests): Add it.
5065         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
5067 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
5069         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
5070         * src/preproc/html/pre-html.cc (findPrefix): New function which
5071         generates the troff executable name via the system prefix.
5072         * src/preproc/eqn/main.cc: Modified warning message.
5074 2001-01-23  Werner LEMBERG  <wl@gnu.org>
5076         troff's `box' and `boxa' requests didn't preserve temporary
5077         indentation.
5079         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
5080         `saved_target_text_length' members.
5081         * src/roff/troff/div.cc (do_divert): Use them.
5083         Tabs (but not yet leaders and fields) are now handled correctly by
5084         `asciify' request.
5086         * node.h (hmotion_node): Add field `was_tab'.
5087         * env.cc (environment::make_tab_node): Set it.
5088         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
5090         Added new request `unformat' which will, contrary to `asciify',
5091         preserve font information after unformatting (i.e., only nodes
5092         dealing with horizontal space are converted back to input
5093         characters).
5095         * input.cc (asciify_macro): Renamed to ...
5096         (do_asciify_macro): this, having a new parameter `unformat_only'.
5097         (asciify_macro, unformat_macro): New; using do_asciify_macro.
5098         (init_input_requests): Added `unformat'.
5099         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
5100         parameter to control asciification process.
5101         * node.h (*_node::asciify): Ditto.
5102         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
5104 2001-01-20  Werner LEMBERG  <wl@gnu.org>
5106         * doc/groff.texinfo: Minor improvement of `.in' documentation.
5108 2001-01-18  Werner LEMBERG  <wl@gnu.org>
5110         * tmac/ps.tmac: Remove call of psold.tmac.
5111         * tmac/psold.tmac: Comment updated.
5112         * tmac/psnew.tmac: Removed since no longer needed.
5113         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
5115         * font/devutf8/R.proto: Adding `shc' glyph.
5116         * font/devutf8/NOTES: Updated.
5118         * test-groff: Updated.
5120 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
5122         First cut of the new html device driver.  Changes to pre-html and
5123         the new grohtml are too numerous to be documented here.
5125         Stuff related to `html' has been renamed to `html-old' and `html2'
5126         stuff has been renamed to `html' (including directories).  The new
5127         html device driver is therefore invoked as `-Thtml'.
5129         Added new `\O' escape to suppress output (needed by html driver).
5131         Added functions and code to pass info about input-level commands
5132         (`.in', `.fl', etc.) to html driver.
5134         Three new functions (.html-begin, .html-end, and .html-image) for
5135         better html handling: `html-begin' will execute the remaining line
5136         if at the outermost nesting level, increasing an internal counter.
5137         `html-end' does the same but decreases the internal counter.
5138         `html_image' puts its arguments into a special node (suppress_node)
5139         to define an image region.
5141         The `output' request has been removed.
5143         * tmac/html-tags.tmac: Removed.
5144         * tmac/arkup.tmac: Updated and renamed to ...
5145         * tmac/www.tmac: New file.
5146         * tmac/markup.tmac Updated and renamed to ...
5147         * tmac/mwww.tmac: New file.
5148         * tmac/Makefile.sub: Updated.
5149         * tmac/an-old.tmac: Updated.
5150         * tmac/eqnrc: Updated.
5151         * tmac/groff_man.man
5152         * tmac/groff_markup.man: Updated and renamed to ...
5153         * tmac/groff_mwww.man: New file.
5154         * tmac/groff_tmac.man: Updated.
5155         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
5156         * tmac/html.tmac: Updated and renamed from html2.tmac.
5157         * tmac/pspic.tmac: Updated html support.
5158         * tmac/s.tmac: Added html output support.
5159         * tmac/troffrc, tmac/troffrc-end: Updated.
5161         * Makefile.in, doc/Makefile: Updated.
5162         * doc/groff.texinfo: Added info about new `\O' escape.
5163         * doc/homepage.ms: Use `MAILTO' macro.
5165         * font/devhtml/DESC.proto: Add `C' font.
5166         * font/devhtml/Makefile.sub: Updated.
5167         * font/devhtml/R.proto: Minor fixes.
5168         * font/devhtml-old/Makefile.sub: Updated.
5170         * src/devices/grohtml-old/Makefile.sub: Updated.
5172         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
5173         method.
5174         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
5175         graphic_start): Add `inline' parameter.  Update.
5176         (html_end_suppress, graphic_end): Update.
5178         * src/include/html-strings.h: New file.
5179         * src/include/htmlindicate.h: Comments updated.
5180         * src/include/printer.h: Updated.
5182         * src/preproc/eqn/main.cc (do_file, main): Updated.
5183         * src/preproc/pic/troff.cc (troff_output::start_picture,
5184         troff_output::finish_picture): Updated.
5185         * src/preproc/tbl/main.cc (process_input_file): Updated.
5187         * src/roff/groff/groff.cc (main): Updated.
5188         Pass device arguments to predrivers also.
5189         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
5190         * src/roff/troff/env.h (environment): Updated.
5191         New elements `need_eol' and `ignore_next_eol' (for html output).
5192         * src/roff/troff/env.cc (environment::environment): Add initializers
5193         for `need_eol' and `ignore_next_eol'.
5194         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
5195         functions.
5196         (point_size, fill, no_fill, center, right_justify, line_length,
5197         indent, temporary_indent, break_request, handle_tab): Use
5198         `add_html_tag()'.
5199         (set_tabs): Use `add_html_tag_tabs()'.
5200         (environment::add_html_tag): Updated.
5201         (environment::do_break): Updated.
5202         * src/roff/troff/div.cc (space_request, flush_output): Use
5203         `environment::add_html_tag()'.
5204         * src/roff/troff/input.cc: Updated.
5205         New variable `html_level' to indicate nested `html-begin' requests.
5206         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
5207         (non_interpreted_char_node, token_node, non_interpreted_node): Add
5208         `force_tprint()' method.
5209         (token::next): Handle `\O'.
5210         (do_suppress): Implement it.
5211         (html_begin, html_end, html_image): New functions.
5212         (init_output_requests): Renamed to ...
5213         (init_html_requests): this.
5214         (main): Use it.
5215         (macro::append_str, macro::append_unsigned, macro::append_int): New
5216         methods.
5217         New variable `output_low_mark_miny' to limit minimal value of y.
5218         (reset_output_registers): Use it.
5219         (output_request): Removed.
5220         (get_output_registers): New function.
5221         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
5222         (*_node): Added `force_tprint()' if necessary.
5223         (special_node): New elements `tf' and `get_tfont()'.
5224         (suppress_node): New class.
5225         * src/roff/troff/node.cc:
5226         New global variables `image_no' and `suppress_start_page'.
5227         (real_output_file): New method `is_on()'.
5228         (troff_output_file): New method `start_special(tfont)'.
5229         (troff_output_file::really_print_line): Use `tprint' conditionally.
5230         (real_output_file::print_line): Updated.
5231         (real_output_file::on): Updated.
5232         (*_node): Added `force_tprint()'.
5233         (special_node::special_node): Initializer updated.
5234         (special_node::same, special_node::copy, special_node::tprint_start):
5235         Updated.
5236         (get_reg_int, get_reg_str): New functions.
5237         (suppress_node::*): New methods.
5238         New global variables last_position, last_image_filename;
5239         (min): New inline function.
5240         * src/roff/troff/reg.h, src/roff/troff/request.h,
5241         src/roff/troff/troff.h: Updated.
5243 2001-01-13  Werner LEMBERG  <wl@gnu.org>
5245         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
5246         documentation of `asciify' request.
5248 2001-01-12  Werner LEMBERG  <wl@gnu.org>
5250         * src/roff/troff/input.cc: Move definition of special characters
5251         like `ESCAPE_TILDE' to ...
5252         * src/roff/troff/input.h: New file.
5253         * src/roff/troff/Makefile.sub (HDRS): Add it.
5255         Extending the .asciify request to `unformat' space characters also.
5257         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
5258         to count input space characters.
5259         Update constructors to take care of it.
5260         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
5261         `ESCAPE_SPACE' instead of normal space.
5262         (word_space_node::asciify): New method.
5263         (unbreakable_space_node::asciify): New method.
5264         (word_space_node::merge_space): New method.
5265         * src/roff/troff/env.cc (environment::space_newline,
5266         environment::space): Add code to initialize `num_spaces' (using the
5267         constructor of `word_space_node').
5268         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
5269         Document it.
5271 2001-01-09  Werner LEMBERG  <wl@gnu.org>
5273         * man/groff_char.man: Use table header traps only conditionally.
5275 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
5277         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
5279 2001-01-08  Werner LEMBERG  <wl@gnu.org>
5281         Introducing the `box' and `boxa' requests which are similar to
5282         `di' resp. `da' but omitting a partially filled line (which is
5283         restored after ending the diversion).
5285         * src/roff/troff/div.h (diversion): Add elements to save partially
5286         filled line.
5287         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
5288         partially filled line.
5289         (divert, divert_append): Updated.
5290         (box, box_append): New functions.
5291         (init_div_requests): Use them.
5292         * src/roff/troff/env.h (environment): do_divert() is now a friend.
5293         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
5295         * doc/groff.texinfo: Fix documentation of `lf' request.
5297 2000-12-25  Werner LEMBERG  <wl@gnu.org>
5299         * src/roff/troff/troff.man, NEWS: Document `writem' request.
5301 2000-12-21  Werner LEMBERG  <wl@gnu.org>
5303         Ignore `ss' request if in compatibility mode.
5305         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
5306         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
5307         * src/roff/troff/env.cc (space_size): Use it.
5309         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
5310         `ss' request in nroff mode.
5312         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
5313         changes.
5315 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
5317         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
5319 2000-12-13  Werner LEMBERG  <wl@gnu.org>
5321         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
5322         * src/preproc/eqn/neqn.man: Small fixes and additions.
5324 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
5326         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
5327         Fixing typo.
5329         * src/preproc/eqn/neqn.man: New file.
5331         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
5332         negative' warning.
5334         * tmac/e.tmac: Add `T&' macro.
5335         Fix `indent cannot be negative' warning.
5336         * tmac/s.tmac: Fix `indent cannot be negative' warning.
5338 2000-12-07  Werner LEMBERG  <wl@gnu.org>
5340         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
5342 2000-12-06  Werner LEMBERG  <wl@gnu.org>
5344         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
5345         `alloca' symbol .
5347         * MORE.STUFF: Added info about deroff for djgpp.
5349         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
5350         documentation of -rcR switch.
5352 2000-12-03  Werner LEMBERG  <wl@gnu.org>
5354         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
5355         if -rcR=1 (which is now the default in nroff mode), a single, very
5356         long page is created instead of multiple pages: All `ne' and `wh'
5357         requests are put into conditionals; a new macro `an-end' is added to
5358         be called with `em'.
5360         Some other minor cleanups.
5362         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
5364 2000-12-02  Werner LEMBERG  <wl@gnu.org>
5366         Fixing a bug which prevented hyphenation in words followed
5367         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
5369         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
5370         Adding possibly_break_line().
5371         * src/roff/troff/env.h (environment): Make possibly_break_line()
5372         public.
5374         Make `\~' usable in .tr request.
5376         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
5377         (token): Add stretchable_space().
5378         * src/roff/troff/input.cc (token::next, token::delimiter,
5379         token::description, process_input_stack, do_translate,
5380         add_to_node_list, token::process): Use it.
5381         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
5382         for adjusting the space.
5383         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
5384         for stretchable space.
5385         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
5386         (make_node): Add code for stretchable space.
5387         * src/roff/troff/env.cc (environment::add_char): Use it.
5388         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
5389         (get_copy, token::next, transparent_translate, asciify): Use it.
5391         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
5392         doc/groff.texinfo: Updated.
5393         * man/groff.man: Small reorderings.
5395 2000-11-23  Werner LEMBERG  <wl@gnu.org>
5397         * NEWS: Fixes.
5398         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
5399         option.
5400         * src/roff/troff/input.cc (main): Add `config_macro_path' and
5401         `safer_macro_path' to -M option.
5402         * src/roff/troff/troff.man: Fixes.
5404 2000-11-22  Werner LEMBERG  <wl@gnu.org>
5406         Use safer path (except for config files) if -U isn't specified.  Add
5407         a special macro path (without home and current directory) for config
5408         files.  Add home directory to unsafe path for consistency.  Don't
5409         include the home directory in the font path.
5411         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
5412         `macro_path'.
5413         * src/include/macropath.h: Add `config_macrp_path'.
5414         * src/libs/libgroff/fontfile.cc: Fix font path.
5415         * src/roff/troff/input.cc (process_startup_file): Use
5416         `config_macro_path'.
5417         (main): Select unsafe path if -U is given.
5419         * src/preproc/eqn/main.cc (main): Fixing search path for
5420         configuration file.
5421         * src/preproc/eqn/eqn.man: Updated.
5423         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
5424         Updated.
5426         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
5427         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
5428         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
5429         src/devices/grotty/grotty.man: Updated.
5431         * Makefile.in: Fix comments.
5433 2000-11-17  Werner LEMBERG  <wl@gnu.org>
5435         * tmac/safer.tmac: Empty file added (again) for compatibility
5436         reasons.
5437         * tmac/Makefile.sub: Updated.
5439 2000-11-16  Werner LEMBERG  <wl@gnu.org>
5441         * src/devices/grodvi/dvi.cc (main),
5442         src/devices/grohtml2/post-html.cc (main),
5443         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
5444         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
5445         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
5446         (main), src/preproc/html2/pre-html.cc (main),
5447         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
5448         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
5449         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
5450         (main), src/utils/hpftodit/hpftodit.cc (main),
5451         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
5452         (main), src/utils/lookbib/lookbib.cc (main),
5453         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
5454         (main): Use stdout for -v.
5455         * src/roff/groff/groff.cc (run_commands),
5456         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
5457         to make direct printing to stdout possible.
5458         * src/roff/groff/pipeline.h: Updated.
5460         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
5461         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
5462         * src/utils/afmtodit/afmtodit.man: Updated.
5464         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
5465         (version): New function.
5466         (usage): Updated.
5467         * src/utils/addftinfo/addftinfo.man: Updated.
5469         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
5470         Fixing copyright dates.
5472         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
5473         replacing it.
5475         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
5476         version_string.
5478         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
5480 2000-11-15  Werner LEMBERG  <wl@gnu.org>
5482         In all programs, make -v return immediately with exit status 0 to
5483         be compliant with the GNU standard.
5485         * src/devices/grodvi/dvi.cc (main),
5486         src/devices/grohtml2/post-html.cc (main),
5487         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
5488         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
5489         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
5490         (main), src/preproc/html2/pre-html.cc (main),
5491         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
5492         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
5493         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
5494         (main): Implement it.
5495         * NEWS: Updated.
5497         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
5498         and postprocessors to the -v option.
5500         * src/roff/grog/grog.pl: Implement -v.
5501         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
5502         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
5504         * src/roff/nroff/nroff.sh: Implement -v.
5505         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
5506         * src/roff/nroff/nroff.man: Updated.
5507         
5508         * src/preproc/eqn/main.cc (main): Fix comment typo.
5510         * MORE.STUFF: Added info about djgpp port of grap.
5512 2000-11-14  Werner LEMBERG  <wl@gnu.org>
5514         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
5515         mode (or rather, implemented non-compatibility mode).
5516         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
5518         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
5519         replacing it -- we don't find gxditview otherwise.
5520         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
5522         * src/preproc/pic/depend: Removed.  Unnecessary.
5524         Implemented dummy keyword `solid' in pic for compatibility with
5525         AT&T pic.
5527         * lex.cc (lookup_keyword): Added `solid'.
5528         * pic.y: Added SOLID with dummy rule.
5529         * pic.cc, pic_tab.h: Regenerated.
5530         * doc/pic.ms: Updated.
5532 2000-11-13  Werner LEMBERG  <wl@gnu.org>
5534         For security reasons, don't use the current directory but the home
5535         directory while searching and scanning troffrc and troffrc-end.
5536         Similarly, replace the current directory with the home directory
5537         in the font path.
5539         * Makefile.in (fontpath, tmacpath): Remove current directory.
5541         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
5542         two parameters `add_home' and `add_current'.
5543         (search_path::~search_path, search_path::command_line_dir,
5544         search_path::open_file): Remove tests for `dirs' being zero.
5545         * src/include/searchpath.h: Adjust.
5546         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
5547         `safer_macro_path'.
5548         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
5550         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
5551         * src/roff/troff/input.cc: Use `mac_path', initialized with
5552         `macro_path'.
5553         (process_startup_file): Set `mac_path' to `safer_macro_path'.
5554         * src/roff/troff/env.cc: Use `mac_path'.
5556         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
5558         * NEWS, man/roff.man, src/roff/troff/troff.man,
5559         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
5560         Updated.
5562 2000-11-12  Werner LEMBERG  <wl@gnu.org>
5564         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
5566         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
5567         * configure.in: Fix typo in comment.
5568         * configure: Regenerated.
5570         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
5571         copyright dates.
5573 2000-11-08  Werner LEMBERG  <wl@gnu.org>
5575         Add system tmac directory (/usr/local/lib/groff/site-tmac).
5577         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
5578         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
5579         $(systemtmacdir).
5580         Use @libdir@.
5581         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
5582         * tmac/Makefile.sub (install_data): Create
5583         $(systemtmacdir) and $(localtmacdir).
5584         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
5585         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
5586         NEWS, doc/groff.texinfo: Updated and minor fixes.
5588         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
5589         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
5590         $(systemtmacdir) since the wrapper files are platform-dependent.
5592 2000-11-01  Werner LEMBERG  <wl@gnu.org>
5594         * doc/groff.texinfo: Fix typo.
5596 2000-10-26  Werner LEMBERG  <wl@gnu.org>
5598         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
5599           tmac.doc.old -> doc-old.tmac
5600           tmac.an.old  -> an-old.tmac
5602         * tmac/tmac.*: Moved to ...
5603         * tmac/*.tmac: this.
5604         * tmac/man.local: Fix comment.
5605         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
5606         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
5607         Added some `FILES' sections.  More use of @...@ directives.  Other
5608         minor updates.
5609         * arch/djgpp/README, font/devutf8/NOTES: Updated.
5610         * doc/homepage.ms, doc/groff.texinfo: Updated.
5611         * man/groff.man, man/roff.man: Updated.
5612         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
5613         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
5614         src/devices/grotty/grotty.man: Updated.
5615         * src/preproc/pic/pic.man: Updated.
5616         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
5617         instead of -mdoc.old.
5618         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
5619         * src/roff/nroff/nroff.man: Updated.
5620         * NEWS: Updated.
5622         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
5624         * tmac/mm.diff: Removed -- it has no use now since the mm package
5625         is part of groff.
5627         * tmac/*: Removed trailing spaces.
5629         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
5630         the tmac subdirectory also).
5632         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
5633         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
5634         stuff since it is no longer needed.
5636         * README, PROBLEMS: Updated.
5638 2000-10-25  Werner LEMBERG  <wl@gnu.org>
5640         Invert current behaviour: Search first FOOBAR.tmac, then
5641         tmac.FOOBAR.
5643         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
5644         (open_mac_file, macro_source): Implement it.
5645         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
5646         doc/groff.texinfo, NEWS: Document it.
5648         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
5649         Small documentation improvements.
5651         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
5652         subdirectory also).
5654         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
5656 2000-10-24  Werner LEMBERG  <wl@gnu.org>
5658         Add local tmac directory (groff/site-tmac).
5660         * Makefile.in: Add $(localtmacdir).
5661         (uninstall_dirs): Add $(localtmacdir).
5662         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
5663         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
5664         in $(localtmacdir).  Create $(localtmacdir).
5665         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
5666         Updated and minor fixes.
5668         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
5670         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
5672 2000-10-23  Werner LEMBERG  <wl@gnu.org>
5674         Move hyphen.us to tmac directory.
5676         * src/roff/troff/hyphen.us: Removed.
5677         * src/tmac/hyphen.us: Added.
5678         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
5680         Change installation structure for data files from .../groff/... to
5681         .../groff/<version><revision>/... to be conform with other GNU
5682         programs.
5684         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
5685         doc/Makefile: Implement it.
5686         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
5687         * configure: Updated.
5688         * arch/djgpp/README, font/devutf8/NOTES: Use it.
5689         * NEWS: Document it.
5690         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
5691         @MACRODIR@ instead of hard-coded directories.
5693 2000-10-22  Werner LEMBERG  <wl@gnu.org>
5695         Implement $GROFF_BIN_PATH environment variable (which defaults to
5696         $bindir) used for child programs of groff and similar wrappers.
5698         * gendefs.sh: Improve documentation.
5699         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
5700         src/preproc/eqn/Makefile.sub (neqn),
5701         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
5702         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
5703         $GROFF_BIN_PATH.
5704         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
5705         $GROFF_PATH__ (the latter for communication with troff).
5706         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
5707         set.
5708         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
5709         doc/groff.texinfo: Document it.
5711         * doc/groff.texinfo: Improve documentation of troff's -a option.
5713 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
5715         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
5716         non-intrusive eol marker.
5717         (troff_output_file::determine_line_limits): New function.
5718         (troff_output_file::draw): Use it.
5719         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
5720         output_pending_lines() instead of output_line().
5721         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
5722         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
5723         createImage): Small fixes.
5724         
5725 2000-10-14  Werner LEMBERG  <wl@gnu.org>
5727         Replace tmac.safer with a real secure solution.
5729         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
5730         system_request, pipe_output): Disable requests if in safer mode.
5731         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
5732         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
5733         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
5734         doc/groff.texinfo, src/roff/groff/groff.man,
5735         src/roff/troff/troff.man, arch/djgpp/README: Updated.
5737         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
5738         (resource_manager::output_prolog): Replace setenv() with putenv().
5740 2000-10-09  Werner LEMBERG  <wl@gnu.org>
5742         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
5743         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
5744         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
5745         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
5746         compilation errors with some compilers.  It seems that this code
5747         is no longer necessary -- if yes, it is easy to add some #ifdef's
5748         for that particular old-fashioned compiler.
5750         * MORE.STUFF: Added info about Meta-tbl.
5752         * doc/groff.texinfo: Added more info about `.if "..."..."'.
5754 2000-10-07  Werner LEMBERG  <wl@gnu.org>
5756         Adding a new escape sequence \B'...': If the string between
5757         the delimiters is a valid numeric expression, return the character
5758         `1', and `0' otherwise.  This is an analogon to \A.
5760         * src/roff/troff/input.cc (do_expr_test): Implement it.
5761         (token::next): Use it.
5762         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
5764         * tmac/tmac.trace: Made independent from escape character.
5766 2000-10-06  Werner LEMBERG  <wl@gnu.org>
5768         Adding a new request .dei: define indirect.  The first and second
5769         parameter of .dei are taken from string registers instead directly;
5770         this very special request is needed to make tmac.trace independent
5771         from the escape character (which might even be disabled).
5773         * src/roff/troff/input.cc (do_define_macro): Implement it.
5774         (define_macro_indirect): New function.
5775         (init_input_requests): Use it.
5777         Adding two requests .ecs and .ecr: Save and restore the escape
5778         character.  These two requests are needed to make tmac.trace
5779         independent from the escape character (which might even be
5780         disabled).
5782         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
5783         Implement it.
5784         (init_input_requests): Use it.
5786         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
5788 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
5790         Adding a new option -P and new environment variable GROPS_PROLOGUE
5791         to grops, selecting a different prologue file (minor modifications
5792         by WL).
5794         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
5795         src/devices/grops/ps.cc (main): Implement it.
5796         * src/devices/grops/grops.man, NEWS: Document it.
5798 2000-09-22  Werner LEMBERG  <wl@gnu.org>
5800         * INSTALL: Add info about selecting paper format.
5802 2000-09-21  Werner LEMBERG  <wl@gnu.org>
5804         * src/roff/troff/input.cc (main): Fixing compiler warning.
5805         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
5806         strings.h from the former to the latter.
5807         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
5808         stuff from the former to the latter.
5810 2000-09-11  Werner LEMBERG  <wl@gnu.org>
5812         Implementing two new requests .tm1 and .tmc: The former is similar
5813         to .tm but can output leading spaces; its syntax is similar to
5814         defining a string, i.e., a `"' can be used to mark the beginning of
5815         the string to be written to stderr: `.tm1 " test'.  The latter is
5816         similar to .tm1 but doesn't write out a final newline character.
5818         * src/roff/troff/input.cc (terminal1, terminal_continue,
5819         do_terminal): New functions.
5820         (init_input_requests): Use them.
5821         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
5823 2000-09-09  Werner LEMBERG  <wl@gnu.org>
5825         * tmac/groff_mdoc.samples.man: Small fixes.
5827 2000-09-08  Werner LEMBERG  <wl@gnu.org>
5829         * tmac/groff_mdoc.man: Fixing typo.
5831 2000-09-02  Werner LEMBERG  <wl@gnu.org>
5833         Implementing a .nop request which does nothing.
5835         * src/roff/troff/input.cc (nop_request): New function.
5836         (init_input_requests): Use it.
5837         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
5839 2000-09-01  Werner LEMBERG  <wl@gnu.org>
5841         * doc/groff.texinfo: Added some comments.
5843 2000-08-30  Werner LEMBERG  <wl@gnu.org>
5845         * src/roff/troff/TODO: Updated.
5847 2000-08-25  Werner LEMBERG  <wl@gnu.org>
5849         * doc/groff.texinfo: Fix comment how to compile the DVI file.
5851 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
5853         * font/devps/generate/Makefile (SHELL): Define explicitly to
5854         "/bin/sh", for non-Unix platforms.
5855         (extraclean): Use a more portable "" quoting instead of a
5856         backslash (which doesn't work on DOS/Windows).
5857         
5858         * font/devlj4/generate/Makefile (extraclean): Ditto.
5860         * font/devdvi/generate/Makefile (extraclean): Ditto.
5862 2000-08-25  Werner LEMBERG  <wl@gnu.org>
5864         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
5865         src/roff/troff/troff.man: Document Eli's latest changes.
5867 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
5869         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
5870         macro file names of the form NAME.tmac as well as tmac.NAME.
5872 2000-08-25  Werner LEMBERG  <wl@gnu.org>
5874         * src/include/posix.h: Remove definition of FILENAME_MAX.
5876         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
5877         `sys_fatal' and `stop' function().
5879         * test-groff: Updated.
5881 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
5883         Added the new troff command .output <arg> to suppress output (while
5884         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
5885         registers (for passing the output dimensions to the output device).
5887         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
5888         parameter.
5889         * src/roff/troff/node.h, src/roff/troff/node.cc
5890         (troff_output_file::really_print_line,
5891         ascii_output_file::really_print_line,
5892         supress_output_file::really_print_line): Use `width' parameter.
5893         (troff_output_file::really_on, troff_output_file::really_off,
5894         output_file::on, output_file::off, real_output_file::on,
5895         real_output_file::off, real_output_file::really_on,
5896         real_output_file::really_off): New functions.
5897         (real_output_file:public output_file): New variable `output_on'.
5898         (real_output_file::begin_page, real_output_file::copy_file,
5899         real_output_file::transparent_char, real_output_file::print_line):
5900         Use it.
5901         (real_output_file::print_line): Use check_output_limits.
5902         * src/roff/troff/reg.h, src/roff/troff/request.h,
5903         src/roff/troff/input.cc (assign_registers): New function to remove
5904         two `goto's.
5905         (do_ps_file): Use it.
5906         (check_output_limits, reset_output_registers, output_request,
5907         init_output_requests): New functions.
5908         (init_input_requests): Updated.
5910         Added new grohtml2 device and html2 preprocessor (coding
5911         not yet finished) which will eventually replace grohtml.
5913         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
5914         Updated.
5915         * src/include/htmlindicate.h, src/include/htmlindicate
5916         (html_begin_suppress, html_end_suppress): New functions.
5917         * src/preproc/tbl/main.cc: Use it.
5918         * src/roff/groff/groff.cc: Add support for html2 device (which will
5919         automatically invoke the html2 preprocessor).
5920         * src/roff/troff/input.cc (is_html2): New variable.
5921         * src/roff/troff/troff.h, src/roff/troff/env.h,
5922         src/roff/troff/env.cc (environment::add_html_tag): New function
5923         (uses `is_html2').
5924         (environment::do_break): Use it.
5925         * font/devhtml2/*: New files.
5926         * src/devices/grohtml2: New device.
5927         * src/preproc/html2: New preprocessor.
5928         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
5930 2000-08-23  Werner LEMBERG  <wl@gnu.org>
5932         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
5934 2000-08-22  Werner LEMBERG  <wl@gnu.org>
5936         * src/include/lib.h: Provide a fix for IRIX to not include
5937         groff-getopt.h.
5939 2000-08-18  Werner LEMBERG  <wl@gnu.org>
5941         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
5942         since some non-GNU sed programs can't handle null regexps.
5943         * configure, src/preproc/eqn/Makefile.sub,
5944         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
5946         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
5947         bug (string.h and strings.h are both needed according to latest
5948         POSIX standard).
5950         * MORE.STUFF: Added info about unroff and troffcvt.
5952 2000-08-08  Werner LEMBERG  <wl@gnu.org>
5954         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
5955         used before -ms.
5957         * tmac/tmac.man.old: Remove unused number register.
5959         * tmac.doc: Minor documentation fix.
5961 2000-08-07  Paul Eggert  <eggert@twinsun.com>
5963         * src/roff/groff/pipeline.c (is_system_shell):
5964         Fix typo: "monocased_shell" no longer exists.
5966 2000-08-07  Paul Eggert  <eggert@twinsun.com>
5968         Remove FILENAME_MAX limits.
5970         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
5971         that the argument length is less than FILENAME_MAX.
5972         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
5973         Use struct hack to allocate and free file name.
5974         (struct xtmpfile_list): fname is now part of the structure,
5975         not a pointer to another string.
5977 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
5979         * src/include/posix.h: Add a default value for FILENAME_MAX.
5981 2000-08-06  Paul Eggert  <eggert@twinsun.com>
5983         Add support for new BSD-style man pages (with ".Dd" instead of
5984         ".TH"), so that "groff -man" understands both styles, even
5985         when running "groff -man" on a host whose system man page
5986         macros don't support ".Dd".
5988         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
5989         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
5990         in case the system man macros don't define Dd or TH.
5992         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
5993         * tmac/tmac.an: New one-line file.
5994         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
5996 2000-08-06  Werner LEMBERG  <wl@gnu.org>
5998         * src/roff/troff/troff.man: Fixing typos.
6000 Version 1.16.1 released
6001 =======================
6003 2000-07-31  Werner LEMBERG  <wl@gnu.org>
6005         Preparing release 1.16.1.
6007         * REVISION: Revision number set to 1.
6008         * MORE.STUFF: Added info about port to DOS.
6009         * NEWS, win32-diffs: Updated.
6011         * src/include/nonposix.h: Remove first line -- this file is used
6012         in C also.
6014         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
6015         link to it.
6017 2000-07-30  Werner LEMBERG  <wl@gnu.org>
6019         * doc/texinfo.tex: Update to latest version.
6021 2000-06-28  Paul Eggert  <eggert@twinsun.com>
6023         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
6024         commands that fail.  Don't assume that "export a=b" is valid shell
6025         syntax.  This is needed for Solaris 2.5.1.
6027         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
6028         comment about missing Solaris headers.
6030         * PROBLEMS: Add section about problems with Sun Make and VPATH.
6032 2000-06-25  Werner LEMBERG  <wl@gnu.org>
6034         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
6035         SET_BINARY().
6037         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
6039         * win32-diffs: Updated.
6040         * README.WIN32: Added CRs to make all Windows editors happy.
6042         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
6043         src/roff/groff/pipeline.c).
6045 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
6047         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
6048         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
6050 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
6052         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
6053         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
6054         are binary files.
6055         (main): Support non-Posix systems with several different styles of
6056         slash characters in file names.
6058         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
6059         (main) [SET_BINARY]: Switch stdin into binary mode.
6061         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
6062         (main): Support file names with several possible slash-type
6063         characters, as given by DIR_SEPS[] in nonposix.h.
6064         (main) [__MSDOS__]: If renaming the temporary index file fails
6065         because it has more than one dot in its trunk, replace the dot
6066         with an underscore and try again.
6067         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
6068         Newline.
6069         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
6071         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
6072         (File::File): Open the input file in binary mode.  Strip CR
6073         characters from each CR-LF pair.
6074         (xbasename): Support file names with several possible slash-type
6075         characters, as given by DIR_SEPS[] in nonposix.h.
6077         * src/include/Makefile.sub (HDRS): Add nonposix.h.
6079         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
6080         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
6081         [!_POSIX_VERSION]: Define for traditional Unix systems.
6082         (real_output_file::real_output_file): Remove the MSVC-specific
6083         call to popen, use instead POPEN_WT, appropriately defined on
6084         nonposix.h.  #include nonposix.h.
6085         (real_output_file::~real_output_file): Remove the MSVC-specific
6086         call to pclose, a suitable macro is now defined on nonposix.h.
6087         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
6088         and WEXITSTATUS instead of assuming traditional Unix
6089         interpretation of the status returned by pclose.
6091         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
6092         call to popen, use POPEN_RT instead (appropriately defined on
6093         nonposix.h).  #include nonposix.h.
6094         (ps_bbox_request): Open the PostScript file in binary mode.
6095         Close the file after processing it.
6096         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
6097         nonposix.h.
6099         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
6100         A version of run_pipeline that doesn't use `fork'.
6101         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
6102         (system_shell_name, system_shell_dash_c)
6103         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
6104         the ugliness of testing DOS/Windows file names for equality, and
6105         support both stock shells and ports of Unix shells.
6107         * src/roff/groff/groff.cc: #include nonposix.h.
6108         (BSHELL): Definition moved to nonposix.h.
6109         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
6110         instead of a literal "-c".
6111         (xbasename): Support file names with several possible slash-type
6112         characters, as given by DIR_SEPS[] in nonposix.h.
6113         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
6114         of literal strings.
6116         * src/preproc/soelim/soelim.cc: #include nonposix.h.
6117         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
6119         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
6120         pic_tab.h.
6122         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
6124         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
6125         eqn_tab.h.
6127         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
6129         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
6130         P_tmpdir is defined, use it instead of the literal "/tmp".
6131         (remove_tmp_files, add_tmp_file): New functions.
6132         (xtmpfile): Record temporary files and register an atexit function
6133         to delete them explicitly, instead of relying on the OS to do
6134         that, which doesn't work on non-Unix systems.
6136         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
6137         (search_path::search_path): Use PATH_SEP instead of a literal
6138         colon.
6139         (search_path::command_line_dir): Ditto.
6140         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
6141         to support non-Posix systems.
6143         * src/libs/libbib/search.cc: #include nonposix.h.
6144         (search_list::add_file): Open the file in binary mode.
6146         * src/libs/libbib/linear.cc: #include nonposix.h.
6147         (file_buffer::load): Remove \r characters preceding \n from the
6148         loaded buffer.
6150         * src/libs/libbib/index.cc: #include nonposix.h.
6151         (make_index_search_item): Open index_filename in O_BINARY mode.
6152         (index_search_item_iterator::get_tag): Ditto.  Remove \r
6153         characters before \n characters.
6154         (index_search_item::check_files): Open files in binary mode.
6155         (index_search_item::munge_filename): Support DOS-style file names
6156         with backslashes and drive letters, use IS_ABSOLUTE.
6158         * src/devices/grops/ps.cc: #include nonposix.h.
6159         (main) [SET_BINARY]: Switch stdout to binary mode.
6161         * src/devices/grolj4/lj4.cc: #include nonposix.h.
6162         (main) [SET_BINARY]: Switch stdout to binary mode.
6164         * src/devices/grolbp/lbp.cc: #include nonposix.h
6165         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
6167         * src/devices/grodvi/dvi.cc: #include nonposix.h.
6168         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
6169         nonposix.h).
6170         (main) [SET_BINARY]: Switch stdout to binary mode.
6171         [_MSC_VER]: Remove an explicit call to _setmode.
6173         * src/include/nonposix.h: New file.
6175         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
6176         operation when building with DJGPP.
6177         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
6178         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
6179         ENVSETUP.
6181         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
6182         MS-DOS.
6183         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
6184         etc. can include a semi-colon on DOS/Windows.
6185         (depend.temp): Use depend1.temp instead of depend.temp1, to
6186         prevent files from overerwiting each other on 8+3 filesystems.
6188         * gendef.sh (t): Change definition to work with DOS/Windows.
6190         doc/groff.texinfo: Apart of some typo corrections, I also changed
6191         some index entris, to make them more non-ambiguous, and also put
6192         @ignore around some parts that are not yet written, to allow the
6193         Info output be readable.
6195 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
6197         Replaced specific checks for function declarations with a generic
6198         routine taken from GNU bfd.
6200         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
6201         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
6202         * configure.in: Use it.
6203         * src/devices/grolbp/lbp.cc, src/include/lib.h,
6204         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
6205         src/roff/groff/groff.cc: Use it.
6206         * Makefile.in, configure: Updated.
6208 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
6210         * src/devides/grolbp/lbp.h: Removed unused variables.
6212 2000-05-31  Keith Thompson  <kst@sdsc.edu>
6214         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
6215         strncasecmp().
6217 2000-05-31  Werner LEMBERG  <wl@gnu.org>
6219         * aclocal.m4 (GROFF_SRAND): New function to test the return value
6220         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
6221         * configure.in: Use it.
6222         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
6223         * configure, Makefile.in: Updated.
6225         * configure.in: Add test for strncasecmp().
6226         * src/include/lib.h: Use it.
6228 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
6230         * src/preproc/grn/Makefile.sub: Add MLIB.
6232 2000-05-29  Nix  <nix@esperi.demon.co.uk>
6234         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
6236 2000-05-29  Werner LEMBERG  <wl@gnu.org>
6238         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
6240         * PROBLEMS: Small update.
6242         * src/devices/grolbp/lbp.cc: Various small fixes.
6244 2000-05-28  Keith Thompson  <kst@sdsc.edu>
6246         * src/roff/nroff/nroff.sh: Fix main loop syntax.
6248         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
6250 2000-05-25  Werner LEMBERG  <wl@gnu.org>
6252         * man/roff.man: Removed unused macro.
6254 2000-05-24  Werner LEMBERG  <wl@gnu.org>
6256         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
6257         This is needed e.g. if you do
6258         `make distclean; ./configure; make dist'.
6260 Version 1.16 released
6261 =====================
6263 2000-05-23  Werner LEMBERG  <wl@gnu.org>
6265         Adding font CWI (constant width italic) to devdvi.
6267         * font/devdvi/CWI: New file.
6268         * font/devdvi/generate/Makefile: Add generating rule.
6269         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
6270         tmac/tmac.dvi: Use it.
6271         * NEWS: Announce it.
6273         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
6274         * font/devlj4/generate/Makefile: Cosmetic changes only.
6276         * man/groff.man: Removed most of the redundant description of
6277         special characters (which is in groff_char.man).  Added font
6278         translation CB->CR for devdvi.  Other minor fixes.
6280         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
6281         (registered) symbols.
6283 2000-05-22  Werner LEMBERG  <wl@gnu.org>
6285         * doc/Makefile: Added rule for creating info files.
6287         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
6288         AMS font metrics.
6289         * font/devdvi/generate/Makefile: Fixed dependencies.
6291         * font/devps/*: Regenerated.  Heavy changes for Bookman and
6292         NewCentury Schoolbook!
6293         * font/devps/generate/afmname: Will now run with GNU awk.
6294         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
6295         * font/devps/generate/Makefile: Cosmetic changes only.
6297 2000-05-21  Werner LEMBERG  <wl@gnu.org>
6299         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
6300         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
6301         `.SS' now produces a heading with a smaller size than `.SH'. 
6302         Completely formatted.
6303         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
6305         * man/groff.man: Improved table appearance.  Use of `eo' request
6306         to reduce number of doubled backslashes in macro definitions.
6307         Replacing `\e' with `\(rs'.  Other minor fixes.
6309         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
6310         to have correct line number.
6312         * INSTALL: Small improvement.
6314 2000-05-20  Bernd Warken  <bwarken@mayn.de>
6316         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
6317         WL).
6319 2000-05-19  Bernd Warken  <bwarken@mayn.de>
6321         * man/groff.man: Complete update (with a lot of corrections by WL).
6323 2000-05-18  Werner LEMBERG  <wl@gnu.org>
6325         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
6327         * font/*/*: Implement it.
6328         * man/groff_char.man, NEWS: Document it.
6330         * src/include/unix.h: Removed.  It isn't used.
6332         * doc/groff.texinfo: Slight improvements.
6334 2000-05-17  Werner LEMBERG  <wl@gnu.org>
6336         * README, win32-diffs: Small fixes and improvements.
6338 2000-05-16  Werner LEMBERG  <wl@gnu.org>
6340         * FDL: New file (the Free Documentation License version 1.1).
6342         * doc/groff.texinfo: Added many start-up values for gtroff.
6343         Some structural improvements of the source code.
6345 2000-05-15  Werner LEMBERG  <wl@gnu.org>
6347         * src/roff/troff/input.cc: Added small comment about troffrc-end.
6348         * src/roff/troff/troff.man: Added info about troffrc-end.
6350 2000-05-14  Werner LEMBERG  <wl@gnu.org>
6352         * Makefile.in (EXTRADIRS): Fix typos.
6353         (dist): Handle deletion of old .tar.gz file correctly.
6354         (DISTDIRS): Include all tty output devices.
6356         * doc/groff.texinfo: Adding more cross references; countless other
6357         fixes.
6359 2000-05-13  Werner LEMBERG  <wl@gnu.org>
6361         * MORE.STUFF: Added Robert Marks's utilities.
6363 2000-05-12  Werner LEMBERG  <wl@gnu.org>
6365         Added win32 port contributed by Blake McBride
6366         <blake@florida-software.com>.
6368         * README.WIN32, win32-diffs: New files.
6369         * NEWS: Updated.
6371         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
6372         (tmove, tmove2): Added parentheses to avoid compiler warnings.
6373         (change): Removed unused variables.
6375         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
6376         (savebounds): Changed return value from `int' to `void'.
6377         * src/preproc/grn/hdb.cc: Ditto.
6379         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
6380         final backslash in comment to avoid compiler warning.
6382         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
6384         * doc/groff.texinfo: More fixes.
6386 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
6388         * tmac/tmac.doc: Documentation fix.
6390 2000-05-11  Werner LEMBERG  <wl@gnu.org>
6392         * doc/groff.texinfo: Reading the source code shows up a lot of
6393         omissions and incorrect data...  More conversion to @Deffn macros.
6395 2000-05-10  Werner LEMBERG  <wl@gnu.org>
6397         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
6398         dependency.
6400         * src/roff/troff/request.h: Removing unused `no_break_flag'.
6402 2000-05-09  Werner LEMBERG  <wl@gnu.org>
6404         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
6405         improvements.
6407         * doc/groff.texinfo: Extended history section.  More conversion to
6408         @Deffn macros.  More .tr documentation.
6410 2000-05-07  Werner LEMBERG  <wl@gnu.org>
6412         * doc/groff.texinfo: Completed tab section.  Added info about
6413         fields.
6415 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
6417         * PROBLEMS: Describe configure script fix for OS/390 Unix.
6419 2000-05-05  Werner LEMBERG  <wl@gnu.org>
6421         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
6422         LaTeX 2e).
6423         * NEWS: Document it.
6425         * man/troff.man: Minor optical improvements.
6427 2000-05-03  Werner LEMBERG  <wl@gnu.org>
6429         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
6431         * font/*/*: Implement it.
6432         * man/groff_char.man, NEWS: Document it.
6434 2000-05-02  Werner LEMBERG  <wl@gnu.org>
6436         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
6437         expansion.
6438         * NEWS: Document the three new man pages.
6440         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
6441         * configure: Updated.
6443         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
6445 2000-05-01  Werner LEMBERG  <wl@gnu.org>
6447         Added grap support to grog.
6449         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
6450         * src/roff/grog/grog.man: Document it.
6452         * doc/groff.texinfo, NEWS: Add info about grap support.
6454         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
6455         (with slight fixes by me).
6457         * tmac/groff_tmac.man: New file documenting tmac mechanism.
6458         * tmac/Makefile.sub: Add groff_tmac.man.
6459         * man/roff.man: New file giving overview of roff system.
6460         * man/troff.man: A short reference of troff.
6461         * man/Makefile.sub: Add roff.man and troff.man.
6463 2000-04-30  Werner LEMBERG  <wl@gnu.org>
6465         Added grap support to groff.
6467         * src/roff/groff/groff.cc: Implement it.
6468         * src/roff/groff/groff.man: Document it.
6470         * src/devices/grotty/grotty.man: Add cp1047 device.
6471         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
6472         Ditto.
6473         * src/roff/groff/groff.man: Ditto.
6474         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
6475         * doc/groff.texinfo: Ditto.
6477         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
6478         for cp1047.
6480 2000-04-29  Werner LEMBERG  <wl@gnu.org>
6482         * man/groff_char.man: Add `pc' glyph.
6483         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
6484         * tmac/tmac.tty: Add `pc' glyph.
6485         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
6486         we use cp1047 output device.
6488         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
6489         there are still hardcoded latin1->unicode values in utf8's font
6490         definition files.
6491         * configure: Updated.
6492         * NEWS: Minor clarification.  Updated.
6494         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
6495         Unix.
6497 2000-04-28  Werner LEMBERG  <wl@gnu.org>
6499         Adding EBCDIC code page 1047.
6501         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
6502         font/devcp1047/DESC.proto: New files.
6504         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
6505         either ascii/latin1 or cp1047.
6506         * Makefile.in: Use it.
6507         * configure: Updated.
6509         Replacing and/or adding `md' (mathdot) glyph with `pc'
6510         (periodcentered) in all text fonts.
6512         * font/*/*: Change it.
6514 2000-04-27  Werner LEMBERG  <wl@gnu.org>
6516         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
6518         * configure.in: Add check for strings.h.
6519         * src/include/driver.h: Use HAVE_STRINGS_H.
6520         * src/devices/grolbp/lpb.cc: Remove string.h.
6522         * src/include/groff-getopt.h: New file.  It will be used instead of
6523         getopt.h (to be included in lib.h) to avoid endless problems with
6524         picky C++ compilers.
6525         * src/include/lib.h: Use groff-getopt.h.
6526         * src/include/Makefile.sub: Updated.
6528         * configure: Updated.
6529         * Makefile.in: Updated.
6531         * NEWS: Mention EBCDIC support.
6533 2000-04-26  Werner LEMBERG  <wl@gnu.org>
6535         * TODO: Some additions.
6537 2000-04-25  Werner LEMBERG  <wl@gnu.org>
6539         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
6540         of mso request.
6542 2000-04-23  Werner LEMBERG  <wl@gnu.org>
6544         * src/roff/troff/troff.man: Minor fixes.
6546 2000-04-22  Werner LEMBERG  <wl@gnu.org>
6548         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
6549         `.T' string register and the incompatible definition of the `.T'
6550         number register (compared to Unix troff).
6552         * man/groff_char.man: Add some missing characters.
6553         * font/devutf8/NOTES: Update.
6555 2000-04-21  Werner LEMBERG  <wl@gnu.org>
6557         * src/include/htmlindicate.h, src/include/lib.h,
6558         src/include/posix.h: Fix copyright.
6560         * src/include/Makefile.sub: Update.
6562 2000-04-20  Werner LEMBERG  <wl@gnu.org>
6564         * src/roff/troff/input.cc (input_char_description): Removing
6565         superfluous space char.
6567         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
6569         * doc/groff.texinfo: Document EBCDIC.
6571 2000-04-19  Werner LEMBERG  <wl@gnu.org>
6573         Introducing `shc' as the glyph name for the soft hyphen character.
6575         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
6576         font/devlatin1/R.proto: Use it.
6578         * NEWS: Updated.
6580 2000-04-18  Werner LEMBERG  <wl@gnu.org>
6582         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
6583         dependency on ASCII order.
6585 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
6587         * src/libs/libgroff/illegal.c: Added EBCDIC table.
6588         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
6590         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
6591         to increase portability.
6593 2000-04-15  Werner LEMBERG  <wl@gnu.org>
6595         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
6596         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
6597         the generic `\n' if under OS/390 Unix.
6599         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
6601         * configure: Regenerated.
6603 2000-04-14  Werner LEMBERG  <wl@gnu.org>
6605         * doc/groff.texinfo: More conversions to @Deffn.
6607 2000-04-12  Werner LEMBERG  <wl@gnu.org>
6609         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
6610         with `:'.
6612         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
6614 2000-04-10  Werner LEMBERG  <wl@gnu.org>
6616         * doc/groff.texinfo: More conversions to @Deffn.
6618 2000-04-08  Werner LEMBERG  <wl@gnu.org>
6620         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
6621         Updated to latest version (glibc 2.1.3).
6623 2000-04-07  Werner LEMBERG  <wl@gnu.org>
6625         * doc/Makefile (clean): Include more index files.
6626         Add rule texinfo->dvi.
6628 2000-04-05  Werner LEMBERG  <wl@gnu.org>
6630         * doc/groff.texinfo: Added new index `op' for operators.  More
6631         info on end of sentence characters.  More use of @Deffn.
6633 2000-03-30  Werner LEMBERG  <wl@gnu.org>
6635         * */*.man: Adding a note that a whitespace can be inserted between
6636         a command line option and its parameter -- we are using GNU getopt.
6638         * src/roff/groff/groff.man: Add example of `-m mandoc'.
6640 2000-03-28  Werner LEMBERG  <wl@gnu.org>
6642         Correct anachronism of calling the man macro file with `-man'
6643         instead of `-m man' etc.
6645         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
6646         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
6647         load tmac.<package>.
6649         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
6651         * NEWS: Updated.
6653         * doc/groff.texinfo: Updated.
6655         * tmac/groff_man.man: Copyright added.
6657 2000-03-27  Werner LEMBERG  <wl@gnu.org>
6659         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
6660         typeset the request resp. escape name with a tt font -- due to a
6661         bug in texinfo.tex it is necessary to use the `-e' switch with
6662         texi2dvi.
6664         Improving info about usage of groff units.
6666         Other minor fixes.
6668 2000-03-20  Werner LEMBERG  <wl@gnu.org>
6670         * doc/groff.texinfo: Added section about man macro package
6671         (I've basically taken groff_man.man).  Introducing new indices `ma'
6672         for macros/strings and `gl' for glyph names.  Other minor fixes.
6674         * tmac/groff_man.man: Fixed some typos.
6676 2000-03-19  Werner LEMBERG  <wl@gnu.org>
6678         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
6679         Other minor fixes.
6681         * doc/texinfo.tex: New file.
6683 2000-03-18  Werner LEMBERG  <wl@gnu.org>
6685         * doc/groff.texinfo: Improved section on number registers.  Other
6686         minor updates.
6688 2000-03-16  Werner LEMBERG  <wl@gnu.org>
6690         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
6691         synopsis.
6693         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
6694         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
6695         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
6696         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
6698         * src/preproc/grn/grn.man: Better synopsis; added copyright.
6700         * src/roff/grog/grog.man: Updated copyright date.
6702 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
6704         * configure.in: Added test for strdup.
6706         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
6707         is available.
6709         Replaced dynamic allocation of arrays `[...]' with `new' operator.
6711         Other minor fixes.
6713 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
6715         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
6717 2000-03-11  Werner LEMBERG  <wl@gnu.org>
6719         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
6720         compilers silent.
6721         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
6722         * src/include/lib.h: Remove some spaces.
6724 2000-03-10  Werner LEMBERG  <wl@gnu.org>
6726         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
6727         initializers from arguments (some compilers don't like this).
6729 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
6731         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
6732         used by pic and eqn to tell grohtml where the graphic regions start
6733         and end.
6734         * src/libs/libgroff/Makefile.sub: Use it.
6735         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
6736         graphic_start() and graphic_end() from htmlindicate.cc.
6738 2000-03-09  Werner LEMBERG  <wl@gnu.org>
6740         * tmac/tmac.safer: Will now work correctly in compatibility mode.
6741         * tmac/groff_man.man: More fixes.
6743 2000-03-08  Werner LEMBERG  <wl@gnu.org>
6745         * doc/Makefile: Added texput.log to the `clean' target.
6746         * doc/groff.texinfo: Added info about delimiters for escapes.
6748 2000-03-08  Bernd Warken  <bwarken@mayn.de>
6750         * src/preproc/pic/pic.man: Add info on conversion of pic images to
6751         other graphic formats.
6753 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
6755         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
6756         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
6757         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
6758         files.
6760 2000-03-07  Werner LEMBERG  <wl@gnu.org>
6762         * doc/groff.texinfo: Spelling fixes.
6764 2000-03-06  Werner LEMBERG  <wl@gnu.org>
6766         * tmac/groff_man.man: Completely revised to cover everything in
6767         tmac.an.
6769         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
6770         Other minor fixings.
6771         * src/roff/troff/env.cc (environment_copy): Improve error message and
6772         fix itoa->i_to_a.
6773         * src/roff/troff/TODO: Updated.
6775         * doc/Makefile: Bug fixes -- this is still provisional, though...
6777         * tmac/eqnrc: Small fixes.
6779 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
6781         Adding a request `evc' to copy environments.
6783         * src/roff/troff/env.cc (environment::copy, environment_copy):
6784         Implement it.
6785         * src/roff/troff/env.h: Add prototype.
6787 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
6789         Adding strsep() -- Solaris 8 doesn't have it.
6791         * configure.in: Test it.
6792         * src/devices/grolbp/lbp.cc: Add code.
6794 2000-03-05  Werner LEMBERG  <wl@gnu.org>
6796         * src/roff/troff/div.cc (macro_diversion::output,
6797         top_level_diversion::output): Fixing an incompatibility with
6798         original troff: \x'0' updates the .a register also.  Thanks to
6799         <Andries.Brouwer@cwi.nl> for pointing this out.
6800         * doc/groff.texinfo: Document it.
6802         * Makefile.in: Create Makefile.dep if necessary before calling the
6803         submake process to avoid warning about nonexistent file.
6805         * NEWS, PROJECTS: Updated.
6807 2000-03-04  Werner LEMBERG  <wl@gnu.org>
6809         * tmac/troffrc: Add tmac.lbp.
6811 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
6813         * tmac/tmac.lbp: New file.
6814         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
6815         command.
6817 2000-03-03  Werner LEMBERG  <wl@gnu.org>
6819         * Makefile.in: Fixing $(subdir).
6821         * README, NEWS: Small fixes.
6823         * test-groff: Adding path to grolbp.
6825         * configure.in: The (new) file src/xditview/Imakefile.in will be
6826         also configured -- it is now possible to build gxditview in a
6827         directory different from $srcdir.
6829 2000-03-02  Blake McBride  <blake@florida-software.com>
6831         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
6833         * MORE.STUFF: Added website of bell labs and info about plot2dev.
6835 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
6837         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
6838         files.
6840 2000-02-29  Werner LEMBERG  <wl@gnu.org>
6842         Adding GNU getopt to the groff distribution.
6844         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
6845         New files.
6846         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
6847         * aclocal.a4: Remove GROFF_GETOPT function.
6848         * configure.in, Makefile.in, PROBLEMS: Update.
6849         * src/include/lib.h: Replace getopt tests with getopt.h.
6850         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
6852         * doc/groff.texinfo: Further checking/updating.  Adding more index
6853         entries.
6855         * man/groff_out.man: Fix nroff mode activation (for emacs).
6856         * man/groff_font.man: Add missing ligature.
6858 2000-02-28  Werner LEMBERG  <wl@gnu.org>
6860         * doc/groff.texinfo: Further checking/updating.  Adding more index
6861         entries.
6863         * src/devices/grolbp/grolbp.man: Added a comment line at the
6864         beginning of the file (similar to shell scripts) which indicates
6865         that `tbl' should be used as a preprocessor.
6867 2000-02-27  Blake McBride  <blake@florida-software.com>
6869         Adapting groff to MS Visual C++ 6.0 compiler (tested with
6870         Windows NT 4.0).  Uses _MSC_VER define where necessary.
6872         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
6873         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
6874         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
6875         src/include/lib.h, src/libs/libgroff/errarg.cc,
6876         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
6877         src/preproc/refer/label.y, src/preproc/refer/label.cc,
6878         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
6879         src/roff/troff/div.cc, src/roff/troff/env.cc,
6880         src/roff/troff/input.cc, src/roff/troff/node.cc,
6881         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
6882         if_to_a() to avoid name clashes.
6883         * src/include/posix.h: Don't use unistd.h.
6884         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
6885         clause for integrating non-Unix xtmpfile() code.
6886         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
6887         structure; use "rt" for popen() in pipe_source(); add getpid()
6888         dummy function.
6889         * src/roff/troff/node.cc: Use special versions of popen() in
6890         real_output_file() and pclose() in ~real_output_file().
6892 2000-02-27  Werner LEMBERG  <wl@gnu.org>
6894         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
6895         LBP-8 series laser printers).  This code has been contributed by
6896         Francisco Andrés Verdú <pandres@dragonet.es>.
6898         * src/devices/grolbp/*: The grolbp output device.
6899         * font/devlpb/*: The font description files.
6900         * Makefile.in: Add grolpb and devlbp subdirectories.
6902         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
6903         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
6904         typographic fixes.
6906         * doc/groff.texinfo: Further checking/updating.  Adding more index
6907         entries.
6909         * NEWS: Updated.
6911         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
6913         * man/groff_font.man: Adding info about obsolete DESC keywords.
6914         * src/devices/grolj4/grolj4.man: Documenting additional DESC
6915         keywords.
6917 2000-02-26  Werner LEMBERG  <wl@gnu.org>
6919         * src/preproc/grn/grn.man: Added info about the gremlin file format
6920         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
6922 2000-02-25  Werner LEMBERG  <wl@gnu.org>
6924         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
6925         friends to be non-integer.
6927         * src/preproc/grn/grn.man: Document it.
6929         * doc/groff.texinfo: Further checking/updating.  Adding more index
6930         entries.
6932 2000-02-24  Werner LEMBERG  <wl@gnu.org>
6934         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
6935         line thicknesses to be integer multiples of this value.
6937         * src/preproc/grn/grn.man: Commenting out the -s option -- the
6938         corresponding code doesn't work (yet).
6940         * doc/groff.texinfo: Further checking/updating.  Adding more index
6941         entries.
6943 2000-02-23  Werner LEMBERG  <wl@gnu.org>
6945         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
6946         specify line thickness instead of base units.  The new default
6947         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
6948         thick lines respectively.
6950         Removed unused variable `prevval'.
6952         * src/preproc/grn/grn.man: Updated.
6954 2000-02-22  Werner LEMBERG  <wl@gnu.org>
6956         * src/preproc/grn/main.cc: Slight formatting.
6958         * src/roff/groff/groff.man: Formatting fix.
6959         * src/preproc/grn/grn.man: Ditto.
6961         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
6963         * doc/groff.texinfo: Further checking/updating.
6965 2000-02-21  Werner LEMBERG  <wl@gnu.org>
6967         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
6969         * test-groff: Added grn subdir to path.
6971         * doc/groff.texinfo: Some restructing and other small improvements.
6973         * src/roff/groff/groff.cc (help): Fixed info string.
6975 2000-02-20  Werner LEMBERG  <wl@gnu.org>
6977         * doc/meref.me: Fix description of .GS request.
6979         * src/roff/troff/troff.man: Fixing typo.
6981         Adding the `grn' preprocessor for gremlin graphic files.
6983         * src/preproc/grn/*: This is the Berkeley distribution written by
6984         David Slattengren and Barry Roitblat, adapted to groff by Daniel
6985         Senderowicz and Werner Lemberg.
6987         * doc/grnexampl.{me,g}: A sample for grn.
6989         * Makefile.in: Added subdirectory entry for grn.
6991         * src/roff/groff/groff.cc: Added support for grn.  It can be now
6992         called with the switch `-g'.
6994         * src/roff/groff/groff.man: Updated.
6996         * src/roff/grog/grog.{man,pl,sh}: Updated.
6998         * NEWS: Updated.
7000 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
7002         * src/include/lib.h: Added xtmptemplate and made xtmpfile
7003         parametrically polymorphic.
7005         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
7006         and the alterations to xtmpfile.
7007         xtmpfile can be requested to return the filename created
7008         and asked not to unlink the temp file.  The default behaviour
7009         if parameters are absent is exactly the same as before.
7011 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
7013         A new request `length' is available which returns the length of a
7014         string in a number register:
7016         * src/roff/troff/input.cc (length_macro): Implement it.
7017         * src/roff/troff/input.cc (init_input_requests): Register it.
7019 2000-02-11  Werner LEMBERG  <wl@gnu.org>
7021         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
7022         of the `substring' request.
7024         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
7025         request.
7027         * src/roff/troff/TODO, NEWS: Updated.
7029 2000-02-09  Werner LEMBERG  <wl@gnu.org>
7031         * src/roff/groff/groff.man: Added an example.
7033 2000-02-06  Werner LEMBERG  <wl@gnu.org>
7035         I've considerably modified the directory structure of the
7036         distribution to get a more vertical layout.  For example, the number
7037         of top level directories has been reduced from 42 to 6.
7039         As a consequence, many changes, especially to the makefiles, were
7040         necessary:
7042         * The makefile variables `top_builddir' and `top_srcdir' have been
7043         introduced.  Virtually all relative paths have been replaced with
7044         absolute ones using these two variables.
7046         * Dependencies (in the files `Makefile.dep') are no longer part of
7047         the distribution.  Instead, they are created during a `make install'
7048         in the build directory.
7050         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
7051         make `top_srcdir' and `top_builddir' absolute.
7053         Some other changes:
7055         * Man pages now depend on the files `VERSION' and `REVISION'.
7057         * The added shell script `mkinstalldirs' will replace `mkdir' in
7058         almost all cases.
7060         * VERSION: Version number increased to 1.16.
7062 2000-02-04  Werner LEMBERG  <wl@gnu.org>
7064         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
7066         * Makefile.in: Removed $(tmac_m) since it is no longer needed
7067         (after an update of the mm stuff).
7069         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
7071 2000-02-03  Werner LEMBERG  <wl@gnu.org>
7073         The .psbb request will now also accept Mac PS images (i.e. using LF
7074         as the EOL character).
7076         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
7077         (with slight modifications).
7078         * troff/input.cc (do_ps_file): Use it.
7080         * test-groff: Add grohtml and grolj4 output devices to PATH.
7082 2000-01-30  Werner LEMBERG  <wl@gnu.org>
7084         * NEWS, MORE.STUFF: Updated.
7086 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
7088         Add the `srand' command to pic.
7090         * pic/lex.cc, pic/pic.y: Implement it.
7091         * pic/pic.man: Document it.
7092         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
7094 2000-01-30  Werner LEMBERG  <wl@gnu.org>
7096         Add a new request `.psbb'.  This does exactly what the external
7097         program psbb did.  It scans a PostScript image file for a
7098         %%BoundingBox comment and extracts the bounding box values (in
7099         PostScript units) which are then stored in the four new (read-only)
7100         number registers `llx', `lly', `urx', and `ury'.
7102         This will allow the usage of the .PSPIC macro without worrying
7103         about unsafe behaviour of groff, i.e., it will work without the
7104         `-U' switch of groff.
7106         * troff/input.cc: Implement it.
7107         * tmac/tmac.pspic: Use it.
7108         * troff/troff.man, grops/grops.man, NEWS: Document it.
7109         * psbb/*, Makefile.in: Remove it since it is no longer needed.
7111         This is bloody C code simply adapted from psbb.c!  Any improvements
7112         welcome.
7114 2000-01-29  Werner LEMBERG  <wl@gnu.org>
7116         * man/groff_font.man: Minor clarifications.
7118         * NEWS: Updated.
7120 2000-01-28  Werner LEMBERG  <wl@gnu.org>
7122         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
7124 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
7126         * man/groff_font.man: Brought up to date regarding tcommand
7127         extensions.
7128         * libgroff/font.cc: Handle everything after `--' as a comment
7129         in the font files.
7130         * devps/*: Added comment delimiter inside devps font files.
7132 2000-01-28  Werner LEMBERG  <wl@gnu.org>
7134         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
7135         \fC...\fP (which now works as expected).
7137         * troff/troff.man: Fix typo.
7139 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
7141         Completed the pass_filenames implementation in troff.
7143         * libdriver/input.cc: Will read the new `F' tcommand.
7144         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
7145         * troff/input.cc: Use it.
7147 2000-01-26  Werner LEMBERG  <wl@gnu.org>
7149         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
7150         font will now be updated even if an invalid font is selected.
7152 2000-01-24  Werner LEMBERG  <wl@gnu.org>
7154         * doc/homepage.ms: Updated for new tmac.arkup.
7156         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
7158         * tmac/tmac.arkup: Cleanup.
7160         Added `\&' to .HTML macro to `leave vertical mode', so to say.
7162         Removed obsolete .LINK macro completely.
7164         The macros .URL, .FTP, and .MAILTO now accept a third argument which
7165         will be immediately appended to the second argument (to be used with
7166         punctuation, for example).
7168         Disabled .CDFTP macro temporarily for security reasons.
7170         * tmac/groff_markup.man: Complete revision for latest changes in
7171         tmac.arkup -- note that it does not yet format correctly with
7172         grohtml :-(
7174 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
7176         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
7177         * devutf8/R.proto: Add mappings for wp, lh, rh.
7178         * devutf8/NOTES: Updated.
7180 2000-01-23  Werner LEMBERG  <wl@gnu.org>
7182         * doc/groff.texinfo: Updated version/copyright info.
7184 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
7186         Added support for two new directives in device descriptions:
7187         `pass_filenames' (to pass the input file name to the output device)
7188         and `use_charnames_in_special' (to support e.g. accented characters
7189         in the `X' request).
7191         * include/font.h, troff/charinfo.h: Declare it.
7193         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
7195         * devhtml/DESC: Use it.
7197         * troff/input.cc: New function encoded_char.
7199         * troff/token.h: Add test for `specialness'.
7201 2000-01-21  Werner LEMBERG  <wl@gnu.org>
7203         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
7204         mistake from the list of files to be installed.
7206 2000-01-18  Werner LEMBERG  <wl@gnu.org>
7208         * README: Added info how to apply patches.
7210 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
7212         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
7214 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
7216         * troff/input.cc: Add support for troffrc-end.
7218         * tbl/main.cc: Altered to issue table-start and table-end special
7219         characters if using the html device.
7221         * devhtml/*: Modified font files to incorporate html encoding of
7222         characters.
7224         * tmac/groff_markup.man: New file documenting tmac.arkup.
7226         * tmac/troffrc-end: New file.  This is invoked after all user
7227         specified macros.  Currently used by the html device to include
7228         tmac.html.  Thus no need for users to specify -mhtml anymore.
7230         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
7231         (MAN7): Add groff_markup.man.
7233         * tmac/tmac.an, tmac/tmac.html: Small html updates.
7235         * tmac/troffrc: tmac.arkup will now be called for the html device.
7237         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
7238         extra device specific information about fonts.
7240         * doc/homepage.ms: New file.  It is an example how an HTML home page
7241         could look like with grohtml.
7243         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
7245 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
7247         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
7248         of Im, Re.
7250         * devutf8/NOTES: Updated.
7252 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
7254         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
7255         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
7256         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
7257         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
7258         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
7259         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
7260         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
7261         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
7262         warnings.
7264         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
7266 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
7268         grolj4: Paper size will be searched case-insensitively.
7270         * include/lib.h: Add check for strcasecmp().
7271         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
7272         * configure.in: Check for strcasecmp().
7274 2000-01-11  Werner LEMBERG  <wl@gnu.org>
7276         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
7277         `REVISION'.
7279 2000-01-10  Werner LEMBERG  <wl@gnu.org>
7281         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
7282         revision scheme.
7284         Add a new read-only register, `.Y', which contains the groff
7285         revision.
7287         * troff/input.cc (init_input_requests): Define it.
7288         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
7289         * doc/groff.texinfo, troff/troff.man: Document it.
7291         * libgroff/Makefile.sub (version.cc): Add definition of
7292         `Version_string[]', consisting of `<major>.<minor>.<revision>'
7293         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
7294         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
7295         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
7296         troff/input.cc, pfbtops/pfbtops.c: Use it.
7298 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
7300         Add a revision scheme to the groff package.
7302         * REVISION: New file.
7303         * libgroff/Makefile.sub (version.cc): Use it to define
7304         `revision_string[]'.
7305         * grops/psrm.cc: Use revision_string (converted to an unsigned
7306         integer) in constructor of resource_manager.
7308 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
7310         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
7311         files.
7312         * Makefile.in (DEVDIRS): Add devutf8.
7313         * grotty/tty.cc: Include device.h.
7314         (glyph): Change type of `code' to `unsigned int'.
7315         (tty_printer): New field is_utf8.  Constructor takes device argument.
7316         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
7317         (tty_printer::add_char): Change type of first arg to `unsigned int'.
7318         (tty_printer::put_char): New function.
7319         (tty_printer::end_page): Use put_char() instead of ::putchar().
7320         (make_printer): Pass device to tty_printer constructor.
7321         * nroff.sh: Determine default device by calling 'locale'.  As a
7322         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
7323         Recognize UTF-8 locales.
7324         * tmac/eqnrc: Recognize utf8 like latin1.
7325         * tmac/troffrc: Device utf8 needs tmac.tty.
7327 2000-01-07  Werner LEMBERG  <wl@gnu.org>
7329         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
7331 2000-01-07  Paul Eggert  <eggert@twinsun.com>
7333         Add a new predefined writeable number register, `year',
7334         which contains the current year.
7336         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
7337         * tmac/tmac.s: Use it.
7338         * troff/input.cc (init_registers): Initialize it.
7340 2000-01-06  Werner LEMBERG  <wl@gnu.org>
7342         * PROBLEMS: Fixed typo.
7344 2000-01-04  Paul Eggert  <eggert@twinsun.com>
7346         * PROBLEMS: Add Y2k advice for the yr number register.
7348 2000-01-03  Paul Eggert  <eggert@twinsun.com>
7350         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
7352 2000-01-02  Werner LEMBERG  <wl@gnu.org>
7354         * tmac/tmac.arkup: Slight modification of macros to provide better
7355         appearance for non-HTML formats.
7357 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
7359         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
7360         does not automatically translate to malloc(n) on all OSes
7361         (e.g., SunOS) so do it explicitly.  Also, check the returned
7362         value.
7364 2000-01-01  Werner LEMBERG  <wl@gnu.org>
7366         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
7368         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
7369         expects this variable
7371 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
7373         * doc/Makefile: Added instructions to create HTML and text
7374         versions of some files.
7376 1999-12-31  Werner LEMBERG  <wl@gnu.org>
7378         * Updated INSTALL.gen.
7380         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
7381         better resp. correctly with non-HTML devices.
7383 Version 1.15 released
7384 =====================
7386 1999-12-28  Werner LEMBERG  <wl@gnu.org>
7388         * NEWS, VERSION: Changed to 1.15
7390 1999-12-27  Paul Eggert  <eggert@twinsun.com>
7392         * nroff/nroff.man: -S is safer, not safe.
7394         * groff/groff.cc (main): Use `safer', not `safe', in variable
7395         names.  This does not change the behavior.
7397         * troff/input.cc (main): Likewise.
7399         * nroff/nroff.sh: Likewise.
7401         * troff/input.cc (prepend_string): New function.
7402         (main): Prepend -msafer, so that we check macro libraries for
7403         safety.
7405         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
7407 Version 1.14 released
7408 =====================
7410 1999-12-26  Werner LEMBERG  <wl@gnu.org>
7412         * NEWS, VERSION: Changed to 1.14.
7414 1999-12-24  Werner LEMBERG  <wl@gnu.org>
7416         * refer/refer.cc: Fixing the last fix.
7418 Version 1.13 released
7419 =====================
7421 1999-12-23  Werner LEMBERG  <wl@gnu.org>
7423         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
7424         number disappear.
7426         * NEWS: Updated.
7428         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
7430         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
7431         document conventions, the version number must be a real.
7433 Version 1.12.1 released
7434 =======================
7436 1999-12-22  Werner LEMBERG  <wl@gnu.org>
7438         * VERSION: Changed to 1.12.1.
7440 1999-12-22  Alan Rooks  <arooks@istar.ca>
7442         * refer/refer.cc (do_file): Slight modification to satisfy the
7443         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
7444         UnixWare 7.1.
7446 1999-12-20  Werner LEMBERG  <wl@gnu.org>
7448         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
7449         notices.
7451         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
7452         list of unsafe requests.
7454         * pic/pic.man: Fixed a typo.
7456         * man/groff_out.man: Fixed a typo.
7458 1999-12-18  Werner LEMBERG  <wl@gnu.org>
7460         * Makefile.in: Doc fixes.
7462 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
7464         * groff/groff.cc: Missing `U' option added to getopt().
7466         * troff/troff.man: Missing `U' option added to synopsis.
7468 Version 1.12 released
7469 =====================
7471 1999-12-14  Werner LEMBERG  <wl@gnu.org>
7473         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
7474         to the synopsis.
7476         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
7477         with the more appropriate terms `safer' and `unsafe'.
7479         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
7480         sys_nerr and sys_errlist[].
7482         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
7484         * pic/pic.y, pic/pic.cc: Added check for fmod().
7486 1999-12-13  Werner LEMBERG  <wl@gnu.org>
7488         * VERSION: Changed to 1.12.
7490         Here some patches from various sources; most of them taken from
7491         the Debian distribution.
7493         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
7494         tmac/Makefile.sub: New files copied directly from the NetBSD
7495         distribution.  Probably, some additional adaptation later on is
7496         necessary...
7498         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
7499         of unsafe requests.
7501         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
7502         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
7503         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
7504         (`-S') is now the default.
7506         * README, NEWS: Updated.
7508 1999-12-09  Werner LEMBERG  <wl@gnu.org>
7510         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
7512         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
7514 1999-12-06  Werner LEMBERG  <wl@gnu.org>
7516         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
7517         grief than relief today.  Additionally, it is against the GNU
7518         coding standards.
7520         * configure: Recreated.
7522 1999-12-05  Werner LEMBERG  <wl@gnu.org>
7524         * configure.in: Added GROFF_LIBM.
7526         * configure: Recreated.
7528         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
7529         necessary.
7531         * Makefile.in: Added definition of $(LIBM).
7533         * Makefile.comm (LIBM): Removed.
7535         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
7537 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
7539         * doc/Makefile: Added rule for generation pic.html.
7541         (clean): Files produced by grohtml will be removed also.
7543         * doc/pic.ms: Small fix.
7545         * tmac/tmac.html: Fixed suppression of headers.
7547 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
7549         * tmac/tmac.html: Fixing horizontal arrows.
7551         Turning off hyphenation.
7553         * tmac/tmac.an: Improved support for grohtml; better indentation,
7554         no footers/headers.
7556 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
7558         * tmac/tmac.arkup: Added CDFTP macro
7560         * tmac/tmac.html: All headers are turned off for ms, me, and mm
7561         macros.
7563         * tmac/troffrc: Some additions for HTML stuff.
7565 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
7567         * tmac/tmac.html: Small changes.
7569 1999-09-26  Werner LEMBERG  <wl@gnu.org>
7571         * doc/groff.texinfo: Minor fixes.
7573 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
7575         * devhtml/TR: Changed spacewidth to 3.
7577         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
7579         * tmac/tmac.html: Moved markup macros to tmap.arkup.
7581         * tmac/tmac.arkup: New file.
7583         * grohtml/ChangeLog: New file.
7585 1999-09-16  Werner LEMBERG  <wl@gnu.org>
7587         * doc/groff.texinfo (Common Features): Added Copying chapter.
7588         Changed format to @smallbook.
7590 1999-09-15  Werner LEMBERG  <wl@gnu.org>
7592         * NEWS: Added info about groff.texinfo.
7594         * doc/groff.texinfo: Will now compile (using texi2dvi) without
7595         warning messages.
7597 1999-09-14  Werner LEMBERG  <wl@gnu.org>
7599         * groff/groff.man: More updates.
7601 1999-09-13  Werner LEMBERG  <wl@gnu.org>
7603         * doc/groff.texinfo: New file.  This manual is still very
7604         rudimentary.  It has been originally contributed by Trent
7605         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
7606         additions by me.
7608         * INSTALL: Added information about the `doc' subdir
7610         * troff/troff.man: Minor fixes.
7612         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
7613         reordered options.
7615         * troff/input.cc (usage): Added missing `-ffam' to usage message.
7617         * Makefile.in (dist): groff-$(version).tar.gz must be removed
7618         also, otherwise it is included itself in another call of `make
7619         dist'.
7621         * groff/groff.cc (synopsis): Removed superfluous space.
7623         * PROJECTS, PROBLEMS, NEWS: Updated.
7625         * VERSION: Updated to 1.12beta.
7627         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
7629         * README: Updated: Included documentation about CVS repository,
7630         mailing lists, and daily snapshots.
7632         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
7634 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
7636         * tmac/tmac.an: If the tag didn't fit into the space that the
7637         macro `TP' specifies, the rest of the tag went into the space for
7638         the next line.
7640 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
7642         * grolj4/lj4.cc: Added duplex printing (option `-d').
7644         * grolj4/grolj4.man: Document duplex printing.
7646 1999-09-12  Werner LEMBERG  <wl@gnu.org>
7648         * doc/Makefile (pic.ps): Fixed rule which caused problems with
7649         non-GNUish sed programs.
7651         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
7652         definition.
7654         * configure.in (LIBS): Added `-lc'
7656         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
7658         * pic/tex.cc (solid_arc): Casting M_PI to double.
7660         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
7662         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
7663         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
7664         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
7666         * groff/groff_man.man: New file.  This manual page was originally
7667         written for the Debian GNU/Linux system by Susan G. Kleinmann
7668         <sgk@debian.org>.
7670         * eqn/list.cc (list_box::compute_metrics,
7671         list_box::compute_sublist_width): Removed variable declaration to
7672         avoid shadowing warnings.
7674         * grops/psrm.cc (resource_manager::process_file): Ditto.
7676         * tfmtodit/tfmtodit.cc (main): Ditto.
7678         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
7679         to avoid shadowing warnings.
7681         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
7682         shadowing loop variable.
7684         * groff/groff.man, troff/troff.man: Added doc about grohtml.
7686 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
7688         New grohtml frontend to convert groff input to html.
7690         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
7692         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
7694         * tmac/eqnrc: Added html device.
7696         * tmac/tmac.html: New file.
7698         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
7699         (troff_output::start_picture, troff_output::finish_picture),
7700         tbl/main.cc (process_input_file):
7701         Surrounded output with `graphics_start' and `graphics_end' so that
7702         the html driver can identify non-text portions.
7704         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
7705         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
7706         grotty/tty.ps (tty_printer::set_char): Additional parameter
7707         `name'.
7709         * include/printer.h: Class printer: New function
7710         set_char_and_width; new variables (is_char_named, is_named_set,
7711         named_command, named_char_s, named_char_n) to hold information
7712         about named characters -- needed by the html driver.
7714         * libdriver/printer.cc (printer::set_ascii_char,
7715         printer::set_special_char): Use set_char_and_width.
7717         * devhtml/*: New device files for html driver.
7719         * grohtml/*: New driver grohtml.
7721 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
7723         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
7724         default strings.
7726 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
7728         * libgroff/string.cc (search): Small fix to test against NULL
7729         pointer.
7731 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
7733         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
7734         \b'abc') were stacked in reverse order when processed in a
7735         diversion.
7737         * troff/node.h: Added `*last' to struct `node' to make the above
7738         fix work.
7740         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
7741         The default scale for the 'f' and 't' graphics functions were 'm'
7742         rather than 'u' (i.e., no scaling).
7744 1999-09-11  Peter Miller  <peterm@jna.com.au>
7746         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
7747         do_file), soelim/soelim.man: Added `-I file' option to soelim,
7748         defining include paths.
7750         * soelim/soelim.cc (include_path_append): New function.
7752 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
7754         * tbl/main.cc (process_options): Unix (at least Documenter's
7755         Workbench) tbl allows arbitrary non-alpha characters between
7756         options.
7758 1999-09-11  Paul Eggert  <eggert@twinsun.com>
7760         Y2k fixes.  Don't assume that the current year precedes 2000.
7762         * doc/meref.me: Add \n(y2, \n(y4.
7764         * tmac/doc-common (Yr): New number register.
7765         (Dd): Don't assume current year precedes 2000.
7767         * tmac/tmac.e (td): Likewise.
7768         (y2, y4): New number registers.
7770         * pic/pic.man: Update reference for pic paper to May, 1991
7771         version.
7773 1999-09-11  Werner LEMBERG  <wl@gnu.org>
7775         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
7776         Removed quotation marks which prevented correct expansion of
7777         $(tmac_wrap).
7779         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
7781 1999-09-10  Werner LEMBERG  <wl@gnu.org>
7783         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
7784         `config.cache'.
7786         * Removed configure.old.
7788 1999-08-31  Werner LEMBERG  <wl@gnu.org>
7790         * VERSION: Updated to 1.11.1
7792 1999-05-27  Werner LEMBERG  <wl@gnu.org>
7794         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
7796         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
7797         added quotations around $(tmac_wrap) to avoid syntax error if
7798         variable is empty.
7800         * configure: Newly generated using autoconf 2.13.
7802         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
7804 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
7806         * README, PROJECTS, NEWS, INSTALL, VERSION, 
7807         doc/Makefile. doc/pic.ms, groff/groff.man:
7808         Prepare for 1.11 release.  No code changes.
7809         Documentation for pic added (doc/pic.ms).
7811 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
7813         * Version 1.10 released.
7815 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
7817         * afmtodit/afmtodit.pl: Avoid comment on first line.
7819 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
7821         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
7822         * configure.in: Call it.
7824         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
7825         (distfiles): Doesn't depend on config.log or config.cache.
7827 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
7829         * grog/grog.sh: Use print "" rather than print in END rule.
7831 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
7833         * tbl/main.cc (process_data): Don't give error for excess data
7834         entries that are comments.
7836 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
7838         * tbl/main.cc (process_data): Fix case where new for-scope rules
7839         silently change meaning of code.
7841 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
7843         * troff/env.cc (hyphenate): Loop over all consecutive sequences
7844         of non-zero hyphenation codes.
7846 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
7848         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
7850 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
7852         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
7854 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
7856         * tmac/tmac.andoc: Make it work in compatibility mode.
7858         * refer/token.h (token_info::is_range_sep): New function.
7859         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
7860         * refer/ref.cc (reference::output): More sophisticated check for
7861         multiple pages.
7863         * devps/prologue.ps (MANUAL): New procedure.
7864         * grops/ps.cc (main): New -m option.
7865         (usage): Include -m.
7866         (ps_printer::~ps_printer): Implement -m.
7868         * aclocal.m4 (GROFF_G): New macro.
7869         * configure.in: Call it.
7870         * Makefile.in (g): Provided by configure.
7872         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
7874         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
7875         translations.
7877         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
7878         (tmac_m, tmac_s): Deleted.
7879         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
7880         tmac_s_prefix): New variables.
7881         (MDEFINES): Change accordingly.
7882         * Makefile.comm (.man.n): Use new TMAC_* variables.
7883         * configure.in (GROFF_TMAC): Call.
7884         * aclocal.m4 (GROFF_TMAC): Define.
7885         * tmac/Makefile.sub (stamp_wrap): New target.
7886         (install_data, uninstall_sub): Handle macro wrapping.
7888 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
7890         * tbl/main.cc (main): Ignore -T option.
7892 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
7894         * devlj4/generate/special.map: Add definition of \(nb.
7896         * tmac/tmac.dvi: Add definition of \(nb.
7898         * troff/dictionary.c (dictionary::dictionary): association::v gets
7899         initialized by association::association.
7901         * tmac/Makefile.sub: Avoid using temporary files when installing.
7903         * troff/env.cc (environment::set_font): Make bad font number a
7904         warning.
7906         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
7908         * Makefile.in (datadir): Use share rather than lib.
7910         * groff/groff.cc (basename): Rename to xbasename.
7912 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
7914         * Makefile (CCLIBS): Don't use.
7915         * Makefile.ccpg: Likewise.
7917         * acgroff.m4: Rename to...
7918         * aclocal.m4: Modify extensively for autoconf 2.
7919         * configure.in: Likewise.
7920         * Makefile.in: Likewise.
7922         * groff/pipeline.c (const): Declare as empty if __STDC__ not
7923         defined.
7924         (xstrsignal): Check for definition of NSIG. Conditionalize
7925         on SYS_SIGLIST_DECLARED.  Make return type const.
7927 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
7929         * troff/input.cc (interpolate_macro): Rephrase missing space
7930         warning.
7932 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
7934         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
7935         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
7936         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
7937         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
7938         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
7939         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
7940         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
7941         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
7942         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
7943         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
7944         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
7945         Fix 'for' scoping.
7947 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
7949         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
7950         string_iterator.
7951         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
7952         file.
7953         (macro_iterator::macro_iterator): Add additional argument.
7955 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
7957         * troff/div.cc (vertical_size::vertical_size): In place of integer
7958         specifying line spacing use cunits specifying post vertical
7959         space.
7960         (macro_diversion::output, top_level_diversion::output): Likewise.
7961         * troff/div.h: Change declarations accordingly.
7962         * troff/env.cc (pending_output_line): Replace ls field by post_vs
7963         field.
7964         (pending_output_line::pending_output_line,
7965         pending_output_line::output, environment::output,
7966         environment::output_line, environment::output_title,
7967         environment::hyphenate_line):  In place of
7968         integer specifying line spacing use cunits specifying post vertical
7969         space.
7970         (environment::environment): Add post_vertical_spacing and
7971         prev_post_vertical_spacing arguments.
7972         (environment::get_post_vertical_spacing): New function.
7973         (environment::total_post_vertical_spacing): New function.
7974         (environment::post_vertical_spacing): New function.
7975         (init_env_requests): Initialize pvs request and .pvs register.
7976         * troff/env.h: Change declarations.
7978 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
7980         * tmac/tmac.pspic: Immediately remove the temporary file.
7982 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
7984         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
7985         height is specified.
7987 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
7989         * tbl/table.c (struct vertical rule, class table_entry): Use int
7990         not short for start_row and end_row.
7992 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
7994         * troff/input.cc (trapping_blank_line, blank_line_macro): New
7995         functions.
7996         (diverted_space_node::reread, process_input_stack): Call
7997         trapping_blank_line() rather than blank_line().
7998         (init_input_requests): Bind "blm" to blank_line_macro().
8000         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
8002 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
8004         * troff/env.cc (environment::possibly_break_line): Require that
8005         width total excluding width of final space node be greater than
8006         the target text length.
8008 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
8010         * troff/node.cc (kern_pair_node::vertical_extent): New function.
8012 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
8014         * troff/node.cc (charinfo_node): New class.
8015         (glyph_node, composite_node): Derive from charinfo_node.  Change
8016         member functions accordingly.
8018 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
8020         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
8022 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
8024         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
8026         * devps/generate/textmap (notsubset): Add.
8028         * tmac/tmac.a4: New file.
8030 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
8032         * pic/main.cc (had_parse_error): New variable.
8033         (do_picture, do_whole_file): Set had_parse_error if yyparse()
8034         returns non-zero.
8035         (main): Return 1 if had_parse_error is true.
8037 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
8039         * grolj4/lj4.cc (main): Avoid use of strtoul.
8041 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
8043         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
8044         iso_8859_1 or $LESSCHARSET is latin1.
8046 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
8048         * hpftodit: New directory.
8049         * Makefile.in (CCPROGDIRS): Add hpftodit.
8050         * devlj4/generate: New directory.
8052 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
8054         * configure.in: Don't use AC_VFORK.
8055         * groff/pipeline.c (run_pipeline): Use fork() always.
8057 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
8059         * grops/ps.cc (main): Use %1 not %s in error message for -w.
8061         * Makefile.in (CCPROGDIRS): Add grolj4.
8062         (DEVDIRS): Add devlj4.
8063         * grolj4, devlj4: New directories.
8064         * tmac/troffrc: Handle lj4.
8065         * tmac/tmac.lj4: New file.
8067 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
8069         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
8071 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
8073         * troff/input.cc (do_if_request): At end of second string, switch
8074         environments before getting next token.
8076 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
8078         * devps/psstrip.sed: Split rule that strips whitespace on either
8079         side of delimiters.
8081 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
8083         * troff/node.h (font_family::make_definition): Add return value to
8084         declaration.  * troff/symbol.h (symbol::operator==,
8085         symbol::operator!=): Likewise.
8087 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
8089         * groff/groff.cc (main, help, synopsis): Handle -S.
8090         (possible_command::insert_arg): New function.
8092         * tmac/tmac.safer: New file.
8093         * tmac/msafer.man: New file.
8094         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
8096 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
8098         * pic/pic.h, pic/main.cc (safer_flag): New variable.
8099         * pic/pic.y (placeless_element): Avoid unsafe operations if
8100         `safer_flag' is set.
8101         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
8103 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
8105         * eqn/lex.cc (get_token): Put call to add_context() in block to
8106         work around Sun C++ 4.0 bug.
8108         * include/stringclass.h (operator +): Use ?: instead of `if' to
8109         work around Sun C++ 4.0 bug.
8111 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
8113         * tbl/main.cc (process_format): Accept - as a synonym for the _
8114         key letter.
8116         * libbib/index.cc (minus_one): Don't declare as const.
8118 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
8120         * troff/input.cc (get_char_for_escape_name): Push back a newline.
8122 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
8124         * troff/input.cc (write_macro_request): New function.
8125         (init_input_requests): Bind write_macro_request to writem.
8127 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
8129         * tmac/tmac.s (@EN): Turn filling back on even if there was no
8130         equation.
8132         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
8134         * tmac/tmac.s (@TS): Renamed from TS.
8135         (TS): Call LP then TS again.
8136         (cov*ab-init): Alias @TS to TS.
8138         * tmac/tmac.s: Allow QP or RS to initialize.
8140         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
8141         Move initializations of PS and LL here.
8142         (par@init): Don't initialize HY.  Avoid changing environment 0.
8143         (par*env-init): Don't all par@reset.
8145 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
8147         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
8149 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
8151         * Makefile.in (MDEFINES): Add LDFLAGS.
8152         (LDFLAGS): Add definition line.
8154 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
8156         * troff/input.cc (get_optional_char): Split off error check into...
8157         (check_missing_character): New function.
8158         * troff/token.h: Declare it.
8159         * troff/env.cc (margin_character): Don't call get_optional_char.
8160         Only call tok.next() after making the node.
8162         * include/lib.h (getopt): Make 2nd argument char *const *.
8164 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
8166         * nroff/conftest.sh: Deleted.
8168 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
8170         * pic/make-dos-dist: Deleted.
8172 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
8174         * devps/psstrip.sed: Strip comments before stripping trailing
8175         white space.
8177 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
8179         * Version 1.09 released.
8181 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
8183         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
8185 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
8187         * libgroff/font.cc (font::load_desc): Fix typo in error message.
8189 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
8191         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
8192         about returning without a value.
8194         * troff/charinfo.h (charinfo::get_special_translation): Cast
8195         TRANSLATE_NONE to int.
8197         * refer/token.cc (lookup_token, store_token): Remove bogus loop
8198         test.  Fix test so that it works with n unsigned.
8200         * pic/pic.y (defaults_table): Fully bracket initializer.
8201         * pic/lex.cc (lookup_keyword): Likewise.
8202         * eqn/lex.cc (token_table, def_table): Likewise.
8203         * eqn/box.cc (param_table): Likewise.
8204         * troff/input.cc (warning_table): Likewise.
8205         * libgroff/font.cc (table): Likewise.
8206         * grops/ps.cc (ps_printer::special): Likewise.
8207         * grops/psrm.cc (resource_manager::process_file): Likewise.
8208         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
8209         * refer/command.cc (command_table): Likewise.
8210         * addftinfo/addftinfo.cc (param_table): Likewise.
8212         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
8213         about temp's being unused.
8214         (unused): New function.
8216         * groff/pipeline.cc: Declare c_fatal.
8218         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
8219         uchar.
8221         * libbib/index.cc (index_search_item::load): Prevent compiler
8222         warnings about fd_closer's being unused.
8223         (unused): New function.
8225 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
8227         * troff/input.cc (copy_mode_error): Make `prefix' static.
8228         Fix typo.
8230         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
8231         defined.
8232         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
8233         HAVE_CC_OSFCN_H and modify accordingly.
8235         * troff/input.cc (init_charset_table): radicalex overlaps
8236         horizontally.
8238         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
8239         udodo!hans@relay.NL.net).
8240         * groff/configure.in: Call it.
8242         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
8243         * groff/configure.in: Call it.
8244         * include/lib.h: Conditionalize declaration of pclose.
8246         * troff/div.cc (last_page_number): New global variable.
8247         (top_level_diversion::begin_page): Exit if we just printed the
8248         last page.
8249         * troff/div.h (last_page_number): Declare it.
8250         * troff/input.cc (parse_output_page_list): Set last_page_number.
8252         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
8253         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
8254         tmac/tmac.X: Likewise.
8255         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
8256         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
8258 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
8260         * tmac/doc-ditroff (hK): Remove groff specific code which
8261         prevented page-breaks between separate manual entries.  If this is
8262         the first page, don't set the page number to 1.
8264         * acgroff.m4 (GROFF_POSIX): New macro.
8265         * configure.in: Use it.
8267         * troff/node.cc (class real_output_file,
8268         real_output_file::real_output_file,
8269         real_output_file::~real_output_file): Conditionalize use of
8270         popen/pclose on POPEN_MISSING.
8271         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
8272         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
8273         (pipe_source): Similarily.
8275         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
8277         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
8278         presence of declarations by trying to compile example with
8279         conflicting declarations.  (gcc only gives a warning for missing
8280         declarations.)
8282 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
8284         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
8285         (from Ulrich Lauther).
8287 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
8289         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
8291 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
8293         * indxbib/indxbib.cc (write_hash_table): Add code for case where
8294         pointers and ints have different sizes.
8296 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
8298         * tmac/tmac.s (par*env-init): Call par@reset.
8300 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
8302         * tmac/tmac.s (@IP): Switch to a new environment when diverting
8303         tag.
8304         (par*push-tag-env, par*pop-tag-env): New macros.
8306 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
8308         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
8309         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
8311         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
8312         comment.  Include <time.h>.
8314 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
8316         * grops/ps.cc (is_small_h, is_small_v): Deleted.
8317         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
8318         lines.
8320 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
8322         * troff/input.cc (read_request): Only print a prompt if reading
8323         from the terminal.  Also clearerr on EOF if reading from the
8324         terminal.  Declare isatty.
8326 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
8328         * refer/label.y: Rename map_t to map_func and extractor_t to
8329         extractor_func.
8331 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
8333         * include/assert.h: Don't use volatile.
8334         * libgroff/assert.cc: Likewise.
8336 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
8338         * troff/input.cc (abort_request): Look at character in tok before
8339         calling get_copy().
8341 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
8343         * troff/troff.h (NO_RETURN): Deleted.
8344         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
8345         * troff/input.cc (exit_troff): Likewise
8347         * Makefile.in: Remove `Making ...' messages since GNU make now
8348         gives these. 
8350         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
8352 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
8354         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
8355         to constant 1 inch.
8357 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
8359         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
8361 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
8363         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
8364         MARK_REG if there was no left delimiter.
8366 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
8368         * pic/troff.cc (troff_output::text): Set line thickness to
8369         relative before outputting text.
8371         * tmac/tmac.e (@k): Don't zero ?T.
8372         ((z): Likewise.
8374 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
8376         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
8378 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
8380         * troff/input.cc (decode_args): Warn about unquoted tabs (from
8381         Paul Eggert).
8383 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
8385         * troff/input.cc (ignoring): New variable.
8386         (ignore): Set ignoring during call to do_define_macro.
8387         (do_define_macro): Clear ignoring before interpolating terminating
8388         macro.
8389         (copy_mode_error): New function.
8390         (get_char_for_escape_name, read_long_escape_name,
8391         interpolate_arg): Use copy_mode_error.
8392         (warning_table): Add WARN_IG.
8393         * troff/troff.h (WARN_IG): Declare.
8394         (WARN_TOTAL): Change accordingly.
8396         * groff/pipeline.c (strsignal): Rename to xstrsignal.
8397         * groff/groff.cc (strsignal): Delete declaration.
8399 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
8401         * troff/div.cc (page_offset): Use 'm' as default scaling.
8403 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
8405         * nroff/nroff.sh: Ignore -u.
8407 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
8409         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
8411 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
8413         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
8414         drawing box.
8415         (B2): With -Tascii, leave additional vertical space before
8416         and after. Ensure that the left and right indent is restored to
8417         what it was even if the point size changes.  Don't call
8418         par@finish. Change the indent, line length and title length
8419         directly.  With -Tascii, make the width of the box 1n less.
8420         (B1): Remember 1n at the current point size.  Don't call
8421         par@reset.  Change the indent, line length and title length
8422         directly.  Ensure that the temporary indent is preserved.
8423         (par*box-mark-top): Turn off no spacing mode.
8425 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
8427         * Makefile.in (dist): Use .gz suffix.
8429 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
8431         * troff/input.cc (main): Add return 0.
8432         * pic/main.cc (main): Use return instead of exit.
8433         * tbl/main.cc (main): Likewise.
8434         * eqn/main.cc (main): Likewise.
8435         * grops/ps.cc (main): Likewise.
8436         * grotty/tty.cc (main): Likewise.
8437         * groff/groff.cc (main): Likewise.
8438         * grodvi/dvi.cc (main): Likewise.
8439         * refer/refer.cc (main): Likewise.
8440         * indxbib/indxbib.cc (main): Likewise.
8441         * lkbib/lkbib.cc (main): Likewise.
8442         * soelim/soelim.cc (main): Likewise.
8443         * addftinfo/addftinfo.cc (main): Likewise.
8444         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
8445         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
8447         * troff/token.h (process_input_stack): Don't declare as static.
8448         * troff/input.cc: Likewise.
8450         * troff/node.c (invalidate_fontno): Make it a static member of
8451         class font_family.  Change callers.
8452         * troff/node.c: Change declaration.
8454         * tbl/main.cc (struct input_entry_format): Add explicit public
8455         specifier.
8456         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
8457         struct double_hline_stuff): Likewise.
8458         * tbl/table.h (struct entry_format): Likewise.
8459         * pic/object.h (struct saved_state): Likewise.
8461         * include/stringclass.h: Add forward declarations of friend
8462         functions that are later declared as inline.  Don't include inline
8463         specifier in friend declaration.
8465         * libgroff/lib.h: Declare popen and pclose.
8466         * acgroff.m4 (GROFF_POPEN): New macro.
8467         * configure.in: Call it.
8469         * include/lib.h (PI): New constant. Undef first if necessary.
8470         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
8471         * grops/ps.cc (degrees, radians): Likewise.
8472         * libgroff/font.cc (font::get_skew): Likewise.
8474         * grops/ps.cc (is_ascii): New function.
8475         (ps_output::put_string): Use is_ascii.  Use csprint rather than
8476         isprint.
8477         (ps_printer::define_encoding): Use csspace.
8478         * libgroff/strtol.c (ISASCII): New macro.
8479         (strtol): Cast arguments to is*() and tolower() to unsigned char.
8480         Use ISASCII rather than isascii.
8481         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
8482         * libgroff/cset.cc: Likewise.
8483         * libdriver/input.cc: Include cset.h.
8484         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
8485         than isdigit().
8487         * refer/refer.cc (main): Use %ld rather than %d for longs.
8489         * libbib/index.cc (index_search_item_iterator::get_tag): Use
8490         S_ISREG macro.
8492         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
8494 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
8496         * troff/input.cc (hyphenation_code): Skip white space between
8497         char/code pairs.
8499 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
8501         * tbl/table.h (table::entry_list_tailp): New member.
8502         (table::table): Initialize it.
8503         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
8504         behaviour.
8506 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
8508         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
8509         with negative horizontal positions. Remove casts of glyph::hpos to
8510         int.
8511         (USHRT_MAX): Delete definition.
8512         (SHRT_MAX, SHRT_MIN): New definitions.
8513         (glyph::hpos): Change type to short.
8514         (tty_printer::end_page): Output multiple backspaces if necessary.
8515          Remove casts of glyph::hpos to int.
8516         
8517 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
8519         * tmac/tmac.s (@RT): New definition.
8521 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
8523         * refer/refer.cc (do_file): Make sure current_filename is set when
8524         filename is "-".
8526         * pic/common.cc (common_output::dot_line): Handle zero length
8527         lines.
8529 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
8531         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
8532         (par@init): Initialize \n[HY].
8534 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
8536         * troff/dictionary.cc (dictionary::remove): Continue when
8537         r < j < i.
8539 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
8541         * Makefile.com (.y.cc): Avoid ending up with two versions of
8542         $(YTABH).
8544 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
8546         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
8547         (\(,C): Likewise.  Also fix typo.
8549 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
8551         * lib.h: Delete extraneous semi-colon.
8553         * Add pso request: `so' from a pipe.
8554         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
8555         (file_iterator::close): New function.
8556         (file_iterator::~file_iterator, file_iterator::next_file): Use
8557         file_iterator::close.
8558         (file_iterator::backtrace): Say `process' rather than `file' when
8559         the stream is popened.
8560         (pipe_source): New function.
8561         (init_input_requests): Bind ".pso" to pipe_source.
8563 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
8565         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
8567         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
8568         digits in lower case.
8570 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
8572         * Version 1.08 released.
8574         * Makefile.in (dist): Insert || true after ln -s commands that
8575         might fail.
8577         * mm: Update to mm 1.16.
8579         * acgroff.m4 (GROFF_CSH_HACK): New macro.
8580         * configure.in: Call GROFF_CSH_HACK.  Substitute for
8581         SH_SCRIPT_SED_CMD.
8582         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
8583         MDEFINES.
8584         * nroff/Makefile.sub (nroff): New target.
8585         (install_data): Install nroff.
8586         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
8587         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
8589 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
8591         * eqn/Makefile.sub (neqn): Add chmod +x.
8593         * grog/Makefile.sub (grog): Remove spurious semi-colon.
8595 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
8597         * troff/input.cc (string_iterator::string_iterator()): Initialize
8598         lineno and count.
8600 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
8602         * troff/div.cc (macro_diversion::space,
8603         top_level_diversion::space): Don't set high_water_mark.
8604         (macro_diversion::output, top_level_diversion::output): Don't
8605         include post line space in high water mark.
8607 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
8609         * eqn/eqn.y: Don't define YYDEBUG.
8610         * pic/pic.y: Likewise.
8612 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
8614         * tmac/tmac.e ([3): Add space after comma following editors.
8615         Change double spaces to single spaces.
8616         ([4): Change double spaces to single spaces.
8618         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
8619         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
8620         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
8621         after %!PS-Adobe- (for Newsprint).
8623         * troff/div.cc (top_level_diversion::begin_page): When
8624         before_first_page is 1, set page_number to 1.
8626 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
8628         * eqn/box.cc (box::top_level): Protect equation with \&.
8630 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
8632         * groff/groff.cc (possible_command::set_name): Delete old name.
8634         * groff/groff.cc (possible_command::~possible_command): Use
8635         a_delete.
8637         * troff/node.cc (troff_output_file::begun_page): New member.
8638         (troff_output_file::troff_output_file): Initialize it.
8639         (troff_output_file::really_begin_page): Only output V command if a
8640         page has been begun.
8642         * pic/pic.y (placeless_element): Delete argument to PRINT after
8643         use.
8645 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
8647         * Make wrapman work.
8648         * troff/div.h (class top_level_diversion): Replace
8649         first_page_begun by before_first_page (with opposite sense).
8650         * Change first_page_begun to before_first_page inverting sense.
8651         * troff/div.cc (class nl_reg): New class.
8652         (init_div_requests): Use class nl_reg for \n(nl.
8653         (top_level_diversion::begin_page): Don't call
8654         output_file::begin_page if before_first_page is 2;
8655         reset before_first_page afterwards.  If have_next_page_number is
8656         false, then always increment page_number.
8657         * tmac/tmac.an: Set traps within TH rather than at the top-level.
8658         Restore compatibility mode after loading, and then disable
8659         compatibility mode in TH.
8661 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
8663         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
8664         past last line.
8665         * troff/node.h (output_file::trailer): Declare.
8666         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
8667         * troff/node.cc (output_file::trailer): New function.
8668         (troff_output_file::~troff_output_file): Move most code into...
8669         (troff_output_file::trailer): New function.
8670         (class troff_output_file): Delete page_length member. Declare
8671         trailer().
8672         (troff_output_file::really_begin_page): Use current page length
8673         for final V command.
8675         * tbl/main.cc (struct options): New decimal_point_char member.
8676         (options::options): Initialize this.
8677         (process_options): Implement decimalpoint option.
8678         (process_data): Pass decimal_point_char option to table::table.
8679         * tbl/table.h (class table): New decimal_point_char member.
8680         (table::table): Add additional argument.
8681         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
8682         second argument specifying decimal point character.  Use this
8683         instead of '.'.
8684         (table::table): Initialize decimal_point_char.
8685         (table::add_entry): Change call to find_dot.
8687         * troff/input.cc (get_copy, token::next): Implement \V.
8688         (interpolate_environment_variable): New function.
8690 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
8692         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
8693         * pic/pic.y: Likewise.
8695         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
8696         Add casts to int.
8697         * refer/ref.cc (reference::insert_field, reference::delete_field):
8698         Likewise.
8699         * troff/number.cc (parse_term): Likewise.
8701         * acgroff.m4 (GROFF_PROG_YACC): New macro.
8702         * configure.in: Use GROFF_PROG_YACC.
8704         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
8705         and g++.
8706         * Makefile.in (OPTIMIZE): New define.
8707         (DEBUG): Empty by default.
8708         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
8710         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
8711         (GROFF_ARRAY_DELETE): Likewise.
8712         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
8714         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
8716         * devps/psstrip.sed: Use different delimiter on last line (so that
8717         it works with BSD 4.4 sed.)
8719 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
8721         * devps/psstrip.sed: Delete comments.
8723         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
8724         optind, opterr, optarg.
8725         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
8726         opterr, optarg.
8728 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
8730         * Makefile.in (check): Dummy target.
8732 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
8734         * Version 1.07 released.
8736         * Integrate mm 1.11.
8738         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
8739         where start_col was meant.
8741 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
8743         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
8745 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
8747         * troff/input.cc (token::next): Make \z\o'...' and similar things
8748         work.
8750         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
8751         constants.
8752         (environment): Add margin_character_flags member.
8753         * env.cc (environment::environment(symbol),
8754         environment::environment(const environment *): Initialize
8755         margin_character_flags.
8756         (margin_character): Rewrite.
8757         (environment::output_line): Add a margin character if
8758         margin_character_flags is non-zero.  Turn off the
8759         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
8760         zero, use margin_character_node without copying and then set
8761         margin_character_node to 0.
8763         * devps/DESC.in: Change minimum size to 1000.
8765 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
8767         * troff/symbol.h (symbol::hash): Change return type to unsigned
8768         long.
8769         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
8770         Add casts to int.
8772         * test-groff: Use -r rather than -x.
8774         * grops/psfig.diff: Include in distribution again.
8776 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
8778         * Makefile.in (dist): Use gzip.
8780 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
8782         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
8783         unistd.h as well as in stdlib.h.
8784         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
8785         defined; otherwise include <sys/types.h> and <unistd.h> if
8786         UNISTD_H_DECLARES_GETOPT is defined.
8788         * configure.in: use builtin(include, ... rather than include(...
8789         * configure: Regenerate with autoconf 1.3.
8791         * libdriver/print.cc (printer::adjust_arc_center): Use new
8792         algorithm suggested by Andy Fyfe.
8794         * libdriver/printer.cc (printer::adjust_arc_center): New function.
8795         * include/printer.h: Declare this.
8796         * grops/ps.cc (ps_printer::draw): Use it.
8797         * grodvi/dvi.cc (dvi_printer::draw): Use it.
8799 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
8801         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
8803 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
8805         * eqn/main.cc (main): Handle "eqn -".
8807 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
8809         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
8811         * mm: Integrate version 1.08.
8813         * pic/troff.cc (troff_output::finish_picture): Set
8814         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
8815         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
8816         if it's not defined. Check whether the register is non-zero rather
8817         than whether it's not defined.
8818         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
8820         * indxbib/indxbib.cc: Move all signal handling into...
8821         * indxbib/signal.c: New file.
8822         * configure.in: Call AC_RETSIGTYPE.
8824         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
8825         * configure.in: Call GROFF_STRUCT_EXCEPTION.
8826         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
8828         * troff/input.cc (token::token, token::operator=): Work round SGI
8829         C++ bug.
8830         * pic/object.cc (position::position): Likewise.
8832 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
8834         * pic/pic.h: Move declaration of hypot().
8836 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
8838         * pic/pic.h: Declare hypot().
8840         * pic/pic.h: Define M_PI if necessary.
8842 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
8844         * tmac/tmac.e (re): Add alternative version that doesn't use groff
8845         `.ta T' feature.
8847         * devps/prologue.ps (RE): Handle the possibility that the old font
8848         doesn't have a FontName entry.
8850 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
8852         * tmac/tmac.e (fam): Redefine to set family in environment 2.
8853         (@C): Use @fam not fam.
8855 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
8857         * lookbib/lookbib.cc (main): Change type of start to const char *.
8858         * lkbib/lkbib.cc (main): Likewise.
8860         * eqn/lex.cc (definition::definition): Don't use member
8861         initializer syntax for members of anonymous unions.
8863         * troff/input.cc (input_stack::backtrace): Change type of to const
8864         char *.
8866 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
8868         * include/stringclass.h (class string): Declare inline friend
8869         functions as inline in class declaration.
8870         * troff/hvunits.h (class hunits, class vunits): Likewise.
8871         * include/refid.h (class reference_id): Likewise
8872         * troff/troff.h (points_to_units(units), scale(units, double)):
8873         Delete declarations.
8874         * libdriver/input.cc (get_char): Delete declaration.
8875         * include/lib.h: Change 2nd argument of getopt from const char **
8876         to char **.
8877         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
8878         char **' before assigning to a `const char **'.
8879         * tbl/table.cc: Delete extra declarations of prints().
8881 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
8883         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
8884         char **' before assigning to a `const char **'.
8886         * libgroff/errarg.cc (errarg::errarg): Don't use member
8887         initializer syntax for members of anonymous unions.
8889 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
8891         * mm: Integrate version 1.07.
8893 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
8895         * troff/input.c (translate2): Rename to
8896         (translate_no_transparent).
8897         (init_input_requests): Rename tr2 to trnt.
8899 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
8901         * troff/charinfo.h (class charinfo): Add transparent_translate field.
8902         (charinfo::set_translation, charinfo::set_special_translation):
8903         Add second argument that specifies value for
8904         transparent_translate.
8905         (charinfo::get_translation, charinfo::get_special_translation):
8906         Add optional second argument that specifies whether translation is
8907         being used for transparent throughput.
8908         * troff/input.cc (charinfo::set_translation,
8909         charinfo::set_special_translation): Handle second argument.
8910         (charinfo::charinfo): Initialize transparent_translate.
8911         (translate): Split main part off into
8912         (do_translate): New function.  Pass argument saying whether
8913         translation applies to transparent throughput.
8914         (translate2): New request.
8915         (init_input_requests): Bind translate2 to `tr2'.
8917 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
8919         * tbl/table.h (class table): Add `nokeep' flag.
8920         * tbl/main.cc (process_options): Handle `nokeep' option.
8921         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
8922         table::do_bottom): Don't output keep/release macro definitions or
8923         calls when `nokeep' option has been specified.
8925 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
8927         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
8929 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
8931         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
8932         block_entry::divert, alphabetic_block_entry::divert): Add extra
8933         argument giving column separation.
8934         (table::compute_widths): Pass column separation to
8935         table_entry::divert().
8936         (block_entry::do_divert): If an entry spans multiple columns and a
8937         minimumum width has been specified for each column, then set the
8938         line length to the sum of the widths (plus possibly the column
8939         separations).
8941         * troff/input.cc (set_escape_char): Don't set the escape_char
8942         until after calling has_arg().
8944 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
8946         * tbl/table.cc (table::do_top): Add missing \s0 for double box
8947         case.
8949         * tbl/table.cc (table::print_double_hline): Avoid extra new line
8950         in case where r > nrows - 1.
8952         * tbl/table.cc (BODY_HEIGHT): Deleted.
8953         (LINE_SEP): New definition.
8954         (table::print_single_hline, table::print_double_hline,
8955         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
8956         table::do_row, table::do_top): Use LINE_SEP space before a line
8957         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
8959         * tbl/table.cc (text_entry::print_contents): New function.
8960         (text_string_name, right_text_string_name): Deleted.
8961         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
8962         (simple_text_entry::do_width, numeric_text_entry::do_width,
8963         alphabetic_text_entry::do_width): Don't store the contents of the
8964         entry in a string.
8965         (left_text_entry::simple_print, right_text_entry::simple_print,
8966         center_text_entry::simple_print,
8967         alphabetic_text_entry::simple_print,
8968         numeric_text_entry::simple_print): Print the entry directly
8969         instead of using the stored string.
8971 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
8973         * devps/Makefile: Strip PostScript files.
8974         * devps/prologue: Rename to...
8975         * devps/prologue.ps.
8976         * devps/psstrip.sed: New file.
8977         * devps/download: Use .pfa rather than .ps for installed versions
8978         of fonts.
8980 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
8982         * troff/env.cc (input_trap): Give a warning if the argument is out
8983         of range.
8985         * troff/env.cc (adjust): Treat negative argument as missing. Round
8986         argument > 5 down to 5.
8988         * troff/env.cc (center, right_justify): Make negative argument zero.
8990         * troff/div.cc (page_offset, vertical_position_traps): Treat
8991         invalid argument as missing.
8992         * troff/env.cc (line_spacing, line_length, title_length, indent,
8993         underline, hyphen_line_max_request, control_char,
8994         no_break_control_char, widow_control_request, adjust, input_trap,
8995         point_size): Likewise.
8996         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
8997         constant_space): Likewise.
8998         * troff/input.cc (compatible, shift, warn_request,
8999         set_escape_char): Likewise.
9001         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
9002         * tbl/table.cc (table::table): Likewise.
9004         * Makefile.dev (install_dev): depends on $(DEVFILES).
9006 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
9008         * devX75, devX75-12, devX100, devX100-12: New directories.
9009         * Makefile.in: Add these to DEVDIRS.
9011         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
9012         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
9013         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
9014         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
9015         targets.
9016         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
9017         (uninstall): New target.
9018         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
9019         uninstall_prog, uninstall_dev): New targets.
9021         * troff/div.cc (return_request): Treat an invalid argument as
9022         missing.
9024 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
9026         * tmac/tmac.e ((f): Set up the environment even when there's a
9027         current diversion.  Transperently throughput a call to @N.
9028         (@N): New macro.
9030 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
9032         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
9033         up to vertical resolution.
9035         * tbl/table.cc (table::do_row): Change row number after printing
9036         stuff list.
9038         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
9040 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
9042         * Rename CHANGES to NEWS.
9044 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
9046         * libgroff/new.cc (operator new): Avoid calling malloc(0).
9048 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
9050         * man.ultrix: Removed.
9052 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
9054         * Makefile.comm (extraclean): Delete files whose names begin with
9055         `='.
9057         * pic/troff.cc (troff_output::text): Fix typo in implementation of
9058         aligned text.
9060 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
9062         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
9063         * troff/div.cc (page_length, need_space, space_request): Treat
9064         invalid optional argument as missing.
9065         * troff/env.cc (number_lines): If the first argument is present
9066         but not a number, turn on line numbering, don't change the next
9067         line number and parse the remaining arguments.
9069         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
9071 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
9073         * eqn/box.h: Change declaration accordingly.
9074         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
9075         the specified size was bad but don't give an error.  Check for
9076         overflow.
9077         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
9078         * eqn/lex (do_size): Likewise.
9080 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
9082         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
9083         compatible headers.
9085 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
9087         * tbl/table.cc (table::init_output): Improve error message when
9088         table won't fit on one page.
9090 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
9092         * pic/troff.cc (troff_output::start_picture): Generate line
9093         containing a horizontal motion equal to the width of the picture.
9095         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
9096         using GROFF_COMMAND_PREFIX environment variable.
9098 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
9100         * mdate.sh: Use $NF rather than $(NF).
9102 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
9104         * pic/main.cc (main):  Use %1 not %c in argument to warning.
9106         * eqn/main.cc (main): Output code to check that geqn was given the
9107         correct -T option.
9109 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
9111         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
9112         `ln -s ../Makefile .; make; rm -f Makefile'.
9114         * troff/hyphen: Rename to...
9115         * troff/hyphen.us:
9116         * troff/input.cc (main): Delete -H option. Don't call
9117         read_hyphen_file().
9118         * troff/env.cc: Include searchpath.h and macropath.h.
9119         (exception_dictionary): Deleted.
9120         (ht): Deleted.
9121         (read_hyphen_file): Deleted.
9122         (hyphenation_language): New struct.
9123         (class trie, class hyphen_trie): Move declarations up.
9124         (trie_node::~trie_node): Deleted.
9125         (trie::delete_trie_node): New function.
9126         (trie::do_delete): New pure virtual function.
9127         (hyphen_trie::do_delete): New function.
9128         (trie::~trie): New function.
9129         (hyphen_trie::~hyphen_trie): New function.
9130         (trie::clear): No need to chcek that tp is not 0.
9131         (current_language, language_dictionary): New variables.
9132         (hyphen_word): Give an error if no current language.  Use
9133         exceptions dictionary in current language.
9134         (hyphen_trie::read_patterns_file): Find file using macro_path.
9135         Allow comments (starting with %) in patterns file.  Don't make it
9136         a fatal error if the file can't be found.
9137         (hyphenate): Return if no current language.  Get the exceptions
9138         dictionary and the hyphenation patterns from the current language.
9139         (set_hyphenation_language): New variable.
9140         (hyphenation_patterns_file): New function.
9141         (hyphenation_language_reg): New class.
9142         (hyphenation_language_reg::get_string): New function.
9143         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
9144         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
9145         register.
9146         * groff/groff.cc (main, help, synopsis): Delete -H option.
9147         * include/Makefile.sub: Don't define HYPHENFILE.
9148         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
9149         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
9150         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
9151         hyphenation patterns.
9153 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
9155         * eqn/neqn.sh: New file.
9156         * eqn/Makefile.sub: Handle neqn.sh.
9158         * eqn/eqn.h: Declare `nroff' variable.
9159         * eqn/box.cc (param_table): Add `nroff' param.
9160         (nroff): Define it.
9161         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
9162         variable.
9163         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
9165         * troff/troff.h (WARN_FONT): New warning.
9166         (WARN_TOTAL): Change accordingly.
9167         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
9168         (warning_table): Add WARN_FONT.
9169         * troff/node.cc (mount_font_no_translate): Pass argument to
9170         font::load_font.  If this is non-zero, give a warning.
9171         Don't give an error message when accessing a font that has already
9172         been found to be invalid.
9173         * include/font.h (font::load, font::load_font): Add additional
9174         optional argument which suppresses error message if the font is
9175         not found.
9176         * libgroff/font.cc (font::load_font): Handle additional argument.
9177         (font::load): Add additional argument. If this is non-null, set it
9178         to 1 and don't give error message.
9180         * include/printer.h (printer::end_page): Add argument giving
9181         length of page.
9182         * libdriver/input.cc (do_file): Pass this.
9183         * grops/ps.cc (ps_printer::end_page): Add argument.
9184         * grodvi/dvi.cc (dvi_printer::end_page,
9185         draw_dvi_printer::end_page): Add argument.
9186         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
9187         columns_per_page members. New member nlines.
9188         (DEFAULT_LINES_PER_PAGE): Deleted.
9189         (tty_printer::tty_printer): Don't compute lines_per_page from
9190         font::paperlength. Don't compute columns_per_page from
9191         font::paperwidth.
9192         (tty_printer::add_char): Don't check horizontal position against
9193         columns_per_page. Grow glyphs vector if neccessary.
9194         (tty_printer::end_page): Add argument giving page_length in units.
9195         Discard lines past end of page.
9197 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
9199         * tmac/tmac.tty-char: Fix definition of \(/l.
9201         * tmac/tmac.X: Define \(en.
9203 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
9205         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
9206         lpq, then use lp rather than lpr.
9208         * tmac/tmac.s (par@reset): Don't call `ad'.
9209         (par*env-init): Call `ad'.
9211 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
9213         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
9214         date.
9216         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
9217         * indxbib/indxbib.cc: Likewise.
9219 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
9221         * libgroff/putenv.c: New file.
9222         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
9223         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
9224         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
9225         stdlib.h with AC_HAVE_HEADERS.
9227 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
9229         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
9230         does not exist.
9232 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
9234         * eqn/box.cc (gsize): Make it an int.
9235         (set_gsize): Parse argument handling increment or decrement.
9236         (box::top_level): Convert gsize to a string.
9238         * troff/input.cc (exit_troff): Make buf unsigned char [].
9239         Call to make_temp_iterator casts buf to char*.
9241         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
9243         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
9244         * Makefile.cpg (depend.temp): Likewise.
9246         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
9248         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
9250 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
9252         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
9254 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
9256         * Version 1.06 released.
9258         * Integrate mm 1.04.
9260 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
9262         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
9264 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
9266         * afmtodit/afmtodit.pl: Add -n option that disables generation of
9267         ligatures command.
9268         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
9269         afmtodit. Regenerate.
9271         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
9272         @f back past the current position.
9274         * tmac/tmac.e: Change calls to @R so that comments are not part of
9275         arguments.
9277 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
9279         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
9281         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
9282         check that we can link a call to a function declared in <stdio.h>.
9283         (GROFF_UNISTD_H): New macro.
9284         * configure.in: Call it.
9285         * Makefile.in: Document it.
9286         * include/posix.h: New file.
9287         * troff/troff.h: Don't include <osfcn.h>
9288         * troff/input.cc: Include posix.h.
9289         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
9290         osfcn.h.
9291         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
9292         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
9293         <fcntl.h>.
9294         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
9295         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
9296         * libbib/search.cc (O_RDONLY): Delete definition.
9297         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
9298         Don't include <osfcn.h>.
9300         * acgroff.m4 (GROFF_TIME_T): New macro.
9301         * configure.in: Call it.
9302         * Makefile.in: Document it.
9304         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
9305         * configure.in: Call it.
9306         * Makefile.in: Document -DTRADITIONAL_CPP.
9307         * include/ptable.h: Don't include generic.h.
9308         (name2): Define it.
9310         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
9311         Afterwards remove [T1 and [T2.
9312         (ref*spec!0, ref*spec!2): Use T1 rather than T.
9313         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
9314         (ref*add-T2): Renamed from ref*add-T.
9315         (ref*add-T1): New macro.
9317 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
9319         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
9321         * libbib/index.cc: Include <fcntl.h>.
9322         (O_RDONLY): Define if necessary.
9323         (make_index_search_item, index_search_item_iterator::get_tag,
9324         index_search_item::check_files): Use O_RDONLY.
9325         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
9326         (O_RDONLY): Define if necessary.
9327         (search_list::add_file): Use O_RDONLY.
9328         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
9329         <sys/stat.h>.
9330         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
9331         (main): Use these.
9333         * libbib/index.cc (S_ISREG): Define it if necessary.
9334         (index_search_item::load): Use S_ISREG.
9336         * include/driver.h: Include <errno.h>.
9338 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
9340         * eqn/box.cc (body_height): Increase default value to 85.
9341         (body_depth): Increase default value to 35.
9343 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
9345         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
9346         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
9347         protected from expansion with \E.
9349         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
9351         * Makefile (Makefile): New target.
9353         * Makefile.sub (configure, distfiles): New targets.
9355         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
9356         construct.
9358 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
9360         * eqn/box.cc (param_table): Add body_height and body_depth.
9362         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
9364 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
9366         * psbb/Makefile.sub: Don't link with libgroff.a.
9368         * acgroff.m4 (GROFF_PUTENV): New macro.
9369         * configure.in: Call GROFF_PUTENV.
9370         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
9371         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
9372         is defined.
9374         * troff/env.cc (distribute_space): Rename force_forward argument
9375         to force_reverse.  Reverse the list if force_reverse is true.
9377 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
9379         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
9381         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
9382         height or depth to be negative.  Guard against SUP_RAISE quantity
9383         being negative.
9385 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
9387         * devps/generate/textmap: Add `an' (arrowhorizex).
9388         * tmac/tmac.ps: \(an overlaps horizontally.
9389         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
9391         * devps/symbolchars: Add arrowverttp, arrowvertbt.
9392         * devps/textmap: Add arrowvertex.
9393         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
9394         updownarrow delimiters.
9395         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
9397         * tbl/table.cc (simple_entry::position_vertically,
9398         block_entry::position_vertically):  For a centered entry, perform
9399         the motion in two stages.
9401         * refer/refer.cc (split_punct): Don't call lookup_token if there
9402         is no token.
9404 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
9406         * troff/input.cc (token::next): Delete token_node after copying
9407         token.
9409         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
9410         cur_point_size.
9412         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
9414         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
9416 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
9418         * grops/ps.cc (usage): -b option takes an argument.
9420         * devps/prologue (PLG): New procedure.
9421         * grops/ps.cc (main, usage): New -g option.
9422         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
9423         length using PLG.
9425 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
9427         * include/cset.h: Include <limits.h> if we have it.
9429         * libgroff/illegal.cc: New file.
9430         * include/lib.h (illegal_input_char): Use table.
9431         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
9432         * pic/lex.cc (ARG1): Renumber to 14.
9433         * eqn/lex.cc (ARG1: Likewise.
9435         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
9436         (eg 1.05.90) correctly.
9438 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
9440         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
9441         Rename $r and $R registers to $v and $V.
9442         ($r, $R): Initialize to 0.
9443         (@v, @V): New macros.
9444         (sz): Call @v.
9445         (@M): Call @V.
9447         * troff/input.cc (main, usage): Add -R option that says not to
9448         load troffrc.
9449         * eqn/main.cc (main, usage): Rename -n to -R.
9451 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
9453         * devps/DESC.in: Leave font positions 5-9 blank.
9454         * devdvi/DESC.in: Likewise.
9456         * grog/grog.pl: Handle `.PS <file' correctly.
9458         * troff/input.cc (input_stack::push): Improve error message when
9459         input stack limit exceeded.
9461 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
9463         * refer/refer.cc (main): Fix typo in handling of `a' option.
9465         * refer/refer.cc (do_bib): In state START after a newline remain
9466         in state START.
9468         * groff/groff.sh: Deleted.
9469         * groff/Makefile.sub: Delete handling of groff.sh.
9471         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
9472         to determine whether to use \X'ps:...'.
9473         * tmac/troffrc: Set 0p register to 0.
9474         * tmac/tmac.ps: Set 0p register to 1.
9476         * groff/groff.cc: Support -X option. Give warning for -TXps and
9477         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
9478         * tmac/troffrc: Support -r.X=1.
9480         * pic/troff.cc (troff_output::dot): Don't test
9481         zero_length_line_flag.
9483 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
9485         * include/lib.h: Declare getopt() and friends unless
9486         STDLIB_H_DECLARES_GETOPT is defined.
9488         * doc/chars.tr: Delete.
9489         * man/groff_char.man: New file.
9491 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
9493         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
9494         user has changed register format.
9496 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
9498         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
9499         `postpro' command in DESC file.  Get spooler command from `print'
9500         command in DESC file.  Execute spooler command with /bin/sh.
9502         * groff/groff.cc: Split Unix-specific parts into...
9503         * groff/pipeline.c: New file.
9505         * LICENSE: Delete.
9506         * COPYING: New file.
9507         * all files: Update copyright notices.
9509         * Rearrange files.  Redo Makefiles.  Use autoconf.
9511 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
9513         * troff/input.c (charinfo_to_node_list): Interpret character
9514         definition with escape_char of `\'.
9516 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
9518         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
9519         Define INT_DIGITS as big enough for 64-bit integer.
9520         * lib/strtol.c: Don't include lib.h.
9521         * lib/lib.h: Delete ifdef __cplusplus stuff.
9523 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
9525         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
9526         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
9527         get DESC from current directory.
9529 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
9531         * tbl/main.c (main): Always reset the line number when reading
9532         from stdin.
9534         * tbl/table.c (table::print_single_hline, table::print_double_hline,
9535         table::define_bottom_macro, table::do_row, table::do_top): Round
9536         vertical spacing up to vertical resolution.
9538 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
9540         * ps/ps.h (enum resource_type): Avoid comma at end of
9541         enumerator-list.
9542         * dvi/dvi.c (class dvi_printer): Likewise.
9543         * dvi/tfmtodit.c (gf::load): Likewise.
9544         * refer/label.y (struct expression): Likewise.
9545         * refer/refer.c (class label_processing_state): Likewise.
9546         * refer/indxbib.c (do_file): Likewise.
9547         * troff/troff.c (enum warning_type): Likewise.
9548         * tbl/main.c (process_data): Likewise.
9549         * troff/charinfo.h (class charinfo):
9551 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
9553         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
9555 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
9557         * groff.c: Move to new groff subdirectory.
9558         * groff/Makefile: New file.
9559         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
9561         * man/mdate.sh: Use ls -L if supported.
9563         * Consolidate all header files produced by gendef into lib/defs.h.
9564         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
9565         Don't include path.h.
9566         * lib/Makefile (path.h): Don't generate.
9567         * troff/input.c: Include defs.h. Don't include config.h.
9568         * troff/Makefile (config.h): Don't generate.
9569         * refer/index.h: Don't include suffix.h.
9570         * refer/index.c: Include defs.h.
9571         * refer/indxbib.c: Include defs.h.
9572         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
9573         defs.h.
9574         * refer/Makefile (suffix.h, path.h): Don't generate.
9575         * groff.c: Don't include config.h. Include defs.h.
9576         * Makefile (config.h): Don't generate.
9577         (lib/defs.h): Generate.
9578         (topclean): Remove lib/defs.h.
9580 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
9582         * lib/malloc.c, lib/getpagesize.h: Deleted.
9583         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
9584         related stuff.
9585         * lib/Makefile: Delete malloc-related stuff.
9586         * lib/new.c: Workaround COOKIE_BUG if necessary.
9588         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
9589         needed header files directly.
9590         * refer/refer.h: Omit definition of DEFAULT_INDEX.
9591         * Makefile: Include definition of DEFAULT_INDEX in path.h.
9593 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
9595         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
9596         argument.
9597         * lib/font (font::load_desc, font::load): Don't split argument of
9598         unknown command.
9599         (font::handle_unknown_font_command): Change type.
9600         * ps/ps.c (ps_font::handle_unknown_font_command,
9601         handle_unknown_desc_command): Change type.
9602         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
9604 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
9606         * lib/font.h (font::handle_unknown_font_command): Add file and
9607         line arguments.
9608         * lib/font.c (font::handle_unknown_font_command):
9609         * ps/ps.c (ps_font::handle_unknown_font_command):
9610         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
9611         lineno arguments.  Use _with_file_and_line functions for error
9612         reporting.
9614         * lib/fontfile.c (font::unknown_desc_command_handler): New static
9615         data member.
9616         * lib/font.c (font::set_unknown_desc_command_handler): New
9617         function.
9618         (font::load_desc): For unknown commands, call
9619         unknown_desc_command_handler if not null.
9620         * lib/font.h (class font): Declare them.
9621         (FONT_COMMAND_HANDLER): New typedef.
9622         * ps/ps.c (handle_unknown_desc_command): New function.
9623         (main): Set bflag if we had a -b option. Call
9624         font::set_unknown_desc_command_handler.
9625         (broken.h): Don't include.
9626         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
9627         submake 
9628         * ps/devps/Makefile: Add `broken' command to DESC file using
9629         BROKEN_SPOOLER_FLAGS.
9631         * macros/tmac.e ([, ]): Add as synonyms for { and }.
9633         * macros/tmac.e ($p): Only exdent if \$3 > 0.
9635         * macros/tmac.e (@R, @S): New macros.
9636         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
9637         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
9638         Declare $H, $[0-9], .. macros with @S.
9639         Declare |0, |1, |2, |3 strings with @S.
9641         * macros/tmac.e (@S): Rename to @U.
9643         * macros/tmac.e (@z): Define @b and bp as empty instead of
9644         deleting them,
9646         * macros/tmac.e (@m): Deleted.
9647         (@h): Don't call @m.
9648         (@z): Don't set @m trap.
9650         * macros/tmac.e ($h, $f): Define |z as empty string.
9652         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
9653         (@q): Likewise.
9655         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
9656         removing them.
9657         ()f): Likewise for * register.
9659         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
9660         argument is missing, don't change $R.  Call sr with three
9661         arguments when initializing.
9663 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
9665         * macros/tmac.e (sr): New macro.
9666         Initialize $r and $R using sr.
9668         * macros/tmac.e (,): Delete \*(#[.
9670         * troff/env.c (set_tabs): Read the tab type even if the position
9671         is bad.  Allow the position of the first tab stop to be negative.
9673 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
9675         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
9676         _POSIX_VERSION.
9677         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
9678         rather than -DPATHCONF_MISSING.
9679         * Makefile: Get rid of PATHCONF_MISSING.
9681         * refer/map.c: New file.
9682         * refer/index.c: Interface to mmap through map.c.  Rename map_size
9683         to map_len.
9684         * refer/Makefile: Handle map.c.
9685         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
9687 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
9689         * Makefile: RANLIB should be `true' if there is no ranlib.
9690         * lib/Makefile (libgroff.a): Simplify.
9691         * driver/Makefile (libdriver.a): Simplify.
9693         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
9694         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
9695         defined.
9697 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
9699         * troff/env.c (compare_ranges): Declare as extern "C".
9701         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
9703         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
9705 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
9707         * pic/troff.c (troff_output::text): Merge in grops_output::text,
9708         but conditionalize use of \X based on \*(.T.
9709         (grops_output::*): Deleted.
9710         * pic/output.h: Delete declaration of make_grops_output.
9711         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
9712         by default. -n sets it to 0.
9713         (usage): Corresponding changes.
9714         * groff.c (main): Don't pass -x or -p to pic.
9715         * groff.sh: Likewise.
9717         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
9718         to be non-zero.
9720         * ps/devps/afmtodit: Change calculation of asc_boundary and
9721         desc_boundary.  Make these bounds inclusive.
9722         * ps/devps: Regenerate font files.
9724 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
9726         * macros/tmac.latin1: New file.
9727         * macros/tmac.tty-char: Use tmac.latin1.
9728         (tmac.tty-tr): Deleted.
9729         * macros/Makefile: Install tmac.latin1.
9730         * macros/tmac.dvi: Use tmac.latin1.
9731         * macros/troffrc: Translate \[char160] onto no-break space here.
9732         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
9734 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
9736         * macros/tmac.Xps: Use `do' request.
9738         * macros/tmac.ps: Use `do' request.
9740         * macros/tmac.e (@C): Use `do' request.
9742         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
9743         * macros/Makefile: Install tmac.X*.
9745         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
9746         * tty/Makefile: Don't install tmac.tty*.
9747         * macros/Makefile: Install tmac.tty*.
9749         * dvi/tmac.dvi: Move to macros.
9750         * dvi/Makefile: Don't install tmac.dvi.
9751         * macros/Makefile: Install tmac.dvi.
9753         * ps/tmac.ps*: Move to macros.
9754         * ps/Makefile: Don't install tmac.ps*.
9755         * macros/Makefile: Install tmac.ps*.
9757         * eqn/box.c: Provide draw_lines parameter corresponding to -D
9758         option.
9759         * macros/eqnrc: Set draw_lines parameter based on device.
9760         * groff.c: Don't pass -D flag to eqn.
9761         * groff.sh: Likewise.
9762         * eqn/main.c: Warn about use of -D.
9764         * troff/input.c (process_startup_file): New function.
9765         (main): Call process_startup_file().
9766         * macros/troffrc: New file.
9767         * macros/Makefile: Install troffrc.
9768         * groff.c (main): Don't pass extra -m option to troff. For a 
9769         pseudo device pass the name of the pseudo device to troff using
9770         -d.
9771         * groff.sh: Likewise.
9772         * groff.c (possible_command::prepend_arg): Deleted.
9774         * troff/input.c (do_request): New function.
9775         (init_input_requests): Bind "do" to do_request.
9777         * eqn/main.c (main): Instead of loading eqnchar from device directory,
9778         load eqnrc from macro directory.
9779         * macros/eqnrc: New file.
9780         * macros/Makefile: Install eqnrc.
9781         * ps/devps/eqnchar: Deleted.
9782         * ps/devps/Makefile: Don't install eqnchar.
9783         * dvi/devdvi/eqnchar: Deleted.
9784         * dvi/devdvi/Makefile: Don't install eqnchar.
9785         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
9786         variable optM.
9788         * lib/device.[ch]: New files.
9789         * lib/font.h (font::set_device_name, font::get_device_name):
9790         Deleted.
9791         * lib/fontfile.c: Use device.h.
9792         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
9793         * troff/input.c: Delete definition of `device'.
9794         (main): Don't initialize device.
9795         * troff/troff.h: Include device.h rather than declaring device.
9796         * troff/Makefile: No need to handle DEVICE.
9797         * driver/input.c: Include device.h. Don't use
9798         font::{set,get}_device_name.
9799         * groff.c, Makefile: Rename device.h to config.h.
9800         * groff.c: Use library device variable.
9801         * eqn/main.c: Use library device variable.
9802         * eqn/Makefile: No need to handle DEVICE.
9804         * lib/searchpath.[ch]: New files.
9805         * lib/Makefile: Handle searchpath.[ch].
9806         * troff/input.c (open_file, init_dirs): Deleted.
9807         (macro_dirs): Deleted.
9808         (open_mac_file, macro_source): Use class search_path.
9809         (add_string, struct string_list): Move definition.
9810         (main): Change -M option to use macro_path. Delete call to
9811         init_dirs().
9812         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
9813         Rewrite to use class search_path.
9814         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
9815         * lib/Makefile: fontfile.c depends on searchpath.h.
9816         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
9817         MACROPATH.
9818         * lib/macropath.[ch]: New files.
9819         * troff/Makefile: No need to handle MACROPATH.
9821         * troff/input.c: Delete DUMP code.
9822         * lib/fontfile.c, lib/font.h: Delete
9823         font::forget_command_line_font_dirs.
9825         * troff/input.c (push_token): New function.
9826         (handle_first_page_transition): Use push_token().
9827         (process_input_stack): Change handling of a space at the beginning
9828         of the line.
9830 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
9832         * troff/input.c (font_dirs): Delete unused variable.
9834         * eqn/lex.c (do_set): Correct error messages.
9836 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
9838         * troff/input.c (do_define_string): Allow the string name to be
9839         followed immediately by a tab.
9840         (define_character): Likewise.
9842 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
9844         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
9845         be negative.
9847         * troff/input.c (input_iterator::is_file): New virtual function.
9848         (file_iterator::is_file): New function.
9849         (input_stack::end_file): New function.
9850         (input_stack::next_file): Handle the situation where there is no
9851         file on the input stack correctly.  Avoid making two passes over
9852         the input stack.
9853         (next_file): Make the filename optional; in this case call
9854         input_stack::end_file().
9856 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
9858         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
9859         produce a real _ charater when the current font is CW and _
9860         otherwise.
9862         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
9863         expression to work around gcc 2.2 bug.
9865 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
9867         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
9869         * troff/env.c (environment::add_padding): New function.
9870         (environment::add_char): Use add_padding().
9871         (environment::space): Likewise.
9872         (environment::wrap_up_field): Add some padding if there is none
9873         and there's no current tab.
9874         * troff/env.h: Declare environment::add_padding.
9876 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
9878         * pic/pic.y: undef fmod and rand before declaring them.
9880 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
9882         * troff/input.c (main): If the DESC file specifies a font name of
9883         0, then leave the corresponding font position empty.
9885         * nroff.sh: New file.
9886         * Makefile (install.nobin): Install nroff.sh.
9888         * tty/devlatin1/R.proto: Add ao as synonym for de.
9889         * tty/tmac.tty-char: Define ao as o.
9891         * tty/dev{ascii,latin1}/R.proto: Add aq.
9892         * tty/tmac.tty-char: Delete definition of aq.
9894 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
9896         * troff/input.c (init_charset_table): Don't translate 0240.
9897         * ps/tmac.ps: Translate char160 to space.
9898         * dvi/tmac.dvi: Likewise.
9899         * tty/tmac.tty: Likewise.
9901 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
9903         * dvi/tmac.dvi: Add support for all Latin-1 characters.
9905         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
9906         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
9907         \(oe, \(r?, \(r!.
9909         * tty/tmac.tty-char: Add \(ah.
9911         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
9912         No need to define \(FM and \(!/. Conditionalize all character
9913         definitions.
9915         * ps/devps/lgreekmap: Add +h, +f, +p.
9917         * ps/tmac.psnew: New file.
9918         * ps/Makefile: Install tmac.psnew.
9920         * troff/input.c (charinfo_to_node_list): Don't ever interpret
9921         character definitions in compatible mode.
9923         * troff/input.c (remove_character): New function.
9924         (init_input_requests): Bind remove_character to "rchar".
9926         * ps/tmac.psold: New file.
9927         * ps/Makefile: Install tmac.psold.
9928         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
9929         characters into tmac.psold.  Make these definitions unconditional.
9931         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
9933         * ps/tmac.ps: Don't define \('c and \('C.
9935         * ps/devps/textmap: Move Greek characters to...
9936         * ps/devps/symbolchars:
9938 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
9940         * ps/devps/text.enc: Add quotesingle.
9941         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
9942         * tty/tmac.tty-char: Likewise.
9943         * dvi/devdvi/texmi.map: Add +h, +f, +p.
9944         * dvi/devdvi/texi.map: Add Fn.
9945         * dvi/devdvi/msam.map: Add lz.
9946         * dvi/tmac.dvi: Handle Bq, bq, aq.
9948         * pic/lex.c (get_token): Recognize 'th.
9949         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
9951 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
9953         * ps/devps/textmap: Move di, mu, +- to...
9954         * ps/devps/symbolchars:
9956         * macros/tmac.s (@XS): Don't call par@reset or fi.
9957         (XA): Call LP. Turn off adjustment. Reduce line length.
9959         * macros/tmac.s: Initially alias XS to LP.
9960         (XS): Rename to @XS.
9961         (cov*ab-init): Alias XS to @XS.
9963 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
9965         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
9966         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
9967         (token::is_size, token::changes_env): Deleted.
9968         * troff/number.c (parse_term): No need to process \s explicitly.
9969         Call tok.next() only after scale indicator has been processed.
9970         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
9971         \f etc explicitly.
9972         (token::next): Handle \s, \f, \S, \H immediately rather than
9973         returning them as tokens.
9974         (token::operator==, token::description, token::add_to_node_list,
9975         token::process): Remove handling of deleted tokens.
9977         * troff/env.c (environment::add_char): When adding padding
9978         indicator character, call start_line() if necessary.
9980 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
9982         * ps/devps/afmtodit: Don't output 0 kerns.
9984         * ps/devps/afmtodit: Remove directory from name of encoding in
9985         font description file.
9987         * ps/devps/afmtodit: Improve error messages.
9989         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
9991         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
9992         * ps/devps/FontMakefile: Deleted.
9993         * ps/devps/afmname: New file.
9995         * ps/devps/symbol.sed: New file.
9996         * ps/devps/symbol.diff: Deleted.
9997         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
9998         Generate zapfdr.afm from zapfd.afm.
10000         * tty/tmac.tty (tty-char): Prefix definition with ".
10002         * macros/tmac.an (TP): Don't start a diversion if one has already
10003         been started.
10005         * tty/tmac.tty-char: Add Latin-1 characters.
10007         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
10009 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
10011         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
10012         Move declaration of struct horizontal_span.
10014         * tbl/table.c (table::table): Initialize span_list.
10015         (table::~table): Delete span_list.
10017         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
10019         * ps/devps/Makefile: Avoid dependency on GNU make.
10021         * ps/tmac.ps: Check that character does not already exist before
10022         defining it.
10024         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
10025         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
10026         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
10027         files.
10029         * tty/tmac.tty-char: New file.
10030         * tty/Makefile: Install tmac.tty-char.
10031         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
10032         tmac.tty-char.
10034         * tty/tmac.tty: Fix definition of \(34.
10036         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
10037         bracket-drawing characters onto |. Add *o.
10039         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
10040         only if current_field.
10042         * troff/dictionary.c (dictionary::lookup): Free old_table after
10043         rehashing. 
10045 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
10047         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
10048         whose glyphs are identical to glyphs of some Roman character.
10050         * tty/devlatin1/R.proto (bu): Deleted.
10051         * tty/devascii/R.proto (bu): Deleted.
10052         * tty/tmac.tty: Add definition of \(bu.
10054         * eqn/main.c (do_file): Pass FILE as argument.
10055         (main): Automatically load eqnchar.  New options -F and -n.
10056         Pass do_file an opened FILE.
10057         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
10058         No need to include font.h.
10059         * groff.sh: Likewise.  Don't need to use - for standard input.
10060         Prefix files with -- if first file starts with -.
10062         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
10064         * troff/env.c (environment::possibly_break_line): Don't set line
10065         to 0 across call to output_line().  Don't call output_line() until
10066         after discarding nodes after break.
10068 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
10070         * request.h (macro::empty): Declare it.
10071         * input.c (macro::empty): New method.
10072         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
10073         macro is empty.
10075 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
10077         * troff/env.c (environment::start_field): Decrement space_total
10078         when a space is frozen.
10080 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
10082         * macros/tmac.an (R): Delete macro.
10084         * troff/input.c (get_copy, token::next): Support \# (like \" but
10085         newline is ignored).
10087         * troff/input.c (token::next): Fix error message in 'Y' case.
10089 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
10091         * eqn/delim.c (define_extensible_string): Recognize any prefix of
10092         a delimiter name.
10094 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
10096         * c++test.c: Include <osfcn.h>.
10098         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
10099         <errno.h> doesn't.
10101 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
10103         * tbl/table.c (table::divide_span): Don't count column separation
10104         if expand was specified.
10106         * tbl/main.c (process_format): Don't ignore width specs in
10107         continued format.  Give warning for changing equal widths or
10108         column separation in continued format.
10109         (process_data): Set column separation, minimum width, equal
10110         columns at end of table.
10112 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
10114         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
10115         node::add_discretionary_hyphen): Use soft_hyphen_char.
10116         (set_soft_hyphen_char): New function.
10117         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
10119         * Makefile (c++tested): Give more helpful message if test fails.
10121 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
10123         * troff/input.c (init_charset_table): Translate 0240 to
10124         an unbreakable space.
10126         * troff/token.h (token::hyphen_indicator): New function.
10127         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
10128         translation.
10129         * troff/input.c (translate): Allow translation to \%.
10130         * troff/node.c (node::add_char): Handle
10131         TRANSLATE_HYPHEN_INDICATOR.     
10132         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
10134         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
10135         for \(hy.
10137         * tty/devlatin1/R.proto: \(hy and - should print as 055.
10139 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
10141         * groff.c (run_commands): If the last command gets a SIGPIPE send
10142         a SIGPIPE to all children than haven't yet terminated.  When
10143         command terminates, set pid field to -1.
10145 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
10147         * groff.c (main): Pass an appropriate -filename option to gxditview.
10149 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
10151         * Makefile.bd (install): Remove existing program before copying.
10153         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
10154         programs which have Unix counterparts to be installed with
10155         user-specified prefix.
10157         * troff/input.c (exit_troff): Don't check if exit_started.
10158         (exit_request): Don't call exit_troff if exit_started.
10160         * Makefile.bd (install.mm): Rename to install.dwbmm.
10162 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
10164         * driver/input.c (do_file): Add missing break for '#' case.
10166 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
10168         * troff/input.c (input_stack::clear):  Clear past any boundaries and
10169         then add the boundaries back.
10171         * troff/input.c (exit_troff): Return immediately if already
10172         exiting.
10174         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
10175         end macro.
10176         (pg*end-page): If the text has ended and there are no more
10177         footnotes or keeps, exit.
10179         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
10181         * troff/input.c (init_charset_table): Make \(rq transparent by
10182         default.
10184         * macros/tmac.an: Define lq and rq strings.
10186         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
10188 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
10190         * troff/env.c (environment::final_break): New function.
10191         (environment::newline): Set prev_line_interrupted to 2 if
10192         exit_started.
10193         * troff/env.h: Declare environment::final_break.
10194         * troff/input.c (exit_troff): Call environment::final_break()
10195         instead of environment::do_break().
10197         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
10198         doesn't already exist.
10199         * macros/man.local: New file.
10200         * macros/tmac.an: Load man.local.
10201         * macros/man.ultrix: New file.
10203 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
10205         * troff/input.c (exit_groff): Rename to...
10206         (exit_troff): New function.
10208         * troff/div.c (exit_started, done_end_macro,
10209         seen_last_page_ejector): New global variables.
10210         (began_page_in_end_macro): New static variable.
10211         (exit_flag): Deleted.
10212         (top_level_diversion::top_level_diversion): Initialize
10213         last_page_count.
10214         (top_level_diversion): More elaborate test for whether
10215         cleanup_and_exit() should be called.
10216         Set began_page_in_end_macro if the end macro isn't yet finished.
10217         * troff/div.h (top_level_diversion::last_page_count): New data
10218         member.
10219         (top_level_diversion::set_last_page): New function.
10220         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
10221         * troff/env.c (do_break): Zero prev_line_interrupted.
10222         * troff/input.c (exit_flag): Delete declaration.
10223         (LAST_PAGE_EJECTOR): New magic cookie.
10224         (token::next): Handle LAST_PAGE_EJECTOR.
10225         (exit_groff): Set exit_started and done_end_macro instead of
10226         exit_flag.  Call top_level_diversion::set_last_page.  Push a
10227         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
10228         another ejection after setting seen_last_page_ejector.
10230 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
10232         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
10234         * macros/tmac.e (TH): Make sure there's room for the initial
10235         header.
10237         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
10238         Set FVS in points rather than units.
10240 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
10242         * troff/div.c (top_level_diversion::add_trap): Don't consider the
10243         position of empty slots.
10245 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
10247         * ps/devps/S: Fix height and depth of parenrightex.
10248         * ps/devps/symbol.diff: Regenerate.
10250 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
10252         * tmac.e (u): Do underlining as in -mgs.
10254 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
10256         * tty/tty.c (tty_printer::end_page): If overstriking is
10257         suppressed, still turn overstruck horizontal and vertical lines
10258         into +.
10260         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
10261         2.1.
10263         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
10265 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
10267         * Version 1.05 released.
10269 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
10271         * tty/tty.c: Instead of keeping an array of glyphs and then
10272         sorting it, keep a ordered linked list of glyphs for each line.
10274         * driver/driver.h: Include stddef.h.
10276         * tty/tty.c (compare_glyph):
10277         * refer/refer.c (rcompare):
10278         * troff/env.c (compare_ranges): Arguments of qsort comparison
10279         function should be const void *.
10281         * troff/number.c (parse_term):
10282         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
10283         switch statement.
10285         * refer/label.y (consider_authors): Don't access variables
10286         constructed under a condition outside that condition: put braces
10287         round for statement containing declaration; redeclare use of same
10288         variable later.
10290         * pic/pic.y (text_expr): Delete production that allows
10291         parenthesised text_expr.
10292         (expr): Allow a conditional_expr to appear in parentheses.
10293         (conditional_expr): Rename to any_expr.
10295         * mm: Install new version 1.01 from jh.
10297         * lib/font.c (font::get_width): Cache scaled widths.
10298         (font::font): Initialize widths_cache.
10299         (font::~font): Destroy widths_cache.
10300         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
10302 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
10304         * c++test.c, c++test.ref: New files.
10305         * Makefile: Check that the C++ compiler works.
10307         * ps/tmac.pspic (PSPIC): Do a break.
10309         * ps/tmac.ps: Move definition of PSPIC into...
10310         * ps/tmac.pspic: New file.
10311         (PSPIC): Draw box around picture, but make it invisible to grops.
10312         * ps/tmac.ps: Load tmac.pspic.
10313         * ps/Makefile: Install tmac.pspic.
10315 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
10317         * lib/font.c (scale_round): If n is negative,
10318         subtract .5 before truncating floating point result.
10320         * lib/fontfile.c: Include <errno.h>.
10322 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
10324         * driver/input.c (get_char): Inline. Don't update current_lineno.
10325         Change callers to up date current_lineno if necessary.
10326         Use get_char() instead of getc(current_file).
10328 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
10330         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
10332 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
10334         * tty/tty.c (tmac.tty): Define \(rg as (R).
10336 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
10338         * lib/lib.h: New define a_delete.
10339         * Use a_delete instead of delete when deleting an array of objects
10340         without destructors.
10342         * lib/lib.h: Rename adelete to ad_delete.
10343         * Change uses of adelete.
10345 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
10347         * eqn/eqn.y: Include lib.h.
10349         * troff/node.c (grow_font_table): Delete old_font_table.
10351         * mm: Install new version from jh.
10353 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
10355         * tbl/table.h (format_type): Make global instead of local to class
10356         entry_format.  Prefix enumerators with FORMAT_.
10357         * tbl/table.c, tbl/main.c: Corresponding changes.
10358         * refer/token.h (token_type): Make global.  Prefix enumerators
10359         with TOKEN_.
10360         * refer/token.[ch]: Corresponding changes.
10361         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
10363         * troff/div.c (node::set_vertical_size): Don't name argument.
10365 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
10367         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
10368         * lib/lib.h: Define adelete accordingly.
10369         * pic/object.c (graphic_object::graphic_object):
10370         * tbl/main.c (format::~format):
10371         * tbl/table.c (table::~table):
10372         * refer/ref.c (reference::~reference, reference::merge,
10373         reference::insert_field, reference::delete_field): Use adelete.
10375         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
10376         * refer/token.h:
10377         * tbl/table.h: Corresponding changes.
10379         * common.c (common_output::dashed_arc, common_output::dotted_arc):
10380         Ensure total_angle is positive.
10382 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
10384         * refer/ref.c (reference::merge, reference::insert_field,
10385         reference::delete_field): Avoid delete[0].
10387         * refer/token.c (init_special_chars): Move calls to cmupper
10388         outside calls to init_two_char_letter to work around bug in gcc
10389         2.0.
10391 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
10393         * lib/new.c (operator new): Use __builtin_new for g++.
10395         * pic/object.c (graphic_object::~graphic_object):  Don't use
10396         delete [] on 0.
10398         * pic/object.c (output::compute_scale): Initialize max_width and
10399         max_height.
10401 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
10403         * troff/input.c (write_request): Call fflush.
10405         * troff/node.h (class composite_node): Move declaration to node.c
10406         * troff/input.c (charinfo_to_node): Rename to ...
10407         (charinfo_to_node_list): Return node list rather than composite
10408         node.
10409         * troff/node.c (make_composite_node): New function.
10410         (make_node, add_char): Call make_composite_node instead of
10411         charinfo_to_node.
10412         (class composite_node): Add a tfont * member.  Delete font_size
10413         member.
10414         (composite_node::composite_node, composite_node::copy,
10415         composite_node::size): Corresponding changes.
10416         (composite_node::tprint): Provide constant spacing, emboldening
10417         and track kerning as specified in tfont.
10418         (composite_node::width): Change width calculation accordingly.
10419         * troff/env.h (environment::composite): New member.
10420         (environment::is_composite, environment::set_composite): New
10421         functions.
10422         * troff/env.c (environment::environment): Initialize composite.
10423         * troff/input.c (charinfo_to_node): Call
10424         environment::set_composite.
10425         * troff/node.c (make_composite_node, make_glyph_node): Use the
10426         plain version of the tfont if the environment is composite.
10428         * troff/node.c (font_info::get_space_width): Additional argument
10429         giving space_size.  Handle constant space correctly. Scale by
10430         space_size unless constant spaced.
10431         (env_sentence_space_width): New function.
10432         * troff/node.h: Declare it.
10433         * troff/env.h (environment::get_space_size,
10434         environment::get_sentence_space_size,
10435         environment::get_narrow_space_width,
10436         environment::get_half_narrow_space_width): Make inline.
10437         (environment::get_space_width): Make inline.  Just call
10438         env_space_width.
10439         * troff/env.c: Delete definitions for funtions made inline.
10440         (environment::space_newline, environment::space): Use
10441         env_sentence_space_width(). Don't scale by space_size.
10442         * troff/node.h: Move declarations of env*space_width() functions
10443         into env.h.
10445 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
10447         * macros/tmac.s (PS): Don't try to set negative indent.
10449 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
10451         * pic/pic.y: Fix min function.
10453 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
10455         * man/mdate.sh: Clear LANGUAGE.
10457 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
10459         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
10460         * pic/lex.c: New COMMAND keyword.
10461         * pic/pic.y (print_args, print_arg): New rules.
10462         (placeless_element): Use print_args for PRINT.
10463         New COMMAND element.
10465 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
10467         * troff/input.c (terminal): Handle missing argument correctly.
10469         * pic/pic.y (text_expr): New rule.
10471         * pic/pic.y: Implement := operator.
10473 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
10475         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
10476         mdoc.
10478 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
10480         * ps/devps/dingbatsrmap: Include this in the distribution.
10482         * macros/tmac.doc: Replace with new version from 2nd Networking
10483         Release. Fix loading of doc-* files.
10484         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
10485         * macros/tmac.doc.old: New file.  Apply fixes that had been
10486         applied to old tmac.doc.
10487         * macros/tmac.andoc: Check that we're running under groff.
10488         * macros/Makefile: Rework.
10490 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
10492         * tbl/table.h (format_type): 
10493         * refer/token.h (token_type): If NESTED_TYPES is defined, use
10494         typedef to make these types visible at file scope.
10495         * Makefile: Add NESTED_TYPES configuration option.
10497         * troff/div.c (mark): At the top level use the value of
10498         nl_reg_contents rather than the current vertical position.
10500 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
10502         * tty/tty.c: Implement \D for horizontal or vertical lines.
10503         (tty_printer::set_char): Use vec_used+2 as serial number.
10504         Don't allow size of vector to exceed USHRT_MAX-2.
10505         Split off part into...
10506         (tty_printer::add_char): New function.
10507         (tty_printer::draw): New function.
10508         (compare_glyph): Handle equal serial numbers.
10509         (tty_printer::end_page): Handle overstruck characters from \D.
10510         (main, usage): Implement -d option.
10512 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
10514         * tbl/main.c (process_format):
10515         * eqn/text.c (split_text):
10516         * troff/input.c (token::next): Use inner block for declarations
10517         with initializers in switch statement.
10519 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
10521         * pic/common.c (common_output::dash_line): Cope with zero-length
10522         lines.
10524 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
10526         * Version 1.04 released.
10528 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
10530         * macros/tmac.an (TH): Define a macro an-init to define variables
10531         based on command line arguments.
10532         (an-header): Call it.
10534 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
10536         * Makefile (install.mm): Rename to install.dwbmm.
10538         * Makefile: Integrate mm.
10539         * mm: New directory.
10541 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
10543         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
10544         <sys/types.h>.
10546         * pic/troff.c (troff_output::simple_spline,
10547         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
10548         shadowing parameter.
10550         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
10552         * lib/ptable.h: Add explicit casts when converting from unsigned
10553         long to unsigned.
10555         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
10556         * dvi/devdvi/Makefile: Install SA, SB.
10558         * refer/indxbib.c: Add declaration of mktemp.
10560         * refer/lookbib.c: Add declaration of isatty.
10562 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
10564         * pic/lex.c (interpolate_macro_with_args):  While collecting
10565         arguments, keep track of whether we're in a string.
10567 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
10569         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
10570         down with \v, so as to avoid problems with top of page trap
10571         setting no space mode.
10573 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
10575         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
10577 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
10579         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
10580         Improve error message.
10582 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
10584         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
10585         printf("%03o");
10587 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
10589         * groff.c (possible_command::execp): Always use _exit() after a
10590         failed exec.
10592         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
10593         NO_SYS_WAIT_H   configuration options.
10594         * groff.c: Use these options.  Use POSIX-style macros to extract
10595         fields from the status returned by wait().
10597 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
10599         * tbl/table.c (table::compute_separation_factor): Allow the
10600         separation factor to drop to 0.
10602 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
10604         * refer/search.c: Include <errno.h>.
10606 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
10608         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
10610         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
10611         C++. 
10613         * pic/lex.c (input_stack::bol): Move definition out of class body.
10615         * pic/main.c: On MSDOS munge argv[0].
10617         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
10619         * lib/ptable.c (hash_string): Use unsigned long rather than
10620         unsigned.
10621         (next_ptable_size): Use unsigned rather than int.  Give an error
10622         message if we've hit the largest table size.
10623         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
10624         table size.
10626         * pic/object.h (object_spec): Make flags unsigned long.  Declare
10627         flags as const unisgned long rather than as enums.
10629         * pic/output.c: Deleted.
10631         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
10633         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
10634         Add additional argument.
10635         (line_entry::note_double_vrule_on_{left,right}): Set value of
10636         douvle_vrule_on_{right,left} flag according to argument.
10637         (simple_line_entry::simple_print,
10638         simple_line_entry::double_line_print): If adjacent to double vrule
10639         on a corner extend rather than shorten the rule by half the double
10640         vrule sep.
10642         * troff/number.c (parse_term): In checking for overflow, handle the
10643         case where the current horizontal position is negative.
10645 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
10647         * pic/object.c (draw_arrow): Check for object having zero length.
10649 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
10651         * eqn/main.c (do_file): Split off inline equation handling into...
10652         (inline_equation): New function.  Search for starting delimiter
10653         using...
10654         (delim_search): New function. Don't recognize a delimiter that
10655         occurs in the name of an escape sequence, number register, string
10656         etc.
10658 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
10660         * eqn/delim.c (delim_box::compute_metrics): Don't call
10661         define_extensible_string if left is 0.
10662         (delim_box::output):  Don't print the left delimiter if left is 0.
10663         (delim_box::debug_print): Check for left == 0 before calling printf.
10665 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
10667         * troff/Makefile (majorminor.c): Include only digits in
10668         minor_version.
10670 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
10672         * refer/dirnamemax.c: new file.
10673         * refer/genlimits.c: Deleted.
10674         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
10675         Don't check path length.
10676         * refer/Makefile: Add dir_name_max.o; delete genlimits.
10677         * Makefile: Add PATHCONF_MISSING option.
10679         * refer/indxbib.c (get_cwd): New function.
10680         (main): Use get_cwd().
10681         * lib/getcwd.c: New file.
10682         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
10683         GETCWD in SUBFLAGS.
10684         * lib/Makefile: Compile getcwd.o.
10686         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
10687         userdict.
10689         * refer/indxbib.c (main): Check success of mktemp.
10691         * lib/tmpfile.c: New file.
10692         * lib/Makefile: Add tmpfile.c.
10693         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
10694         * ps/ps.h: Delete declaration of mktemp().
10695         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
10696         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
10697         * driver/driver.h: No need now to include errno.h.
10699         * everywhere: Set errno to 0 before calling fopen().
10701         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
10702         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
10703         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
10705 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
10707         * troff/env.h (translate_space_to_dummy): Declare it.
10708         * troff/env.c (environment::space_newline, environment::space):
10709         If translate_space_to_dummy is set then make the width of spaces 0.
10710         * troff/input.c (translate): If the second character of a
10711         translation is a space, translate to unbreakable space.  If the
10712         first character is a space, set or clear translate_space_to_dummy
10713         according to whether the second character is \&.  Weird!
10715 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
10717         * groff.c (run_commands): Don't use non-zero exit code because a
10718         command gets SIGPIPE.
10720         * groff.c, groff.sh: Use -mXps with -TXps.
10722         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
10723         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
10724         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
10725         (ps_printer::special): New specials invis and endinvis.
10726         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
10727         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
10728         (ps_printer::end_page): Check that invis_count == 0.
10729         (ps_printer::invis_count): New member.
10730         (ps_printer::ps_printer): Initialize invis_count to 0.
10732         * troff/env.c (environment::hyphenate_line): Hyphenation
10733         indicator at beginning of word inhibits splitting after -, \(em
10734         etc.
10736         * pic/pic.y (element): Allow another element to follow } without
10737         any intervening separator.
10739 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
10741         * pic/lex.c (get_delimited): Allow tabs before delimiter.
10743 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
10745         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
10746         declaration of wait() in header files.
10747         * Makefile: Get rid of -DHAVE_UNION_WAIT.
10749         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
10751         * lib/lib.h: Declare return type of strerror as char *.
10753         * man/Makefile: Add g flag to sed substitutions.
10754         * Makefile (shgroff, bindist): Likewise.
10756 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
10758         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
10759         * ps/devps/prologue (PBEGIN): Define showpage after pushing
10760         userdict.
10762 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
10764         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
10765         userdict.
10767 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
10769         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
10770         group.
10772 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
10774         * troff/input.c (define_number_reg):  If currently undefined,
10775         don't define it if the argument is an invalid expression.
10777         * Makefile: Ignore return value of `if' commands without `else'
10778         parts.
10780         * Makefile: Split up CPPDEFINES into a series of separate
10781         configuration options.
10783         * troff/input.c (init_registers): Use time_t instead of long
10784         unless LONG_FOR_TIME_T is defined.  Use returned result rather
10785         than passing pointer.
10786         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
10788         * lib/Makefile (fontpath.h): Use gendef.
10790 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
10792         * troff/input.c (input_iterator::shift): Delete argument name.
10793         * troff/node.c (suppress_output_file::really_begin_page,
10794         suppress_output_file::really_transparent_char, node::ascii_print,
10795         node::tprint): Delete names of unused arguments.
10797 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
10799         * refer/label.y (string):  Pass $4 to command_error.
10801 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
10803         * Version 1.03 released.
10805 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
10807         * Makefile: Pass definition of SHELL in SUBFLAGS.
10809         * gendef: New file.
10810         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
10811         ps/Makefile: Use gendef to construct header files that are
10812         constructed from the Makefile.
10814         * macros/Makefile: make all should build stripped version of tmac.e.
10816         * refer/Makefile (clean): Remove y.output.
10818 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
10820         * ps/pfbtops.c (main): Add -v option which prints out a version
10821         number.
10822         * ps/Makefile (pfbtops): Link with libgroff.a.
10824 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
10826         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
10827         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
10829         * refer/lkbib.c (main): Always terminate reference with blank
10830         line.
10831         * refer/lookbib.c (main): Likewise.
10833         * refer/linear.c (file_buffer::load): Check that the file is not a
10834         binary file.
10836         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
10837         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
10838         Delete second inclusion of <sys/param.h>.
10840 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
10842         * troff/token.h (token::special): Deleted.
10844         * tbl/main.c (process_format): Rework so that opt->tab_char is
10845         recognized only when appropriate.
10847         * ps/Makefile (clean): Remove pfbtops.
10849 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
10851         * lib/font.c (text_file::next): Don't return if we have got a
10852         blank line.
10854 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
10856         * refer/refer.c (store_reference): Get hash code from old_table[i]
10857         when rehashing the table.
10859 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
10861         * eqn/box.c (box::top_level): Save size and prev size using \R and
10862         restore it afterwards. Set the size to the size at the beginning
10863         of the line.
10864         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
10865         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
10867         * refer/Makefile (limits.h): Use ./genlimits.
10869 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
10871         * refer/index.c: Delete declarations of stat() and fstat().
10873 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
10875         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
10877 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
10879         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
10881 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
10883         * troff/input.c (token::get_char): Handle \e.
10885         * refer/linear.c: Delete declarations of fstat() and stat().
10887 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
10889         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
10890         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
10892 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
10894         * troff/input.c (do_define_macro): Improve error handling for end
10895         of file while defining macro.
10897 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
10899         * eqn/box.h: Fix declaration of set_gsize.
10900         * eqn/box.c (set_gsize): Make argument const char *.
10901         (gsize): Declare as char *.
10902         * eqn/main.c (main): Don't convert gsize to int.
10903         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
10905         * Version 1.02 released.
10907 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
10909         * macros/tmac.andoc: New file.
10910         * macros/Makefile: Install tmac.andoc.
10912         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
10913         operator new and delete on OP_DELETE_BROKEN not being defined.
10914         * Makefile: Mention OP_DELETE_BROKEN.
10916 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
10918         * Makefile (bindist): Pass SUBFLAGS.
10920 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
10922         * Makefile, groff.c: Pass definitions to groff.c via device.h.
10924         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
10925         parameter.
10927         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
10929         * ps/ps.h, ps/psrm.c: Make comment_table and
10930         header_comment_table local to resource_manager::process_file.
10932         * groff.sh: With -TXps pass -printCommand option to gxditview.
10934         * groff.c (possible_command::print): Implement using
10935         append_arg_to_string.
10937         * xditview: Merge in new implementation with own ChangeLog.
10939 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
10941         * groff.c (main): Implement PRINT_OPTION.
10942         (append_arg_to_string): New command.
10943         (device_table): Set PRINT_OPTION flag for Xps.
10945 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
10947         * troff/groff.h: Rename to troff.h.
10949         * pic/lex.c (lookup_keyword, docmp): New functions.
10950         (get_token): Use new lookup_keyword.
10951         Don't include key.h.
10952         * pic/key.[ch], pic/pic.gperf: Deleted.
10953         * pic/Makefile: Remove gperf stuff.
10955         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
10956         into output.h.
10957         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
10959         * troff/Makefile, troff/node.c: Move definition of
10960         STORE_WIDTH into node.c.
10962         * etc/grog.pl, etc/grog.sh: Support -mdoc.
10964 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
10966         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
10967         dvi/devdvi/texb.map: Add lq and rq.
10968         dvi/devdvi: Regenerate fonts.
10969         * ps/devps/textmap: Add lq and rq.
10970         * ps/devps: Regenerate fonts.
10971         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
10972         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
10974         * pic/object.c (position_rectangle): When checking radius
10975         cope with possiblity that width or height is negative.
10976         (box_object::box_object): Have separate xrad and yrad with
10977         signs matching signs of dim components.
10978         (box_object::{north,south}_{east,west}): Use xrad and yrad.
10979         (box_object::print): With rounded boxes use absolute values
10980         for dim and rad arguments.
10982         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
10983         in fontpath.h.
10985         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
10987         * various files: Add explicit destructors to keep Saber CC +d
10988         happy.
10990 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
10992         * eqn/box.c (box::top_level): Restore fonts correctly after
10993         font changes in line containing inline equation.  Also
10994         restore previous font as well as current font.
10995         * eqn/pbox.h: Define necessary string and register names.
10997         * troff/input.c (token::next): Case 'R' calls do_register.
10998         (do_register): New function.
11000 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
11002         * groff.c, groff.sh: Support Xps device.  Allow each device
11003         to have a pseudo_name and a real_name.
11005         * groff.c (run_commands): Don't print `Broken pipe' messages.
11007         * ps/pfbtops.c: New file.
11008         * ps/Makefile: Add pfbtops.
11010         * troff/number.c (parse_term): Improved error message.
11012 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
11014         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
11016         * Makefile: Integrate refer.
11017         * refer: New directory.
11018         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
11019         man/lkbib.man: New files.
11020         * man/Makefile: Support refer man pages.
11022         * lib/lib.h: Declare is_prime.
11023         * lib/prime.c: New file.
11025         * troff/input.c (macro_source): New function.
11026         (init_input_requests): Bind "mso" to macro_source.
11028         * troff/env.c (environment::possibly_break_line): Maintain
11029         pointer to pointer to node to be split in ndp so as to avoid
11030         using address of freed node.
11032         * troff/env.c (environment::hyphenate_line): Maintain pointer to
11033         pointer to first node to be hyphenated in startp so as to
11034         avoid using address of freed node.
11036         * troff/env.c (class trie, class hyphen_trie): Make the
11037         elements of the trie be of type char not unsigned char.
11038         Declare arguments to be const char* instead of unsigned char *.
11039         
11040         * troff/env.c (hyphenate): Initialize hbuf[0].
11042         * troff/input.c (set_string): Declare p to be char * and cast
11043         *p to unsigned char when necessary.
11045         * troff/input.c (do_define_macro): Declare s to be const
11046         char*. Cast element to unisgned char when necessary, Declare
11047         d to be an int.  Handle EOF better.
11049         * troff/Makefile, troff/input.c: Different scheme for passing
11050         definitions of MACROPATH, HYPHENFILE and DEVICE.
11052 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
11054         * tty/devascii/R.proto: Delete entry for em.
11055         * tty/devlatin1/R.proto: Likewise.
11057 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
11059         * troff/input.c (translate): Stop when we get a space. Treat eof
11060         like newline.
11062         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
11064 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
11066         * tbl/main.c (process_format): A font name following a `f'
11067         modifier that starts with a digit can be only one character long.
11068         Also deal with EOF on the second character of the font name.
11070 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
11072         * troff/input.c (token::next): Turn \~ into an
11073         unbreakable_space_node.
11074         * troff/node.c (unbreakable_space_node): New class.
11075         * troff/node.h: Declare it.
11077 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
11079         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
11080         it's >= 0, before outputting it as a single byte.
11082 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
11084         * lib/font.c: Make font_char_metric::code an int.
11085         (font::get_code): Change return type to int.
11086         (font::load): Allow code to be arbitrary integer.
11087         * lib/font.h (font::get_code): Change return type to int.
11088         (font::number_to_index): Change argument type to int.
11089         * troff/input.c (token::next):  In case 'N', allow any value.
11090         Store value in token::val.
11091         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
11092         (token::get_char, token::add_to_node_list, token::process): Get
11093         number from val.
11094         (charinfo::set_number): Change argument to int.
11095         (charinfo::get_number):  Require that NUMBERED flag be set.
11096         (get_charinfo_by_number): Store numbered characters not between 0
11097         and 255 in a dictionary.
11098         * troff/charinfo.h (get_charinfo_by_number): Change argument type
11099         to int.
11100         (charinfo::number): Change type to int.
11101         (charinfo::set_number): Change type of set_number to int.
11102         * troff/node.c (troff_output_file::put_char_width,
11103         troff_output_file::put_char): Test whether character is numbered
11104         using charinfo::numbered().
11105         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
11106         values of num.
11107         * lib/nametoindex.c: New implementation to cope with arbitrary
11108         number characters.
11110         * troff/input.c (token::operator==): Test val for
11111         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
11112         TOKEN_SIZE.
11114         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
11115         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
11117 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
11119         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
11120         variable.
11122         * all Makefiles: rm targets of cp and >.
11124         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
11125         it.
11127         * eqn/lex.c (def_table): Add dollar.
11129 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
11131         * troff/input.c (do_width): Push back newline before closing delim
11132         like do_bracket.
11134 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
11136         * groff.c (possible_command::prepend_arg): New function.
11137         (main): Prepend device -m option.
11138         * groff.sh: Put device -m options before command-line options.
11140 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
11142         * macros/tmac.an (IP): Quote argument to TP.
11144         * ps/ps.c (main): New option -b, which sets...
11145         (broken_flags): New variable.
11146         (ps_printer::~ps_printer): Incorporate the setup section in the
11147         prolog if (broken_flags & NO_SETUP_SECTION).
11148         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
11149         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
11150         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
11151         ps_printer::print_needed_font_comment,
11152         ps_printer::print_supplied_font_comment,
11153         ps_printer::print_include_font_comments,
11154         ps_printer::lookup_doc_font, ps_printer::download_fonts,
11155         ps_printer::read_download_file, read_document_fonts, add_font,
11156         skip_line, parse_fonts_arg, document_font::document_font,
11157         document_font::~document_font, document_font::download,
11158         ps_output::include_file):  Deleted.
11159         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
11160         rather than %!PS-Adobe-2.0.  Make calls to
11161         resource_manager::need_font for each font that we used. Replace
11162         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
11163         print_supplied_font_comment, print_needed_font_comment by call to
11164         resource_manager::print_header_comments. Output %%Orientation
11165         comment. Output %%Requirements: numcopies comment if ncopies > 1.
11166         Don't output the prolog directly.  Instead call
11167         resource_manager::output_prolog.  Only define #copies when ncopies
11168         > 1.  Delete calls to print_include_font_comments  and
11169         download_fonts.  Add call to resource_manager::document_setup.
11170         (ps_printer::do_file): Call resource_manager::import_file instead
11171         of including it ourselves.
11172         (ps_printer::do_import): Likewise.  Also don't call
11173         merge_import_fonts. Push userdict on the dictionary stack before
11174         and pop it afterwards.
11175         Move declaration of ps_output into ps.h.
11176         * ps/psrm.c: New file implementing resource_manager class.
11177         * ps/ps.h: New file declaring ps_output and resource_manager
11178         classes.
11179         * ps/devps/zapfdr.ps:
11180         * ps/devps/symbolsl.ps:
11181         * ps/devps/prologue:  Use 3.0 conventions.
11182         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
11183         Add default definition of BROKEN_SPOOLER_FLAGS.
11184         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
11185         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
11187 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
11189         * etc/grog.pl: New file.
11190         * Makefile (GROG): New variable.
11191         Add GROG to SUBFLAGS.
11192         * etc/Makefile (GROG): New variable.
11193         (install.nobin): Install $(GROG) rather than grog.sh.
11195 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
11197         * eqn/special.c (special_box::compute_metrics): Make the input and
11198         output strings the same.  Get the new height and depth from the
11199         predefined height and depth registers.  Also make subscript kern
11200         and skew available.
11201         (special_box::compute_subscript_kern, special_box::compute_skew):
11202         New functions.
11204         * eqn/box.c (pointer_box::compute_skew,
11205         simple_box::compute_metrics, box::top_level)
11206         * eqn/text.c (prime_box::compute_metrics,
11207         prime_box::comput_subscript_kern)
11208         * eqn/limit.c (limit_box::compute_metrics):
11209         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
11210         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
11211         negative numbers in `nr' requests with a leading 0.
11213 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
11215         * eqn/special.c: New file.
11216         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
11217         Add new rule for simple.
11218         * eqn/lex.c (token_table): Add SPECIAL.
11219         * eqn/box.h: Declare make_special_box.
11220         * eqn/Makefile: Add special.[co].
11222 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
11224         * ps/devps/prologue: Possibly set packing to true while defining.
11225         Create grops dictionary here.  Initialize local variables before
11226         defining procedures.
11227         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
11228         the dictionary stack. Set strokeadjust and overprint to false if
11229         the relevant operators are defined.
11230         (PEND): New procedure.
11231         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
11232         prologue.  Do everything else in the setup section.
11233         (ps_printer::do_import): Just call PBEGIN and PEND around the
11234         picture. Also push userdict before, and pop it afterwards.
11236 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
11238         * troff/node.c (bracket_node::tprint): Brackets were being printed
11239         1m too low.
11241         * macros/tmac.an (SH, SS): Set fill mode.
11243 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
11245         * troff/div.c (top_level_diversion::begin_page): Set
11246         high_water_mark to 0.
11248 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
11250         * man/mdate.sh: New file.
11251         * man/mdate.c: Deleted.
11252         * man/Makefile: Use mdate.sh instead of mdate.
11253         (mdate): Deleted.
11255         * eqn/lex.c (do_gsize): Supply missing argument to error message.
11257 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
11259         * man/mdate.c: New file.
11260         * man/*.man: Replace modification date by @MDATE@.
11261         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
11262         (mdate): New target.
11264         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
11265         Remove illegal input characters.
11267 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
11269         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
11271 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
11273         * troff/div.c (begin_page): Change behaviour when
11274         !first_page_begun and !break_flag.
11276         * troff/input.c (do_name_test): Return 0 if argument is empty.
11278         * troff/input.c (read_long_escape_name): Require closing ] to be
11279         at same input level as opening [.
11281         * troff/input.c (read_increment_and_escape_name): New function.
11282         (get_copy, process_input_stack): Use this for \n.
11284 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
11286         * troff/div.c (top_level_diversion::begin_page): Ignore the
11287         current value of page_number if !first_page_begun.
11289         * groff.c (main): Fix declaration of buf.
11291         * troff/input.c (do_name_test): New function.
11292         (token::next): Implement \A.
11293         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
11294         (token::description, token::add_to_node_list, token::process):
11295         Handle TOKEN_ESCAPE.
11296         * troff/token.h: New token TOKEN_ESCAPE.
11298 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
11300         * pic/main.c (do_picture): Allow space before and after filename
11301         following `<'.  Check that the filename is not empty.
11303 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
11305         * Version 1.01 released. 
11307         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
11309         * dvi/tmac.dvi: ftr HR to H.
11311         * macros/tmac.e: Round up computation of $r.
11313         * xditview/tmac.X:  Don't give up completely in compatibility mode.
11314         Use \n(.s instead of \n[.s].
11316         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
11317         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
11318         Add u to factors inside \s[...]. Rename frac to dvi-frac.
11319         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
11320         short names in the char definitions.
11322         * ps/tmac.ps: Don't give up completely in compatibility mode.
11323         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
11324         quote in front of \n(.s. Add u to factors inside \s[...].
11326 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
11328         * tty/tmac.tty: Call the nroff request.
11330         * macros/tmac.e ((x, )x):  Better definitions that work properly
11331         in a diversion.
11332         (@0, @1): Helper macros for (x.
11334         * macros/tmac.e ($s, hl): Use \l rather than \D.
11336         * tty/tmac.tty: Make it work better in compatibility mode.
11337         (pchar): Rename to tty-char.
11339         * macros/tmac.e (@E): New macro.
11340         (r, i, b, rb, bi): Use @E.
11342         * macros/tmac.e (@F): Don't use (;...) syntax.
11344         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
11345         it was modified for groff.
11347         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
11349         * macros/tmac.e (<., .>): Removed.
11350         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
11352         * macros/tmac.e: Remove check that groff is being used.
11354         * macros/tmac.e (@C): Change families only if using groff; turn
11355         compatibility mode off while changing familes. Save compatibility
11356         mode before changing families and restore it afterwards.
11358         * macros/tmac.e (@h): Remove test for offset + line length.
11360         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
11361         (lo, th, ac): Define to call @S instead of using als.
11363         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
11364         the ratio of the vertical spacing to the point size in units
11365         expressed as a percentage.  Use these instead of $10r and $10R,
11366         Delete $10r and $10R.
11368         * lib/font.c (font::load): In default computation of space_width,
11369         divide by sizescale.  Use scale_round.
11371         * macros/tmac.an (TP): Don't call `nf'.
11372         (an-do-tag): Don't call `fi'.
11374 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
11376         * troff/input.c (process_input_stack): Handle the case where
11377         spaces at the beginning of an input line are followed by a
11378         newline.
11380 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
11382         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
11383         * groff.sh: Use pic -x with the dvi device.
11385         * dvi/devdvi/FontMakefile (H): Don't use -s.
11387         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
11388         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
11389         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
11390         in FONTS.
11392 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
11394         * ps/psfig.diff: New file.
11395         * ps/tmac.psfig: New file.
11397 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
11399         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
11400         (]-): Don't call ref*do-tl.
11402         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
11404         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
11405         (fn@do-FS): Rename to fn*do-FS.
11407         * troff/input.c (transparent_translate): New function.
11408         (process_input_stack): Apply transparent_translate before calling
11409         diversion::transparent_output(unsigned char).
11411 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
11413         * troff/input.c (do_define_macro): Define the macro before calling
11414         skip_line.
11416         * xditview/Makefile: Add DEVICES variable.  Change install target
11417         to use this.
11419 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
11421         * groff.c (run_commands): Handle the possibility that there are
11422         child processes other than those forked by us.
11424 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
11426         * lib/string.c (string::append): New function.
11427         * lib/stringclass.h: Declare it.
11429 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
11431         * eqn/main.c (main): New option -N which sets
11432         no_newline_in_delim_flag. 
11433         (do_file): If no_newline_in_delim_flag is set don't allow newlines
11434         in delimiters.
11435         * groff.c (main): Pass -N on to eqn.
11436         (help, synopsis): Mention -N.
11437         * groff.sh: Implement -N.
11439 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
11441         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
11442         (]-): Call ref*do-tl if ref*need-tl is non-zero.
11443         (XP): Allow as initializer.
11445 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
11447         * troff/env.c (environment::wrap_up_field): If field_spaces are
11448         non-zero and we have a current_tab, subtract padding from
11449         tab_distance.  If this makes tab_distance <= 0, use the next tab
11450         stop instead.  If there isn't any next tab or it's a left tab,
11451         wrap up the current tab.
11452         (environment::start_field): Initialize tab_precedes_field.
11453         (environment::wrap_up_tab): If there's a current field, update
11454         pre_field_width, field_distance and tab_precedes_field.
11455         * troff/env.h (environment::tab_precedes_field): New member.
11457 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
11459         * ps/ps.c (ps_printer::do_file): New function.
11460         (ps_printer::special): Bind to `file' special.
11461         (ps_printer::do_exec): Set ndefined_styles to 0.
11463 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
11465         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
11466         Avoid stripping first character from the start of unrecognized
11467         escapes.  Use lex_error instead of error to report errors.
11468         * eqn/lex.c (get_token): Rework handling of escapes.
11469         (lex_error): Move declaration into...
11470         * eqn/eqn.h.
11472         * xditview/xditview.c (main): Make -page option work.
11474         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
11476 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
11478         * macros/tmac.s (B2): Correct size of box.
11480 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
11482         * macros/tmac.s (B2): Postpone drawing the box until in the
11483         top-level diversion.
11485         * tty/tmac.tty: Add font translations for C, CR, CW.
11487         * groff.c (synopsis, help): Document -i.
11488         * groff.sh: Implement -i.
11490         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
11491         Simplify the construction of SN.
11493         * troff/number.c (parse_term): Give `|' a higher precedence.
11494         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
11495         accordingly.
11497         * macros/tmac.s (B2): Use par@finish instead of par@reset.
11499 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
11501         * lib/string.c (string::move): New function.
11502         * lib/stringclass.h: Declare it.
11504 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
11506         * troff/env.c (distribute_space): Add optional argument
11507         `force_forward'.
11508         (environment::wrap_up_field): Call distribute_space with
11509         `force_forward' argument of 1.
11511 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
11513         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
11514         Inline it.  Move reallocation into...
11515         (string::grow1): New function.
11516         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
11517         dependencies to include library header files.
11518         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
11520 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
11522         * macros/tmac.s (@NH): Use the same number registers than -ms does
11523         for the heading level counters.  Use the same string that -ms does
11524         for the number for this heading.
11526 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
11528         * lib/new.c (operator new): Cast result of malloc to char *.
11530         * troff/input.c (spring_trap, lookup_request): Add assert that nm
11531         is not null.
11533 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
11535         * groff.c (main): Support -i.
11537 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
11539         * pic/pic.h: Include <osfcn.h>.
11541         * ps/ps.c: Add declaration of mktemp.
11543         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
11544         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
11545         argument as union wait *.
11546         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
11547         argument to union wait *.
11549 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
11551         * tty/tmac.tty: Add definition of \(co.
11553         * pic/object.c (make_arc): Only increase radius when radius
11554         strictly less than d.
11555         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
11556         more than once.
11558         * troff/env.c (environment::environment(symbol),
11559         environment::environment(const environment *)):  Initialize
11560         input_trap_count.
11562 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
11564         * tbl/main.c (main): Add exit(0).
11566         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
11568         * pic/main.c (main):
11569         * eqn/main.c (main):
11570         * tbl/main.c (main):
11571         * etc/soelim.c (main):
11572         * driver/printer.c (printer::~printer):
11573         * troff/node.c (real_output_file::~real_output_file,
11574         real_output_file::flush):  Check for errors on stdout.
11576         * most files: Add 1991 to copyright notice.
11578         * macros/tmac.s: Don't test \n(.x and \n(.y.
11580         * troff/input.c (token::next): Rename `escape_char' label to
11581         `handle_escape_char' and `normal_char' label to
11582         `handle_normal_char'.
11584 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
11586         * groff.c (main, synopsis, help): Support -a option.
11587         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
11588         to trflags while parsing options.
11590 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
11592         * troff/number.c (parse_term): With `m', `M' and `n' scale
11593         indicators, convert scale factor to hunits before scaling.
11595 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
11597         * lib/font.c (scale_round): Better test for overflow when n is
11598         negative.
11600 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
11602         * tbl/main.c (process_format): Add second argument of type
11603         options*. Change callers.  Allow opt->tab_char as well as '\t'
11604         between format items.
11606 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
11608         * macros/tmac.an (PD): With no arguments, make sure register PD is
11609         at least \n[.V].
11610         (TH): Call PD with no argument, instead of setting register PD
11611         directly.
11613 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
11615         * Version 1.00 released.
11617 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
11619         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
11621         * dvi/devdvi/DESC: Mount CW instead of CR.
11623         * dvi/tmac.dvi: Add definition of \(tm.
11625         * dvi/devdvi/texsy.map: Add lh, and rh.
11626         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
11627         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
11629         * dvi/devdvi/FontMakefile: Generate H from cmss10.
11630         * dvi/devdvi/Makefile: Install H.
11631         * dvi/devdvi/H: New file.
11633 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
11635         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
11636         be 0.
11638 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
11640         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
11642         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
11644         * macros/tmac.s (@EN): Handle the case where the equation is empty
11645         but the label is not.
11647 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
11649         * troff/groff.h: New warning category WARN_SPACE.
11650         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
11651         WARN_SPACE to warning_table.
11652         (interpolate_macro): Give a warning of type WARN_SPACE if the name
11653         is longer than two characters and is not defined, but the first
11654         two characters do make a defined name.
11656         * PROBLEMS: New file.
11658         * CHANGES: New file.
11659         * README-0.6, README-1.00: Deleted.
11661         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
11662         * xditview/devX75/Makefile: Make devX75-12.
11663         * xditview/devX100/Makefile: Make devX100-12.
11665         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
11666         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
11668 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
11670         * README-0.7: Rename to README-1.00.
11672         * macros/tmac.pic: New file.
11673         * macros/Makefile (install.nobin): Install tmac.pic.
11675 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
11677         * troff/env.c (hyphen_word): Correct the test for whether the
11678         token is a hyphen.  Reset npos to 0.
11680         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
11682 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
11684         * macros/tmac.s (ds*common-end): Call par*reset.
11685         (PE): Likewise.
11686         (par@reset-indent): Deleted.
11688         * macros/tmac.s (@IP): Divert the label.
11690 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
11692         * xditview/draw.c (setGC): Use a line width of .1m rather than
11693         .04m by default; round rather than truncate value.
11695         * tbl/table.c (class empty_entry): New class.
11696         (empty_entry::empty_entry, empty_entry::line_type): New functions.
11697         (table::add_entry): Represent empty entries by objects of type
11698         empty_entry.
11699         (table_entry::line_type): Return -1.
11700         (table::determine_row_type): Ignore entries with line_type 0.
11701         Treat type -1 as non-lines.
11703 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
11705         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
11706         macros/tmac.s: Rename \(-d to \(Sd.
11708 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
11710         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
11711         * xditview/libXdvi/DviChar.c: Likewise.
11712         * dvi/devdvi/texsy.map: Add `<<', `>>'.
11714 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
11716         * troff/div.c (top_level_diversion::begin_page): Call
11717         init_output() if the_output is 0.
11719 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
11721         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
11722         ESCAPE_c.
11723         (get_copy): Turn \E into ESCAPE_E.
11724         (token::process, asciify): Handle ESCAPE_E.
11726         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
11727         (RD): New macro.
11728         (DS): Implement `.DS R'.
11730 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
11732         * macros/tmac.s (FS): New macro.
11734         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
11736         * macros/tmac.s (cov*tl-init): Remove after first execution
11737         instead of aliasing to @nop.  Call top of page macro explicitly
11738         instead of setting trap; call @init first.  Set pg@top as top of
11739         page macro.
11740         (cov*auto-init): Deleted.  Set cov*tl-init instead of
11741         cov*auto-init as top of page trap. 
11742         (TL, LP): Do a break instead of calling cov*tl-init.
11743         (cov*print): With RP format but no TL, alias FS and FE to @FS and
11744         @FE; in this case also give a warning and always start another
11745         page. No need to set pg@top here.
11746         (cov*tl-init): Rename to cov*first-page-init.
11748         * macros/tmac.s (RP): Do `.pn 0'.
11749         (cov*tl-init): With RP format don't do `.pn 0'.
11751         * macros/tmac.s (pg@cs-top): Set no space mode.
11753         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
11754         (cov*ab-init): Alias TL, AU and AI to these.
11756 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
11758         * macros/tmac.s (@EQ): Move the space before the equation into @EN
11759         (@EN): Do nothing unless \n[dl] is > 0.
11761 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
11763         * pic/object.c (ellipse_object::radius): New function.
11765         * VERSION: Change version to 0.7.
11767         * tbl/table.c (block_entry::do_divert): Declare return type as
11768         void.
11769         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
11771 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
11773         * troff/column.c: New file.
11774         * troff/Makefile: Corresponding changes.
11776         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
11777         Friend of vunits.
11779         * troff/div.c (top_level_diversion::space): If the space causes
11780         the first-page transition and springs a trap, truncate the space
11781         to 0.
11783 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
11785         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
11786         the document.
11788         * pic/troff.c (troff_output::line_thickness,
11789         troff_output::set_fill): Do a horizontal motion to compensate for
11790         the width of the \D escape sequence.
11792 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
11794         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
11795         (not X75).
11797         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
11798         to printf.
11800         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
11801         Supply empty definition.
11802         (text_entry::simple_print, simple_text_entry::simple_print):
11803         Delete declarations.
11804         (table::add_entry): Represent empty entries by objects of type
11805         `simple_entry'.
11807 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
11809         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
11811         * tbl/table.c (left_text_entry::add_tab): New function.
11813         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
11814         initialize like LP.
11816 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
11818         * troff/env.c (environment::start_field): Give an error message if
11819         there is no next tab.
11821 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
11823         * troff/env.c (hyphenate): Skip initial elements with zero
11824         hyphenation code.
11826         * macros/tmac.s (par@init): Keep VS in points rather than units.
11828 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
11830         * pic/main.c (main): Implement `-c' option.
11831         * pic/output.h: Declare make_tpic_output().
11832         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
11833         protected.
11834         (tpic_output): New class.
11835         (tpic_output::tpic_output, tpic_output::set_pen_size,
11836         tpic_output::command, make_tpic_output): New functions.
11838 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
11840         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
11841         if they're not already defined.
11842         * tbl/table.c (init_output): Don't test \n(.g.
11844         * troff/input.c (do_if_request): Delete `g' condition. Recognize
11845         `d', `r' and `c' conditions even in compatibility mode.
11847 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
11849         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
11850         box.
11852 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
11854         * troff/env.h (environment::prev_line_interrupted): New member.
11855         (environment::get_prev_line_interrupted): New function.
11856         * troff/env.c (environment::newline): Set prev_line_interrupted.
11857         (environment::environment(const environment *),
11858         environment::environment(symbol)): Initialize
11859         prev_line_interrupted.
11860         * troff/input.c (process_input_stack): Don't give special
11861         treatment to space and newline at the beginning of the line if the
11862         previous line was interrupted.
11864 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
11866         * eqn/eqn.y: Disallow PRIME by itself.
11867         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
11868         PRIME.
11869         (def_table): Remove definition of '.  Define prime to be `.
11871         * eqn/eqn.y: Split off part of rule `script' into a new rule
11872         `nonsup'.
11874 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
11876         * macros/tmac.s ({, }): New string aliases.
11878 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
11880         * README-0.7: New file.
11882 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
11884         * macros/tmac.s: New file.
11885         * man/groff_ms.man: New file.
11886         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
11887         * Makefile.bd: Similarily.
11888         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
11889         definition of TMAC_S.
11890         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
11891         * macros/TODO: New file.
11893 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
11895         * troff/env.c (right_justify): New function.
11896         (init_env_requests): Bind this to request "rj".
11897         (center_lines): Set right_justify_lines to 0. If we get a bad
11898         integer, center 1 line.
11899         (environment::environment(symbol), environment::environment(const
11900         environment *)): Initialize right_justify_lines.
11901         (environment::get_right_justify_lines): New function.
11902         (init_env_requests): Bind this to number_register ".rj".
11904         * troff/env.c (environment::choose_breakpoint): Implement
11905         hyphenation_margin and hyphenation_space.
11906         (environment::get_hyphenation_space,
11907         environment::get_hyphenation_margin): New functions.
11908         (init_env_requests): Bind these to .hys and .hym.
11909         (hyphenation_space_request, hyphenation_margin_request): New
11910         functions
11911         (init_env_requests): Bind these to hys and hym.
11912         (environment::environment(symbol), environment::environment(const
11913         environment *)): Initialize hyphenation_margin and
11914         hyphenation_space.
11915         * troff/env.h: Corresponding changes to class environment.
11917 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
11919         * troff/div.c (blank_line): Always do a break.
11921         * eqn/box.c (do_text): Turn off escapes while appending text to
11922         string.
11924 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
11926         * troff/input.c (while_break_request, while_continue_request): New
11927         functions.
11928         (init_input_requests): Bind these to "break" and "continue".
11929         (while_depth, while_break_flag): New variables.
11930         (while_request): Update while_depth.  Break out of loop if
11931         while_break_flag is set.
11933 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
11935         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
11936         rather than 0.
11938 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
11940         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
11942         * stringify: New file.
11943         * Makefile (groff.o): Use stringify.
11945         * xditview/tmac.X: Remove definition of \(rn.
11946         * xditview/libXdvi/DviChar.c: Remove radicalex from
11947         Adobe_symbol_map.
11949 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
11951         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
11952         (alphabetic_block_entry::alphabetic_block_entry,
11953         alphabetic_block_entry::divert, alphabetic_block_entry::print):
11954         New functions.
11955         (block_entry::divert): Split off body into ...
11956         (block_entry::do_divert): If the block is alphabetic, subtract 2n
11957         from the line length; also update the span width to dl+2n, and the
11958         alphabetic span width to dl.
11960         * driver/input.c (do_file):  While reading argument to D command,
11961         when expanding buffer, multiply szp by sizeof(int) rather than 2
11962         in the argument to memcpy.
11964         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
11965         width of alphabetic columns.
11967 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
11969         * troff/node.c (lookup_family): Supply second argument to lookup.
11971         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
11972         search, return immediately if v is 0.
11974         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
11975         (troff_output::start_picture): Set this reg.
11976         (troff_output::end_picture): Remove this reg
11977         * eqn/box.c (box::extra_space): Don't produce `\x's if
11978         EQN_NO_EXTRA_SPACE_REG is defined.
11980         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
11981         * eqn/text.c (split_text): Map ' to \(fm when it's the first
11982         character.
11984 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
11986         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
11987         requests.
11989         * troff/div.c (top_level_diversion::top_level_diversion):
11990         Initialize page_number to 0.
11992 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
11994         * groff/troff (environment::environment(const environment *)):
11995         Initialize name to e->name, rather than "anonymous".
11997 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
11999         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
12000         requested_page.  Split middle part into ...
12001         (FindPage): New function.
12002         (SetValues): If we don't yet know the last page, and the requested
12003         page is greater than the current page, call FindPage.
12004         Update the font_map_string before doing this.
12006         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
12007         Translate \(lh and \(rh into left and right double arrows.
12009         * troff/node.c (class hyphen_inhibitor_node): New class.
12010         (hyphen_inhibitor_node::hyphen_inhibitor_node,
12011         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
12012         hyphen_inhibitor_node::type,
12013         hyphen_inhibitor_node::get_hyphenation_type): New functions.
12014         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
12015         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
12016         word.
12018 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
12020         * troff/node.h (dummy_node::get_hyphenation_type,
12021         transparent_dummy_node::get_hyphenation_type):  Declare them.
12022         * troff/node.c: (dummy_node::get_hyphenation_type,
12023         transparent_dummy_node::get_hyphenation_type): New functions.
12025 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
12027         * xditview/libXdvi/draw.c: If M_PI not defined after including
12028         math.h, then define it.
12030         * xditview/Makefile: Add definition of AR. Pass it to the submake
12031         in libXdvi.
12032         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
12034 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
12036         * troff/dictionary.h (object_dictionary::alias): Declare return
12037         value as int.
12038         * troff/dictionary.c (object_dictionary::alias): Return non-zero
12039         if the old name was defined.
12040         * troff/input.c (alias_macro): Give a warning if the old name was
12041         not defined.
12042         * troff/reg.c (alias_reg): Likewise.
12044 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
12046         * troff/input.c (token::next): Delete implementation of \R.
12048         * macros/Makefile: Strip comments from tmac.e while installing it.
12050         * troff/input.c: New variable `nroff_mode'.
12051         (troff_request, nroff_request): New functions.
12052         (init_input_requests): Bind `troff' and `nroff' to troff_request
12053         and nroff_request.
12054         (do_if_request): Compute results of t and n conditions from
12055         nroff_mode.
12057         * text/text.c (split_text): Fix typo in >=.
12059         * eqn/lex.c: Add definition of `==' to def_table.
12061 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
12063         * pic/tex.c (tex_output::start_picture): Change the definitions of
12064         \graph and \graphtemp so that they work properly with Plain TeX.
12066         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
12067         argument to `ar' is not less than the first.
12069         * pic/pic.y: Allow a comma between elements of the variable list
12070         in the argument to `reset'.
12072         * pic/object.c (arc_object::arc_object): Fix computation of
12073         radius.
12075         * eqn/main.c (main): Add exit(0).
12077 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
12079         * troff/div.c (begin_page): Test no_space_mode after doing the
12080         break, but still push the page ejector cookie before doing the
12081         break.  Also set the next page number after doing the break.
12082         
12083         * xditview/xditview.c (NewFile): Don't set the title and icon name
12084         if this is the first file and its name is `-'.
12085         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
12086         the X75 and X100 devices.
12087         (main): If a device has the XT_OPTION flag set and there's exactly
12088         one file argument, pass the driver -xrm and -title options to set
12089         the icon name and window title to the name of the file.
12091         * troff/env.c (environment_switch): If there was an argument but
12092         it wasn't a valid number or name, then pop an environment but
12093         don't give an error message on underflow.
12095         * troff/number.c (start_number): Correct spelling in error message.
12097         * troff/input.c (token::delimiter): Don't print an error message
12098         if err is false.
12100         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
12101         ParseDrawFunction if dw->display_enable is true.
12103 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
12105         * pic/pic.y: Parse text positioning like normal attributes, so as
12106         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
12107         positioning attribute.
12109 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
12111         * tbl/main.c (process_data): When in state START while reading a
12112         text block, don't change to state MIDDLE if c is a newline.
12114 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
12116         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
12117         so as to avoid shadowing parameter.
12119 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
12121         * tbl/table.c (trim_space): Deleted.
12122         (table::add_entry): Don't call trim_space.
12124 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
12126         * VERSION: Change version to 0.6.
12128         * troff/number.c (parse_expr): Make == work.
12130 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
12132         * man/grog.man: New file.
12133         * man/Makefile: Add grog.n to MAN1PAGES.
12134         * etc/grog.sh: New file.
12135         * etc/Makefile: Install grog.sh as grog.
12137 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
12139         * troff/input.c (token::next): Implement \E.
12141 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
12143         * xditview/tmac.X: Change font translations to match tmac.ps.
12145         * troff/input.c (non_empty_name_warning): Don't give a warning if
12146         `\{' terminates the name.
12148 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
12150         * ps/devps/symbol.diff: New file.
12151         * ps/devps/FontMakefile: Mention symbol.diff.
12153 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
12155         * troff/node.c (font_position): Use get_long_name to read the
12156         external_name.
12158         * troff/env.c (environment_switch): If we get a number that's < 0
12159         or >= NENVIRONMENTS, treat it like a name.
12160         Change NENVIRONMENTS to 10.
12162         * troff/groff.h: Remove definition of FONTS_MAX.
12163         * troff/node.h (class font_family): Make map a pointer instead of
12164         an array. Add a map_size member. Make it a class. Make nm const
12165         and public. Make invalidate_fontno a friend.
12166         * troff/node.c: Define font_table_size. Make font_info a pointer
12167         rather than an array.
12168         (class troff_output_file): Allocate font_position dynamically. Add
12169         nfont_positions member.
12170         (troff_output_file::set_font): Grow font_position if necessary.
12171         (troff_output_file::~troff_output_file): Delete font_position.
12172         (troff_output_file::troff_output_file): Allocate font_position.
12173         (grow_font_table): New function.
12174         (troff_output_file::really_begin_page,
12175         troff_output_file:really_copy_page): Use nfont_positions rather
12176         than FONTS_MAX.
12177         (mount_font_no_translate, mount_style): Call grow_font_table if
12178         necessary.
12179         (font_family::font_family): Allocate map.
12180         (font_family::make_definite): Grow map if necessary. Use
12181         font_table_size instead of FONTS_MAX.
12182         (font_family::~font_family): New function.
12183         (invalidate_fontno): Use font_family::map_size.
12184         (get_fontno, env_space_width, env_half_narrow_space_width,
12185         env_narrow_space_width, symbol_fotno, is_good_fontno,
12186         get_bold_fontno, make_glyph_node): Use font_table_size rather than
12187         FONTS_MAX.
12188         (next_available_font_position): Never return 0.
12190 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
12192         * ps/tmac.ps: Add font translations for compatibility with dpost.
12194 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
12196         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
12197         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
12198         Move definitions baseline_sep, shift_down, column_sep,
12199         matrix_side_sep into...
12200         * eqn/box.c: Add them to param_table.
12201         * eqn/pbox.h: Add declarations to pbox.h.
12203         * troff/input.c (set_string): Cast value to unsigned char *.
12205         * troff/token.h (process_input_stack): Declare it static before
12206         declaring it a friend.
12208 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
12210         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
12211         and bottom.
12212         * dvi/devdvi/EX: Regenerate.
12214         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
12215         transparent.
12217 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
12219         * eqn/lex.c: In defaults_table, make definition of `dot' call
12220         `dot_def'.  Don't explicitly make it roman.  Similarily for other
12221         accents.
12223         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
12224         argument.
12225         (for_input::get, for_input::peek): Use this.
12226         (do_for): Add by_is_multiplicative argument.
12227         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
12228         Change semantic value of optional_by to be a double plus a flag
12229         saying whethet the by clause is multiplicative.
12231         * eqn/lex.c (get_delimited_text): Remember location of start of
12232         definition.  Improve error handling when EOF is encountered.
12234         * lib/font.h: Rename handle_x_command to
12235         handle_unknown_font_command.
12236         * lib/font.c (font::load): Call handle_unknown_font_command for
12237         any unknown command in the font description file.  Don't call
12238         handle_x_command. Include the name of the command in the argv.
12239         Improve message for unknown command after kernpairs or charset
12240         command.
12241         * ps/ps.c (ps_font::handle_x_command): Rename to
12242         handle_unknown_font_command.  Remove message about `x download'
12243         command.  Give error message for wrong number of arguments.
12244         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
12245         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
12246         handle_unknown_font_command. Give an error message for wrong
12247         number of arguments.  Rename design_size to designsize.
12248         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
12249         checksum', `designsize' instead of `design_size'.
12251 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
12253         * eqn/*.[chy]: Change underaccent to uaccent.
12255         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
12256         give it the same precedence as ACCENT.
12257         * eqn/other.c (make_underaccent_box): New function.
12258         * eqn/box.h: Declare it.
12259         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
12260         def_table.
12262 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
12264         * pic/pic.y (reset_all): New function. Called in rule for RESET.
12265         (parse_init): Call reset_all.
12266         (define_variable): When defining scale reset only those
12267         pre-defined variables that are scaled.
12268         (defaults_table): Add `scale' as non-scaled value.
12270         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
12271         together with the text; allow any number of positioning words;
12272         allow center as a positioning word.
12274         * pic/object.c (output::compute_scale): Get picture maximum height
12275         and width from variables called maxpswid and maxpsht.
12276         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
12278 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
12280         * pic/object.c (object_spec::make_text): Multiply textht by number
12281         of text items.
12283         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
12284         occur.
12285         (do_sprintf): New function.
12286         (pic.gperf): Add sprintf token.
12287         (text, sprintf): New rules.
12289         * pic/pic.y: `rand()' with no arguments returns a random number
12290         in the range [0,1).
12292         * pic/pic.y: Allow a bare expression to be an attribute: change
12293         precedences to support this.  Change optional_ordinal rule to
12294         optional_ordinal_last to avoid reduce/reduce conflict.
12295         * pic/object.c (object_spec::object_spec): Initialize direction.
12297         * pic/pic.y: Implement ^ operator meaning exponentiation.
12299         * troff/node.h: Add default argument to mount_font.
12300         * troff/node.c (font_position): Read an optional third argument
12301         giving the external_name.
12302         (mount_font): Add optional argument giving the external_name.
12303         (mount_font_not_translate): Have additional argument giving
12304         external name.  Use this name to load the font.  Pass both names
12305         to font_info::font_info.
12306         (font_info::font_info): Have additional argument giving
12307         external_name.
12308         (class tfont): New member external_name.
12309         (font_info::get_tfont): Use external name to construct tfont_spec.
12311 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
12313         * eqn/lex.c (init_table): Add argument giving device.  Define
12314         name of device to be "1".
12315         (do_ifdef): Counts as true if the argument has been defined with
12316         `define'.
12317         * eqn/main.c (main): Call init_table with device argument. Make
12318         device local to main.
12319         * eqn/eqn.h: Change declaration of init_table. Remove declaration
12320         of device.
12322         * pic/lex.c (get_delimited): Allow text to be delimited by
12323         matching {}s.  Don't recognize ending delimiter within a string.
12325         * troff/input.c (get_delim_name): New function.
12326         (token::next): Implement \C.
12328         * lib/font.c (font::load): Grok ---.  Add an alias for each
12329         character based on its code.
12330         (font::get_code_width): Deleted.
12331         * lib/font.h (class font): Declare font::number_to_index().
12332         Remove declaration of font::get_code_width.
12333         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
12334         to indices of named characters.
12335         (font::number_to_index): New function.
12336         * troff/input.c (font::number_to_index): New function.
12337         (get_charinfo_by_number, charinfo::get_number,
12338         charinfo::set_number): New functions.
12339         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
12340         (token::process, token::description, token::get_char,
12341         token::add_to_node_list, token::operator==): Handle
12342         TOKEN_NUMBERED_CHAR.
12343         * troff/charinfo.h: Declare get_charinfo_by_number,
12344         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
12345         charinfo class.
12346         (charinfo::numbered): New function.
12347         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
12348         * troff/env.h (class environment): Remove declaration of ...
12349         * troff/env.c (environment::make_numbered_char_node): Deleted.
12350         * troff/node.c (make_numbered_node): Deleted.
12351         (class numbered_glyph_node): Remove.
12352         (troff_output_file::put_char_width, troff_output_file::put_char):
12353         Handle numbered chars.
12354         (troff_output_file::numbered_char): Removed.
12355         (tfont::get_code_width): Removed.
12356         (make_glyph_node): Don't search special fonts for numbered
12357         characters.
12358         * troff/node.h: Remove declaration of make_numbered_node.
12359         * driver/input.c (do_file): Handle N command.
12360         * driver/printer.h: Add declaration of ...
12361         * driver/printer.c (printer::set_numbered_char): New function.
12362         * dvi/tfmtodit.c (main): Generate unnamed entries.
12363         * ps/devps/afmtodit: Likewise.
12364         * xditview/xtotroff.c (MapFont): Likewise.
12365         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
12367         * tbl/main.c (process_format): If multiple widths are specified
12368         for a column but all the widths are the same, don't give an error
12369         message.
12371         * tbl/table.c (table::do_row): If the current row is all lines and
12372         the stuff doesn't contains a line, mark the top of the row after
12373         printing stuff before the row.  If the current row is not all
12374         lines and the stuff doesn't contain a line, don't unnecessarily
12375         mark the top of the row before printing the stuff.
12376         
12377 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
12379         * troff/groff.h: Remove MAX_PATH.
12380         * troff/input.c (open_file): Dynamically allocate space for the
12381         path.
12382         (open_mac_file, process_macro_file): Corresponding changes.
12384 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
12386         * troff/node.h (class output_file): Make copy_file pure.  Add
12387         vspace method ifdef COLUMN. Add is_printing method.
12388         * troff/node.c: Add class printing_reg. Add class
12389         real_output_file. Derive other output_file classes from
12390         real_output_file; in these classes rename begin_page to
12391         really_begin_page, print_line to really_print_line, copy_file to
12392         really_copy_file, transparent_char to really_transparent_char.
12393         Move output_file::flush to real_output_file. Add printing member
12394         to class output_file.
12395         * troff/div.h: Remove printing member from top_level_diversion.
12396         Add vspace member function to class diversion ifdef COLUMN. Add
12397         some declarations ifdef COLUMN.
12398         * troff/div.c (top_level_diversion::copy_file,
12399         top_level_diversion::transparent_output,
12400         top_level_diversion::output): Don't test printing member before
12401         output.
12402         * troff/input.c: Handle initial variable_space_request ifdef
12403         COLUMN.
12404         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
12405         but comment it out.
12407 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
12409         * troff/div.c (diversion::need): Make any space forced.  If we
12410         sprung a trap, set truncated_space to minus the distance to the
12411         trap and set needed_space to the amount that was needed.
12412         (top_level_diversion::space): A forced space turns no_space_mode
12413         off.
12414         (class constant_vunits_reg): New class.
12415         (init_div_requests): Implement number registers .trunc and .ne
12416         using constant_vunits_reg.
12417         (class truncated_space_reg): Deleted.   
12419         * troff/div.h: Don't have a no_space_mode member in diversion.
12420         Instead have it in top_level_diversion.
12421         * troff/div.c (diversion::diversion): Don't initialize
12422         no_space_mode.
12423         (top_level_diversion::top_level_diversion): Initialize
12424         no_space_mode.
12425         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
12426         (macro_diversion::output): Don't clear no_space_mode.
12428         * troff/input.c (diverted_space_node::reread): Don't call
12429         environment::do_break.  In fill mode, act like a blank line.
12430         (diverted_copy_file_node::reread): Don't call
12431         environment::do_break.
12433         * troff/div.c (blank_line): New function.
12434         * troff/div.h: Declare it.
12435         * troff/input.c (process_input_stack): Call it.
12437         * troff/div.c (truncated_space_reg::get_string): New function.
12438         (init_div_requests): Bind to .trunc.
12439         (space_request, top_level_diversion::space,
12440         top_level_diversion::output, macro_diversion::space,
12441         macro_diversion::output): Update truncated_space.
12442         (macro_diversion::output): Redo calculations when trap sprung.
12443         (macro_diversion::output, macro_diversion::space): No need for
12444         trap_flag.
12446         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
12447         after truncating post line spacing.
12449 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
12451         * ps/devps/prologue (MF, SF): Make them work even if setfont is
12452         defined as a procedure rather than as an operator.
12454 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
12456         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
12458 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
12460         * troff/div.c (top_level_diversion::output): Merge
12461         output_file::print_line and output_file::end_of_line member
12462         functions.
12463         * troff/div.h (class output_file):
12464         * troff/node.c (troff_output_file::print_line,
12465         troff_output_file::end_of_line, output_file::end_of_line,
12466         ascii_output_file::print_line, suppress_output_file::print_line):
12467         Corresponding changes.  
12469 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
12471         * troff/input.c (token::next): Don't give a warning for `\.'.
12473         * troff/env.c (environment::get_center_lines): New function.
12474         (init_env_requests): Bind number register .ce to it.
12475         * troff/env.h: Declare it.
12476         * tbl/table.c (table::init_output): Define reset macro to restore
12477         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
12478         Then do .ce 0.
12479         (table::print): If center option not given, then imply center
12480         option if SAVED_CENTER_REG > 0.
12482 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
12484         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
12485         Troff.ps from DOWNLOAD.
12486         
12487         * troff/Makefile: Change comment in DEFINES to avoid confusing
12488         System V make.
12490         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
12491         code.  Don't try to catch errors with stopped.
12492         (check_line_lengths): New function.
12493         * ps/devps/prologue (EXEC): Deleted.
12494         (EBEGIN, EEND): New procedures.
12496 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
12498         * troff/input.c: Include request.h before node.h.
12499         * troff/node.c: Likewise.
12500         * troff/env.c: Likewise.
12501         * troff/div.c: Likewise.
12502         * troff/node.h (class special_node): Store argument as a macro
12503         rather than a char *.
12504         * troff/node.c (special_node::special_node, special_node::copy):
12505         Grok this.
12506         (special_node::~special_node): Deleted.
12507         (special_node::tprint): Deleted.
12508         (special_node::tprint_start, special_node::tprint_end,
12509         special_node::tprint_char): New functions.
12510         (troff_output_file::special): Deleted.
12511         (troff_output_file::start_special, troff_output_file::end_special,
12512         troff_output_file::special_char): New functions.
12513         * troff/input.c (special_node::tprint): New function.
12514         (do_special): Use macro not char *.
12515         (do_transparent_macro): Deleted.
12516         (token::next): Don't call do_transparent_macro.
12518         * troff/input.c (token::next): Add 'Y' case.
12519         (do_transparent_macro): New function.
12520         * troff/node.c (troff_output_file::special): Handle newlines with
12521         argument using new continuation convention.
12522         * driver/input.c (get_string): Cope with continuation convention.
12523         (do_file): Don't call skip_line after calling get_string(1).
12524         * ps/ps.c (ps_printer::special, ps_printer::do_import,
12525         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
12526         arg.
12527         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
12528         with +.
12530 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
12532         * troff/input.c (asciify): By default, illegal input characters
12533         should return empty string.
12535         * troff/input.c (copy_file): Handle first page transition like title.
12536         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
12538         * troff/input.c (token::next): Improve error message for EOF after
12539         escape character.
12540         (input_char_description): New function.
12541         (get_char_for_escape_name): Use input_char_description.
12542         (token::next): Warn about unrecognized escape sequences.
12543         (warning_table): Add WARN_ESCAPE.
12544         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
12545         accordingly.
12547         * troff/token.h: Remove declaration of process_input_stack.
12549         * troff/input.c: Remove declaration of init_hyphen_requests.
12550         * troff/request.h: Correct spelling in declaration of same.
12552         * troff/input.c (token::next): Check whether escape_char is 0.
12554 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
12556         * groff.c (main, usage, help): Implement -P and -L options.
12557         * groff.sh: Likewise.
12559         * troff/input.c (token::next): Use some gotos to avoid code
12560         duplication.
12562         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
12563         Avoid calling symbol::symbol if name empty.
12565 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
12567         * troff/input.c (init_input_requests): Make \n(.x return the major
12568         version number and \n(.y return the minor version number.
12569         * troff/Makefile: Construct file majorminor.c defining
12570         major_version and minor_version automatically from ../VERSION.
12572         * troff/node.c (class glyph_node): Make operator new and operator
12573         delete public.
12574         (class ligature_node): Similarily.
12576         * troff/input.c (operator==(const macro &, const macro &)): New
12577         function.
12578         (non_interpreted_node::same): Use this.
12579         (string_iterator::string_iterator): Make macro& argument const.
12581         * troff/input.c (input_iterator::get): New function. Don't make
12582         asciify_macro or class non_interpreted_node friends of class
12583         input_iterator.
12584         (non_interpreted_node::interpret): Use input_iterator::get.
12585         (asciify_macro): Likewise.
12587         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
12588         ~non_interpreted_node): Deleted.
12589         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
12590         Deleted.
12592         * troff/symbol.h: Make all symbol member functions const.
12594         * lib/strtol.c: New file.
12595         * lib/Makefile: Add strtol.c.
12596         * Makefile: Define STRTOL as strtol.o to include strtol in
12597         libgroff.a.
12599 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
12601         * pic/troff.c (troff_output::simple_circle): Divide by scale.
12603 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
12605         * troff/input.c (do_special): Use input_level.
12607         * troff/token.h (TOKEN_BACKSPACE): New token.
12608         (token::backspace): New function.
12609         * troff/input.c (token::description, token::next, token::process):
12610         Grok TOKEN_BACKSPACE.
12611         (do_special): Turn TOKEN_BACKSPACE back into \b.
12613         * troff/token.h (token::leader): New function.
12614         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
12616         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
12618         * troff/input.c (do_special): Use token::description in error
12619         message.
12621 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
12623         * troff/input.c (decode_args): Combine quoted and
12624         quote_input_level variables. Make it a for (;;) loop.
12626         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
12628         * troff/input.c (read_long_escape_name): The test for whether to
12629         expand buffer was off by 1.
12630         (read_string): Similarily.
12632 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
12634         * troff/input.c: Use `const int' rather than `static const int'.
12636         * troff/div.h (diversion::copy_file): Declare as pure virtual.
12637         (macro_diversion::copy_file): New function.
12638         * troff/node.h: New class diverted_copy_file_node.
12639         * troff/node.c: Implement it.
12640         * troff/input.c (copy_file): Use diversion::copy_file. Handle
12641         first page transition by pushing a diverted_copy_file_node.
12642         * troff/input.c (token::next, process_input_stack): Don't handle
12643         COPY_FILE_REQUEST.
12645 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
12647         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
12648         whether space widths need adjusting.
12650         * troff/charinfo.h: Generalize translated_to_space to
12651         special_translation so as to allow translation to \&.
12652         * troff/input.c (translate): Allow translation to \&.
12653         (charinfo::*): Corresponding changes.
12654         * troff/node.c (make_node, node::add_char): Corresponding changes.
12655         * troff/node.h (dummy_node::dummy_node): Allow optional first
12656         argument.
12658         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
12659         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
12660         TOKEN_REQUEST.
12661         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
12662         TOKEN_REQUEST with an argument of TITLE_REQUEST.
12663         (token::process): Grok that.
12664         * troff/input.c (copy_file): Handle first page transition like
12665         title by pushing a COPY_FILE_REQUEST cookie.
12666         (token::next, process_input_stack): Grok that.
12667         * troff/node.h (output_file::copy_file): Add x and y arguments.
12668         Make it non-pure.
12669         * troff/div.c (top_level_diversion::copy_file): Supply them.
12670         * troff/node.c (troff_output_file::copy_file): Add x and y
12671         arguments; moveto specified position.  Invalidate font_position
12672         array after copying file.
12673         (output_file::copy_file): New function.
12674         (suppressed_output_file::copy_file, ascii_output::copy_file):
12675         Removed.
12676         * troff/input.c (transparent_file): New function.
12677         (init_input_requests): Bind to "trf".
12678         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
12679         (process_input_stack): Likewise.
12681         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
12683         * troff/node.c (init_node_requests): New number registers .kern
12684         pointing to global_kern_mode, and .lg pointing to
12685         global_ligature_mode.
12687         * troff/node.c (ligature): Don't change it if we get a bad
12688         integer.
12690         * troff/input.c (do_define_string): Don't strip tabs.
12692         * troff/input.c (asciify_macro): Make the string_iterator auto.
12694         * troff/node.c (init_font_requests): Rename to...
12695         (init_node_requests):
12696         * troff/node.h: Change declaration.
12697         * troff/input.c (main): Change call.
12699         * troff/input.c (node::reread, diverted_space_node::reread): New
12700         methods.
12701         (process_input_stack): Call reread rather than
12702         get_diverted_space_node.
12703         * troff/node.c (node::get_diverted_space_node,
12704         diverted_space_node::get_diverted_space_node): Removed.
12705         * troff/node.h: Declare reread methods instead of
12706         get_diverted_space_node methods. Make `n' member private.
12707         * troff/input.c: (token::diverted_space): Removed.
12708         * troff/token.h: Removed declaration.
12709         
12711 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
12713         * eqn/script.c (script_box::compute_metrics): Don't let
12714         SUP_RAISE_FORMAT become negative.
12716         * tbl/table.c (table::do_row): Entries that don't end in the
12717         this row shouldn't make the row non-blank.
12718         
12719         * tbl/table.c (table::make_columns_equal): Only set the width of
12720         columns which are marked as equal.
12721         
12722         * tbl/main.c (process_data): Before issuing excess data error,
12723         if last character was a newline unget it; then get it again after
12724         the error.  Also include the contents of the entry in the message.
12726         * groff.c: New file.
12727         * Makefile: Build groff from groff.c.  Make it possible to use
12728         either groff.sh or groff.c as groff.
12729         * Makefile.bd: Similarily.
12731 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
12733         * groff.sh: Don't delay expansion of $@ in assignment to files.
12734         Remove occurrences of \".
12736 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
12738         * all Makefiles: Simplify and rearrange.
12740         * Makefile: Handle fmod like malloc.
12741         * lib/Makefile: Similarily.
12742         * lib/fmod.c: Remove #ifdef NEED_FMOD.
12744         * Makefile: Rename OPTIMISE to OPTIMIZE.
12746         * groff.sh: Remove assignment to PATH.
12747         * Makefile: Remove SHPATH variable.
12748         * Makefile.bd: Similarily.
12750         * groff.sh: Add -V option to print the pipeline instead of
12751         executing it.
12753 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
12755         * lib/font.c: Split off file searching into ...
12756         * lib/fontfile.c: New file.
12758         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
12760 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
12762         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
12763         Also change misleading comment.
12764         (table::do_vspan): Change similarily misleading comment.
12765         * tbl/main.c (process_data): A format row with an explicit `s'
12766         uses up a data line, even if all the other columns are `_' or `='.
12768         * troff/input.c (token::description): Fix description of
12769         TOKEN_DUMMY and TOKEN_EMPTY.
12771 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
12773         * groff.sh: Fix description of -Z in help message.
12775 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
12777         * pic/object.c (object_spec::make_object): Allow negative and zero
12778         line thicknesses.
12779         * pic/pic.y: Give linethick default value of -1.0.
12780         * pic/troff.c (troff_output::troff_output): Initialize
12781         last_line_thickness to BAD_THICKNESS.
12782         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
12783         (troff_output::line_thickness): Canonicalize negative thicknesses
12784         to RELATIVE_THICKNESS.
12785         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
12786         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
12787         to -1.0.
12788         (tex_output::start_picture): Set pen_size to -2.0.
12790         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
12791         0, then use 0 linewidth.
12792         (ps_printer::ps_printer): Initialize line_thickness to -1.
12794         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
12796         * ps/devps/symbolchars: Remove `or'.
12797         * ps/tmac.ps: Implement \(or with .char.
12799         * ps/devps/symbolchars: Move most characters into textmap.
12800         * ps/devps/textmap: Add names for troff bracket characters. Remove
12801         ul, ru, br, bv.
12803         * ps/devps/TSymbol.ps: Removed.
12804         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
12805         * ps/tmac.ps: Do with .char what TSymbol did.
12806         * ps/devps/download: Remove TSymbol.
12808         * ps/devps/T: Removed.
12809         * ps/devps/Troff.ps: Removed.
12810         * ps/devps/Troff.afm: Removed.
12811         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
12812         * ps/devps/download: Remove Troff.
12813         * ps/devps/FontMakefile: Remove T target.
12814         * ps/devps/DESC-A4: Remove T from font list.
12815         * ps/devps/DESC-letter: Likewise.
12817         * troff/input.c (macro_to_node): Rename to ...
12818         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
12819         character's definition while processing it.
12820         * troff/node.c (node::add_char, make_node): Change calls to
12821         macro_to_node accordingly.
12823         * troff/input.c (token::next): Translate \_ to \(ul.
12825         * tty/devascii/R.proto: Add `|'.
12826         * tty/devlatin1/R.proto: Likewise.
12828 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
12830         * man: Put the version number in all the man pages.
12832 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
12834         * Makefile.bd: New file.
12835         * README.bd: New file.
12837         * VERSION: New file.
12838         * lib/version.c: Removed.
12839         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
12840         in clean target.
12842         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
12843         environment variable.
12845         * all Makefiles: Split install target into install.bin for
12846         binaries, and install.nobin for everything else.
12847         * Makefile: Add bindist target.
12849         * man/afmtodit.man: New file.
12850         * man/Makefile: Add afmtodit.n to MAN1PAGES.
12851         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
12852         in BINDIR.
12853         * ps/Makefile: Pass BINDIR to make install in devps.
12855         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
12856         the space character.
12858         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
12860 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
12862         * ps/ps.c: Redo font downloading.
12863         * ps/devps/download: New file.
12864         * ps/devps/Makefile: Add download to DEVICEFILES.
12865         * ps/devps/afmtodit: Remove -d option.
12866         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
12867         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
12868         * ps/devps/zapfdr.ps: Likewise.
12869         * ps/devps/TSymbol.ps: Likewise.
12871 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
12873         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
12875 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
12877         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
12878         then strip the first line if it starts with %.
12879         * Makefile: Add a comment about this.
12881         * man/tfmtodit.man: New file.
12882         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
12883         * dvi/Makefile: Install tfmtodit in BINDIR.
12885         * dvi/tfmtodit.c (usage): Mention -v option.
12887 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
12889         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
12890         * troff/node.c (troff_output_file::transparent_char): Don't call
12891         flush_tbuf.
12893         * eqn: Add check_tabs method to most box classes.
12894         * eqn/box.c (box::top_level): Call check_tabs.
12896         * eqn/script.c (script_box::output): Use \Z.
12897         * eqn/limit.c (limit_box::output): Use \Z.
12899         * eqn/box.c (box::top_level): Use itoa.
12901 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
12903         * dvi/tmac.dvi: Add font translations for CR, C, TT.
12904         * dvi/devdvi/Makefile: Don't make links to CW.
12906         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
12907         HX, HD.
12908         * xditview/tmac.X: Likewise.
12910         * troff/node.c: Add font translation feature.
12911         (get_font_translation): New function.
12912         (symbol_fontno): Translate the font name.
12913         (mount_font_no_translate): Rename to mount_font to this.
12914         (mount_font): New function.
12915         (font_family::make_definite): Call mount_font_no_translate instead
12916         of mount_font.
12917         (mount_style): Translate the font name.
12918         (font_translate): New function.
12919         (init_font_requests): Bind "ftr" to font_translate.
12921         * ps/devps/prologue (SN): New procedure that rounds a position to
12922         the nearest (pixel + (.25,.25)).
12923         (DL): Use SN to round endpoints.
12925         * lib/version.c: Changed version to 0.5.
12927 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
12929         * Makefile: Move definition of PAGE to the very beginning, so that
12930         people are less likely to miss it.
12932 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
12934         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
12936         * troff/env.c (environment::choose_breakpoint): Make `can't find
12937         breakpoint' error a warning of type WARN_BREAK.  Change message to
12938         `can't break line'.
12939         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
12940         code 040000.
12941         * troff/input.c: Add WARN_BREAK to warning_table.  Include
12942         WARN_BREAK in DEFAULT_WARNING_MASK.
12944         * tty/tmac.tty: Add definition of \(+-.
12946         * groff.sh: Remove `--' option to set command.
12948         * dvi/devdvi/texsy.map: Remove duplicate md entry.
12950         * ps/devps/eqnchar: Better definition of cdot using md.
12951         * dvi/devdvi/eqnchar:  Likewise.
12952         * xditview/devX100/eqnchar:  Likewise.
12953         * xditview/devX75/eqnchar: Likewise.
12954         * eqn/lex.c: Add definition of cdot.
12956 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
12958         * troff/input.c (get_optional_char): New function.
12959         * troff/input.c (set_page_character): Use get_optional_char(),
12960         rather than has_arg() and tok.get_char(1).
12961         * troff/env.c (tab_character, leader_character, hyphen_char,
12962         field_characters): Likewise.
12963         (margin_character): Likewise.  Also always delete the
12964         margin_character_node.
12966         * troff/input.c (token::get_char): Use token::description.
12968         * troff/input.c (has_arg): Don't skip over tab and \}.
12969         * troff/number.c (start_number): Give a warning if the number
12970         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
12972 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
12974         * troff/input.c (empty_name_warning, non_empty_name_warning): New
12975         functions.
12976         (get_name, get_long_name): Use these.  Rename `warn' argument to
12977         `required'.
12979         * troff/node.c (get_fontno): Test that the symbol is not null.
12981         * troff/input.c (token::description): New function.
12982         * troff/number.c (parse_term): Use token::description in `numeric
12983         expression expected' message.
12984         * troff/groff.h: Add WARN_MISSING.
12985         * troff/number.c (start_number): New function.
12986         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
12987         get_incr_number): Use start_number().
12988         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
12989         default.
12990         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
12991         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
12992         token::descripion.
12993         * troff/input.c (token::get_char): Use WARN_MISSING.
12994         * troff/input.c (token::delimiter): Use token::description.
12995         * troff/env.c (environment_switch): Back out Aug 3 change.
12996         * troff/input.c (has_arg): Skip over \}s and tabs but give a
12997         warning.
12998         * troff/token.h (token::tab): New function.
12999         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
13000         * troff/reg.c (alter_format): Likewise.
13001         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
13003 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
13005         * troff (most files): Redo warnings. Divide warnings into various
13006         categories; warning() has an additional first argument indicating
13007         the category it falls into.
13008         * troff/input.c (main): -w now takes an argument. New option -W.
13009         (enable_warning, disable_warning): New functions.
13011         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
13012         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
13014 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
13016         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
13017         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
13018         * xditview/devX75/eqnchar: Likewise.
13019         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
13021         * eqn/other.c: When bar or over applies to a single character
13022         don't produce an overline_box or an underline_box. Instead produce
13023         an accent_box or an underaccent_box, with the accent a line
13024         whose width is accent_width.  New classes underaccent_box,
13025         overline_char_box and underline_char_box.
13026         * eqn/box.h: Move overline_box, underline_box, accent_box class
13027         declarations into eqn/other.c. Add declarations of
13028         make_underline_box, make_overline_box, make_accent_box.
13029         * eqn/eqn.y: Call make_overline_box, make_underline_box
13030         make_accent_box instead of constructors.
13031         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
13033         * eqn/other.c: Add accent_box::~accent_box.
13034         * eqn/box.h: Declare it.
13036         * groff.sh: With -Tps, use eqn -D.
13038         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
13039         rather than \l.
13040         (underline_box::output): Similarily.
13041         (accent_box::output): Use \Z.
13043         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
13044         bit smaller.)
13046 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
13048         * troff/div.c (top_level_diversion::transparent_output(unsigned
13049         char)): Use asciify.
13050         * troff/input.c (asciify): Don't make it static.
13051         * troff/token.h (asciify): Declare it.
13052         
13053         * troff/input.c (get_name, get_long_name, token::get_char,
13054         token::delimiter): Add an extra default argument which says
13055         whether a warning should be printed.
13056         * troff: Pass a non-zero argument to one of these rather than
13057         printing a warning directly.
13059 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
13061         * troff: Consistently use symbol::is_null.
13063         * troff/dictionary.h: Move some inline functions into
13064         dictionary.c.
13066         * troff/request.h: Move inline functions into input.c.
13067         (request_or_macro::invoke): Make it pure.
13069         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
13070         * troff/input.c (init_input_requests): Use class constant_int_reg.
13071         (class compatible_reg): Deleted.
13072         * troff/div.c (init_div_requests): Use class constant_int_reg.
13073         (class last_post_line_extra_space_reg): Deleted.
13075         * troff/env.c (tab_character): Don't change the tab character if
13076         we get an invalid argument.
13077         (hyphen_char): Similarily.
13079         * troff/reg.c (alter_format): Check that nm is not null.
13081         * Makefile, groff.sh: Make it possible to customize the commands
13082         used for printing PostScript and dvi files. Also make it possible
13083         to customize the path used by groff.sh.
13085         * eqn/eqn.y: Make `left' right associative.
13087 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
13089         * pic/pic.h: Added definition of M_SQRT2 for those systems that
13090         don't have it.
13092         * pic/pic.h: Removed definition of INT_MAX.
13094         * troff/node.c (italic_corrected_node::vertical_extent): Omit
13095         `return'.
13097         * troff/input.c (token::next):  Handle \R like \n.
13099 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
13101         * ps/tmac.pc (PSPIC): Simplify.
13103         * troff/env.c (tab_stops::to_string):
13104         * pic/pic.y (object_type_name):
13105         * pic/troff.c (simple_output::line):
13106         * pic/tex.c (tex_output::spline):
13107         * pic/object.c (object_spec::make_object):
13108         * tbl/main.c (process_data):  Add cases to switch statements to
13109         avoid cfront warnings. (Some of these are spurious, since the
13110         switch already has a default case.)
13112         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
13113         `ps-'.  Don't test systat; instead check number of arguments to
13114         ps-bb.
13116 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
13118         * macros/tmac.e: Do not decrease the page offset by 0.5i.
13120         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
13121         Unlink the file as soon as we have opened it, so that we don't
13122         have to bother with signal handlers.
13123         (handler): Deleted.
13124         (fatal_error_exit): Deleted.
13125         (main): Don't call signal.
13127         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
13128         can be ignored.
13129         * dvi/devdvi/Makefile: Use the -k option with S and MI.
13131         * pic/pic.y:  If there is a label, or an nth construction before
13132         the first `.' in the argument to `with', ignore it and generate a
13133         warning.
13134         * pic/lex.c (lex_warning): New function.
13136         * tbl/table.c (table::init_output): In section keep and release
13137         macro, use 0 indent when diverting and the correct indent when
13138         rereading.
13140         * troff/input.c (interpolate_number_format): Do not interpolate
13141         anything if the number register is not defined.
13143         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
13145 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
13147         * ps/devps/prologue (PICTURE): Set components of graphics state to
13148         their default values.
13150         * ps/devps/text.enc: Add trademark
13151         * ps/devps/textmap: Add names for club, spade, heart, diamond,
13152         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
13153         * ps/devps/symbolchars: Add names for summation and product.
13155         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
13156         suchthat. Add pp. Add upper-case letters.
13158         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
13159         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
13160         Upsilon.
13162         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
13163         rA (right angle bracket) to ra.  Introduce names for double-headed
13164         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
13165         * ps/devps/textmap: Likewise for ps device.
13166         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
13167         * tty/devascii/R.proto: Rename lA to la and rA to ra.
13168         * tty/devascii/R.proto: Likewise.
13169         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
13170         \(uA, \(dA.
13171         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
13173         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
13175         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
13176         def_table.
13178 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
13180         * troff/div.c (when_request): Use symbol::is_null rather than
13181         has_arg to determine whether we have an argument.
13182         (change_trap): Remove the trap if we get an invalid number. Give
13183         an error if we don't get at least the macro name.
13184         (diversion_trap): Remove trap if we get an invalid name or number.
13186         * troff/env.c (environment_switch): Pop if we get an invalid
13187         symbol or numeric expression.
13189         * troff/input.c (do_define_macro):  If EOF is encoutered while
13190         defining the macro, do tok.next() before returning.
13192         * troff/token.h (has_arg): Move definition from here, to ...
13193         * troff/input.c (has_arg): ... here
13195         * troff/env.c (space_size): Do nothing if we get an invalid argument.
13196         * troff/input.c (shift): Likewise.
13198         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
13199         for `.c'.
13201         * pic/troff.c (troff_output::start_picture):  Comment out calls to
13202         `..'.
13204         * eqn/main.c (do_file): Subtract 1 from current_lineno if
13205         interpret_lf_args succeeds.
13207         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
13208         \\.  This avoids problems with \$N.
13210         * groff.sh: Pass -C to preprocessors.
13212         * lib/lf.c (interpret_lf_args):  Be more flexible.
13214         * tbl/main.c (main): Add -C option.
13215         (table_input::get): Do not recognize TE if followed by character
13216         other than a space or newline unless -C option given.
13217         (process_input_file): Likewise for lf, TS.
13218         (process_data): Likewise for lf in text blocks.
13220         * eqn/main.c (main): Add -C option.
13221         (do_file): Don't recognize EQ, EN or lf if followed by character
13222         other than space or newline unless -C option given.
13223         * eqn/lex.c (file_input::read_line): Similarily.
13224         * eqn/eqn.h: Declare compatible_flag.
13226         * etc/soelim.c (main): Add -C option.
13227         (interpret_lf_args): Use version in libgroff.
13228         (do_file):
13230         * pic/main.c (main): Add -C option, which sets compatible_flag.
13231         (top_input::get), (top_input::peek):  If -C option not given,
13232         do not recognize .PS/.PE/.PF/.lf if followed by a character
13233         other than space or newline.
13234         * pic/lex.c (file_input::read_line): Similarily.
13235         * pic/pic.h: Add declaration of compatible_flag.
13237 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
13239         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
13241         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
13242         derived from node.  New class space_char_hmotion_node.
13243         * troff/input.c (asciify_macro): New function.
13244         * troff/input.c (init_input_requests): New request `asciify' bound
13245         to asciify_macro.
13246         * macros/mm.diff: New file.
13247         * Makefile:  In install.mm target use `patch' to apply
13248         macros/mm.diff.
13250         * troff/input.c (macro::print_size): Just print the size in bytes.
13252         * troff/div.c (return_request): Correct the argument
13253         interpretation.
13255 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
13257         * troff/node.h (class composite_node): Add sz member.
13258         * troff/node.c (composite_node::size): Return sz.
13259         * troff/input.c (macro_to_node):  Use the initial size in the
13260         environment as the size of the composite_node.
13262         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
13263         default.
13265 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
13267         * troff/div.c (change_trap): If we get a bad number expression,
13268         do nothing.
13270 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
13272         * lib/matherr.c (matherr): Define this only if math.h defines
13273         TLOSS.
13275 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
13277         * troff/div.c (macro_diversion::distance_to_next_trap): If there
13278         no diversion trap return vunits(INT_MAX - vresolution).
13280 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
13282         * troff/input.c (do_zero_width): New implementation that doesn't
13283         use a temporary environment. Use instead:
13284         (token::add_to_node_list): New function.
13285         * troff/env.c (environment::get_prev_char_height),
13286         (environment::get_prev_char_height),
13287         (environment::get_prev_char_skew): New functions.
13288         (environment::get_prev_char): New function.
13289         (environment::get_prev_char_width): Change to use get_prev_char.
13290         (init_env_request): Implement new registers .cht, .cdp, .csk.
13291         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
13292         \Z being processed in a separate environment.
13294 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
13296         * tbl/table.c: Removed TABLE_BOTTOM_REG.
13298         * tbl/table.c (table::init_output): In the section release macro,
13299         give a warning message if the section won't fit on one page.
13301         * tbl/table.c (table::do_top): Emit table keep only if table is
13302         boxed.
13303         (table::do_bottom): Likewise for table release.
13304         (table::table), (table::add_vertical_rule):  Remove reference to
13305         keep member.
13306         * tbl/table.h: Remove keep member.
13308         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
13309         SECTION_RELEASE_MACRO, if there's not enough space before the next
13310         trap to output the diversion, call T# ourselves, set
13311         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
13312         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
13313         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
13314         vertical position and return to it before turning traps on again.
13315         
13316 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
13318         * troff/node.c, troff/node.h: In classes derived from node,
13319         replace prev_char_width method by last_char_node method.
13320         * troff/env.c (environment::get_prev_char_width): Use
13321         node::last_char_node rather than node::get_prev_char_width.
13323         * Makefile: Added comment about -fno-inline on 68030-based
13324         Apollos.
13326         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
13327         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
13328         expressions using sizeof to int.
13329         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
13331         * macros/tmac.e (TS):  Don't move @f back past the current
13332         position.
13334 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
13336         * ps/ps.c (main): Buffer stderr.
13337         * dvi/dvi.c (main): Likewise.
13338         * tty/tty.c (main): Likewise.
13340         * ps/ps.c (ps_printer::do_import): Improve error handling.
13342         * troff/input.c (abort_request): Use asciify.
13344         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
13345         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
13346         type of first argument int rather than char.  This works around a
13347         bug on the 68030 based Apollo using g++ 1.37.1.
13349         * tbl/table.h (class table): Add `keep' member.
13350         * tbl/table.c (table::table): Initialize `keep'.
13351         (table::add_vertical_rule): Set `keep' to 1.
13352         (table::do_top): Only emit table keep macro is `keep' is non-zero.
13353         (table::do_bottom): Likewise for table release macro.
13354         (table::do_row): Emit section keep macro even if the row is 0.
13356 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
13358         * macros/tmac.e (@C): Preserve the font family across the change
13359         in environments.
13361 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
13363         * lib/font.c: Initialize font::hor and font::vert to 1.
13364         (font::load_desc): Check the values of font::hor and font::vert.
13366         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
13367         be included in a C compilation.
13368         (iftoa): Use INT_DIGITS. Include lib.h.
13369         (itoa): Likewise.
13370         (as_string): Likewise.
13371         * tbl/table.c: Removed definition of INT_DIGITS.
13372         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
13373         * troff/input.c (input_input_requests): Likewise.
13374         * ps/ps.c (make_encoding_name): Likewise.
13375         (ps_printer::set_style): Likewise.
13376         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
13378         * tty/devascii/R.proto: Map fm onto '.
13379         * tty/devlatin1/R.proto: Likewise.
13381 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
13383         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
13384         argument to \w is at a different input level.
13386         * tbl/table.c (table::init_output): Define a new macro
13387         REPEATED_VPT_MACRO, like vpt but if in a diversion also
13388         transparently outputs itself.
13389         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
13390         vpt.
13391         (table::do_row): Likewise.
13393         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
13394         TRANSPARENT_STRING_NAME.
13396         * tbl/table.c (table::init_output): In the table release macro
13397         print an error message and don't produce any output if after
13398         issuing the need request the table still will not fit.  Also
13399         remove the diversion after bringing it back.
13401         * tbl/table.c (table::init_output): Define a new macro
13402         REPEATED_MARK_MACRO, like mk but if in a diversion also
13403         transparently outputs itself.
13404         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
13405         is necessary because .TH might not call .T#.
13406         (table::do_top): Likewise TOP_REG.
13407         (table::define_bottom_macro): If TOP_REG is no longer valid, use
13408         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
13409         table header might contain just the two top rules.
13411 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
13413         * troff/div.c: Implement new request `ptr' to print all traps.
13415         * troff/env.c (init_env_requests): Implement `.tabs' reg with
13416         init_string_env_reg.
13417         * troff/env.c (class tab_reg): Deleted.
13419 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
13421         * troff/div.c: New number register .pn returns the number of the
13422         next page as set by the pn request.
13424         * macros/tmac.an: Redid headers and footers.  Number each manual
13425         entry starting from 1 unless \nC is > 0, like Sun.  Added an
13426         optional 5th argument to .TH which specifies the manual name and
13427         appears in the center of the header.  Understand the X, P and D
13428         registers like Sun.
13430 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
13432         * troff/env.c (init_env_requests): New number register `.lt' to
13433         return the title length.
13435         * troff/node.h (class transparent_dummy_node): New class.
13436         * troff/node.c (class transparent_dummy_node): Provide member
13437         functions. 
13438         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
13439         than a dummy_node.
13441         * troff/input.c (token::next): New escape sequence \).
13442         * troff/input.c (get_copy): Recognize \) in copy mode.
13444         * troff/input.c (input_stack::clear): New function.
13445         * troff/input.c (exit_request): Use input_stack::clear.
13447         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
13448         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
13450         * troff/env.c: Move set_page_character to input.c.  Move
13451         page_character to input.c also.
13452         * troff/env.c (title): Split off the reading of the parts of the
13453         title into read_title_parts.
13454         * troff/input.c (read_title_parts): New function.  Check the
13455         input_level when testing whether a token matches the delimiter.
13457         * troff/input.c (exit_request): New function.
13458         * troff/input.c (init_input_requests): Bind ex request to
13459         exit_request rather than exit_groff.
13461         * troff/input.c (exit_groff): Call tok.next() before
13462         process_input_stack().
13464 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
13466         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
13467         * troff/env.h: ditto.
13468         * troff/input.c: ditto.
13470         * troff/env.c (environment::is_empty): Test pending_lines.
13472         * troff/env.c (environment::have_pending_lines): Removed.
13474         * troff/input.c: Add request to flush pending lines from the
13475         environment.
13477         * troff/env.c, troff/env.h: Add automatic widow control feature.
13479         * troff/input.c (exit_groff):  Do process_input_stack() after
13480         do_break() but before setting exit_flag to 2.
13482         * troff/input.c: Remove FLUSH_PENDING_LINES and
13483         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
13484         environment after END_TRAP token seen, but only if there aren't
13485         any more traps still unfinished.
13486         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
13488 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
13490         * troff/env.c: Rename the `retain_size' member of class
13491         pending_output_line to `no_fill'.
13493         * troff/env.c (title): When the line is output, make the
13494         retain_size argument !fill.
13496         * troff/node.h: Add `hyphenated' member to struct breakpoint.
13497         * troff/node.c (space_node::get_breakpoints),
13498         (dbreak_node::get_breakpoints):  Fill this in.
13499         * troff/env.c:  Allow specification of maximum number of
13500         consecutive hyphenated lines.
13502         * troff/env.c (environment::is_empty): Add test for !current_tab.
13504 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
13506         * troff/env.c (environment::hyphenate_line): Don't completely give
13507         up if the word is not to be hyphenated; continue so that breaks
13508         can be made at break_char_node's.
13510         * lib/lib.h: Only define INT_MAX if it's not already defined;
13511         undef INT_MIN if it's already defined.
13513         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
13515         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
13516         This works around a bug in AT&T C++ 2.0 used with an ANSI C
13517         compiler.
13518         
13519         * macros/tmac.an (an-header): Set no-space mode.
13521         * macros/tmac.an (TH): Start a new page if necessary.
13523         * Started using ChangeLog at version 0.4.
13525 Local Variables:
13526 version-control: never
13527 coding: latin-1
13528 End: