* REVISION: Increased to 2.
[s-roff.git] / ChangeLog
blob9d3d984c77a857e6930f8b0ba67da84d713e5510
1 2002-10-08  Werner LEMBERG  <wl@gnu.org>
3         * REVISION: Increased to 2.
5 Version 1.18.1 released
6 =======================
8 2002-10-08  Werner LEMBERG  <wl@gnu.org>
10         * doc/webpage.ms, NEWS: Updated.
12 2002-10-07  Werner LEMBERG  <wl@gnu.org>
14         * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
15         suppress additional whitespace after the header.
17         * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
18         with NetBSD.
20         * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
22 2002-10-07  Ruslan Ermilov  <ru@FreeBSD.org>
24         * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
25         (Dt): Use it to improve language localization (especially Russian
26         and French).
28 2002-10-07  Daniel Senderowicz  <daniel@synchrods.com>
30         * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
31         * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
32         drawing commands.
33         * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
34         curve type.
35         Call `picurve' for BSPLINE.
36         (HGPrintElt): Handle BSPLINE.
37         * src/preproc/grn/README: Document it.
39 2002-10-03  Werner LEMBERG  <wl@gnu.org>
41         * src/roff/troff/node.cc (break_char_node::col): New variable.
42         Updated constructor.
43         (space_node::tprint, word_space_node::tprint): Call `fill_color'
44         unconditionally.
45         (space_node::space_node): Remove assertion.
46         (break_char_node::add_self): Pass color argument to space node.
47         * src/roff/troff/input.cc (token::add_to_node_list, token::process):
48         Ditto.
49         * src/roff/troff/env.cc (environment::do_break,
50         environment::add_padding): Ditto.
52 2002-10-02  Werner LEMBERG  <wl@gnu.org>
54         Redesigning color support in troff.  Colors are no longer
55         represented as separate nodes but are now part of glyph nodes and
56         friends.  This fixes the current formatting misbehaviour due to the
57         changes introduced on 2002-09-20.  Some extra code is necessary for
58         proper grotty support: Without adding color variables to
59         space-related nodes, the background color would be changed too late.
61         * src/roff/troff/node.h, src/roff/troff/node.cc:
62         s/current_pagecolor/current_fill_color/.
63         s/current_glyphcolor/current_glyph_color/.
64         (glyph_color_node, fill_color_node): Removed.
65         (node::get_glyph_color, node::get_fill_color): New virtual member
66         functions.
67         (space_node::col): New variable.
68         Updated constructors of space_node and derived classes accordingly.
69         (hmotion_node::col): New variable.
70         Updated constructors of hmotion_node and space_char_hmotion_node
71         accordingly.
72         (vmotion_node::col): New variable.
73         Updated constructor accordingly.
74         (draw_node::gcol, draw_node::fcol): New variables.
75         Updated constructor accordingly.
76         (special_node::gcol, special_node::fcol): New variables.
77         Updated constructors accordingly.
78         (troff_output_file::put_char, troff_output_file::put_charwidth,
79         troff_output_file::draw): Set glyph and fill color.
80         (troff_output_file::start_special): Set glyph and fill color.
81         Always set current font.
82         (troff_output_file::fill_color, troff_output_file::glyph_color):
83         Don't call `do_motion'.
84         (glyph_node::gcol, glyph_node::fcol): New variables.
85         Updated constructors of glyph_node and ligature_node accordingly.
86         (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
87         member functions.
88         (glyph_node::merge_glyph_node,
89         kern_pair_node::add_discretionary_hyphen,
90         node::add_discretionary_hyphen): Updated.
91         (break_char_node::merge_self): Updated.
92         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
93         vmotion_node::tprint): Handle color.
94         (make_glyph_node, make_node, node::add_char): Updated.
96         * src/roff/troff/env.cc (environment::space_newline,
97         environment::space, environment::output_line, environment::do_break,
98         environment::make_tab_node, environment::add_padding, title):
99         Updated.
100         (environment_switch, environment_copy): Don't add color nodes.
102         * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
103         nothing.
104         (token::next): Updated.
105         \m and \M now are as transparent as \s.
106         (process_input_stack, token::add_to_node_list, token::process,
107         read_draw_node): Updated.
108         (charinfo_to_node_list): Don't add color nodes.
110         * doc/groff.texinfo: Updated.
112 2002-09-27  Ruslan Ermilov  <ru@FreeBSD.org>
114         * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
115         strings.
117 2002-09-27  Colin Watson  <cjwatson@debian.org>
119         * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
121 2002-09-23  Werner LEMBERG  <wl@gnu.org>
123         * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
124         appropriate.
125         (DEFAULT_LINEWIDTH_FACTOR): New macro.
126         (linewidth_factor): New global variable.
127         (lbp_printer::set_line_thickness): Fix case for size < 0, using
128         linewidth_factor.
129         (long_options): Add -w/--linewidth option.
130         (usage): Updated.
131         (main): Handle -w option to set linewidth_factor.
132         (lbp_printer::lbp_printer): Initialize req_linethickness, not
133         line_thickness.
135         * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
137 2002-09-22  Paco Andrés Verdú  <pandres@dragonet.es>
139         Fixed a bug in the line thickness setting code.
141         * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
142         variable.
143         (lbp_printer::set_line_thickness): Pass environment as second
144         parameter.
145         Implement it actually.
146         (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
147         and `set_line_thickness, depending on the current font size.
149 2002-09-21  Werner LEMBERG  <wl@gnu.org>
151         Some Debian patches.
153         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
154         * src/roff/troff/node.cc (bracket_node::copy): Initialize
155         `list->last'.
157 2002-09-20  Werner LEMBERG  <wl@gnu.org>
159         * configure: Regenerated with autoconf 2.54.
161 2002-09-20  Werner LEMBERG  <wl@gnu.org>
163         * src/roff/troff/env.h (environment): Rename cur_glyph_color to
164         glyph_color.
165         Rename cur_fill_color to fill_color.
166         * src/roff/troff/env.cc: Updated.
168 2002-09-20  Werner LEMBERG  <wl@gnu.org>
170         * src/roff/troff/env.cc (title): Copy color status after processing
171         title.
172         * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
173         fill color nodes to reset colors properly.
175         * tmac/www.tmac (DC): Fix color handling.
177         * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
178         * doc/groff.texinfo: Fixing documentation of `tl' request.
179         * doc/webpage.ms: Updated.
181 2002-09-19  Werner LEMBERG  <wl@gnu.org>
183         * src/roff/troff/env.cc (environent_switch, environment_copy):
184         Emit glyph and fill color nodes to initialize colors properly.
186 2002-09-17  Colin Watson  <cjwatson@debian.org>
188         * src/roff/troff/env.cc (environment::set_glyph_color,
189         environment::set_fill_color): Fix typo which prevented \m[] work
190         correctly.
192 2002-09-17  Werner LEMBERG  <wl@gnu.org>
194         Add left and right italic correction to non-slanted PS fonts.  This
195         is an experimental feature to improve image rendering of grohtml.
197         * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
198         ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
199         * font/devps/*: All non-slanted fonts regenerated.
200         * NEWS: Updated.
202 2002-09-16  Werner LEMBERG  <wl@gnu.org>
204         Add a site-specific font directory.
206         * Makefile.in (localfontdir, legacyfontdir): New variables.
207         (fontpath): Use them.
208         (MDEFINES, uninstall_dirs): Updated.
209         * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
210         Remove `FONTPATH' and `MACROPATH'.
212         * src/roff/troff/troff.man, NEWS: Updated.
213         * doc/groff.texinfo (Font Directories): New section.
214         Other minor fixes.
216         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
217         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
218         src/preproc/grn/grn.man: Minor fixes.
220         * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
221         Remove unused variable.
223 2002-09-11  Werner LEMBERG  <wl@gnu.org>
225         * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
226         * man/groff_out.man: Fix documentation of 'N'.
228 2002-09-09  Gaius Mulley  <gaius@glam.ac.uk>
230         * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
231         * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
232         set.
233         * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
234         (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
235         (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
236         * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
237         PRE_TAG>: Call `begin' with `FALSE'.
239 2002-09-09  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
241         * src/libs/libgroff/string.cc (string::extract): Fix position of
242         terminating null byte.
244 2002-09-08  Werner LEMBERG  <wl@gnu.org>
246         Add global option `nospaces' to tbl so that leading and trailing
247         spaces in data items are ignored.
249         * src/libs/libgroff/string.cc (string::remove_spaces): New member
250         function to remove leading and trailing spaces.
251         * src/include/stringclass.h: Updated.
253         * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
255         * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
256         option.
257         Fix typo in error messages.
258         (process_data): Implement `nospaces' option.
259         * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
261 2002-09-07  Werner LEMBERG  <wl@gnu.org>
263         * src/include/config.hin: Add `HAVE_ISATTY'.
264         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
265         `fname' member.
266         * src/libs/libgroff/tmpname.cc: Include `time.h'.
267         * src/libs/libdriver/input.cc (Char): Add `operator==' and
268         `operator!=' for `char'.
269         * doc/groff.texinfo: Replace @ifnottex block for top node with
270         @ifhtml block.
272 2002-09-06  Werner LEMBERG  <wl@gnu.org>
274         * doc/Makefile.in (.texinfo.html): Add -I switch.
275         * doc/groff.texinfo: Add @ifnottex block for top node to make
276         translation to HTML work.
278 2002-09-05  Gaius Mulley  <gaius@glam.ac.uk>
280         * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
281         (get_papersize, determine_vertical_offset): Removed.
282         (char_buffer::do_image): Always specify letter size.
283         (main): Updated.
284         (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
285         -sPAPERSIZE.
287 2002-09-05  Werner LEMBERG  <wl@gnu.org>
289         * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
290         default indentation.
292 2002-09-04  Gaius Mulley  <gaius@glam.ac.uk>
294         * src/preproc/html/pre-html.cc (imageList::createPage): Use
295         -sPAPERSIZE for gs.
296         (generateImages): Clean up push-back buffer.
298 2002-09-04  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
300         * doc/groff.texinfo: Minor fixes.
302 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
304         * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
305         (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
306         (gsPaper): Removed.
307         (determine_vertical_offset): Use LETTER_LENGTH.
308         (createPage): Moved to ...
309         (imageList::createPage): This.
310         Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
311         (imageList::getMaxX): New function.
312         (createImage): Moved to ...
313         (imageList::createImage): This.
314         (imageList::createImages): New function.
315         (generateImages): Read `maxx' directly.
316         Updated.
317         (scanArguments): Don't specify `gsPaper' for `-o'.
318         (makeTempFiles): Call `xtmpfile' with the last argument set to
319         `TRUE'.
321 2002-08-24  Werner LEMBERG  <wl@gnu.org>
323         * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
324         (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
325         * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
326         * src/preproc/html/pushback.cc: Include nonposix.h.
327         * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
328         conditionally.
330 2002-08-23  Werner LEMBERG  <wl@gnu.org>
332         Use $(OBJEXT) for the object file extension.
334         * Makefile.comm (.SUFFIXES): Add .obj.
335         (.cc.obj, .c.obj): New implicit rules.
336         * Makefile.in (OBJEXT): New variable, initialized from autoconf.
337         (MDEFINES): Add EXEEXT and OBJEXT.
338         * */Makefile.sub: s/.o/.$(OBJEXT)/.
340 2002-08-22  Werner LEMBERG  <wl@gnu.org>
342         * INSTALL: Mention texinfo 4.2 as a prerequisite.
344 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
346         * src/devices/grohtml/post-html.cc (colType): Make enum global to
347         the file.
348         (html_printer::update_min_max, html_printer::add_table_end): New
349         methods.
350         (html_printer::lookahead_for_tables): Use them.
351         Reset page offset correctly.
352         (html_printer::~html_printer): Add creation of creator comment up.
354 2002-08-20  Werner LEMBERG  <wl@gnu.org>
356         * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
357         * man/groff_tmac.man: Fix typos.
358         * man/groff_font.man: Minor reordering.
359         * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
360         * contrib/groffer/groffer.man: Fix typos.
362 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
364         Avoid endless loops while scanning for tables.
366         * src/devices/grohtml/post-html.cc (list::insert): Set
367         ptr->right->left.
368         (html_printer::next_horiz_pos): Add `text_glob' argument; update
369         all callers.
370         Return immediately if that argument is NULL.
371         (html_printer::calc_nf): Don't test if `g' is NULL.
372         (html_printer::lookahead_for_tables): Use
373         `glyphs.move_right_get_data'.
374         Don't test if `g' is NULL.
376 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
378         A better fix, replacing fix 2002-08-15, for increasing SIZE.
380         * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
381         a pointer.
382         (char_block::char_block): Allocate `buffer'.
383         (char_buffer::add_string): Use it.
385 2002-08-15  Werner LEMBERG  <wl@gnu.org>
387         * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
388         src/devices/grodvi/grodvi.man: Document default line thickness.
390 2002-08-15  Gaius Mulley  <gaius@glam.ac.uk>
392         * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
393         8192.
395 2002-08-14  Werner LEMBERG  <wl@gnu.org>
397         * doc/webpage.ms: Updated.
399 2002-08-09  Werner LEMBERG  <wl@gnu.org>
401         * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
402         unbreakable space.
404 2002-08-08  Aaron Campbell <aaron@monkey.org>
406         * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
407         (&& -> &).
409 2002-08-08  Werner LEMBERG  <wl@gnu.org>
411         * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
412         tok.next().
413         (read_gray): Ditto.
414         Don't push back a space but a newline onto the stack.
416 2002-08-07  Gaius Mulley  <gaius@glam.ac.uk>
418         Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
419         inadvertently.
421         * src/devices/grohtml/post-html.cc (html_printer::end_font,
422         html_printer::start_font): Handle them.
423         * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
424         reset bold and tt.
425         (html_text::do_bold): Don't reset italic and tt.
426         (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
427         * font/devhtml/DESC.proto: Add those fonts.
428         * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
430 2002-08-07  Werner LEMBERG  <wl@gnu.org>
432         * MORE.STUFF: Added gpresent.
434         * tmac/trace.tmac: Show nesting level by a corresponding amount of
435         whitespace before printing the logging message.
437 2002-07-31  Colin Watson  <cjwatson@debian.org>
439         * src/devices/grohtml/html-table.cc (html_table::finish_row):
440         Initialize `n' to zero.  This fixes a segfault on ARM.
442 2002-07-30  Werner LEMBERG  <wl@gnu.org>
444         * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
446 2002-07-29  Werner LEMBERG  <wl@gnu.org>
448         * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
449         final semicolon.
451 2002-07-28  Colin Watson  <cjwatson@debian.org>
453         * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
454         `.ps'.
455         (html_printer::html_printer): Initialize `pointsize'.
457 2002-07-26  Werner LEMBERG  <wl@gnu.org>
459         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
460         gnu.png.
461         (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
462         (gnu.eps): Add -rle switch to pnmtops.
463         (distfiles): Add gnu.eps and gnu.png.
465 2002-07-25  Petter Reinholdtsen  <pere@hungry.com>
467         * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
468         Add `operator!='.
470 2002-07-24  Werner LEMBERG  <wl@gnu.org>
472         * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
473         ' \+' but '  *' for sed.
474         (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
476 2002-07-23  Werner LEMBERG  <wl@gnu.org>
478         * doc/groff.texinfo: Document `papersize' keyword.
479         * NEWS, man/groff_font.man: Updated.
481 2002-07-23  Colin Watson  <cjwatson@debian.org>
483         Extend papersize keyword to accept more than a single entry.  The
484         first valid will be used.
486         * src/libs/libgroff/font.cc (font::load_desc): Implement it.
487         (font::scan_papersize): Really skip final newline.
488         * src/preproc/html/pre-html.cc (get_papersize): Ditto.
490 2002-07-23  Werner LEMBERG  <wl@gnu.org>
492         * configure.ac: Test for isatty.
493         * configure: Regenerated.
494         * src/include/posix.h: Check HAVE_ISATTY.
495         * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
496         * src/utils/lookbib/lookbib.cc: Include posix.h.
497         Don't declare isatty.
499 2002-07-21  Werner LEMBERG  <wl@gnu.org>
501         * NEWS: Add `output' request.
503         * REVISION: Increased to 1.
505 Version 1.18.0 released
506 =======================
508 2002-07-19  Gaius Mulley  <gaius@glam.ac.uk>
510         Allow internal glyph indices > 0xFF in grohtml for input characters.
512         * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
513         as parameter.
514         (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
515         Updated all callers.
516         (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
517         (html_printer): Updated.
519 2002-07-19  Werner LEMBERG  <wl@gnu.org>
521         * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
522         * font/devutf8/R.proto: Adding some missing glyphs.
523         * font/devutf8/NOTES: Updated.
525         * tmac/dvi.tmac: Add more composite glyphs.
526         * tmac/html.tmac: Updated.
528         * man/groff_char.man: Add `sum' and `product' entities.
530         * NEWS: Updated.
532 2002-07-18  Gaius Mulley  <gaius@glam.ac.uk>
534         Improved table, tab, and indenting support.
536         * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
537         string_iterator::suppress_newline_flag): Removed.  Updated all
538         function which have used it.
540         * src/roff/troff/env.cc: Include `input.h'.
541         (environment::add_node): Accept 0 as parameter.
542         (environment::add_html_tag): Add `force' parameter.
543         Updated all callers.
544         (environment::add_html_tag_tabs): Ditto.
545         For the moment, support left-aligned tabs only.
546         (environment::make_html_tag): New function.
547         (fill, no_fill): Set .br html tag additionally.
548         (environment::newline): Emit `eol.ce' or `eol' tag for html.
549         (environment::add_html_tag_eol): Removed.
550         (tab_stops::distance_to_next_tab): Add variant for handling 
551         nextpos'.
552         (environment::distance_to_next_tab): Ditto.
553         Updated all callers.
554         (environment::handle_tab): Handle tabs for html.
555         
556         * src/roff/troff/env.h: Updated.
558         * src/roff/troff/div.cc: Updated all callers of
559         `environment::add_html_tag'.
561         * src/devices/grohtml/html-table.cc,
562         src/devices/grohtml/html-table.h: New files.
564         * src/devices/grohtml/html-text.cc (html_text): New members
565         `blank_para' and `start_space'.
566         (html_text::issue_tag): Don't emit TABLE_TAG.
567         Handle indentation for PRE_TAG and P_TAG.
568         (html_text::end_tag): Updated.
569         (html_text::table_is_void, html_text::issue_table_begin,
570         html_text::issue_table_end): Removed.
571         (html_text::do_push): Simplified.
572         [DEBUGGING]: Small fix.
573         (html_text::push_para): Add new parameter for indentation; updated
574         all callers.
575         Handle PRE_TAG.
576         (html_text::do_indent, html_text::do_table, html_text::done_table,
577         html_text::is_in_table): Removed.
578         (html_text::do_pre): Handle P_TAG also.
579         (html_text::shutdown): Handle p->indent.
580         (html_text::check_emit_text): Simplified.
581         (html_text::do_emittext): Reset `blank_para'.
582         (html_text::do_para): Add new parameter for indentation; updated
583         all callers.
584         (html_text::remove_indent): New function.
585         (html_text::do_space): Handle verbatim text properly.
586         (html_text::ever_emitted_text, html_text::starts_with_space,
587         html_text::remove_para_align): New functions.
588         (html_text::dump_stack_element, html_text::dump_stack): Updated.
590         * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
591         Updated.
593         * src/devices/grohtml/post-html.cc: Include html-table.h.
594         (INDENTATION): Removed.
595         (text_glob): Added many `is_<foo>' functions.
596         Added table description `tab'.
597         Added `get_arg',`get_tab_args', `remember_table', and `get_table'
598         member functions.
599         (list): Add `insert' and `move_to' member functions.
600         (page): Add `insert_tag' member function.
601         (page::dump_page) [DEBUG_TABLES]: Improved.
602         (html_printer): Add `table' and `max_linelength' elements.
603         Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
604         `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
605         `remove_tabs', `remove_courier_tabs'.
606         (html_printer::emit_raw): Handle indentation.
607         (html_printer::do_center, html_printer::write_header): Updated.
608         (html_printer::is_courier_until_eol): Check for tag.
609         (html_printer::do_linelength): Handle max_linelength.
610         (html_printer::do_page_offset, html_printer::do_indentation): Handle
611         fill_on.
612         (html_printer::do_tempindent): Updated.
613         (html_printer::do_indentedparagraph): Removed.
614         (html_printer::do_indent): Simplified.
615         (html_printer::do_eol): Use `ever_emitted_text'.
616         (html_printer::do_flush, html_printer::do_links): Don't call
617         done_table.
618         (html_printer::do_break): Handle end_tempindent.
619         (html_printer::troff_tag): Get argument.
620         Don't handle `.ip'.
621         Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
622         (html_printer::flush_page): Call `lookahead_for_tables'.
623         Don't call `done_table'.
624         (html_printer::add_to_sbuf): Always call do_indent.
626         * src/devices/grohtml/Makefile.sub: Updated.
628         * tmac/an-old.tmac (TP): Don't handle html device specially.
629         (an-do-tag-html): New function which will be used instead of
630         `an-do-tag' if html device is used.
632         * tmac/html.tmac: Call .po to pass default page offset to grohtml.
634         * tmac/s.tmac (@IP): Don't handle html device specially.
635         (@IP-html): New function which will be used instead of `@IP' if
636         html device is used.
638         * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
639         is a hack which will eventually vanish again.
640         (PIMG): Handle `-C' option correctly if not html.
641         (HR): Use HTML-NS.
643 2002-07-17  Werner LEMBERG  <wl@gnu.org>
645         * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
647 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
649         * contrib/pic2graph/pic2graph.*: Use convert(1).
650         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
652 2002-07-14  Bernd Warken  <bwarken@mayn.de>
654         * tmac/groff_trace.man: New file.
655         * tmac/Makefile.sub: Updated.
656         * NEWS: Updated.
658 2002-07-13  Werner LEMBERG  <wl@gnu.org>
660         * src/roff/groff/groff.man: Add some cross references.
662 2002-07-12  Werner LEMBERG  <wl@gnu.org>
664         * src/roff/troff/input.cc (substring_request): Add warnings for
665         string indices out of range.
667 2002-07-11  Werner LEMBERG  <wl@gnu.org>
669         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
670         * font/devdvi/*EC: Regenerated.
672 2002-07-10  Bernd Warken  <bwarken@mayn.de>
674         * man/groff_char.man: Updated and extended.
676 2002-07-10  Werner LEMBERG  <wl@gnu.org>
678         * src/roff/troff/input.cc (length_macro): Renamed to...
679         (length_request): This.
680         Move call of `tok.next()' to the very end, otherwise the register
681         value hasn't been updated yet.
682         (init_input_requests): Updated.
684 2002-07-09  Werner LEMBERG  <wl@gnu.org>
686         * src/roff/troff/input.cc (substring_macro): Renamed to...
687         (substring_request): This.
688         (init_input_requests): Updated.
689         * src/roff/troff/request.h: Updated.
691 2002-07-08  Robert D. Goulding <goulding@Princeton.EDU>
693         * src/roff/grog/grog.sh: Fix typo.
695 2002-07-08  Werner LEMBERG  <wl@gnu.org>
697         * win32-diffs: Updated.
699         Handle `papersize' keyword properly in DESC.
701         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
702         type.
703         Updated all callers.
704         * src/libs/libgroff/paper.cc: Add four more paper formats used by
705         grolj4.
706         * src/include/paper.h: Updated.
708         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
709         Other minor C syntax fixes.
710         (papersize, paperlength, paperwidth): Renamed to `user_*'.
711         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
712         members.
713         (lbp_printer::lbp_printer): Pass three arguments.
714         Set paper dimensions properly.
715         (make_printer, main): Updated.
716         (handle_unknown_desc_command): Fix error messages.
717         (main): Handle papersize keyword in DESC properly.
719         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
720         `user_paper_size'.
721         (lbp_printer::lbp_printer): Pass an argument.
722         Set paper_size properly.
723         (handle_unknown_desc_command): Removed.
724         (make_printer, main): Updated.
725         * src/devices/grolj4/grolj4.man: Minor documentation fix.
727         * man/groff_font.man, NEWS: Updated.
729 2002-07-07  Werner LEMBERG  <wl@gnu.org>
731         Integrated eqn2graph, contributed by Eric S. Raymond.
733         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
734         files.
735         * Makefile.in, NEWS: Updated.
737 2002-06-04  Werner LEMBERG  <wl@gnu.org>
739         Changing the substring request to make it fit better with other
740         string manipulation functions in other programming languages:
741         Index 0 is now the first character in the string, and index -1
742         indicates the last character.  Since this request didn't work
743         properly anyway in the last release, it doesn't harm too much to
744         change the syntax.
746         * src/roff/troff/input.cc (substring_macro): Use loops to get
747         the real string length (ignoring COMPATIBLE_SAVE and
748         COMPATIBLE_RESTORE) and offsets.
749         Implement change described above.
751         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
752         (doc-do-Bd-args, doc-do-Bl-args: Changed accordingly.
754         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
756 2002-06-03  Werner LEMBERG  <wl@gnu.org>
758         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
759         COMPATIBLE_RESTORE are completely ignored.
761         * src/roff/troff/input.cc (char_list::set, char_list::get): New
762         functions.
763         (macro): `length' field renamed to `len'.
764         Added new field `empty_macro' (1 if macro is empty), to be used
765         instead of checking `len'.
766         Updated all callers.
767         (macro::empty): Updated.
768         (macro::length, macro::set, macro::get): New functions.
769         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
770         Set `empty_macro'.
771         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
772         COMPATIBLE_RESTORE pairs.
773         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
774         * src/roff/troff/request.h: Updated.
776         * doc/groff.texinfo: Document .chop's behaviour better.
778 2002-06-02  Werner LEMBERG  <wl@gnu.org>
780         * doc/pic.ms: Fix documentation for the addition of positions.
782         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
784 2002-06-29  Werner LEMBERG  <wl@gnu.org>
786         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
788         * src/roff/troff/input.cc (have_string_arg): New global variable.
789         (read_mode): New enumeration.
790         (read_escape_name): Use it.  Update all calls.
791         (read_long_escape_name): Use it.  Update all calls.
792         Set have_string_arg if appropriate.
793         (get_char_for_escape_name): Add parameter for handling space
794         character.
795         (interpolate_string_with_args, decode_string_args): New functions.
796         (get_copy, token::next): Call it if necessary.
797         (interpolate_string): Fix error message.
799         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
800         Document it.
802 2002-06-24  Bernd Warken  <bwarken@mayn.de>
804         * man/groff_tmac.man: Updated and extended.
806 2002-06-24  Werner LEMBERG  <wl@gnu.org>
808         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
810 2002-06-23  Werner LEMBERG  <wl@gnu.org>
812         * doc/pic.ms: Improve documentation of composite block objects.
814 2002-06-22  Werner LEMBERG  <wl@gnu.org>
816         * src/roff/troff/input.cc (init_registers): Add three registers
817         `seconds', `minutes', and `hours' to hold the current time.
819         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
820         Updated.
822 2002-06-20  Werner LEMBERG  <wl@gnu.org>
824         Make \X accept both `\ ' and `\~', converting them to single space
825         characters.
827         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
828         (token::unstretchable_space): New inline function.
829         * src/roff/troff/input.cc (token::next, token::delimiter,
830         token::description, token::add_to_node_list, token::process): Handle
831         TOKEN_UNSTRETCHABLE_NODE.
832         (encode_char): Handle tok.stretchable_space and
833         tok.unstretchable_space.
835         * NEWS, doc/groff.texinfo: Document it..
837 2002-06-19  Werner LEMBERG  <wl@gnu.org>
839         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
841         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
842         keyword to enable/disable SGR output.
843         (tty_printer::change_fill_color): New function.
844         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
846         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
847         call.
849 2002-06-18  Werner LEMBERG  <wl@gnu.org>
851         Add a `color' request and a `.color' register to control usage of
852         colours.
854         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
855         (color_flag): This (which is the inverse).
856         (activate_color): New function.
857         (main, init_input_requests): Updated.
858         * src/roff/troff/troff.h, src/roff/troff/node.cc
859         (troff_output_file::fill_color, troff_output_file::glyph_color):
860         Updated.
862         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
863         Document the changes.
865 2002-06-17  Colin Watson  <cjwatson@debian.org>
867         Circumvent bug in autoconf 2.53 regarding top_builddir.
869         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
870         * Makefile.in, doc/Makefile.in:
871         s/@top_builddir@/@groff_top_builddir@/.
872         * configure: Regenerated (with autoconf 2.53).
874 2002-06-17  Werner LEMBERG  <wl@gnu.org>
876         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
877         `paperwidth' and `paperlength' for the `papersize' keyword.
879 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
881         * src/devices/grops/grops.man: Add info about Type 42 fonts.
883 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
885         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
886         html_printer::do_linelength, html_printer::do_pageoffset,
887         html_printer::do_indentation, html_printer::do_tempindent,
888         html_printer::do_break, html_printer::begin_page): Clear indented
889         text.
890         * tmac/html.tmac: Disable hyphenation.
892 2002-06-15  Werner LEMBERG  <wl@gnu.org>
894         Don't produce HTML files if utility programs are missing.
896         * Makefile.in (make_html, make_install_html): New variables.
897         (MDEFINES): Updated.
899         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
900         utility programs.
901         * configure.ac: Use it.
902         * configure: Regenerated.
904         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
905         (HTMLEXAMPLESFILES): This new variable.
906         (EXAMPLESIMAGEFILES): Renamed to...
907         (HTMLEXAMPLEIMAGEFILES): This.
908         (CLEANADD): Add HTMLEXAMPLEFILES.
909         (all): Use `make_html'.
910         (html): New target.
911         (install_data): Use `make_install_html'.
912         Move html stuff to...
913         (install_html): This new target.
914         (uninstall_sub): Updated.
916 2002-06-14  Bernd Warken  <bwarken@mayn.de>
918         * src/roff/grog/Makefile.sub (grog): Renamed to...
919         (grog.old): This.
920         (grog): New rule to always install grog.sh as grog.
922 2002-06-08  Bernd Warken  <bwarken@mayn.de>
924         * src/roff/grog/grog.pl: Fix typo.
926 2002-06-07  Werner LEMBERG  <wl@gnu.org>
928         * doc/groff.texinfo: Add more info on .tr arguments.
930 2002-06-05  Werner LEMBERG  <wl@gnu.org>
932         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
934         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
935         * configure: Regenerated.
937 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
939         * src/roff/troff/symbol.cc (table_sizes): Add more values.
941         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
943 2002-06-04  Werner LEMBERG  <wl@gnu.org>
945         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
946         is not initialized at the time we need it in case `--prefix' hasn't
947         been set.  Check for `ac_default_prefix' also.
948         Test for `papersize' keyword also and generalize allowed whitespace.
949         * configure: Regenerated.
951         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
952         `paperlength'.
954         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
955         with...
956         (src_version, src_revision): New variables to avoid overwriting
957         from parent make process.
958         (version.cc): Updated.
960         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
961         (linebuf, linebufsize): New global variables.
962         (sys_fatal): Use `fatal' to abort properly.
963         (get_line): New function.
964         (get_resolution): Use it.
965         Improve error messages.
966         (get_papersize): Check `papersize' also.
967         Use `get_line'.
968         Improve error messages.
970 2002-06-03  Werner LEMBERG  <wl@gnu.org>
972         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
973         should be removed only if builddir is not srcdir.
974         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
975         (clean): Depend on `mostlyclean'.
976         (distclean): Depend on `clean'.
977         (realclean, extraclean): Depend on `distclean'.
978         (.y.cc, .y.o): Simplified.  The output files are no longer written
979         to srcdir but to builddir.
980         * Makefile.in (MDEFINES): Add `version' and `revision'.
981         (uninstall_dirs): Fix order of directories.
982         * doc/Makefile.sub (version, revision): Removed.
983         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
984         Added `HTMLDOCFILES'.
985         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
986         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
987         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
988         as prefix.
990         * doc/texinfo.tex (\authortt): New macro.
991         (\shortcontt): Define.
992         (\titlepage): Set \tt to \authortt while defining \authorfont.
993         (\appendixbox): New macro.
994         (\chapmacro, \appendixentry): Use \appendixbox to get even
995         indentation for letters.
996         (\summarycontents): Set \tt.
997         (\internalpagesize): Add two arguments for real paper width and
998         height as needed by pdfTeX.
999         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
1000         Updated.
1001         (\tempdima, \tempdimb): New temporary dimensions.
1002         (\pagesizesyyy): Updated.
1004 2002-06-02  Werner LEMBERG  <wl@gnu.org>
1006         Adding a new keyword `papersize' to the DESC file format (similar
1007         but not completely identical to grolbp's extension).  grops now has
1008         a -p command line option to override `papersize'.  Finally, grolbp
1009         has been adapted to the new syntax.
1011         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
1012         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
1013         elements.
1014         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
1015         (CCSRCS): Add `paper.cc'.
1017         * src/include/font.h (font): Add `papersize' element.
1018         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
1019         (font::scan_papersize): New function.
1020         (font::load_desc): Use it for handling `papersize' keyword.
1021         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
1023         * src/devices/grops/ps.cc: Include paper.h.
1024         (user_paper_length): New global variable.
1025         (ps_printer): Use paper length as initializer.
1026         (make_printer): Updated.
1027         (main): Handle new `-p' option.
1028         * src/devices/grops/grops.man: Updated.
1030         * src/devices/grolbp/lbp.cc: Include paper.h.
1031         s/papersizes/lbp_papersizes/.
1032         (set_papersize): Use new `papersizes' array.
1033         (handle_unknown_desc_command): Don't handle `papersize'.
1034         (main): Use `font::scan_papersize' for handling `-p' option.
1035         * src/devices/grolbp/grolbp.man: Updated.
1037         * man/groff_font.man: Document `papersize'.
1038         * NEWS: Updated.
1040 2002-05-30  Werner LEMBERG  <wl@gnu.org>
1042         * src/devices/grops/TODO: Updated.
1043         * src/devices/grops/grops.man: More info on paper formats.
1044         * man/groff_font.man: Document `paperheight' and `paperwidth'.
1046 2002-05-29  Werner LEMBERG  <wl@gnu.org>
1048         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
1049         to list only if srcdir != currdir.
1050         (distfiles): New target.
1052         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
1053         (NOMAKEDIRS): New variable.
1054         (DISTDIRS): Use it.
1056 2002-05-26  Werner LEMBERG  <wl@gnu.org>
1058         Add .output request, similar to \! at top-level.
1060         * src/roff/troff/input.cc (transparent): Remove unused declaration.
1061         (output_request): New function.
1062         (init_input_requests): Add it.
1063         Sorted.
1064         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
1065         Document it.
1067         * Makefile.in (MDEFINES): Add INSTALL_INFO.
1068         (prepare_examples): Fix typo.
1069         * doc/groff.texinfo (@direntry): Fix it.
1071 2002-05-25  Werner LEMBERG  <wl@gnu.org>
1073         Including the doc subdir into groff's Makefile system.
1075         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
1076         * configure.ac: Use it.
1077         Generate `doc/Makefile'.
1078         * configure: Regenerated.
1080         * Makefile.in (infodir, INSTALL_INFO): New variables.
1081         (MDEFINES, uninstall_dirs): Updated.
1082         (OTHERDIRS): Add `doc'.
1083         * Makefile.comm (CLEANDIRADD): New variable.
1084         (mostlyclean): Use it.
1086         * doc/Makefile.sub, doc/Makefile.in: New files.
1087         * doc/Makefile: Removed.
1089         * NEWS, INSTALL: Updated.
1091 2002-05-24  Werner LEMBERG  <wl@gnu.org>
1093         * doc/homepage.ms: Renamed to ...
1094         * doc/webpage.ms: This.
1095         Use `.NHR'.
1097 2002-05-23  Werner LEMBERG  <wl@gnu.org>
1099         Integrating the `mom' macro package, contributed by Peter Schaffter
1100         <df191@ncf.ca>.
1102         * contrib/mom/*: New subdirectory tree.
1103         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
1104         be used for documentation files.
1105         (MDEFINES, uninstall_dirs): Use them.
1106         (OTHERDIRS): Add contrib/mom.
1107         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
1108         @HTMLDOCDIR@.
1109         * MANIFEST, NEWS: Updated.
1111 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
1113         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
1114         if at outer level; at start-up we are at outer level.
1116         * src/roff/troff/input.cc (do_suppress): Implement it.
1117         Simplify \O[3].
1119         Add option -p to show progress information.
1120         pre-grohtml will now render only one page at a time, reducing the
1121         size of needed disk resources enormously.
1123         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
1124         (imagePageName): New global variable.
1125         (psPageName, show_progress, currentPageNo): New global variables.
1126         (html_system): Close saved stderr and stdout handles.
1127         (write_end_image): Accept a parameter to control \O escape.
1128         (write_start_image): Adapted to new \O meaning.
1129         (char_buffer::write_upto_newline): Updated.
1130         (createAllPages): Replaced with...
1131         (createPage): This new function to create a single page for images.
1132         It uses `psselect' from the psutils package.
1133         (removeAllPages): Removed.
1134         (createImage): Updated.
1135         Handle progress display.
1136         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
1137         (scanArguments): Add option -p.
1138         (makeTempFiles): Updated to create temp files for psPageName and
1139         imagePageName.
1140         (removeTempFiles): Removed.
1141         (main): Updated.
1143         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
1144         html_printer::write_header): Append `\0' to `buffer'.
1145         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
1146         (main): Handle -p.
1147         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
1148         Handle `text_emitted'.
1149         (html_text::table_is_void): Slightly rewritten.
1150         (stop): New external symbol.
1151         (html_text::do_push) [DEBUGGING]: Use it and simplify.
1152         (html_text::shutdown): Call `dump_stack'.
1153         (html_text::do_space): Rewritten.
1154         * src/devices/grohtml/grohtml.man: Document -p and the need of
1155         `psselect'.
1157         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
1158         new \O syntax.
1159         Call \O[0] if `ps4html' is active.
1160         * tmac/s.tmac (@EQ, @EN): Handle html better.
1161         (@TS, TE): Ditto.
1162         * tmac/html.tmac: Don't use black for background colour.
1164         * src/roff/troff/node.cc: Include `div.h'.
1165         (troff_output_file::really_print_line): Don't use `is_on'. 
1166         (troff_output_file::word_marker, troff_output_file::flush_tbuf
1167         troff_output_file::check_charinfo,
1168         troff_output_file::put_char_width, troff_output_file::put_char,
1169         troff_output_file::determine_line_limits, troff_output_file::draw,
1170         real_output_file::begin_page, glyph_color_node::tprintf,
1171         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
1172         Use `is_on'.
1173         (troff_output_file::really_on): Call `do_motion'.
1174         (suppress_node::tprint): Use `get_page_number' instead of `%'
1175         register.
1176         Call `reset_output_registers' conditionally on `is_on'.
1178         * doc/groff.texinfo: Document new syntax of \O.
1179         * NEWS, man/groff_diff.man: Updated.
1181 2002-05-22  Werner LEMBERG  <wl@gnu.org>
1183         * MORE.STUFF: Add info about David Frey's deroff implementation.
1184         Mention troff.org.
1186 2002-05-16  Werner LEMBERG  <wl@gnu.org>
1188         Pic's `with' attribute now accepts positions.
1190         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
1191         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
1192         conflicts.
1193         (object_spec): Add rule for `WITH' and `position'.
1194         (relative_path): Give `corner' the precedence of `CHOP'.
1195         * src/preproc/pic/object.h (path): New members `pos' and
1196         `is_position'.
1197         * src/preproc/pic/object.cc: Updated initializers of `path'.
1198         (path::follow): Handle `is_position'.
1200         * doc/pic.ms: Completely updated grammar description.
1201         Many typographical improvements.
1203 2002-05-15  Werner LEMBERG  <wl@gnu.org>
1205         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
1206         code of x in range 0-127) also.
1207         * doc/groff.texinfo, man/groff_diff.man: Updated.
1209         Added keywords `north', `south', `east', and `west' for corners
1210         in pic.
1212         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
1213         and WEST.
1214         (yylex): Handle them.
1215         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
1216         (corner): Handle them.
1218 2002-05-14  Werner LEMBERG  <wl@gnu.org>
1220         * src/devices/grops/grops.man: Clarify handling of `download' file.
1222 2002-05-11  Werner LEMBERG  <wl@gnu.org>
1224         Adding `warnscale' and `spreadwarn' requests, based on a patch from
1225         Jeffrey Friedl <jfriedl@yahoo.com>.
1227         * src/roff/troff/input.cc (spread_limit, warn_scale,
1228         warn_scaling_indicator): New global variables.
1229         (warnscale_request, spreadwarn_requests): New functions.
1230         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
1231         (init_input_requests): Updated.
1232         (error_type): Add `OUTPUT_WARNING'.
1233         (do_error): Handle it.
1234         (output_warning): New warning function which shows output location.
1235         * src/roff/troff/env.h (spread_limit): New external variable.
1236         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
1237         `output_warning'.
1238         (distribute_space): Emit warning if added space is larger than
1239         `spread_limit'.
1240         (environment::possibly_break_line): Emit warning if a line can't
1241         be adjusted on both sides.
1243         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
1245 2002-05-08  Werner LEMBERG  <wl@gnu.org>
1247         * src/roff/troff/node.cc (special_node::special_node): Use
1248         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
1249         \X''\% crashes, for example.
1251         * doc/groff.texinfo: Document \! and \? used at top-level.
1253 2002-05-06  Werner LEMBERG  <wl@gnu.org>
1255         * src/preproc/pic/pic.man: Fix some keyword syntax.
1256         Other minor typographical fixes.
1258         * src/roff/groff/groff.man: Fix typos.
1260 2002-05-04  Werner LEMBERG  <wl@gnu.org>
1262         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
1263         (ShortOpt[]): This to avoid problems with refer.
1265         * doc/pic.ms: Fix typo.
1266         Fix pic grammar description.
1268         * tmac/an-old.tmac (ne): Use de1, not de.
1270 2002-05-03  Werner LEMBERG  <wl@gnu.org>
1272         * doc/groff.texinfo: Finished separation of glyphs and characters.
1273         Don't use the string `Appendix' for appendix headers (both in
1274         the text and the table of contents).
1275         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
1276         directories.
1278         Use registers LL and LT (similar to -ms) for controlling the
1279         length of title and line, respectively, in the -man and -mdoc
1280         macro packages.
1282         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
1283         (doc-setup-page-layout): Use \n[LL] and \n[LT].
1284         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
1285         (TH): Use \n[LL].
1286         (an-header, an-p-footer): Use \n[LT].
1287         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
1288         doc/groff.texinfo: Document it.
1290 2002-05-02  Werner LEMBERG  <wl@gnu.org>
1292         * doc/fdl.texi: New file.
1293         * doc/groff.texinfo: Include it.
1294         Define and use @copying.
1295         Starting with separating glyph, symbol, and character.
1297 2002-04-27  Werner LEMBERG  <wl@gnu.org>
1299         * Makefile.in (EXEEXT): Set it.
1300         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
1301         programs.
1303         * src/include/nonposix.h: Define GS_NAME.
1304         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
1306         Some preliminary changes for EMX support under OS/2.
1308         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
1309         __EMX__ similar to __MSDOS__.
1310         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
1312 2002-04-25  Werner LEMBERG  <wl@gnu.org>
1314         * doc/groff.texinfo: Integrated groff_out.man.
1315         Some macro fixes.
1317 2002-04-23  Werner LEMBERG  <wl@gnu.org>
1319         * man/groff_out.man: Minor fixes.
1321 2002-04-23  Werner LEMBERG  <wl@gnu.org>
1323         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
1324         correct page references.
1325         Fixed many index entries.
1327 2002-04-23  Bernd Warken  <bwarken@mayn.de>
1329         * man/roff.man: Enlarged.
1331 2002-04-22  Werner LEMBERG  <wl@gnu.org>
1333         * doc/groff.texinfo: More examples, other fixes.
1335 2002-04-20  Werner LEMBERG  <wl@gnu.org>
1337         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
1338         will now form a chain, e.g.
1340           .pi foo
1341           .pi bar
1343         is now the same as
1345           .pi foo | bar
1347         This is for compatibility with plan 9's troff.
1349         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
1350         with UNIX troff.
1351         * NEWS: Updated.
1353         * doc/groff.texinfo: Add documentation of remaining requests and
1354         registers.
1356 2002-04-19  Werner LEMBERG  <wl@gnu.org>
1358         * doc/groff.texinfo: Add documentation of remaining escapes.
1360         * font/devdvi/generate/tc.map: Remove entry for `sr'.
1361         * font/devdvi/*TC: Regenerated.
1363 2002-04-18  Werner LEMBERG  <wl@gnu.org>
1365         * src/roff/troff/input.cc (token::next): Make \H behave consistently
1366         if not in compatibility mode, i.e., increment relative to the
1367         previous height.
1368         * doc/groff.texinfo: Updated accordingly.
1370 2002-04-17  Werner LEMBERG  <wl@gnu.org>
1372         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
1374 2002-04-16  Bernd Warken  <bwarken@mayn.de>
1376         * src/roff/groff/groff.man: Improve documentation of -P option.
1377         Other minor fixes.
1379 2002-04-15  Werner LEMBERG  <wl@gnu.org>
1381         Add new escape \F to switch font family.
1383         * src/roff/troff/input.cc (token::next): Handle \F.
1384         * src/roff/troff/env.cc (environment::set_family): Handle
1385         `interrupted' flag.
1386         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
1387         Document it.
1389 2002-04-14  Werner LEMBERG  <wl@gnu.org>
1391         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
1392         spaces in tags.
1394 2002-04-13  Werner LEMBERG  <wl@gnu.org>
1396         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
1397         \m[] and \M[], respectively.
1399         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
1400         (symbol::symbol): Handle NULL string and empty string differently.
1401         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
1402         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
1403         Add optional parameter.
1404         Updated calling functions.
1405         (get_copy, do_glyph_color, do_fill_color, token::next): Use
1406         `symbol::is_empty'.
1407         * src/roff/troff/env.cc (environment::set_font): Ditto.
1409         * src/preproc/pic/troff.cc (troff_output::set_fill,
1410         troff_output::reset_color: Updated.
1412         * tmac/www.tmac: Updated.
1414         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
1415         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
1416         Updated.
1418         * tmac/Xps.tmac: Remove some redundant code.
1420         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
1421         tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
1422         man/groff_out.man, man/groff.man, man/groff_diff.man,
1423         src/roff/groff/groff.man: Replace \f[P] with \f[].
1425 2002-04-13  Bernd Warken  <bwarken@mayn.de>
1427         * src/include/printer.h, src/libs/libdriver/printer.cc
1428         (printer::change_fill_color): New member function.
1429         * src/libs/libdriver/input.cc (parse_D_command): Use it.
1431 2002-04-12  Werner LEMBERG  <wl@gnu.org>
1433         * doc/groff.texinfo: Completed pass on gtroff reference.
1435 2002-04-11  Werner LEMBERG  <wl@gnu.org>
1437         * doc/groff.texinfo: More fixes.
1439 2002-04-11  Bernd Warken  <bwarken@mayn.de>
1441         * src/include/color.h: Decorate with `const'.
1442         Use `size_t'.
1443         Include `stddef.h'.
1444         * src/libs/libgroff.color.cc: Decorate with `const'.
1445         Use `size_t'.
1446         (color::color): Initialize members.
1447         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
1448         command according to the documentation.
1450         * man/groff_out.man: Updated.
1451         Minor fixes.
1453 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
1455         * src/preproc/html/pre-html.cc (write_start_image): Remove
1456         redundant output.
1457         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
1459         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
1460         \C'hy' caused an assertion failure.
1462         * src/roff/troff/env.cc (environment::environment): Initialize
1463         `emitted_node'.
1464         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
1466 2002-04-10  Werner LEMBERG  <wl@gnu.org>
1468         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1469         Document pvs request and .pvs register.
1471 2002-04-09  Werner LEMBERG  <wl@gnu.org>
1473         * doc/groff.texinfo: Improve and fix documentation of diversions
1474         and environments.
1476 2002-04-08  Werner LEMBERG  <wl@gnu.org>
1478         * doc/groff.texinfo: Fix documentation of drawing functions.
1479         Other minor fixes.
1481 2002-04-07  Werner LEMBERG  <wl@gnu.org>
1483         * doc/groff.texinfo: Better documentation of double quotes as
1484         arguments.
1485         Other minor fixes.
1487 2002-04-06  Werner LEMBERG  <wl@gnu.org>
1489         * man/groff_font.man: Document names of special characters better.
1490         * doc/groff.texinfo: Minor improvements.
1492         * tmac/lbp.tmac: Load latin1.tmac.
1493         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
1495         * font/devX*/*: Regenerated (all chars > 0x80 removed).
1497 2002-04-05  Werner LEMBERG  <wl@gnu.org>
1499         * tmac/tty.tmac: Don't use shc request.
1500         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
1501         * NEWS: Updated.
1503         * man/groff_diff.man: Minor fixes.
1505         * font/devlbp/*: Remove all `charXXX' entities.
1507         * src/libs/libgroff/font.cc (font::~font): Deallocate
1508         `special_device_coding'.
1509         (font::load): Use `new' for allocating `special_device_coding'.
1510         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
1511         Removed unused member.
1513 2002-04-05  Werner LEMBERG  <wl@gnu.org>
1515         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
1516         (resource_manager::do_begin_binary,
1517         resource_manager::do_begin_data): Use it.
1519         * doc/texinfo.tex: Updated to version 4.2.
1521         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
1522         (token::zero_width_break): New inline function.
1523         * src/roff/troff/input.cc (token::next): Use it.
1524         (token::description): Updated.
1525         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
1526         (token::add_to_node_list, token::process): Use it.
1527         * NEWS, doc/groff.texinfo: Updated.
1529         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
1530         * tmac/tty.tmac: Add missing backslash.
1532 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
1534         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
1535         `.ps' register instead of `.s' to handle fractional point sizes.
1536         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
1537         limit_box::output): Ditto.
1538         * src/preproc/eqn/other.cc (size_box::compute_metrics,
1539         size_box::output): Ditto.
1540         * src/preproc/eqn/over.cc (over_box::compute_metrics,
1541         over_box::output): Ditto.
1542         * src/preproc/eqn/script.cc (script_box::compute_metrics,
1543         script_box::output): Ditto.
1544         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
1545         sqrt_box::output): Ditto.
1547 2002-04-03  Michael Selway  <mas@ssl.co.uk>
1549         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
1550         Fix typo.
1552 2002-04-03  Werner LEMBERG  <wl@gnu.org>
1554         * doc/homepage.ms: Reduce title size.
1555         * doc/groff.texinfo: Fix documentation of .t register.
1556         Fix handling of colon.
1557         Fix `\' vs. `\\'.
1559         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
1560         only if page length is positive to avoid a loop.
1562         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
1563         tbl.
1565 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
1567         * src/include/nonposix.h, src/roff/groff/pipeline.c:
1568         s/__CYGWIN32__/__CYGWIN__/.
1570 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
1572         * doc/gnu.xpm: New image contributed by Emily Mulley.
1573         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
1574         (homepage.html): Be dependent on gnu.eps.
1575         * doc/homepage.ms: Updated to new image.
1577         * src/devices/grohtml/post-html.cc (html_printer): New member
1578         `sbuf_prev_hpos'.
1579         (html_printer::flush_sbuf, html_printer::set_char): Set it.
1580         (html_printer::sbuf_continuation): Use it.
1582 2002-03-28  Werner LEMBERG  <wl@gnu.org>
1584         * src/libs/libgroff/getopt.c: Updated to latest version.
1586         * tmac/README: More on hyphen.tex license.
1588 2002-03-26  Larry Kollar  <kollar@alltel.net>
1590         * doc/groff.texinfo: Add documentation of most missing requests.
1592 2002-03-25  Werner LEMBERG  <wl@gnu.org>
1594         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
1595         of `+-', `mu', and `di', respectively.
1597         * font/devascii/R.proto, font/devutf8/R.proto,
1598         font/devlatin1/R.proto, font/devhtml/R.proto,
1599         font/devcp1047/R.proto, font/devlpb/*: Add them.
1600         * font/devps/generate/textmap: Ditto.
1601         * font/devps/*: Regenerated.
1602         * font/devlj4/generate/text.map: Add them.
1603         * font/devlj4/*: Regenerated.
1604         * font/devdvi/generate/tc.map: Use them.
1605         * font/devdvi/generate/texsy.map: Add them.
1606         * font/devdvi/*: Regenerated.
1607         * font/devX*/*: Regenerated.
1609         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
1610         tmac/tty-char.tmac: Updated.
1612         * NEWS, man/groff_char.man: Updated.
1614 2002-03-24  Werner LEMBERG  <wl@gnu.org>
1616         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
1617         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
1618         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
1619         we use `.fchar' in dvi.tmac.
1620         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
1621         * tmac/Xps.tmac: Simplify some char definitions.
1622         Add definition for \[f/].
1623         * man/groff_char.man: Updated for new X.tmac.
1625         * tmac/README: New file.
1627 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
1629         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
1630         internal .y.o rule took precendence over the .y.cc rule, compiling
1631         the yacc files with gcc instead of g++.
1633 2002-03-23  Werner LEMBERG  <wl@gnu.org>
1635         * tmac/dvi.tmac: Add replacement font for `CB'.
1637         * tmac/doc.tmac: s/request/macro/ in messages.
1638         (doc-generic-macro): Improve error message.
1639         * tmac/groff_mdoc.man: Minor improvements.
1641 2002-03-22  Werner LEMBERG  <wl@gnu.org>
1643         * doc/groff.texinfo: Document possible conflict between `tr' and
1644         `char' requests.
1646 2002-03-21  Werner LEMBERG  <wl@gnu.org>
1648         Improve handling of hyphenation patterns.  It is now possible to
1649         use most of TeX's pattern files unmodified.  To make the process
1650         more flexible, a new request `hpfcode' has been added which
1651         provides a character code mapping for the `hpf' request.  See
1652         comment before hpf_getc() for more details.
1654         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
1655         functions.
1656         (read_patterns_file): Additional parameter for exception dictionary.
1657         Extended to recognize \pattern, \hyphenation, and \endinput.
1658         (do_hyphenation_patterns_file): Updated.
1659         * src/roff/troff/env.h (hpf_code_table): New extern.
1661         * src/roff/troff/input.cc (hpf_code_table): New array.
1662         (init_hpf_code_table, hyphenation_patterns_file_code): New
1663         functions.
1664         (hyphenation_code): Handle translation from `trin' correctly.
1665         (main, init_input_requests): Updated.
1666         (charinfo::set_translation): Handle hyphenation code also.
1668         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
1669         inline function.
1671         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
1672         char' is used for offsets in hyphenation exceptions.
1674         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
1676         * NEWS, man/groff_diff.man, man/groff.man: Document it.
1678 2002-03-20  Larry Kollar  <kollar@alltel.net>
1680         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
1681         requests.
1683 2002-03-18  Werner LEMBERG  <wl@gnu.org>
1685         * tmac/html.tmac: Fix serious typo.
1687 2002-03-17  Larry Kollar  <kollar@alltel.net>
1689         * doc/groff.texinfo: Add documentation for `writec' request.
1691 2002-03-17  Werner LEMBERG  <wl@gnu.org>
1693         Added request `hpfa' to append hyphenation patterns.
1695         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
1696         parameter `append'.
1697         (hyphenation_patterns_file): Renamed to...
1698         (do_hyphenation_patterns_file): This.
1699         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
1700         functions.
1701         (init_hyphen_requests): Updated.
1702         * NEWS, man/groff.man, man/groff_diff.man: Document it.
1704 2002-03-16  Werner LEMBERG  <wl@gnu.org>
1706         Added request `writec' in analogy to `tmc'.
1708         * src/roff/troff/input.cc (write_request): Renamed to...
1709         (do_write_request): This.
1710         Added one parameter.
1711         (write_request, write_request_continue): New functions.
1712         (init_input_requests): Updated.
1713         * NEWS, man/groff.man, man/groff_diff.man: Document it.
1715         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
1716         5-10000pt.
1717         * NEWS: Document it.
1719 2002-03-15  Werner LEMBERG  <wl@gnu.org>
1721         * man/groff.man: Add writem request.
1723         Add request `trin' (translate input) to make `.asciify' work
1724         correctly.  This is necessary since `charXXX' entity names are no
1725         longer hardcoded in font definition files.
1727         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
1728         `translate_input' members.
1729         (charinfo::set_asciify_code, charinfo::get_asciify_code,
1730         charinfo::set_translation_input): New methods.
1731         (charinfo::set_translation): Add third argument.
1732         * src/roff/troff/input.cc (charinfo:set_translation): Set
1733         `asciify_code'.
1734         (do_translate): Add second argument.
1735         (translate_input): New function.
1736         (init_input_requests): Updated.
1737         * src/roff/troff/node.cc (glyph_node::asciify,
1738         composite_node::asciify): Use `get_asciify_code'.
1740         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
1742         * NEWS, man/groff.man, man/groff_diff.man: Updated.
1744 2002-03-14  Larry Kollar  <kollar@alltel.net>
1746         * doc/groff.texinfo: Improve documentation of .RS and .RE.
1748 2002-03-14  Werner LEMBERG  <wl@gnu.org>
1750         Add a new request `sizes' similar to the `sizes' command in DESC
1751         files.
1753         * src/roff/troff/env.cc (override_sizes): New function.
1754         (init_env_requests): Use it.
1755         * src/roff/troff/token.h: Export `read_string'.
1756         * NEWS, man/groff_diff.man, man/groff.man: Document it.
1758 2002-03-12  Werner LEMBERG  <wl@gnu.org>
1760         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
1762 2002-03-10  Werner LEMBERG  <wl@gnu.org>
1764         * tmac/pspic.tmac: Add support for -Tdvi.
1765         * tmac/dvi.tmac: Include pspic.tmac.
1766         * src/devices/grodvi/grodvi.man: Document it.
1767         * NEWS: Updated.
1769         * font/devlj4/generate/Makefile: Fix URL of metric files.
1771 2002-03-09  Werner LEMBERG  <wl@gnu.org>
1773         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
1775 2002-03-09  Larry Kollar  <kollar@alltel.net>
1777         * tmac/groff_ms.man: Add documentation for RS and RE macros.
1779 2002-03-08  Werner LEMBERG  <wl@gnu.org>
1781         * doc/groff.texinfo: Fixes for texinfo 4.1.
1783 2002-03-07  Werner LEMBERG  <wl@gnu.org>
1785         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
1786         included.
1787         Handle CYGWIN properly.
1789 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
1791         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
1792         * tmac/lbp.tmac: Add some font translations.
1794 2002-03-02  Werner LEMBERG  <wl@gnu.org>
1796         * font/devcp1047/R.proto, font/devlatin1/R.proto,
1797         font/devhtml/R.proto: Remove `charXXX'  entries.
1798         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
1799         where appropriate.
1801         * font/devlj4/generate/text.map: Remove `charXXX' entries.
1802         * font/devlj4/*: Regenerated all font definition files.
1803         * tmac/lj4.tmac: Load latin1.tmac.
1805         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
1806         from 2000-06-17: LJ4 metric files are *not* text files.
1808         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
1809         register to test for EBCDIC.
1811 2002-03-01  Werner LEMBERG  <wl@gnu.org>
1813         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
1814         files (as grops already does).
1815         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
1816         files.
1817         * src/devices/grops/grops.man: Document comment lines in encoding
1818         files.
1820         * tmac/cp1047.tmac: New file.
1821         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
1822         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
1823         * tmac/Makefile.sub (NORMALFILES): Updated.
1825         * tmac/ec.tmac: Don't load latin1.tmac again.
1827         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
1828         font/devps/generate/dingbats.map,
1829         font/devps/generate/dingbats.rmap, font/devps/text.enc,
1830         font/devps/generate/Makefile (symbolmap): Add header comment.
1831         * font/devps/generate/textmap: Ditto.
1832         Remove `charXXX' entries.
1833         * font/devps/symbolmap: Regenerated.
1834         * font/devps/*: Regenerated all font definition files.
1836 2002-02-28  Werner LEMBERG  <wl@gnu.org>
1838         Add color support to grodvi (for drawing colors are currently
1839         translated to gray values).
1841         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
1842         (dvi_printer): Add `cur_color' member.
1843         (dvi_printer::set_color): New function.
1844         (draw_dvi_printer): Remove `fill'.
1845         (draw_dvi_printer::fill_next): Pass environment as parameter.
1846         Update code for new color support translated to gray.
1847         (dvi_printer::set_char): Updated.
1848         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
1849         changes crossing the page border.
1850         (dvi_printer::draw): Updated.
1851         Remove cases `f' and `F'.
1852         * tmac/dvi.tmac: Add color definitions.
1853         * NEWS, src/devices/grodvi/grodvi.man: Updated.
1855         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
1856         used incorrectly.
1858         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
1859         versions of autoconf.
1860         * configure: Updated.
1862         * doc/homepage.ms: Use `.blm'.
1863         * tmac/www.tmac (www-depth): New auxiliary variable.
1864         (www-pop-level): Don't issue HTML tag.
1865         (ULS, ULE, LI): Use absolute indentation.
1867         * src/devices/grops/ps.cc (ps_printer::begin_page,
1868         ps_printer::end_page): Switch forth and back to default color while
1869         starting a new page.
1871 2002-02-27  Werner LEMBERG  <wl@gnu.org>
1873         Add EC and TC fonts to devdvi.
1875         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
1876         * font/devdvi/generate/cork.map: Renamed to...
1877         * font/devdvi/generate/ec.map: This.
1878         Remove entry for `aq'.
1879         * font/devdvi/generate/tc.map: New file.
1880         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
1881         EC and TC fonts.
1882         (FONTS): Updated.
1883         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
1884         * font/devdvi/Makefile.sub (DEVFILES): Updated.
1885         * tmac/ec.tmac: New file.
1886         * tmac/Makefile.sub (NORMALFILES): Updated.
1887         * NEWS, src/devices/grodvi/grodvi.man: Updated.
1888         * man/groff_char.man: Check `ECFONTS' register.
1890         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
1892 2002-02-26  Werner LEMBERG  <wl@gnu.org>
1894         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
1895         * font/devdvi/generate/cork.map: Add 'y and 'Y.
1896         * font/devdvi/*: Updated.
1897         * tmac/dvi.tmac: Formatting.
1899         Add font `HBI' for the dvi output.
1900         Add support for font families `T' and `H'.
1902         * font/devdvi/HBI: New file.
1903         * font/devdvi/B: Renamed to ...
1904         * font/devdvi/TB: This.
1905         * font/devdvi/BI: Renamed to ...
1906         * font/devdvi/TBI: This.
1907         * font/devdvi/I: Renamed to ...
1908         * font/devdvi/TI: This.
1909         * font/devdvi/R: Renamed to ...
1910         * font/devdvi/TR: This.
1911         * font/devdvi/H: Renamed to ...
1912         * font/devdvi/HR: This.
1913         * font/devdvi/Makefile.sub (DEVFILES): Updated.
1914         * font/devdvi/generate/Makefile (HBI): New rule.
1915         (FONTS): Updated.
1916         (R, I, B, BI, H): Renamed to ...
1917         (TR, TI, TB, TBI, HR): This, respectively.
1918         (srcdir): Fixed.
1919         * NEWS, src/devices/grodvi/grodvi.man: Updated.
1920         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
1921         Add `styles' and `family' keywords.
1922         * tmac/dvi.tmac: Alias `H' to `HR'.
1923         Add some fspecial requests for italic fonts.
1924         Add TR and TI as special.
1925         Add support for `_' with font CWI.
1927         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
1928         operator `:'.  Until now, the expression `0:1' would return 2
1929         instead of 1.
1931 2002-02-25  Werner LEMBERG  <wl@gnu.org>
1933         * man/groff_char.man: Added some missing PS glyph names (from the
1934         Adobe Glyph List).
1935         * font/devps/generate/textmap, font/devps/symbolmap: Add
1936         `arrowupdn'.
1938         * doc/groff.texinfo: Minor additions and fixes.
1939         * man/groff_diff.man: Remove documentation of fp request.  This
1940         is already covered in the original troff manual.
1941         Updated to be consistent with other doc files.
1942         * NEWS: Updated.
1944 2002-02-24  Werner LEMBERG  <wl@gnu.org>
1946         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
1947         TTYDEVDIRS.
1948         Define new variable OTHERDEVDIRS (containing `font/devlj4
1949         font/devlbp' if not EBCDIC).
1950         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
1951         (OTHERDEVDIRS): New variable.
1952         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
1953         * configure: Regenerated.
1955         * NEWS, src/devices/grotty/grotty.man: Updated.
1957 2002-02-23  Werner LEMBERG  <wl@gnu.org>
1959         * src/roff/troff/input.cc (do_overstrike, do_bracket,
1960         get_line_arg): Honour input level.
1962         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
1964         * font/*/*: Implement it in all font files.
1965         * font/devps/generate/textmap, font/devps/generate/symbolchars,
1966         * font/devps/symbolmap: Updated.
1967         * font/devlj4/generate/text.map: Updated.
1968         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
1969         * font/devdvi/generate/texmi.map: Updated.
1971         * font/devutf8/R.proto: Remove all `charXXX' entries.
1972         * font/devutf8/NOTES: Updated.
1974         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
1975         version 4.1.0.
1977         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
1979         * NEWS, man/groff_char.man: Updated.
1981 2002-02-21  Phil Lobbes <phil@perkpartners.com>
1983         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
1985 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
1987         * src/roff/grog/grog.pl: Fix computation of $refer.
1989 2002-02-19  Werner LEMBERG  <wl@gnu.org>
1991         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
1992         `snprintf' and `vsnprintf'.
1994         * src/include/htmlindicate.h: Renamed to...
1995         * src/include/htmlhint.h: This.
1996         * src/include/Makefile.sub: Updated.
1997         * src/preproc/eqn/main.cc: Updated.
1999 2002-02-18  Werner LEMBERG  <wl@gnu.org>
2001         * man/roff.man, man/groff_out.man, man/groff.man,
2002         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
2003         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
2005         * win32-diffs: Updated.
2007 2002-02-17  Werner LEMBERG  <wl@gnu.org>
2009         * doc/Makefile (clean): Add *.eps.
2010         (MEMACROS): Removed.
2011         (TFLAG): New variable.
2012         (TROFF): Use it.
2013         Add -ww.
2014         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
2015         (.me.dit): Fixed.
2016         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
2018         * tmac/www.tmac: Use dummy diversion while resetting and disabling
2019         `.tl'.
2020         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
2021         unstripped.
2022         * src/roff/troff/troff.man: Fix order of parameter description.
2024         * NEWS: Updated.
2026 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
2028         Simplify image handling for grohtml.
2029         Fix <p> bug.
2031         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
2032         comment out.
2033         (html_text::dump_stack): Don't emit newline while debugging.
2034         (html_text::do_push) [DEBUGGING]: Print more info.
2035         (html_text::check_emit_text): Fix handling of <p>.
2036         * src/devices/grohtml/html.h: Updated.
2037         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
2038         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
2039         send its data to stderr also.
2040         Update all callers.
2041         (simple_output::space_or_newline) [DEBUGGING]: Removed.
2042         * src/devices/grohtml/post-html.cc (html_printer::do_links,
2043         html_printer::html_printer): Remove `DEBUGGING' conditionals.
2045         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
2046         Removed.
2047         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
2048         is_inline_image): Removed.
2049         (html_begin_suppress, html_end_suppress): Don't take a parameter.
2050         (graphic_start, graphic_end): Removed.
2051         * src/include/htmlindicate.h: Updated.
2052         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
2053         (macroset_template): New global variable.
2054         (makeFileName): Use `macroset_template'.
2055         (write_end_image): Don't take a parameter.
2056         Don't emit newline.
2057         (write_start_image: Don't emit newline.
2058         (char_buffer::write_upto_newline): Updated.
2059         (char_buffer::skip_to_newline): Renamed to ...
2060         (char_buffer::skip_until_newline): This.
2061         Fix code.
2062         (char_buffer::write_file_troff, char_buffer::write_file_html):
2063         Simplified.
2064         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
2065         (removeAllPages): Remove `DEBUGGING' conditionals.
2066         (addRegDef, dump_args): New functions.
2067         (char_buffer::do_html, char_buffer::do_image): Handle
2068         `www-image-template' command line variable.
2069         Add more debugging code.
2070         (addps4html): Removed.
2071         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
2073         * src/preproc/eqn/main.cc: Include `ctype.h'.
2074         (suppress_html): Removed.
2075         (do_file): Updated.
2076         (inline_equation): Use `html_begin_suppress' and
2077         `html_end_suppress'.
2078         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
2079         (troff_output::start_picture, troff_output::finish_picture):
2080         Updated.
2081         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
2082         (process_input_file): Updated.
2084         * src/roff/troff/div.cc (page_number): Set page number only if the
2085         `ps4html' register isn't defined.
2086         * src/roff/troff/input.cc (image_no): New external variable.
2087         (do_suppress): Use it.
2088         * src/roff/troff/node.h (suppress_node::image_id): New member.
2089         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
2090         (suppress_node::suppress_node): Initialize `image_id' member.
2091         (suppress_node::same): Handle `image_id' also.
2092         (suppress_node::copy): Updated.
2093         (last_image_id): New global variable.
2094         (suppress_node::tprint): Use it.
2096         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
2097         HTML-IMAGE-END.
2098         * tmac/pspic.mac (PSPIC): Fix html support.
2099         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
2100         * tmac/www.tmac (www-image-template): Set up.
2101         (HTMLINDEX): Renamed to...
2102         (HX): This.
2103         (BODYCOLOR): Renamed to...
2104         (BCL): This.
2105         (BACKGROUND): Renamed to...
2106         (BGIMG): This.
2107         (URL): Change order of parameters for consistency.
2108         (MAILTO): Renamed to...
2109         (MTO): This.
2110         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
2111         (IMG, PIMG, MPIMG): This.
2112         (HTML-H-BEGIN, HTML-H-END): Renamed to...
2113         (HnS, HnE): This.
2114         (LINKS): Renamed to...
2115         (LK): This.
2116         (LINE): Renamed to...
2117         (HR): This.
2118         (NO-AUTO-RULE): Renamed to...
2119         (NHR): This.
2120         (HTML-TL): Renamed to...
2121         (HTL): This.
2122         (UL-BEGIN, UL-END): Renamed to...
2123         (ULS, ULE): This.
2124         (DROPCAP): Renamed to...
2125         (DC): This.
2126         (TS, TE, EQ, EN): Provide default definitions.
2127         (www-make-unique-name): Updated.
2128         (HTML-IMAGE-INLINE): Fix typo.
2129         * tmac/groff_www.man: Updated.
2131         * doc/Makefile (homepage.html): Add option -r to grohtml.
2132         Use shortened image name.
2133         * doc/groff.texinfo: Updated info on grohtml strings and macros.
2134         * doc/homepage.ms: Updated and extended.
2136 2002-02-14  Werner LEMBERG  <wl@gnu.org>
2138         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
2140         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
2141         SGR_BACK_DEFAULT_COLOR): Replaced with ...
2142         (tty_printer::put_color): Use it.
2143         (ttr_printer::end_page): Simplify.
2145 2002-02-13  Werner LEMBERG  <wl@gnu.org>
2147         * tmac/groff_tmac.man: Moved to...
2148         * man/groff_tmac.man: This place.
2149         * tmac/Makefile.sub, man/Makefile.sub: Updated.
2151 2002-02-12  Werner LEMBERG  <wl@gnu.org>
2153         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
2154         $(COMPILE.c) to not include groff's assert.h.
2156         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
2157         variable.
2158         * NEWS, src/drivers/grotty/grotty.man: Document it.
2160 2002-02-11  Werner LEMBERG  <wl@gnu.org>
2162         * src/libs/snprintf/snprintf.c: Updated to latest version
2163         (2002-02-11).
2165         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
2166         test whether there is `.]' also.
2167         Don't check for spaces after `.['.
2168         * src/roff/grog/grog.sh: Do the same.
2170 2002-02-10  Werner LEMBERG  <wl@gnu.org>
2172         Illegal -> Invalid.
2174         * src/libs/libgroff/illegal.cc: Renamed to ...
2175         * src/libs/libgroff/invalid.cc: This.
2176         (illegal_char_table): Renamed to ...
2177         (invalid_char_table): This.
2178         * src/libs/libgroff/Makefile.sub: Updated.
2179         * win32-diffs: Updated.
2181         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
2182         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
2183         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
2184         font::load), src/preproc/eqn/main.cc (read_line, main),
2185         src/preproc/eqn/lex.cc (file_input::read_line),
2186         src/preproc/pic/lex.cc (file_input::read_line,
2187         simple_file_input::get, simple_file_input::peek),
2188         src/preproc/pic/main.cc (top_input::get, top_input::peek),
2189         src/preproc/pic/pic.man, src/preproc/refer/main.cc
2190         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
2191         do_bib), src/preproc/tbl/main.cc (table_input::get),
2192         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
2193         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
2194         do_zero_width, read_request, encode_char, ps_get_line,
2195         transparent_file, get_char_for_escape_name, transparent_translate,
2196         asciify, input_char_description, read_string, set_string),
2197         src/roff/troff/env.cc (environment::add_html_tag),
2198         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
2200         * src/include/lib.h: Updated.
2202         * src/preproc/eqn/eqn.cc: Removed.
2204         * NEWS: Updated.
2206         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
2208 2002-02-09  Werner LEMBERG  <wl@gnu.org>
2210         * doc/gnu.xpm: New image.
2211         * doc/Makefile (DOCS): Add homepage.ps.
2212         Add rules for converting xpm->png and xpm->eps.
2213         Use `gnu.{xpm,eps}' as image names.
2214         * doc/homepage.ms: Updated.
2216 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
2218         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
2219         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
2220         Remove calls to `B1' and `B2'
2221         (PNG-IMAGE): New macro for inclusion of images in PNG format.
2222         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
2223         auxiliary variables for MARGIN-PNG-IMAGE.
2224         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
2225         auxiliary macros for MARGIN-PNG-IMAGE.
2226         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
2227         the margin.
2228         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
2229         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
2230         (DROPCAP): New macro to produce dropcap characters.
2231         (www-do-image): Renamed back to...
2232         (HTML-DO-IMAGE): This.
2233         Updated all callers.
2235         * doc/Makefile (gnubw.eps): Updated.
2236         * doc/homepage.ms: Updated.
2238 2002-02-08  Werner LEMBERG  <wl@gnu.org>
2240         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
2241         Added `linethick' to table in section `Style Variables'.
2243 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
2245         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
2247 2002-02-07  Werner LEMBERG  <wl@gnu.org>
2249         Adding options -C (compatibility mode) and -c (grotty's old output
2250         scheme) to nroff.
2252         * src/roff/nroff/nroff.sh: Implement it.
2253         Remove `-Wall'.
2254         * NEWS, src/roff/nroff/nroff.man: Updated.
2256         * PROBLEMS: Document bison 1.32 bug.
2258         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
2260         * src/roff/troff/node.cc (make_tfont): Define it earlier.
2261         * src/roff/troff/div.h: Add prototype for `end_diversions'.
2262         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
2263         * src/roff/troff/env.h: Add prototype for `title'.
2265         Adding EBCDIC support to grotty.
2267         * src/devices/grotty/tty.cc (CSI): New macro.
2268         (SGR_*, tty_printer::put_color): Use it.
2270 2002-02-06  Werner LEMBERG  <wl@gnu.org>
2272         Implementing color support in grotty.  The new switch -c activates
2273         the old drawing scheme, disabling color at the same time.  The new
2274         switch `-i' selects italic instead of underlining (SGR only).
2276         * src/devices/grotty/tty.cc (putstring): New define instead of
2277         `fputs'.  Updated all callers.
2278         (old_drawing_scheme): New global variable.
2279         (COLOR_CHANGE): New enum value.
2280         (SGR_*): New defines containing color handling escape sequences.
2281         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
2282         (glyph): New members `back_color_idx' and `fore_color_idx'.
2283         (glyph::order): Add COLOR_CHANGE.
2284         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
2285         `is_underline', `is_bold', `cu_flag', `tty_colors'.
2286         New methods `make_underline', `make_bold', `color_to_idx',
2287         `change_color', `put_color'.
2288         (cu_flag): Moved into `tty_printer' class.
2289         (tty_printer::tty_printer): Initialize colors.
2290         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
2291         tty_printer::draw, tty_printer::end_page): Handle colors also.
2292         (main): Add options `-c' and `-i'.
2293         (usage): Updated.
2294         * NEWS, src/devices/grotty/grotty.man: Updated.
2296         * src/include/errarg.h (errarg): Add support for `unsigned int'.
2297         * src/libs/libgroff/errarg.c: Implement it.
2299         * src/include/printer.h (printer): Add `change_color' method
2300         (currently used by grotty only).
2301         * src/libs/libdriver/printer.cc: Implement it.
2302         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
2303         call to `pr->change_color'.
2305         * src/roff/troff/node.cc (troff_output_file::fill_color,
2306         troff_output_file::glyph_color): Call `do_motion'.
2308         * tmac/tty.tmac: Add color definitions.
2310         * src/roff/groff/groff.man: Minor fixes.
2312 2002-02-05  Bernd Warken  <bwarken@mayn.de>
2314         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
2315         it.  This is a preparation for future changes.
2317 2002-02-05  Werner LEMBERG  <wl@gnu.org>
2319         * src/roff/troff/input.cc (process_input_stack): Fix the case
2320         where leading spaces are followed by \f or \s; previously, an
2321         incorrect space width has been used.
2323         * doc/roff.man (quoted_char): Fix argument.
2324         (comment): Define string.
2326 2002-02-04  Larry Kollar  <kollar@alltel.net>
2328         * doc/groff.texinfo: More fixes.
2330 2002-02-04  Werner LEMBERG  <wl@gnu.org>
2332         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
2333         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
2334         `restore_compatibility' before `output_string' -- the LINE_STRING
2335         register now already contains proper switches from and to
2336         compatibility mode.
2338         * man/groff_char.man: Add Euro symbol.
2339         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
2340         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
2341         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
2342         Other minor fixes.
2344         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
2345         texinfo->pdf.
2346         (.texinfo.html): Add support for texinfo->html.
2348 2002-02-03  Werner LEMBERG  <wl@gnu.org>
2350         Added three new requests `ds1', `as1', and `ami'.  The former two
2351         are equivalent to `ds' and `as' with the difference that
2352         compatibility mode is saved on entry, switched off during string
2353         expansion, and restored on exit.  The latter is the pendant to `dei'
2354         for `am'.
2356         (do_define_string): Use `define_mode' and `calling mode'.
2357         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
2358         end of string, respectively.
2359         (define_string, append_string): Use `calling_mode'.
2360         (define_nocomp_string, append_nocomp_string,
2361         define_string_indirect): New functions.
2362         (init_input_requests): Updated.
2363         * NEWS, man/groff_diff.man, man/groff.man: Document it.
2365         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
2366         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
2367         mm macro package accesses this string register directly.
2368         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
2370         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
2371         compatibility mode.
2373 2002-02-02  Larry Kollar  <kollar@alltel.net>
2375         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
2377 2002-01-31  Werner LEMBERG  <wl@gnu.org>
2379         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
2381 2002-01-31  Bernd Warken  <bwarken@mayn.de>
2383         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
2384         * man/groff_out.man: Revised and updated.
2386 2002-01-30  Bernd Warken  <bwarken@mayn.de>
2388         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
2389         out the unused `{' and `}' commands.  Undefined by default.
2390         (IntArray): Make `data' private.
2391         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
2392         new methods instead.
2393         (skip_line_D, skip_to_end_of_line): New functions.
2394         (get_D_fixed_args): Use `skip_line_D'.
2395         Changed to handle dummy odd arguments by ...
2396         (get_D_fixed_args_odd_dummy): This new function.
2397         (get_D_variable_args): Split some code into ...
2398         (get_possibly_integer_args): This new function.
2399         (send_draw): Use more `const'.
2400         (delete_current_env): New function.
2401         (position_to_end_of_args): Use `size_t'.
2402         Updated.
2403         (send_draw): Updated.
2404         (parse_D_command): Handle `c', `C', and `t' better.
2405         Updated.
2406         (do_file): Updated.
2408 2002-01-29  Werner LEMBERG  <wl@gnu.org>
2410         * NEWS: Revised.
2411         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
2412         @Def...ListEnd which replaces @Def...x.  This is necessary to get
2413         proper HTML output -- see the comment in the file for more
2414         information.
2415         Updated all calls.
2417 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
2419         Fixes to make color changes of 2002-01-21 work with grohtml.
2421         * src/devices/grohtml/post-html.cc (style): Updated.
2422         (html_printer): Remove unused methods.
2423         (html_printer::do_font, html_printer::draw, html_printer::set_char,
2424         html_printer::special): Updated.
2425         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
2426         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
2427         Added some debugging code.
2428         (html_text::start_tag): Updated.
2429         (html_text::do_push): New method.
2430         (html_text::push_para): Call it.
2431         Add method for handling color.
2432         (html_text::do_color): Updated.
2433         (html_text::shutdown): Handle color.
2434         * src/devices/grohtml/html-text.h (tag_definition): New member
2435         `col'.
2436         Updated.
2438 2002-01-28  Werner LEMBERG  <wl@gnu.org>
2440         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
2442 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
2444         Add two switches -a and -g to control the antialiasing bits for
2445         text and graphics, respectively.
2447         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
2448         `-g'.
2449         * src/devices/grohtml/grohtml.man: Document them.
2450         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
2451         New macros.
2452         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
2453         (setupAntiAlias): New function.
2454         (createAllPages): Updated.
2455         (scanArguments): Handle `-a' and `-g'.
2456         (main): Call `setupAntiAlias'.
2457         * NEWS: Updated.
2459 2002-01-27  Werner LEMBERG  <wl@gnu.org>
2461         * doc/groff.texinfo (Def*): Call index function after deffn.
2463         * tmac/html.tmac: Call `nroff' request.
2465 2002-01-26  Larry Kollar  <kollar@alltel.net>
2467         * tmac/groff_ms.man: Add some omissions.
2469 2002-01-25  Larry Kollar  <kollar@alltel.net>
2471         * tmac/groff_ms.man: Typographical improvements.
2473 2002-01-25  Werner LEMBERG  <wl@gnu.org>
2475         * doc/groff.texinfo: Updated version and copyright.
2476         * src/devices/grops/grops.man: Updated.
2478         * tmac/groff_tmac.man: Fix `ig' macro.
2480         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
2481         nroff mode.
2482         Use `.ne' unconditionally everywhere.
2483         (TS): Only insert some vertical space.  Doing a page break is no
2484         longer necessary due to the redefinition of the `ne' request.
2486         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
2487         warning for unknown subcommands but parse and pass them to the
2488         device driver.
2490 2002-01-24  Werner LEMBERG  <wl@gnu.org>
2492         * tmac/groff_www.man, NEWS: Fix typos.
2494 2002-01-21  Werner LEMBERG  <wl@gnu.org>
2496         Complete revision of color support:
2498           Adapt programs to the new libdriver/input.cc.
2500           Color spaces are no longer converted to RGB but transferred as-is
2501           in the troff intermediate output format.
2503           Handle default color gracefully.  troff now supports a `default'
2504           color (which can't be changed).
2506           grops will now use the proper color space functions if available.
2508           Update pic.
2510         Note that currently grohtml doesn't handle colors properly.  This
2511         has to be fixed.
2513         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
2514         (ui_to_a): New function.
2515         * src/include/lib.h: Updated.
2517         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
2518         (color): Simplified; removed all `double' members and methods.
2519         A new array `components' now holds the color parameters.
2520         (color::is_default, color::get_components): New methods.
2521         (color::operator==, color:operator!=): New.
2522         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
2523         to make access to the `components' array more comprehensible.
2524         * src/libs/libgroff/color.cc: Implement new color support.
2525         (atoh): Small fixes.
2526         (color::read_encoding): Simplified for new troff intermediate color
2527         output format.
2528         (default_color): New global variable.
2530         * src/roff/troff/input.cc (default_symbol): New global variable.
2531         (lookup_color): Use it.
2532         (default_black): Removed.
2533         (do_glyph_color, do_fill_color): Simplified.
2534         (define_color): Handle default color.
2535         Improve warnings.
2536         (do_if_request): Handle default color.
2537         * src/roff/troff/env.cc (environment::environment): Initialize
2538         colors with `default_color'.
2539         * src/roff/troff/node.cc (troff_output_file::put): Add method
2540         for `unsigned int'.
2541         (troff_output_file::hex): Removed.
2542         (troff_output_file::fill_color, troff_output_file::glyph_color):
2543         Updated to include/color.h and libdriver/input.cc.
2545         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
2546         fill color properly (identically to the outline color).  \D'f...'
2547         doesn't work any more.
2548         All function calls to it updated.
2550         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
2551         Updated.
2552         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
2553         Updated.
2555         * src/devices/grops/ps.cc (ps_output::put_color): New method.
2556         (ps_printer::sbuf_color): Make a real member instead of pointer.
2557         (ps_printer::fill_color, ps_printer::output_color): Removed.
2558         (ps_printer::ps_printer): Updated.
2559         (ps_printer::set_char): Ditto.
2560         (ps_printer::set_color): Use various color schemes.
2561         Use `put_color' method.
2562         (ps_printer::flush_sbuf): Don't set color.
2563         (ps_printer::fill_path): Take `environment' as parameter.
2564         Simplify color handling.
2565         (ps_printer::set_line_thickness): Renamed to ...
2566         (ps_printer::set_line_thickness_and_color): This (and updated).
2567         (ps_printer::set_color): Change second parameter from `complete'
2568         to `fill' which better describes what it does.
2569         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
2570         and text in the right order.
2571         Updated.
2572         Remove branches for `f' and `F'; this is handled by
2573         libdriver/input.cc.
2574         * src/devices/grops/ps.h: Updated.
2575         * font/devps/prologue (FL): Redefined.
2576         ({F,C}r,k,g: New color functions (with and without filling).
2578         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
2579         * man/groff_diff.man, man/groff.man, man/groff_out.man,
2580         doc/groff.texinfo, NEWS: Updated.
2582 2002-01-20  Bernd Warken  <bwarken@mayn.de>
2584         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
2585         in this file for what has been changed.
2587 2002-01-19  Werner LEMBERG  <wl@gnu.org>
2589         * test-groff: Fix GROFF_FONT_PATH.
2590         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
2591         is read before .TH or .Dd is parsed.
2593 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
2595         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
2596         quadrant boundaries.
2598 2002-01-18  Werner LEMBERG  <wl@gnu.org>
2600         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
2601         applied last patch.
2603 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
2605         * tmac/doc.common: Initialize %I register for the %I macro to
2606         avoid (harmless) warning.
2607         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
2608         when in the SYNOPSIS section.
2610 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
2612         * src/preproc/pic/lex.cc (get_token): Fix typo.
2614 2002-01-17  Werner LEMBERG  <wl@gnu.org>
2616         * devices/grops/ps.cc: Fix incorrectly applied last patch.
2618 2002-01-17  Larry Kollar  <kollar@alltel.net>
2620         * tmac/groff_ms.man: Completely rewritten.
2622 2002-01-16  Werner LEMBERG  <wl@gnu.org>
2624         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
2626 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
2628         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
2629         fill colors.
2630         (ps_printer::draw): Ditto.
2632 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
2634         * tmac/groff_mdoc.man: Minor fixes.
2636 2002-01-13  Werner LEMBERG  <wl@gnu.org>
2638         * man/groff_out.man: Some fixes.
2640 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
2642         * doc/pic.ms: Fix typos.
2644 2002-01-12  Werner LEMBERG  <wl@gnu.org>
2646         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
2648 2002-01-10  Werner LEMBERG  <wl@gnu.org>
2650         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
2651         symbols.
2652         * NEWS: Updated.
2654 2002-01-09  Bernd Warken  <bwarken@mayn.de>
2656         * man/groff_out.man: Revised.
2657         * man/roff.man: Minor fixes.
2658         * src/roff/troff/troff.man: Some reordering.
2660 2002-01-09  Werner LEMBERG  <wl@gnu.org>
2662         * tmac/an-old.tmac: Add dummy macros for equation support.
2664 2002-01-07  Werner LEMBERG  <wl@gnu.org>
2666         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
2668         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
2669         man pages.
2670         * tmac/groff_man.man: Small improvements.
2672 2002-01-07  Bernd Warken  <bwarken@mayn.de>
2674         * man/groff_diff.man: Revised.
2676 2002-01-06  Werner LEMBERG  <wl@gnu.org>
2678         * tmac/www.tmac: Remove extraneous backslash.
2680 2002-01-06  Bernd Warken  <bwarken@mayn.de>
2682         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
2684 2002-01-05  Werner LEMBERG  <wl@gnu.org>
2686         Integrated groffer, contributed by Bernd Warken.
2688         * contrib/groffer/*: New.       
2689         * Makefile.in, NEWS: Updated.
2691 2002-01-04  Werner LEMBERG  <wl@gnu.org>
2693         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
2694         registers defined in macro packages.
2695         Revising the ms part.
2697 2002-01-04  Larry Kollar  <kollar@alltel.net>
2699         * doc/groff.texinfo: Add documentation for ms macros.
2701 2002-01-02  Werner LEMBERG  <wl@gnu.org>
2703         First step in adding PS support for the Euro symbol.  `eu' is the
2704         official Euro logo, `Eu' is a font-specific glyph variant.
2706         * font/devps/text.enc: Add `Euro' at position 9.
2707         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
2708         * font/devps/symbolmap: Regenerated.
2710         * NEWS: Updated.
2712 2002-01-02  Bernd Warken  <bwarken@mayn.de>
2714         * man/roff.man: Revised.
2716 2002-01-01  Bernd Warken  <bwarken@mayn.de>
2718         * src/roff/groff/groff.man: Completely rewritten.
2720 2001-12-31  Werner LEMBERG  <wl@gnu.org>
2722         * doc/Makefile: Updated.
2724 2001-12-30  Werner LEMBERG  <wl@gnu.org>
2726         * tmac/www.tmac: Make all names of internal macros/registers/strings
2727         lowercase, and prepend `www-'.
2728         Other minor changes.
2729         * src/roff/troff/troff.man: Add preprocessor string at BOF.
2731 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
2733         Implement option `-b' in grohtml to set the HTML background colour.
2735         * src/devices/grohtml/post-html.cc (default_background): New global
2736         variable.
2737         (html_printer::html_printer): Initialize `background' to
2738         `default_background'.
2739         (main): Implement option `-b'.
2740         (usage): Updated.
2741         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
2742         of `-b' option.
2743         * src/devices/grohtml/grohtml.man: Updated.
2744         * doc/Makefile (.ms.html): Use `-b'.
2745         * tmac/html.tmac: Don't set background color.
2747         Add new grohtml tag `.html-tl'.
2749         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
2750         member variable.
2751         (title_desc::title_desc): Updated.
2752         (html_printer::troff_tag): Handle `.html-tl'.
2753         (html_printer::write_title): Use `with_h1'.
2754         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
2755         (HTML-TL): New macro.
2757         Add support for unordered lists in HTML.
2759         * tmac/www.tmac (www-level): New auxiliary register.
2760         (www-level1, www-level2, www-level3): New auxiliary strings.
2761         (www-push-level, www-pop-level): New auxiliary macros
2762         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
2764         Miscellaneous.
2766         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
2767         (DEFAULT_VERTICAL_OFFSET): Removed.
2768         (IMAGE_BOARDER_PIXELS): Set to 0.
2769         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
2770         (vertical_offset): Initialize with 0.
2771         (gsPaper): New global variable.
2772         (get_resolution): Scan for and return unsigned int.
2773         (get_papersize): New function to get paper length from devps/DESC.
2774         (determine_vertical_offset): New function.
2775         (createAllPages): Produce gray-level images and use proper page
2776         length.
2777         (createImage): Use `-quiet' option of pnmcrop.
2778         (addZ): Fix passing of `-Z'.
2779         (scanArguments): Fix handling of `-o'.
2780         (main): Call `determine_vertical_offset'.
2781         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
2782         code for `l'.
2784         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
2785         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
2786         glyph descenders properly.
2788         * doc/homepage.ms: Include `gnubw.eps'.
2789         * doc/Makefile (gnubw.eps): New rule.
2790         (homepage.html): Depend on `gnubw.eps'.
2792 2001-12-25  Werner LEMBERG  <wl@gnu.org>
2794         * src/roff/troff/input.cc (default_black): Fix return value.
2796 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
2798         * tmac/doc-common (Dt): Change output of architecture strings.
2799         Do some syntax cleanup.
2800         * tmac/groff_mdoc.man: Updated.
2802 2001-12-23  Werner LEMBERG  <wl@gnu.org>
2804         Adding an `itc' request (input line trap accepting \c).
2806         * src/roff/troff/env.h (environment): New member
2807         `continued_input_trap'.
2808         Make `do_input_trap' a friend function instead of `input_trap'.
2809         * src/roff/troff/env.cc (environment::environment,
2810         environment::copy): Updated.
2811         (environment::newline): Implement it.
2812         (do_input_trap): New function.
2813         (input_trap): Call `do_input_trap'.
2814         (input_trap_continued): New function.
2815         (init_env_requests): Updated.
2816         * src/roff/troff/TODO: Updated.
2818         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
2819         `.it'.
2821         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
2823 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
2825         * tmac/doc-common, tmac/doc-syms: Small updates.
2827 2001-12-22  Colin Watson  <cjwatson@debian.org>
2829         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
2831 2001-12-22  Bernd Warken  <bwarken@mayn.de>
2833         * MANIFEST: New file.
2835 2001-12-22  Werner LEMBERG  <wl@gnu.org>
2837         * src/preproc/grn/grn.man: Updated.
2839 2001-12-22  Solar Designer  <solar@openwall.com>
2841         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
2842         (DBRead): Use it.
2844 2001-12-19  Werner LEMBERG  <wl@gnu.org>
2846         Implement a fallback character request `.fchar'.
2848         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
2849         (is_fallback): New inline function.
2850         * src/roff/troff/input.cc (do_define_character): New function.
2851         (define_character): Call `do_define_character'.
2852         (define_fallback_character): New function.
2853         (init_input_requests): Add `fchar'.
2854         (charinfo::charinfo): Updated.
2855         (charinfo::set_macro): New argument to set `fallback' flag.
2856         * src/roff/troff/node.cc (make_glyph_node, make_node,
2857         node::add_char): Check `fallback' flag.
2858         * NEWS, man/groff_diff.man, man/groff_man: Updated.
2860 2001-12-16  Werner LEMBERG  <wl@gnu.org>
2862         * groff.texinfo: Document exact search algorithm for glyphs.
2864 2001-12-15  Werner LEMBERG  <wl@gnu.org>
2866         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
2867         the left side of $(MANPAGES) rule to make it always non-empty.
2869 2001-12-14  Werner LEMBERG  <wl@gnu.org>
2871         * src/roff/troff/input.cc (default_black): Define default color
2872         `black' if not yet defined.
2874 2001-12-13  Werner LEMBERG  <wl@gnu.org>
2876         Implement new string-valued register `.fn' to return the current
2877         real (internal) font name.
2879         * env.cc (environment::get_font_name_string): New function.
2880         (init_env_requests): Add `.fn' register.
2881         * env.h (environment): Updated.
2882         * node.cc (font_info): Make `get_font_name' a friend.
2883         (get_font_name): New function.
2884         * node.h: Updated.
2886         * man/groff_diff.man, man/groff.man, NEWS: Updated.
2888 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2890         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
2892 2001-12-12  Werner LEMBERG  <wl@gnu.org>
2894         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
2896 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
2898         * man/groff_diff.man: Adding documentation for \O.
2900 2001-12-10  Werner LEMBERG  <wl@gnu.org>
2902         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
2903         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
2905 2001-12-09  Werner LEMBERG  <wl@gnu.org>
2907         * man/roff.man: Revised.
2908         * src/roff/groff/groff.man: Replace man page references with a
2909         pointer to roff.man.
2911 2001-12-09  Bernd Warken  <bwarken@mayn.de>
2913         * man/roff.man: Completely rewritten.
2915 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2917         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
2919 2001-12-05  Werner LEMBERG  <wl@gnu.org>
2921         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
2922         longer used.
2923         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
2924         order of initializers.
2925         * NEWS: Updated.
2927 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
2929         * doc/groff.texinfo: Fix documentation of \O.
2931         * src/devices/grohtml/html-text.cc (html_text::do_indent,
2932         html_text::do_table, html_text::do_emittext, html_text::do_para):
2933         Use `const' for first argument.
2934         (html_text::do_table): Use cast.
2935         * src/devices/grohtml/html-text.h: Updated.
2936         * src/devices/grohtml/output.cc (simple_output::put_string): Add
2937         method for `const string &s'.
2938         * src/devices/grohtml/html.h: Updated.
2939         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
2940         (ANCHOR_TEMPLATE): Modified.
2941         (manufacture_headings): New global variable to handle `-h' option.
2942         (is_subsection): Removed.
2943         (char_buffer::add_string): Add `const' to first argument.
2944         Protect against invalid string argument.
2945         Add method for `const string &s'.
2946         (text_glob): Completely redesigned.
2947         (page): Use `const' for strings and remove string length variable.
2948         (page::add_html): Removed.
2949         (page::add_end_encode): New member function.
2950         (to_unicode): Moved upwards.
2951         (title_desc, header_desc): Updated.
2952         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
2953         definition.
2954         (html_printer::is_bold, html_printer::make_bold): New member
2955         functions.
2956         (html_printer::end_of_line): Updated.
2957         (generate_img_src, html_printer::do_auto_image,
2958         html_printer::do_title, html_printer::write_header,
2959         html_printer::determine_header_level, html_printer::do_heading,
2960         html_printer::do_linelength, html_printer::do_pageoffset,
2961         html_printer::do_indentation, html_printer::do_tempindent,
2962         html_printer::do_indentedparagraph, html_printer::do_break,
2963         html_printer::flush_sbuf, get_html_translation,
2964         html_printer::begin_page, html_printer::special): Rewritten to get
2965         rid of static string length limit.
2966         (html_printer::troff_tag): Added `.no-auto-rule'.
2967         (html_printer::flush_globs): Small fix.
2968         (html_printer::determine_space): Don't compute `space_width'.
2969         (html_printer::translate_to_html): Renamed to ...
2970         (html_printer::emit_html): This (with updates).
2971         (html_printer::write_header): Implement `-h' option.
2972         (html_printer::draw): Remove commented-out code.  Handle `F'
2973         command.
2974         (html_printer::add_char_to_sbuf): Removed.
2975         (html_printer::add_to_sbuf): Rewritten.
2976         (html_printer::sbuf_continuation): Fixed.
2977         (html_printer::seen_backwards_escape, reverse,
2978         html_printer::remove_last_char_from_sbuf): Removed.
2979         (char_translate_to_html, str_translate_to_html): Removed.
2980         (html_printer::overstrike): New function member.
2981         (html_printer::set_char): Use it.
2982         (html_printer::do_body): New function member.
2983         (html_printer::~html_printer): Use it.
2984         (main): Handle `-h' option.
2985         (usage): Updated.
2986         * src/devices/grohtml/grohtml.man: Document -h switch.
2988         * src/preproc/html/pre-html.cc: Include searchpath.h
2989         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
2990         (get_resolution): New function.
2991         (checkImageDir): Use `0777' permissions in mkdir()
2992         (write_start_image): Rewritten to use `\O[5...]'.
2993         (createImage, generateImages): Updated.
2994         (main): Handle `F' and `h' options.
2995         Use `get_resolution'.
2997         * src/roff/troff/input.cc (begin, end, image): Removed.
2998         (do_suppress): Take parameter.
2999         Handle modified syntax of `\O'.
3000         (token::next): Updated.
3001         (init_markup_requests): Removed.
3002         (main): Updated.
3004         * src/roff/troff/div.h: Add declaration for begin_page().
3006         * tmac/color-html.tmac: Removed.  Contents moved to...
3007         * tmac/html.tmac: Here.  Set background color.
3008         * tmac/color.tmac: Removed.  Contents moved to...
3009         * tmac/ps.tmac: Here.
3010         * tmac/www.tmac: Remove the title command when generating images
3011         for html.
3012         (NO_AUTO_RULE): New macro.
3013         (HTML_DO_IMAGE): Use revised `\O' escapes.
3014         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
3016 2001-12-02  Werner LEMBERG  <wl@gnu.org>
3018         * tmac/groff_mdoc.man: Fix typo.
3020 2001-12-01  Colin Watson  <cjwatson@debian.org>
3022         * man/roff.man: Fix typo.
3024 2001-11-29  Werner LEMBERG  <wl@gnu.org>
3026         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
3027         stdlib.h.
3029         * src/roff/troff/input.cc (read_draw_node): Emit error message if
3030         more than one argument to \D'f ...'.
3032         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
3034 2001-11-28  Werner LEMBERG  <wl@gnu.org>
3036         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
3037         loaded only once.
3039         * tmac/groff_man.man: Minor cosmetic fix.
3041 2001-11-27  Werner LEMBERG  <wl@gnu.org>
3043         * src/roff/groff/groff.man, tmac/groff_tmac.man,
3044         tmac/groff_www.man: s/mwww/www/.
3046 2001-11-26  Werner LEMBERG  <wl@gnu.org>
3048         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
3049         * configure: Regenerated.
3050         * win32-diffs: Updated.
3052         * tmac/groff_mwww.tmac: Renamed to ...
3053         * tmac/groff_www.tmac: This.
3054         * tmac/mwww.tmac: Removed.
3055         * NEWS, tmac/Makefile.sub: Updated.
3057 2001-11-21  Werner LEMBERG  <wl@gnu.org>
3059         * doc/groff.texinfo: Improve documentation of the `\v' escape.
3060         Fix explanation of `\D' and `rt'.
3062 2001-11-20  Werner LEMBERG  <wl@gnu.org>
3064         * tmac/an-old.tmac (an-header): Set header length equal to page
3065         width.
3066         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
3067         minor fixes.
3068         * NEWS: Small fix.
3070 2001-11-19  Werner LEMBERG  <wl@gnu.org>
3072         * NEWS, man/Makefile.sub: Updated.
3074 2001-11-19  Bernd Warken  <bwarken@mayn.de>
3076         * man/ditroff.man: New file.
3078 2001-11-17  Werner LEMBERG  <wl@gnu.org>
3080         * man/groff_differences.man: Renamed to ...
3081         * man/groff_diff.man: This.  Updated.
3082         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
3084         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
3085         * src/preproc/html/pushback.cc: This.  Updated.
3086         * src/preproc/html/pushbackbuffer.h: Renamed to ...
3087         * src/preproc/html/pushback.h: This.
3088         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
3089         Updated.
3091         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
3092         * src/libs/libgroff/htmlhint.cc: This.
3093         * src/libs/libgroff/Makefile.sub: Updated.
3095         * tmac/an-old.tmac (an-end): Fix page length.
3097 2001-11-16  Werner LEMBERG  <wl@gnu.org>
3099         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
3100         * man/Makefile.sub: Include groff_differences.man.
3101         * VERSION: Set to 1.18.
3102         * REVISION: Set to 0.
3104 2001-11-16  Bernd Warken  <bwarken@mayn.de>
3106         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
3107         the second dot (or ending macro name) to end a macro.
3108         * doc/groff.texinfo: Doc fix.
3110 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
3112         * tmac/doc-common (doc-header): Handle very long document titles
3113         better.
3115 2001-11-16  Werner LEMBERG  <wl@gnu.org>
3117         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
3119 2001-11-15  Werner LEMBERG  <wl@gnu.org>
3121         * src/roff/troff/troff.man: Revised and split into troff.man and...
3122         * man/groff_differences.man: New file.
3123         * NEWS: Updated.
3125 2001-11-13  Werner LEMBERG  <wl@gnu.org>
3127         * tmac/an-old.tmac (TS, TE): New macros for table support.
3129 2001-11-12  Werner LEMBERG  <wl@gnu.org>
3131         * src/include/lib.h: Provide a fix for emx to not include
3132         groff-getopt.h.
3134 2001-10-27  Werner LEMBERG  <wl@gnu.org>
3136         * src/roff/troff/input.cc (substring_macro): Fix computation of
3137         boundary values.
3139 2001-10-20  Werner LEMBERG  <wl@gnu.org>
3141         Undo change from 2001-08-28.
3143         * src/roff/troff/input.cc (have_input): New global variable.
3144         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
3145         in compatibility mode.
3146         (process_input_stack): Use it.
3148 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
3150         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
3151         being handled as end-of-sentence characters,
3153 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
3155         * src/roff/troff/input.cc (file_iterator): New members
3156         `suppress_newline_flag' and `seen_escape'.
3157         (file_iterator::next_file): Updated.
3158         (file_iterator::fill): Use it.
3159         (string_iterator): New member `suppress_newline_flag'.
3160         (string_iterator::fill): Set it.
3161         (get_color_element): Use MAX_COLOR_VAL.
3162         * src/roff/troff/env.cc (environment): Remove `need_eol'.
3163         (no_fill): Don't set `env->ignore_next_eol'.
3164         (environment::newline): Handle `eol' tag properly.
3165         Emit `eol.ce'.
3166         (environment::add_html_tag): Set `env->ignore_next_eol'.
3167         Don't handle `.ce'.
3168         * src/roff/troff/env.h (environment): Updated.
3170         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
3171         member function.
3172         (html_printer::outstanding_eol): New member function.
3173         (html_printer::do_title): Use new functions.
3174         (html_printer::troff_tag): Test `id_eol_ce'.
3176 2001-10-10  Werner LEMBERG  <wl@gnu.org>
3178         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
3179         files work with -C also.
3181 2001-10-05  Werner LEMBERG  <wl@gnu.org>
3183         * doc/pic.ms: Minor fix.
3184         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
3185         as a valid command line switch.
3186         * src/devices/grohtml/post-html.cc (main): Ditto.
3187         (usage): Updated.
3188         * src/devices/grohtml/grohtml.man: Updated.
3189         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
3191 2001-10-04  Werner LEMBERG  <wl@gnu.org>
3193         Implementing color support in troff, pic, grops, and grohtml.  These
3194         changes are based on a major patch provided by Gaius Mulley
3195         <gaius@glam.ac.uk>.
3197         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
3198         definitions with both hex values and fractions.
3200         New escapes: \m and \M for drawing and background color,
3201         respectively.  This corresponds to the troff output commands `m'
3202         and `DF'.
3204         groff and troff accept command line switch `-c' to disable color
3205         output (which is automatically disabled in compatibility mode).
3207         New scaling indicator `f' for fractions (1f = 65536u).
3209         New conditional operator `m' to test for defined colors with `if'
3210         and `ie'.
3212         New keywords `color' (or `colour', `colored', `coloured'), `outline'
3213         (or `outlined'), and `shaded' added to pic.
3215         * src/include/color.h: New file.
3216         * src/include/driver.h: Include it.
3217         * src/include/printer.h: Include color.h.
3218         (environment): New members `col' and `fill'.
3219         (printer): Remove `adjust_arc_center' member function.
3220         * src/include/Makefile.sub: Updated.
3222         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
3223         `env.fill'.
3224         Handle `m' and `DF' troff commands.
3225         * src/libs/libgroff/color.cc: New file.
3226         * src/libs/libgroff/Makefile.sub: Updated.
3228         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
3229         (stop): Removed.
3230         (createImage): Fix computation of `y2'.
3231         Use `pnmcrop' also.
3232         (buffer::write_file_html): Remove calls to `stop'.
3234         * src/preproc/pic/common.h (common_output): New abstract function
3235         members `set_color', `reset_color', `get_last_filled', and
3236         `get_outline_color'.
3237         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
3238         (object_spec): Add members `shaded' and `outlined'.
3239         * src/preproc/pic/output.h (output): `command' is now abstract.
3240         New function members `set_color', `reset_color', `get_last_filled',
3241         and `get_outline_color'.
3242         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
3243         `outline[d]', and `shaded'.
3244         * src/preproc/pic/object.cc (output::command): Removed.
3245         (output::set_location): Moved to output.h.
3246         (graphic_object): Add protected members `outline_color' and
3247         `color_fill'.
3248         Add member functions `set_outline_color', `get_outline_color', and
3249         `set_fill_color'.
3250         (closed_object): Add member function `set_fill_color'.
3251         Add member `color_fill'.
3252         (graphic_object::print_text): Use `out->set_color' and
3253         `out->reset_color'.
3254         (box_object::print, ellipse_object::print, circle_object::print,
3255         line_object::print, spline_object::print, arc_object::print): Ditto.
3256         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
3257         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
3258         `SHADED', making them `%left'.
3259         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
3260         * src/preproc/pic/tex.cc (tex_output): New dummy function members
3261         `set_color', `reset_color', `get_last_filled', and
3262         `get_outline_color'.
3263         * src/preproc/pic/troff.cc (simple_output): New abstract function
3264         members `set_color', `reset_color', and `get_last_filled'.
3265         (simple_output::polygon, simple_output::circle,
3266         simple_output::ellipse): Use `get_last_filled'.
3267         (troff_output): New members `last_filled' and `last_outlined'.
3268         New function members `set_color', `reset_color', `get_last_filled',
3269         and `get_outline_color'.
3270         (troff_output::finish_picture): Use `reset_color'.
3271         (troff_output::set_fill): Test `last_filled'.
3272         * src/preproc/pic/pic.man: Updated.
3274         * src/roff/groff/groff.cc (main): Implement `-c' option.
3275         (synopsis, help): Updated.
3276         src/roff/groff/groff.man: Updated.
3278         * src/roff/troff/troff.h: Include color.h.
3279         (warning_type): Add WARN_COLOR.
3280         * src/roff/troff/env.h (environment): New members
3281         `{cur,prev}_{glyph,fill}_color'.
3282         New member functions `get_{prev_,}{glyph,fill}_color'.
3283         * src/roff/troff/env.cc: Initialize and implement them.
3284         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
3285         Replace `NULL' with `0' everywhere for consistency.
3286         (lookup_color, default_black, do_glyph_color, do_fill_color,
3287         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
3288         define_color): New functions.
3289         (token::next): Implement \M and \m escapes.
3290         (do_if_request): Implement `m' operator.
3291         (usage): Updated.
3292         (main): Implement `-c' option.
3293         (init_markup_requests): Add `defcolor' request.
3294         (warning_table): Add `color' warning.
3295         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
3296         classes.
3297         * src/roff/troff/node.cc (troff_output_file): New members
3298         `current_{page,glyph}color'.  New member functions `put_hex',
3299         `glyph_color', and `fill_color'.
3300         (glyph_color_node::*, fill_color_node::*): Implement it.
3301         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
3302         (parse_term): Add support for `f'.
3303         * src/roff/troff/troff.man: Updated.
3305         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
3306         entry for `F'.
3307         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
3308         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
3310         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
3311         (tag_definition): Use `void *' for arg1.
3312         (html_text): New member functions `do_color' and `done_color'.
3313         Use `void *' for second parameter of `push_para' member function.
3314         New `push_para' member function with a single parameter.
3315         Use `char *' for parameter of `issue_table_begin' member funtion.
3316         New `issue_color_begin' member function.
3317         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
3318         COLOR_TAG.
3319         (html_text::issue_color_begin): New function.
3320         (html_text::issue_table_begin): Use `char *' for parameter.
3321         (html_text::start_tag, html_text::shutdown,
3322         html_text::check_emit_text): Updated.
3323         (html_text::push_para): Use `void *' for second parameter.
3324         Add same function with only one parameter.
3325         (html_text::do_*): Updated.
3326         (html_text::do_color, html_text::done_color): New functions.
3327         * src/devices/grohtml/post-html.cc (style): New member `col'.
3328         Mew member `style' with 6 parameters.
3329         (style::style, style::operator==): Updated.
3330         (html_printer::do_font): Use it.
3331         (html_printer::draw): Add dummy entry for `F'.
3332         (html_printer::set_char): Updated.
3333         * src/devices/grohtml/grohtml.man: Updated.
3335         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
3336         trailing zeroes removed.
3337         (ps_printer): New members `sbuf_color', `fill_color', and
3338         `output_color'.
3339         Removed member `fill'.
3340         New member function `set_color'.
3341         (ps_printer::ps_printer, ps_printer::set_char): Updated.
3342         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
3343         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
3345         * tmac/color-html.tmac, tmac/color.tmac: New files.
3346         * tmac/troffrc: Include them.
3347         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
3348         * tmac/Makefile.sub: Updated.
3350         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
3351         man/groff.man: Updated.
3352         * font/devps/prologue.ps: Define FC and CO functions.
3354 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
3356         Fix incorrect cropping of images and incorrect handling of special
3357         characters.  Fix handling of file names in \O.
3359         * src/include/geometry.h: New file.
3360         * src/libs/libgroff/geometry.cc: New file.
3361         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
3362         to `geometry.cc'.
3363         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
3364         initial spaces.
3365         (do_suppress): Updated.
3366         * src/roff/troff/node.cc: Include geometry.h.
3367         (troff_output_file::flush_tbuf): Fixed parameters to
3368         `check_output_limits'.
3369         (troff_output_file::check_charinfo): Ditto.
3370         (troff_output_file::determine_line_limits): Add support for `Da'
3371         and `Dl' commands.
3373         * src/devices/grohtml/post-html.cc (str_translate_to_html):
3374         Add new parameter `is_special' to decode special characters from
3375         escape sequences.
3376         (html_printer::do_title, html_printer::do_heading,
3377         html_printer::do_indentedparagraph,
3378         html_printer::translate_to_html, html_printer::special): Updated.
3380 2001-10-03  Werner LEMBERG  <wl@gnu.org>
3382         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
3383         Fix entry for config.h.
3384         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
3385         * tmac/troffrc: Translate nonbreakable space character to `\~'.
3386         * src/preproc/eqn/eqn.man: Document -d command line option.
3388 2001-09-27  Werner LEMBERG  <wl@gnu.org>
3390         * man/groff.man: Use
3392           .ev xxx
3393           .na
3394           .nh
3395           <table>
3396           .ev
3398         instead of the old code (`.ad .hy' after the table) to suppress
3399         incorrect hyphenation for grohtml output.
3401 2001-09-22  Werner LEMBERG  <wl@gnu.org>
3403         * man/groff_font.man, man/groff_out.man: Minor fixes.
3405 2001-09-20  Werner LEMBERG  <wl@gnu.org>
3407         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
3408         Arnold Robbins <arnold@skeeve.com>).
3410 2001-09-09  Werner LEMBERG  <wl@gnu.org>
3412         * configure: Regenerated with autoconf 2.52.
3414         * doc/groff.texinfo: Complete revision of indices.
3416 2001-09-07  Werner LEMBERG  <wl@gnu.org>
3418         * doc/Makefile (clean): Updated to delete all indices.
3420 2001-09-05  Werner LEMBERG  <wl@gnu.org>
3422         * src/roff/troff/troff.man: Remove superfluous line.
3424         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
3425         given on the command line (or rather, if only the default warnings
3426         are set).
3428 2001-09-03  Werner LEMBERG  <wl@gnu.org>
3430         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
3431         use .ne for TTY devices.
3433 2001-08-31  Werner LEMBERG  <wl@gnu.org>
3435         * src/roff/troff/token.h, src/roff/troff/input.cc:
3436         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
3438 2001-08-28  Werner LEMBERG  <wl@gnu.org>
3440         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
3441         * src/roff/troff/input.cc (token::next): Return
3442         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
3443         compatibility mode.
3444         (token::description): Updated.
3445         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
3446         (token::add_to_node_list, token::process): Ignore
3447         TOKEN_TRANSPARENT_ESCAPE.
3449 2001-08-27  Werner LEMBERG  <wl@gnu.org>
3451         * tmac/an-old.tmac: Fix `S' string.
3453 2001-08-26  Werner LEMBERG  <wl@gnu.org>
3455         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
3457 2001-08-25  Werner LEMBERG  <wl@gnu.org>
3459         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
3460         backslashes).
3461         Many other minor fixes.
3463         * configure.ac: Add message at end to inform how to compile
3464         xditview.
3465         * configure: Regenerated.
3467 2001-08-24  Werner LEMBERG  <wl@gnu.org>
3469         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
3470         Updated to latest version of libc.
3472 2001-08-23  Werner LEMBERG  <wl@gnu.org>
3474         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
3475         Autoconf 2.50 and newer can handle this.
3476         * configure: Regenerated.
3478 2001-08-21  Werner LEMBERG  <wl@gnu.org>
3480         * doc/pic.ms: Fix typo.
3481         * src/preproc/tbl/tbl.man: Document case of global options.
3483 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
3485         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
3486         handling of `CR' font.
3488 2001-08-20  Werner LEMBERG  <wl@gnu.org>
3490         Use a config.h file.
3492         * src/include/lib.h: Include config.h.
3493         * All C files: Ditto (if necessary).
3494         * All C++ source and header files: Include lib.h first (if
3495         necessary).
3497         * src/include/config.hin: New file (autogenerated by autoheader).
3498         * stamp-h.in: New file.
3499         * configure.ac: Updated.
3500         * aclocal.m4: Add third parameters to AC_DEFINE macros.
3501         (GROFF_ARRAY_DELETE): Simplified.
3502         * Makefile.sub (DISTCLEANFILES): Updated.
3503         Added targets for remaking config.status, config.hin, config.h,
3504         stamp-h.in, and stamp-h.
3505         * configure: Regenerated.
3507 2001-08-19  Werner LEMBERG  <wl@gnu.org>
3509         * NEWS: Updated.
3511 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
3513         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
3514         (do_sprintf): Use snprintf().
3516 2001-08-18  Werner LEMBERG  <wl@gnu.org>
3518         * src/libs/snprintf/*: Added an snprintf module written by Mark
3519         Martinec.
3520         * src/libs/libgroff/Makefile.sub: Updated.
3521         * configure.ac: Add test for snprintf().
3522         * Makefile.in: Updated.
3523         * configure: Regenerated.
3525         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
3526         uses snprintf().
3528 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
3530         * tmac/doc.tmac (Ex): New implementation.
3531         * tmac/doc-common, tmac/groff_tmac.man: Updated.
3533 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
3535         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
3536         argument.
3537         * tmac/groff_tmac.man: Updated.
3539 2001-08-13  Werner LEMBERG  <wl@gnu.org>
3541         * src/preproc/tbl/tbl.man: Minor documentation update.
3543 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3545         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
3546         * configure.ac: Add declaration test for gettimeofday().
3547         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
3548         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
3549         * configure: Regenerated.
3551 2001-08-11  Werner LEMBERG  <wl@gnu.org>
3553         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
3554         * configure.ac: Add declaration test for strcasecmp().
3555         * Makefile.in: Updated.
3556         * configure: Regenerated.
3557         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
3558         this is necessary because groff's mkstemp.cc is C++.
3559         Add declaration conditionally for strcasecmp().
3561 2001-08-10  Werner LEMBERG  <wl@gnu.org>
3563         Integrated pic2graph, contributed by Eric S. Raymond.
3565         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
3566         files.
3567         * Makefile.in, NEWS: Updated.
3569         * src/preproc/tbl/tbl.man: Revised.
3571 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
3573         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
3575 2001-08-09  Werner LEMBERG  <wl@gnu.org>
3577         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
3578         requests.
3580 2001-08-08  Paul Eggert  <eggert@twinsun.com>
3582         * Makefile.sub (configure): Depend on configure.ac, not
3583         configure.in.
3584         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
3586 2001-08-07  Werner LEMBERG  <wl@gnu.org>
3588         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
3589         fixes.
3591 2001-08-06  Werner LEMBERG  <wl@gnu.org>
3593         * src/roff/troff/troff.man: Improve documentation of -E option.
3595 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
3597         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
3598         Simplified.
3600 2001-07-27  Werner LEMBERG  <wl@gnu.org>
3602         * src/preproc/refer/refer.cc: Undo last change.
3603         * src/devices/grohtml/post-html.cc: Ditto.
3605 2001-07-26  Werner LEMBERG  <wl@gnu.org>
3607         * src/preproc/refer/refer.cc: Include `lib.h'.
3608         * src/devices/grohtml/post-html.cc: Ditto.
3610 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
3612         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
3613         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
3614         * Makefile.in: Comment updated.
3615         * configure: Regenerated.
3617 2001-07-25  Werner LEMBERG  <wl@gnu.org>
3619         * src/preproc/pic/pic.cc: Removed.
3620         * src/preproc/pic/pic_tab.h: Removed.
3621         * src/preproc/refer/label.cc: Removed.
3623         * doc/Makefile (.ms.html): Don't use a file name extension in
3624         argument to grohtml's -I option.
3625         * Makefile.in (dist): Remove CVS directories.
3626         Call `distfiles' target.
3628         * src/devices/grohtml/grohtml.man: Add information about valid
3629         versions of pnmtopng.
3630         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
3631         name instead of number.
3633 2001-07-24  Werner LEMBERG  <wl@gnu.org>
3635         * doc/groff.texinfo: Minor fixes.
3637 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
3639         * doc/Makefile (.ms.html): Put image files into a subdirectory.
3640         (clean): Updated.
3642 2001-07-20  Werner LEMBERG  <wl@gnu.org>
3644         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
3645         * src/libs/libgroff/mkstemp.cc: New file.
3646         * src/libs/libgroff/mksdir.cc: New file.
3647         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
3648         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
3649         * src/libs/libgroff/Makefile.sub: Updated.
3650         * src/include/lib.h: Add mksdir() prototype.
3651         * src/include/posix.h: Define S_IXUSR if not yet defined.
3653         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
3654         (createAllPages): Use mksdir() instead of current code.
3655         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
3656         (main): [!HAVE_MKSTEMP]: Removed.
3658         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
3659         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
3660         macros.
3661         * configure.ac: Add tests for stdint.h, sys/time.h, and
3662         gettimeofday().
3663         Call new GROFF_xxx macros.
3664         * configure: Regenerated.
3665         * Makefile.in: Comments updated.
3667 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
3669         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
3670         instead of current code.
3671         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
3672         * src/roff/groff/groff.cc (possible_command::insert_args): New
3673         function.
3674         (main): Use it for predriver handling instead of insert_arg().
3676 2001-07-19  Werner LEMBERG  <wl@gnu.org>
3678         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
3679         groff also.
3681         * src/include/posix.h: Define S_IWUSR if not yet defined.
3683 2001-07-18  Werner LEMBERG  <wl@gnu.org>
3685         * NEWS: Updated.
3687 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
3689         * tmac/groff_mdoc.man: Document new -width and -column syntax.
3690         Some other minor fixes.
3691         * tmac/an-old.tmac: Add `AT' and `UC' macros.
3693 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
3695         Replace call to `troff' with `groff -Z' to make it aware of
3696         GROFF_BIN_PATH.
3698         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
3699         (troff_command, command_prefix): Removed.
3700         (alterDeviceTo): Use groff.
3701         (addZ): New function.
3702         (char_buffer::do_html): Use it.
3703         (scanArguments): Use TROFF_COMMAND.
3704         (findPrefix): Removed.
3705         (main): Updated.
3706         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
3708 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
3710         * doc/pic.ms: Documentation fixes.
3712 2001-07-17  Werner LEMBERG  <wl@gnu.org>
3714         Replace atexit() with global destructor.
3716         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
3717         (xtmpfile_list_init): New global structure to deallocate
3718         xtmpfile_list on exit.  Its destructor inherits most code from
3719         remove_tmp_files().
3720         (remove_tmp_files): Deleted.
3721         (add_tmp_file): Simplified.
3723 2001-07-16  Werner LEMBERG  <wl@gnu.org>
3725         Replace strdup() with strsave().
3727         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
3728         (set_papersize): Use strsave() and a_delete.
3729         (main): Use strsave().
3730         * src/preproc/html/pre-html.cc (make_message, createAllPages,
3731         removeAllPages): Use strsave() and a_delete.
3733         * configure.ac: Remove test for strdup.
3734         * Makefile.in: Comment updated.
3735         * configure: Regenerated.
3737 2001-07-15  Werner LEMBERG  <wl@gnu.org>
3739         * win32-diffs: Updated.
3741 2001-07-14  Werner LEMBERG  <wl@gnu.org>
3743         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
3744         removing the old one.
3745         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
3747 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
3749         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
3751 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
3753         Merge -xwidth into -width.  Add -xwidth functionality to -column
3754         also.
3756         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
3757         avoid warning.
3758         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
3759         string immediately following a leading dot starts with a valid mdoc
3760         argument.
3761         Add similar code to the -column branch.
3762         (doc-Bl-usage): Updated.
3763         * groff_mdoc.man: s/-xwidth/-width/.
3765 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
3767         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
3768         running into centered or non-formatted text.
3770 2001-07-11  Werner LEMBERG  <wl@gnu.org>
3772         Introduce short and long prefixes to have the selection at run-time
3773         whether there is a 8+3 limit for names of temporary files.
3775         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
3776         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
3777         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
3778         variables.
3779         (temp_init): New global structure to initialize above three
3780         variables.
3781         (xtmptemplate): Use two parameters for long and short prefix.
3782         Simplify code use above three variables.
3783         (xtmpfile): Use long and short prefixes as parameters.
3784         * src/include/lib.h: Updated.
3786         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
3787         with ...
3788         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
3789         (createAllPages, makeTempFiles): Updated.
3791 2001-07-09  Werner LEMBERG  <wl@gnu.org>
3793         * REVISION: Increased to 3.
3795 Version 1.17.2 released
3796 =======================
3798 2001-07-07  Werner LEMBERG  <wl@gnu.org>
3800         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
3801         to size_t.
3803 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
3805         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
3806         Fix synopsis.
3807         * tmac/groff_mdoc.man: Fix synopsis.
3809 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
3811         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
3812         Restore `doc-Pa-font'.
3814 2001-07-04  Werner LEMBERG  <wl@gnu.org>
3816         * src/utils/indxbib/dirnamemax.c: Moved to ...
3817         * src/libs/libgroff/maxfilename.cc: Here.
3818         s/dir_name_max/file_name_max/.
3819         Add copyright.
3820         * src/include/lib.h: Add file_name_max.
3821         * src/utils/indxbib/indxbib.cc: Updated.
3822         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
3823         Updated.
3825         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
3826         as empty.
3827         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
3829         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
3830         REGION_TEMPLATE): New macros.
3831         (createAllPages, makeTempFiles): Use them.
3832         Include `nonposix.h'.
3833         (html_system): New function.
3834         (createAllPages, createImage): Use it.
3835         Use EXE_EXT.
3837         * tmac/www.tmac: Fix typos.
3839 2001-07-03  Werner LEMBERG  <wl@gnu.org>
3841         * tmac/www.tmac: Disable hyphenation in normal text only if output
3842         device is html.
3843         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
3844         * tmac/groff_mwww.man, NEWS: Updated.
3846 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
3848         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
3849         image location.
3851 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
3853         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
3854         doc-display-ps-stack): Implement font and font size stack for
3855         displays.
3857 2001-07-02  Werner LEMBERG  <wl@gnu.org>
3859         * REVISION: Increased to 2.
3860         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
3862         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
3863         beginning of a line.
3864         * src/groff/grog/grog.sh: Ditto.
3866 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
3868         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
3869         make it portable.
3871 2001-06-27  Werner LEMBERG  <wl@gnu.org>
3873         Fix problems with preprocessor string for `man' program.
3875         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
3876         Updated/added copyright.
3877         Moved Emacs's local variable to identify nroff mode to the end of
3878         the file; add local variable if missing.
3880 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
3882         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
3883         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
3884         * configure: Regenerated.
3886 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
3888         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
3889         * configure: Regenerated.
3891 2001-06-24  Werner LEMBERG  <wl@gnu.org>
3893         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
3894         but www.tmac.
3895         * doc/pic.ms: Fix typos.
3897 Version 1.17.1 released
3898 =======================
3900 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
3902         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
3903         * configure: Updated.
3905 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
3907         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
3908         image names.
3909         * src/roff/troff/dic.cc (blank_line): Add html tag.
3911 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
3913         * src/roff/troff/input.cc (do_suppress): Fix typo.
3915 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
3917         Added two new options (-D and -I) to specify image names and a
3918         subdirectory to place the images in.
3920         Change syntax from \\Ox to \\O[x].
3922         * src/devices/grohtml/post-html.cc (main): Add options.
3923         (usage): Updated.
3924         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
3925         Use `NULL' instead of `0' for null string pointers.
3926         (MAX_RETRIES): New macro.
3927         (lengthOfintToStr, intToStr, make_message): New functions.
3928         (makeFileName): Make function static.
3929         Implement -D and -I options.
3930         (checkImageDir): New function.
3931         (write_end_image, write_start_image): Use new syntax of \O.
3932         (createAllPages, removeAllPages): Implement -D and -I options.  Use
3933         make_message().
3934         (createImage): Use make_message().
3935         (addps4html): Add guard for malloc().
3936         (usage, scanArguments): Updated.
3937         (makeTempFiles): Use mkstemp().
3938         (removeTempFiles): Use unlink().
3939         (findPrefix): Add guard for malloc().
3940         (main): Updated.
3941         * src/roff/troff/input.cc (get_delim_file_name): New function to
3942         parse \O.
3943         (do_suppress): Updated to parse new syntax.
3944         * src/devices/grohtml/grohtml.man: Updated.
3945         * tmac/www.tmac: Updated to new syntax.
3947         * NEWS: Updated.
3949 2001-06-15  Werner LEMBERG  <wl@gnu.org>
3951         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
3953         * src/devices/grohtml/grohtml.man: Minor improvements.
3955 2001-06-14  Werner LEMBERG  <wl@gnu.org>
3957         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
3959 2001-06-11  Werner LEMBERG  <wl@gnu.org>
3961         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
3962         line to specify preprocessor options -- mandb 2.3.1 only recognizes
3963         the former.
3964         * src/preproc/grn/grn.man: Add proper '\" string.
3966 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
3968         * test-groff: Don't use PATH but GROFF_BIN_PATH.
3970 2001-06-08  Werner LEMBERG  <wl@gnu.org>
3972         Updated to autoconf 2.50.
3974         * configure.in: Renamed to...
3975         * configure.ac: This.
3976         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
3977         (GROFF_OS390): Updated.
3978         * configure: Regenerated.
3980 2001-05-18  Werner LEMBERG  <wl@gnu.org>
3982         * src/roff/troff/env.c, src/roff/troff/env.h,
3983         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
3984         from 2000-12-21.
3986 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
3988         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
3990 2001-05-16  Werner LEMBERG  <wl@gnu.org>
3992         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
3993         less than or equal zero; set it to 1 then.
3994         * src/roff/troff/node.h (node::node): Initialize `last'.
3996 2001-05-08  Werner LEMBERG  <wl@gnu.org>
3998         * tmac/an-old.tmac: Make predefined strings work in compatibility
3999         mode.
4000         Add troff version guard.
4001         * tmac/doc.tmac: Simplify version guard.
4003 2001-05-07  Werner LEMBERG  <wl@gnu.org>
4005         The .ns and .rs requests are now honoured not only in the top-level
4006         but in all diversions (similar to UNIX troff).
4008         This change is based on a patch from Tadziu Hoffmann
4009         <hoffmann@usm.uni-muenchen.de>.
4011         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
4012         (top_level_diversion): Remove `no_space_mode' member.
4013         * src/roff/troff/div.cc (diversion::diversion,
4014         top_level_diversion::top_level_diversion): Updated.
4015         (macro_diversion::output): Reset `no_space_mode'.
4016         (no_space, restore_spacing): Use `curdiv' unconditionally.
4017         (space_request, blank_line): Check `curdiv->no_space_mode'.
4018         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
4019         `curdiv' unconditionally.
4020         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
4021         Updated.
4023 2001-05-06  Werner LEMBERG  <wl@gnu.org>
4025         Added two new requests `de1' and `am1' which are similar to `de' and
4026         `am' with the difference that compatibility mode is saved on entry,
4027         switched off during macro execution, and restored on exit.
4029         * src/roff/troff/input.h: Added two new special characters
4030         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
4031         * src/roff/troff/input.cc (input_iterator): Added two member
4032         functions `save_compatible_flag' and `get_compatible_flag'.
4033         (input_stack): Ditto.
4034         (string_iterator): Ditto.  Also add private member
4035         `saved_compatible_flag'.
4036         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
4037         (calling_mode): New enumeration.
4038         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
4039         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
4040         (define_macro, define_indirect_macro, append_macro, ignore): Use
4041         `calling_mode'.
4042         (define_nocomp_macro, append_nocomp_macro): New functions.
4043         (init_input_requests): Updated.
4044         (do_request): Rename local variable `saved_compatible_flag' to
4045         `old_compatible_flag'.
4046         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4048         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
4049         public and trap-invoked macros.  As a consequence, the man macros
4050         work in compatibility mode also.
4052 2001-05-06  Solar Designer  <solar@openwall.com>
4054         * Makefile.in: Use $(mandir).
4056 2001-05-06  Alexios Zavras  <zvr@pobox.com>
4058         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
4060 2001-05-05  Werner LEMBERG  <wl@gnu.org>
4062         Added `.ns' number register: Returns 1 in no-space mode (if in
4063         top-level diversion), 0 otherwise.
4065         * src/roff/troff/div.cc (no_space_mode_reg): New class.
4066         (init_div_requests): Updated.
4067         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
4068         Document it.
4070 2001-05-04  Werner LEMBERG  <wl@gnu.org>
4072         * src/roff/nroff/nroff.man: Improved documentation (especially
4073         locales).
4075 2001-05-02  Werner LEMBERG  <wl@gnu.org>
4077         Added `brp' request: This is \p as a request.
4079         * src/roff/troff/env.cc (environment::do_break): Add parameter
4080         `spread'.
4081         (do_break_request): New function (was `break_request').
4082         (break_request): Calls `do_break_request'.
4083         (break_spread_request): New; calls `do_break_request'.
4084         (init_env_requests): Updated.
4085         * src/roff/troff/env.h: Updated.
4086         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4088         * REVISION: Increased to 1.
4089         * win32-diffs: Updated.
4091 2001-05-01  Werner LEMBERG  <wl@gnu.org>
4093         * tmac/an-old.tmac: Fix minor compatibility mode issue.
4094         * tmac/troffrc-end: Make it really work in compatibility mode.
4096 2001-04-27  Werner LEMBERG  <wl@gnu.org>
4098         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
4099         stdlib.h.
4101 2001-04-22  Werner LEMBERG  <wl@gnu.org>
4103         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
4104         latest versions from glibc CVS archive.
4106         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
4107         <c.zeelenberg@hccnet.nl>.
4109 2001-04-21  Werner LEMBERG  <wl@gnu.org>
4111         * configure.in: Move check for mkstemp() to...
4112         * aclocal.m4 (GROFF_MKSTEMP): This new function.
4113         * configure: Regenerated.
4115         * src/include/groff-getopt.h: Don't use variable names in
4116         declarations.
4118         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
4119         * src/devices/grohtml/Makefile.sub,
4120         src/devices/grohtml/post-html.cc: Updated.
4122 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
4124         * configure.in: Add special check for mkstemp().
4125         * src/libs/libgroff/tmpfile.cc: Use it.
4126         * src/utils/indxbib/indxbib.cc: Ditto.
4127         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
4128         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
4129         `const'.
4131 2001-04-20  Bruce Lilly  <blilly@erols.com>
4133         `Version_string' as C++ object was not visible to linker from C
4134         object files.
4135         Add `const' to `Version_string'.
4137         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
4138         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
4139         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
4140         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
4141         (scanArguments), src/preproc/refer/refer.cc (main),
4142         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
4143         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
4144         (main), src/devices/grohtml/post-html.cc (main),
4145         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
4146         (main), src/utils/hpftodit/hpftodit.cc (main),
4147         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
4148         (main), src/utils/lkbib/lkbib.cc (main),
4149         src/utils/addftinfo/addftinfo.cc (main): Implement it.
4151         * src/roff/groff/pipeline.c: Add _UWIN.
4152         * src/include/nonposix.h: Ditto.
4154 2001-04-20  Werner LEMBERG  <wl@gnu.org>
4156         * src/include/lib.h: Use HAVE_STRERROR.
4157         * src/roff/groff/pipeline.c: Ditto.
4158         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
4159         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
4160         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
4161         * win32-diffs: Updated.
4162         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
4164 2001-04-19  Werner LEMBERG  <wl@gnu.org>
4166         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
4167         instead of hardwired `"troff"'.
4168         (char_buffer::read_file): Remove unused variables.
4169         (char_buffer::write_file_troff): Ditto.
4170         (char_buffer::write_file_html): Ditto.
4171         (generateImages): Ditto.
4172         (abs): Removed.
4173         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
4175         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
4177         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
4178         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
4179         index_search_item::search1): Ditto.
4180         * src/roff/troff/node.h (width_list): Reorder members.
4181         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
4182         (lookup_warning): Ditto.
4183         (prepend_string): Commented out.
4184         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
4185         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
4186         * src/preproc/tbl/main.cc (process_format): Ditto.
4187         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
4188         compiler warnings.
4189         * src/preproc/pic/pic.cc: Updated.
4190         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
4191         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
4192         * src/preproc/refer/command.cc (execute_command): Ditto.
4193         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
4194         * src/preproc/refer/token.cc (lookup_token): Ditto.
4195         * src/preproc/soelim/soelim.cc: Ditto.
4196         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
4197         (isHexDigit): Commented out.
4198         (pushBackBuffer::isString): Remove unused variable.
4199         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
4200         warning.
4201         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
4202         resource_manager::read_resource_arg, read_one_of, parse_extensions):
4203         Ditto.
4204         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
4205         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
4206         lookup_paper_size): Ditto.
4207         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
4208         (text_glob, element_list): Reorder members.
4209         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
4210         compiler warning.
4211         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
4212         return value to `void'.
4213         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
4214         of initializers.
4215         * src/devices/grohtml/html.h (simple_output::check_newline,
4216         simple_output::space_or_newline, simple_output::enable_newlines):
4217         Add return value.
4218         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
4219         compiler warnings.
4220         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
4221         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
4222         output_ligatures, output_charset, read_map): Ditto.
4223         * src/utils/lookbib/lookbib.cc (main): Ditto.
4224         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
4225         (do_file): Fix typo (`=' -> `==').
4226         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
4227         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
4229 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
4231         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
4232         Fix usage of GROFF_BIN_PATH.
4233         * src/roff/nroff/nroff.man: Updated.
4235 2001-04-18  Werner LEMBERG  <wl@gnu.org>
4237         * NEWS: Fixing typos.
4238         Updated.
4240 Version 1.17 released
4241 =====================
4243 2001-04-17  Werner LEMBERG  <wl@gnu.org>
4245         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
4246         directory, not in $(srcdir).
4248 2001-04-16  Werner LEMBERG  <wl@gnu.org>
4250         * doc/groff.texinfo: More info on conditionals.
4252 2001-04-15  Werner LEMBERG  <wl@gnu.org>
4254         * doc/groff.texinfo: Added some info about groff internals.
4256         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
4257         about missing special character only if the name is non-null.
4259 2001-04-14  Werner LEMBERG  <wl@gnu.org>
4261         Removing the grohtml-old device driver which is now obsolete.
4263         * src/devices/grohtml-old/*: Removed.
4264         * font/devhtml-old/*: Removed.
4265         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
4266         Remove comments.
4267         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
4268         * test-groff (PATH): Updated.
4269         * tmac/Makefile.sub (NORMALFILES): Updated.
4270         * tmac/an-old.tmac: Remove special code for html-old device.
4271         Replace `html-or-html-old' register with `an-html'.
4272         * tmac/eqnrc: Updated.
4273         * tmac/html-old.tmac: Removed.
4274         * tmac/troffrc, tmac/troffrc-end: Updated.
4275         * tmac/www.tmac: Remove special code for html-old device.
4276         Replace `html-or-html-old' register with `www-html'.
4278         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
4279         src/libs/libgroff/htmlindicate.cc (graphic_end),
4280         include/htmlindicate.h, src/preproc/grn/*.cc,
4281         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
4282         single argument for consistency with rest of source code.
4284         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
4286 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
4288         * src/roff/troff/troff.man: Fixing typos.
4290 2001-04-13  Werner LEMBERG  <wl@gnu.org>
4292         * doc/pic.ms: Fixing many font switches.
4293         * doc/groff.texinfo: Fixes, additions.
4294         * MORE.STUFF: Updated.
4296 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
4298         * src/devices/grohtml/grohtml.man: Updated manual page regarding
4299         simple anchor.
4300         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
4301         cropping of images.
4302         (removeTempFiles): New function to tidy up temporary files.
4303         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
4304         Many fixes to do with the new inline suppress node and image regions
4305         are much tighter.
4306         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
4307         (generate_img_src): New function.
4308         (html_printer::do_auto_image): Utilizes it.
4309         (do_heading, do_title): Include inline images within their contents.
4310         (html_printer::begin_page): Tidied up comments that are issued to
4311         the html output file.
4312         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
4313         than courier.
4314         (text_glob::is_br): New method used by do_heading.
4315         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
4316         equivalent diversion.
4317         * src/include/html-strings.h: Altered image tags to reflect the
4318         inline image node.
4319         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
4320         parameter.
4321         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
4322         it is already inside a pic image.  Only emit tags if the argument
4323         `-Tps:html' is present.
4324         * src/preproc/tbl/main.cc: Changes to reflect additional
4325         `html_end_suppress' parameter.
4326         * src/roff/troff/env.cc: Only emit eol tag if a node has been
4327         emitted since the last eol tag was written.
4328         * src/roff/troff/env.h: New boolean `emitted_node'.
4329         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
4330         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
4331         * src/roff/troff/node.cc (check_charinfo): New method. 
4332         (troff_output_file::determine_line_limits): Alterations to limit
4333         checking.
4334         * tmac/www.tmac: Changes to reflect new suppress nodes.
4335           
4336 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
4338         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
4339         Escape the html_glyph in the buffer.
4340         (str_translate_to_html): Output the unescaped escaped_char.
4341         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
4342         `frame=void', not `frame=none'.  Add `border=0'.
4344 2001-04-12  Werner LEMBERG  <wl@gnu.org>
4346         * PROBLEMS: Add some words on how to avoid wrapper macros.
4348 2001-04-11  Blake McBride  <blake@florida-software.com>
4350         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
4352 2001-04-11  Werner LEMBERG  <wl@gnu.org>
4354         * font/devlbp/Makefile.sub (CLEANADD): Set it.
4355         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
4356         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
4357         * Makefile.sub (DISTCLEANFILES): Here.
4359         * libs/libgroff/new.cc: Include `nonposix.h'.
4360         * win32-diffs: Updated.
4362 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
4364         Added skeleton macro for defunct macros.
4366         Updated documentation.
4368         When inside displays, an empty input line warning should be
4369         suppressed.  If another macro call is put inside a display,
4370         all subsequent empty lines found in that display caused a
4371         warning to be emitted.
4373         * tmac/doc.tmac (doc-defunct-macro): New macro.
4374         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
4375         (doc-restore-global-vars): Fixed typo.
4376         (doc-empty-line): Check the `doc-display-depth' register to
4377         determine whether we are inside display or not.
4379         * tmac/doc-common: Removed `Or' and `Sf' registers.
4380         Moved obsolete `Ds' macro to doc.tmac.
4382         * tmac/groff_mdoc.man: Bump document date.
4383         Document `.Vt' under ``Variable Types''.
4384         Removed documentation for obsolete `.Or' macro.
4386 2001-04-10  Werner LEMBERG  <wl@gnu.org>
4388         * NEWS: Updated.
4389         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
4391 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
4393         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
4394         (usage): Add stream argument. Don't exit.
4395         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
4396         Write --version output to stdout, not stderr.
4397         (usage): Add stream argument. Don't exit.
4398         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
4399         (usage): Add stream argument. Don't exit.
4400         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
4401         constants.
4402         (usage): Add stream argument. Don't exit.
4403         (main): Write --help output to stdout, not stderr.
4404         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
4405         (usage): Add stream argument. Don't exit.
4406         * src/devices/grops/ps.cc (main): Accept --help and --version.
4407         (usage): Add stream argument. Don't exit.
4408         * src/devices/grotty/tty.cc (main): Accept --help and --version.
4409         (usage): Add stream argument. Don't exit.
4410         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
4411         (main): Accept --help and --version.
4412         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
4413         (main): Accept --help and --version.
4414         * src/preproc/html/pre-html.cc (usage): Add stream argument.
4415         (scanArguments): Accept --help and --version.
4416         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
4417         (main): Accept --help and --version.
4418         * src/preproc/refer/refer.cc (main): Accept --help and --version.
4419         (usage): Add stream argument. Don't exit.
4420         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
4421         exit.
4422         (main): Accept --help and --version.
4423         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
4424         (main): Accept --help and --version.
4425         * src/roff/groff/groff.cc (main): Accept --help and --version.
4426         (synopsis): Add stream argument.
4427         (help): Write --help output to stdout, not stderr.
4428         (usage): Add stream argument. Don't exit.
4429         * src/roff/grog/grog.pl: Accept --help and --version.
4430         (help): New sub.
4431         * src/roff/grog/grog.sh: Accept --help and --version.
4432         * src/roff/nroff/nroff.sh: Accept --help and --version.
4433         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
4434         (usage): Add stream argument. Don't exit.
4435         (main): Accept --help and --version.
4436         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
4437         (usage): New function with stream argument, doesn't exit.
4438         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
4439         (usage): New function with stream argument, doesn't exit.
4440         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
4441         (usage): Add stream argument. Don't exit.
4442         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
4443         (main): Accept --help and --version.
4444         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
4445         exit.
4446         (main): Accept --help and --version.
4447         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
4448         (main): Accept --help and --version.
4449         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
4450         (usage): Add stream argument. Don't exit.
4452 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
4454         Fix indentation in SYNOPSIS.
4456         Updated to include changes of latest BSD mdoc version (basically,
4457         the only change is that `.Fn' and `.Fc' put a final semicolon after
4458         a function declaration in the SYNOPSIS section).
4460         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
4461         (doc-in-synopsis-section): New variable.  Updated all related
4462         functions.
4463         (doc-indent-synopsis-active): New register.
4464         (Nd, Fn, Fo): Use it.
4465         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
4466         `.Cd' with long argument line produces indented wrapped lines. 
4467         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
4468         undesirable line break to be output.
4469         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
4470         `.rs'.
4471         (Fn, Fc): Add final `;' to output.
4472         (doc-save-global-vars, doc-restore-global-vars): Updated.
4473         * tmac/doc-common: Remove `Ex' register.
4474         Updated.
4475         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
4476         copyright.
4478 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
4480         * tmac/doc.tmac (Cd): Simplify code.
4481         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
4483 2001-04-06  Werner LEMBERG  <wl@gnu.org>
4485         Implement continuous underlining for nroff mode.  To do that, a new
4486         request in the ditroff language has been added: `x u N' (N is 0
4487         or 1).
4489         \X and \Y are now transparent to end-of-sentence recognition.
4491         * src/include/printer.h (printer): Add `type' parameter to `special'
4492         method.
4493         * src/libs/libdriver/printer.cc (printer::special): Updated.
4494         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
4496         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
4497         specials of type `p'.
4498         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
4499         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
4500         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
4501         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
4502         (glyph::order): New method.
4503         (tty_printer::add_char): Use it.
4504         (tty_printer::special): New method.
4505         (tty_printer::end_page): Implement it.
4507         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
4508         * src/roff/troff/node.cc (special_node::special_node): Add parameter
4509         to set `no_init_string'.
4510         (special_node::tprint_start): Use it.
4511         (special_node::same, special_node::copy): Updated.
4512         (special_node::ends_sentence): New method.
4513         (troff_output_file::start_special): Add parameter to include
4514         inititialization of special conditionally.
4516         * src/roff/troff/env.h (environment): New member `underline_spaces'.
4517         * src/roff/troff/env.cc (do_underline_special): New function.
4518         (environment::set_font): Use it.
4519         (do_underline): Use it.  This was `underline()'.
4520         (underline): Call `do_underline()'.
4521         (continuous_underline): New function which calls `do_underline()'.
4522         (environment::newline): Use `do_underline_special()'.
4523         (init_env_requests): Updated.
4525         * NEWS, man/troff_out.man: Updated.
4527 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
4529         * font/devutf8/R.proto: Fix code of 'shc'.
4531 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
4533         Many fixes.  Diag lists can now be nested also; additionally,
4534         `-compact' and `-offset' are supported.
4536         * tmac/doc.tmac (doc-have-indent): Replaced with ...
4537         (doc-list-have-indent-stackXXX): A new register stack.
4538         (doc-have-diag-list): Removed.
4539         (Bl): Use `doc-list-have-indent-stackXXX'.
4540         (El): Updated.
4541         (doc-diag-list): Use `doc-compact-list-stackXXX'.
4542         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
4543         (doc-set-vertical-and-indent): Ditto.
4544         (doc-next-list-depth): Removed.
4545         (doc-increment-list-stack): Updated.
4546         (doc-decrement-list-stack): Use `doc-list-depth' instead of
4547         `doc-next-list-depth'.
4548         (doc-end-list, doc-end-column-list): Don't use
4549         `doc-increment-list-stack'.
4550         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
4551         (doc-save-global-vars, doc-restore-global-vars): Updated.
4552         * tmac/doc-common: Updated.
4553         * tmac/groff_mdoc.man: Updated.
4554         * NEWS: Fix typo.
4556 2001-04-02  Werner LEMBERG  <wl@gnu.org>
4558         * src/devices/grotty/grotty.man: Fix grammatical error.
4560 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
4562         Remove .Ld from mdoc package; replace it with special handling of
4563         `...'.
4565         * tmac/doc-common: Remove `Ld' register.
4566         Uncomment `doc-volume-ds-*' strings.
4567         Remove `doc-operating-system-default'.
4568         (Os): Updated.
4569         * tmac/doc-syms (Ld): Removed.
4570         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
4571         `...' specially.
4572         * NEWS: Updated.
4574         * tmac/groff_mdoc.man: Many fixes and updates.
4576 2001-03-29  Werner LEMBERG  <wl@gnu.org>
4578         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
4579         Bond <tkb@tkb.mpl.com>.
4580         * tmac/www.tmac: Save compatibility mode.
4582 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
4584         * tmac/groff_mdoc.man: Many fixes.
4586 2001-03-28  Werner LEMBERG  <wl@gnu.org>
4588         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
4589         isn't recognized.
4591 2001-03-27  Werner LEMBERG  <wl@gnu.org>
4593         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
4594         diversion.  This fixes overlong tags.
4596 2001-03-26  Werner LEMBERG  <wl@gnu.org>
4598         * doc/groff.texinfo: Fixed and improved documentation of fonts.
4599         * tmac/doc-syms: Fix error messages.
4600         * tmac/an-old.tmac: Remove incorrect double backslashes.
4602 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
4604         * tmac/Makefile.sub: Strip mdoc.local also
4605         * tmac/strip.sed: Fixed.
4607 2001-03-24  Werner LEMBERG  <wl@gnu.org>
4609         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
4610         selecting the font size.
4611         * tmac/groff_mdoc.man, NEWS: Document it.
4613 2001-03-23  Werner LEMBERG  <wl@gnu.org>
4615         * src/roff/troff/div.cc (save_vertical_space): Add default argument
4616         to `sv' request.
4617         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
4618         argument to restore previous font family.
4619         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
4621         * doc/groff.texinfo: More fixes and additions (mainly for font
4622         manipulating commands).
4624         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
4625         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
4626         * tmac/Makefile.sub, NEWS: Updated.
4628 2001-03-23  Werner LEMBERG  <wl@gnu.org>
4630         Replaced mdoc implementation.  The new version is `state of the
4631         art', using almost all new features of groff 1.17 -- it won't run
4632         with older versions.
4634         * tmac/doc.tmac: Completely rewritten.
4635         * tmac/doc-common: Ditto.
4636         * tmac/doc-nroff: Ditto.
4637         * tmac/doc-ditroff: Ditto.
4638         * tmac/doc-syms: Ditto.
4639         * tmac/mdoc.local: New file.
4640         * tmac/groff_mdoc.samples.man: Replaced with ...
4641         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
4642         * tmac/strip.sed: Updated.
4643         * tmac/Makefile.sub: Updated.
4644         * INSTALL: Updated.
4646         * tmac/groff_man.man: Add `man.local' to the FILES section.
4648 2001-03-22  Werner LEMBERG  <wl@gnu.org>
4650         * doc/groff.texinfo: Added many @noindent.
4651         Replaced @end_Example -> @endExample.
4652         Added info whether registers are r/o.
4653         Many other additions and fixes.
4655 2001-03-21  Werner LEMBERG  <wl@gnu.org>
4657         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
4658         in makeinfo of texinfo 4.0) to be used in @Def* macros.
4659         Improved @Def* macros: Now the exact syntax of request, register,
4660         and escapes is shown.
4661         Added macros for parentheses and brackets to be used in @Def*.
4662         Many fixes and improvements of the documentation.
4664 2001-03-20  Werner LEMBERG  <wl@gnu.org>
4666         * doc/groff.texinfo: Added new index: `st' (for strings).
4667         Added macros @Defstr(x).
4668         Added macro @Example (adding @group).
4669         Other minor improvements.
4671 2001-03-19  Werner LEMBERG  <wl@gnu.org>
4673         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
4674         `rq' for requests.  `fn' is no longer used.
4675         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
4676         Removed @Deffn(x).
4678         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
4679         number with name of man page.
4681 2001-03-19  Larry Kollar  <kollar@alltel.net>
4683         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
4684         consistency.
4686 2001-03-19  Werner LEMBERG  <wl@gnu.org>
4688         * man/groff_font.man: Document `prepro', `postpro', and `print'.
4689         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
4690         * src/devices/grohtml/grohtml.man: Fixing typos.
4692 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
4694         * tmac/s.tmac (@IP): Pass `.ip' html tag.
4695         * tmac/groff_mwww.man: Remove .LINE macro
4696         * tmac/www.tmac (LINE): Add `.ti'.
4698         * src/devices/grohtml/post-html.cc (html_printer): New member
4699         `indent'.
4700         (html_printer::emit_raw): Use it.
4701         (html_printer::do_linelength): Ditto.
4702         (html_printer::do_pageoffset): Ditto.
4703         (html_printer::do_indentation): Ditto.
4704         (html_printer::do_tempindent): Ditto.
4705         (html_printer::do_break): Ditto.
4706         (html_printer::begin_page): Ditto.
4707         (html_printer::do_indentedparagraph): New function.
4708         (html_printer::troff_tag): Handle `.ip'.
4709         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
4710         Add `<td width=...>' handling.
4711         (html_text::do_table): Add parameter.
4712         (html_text::do_indent): Updated.
4713         * src/devices/groohtml/html-text.h: Updated.
4715 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
4717         Introduced simple html tables to implement indentation.
4719         * src/devices/grohtml/html.h (word, word_list): New structures.
4720         (simple_output): Use it.
4721         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
4722         (html_printer): Improve indentation handling.
4723         (html_printer::emit_raw): Set `in_table' element.  Handle
4724         indentation if set.
4725         (html_printer::write_header): Move conditional downwards.
4726         Don't allow whitespace in tags.
4727         (html_printer::do_linelength): Handle line length and indentation
4728         conditionally.
4729         (html_printer::do_pageoffset): Handle indentation conditionally.
4730         (html_printer::do_indentation): Ditto.
4731         (html_printer::do_tempindent): New function member.
4732         (html_printer::do_fill): Take care of indentation.
4733         (html_printer::do_flush): Finish table.
4734         (html_printer::do_links): Ditto.
4735         (html_printer::do_break): New function for handling `.br' and `.ti'.
4736         (html_printer::troff_tag): Use it.
4737         Handle `.ti'.
4738         (html_printer::flush_globs): Fix.
4739         (html_printer::flush_page): Finish table.
4740         (html_printer::html_printer): Fix error message.  Set up
4741         `linelength'.
4742         (html_printer::add_to_sbuf): Remove special handling of character
4743         code 255.
4744         (to_unicode): Remove `stop()'.
4745         (html_printer::write_title): Cleanup.
4746         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
4747         (html_printer::~html_printer): Flush text and end the line.
4748         Use `put_string()'.
4749         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
4750         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
4751         emission of tags.
4752         (html_text::start_tag): Disable newlines.
4753         (html_text::table_is_void): New function.
4754         (html_text::issue_table_begin): Ditto.
4755         (html_text::issue_table_end): Ditto.
4756         (html_text::push_para): Better table handling.
4757         (html_text::do_indent): New function.
4758         (html_text::do_table): Ditto.
4759         (html_text::done_table): Ditto.
4760         (html_text::do_tt): Handle PRE_TAG.
4761         (html_text::is_in_table): New function.
4762         (html_text::check_emit_text): Handle tables.
4763         (html_text::do_emittext): Use `nl()'.
4764         (html_text::do_para): Handle table.
4765         (html_text::remove_def): New function.
4766         * src/devices/grohtml/output.cc (word, word_list): Implement
4767         methods.
4768         (simple_output::end_line): Flush last word.
4769         (simple_output::simple_comment): Ditto.
4770         (simple_output::begin_comment): Recoded.
4771         (simple_output::end_comment): Ditto.
4772         (simple_output::comment_arg): Removed.
4773         (simple_output::check_newline): Improve test and flush last word.
4774         (simple_output::space_or_newline): Improved.
4775         (simple_output::write_newline): Replaced with...
4776         (simple_output::nl): This.
4777         (simple_output::put_raw_char): Flush last word.
4778         (simple_output::check_space): Removed.
4779         (simple_output::put_translated_string): Ditto.
4780         (simple_output::put_string): Simplified.
4781         (simple_output::put_number): Updated.
4782         (simple_output::put_float): Ditto.
4783         (simple_output::put_symbol): Removed.
4784         (simple_output::enable_newlines): Add `check_newline()'.
4785         (simple_output::flush_last_word): New function.
4787         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
4788         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
4790         * tmac/s.tmac (@PP, @IP): Add html conditional code.
4791         * tmac/an-old.tmac (TP): Ditto.
4793 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
4795         * mdate.sh: Make it POSIX compliant.
4797 2001-03-09  Werner LEMBERG  <wl@gnu.org>
4799         Added the `return' request to end a macro immediately.  It simply
4800         pops iterators from the input stack until a macro iterator is found.
4802         * src/roff/troff/input.cc (input_iterator::is_macro,
4803         macro_iterator::is_macro): New member.
4804         (input_return_boundary): New class to signal an immediate return
4805         to while_request().
4806         (input_stack::add_return_boundary, input_stack::is_return_boundary):
4807         New functions.
4808         (input_stack::clear): Use it.
4809         (input_stack::pop_macro): New function.
4810         (while_request): Use `is_return_boundary()'.
4811         (return_macro_request): New function.
4812         (init_input_requests): Use it.
4814         * src/roff/troff/TODO: Updated.
4815         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4817 2001-03-08  Werner LEMBERG  <wl@gnu.org>
4819         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
4820         cleanup.
4822 2001-03-07  Werner LEMBERG  <wl@gnu.org>
4824         Make `\B' more rigid.
4826         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
4827         parameter.
4828         (get_number_rigidly): New function.
4829         * src/roff/troff/input.cc (do_expr_test): Use it.
4830         * src/roff/troff/token.h: Updated.
4832         * src/roff/troff/request.h: Fix typo (init_html_request ->
4833         init_markup_request).
4835 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
4837         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
4838         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
4839         are now `.begin', `.end', `.image'.
4841         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
4842         (html_printer::add_to_sbuf): Changing type of `code' parameter.
4843         Use add_char_to_sbuf().
4844         (to_unicode): New function.
4845         (char_translate_to_html): Changing type of `ch' parameter.
4846         Use `to_unicode()'.
4847         (html_printer::~html_printer): Comment out doctype string.
4848         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
4849         instead of `.html-end'.
4850         (write_start_image): Use `.begin' and `.image' instead of
4851         `.html-begin' and `.html-image'.
4852         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
4853         (html_begin): Renamed to ...
4854         (begin): This.
4855         (html_end): Renamed to ...
4856         (end): This.
4857         (html_image): Renamed to ...
4858         (image): This.
4859         (init_html_requests): Renamed to ...
4860         (init_markup_requests): This.
4861         * tmac/www.tmac: Updated.
4863 2001-02-28  Bram  <bram@avontuur.org>
4865         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
4866         constructor.
4868 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
4870         * doc/meref.me: Fixing some typos.
4872 2001-02-16  Werner LEMBERG  <wl@gnu.org>
4874         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
4875         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
4876         * src/roff/troff/node.h: Updated.
4878 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
4880         * tmac/groff_tmac.man: Fix typo.
4882 2001-02-16  Werner LEMBERG  <wl@gnu.org>
4884         Fixing a bug which prevented proper end-of-sentence recognition
4885         between an `unformatted' box and the following text.  As a
4886         consequence, vertical line distances are no longer preserved in
4887         boxes after a call to `.unformat' -- because boxes aren't
4888         line-oriented (contrary to diversions), this doesn't make sense
4889         anyway.
4891         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
4892         value.
4893         (vertical_size_node::set_unformat_flag): New method.
4894         * src/roff/troff/node.hh: Updated.
4895         * src/roff/troff/input.cc (word_space_node::reread,
4896         hmotion_node::reread): Reset `unformat' flag after usage.
4897         (unformat_macro): Append only if `set_unformat_flag()' returns
4898         non-zero.
4899         * src/roff/troff/troff.man: Updated.
4901 2001-02-15  Werner LEMBERG  <wl@gnu.org>
4903         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
4904         documentation of `asciify' and `unformat' requests.
4906 2001-02-13  Werner LEMBERG  <wl@gnu.org>
4908         Redesigned the `unformat' request.  It is no longer connected with
4909         `asciify' but rather uses new `reread()' methods if the `unformat'
4910         flag is set.  Additionally, the handling of space characters after
4911         unformatting has been fixed so that they retain their width.
4913         * src/roff/troff/node.h (width_list): New structure to store
4914         original widths of spaces.
4915         (node): Added `unformat' member.
4916         Replaced `num_spaces' variable with `orig_width' list.
4917         * src/roff/troff/node.cc (*node::asciify,
4918         asciify_reverse_node_list): Removed `unformat_only' flag and related
4919         code.
4920         (word_space_node::asciify, word_space_node::word_space_node): Use
4921         `orig_width'.
4922         (word_space_node::~word_space_node): New destructor.
4923         (word_space_node::copy): Updated to handle `orig_width'.
4924         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
4925         (*node::merge_space): Update `orig_width' list if necessary.
4926         (*node::set_unformat_flag): New methods to set the `unformat' flag.
4927         * src/roff/troff/enc.cc (environment::space_newline): Use
4928         `width_list'.
4929         (environment::space): Added method to handle space width and
4930         sentence space width as parameters.  Use `width_list'.
4931         (environment::make_tab_node): Updated.
4932         * src/roff/troff/env.h: Updated.
4933         * src/roff/troff/input.cc (word_space_node::reread,
4934         unbreakable_space_node::reread, hmotion_node::reread): New methods
4935         to handle nodes specially if `unformat' flag is set.
4936         (do_asciify_macro): Renamed back to ...
4937         (asciify_macro): This.
4938         (unformat_macro): New implementation to simply set the `unformat'
4939         flag.
4941         * MORE.STUFF: Added more info about deroff.
4943 2001-02-08  Werner LEMBERG  <wl@gnu.org>
4945         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
4946         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
4947         and `add_self()' methods to avoid hyphenation.  For example, the
4948         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
4949         soft hyphen after `foo'.  Now the hyphen list is correctly
4950         `foo<ignore><ignore>bar'.
4952 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
4954         * tmac/groff_tmac.man: Fix `BIR' macro.
4956 2001-02-04  Werner LEMBERG  <wl@gnu.org>
4958         A new escape sequence `\:', inserting a zero-width break point.
4960         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
4961         * src/roff/troff/input.cc (get_copy, token::next, asciify):
4962         Implement it.
4963         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
4964         method.
4965         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
4966         and `asciify()' methods.
4967         * src/roff/troff/node.cc (space_node::space_node): Updated.
4968         (space_node::asciify): Handle `was_escape_colon'.
4969         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4971         Handle `\~' similar to other comparable requests.
4973         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
4974         label.
4975         (token::next): Move creation of an unbreakable_space_node to...
4976         (token::add_to_node_list): Here.
4978         Fix a bug which sometimes prevented hyphenation of words connected
4979         with `\~' or `\ ' (and other escape sequences handled as
4980         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
4981         (after a call to the `unformat' request).
4983         * src/roff/troff/env.h (environment::possibly_break_line,
4984         environment::hyphenate_line): Introducing `start_here' parameter.
4985         * src/roff/troff/env.cc (environment::space_newline,
4986         environment::space): Use it.
4987         (environment::possibly_break_line, environment::hyphenate_line):
4988         Implement it.
4989         * src/roff/troff/input.cc (process_input_stack): Use it.
4990         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
4991         space_char_hmotion_node, overstrike_node): Add
4992         `get_hyphenation_type()' method.
4993         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
4994         if `unformat_only' is active.
4996 2001-01-30  Werner LEMBERG  <wl@gnu.org>
4998         Implemented new read-only number register `.linetabs' which
4999         returns 1 if in line-tabs mode, 0 otherwise.
5001         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
5002         * src/roff/troff/env.cc (get_line_tabs): New function.
5003         (init_env_requests): Use it.
5004         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
5006         * VERSION, REVISION: Changing to 1.17.0.
5008 2001-01-28  Werner LEMBERG  <wl@gnu.org>
5010         Fixed a bug which prevented hyphenation of words which are finished
5011         with `\)'.
5013         * src/roff/troff/token.h (token): Add enum type
5014         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
5015         * src/roff/troff/input.cc (token::next, token::description,
5016         get_line_arg, token::add_to_node_list, token::process): Use it.
5018 2001-01-27  Werner LEMBERG  <wl@gnu.org>
5020         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
5021         * src/roff/troff/div.cc (do_divert): Use it.
5023         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
5025 2001-01-25  Werner LEMBERG  <wl@gnu.org>
5027         Adding the `linetabs' request.  If set, tab distances are not
5028         computed relative to the input line but relative to the output line.
5030         * src/roff/troff/env.h (environment): New member `line_tabs'.
5031         * src/roff/troff/env.cc (line_tabs_request): Implement request.
5032         (environment::environment, environment::copy): Updated.
5033         (environment::distance_to_next_tab): Use `line_tabs'.
5034         (init_env_requests): Register request.
5035         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
5036         fixes.
5038 2001-01-24  Werner LEMBERG  <wl@gnu.org>
5040         Introducing a new read-only register `.int' which is set to a
5041         positive value if the last output line is interrupted (i.e., if it
5042         contains `\c').
5044         * src/roff/troff/env.cc (init_env_requests): Add it.
5045         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
5047 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
5049         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
5050         * src/preproc/html/pre-html.cc (findPrefix): New function which
5051         generates the troff executable name via the system prefix.
5052         * src/preproc/eqn/main.cc: Modified warning message.
5054 2001-01-23  Werner LEMBERG  <wl@gnu.org>
5056         troff's `box' and `boxa' requests didn't preserve temporary
5057         indentation.
5059         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
5060         `saved_target_text_length' members.
5061         * src/roff/troff/div.cc (do_divert): Use them.
5063         Tabs (but not yet leaders and fields) are now handled correctly by
5064         `asciify' request.
5066         * node.h (hmotion_node): Add field `was_tab'.
5067         * env.cc (environment::make_tab_node): Set it.
5068         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
5070         Added new request `unformat' which will, contrary to `asciify',
5071         preserve font information after unformatting (i.e., only nodes
5072         dealing with horizontal space are converted back to input
5073         characters).
5075         * input.cc (asciify_macro): Renamed to ...
5076         (do_asciify_macro): this, having a new parameter `unformat_only'.
5077         (asciify_macro, unformat_macro): New; using do_asciify_macro.
5078         (init_input_requests): Added `unformat'.
5079         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
5080         parameter to control asciification process.
5081         * node.h (*_node::asciify): Ditto.
5082         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
5084 2001-01-20  Werner LEMBERG  <wl@gnu.org>
5086         * doc/groff.texinfo: Minor improvement of `.in' documentation.
5088 2001-01-18  Werner LEMBERG  <wl@gnu.org>
5090         * tmac/ps.tmac: Remove call of psold.tmac.
5091         * tmac/psold.tmac: Comment updated.
5092         * tmac/psnew.tmac: Removed since no longer needed.
5093         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
5095         * font/devutf8/R.proto: Adding `shc' glyph.
5096         * font/devutf8/NOTES: Updated.
5098         * test-groff: Updated.
5100 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
5102         First cut of the new html device driver.  Changes to pre-html and
5103         the new grohtml are too numerous to be documented here.
5105         Stuff related to `html' has been renamed to `html-old' and `html2'
5106         stuff has been renamed to `html' (including directories).  The new
5107         html device driver is therefore invoked as `-Thtml'.
5109         Added new `\O' escape to suppress output (needed by html driver).
5111         Added functions and code to pass info about input-level commands
5112         (`.in', `.fl', etc.) to html driver.
5114         Three new functions (.html-begin, .html-end, and .html-image) for
5115         better html handling: `html-begin' will execute the remaining line
5116         if at the outermost nesting level, increasing an internal counter.
5117         `html-end' does the same but decreases the internal counter.
5118         `html_image' puts its arguments into a special node (suppress_node)
5119         to define an image region.
5121         The `output' request has been removed.
5123         * tmac/html-tags.tmac: Removed.
5124         * tmac/arkup.tmac: Updated and renamed to ...
5125         * tmac/www.tmac: New file.
5126         * tmac/markup.tmac Updated and renamed to ...
5127         * tmac/mwww.tmac: New file.
5128         * tmac/Makefile.sub: Updated.
5129         * tmac/an-old.tmac: Updated.
5130         * tmac/eqnrc: Updated.
5131         * tmac/groff_man.man
5132         * tmac/groff_markup.man: Updated and renamed to ...
5133         * tmac/groff_mwww.man: New file.
5134         * tmac/groff_tmac.man: Updated.
5135         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
5136         * tmac/html.tmac: Updated and renamed from html2.tmac.
5137         * tmac/pspic.tmac: Updated html support.
5138         * tmac/s.tmac: Added html output support.
5139         * tmac/troffrc, tmac/troffrc-end: Updated.
5141         * Makefile.in, doc/Makefile: Updated.
5142         * doc/groff.texinfo: Added info about new `\O' escape.
5143         * doc/homepage.ms: Use `MAILTO' macro.
5145         * font/devhtml/DESC.proto: Add `C' font.
5146         * font/devhtml/Makefile.sub: Updated.
5147         * font/devhtml/R.proto: Minor fixes.
5148         * font/devhtml-old/Makefile.sub: Updated.
5150         * src/devices/grohtml-old/Makefile.sub: Updated.
5152         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
5153         method.
5154         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
5155         graphic_start): Add `inline' parameter.  Update.
5156         (html_end_suppress, graphic_end): Update.
5158         * src/include/html-strings.h: New file.
5159         * src/include/htmlindicate.h: Comments updated.
5160         * src/include/printer.h: Updated.
5162         * src/preproc/eqn/main.cc (do_file, main): Updated.
5163         * src/preproc/pic/troff.cc (troff_output::start_picture,
5164         troff_output::finish_picture): Updated.
5165         * src/preproc/tbl/main.cc (process_input_file): Updated.
5167         * src/roff/groff/groff.cc (main): Updated.
5168         Pass device arguments to predrivers also.
5169         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
5170         * src/roff/troff/env.h (environment): Updated.
5171         New elements `need_eol' and `ignore_next_eol' (for html output).
5172         * src/roff/troff/env.cc (environment::environment): Add initializers
5173         for `need_eol' and `ignore_next_eol'.
5174         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
5175         functions.
5176         (point_size, fill, no_fill, center, right_justify, line_length,
5177         indent, temporary_indent, break_request, handle_tab): Use
5178         `add_html_tag()'.
5179         (set_tabs): Use `add_html_tag_tabs()'.
5180         (environment::add_html_tag): Updated.
5181         (environment::do_break): Updated.
5182         * src/roff/troff/div.cc (space_request, flush_output): Use
5183         `environment::add_html_tag()'.
5184         * src/roff/troff/input.cc: Updated.
5185         New variable `html_level' to indicate nested `html-begin' requests.
5186         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
5187         (non_interpreted_char_node, token_node, non_interpreted_node): Add
5188         `force_tprint()' method.
5189         (token::next): Handle `\O'.
5190         (do_suppress): Implement it.
5191         (html_begin, html_end, html_image): New functions.
5192         (init_output_requests): Renamed to ...
5193         (init_html_requests): this.
5194         (main): Use it.
5195         (macro::append_str, macro::append_unsigned, macro::append_int): New
5196         methods.
5197         New variable `output_low_mark_miny' to limit minimal value of y.
5198         (reset_output_registers): Use it.
5199         (output_request): Removed.
5200         (get_output_registers): New function.
5201         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
5202         (*_node): Added `force_tprint()' if necessary.
5203         (special_node): New elements `tf' and `get_tfont()'.
5204         (suppress_node): New class.
5205         * src/roff/troff/node.cc:
5206         New global variables `image_no' and `suppress_start_page'.
5207         (real_output_file): New method `is_on()'.
5208         (troff_output_file): New method `start_special(tfont)'.
5209         (troff_output_file::really_print_line): Use `tprint' conditionally.
5210         (real_output_file::print_line): Updated.
5211         (real_output_file::on): Updated.
5212         (*_node): Added `force_tprint()'.
5213         (special_node::special_node): Initializer updated.
5214         (special_node::same, special_node::copy, special_node::tprint_start):
5215         Updated.
5216         (get_reg_int, get_reg_str): New functions.
5217         (suppress_node::*): New methods.
5218         New global variables last_position, last_image_filename;
5219         (min): New inline function.
5220         * src/roff/troff/reg.h, src/roff/troff/request.h,
5221         src/roff/troff/troff.h: Updated.
5223 2001-01-13  Werner LEMBERG  <wl@gnu.org>
5225         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
5226         documentation of `asciify' request.
5228 2001-01-12  Werner LEMBERG  <wl@gnu.org>
5230         * src/roff/troff/input.cc: Move definition of special characters
5231         like `ESCAPE_TILDE' to ...
5232         * src/roff/troff/input.h: New file.
5233         * src/roff/troff/Makefile.sub (HDRS): Add it.
5235         Extending the .asciify request to `unformat' space characters also.
5237         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
5238         to count input space characters.
5239         Update constructors to take care of it.
5240         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
5241         `ESCAPE_SPACE' instead of normal space.
5242         (word_space_node::asciify): New method.
5243         (unbreakable_space_node::asciify): New method.
5244         (word_space_node::merge_space): New method.
5245         * src/roff/troff/env.cc (environment::space_newline,
5246         environment::space): Add code to initialize `num_spaces' (using the
5247         constructor of `word_space_node').
5248         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
5249         Document it.
5251 2001-01-09  Werner LEMBERG  <wl@gnu.org>
5253         * man/groff_char.man: Use table header traps only conditionally.
5255 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
5257         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
5259 2001-01-08  Werner LEMBERG  <wl@gnu.org>
5261         Introducing the `box' and `boxa' requests which are similar to
5262         `di' resp. `da' but omitting a partially filled line (which is
5263         restored after ending the diversion).
5265         * src/roff/troff/div.h (diversion): Add elements to save partially
5266         filled line.
5267         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
5268         partially filled line.
5269         (divert, divert_append): Updated.
5270         (box, box_append): New functions.
5271         (init_div_requests): Use them.
5272         * src/roff/troff/env.h (environment): do_divert() is now a friend.
5273         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
5275         * doc/groff.texinfo: Fix documentation of `lf' request.
5277 2000-12-25  Werner LEMBERG  <wl@gnu.org>
5279         * src/roff/troff/troff.man, NEWS: Document `writem' request.
5281 2000-12-21  Werner LEMBERG  <wl@gnu.org>
5283         Ignore `ss' request if in compatibility mode.
5285         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
5286         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
5287         * src/roff/troff/env.cc (space_size): Use it.
5289         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
5290         `ss' request in nroff mode.
5292         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
5293         changes.
5295 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
5297         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
5299 2000-12-13  Werner LEMBERG  <wl@gnu.org>
5301         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
5302         * src/preproc/eqn/neqn.man: Small fixes and additions.
5304 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
5306         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
5307         Fixing typo.
5309         * src/preproc/eqn/neqn.man: New file.
5311         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
5312         negative' warning.
5314         * tmac/e.tmac: Add `T&' macro.
5315         Fix `indent cannot be negative' warning.
5316         * tmac/s.tmac: Fix `indent cannot be negative' warning.
5318 2000-12-07  Werner LEMBERG  <wl@gnu.org>
5320         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
5322 2000-12-06  Werner LEMBERG  <wl@gnu.org>
5324         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
5325         `alloca' symbol .
5327         * MORE.STUFF: Added info about deroff for djgpp.
5329         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
5330         documentation of -rcR switch.
5332 2000-12-03  Werner LEMBERG  <wl@gnu.org>
5334         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
5335         if -rcR=1 (which is now the default in nroff mode), a single, very
5336         long page is created instead of multiple pages: All `ne' and `wh'
5337         requests are put into conditionals; a new macro `an-end' is added to
5338         be called with `em'.
5340         Some other minor cleanups.
5342         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
5344 2000-12-02  Werner LEMBERG  <wl@gnu.org>
5346         Fixing a bug which prevented hyphenation in words followed
5347         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
5349         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
5350         Adding possibly_break_line().
5351         * src/roff/troff/env.h (environment): Make possibly_break_line()
5352         public.
5354         Make `\~' usable in .tr request.
5356         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
5357         (token): Add stretchable_space().
5358         * src/roff/troff/input.cc (token::next, token::delimiter,
5359         token::description, process_input_stack, do_translate,
5360         add_to_node_list, token::process): Use it.
5361         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
5362         for adjusting the space.
5363         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
5364         for stretchable space.
5365         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
5366         (make_node): Add code for stretchable space.
5367         * src/roff/troff/env.cc (environment::add_char): Use it.
5368         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
5369         (get_copy, token::next, transparent_translate, asciify): Use it.
5371         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
5372         doc/groff.texinfo: Updated.
5373         * man/groff.man: Small reorderings.
5375 2000-11-23  Werner LEMBERG  <wl@gnu.org>
5377         * NEWS: Fixes.
5378         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
5379         option.
5380         * src/roff/troff/input.cc (main): Add `config_macro_path' and
5381         `safer_macro_path' to -M option.
5382         * src/roff/troff/troff.man: Fixes.
5384 2000-11-22  Werner LEMBERG  <wl@gnu.org>
5386         Use safer path (except for config files) if -U isn't specified.  Add
5387         a special macro path (without home and current directory) for config
5388         files.  Add home directory to unsafe path for consistency.  Don't
5389         include the home directory in the font path.
5391         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
5392         `macro_path'.
5393         * src/include/macropath.h: Add `config_macrp_path'.
5394         * src/libs/libgroff/fontfile.cc: Fix font path.
5395         * src/roff/troff/input.cc (process_startup_file): Use
5396         `config_macro_path'.
5397         (main): Select unsafe path if -U is given.
5399         * src/preproc/eqn/main.cc (main): Fixing search path for
5400         configuration file.
5401         * src/preproc/eqn/eqn.man: Updated.
5403         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
5404         Updated.
5406         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
5407         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
5408         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
5409         src/devices/grotty/grotty.man: Updated.
5411         * Makefile.in: Fix comments.
5413 2000-11-17  Werner LEMBERG  <wl@gnu.org>
5415         * tmac/safer.tmac: Empty file added (again) for compatibility
5416         reasons.
5417         * tmac/Makefile.sub: Updated.
5419 2000-11-16  Werner LEMBERG  <wl@gnu.org>
5421         * src/devices/grodvi/dvi.cc (main),
5422         src/devices/grohtml2/post-html.cc (main),
5423         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
5424         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
5425         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
5426         (main), src/preproc/html2/pre-html.cc (main),
5427         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
5428         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
5429         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
5430         (main), src/utils/hpftodit/hpftodit.cc (main),
5431         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
5432         (main), src/utils/lookbib/lookbib.cc (main),
5433         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
5434         (main): Use stdout for -v.
5435         * src/roff/groff/groff.cc (run_commands),
5436         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
5437         to make direct printing to stdout possible.
5438         * src/roff/groff/pipeline.h: Updated.
5440         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
5441         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
5442         * src/utils/afmtodit/afmtodit.man: Updated.
5444         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
5445         (version): New function.
5446         (usage): Updated.
5447         * src/utils/addftinfo/addftinfo.man: Updated.
5449         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
5450         Fixing copyright dates.
5452         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
5453         replacing it.
5455         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
5456         version_string.
5458         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
5460 2000-11-15  Werner LEMBERG  <wl@gnu.org>
5462         In all programs, make -v return immediately with exit status 0 to
5463         be compliant with the GNU standard.
5465         * src/devices/grodvi/dvi.cc (main),
5466         src/devices/grohtml2/post-html.cc (main),
5467         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
5468         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
5469         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
5470         (main), src/preproc/html2/pre-html.cc (main),
5471         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
5472         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
5473         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
5474         (main): Implement it.
5475         * NEWS: Updated.
5477         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
5478         and postprocessors to the -v option.
5480         * src/roff/grog/grog.pl: Implement -v.
5481         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
5482         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
5484         * src/roff/nroff/nroff.sh: Implement -v.
5485         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
5486         * src/roff/nroff/nroff.man: Updated.
5487         
5488         * src/preproc/eqn/main.cc (main): Fix comment typo.
5490         * MORE.STUFF: Added info about djgpp port of grap.
5492 2000-11-14  Werner LEMBERG  <wl@gnu.org>
5494         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
5495         mode (or rather, implemented non-compatibility mode).
5496         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
5498         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
5499         replacing it -- we don't find gxditview otherwise.
5500         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
5502         * src/preproc/pic/depend: Removed.  Unnecessary.
5504         Implemented dummy keyword `solid' in pic for compatibility with
5505         AT&T pic.
5507         * lex.cc (lookup_keyword): Added `solid'.
5508         * pic.y: Added SOLID with dummy rule.
5509         * pic.cc, pic_tab.h: Regenerated.
5510         * doc/pic.ms: Updated.
5512 2000-11-13  Werner LEMBERG  <wl@gnu.org>
5514         For security reasons, don't use the current directory but the home
5515         directory while searching and scanning troffrc and troffrc-end.
5516         Similarly, replace the current directory with the home directory
5517         in the font path.
5519         * Makefile.in (fontpath, tmacpath): Remove current directory.
5521         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
5522         two parameters `add_home' and `add_current'.
5523         (search_path::~search_path, search_path::command_line_dir,
5524         search_path::open_file): Remove tests for `dirs' being zero.
5525         * src/include/searchpath.h: Adjust.
5526         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
5527         `safer_macro_path'.
5528         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
5530         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
5531         * src/roff/troff/input.cc: Use `mac_path', initialized with
5532         `macro_path'.
5533         (process_startup_file): Set `mac_path' to `safer_macro_path'.
5534         * src/roff/troff/env.cc: Use `mac_path'.
5536         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
5538         * NEWS, man/roff.man, src/roff/troff/troff.man,
5539         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
5540         Updated.
5542 2000-11-12  Werner LEMBERG  <wl@gnu.org>
5544         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
5546         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
5547         * configure.in: Fix typo in comment.
5548         * configure: Regenerated.
5550         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
5551         copyright dates.
5553 2000-11-08  Werner LEMBERG  <wl@gnu.org>
5555         Add system tmac directory (/usr/local/lib/groff/site-tmac).
5557         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
5558         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
5559         $(systemtmacdir).
5560         Use @libdir@.
5561         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
5562         * tmac/Makefile.sub (install_data): Create
5563         $(systemtmacdir) and $(localtmacdir).
5564         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
5565         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
5566         NEWS, doc/groff.texinfo: Updated and minor fixes.
5568         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
5569         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
5570         $(systemtmacdir) since the wrapper files are platform-dependent.
5572 2000-11-01  Werner LEMBERG  <wl@gnu.org>
5574         * doc/groff.texinfo: Fix typo.
5576 2000-10-26  Werner LEMBERG  <wl@gnu.org>
5578         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
5579           tmac.doc.old -> doc-old.tmac
5580           tmac.an.old  -> an-old.tmac
5582         * tmac/tmac.*: Moved to ...
5583         * tmac/*.tmac: this.
5584         * tmac/man.local: Fix comment.
5585         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
5586         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
5587         Added some `FILES' sections.  More use of @...@ directives.  Other
5588         minor updates.
5589         * arch/djgpp/README, font/devutf8/NOTES: Updated.
5590         * doc/homepage.ms, doc/groff.texinfo: Updated.
5591         * man/groff.man, man/roff.man: Updated.
5592         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
5593         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
5594         src/devices/grotty/grotty.man: Updated.
5595         * src/preproc/pic/pic.man: Updated.
5596         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
5597         instead of -mdoc.old.
5598         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
5599         * src/roff/nroff/nroff.man: Updated.
5600         * NEWS: Updated.
5602         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
5604         * tmac/mm.diff: Removed -- it has no use now since the mm package
5605         is part of groff.
5607         * tmac/*: Removed trailing spaces.
5609         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
5610         the tmac subdirectory also).
5612         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
5613         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
5614         stuff since it is no longer needed.
5616         * README, PROBLEMS: Updated.
5618 2000-10-25  Werner LEMBERG  <wl@gnu.org>
5620         Invert current behaviour: Search first FOOBAR.tmac, then
5621         tmac.FOOBAR.
5623         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
5624         (open_mac_file, macro_source): Implement it.
5625         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
5626         doc/groff.texinfo, NEWS: Document it.
5628         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
5629         Small documentation improvements.
5631         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
5632         subdirectory also).
5634         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
5636 2000-10-24  Werner LEMBERG  <wl@gnu.org>
5638         Add local tmac directory (groff/site-tmac).
5640         * Makefile.in: Add $(localtmacdir).
5641         (uninstall_dirs): Add $(localtmacdir).
5642         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
5643         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
5644         in $(localtmacdir).  Create $(localtmacdir).
5645         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
5646         Updated and minor fixes.
5648         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
5650         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
5652 2000-10-23  Werner LEMBERG  <wl@gnu.org>
5654         Move hyphen.us to tmac directory.
5656         * src/roff/troff/hyphen.us: Removed.
5657         * src/tmac/hyphen.us: Added.
5658         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
5660         Change installation structure for data files from .../groff/... to
5661         .../groff/<version><revision>/... to be conform with other GNU
5662         programs.
5664         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
5665         doc/Makefile: Implement it.
5666         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
5667         * configure: Updated.
5668         * arch/djgpp/README, font/devutf8/NOTES: Use it.
5669         * NEWS: Document it.
5670         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
5671         @MACRODIR@ instead of hard-coded directories.
5673 2000-10-22  Werner LEMBERG  <wl@gnu.org>
5675         Implement $GROFF_BIN_PATH environment variable (which defaults to
5676         $bindir) used for child programs of groff and similar wrappers.
5678         * gendefs.sh: Improve documentation.
5679         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
5680         src/preproc/eqn/Makefile.sub (neqn),
5681         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
5682         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
5683         $GROFF_BIN_PATH.
5684         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
5685         $GROFF_PATH__ (the latter for communication with troff).
5686         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
5687         set.
5688         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
5689         doc/groff.texinfo: Document it.
5691         * doc/groff.texinfo: Improve documentation of troff's -a option.
5693 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
5695         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
5696         non-intrusive eol marker.
5697         (troff_output_file::determine_line_limits): New function.
5698         (troff_output_file::draw): Use it.
5699         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
5700         output_pending_lines() instead of output_line().
5701         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
5702         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
5703         createImage): Small fixes.
5704         
5705 2000-10-14  Werner LEMBERG  <wl@gnu.org>
5707         Replace tmac.safer with a real secure solution.
5709         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
5710         system_request, pipe_output): Disable requests if in safer mode.
5711         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
5712         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
5713         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
5714         doc/groff.texinfo, src/roff/groff/groff.man,
5715         src/roff/troff/troff.man, arch/djgpp/README: Updated.
5717         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
5718         (resource_manager::output_prolog): Replace setenv() with putenv().
5720 2000-10-09  Werner LEMBERG  <wl@gnu.org>
5722         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
5723         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
5724         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
5725         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
5726         compilation errors with some compilers.  It seems that this code
5727         is no longer necessary -- if yes, it is easy to add some #ifdef's
5728         for that particular old-fashioned compiler.
5730         * MORE.STUFF: Added info about Meta-tbl.
5732         * doc/groff.texinfo: Added more info about `.if "..."..."'.
5734 2000-10-07  Werner LEMBERG  <wl@gnu.org>
5736         Adding a new escape sequence \B'...': If the string between
5737         the delimiters is a valid numeric expression, return the character
5738         `1', and `0' otherwise.  This is an analogon to \A.
5740         * src/roff/troff/input.cc (do_expr_test): Implement it.
5741         (token::next): Use it.
5742         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
5744         * tmac/tmac.trace: Made independent from escape character.
5746 2000-10-06  Werner LEMBERG  <wl@gnu.org>
5748         Adding a new request .dei: define indirect.  The first and second
5749         parameter of .dei are taken from string registers instead directly;
5750         this very special request is needed to make tmac.trace independent
5751         from the escape character (which might even be disabled).
5753         * src/roff/troff/input.cc (do_define_macro): Implement it.
5754         (define_macro_indirect): New function.
5755         (init_input_requests): Use it.
5757         Adding two requests .ecs and .ecr: Save and restore the escape
5758         character.  These two requests are needed to make tmac.trace
5759         independent from the escape character (which might even be
5760         disabled).
5762         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
5763         Implement it.
5764         (init_input_requests): Use it.
5766         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
5768 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
5770         Adding a new option -P and new environment variable GROPS_PROLOGUE
5771         to grops, selecting a different prologue file (minor modifications
5772         by WL).
5774         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
5775         src/devices/grops/ps.cc (main): Implement it.
5776         * src/devices/grops/grops.man, NEWS: Document it.
5778 2000-09-22  Werner LEMBERG  <wl@gnu.org>
5780         * INSTALL: Add info about selecting paper format.
5782 2000-09-21  Werner LEMBERG  <wl@gnu.org>
5784         * src/roff/troff/input.cc (main): Fixing compiler warning.
5785         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
5786         strings.h from the former to the latter.
5787         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
5788         stuff from the former to the latter.
5790 2000-09-11  Werner LEMBERG  <wl@gnu.org>
5792         Implementing two new requests .tm1 and .tmc: The former is similar
5793         to .tm but can output leading spaces; its syntax is similar to
5794         defining a string, i.e., a `"' can be used to mark the beginning of
5795         the string to be written to stderr: `.tm1 " test'.  The latter is
5796         similar to .tm1 but doesn't write out a final newline character.
5798         * src/roff/troff/input.cc (terminal1, terminal_continue,
5799         do_terminal): New functions.
5800         (init_input_requests): Use them.
5801         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
5803 2000-09-09  Werner LEMBERG  <wl@gnu.org>
5805         * tmac/groff_mdoc.samples.man: Small fixes.
5807 2000-09-08  Werner LEMBERG  <wl@gnu.org>
5809         * tmac/groff_mdoc.man: Fixing typo.
5811 2000-09-02  Werner LEMBERG  <wl@gnu.org>
5813         Implementing a .nop request which does nothing.
5815         * src/roff/troff/input.cc (nop_request): New function.
5816         (init_input_requests): Use it.
5817         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
5819 2000-09-01  Werner LEMBERG  <wl@gnu.org>
5821         * doc/groff.texinfo: Added some comments.
5823 2000-08-30  Werner LEMBERG  <wl@gnu.org>
5825         * src/roff/troff/TODO: Updated.
5827 2000-08-25  Werner LEMBERG  <wl@gnu.org>
5829         * doc/groff.texinfo: Fix comment how to compile the DVI file.
5831 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
5833         * font/devps/generate/Makefile (SHELL): Define explicitly to
5834         "/bin/sh", for non-Unix platforms.
5835         (extraclean): Use a more portable "" quoting instead of a
5836         backslash (which doesn't work on DOS/Windows).
5837         
5838         * font/devlj4/generate/Makefile (extraclean): Ditto.
5840         * font/devdvi/generate/Makefile (extraclean): Ditto.
5842 2000-08-25  Werner LEMBERG  <wl@gnu.org>
5844         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
5845         src/roff/troff/troff.man: Document Eli's latest changes.
5847 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
5849         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
5850         macro file names of the form NAME.tmac as well as tmac.NAME.
5852 2000-08-25  Werner LEMBERG  <wl@gnu.org>
5854         * src/include/posix.h: Remove definition of FILENAME_MAX.
5856         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
5857         `sys_fatal' and `stop' function().
5859         * test-groff: Updated.
5861 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
5863         Added the new troff command .output <arg> to suppress output (while
5864         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
5865         registers (for passing the output dimensions to the output device).
5867         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
5868         parameter.
5869         * src/roff/troff/node.h, src/roff/troff/node.cc
5870         (troff_output_file::really_print_line,
5871         ascii_output_file::really_print_line,
5872         supress_output_file::really_print_line): Use `width' parameter.
5873         (troff_output_file::really_on, troff_output_file::really_off,
5874         output_file::on, output_file::off, real_output_file::on,
5875         real_output_file::off, real_output_file::really_on,
5876         real_output_file::really_off): New functions.
5877         (real_output_file:public output_file): New variable `output_on'.
5878         (real_output_file::begin_page, real_output_file::copy_file,
5879         real_output_file::transparent_char, real_output_file::print_line):
5880         Use it.
5881         (real_output_file::print_line): Use check_output_limits.
5882         * src/roff/troff/reg.h, src/roff/troff/request.h,
5883         src/roff/troff/input.cc (assign_registers): New function to remove
5884         two `goto's.
5885         (do_ps_file): Use it.
5886         (check_output_limits, reset_output_registers, output_request,
5887         init_output_requests): New functions.
5888         (init_input_requests): Updated.
5890         Added new grohtml2 device and html2 preprocessor (coding
5891         not yet finished) which will eventually replace grohtml.
5893         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
5894         Updated.
5895         * src/include/htmlindicate.h, src/include/htmlindicate
5896         (html_begin_suppress, html_end_suppress): New functions.
5897         * src/preproc/tbl/main.cc: Use it.
5898         * src/roff/groff/groff.cc: Add support for html2 device (which will
5899         automatically invoke the html2 preprocessor).
5900         * src/roff/troff/input.cc (is_html2): New variable.
5901         * src/roff/troff/troff.h, src/roff/troff/env.h,
5902         src/roff/troff/env.cc (environment::add_html_tag): New function
5903         (uses `is_html2').
5904         (environment::do_break): Use it.
5905         * font/devhtml2/*: New files.
5906         * src/devices/grohtml2: New device.
5907         * src/preproc/html2: New preprocessor.
5908         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
5910 2000-08-23  Werner LEMBERG  <wl@gnu.org>
5912         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
5914 2000-08-22  Werner LEMBERG  <wl@gnu.org>
5916         * src/include/lib.h: Provide a fix for IRIX to not include
5917         groff-getopt.h.
5919 2000-08-18  Werner LEMBERG  <wl@gnu.org>
5921         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
5922         since some non-GNU sed programs can't handle null regexps.
5923         * configure, src/preproc/eqn/Makefile.sub,
5924         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
5926         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
5927         bug (string.h and strings.h are both needed according to latest
5928         POSIX standard).
5930         * MORE.STUFF: Added info about unroff and troffcvt.
5932 2000-08-08  Werner LEMBERG  <wl@gnu.org>
5934         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
5935         used before -ms.
5937         * tmac/tmac.man.old: Remove unused number register.
5939         * tmac.doc: Minor documentation fix.
5941 2000-08-07  Paul Eggert  <eggert@twinsun.com>
5943         * src/roff/groff/pipeline.c (is_system_shell):
5944         Fix typo: "monocased_shell" no longer exists.
5946 2000-08-07  Paul Eggert  <eggert@twinsun.com>
5948         Remove FILENAME_MAX limits.
5950         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
5951         that the argument length is less than FILENAME_MAX.
5952         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
5953         Use struct hack to allocate and free file name.
5954         (struct xtmpfile_list): fname is now part of the structure,
5955         not a pointer to another string.
5957 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
5959         * src/include/posix.h: Add a default value for FILENAME_MAX.
5961 2000-08-06  Paul Eggert  <eggert@twinsun.com>
5963         Add support for new BSD-style man pages (with ".Dd" instead of
5964         ".TH"), so that "groff -man" understands both styles, even
5965         when running "groff -man" on a host whose system man page
5966         macros don't support ".Dd".
5968         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
5969         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
5970         in case the system man macros don't define Dd or TH.
5972         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
5973         * tmac/tmac.an: New one-line file.
5974         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
5976 2000-08-06  Werner LEMBERG  <wl@gnu.org>
5978         * src/roff/troff/troff.man: Fixing typos.
5980 Version 1.16.1 released
5981 =======================
5983 2000-07-31  Werner LEMBERG  <wl@gnu.org>
5985         Preparing release 1.16.1.
5987         * REVISION: Revision number set to 1.
5988         * MORE.STUFF: Added info about port to DOS.
5989         * NEWS, win32-diffs: Updated.
5991         * src/include/nonposix.h: Remove first line -- this file is used
5992         in C also.
5994         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
5995         link to it.
5997 2000-07-30  Werner LEMBERG  <wl@gnu.org>
5999         * doc/texinfo.tex: Update to latest version.
6001 2000-06-28  Paul Eggert  <eggert@twinsun.com>
6003         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
6004         commands that fail.  Don't assume that "export a=b" is valid shell
6005         syntax.  This is needed for Solaris 2.5.1.
6007         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
6008         comment about missing Solaris headers.
6010         * PROBLEMS: Add section about problems with Sun Make and VPATH.
6012 2000-06-25  Werner LEMBERG  <wl@gnu.org>
6014         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
6015         SET_BINARY().
6017         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
6019         * win32-diffs: Updated.
6020         * README.WIN32: Added CRs to make all Windows editors happy.
6022         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
6023         src/roff/groff/pipeline.c).
6025 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
6027         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
6028         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
6030 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
6032         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
6033         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
6034         are binary files.
6035         (main): Support non-Posix systems with several different styles of
6036         slash characters in file names.
6038         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
6039         (main) [SET_BINARY]: Switch stdin into binary mode.
6041         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
6042         (main): Support file names with several possible slash-type
6043         characters, as given by DIR_SEPS[] in nonposix.h.
6044         (main) [__MSDOS__]: If renaming the temporary index file fails
6045         because it has more than one dot in its trunk, replace the dot
6046         with an underscore and try again.
6047         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
6048         Newline.
6049         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
6051         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
6052         (File::File): Open the input file in binary mode.  Strip CR
6053         characters from each CR-LF pair.
6054         (xbasename): Support file names with several possible slash-type
6055         characters, as given by DIR_SEPS[] in nonposix.h.
6057         * src/include/Makefile.sub (HDRS): Add nonposix.h.
6059         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
6060         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
6061         [!_POSIX_VERSION]: Define for traditional Unix systems.
6062         (real_output_file::real_output_file): Remove the MSVC-specific
6063         call to popen, use instead POPEN_WT, appropriately defined on
6064         nonposix.h.  #include nonposix.h.
6065         (real_output_file::~real_output_file): Remove the MSVC-specific
6066         call to pclose, a suitable macro is now defined on nonposix.h.
6067         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
6068         and WEXITSTATUS instead of assuming traditional Unix
6069         interpretation of the status returned by pclose.
6071         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
6072         call to popen, use POPEN_RT instead (appropriately defined on
6073         nonposix.h).  #include nonposix.h.
6074         (ps_bbox_request): Open the PostScript file in binary mode.
6075         Close the file after processing it.
6076         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
6077         nonposix.h.
6079         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
6080         A version of run_pipeline that doesn't use `fork'.
6081         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
6082         (system_shell_name, system_shell_dash_c)
6083         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
6084         the ugliness of testing DOS/Windows file names for equality, and
6085         support both stock shells and ports of Unix shells.
6087         * src/roff/groff/groff.cc: #include nonposix.h.
6088         (BSHELL): Definition moved to nonposix.h.
6089         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
6090         instead of a literal "-c".
6091         (xbasename): Support file names with several possible slash-type
6092         characters, as given by DIR_SEPS[] in nonposix.h.
6093         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
6094         of literal strings.
6096         * src/preproc/soelim/soelim.cc: #include nonposix.h.
6097         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
6099         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
6100         pic_tab.h.
6102         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
6104         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
6105         eqn_tab.h.
6107         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
6109         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
6110         P_tmpdir is defined, use it instead of the literal "/tmp".
6111         (remove_tmp_files, add_tmp_file): New functions.
6112         (xtmpfile): Record temporary files and register an atexit function
6113         to delete them explicitly, instead of relying on the OS to do
6114         that, which doesn't work on non-Unix systems.
6116         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
6117         (search_path::search_path): Use PATH_SEP instead of a literal
6118         colon.
6119         (search_path::command_line_dir): Ditto.
6120         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
6121         to support non-Posix systems.
6123         * src/libs/libbib/search.cc: #include nonposix.h.
6124         (search_list::add_file): Open the file in binary mode.
6126         * src/libs/libbib/linear.cc: #include nonposix.h.
6127         (file_buffer::load): Remove \r characters preceding \n from the
6128         loaded buffer.
6130         * src/libs/libbib/index.cc: #include nonposix.h.
6131         (make_index_search_item): Open index_filename in O_BINARY mode.
6132         (index_search_item_iterator::get_tag): Ditto.  Remove \r
6133         characters before \n characters.
6134         (index_search_item::check_files): Open files in binary mode.
6135         (index_search_item::munge_filename): Support DOS-style file names
6136         with backslashes and drive letters, use IS_ABSOLUTE.
6138         * src/devices/grops/ps.cc: #include nonposix.h.
6139         (main) [SET_BINARY]: Switch stdout to binary mode.
6141         * src/devices/grolj4/lj4.cc: #include nonposix.h.
6142         (main) [SET_BINARY]: Switch stdout to binary mode.
6144         * src/devices/grolbp/lbp.cc: #include nonposix.h
6145         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
6147         * src/devices/grodvi/dvi.cc: #include nonposix.h.
6148         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
6149         nonposix.h).
6150         (main) [SET_BINARY]: Switch stdout to binary mode.
6151         [_MSC_VER]: Remove an explicit call to _setmode.
6153         * src/include/nonposix.h: New file.
6155         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
6156         operation when building with DJGPP.
6157         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
6158         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
6159         ENVSETUP.
6161         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
6162         MS-DOS.
6163         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
6164         etc. can include a semi-colon on DOS/Windows.
6165         (depend.temp): Use depend1.temp instead of depend.temp1, to
6166         prevent files from overerwiting each other on 8+3 filesystems.
6168         * gendef.sh (t): Change definition to work with DOS/Windows.
6170         doc/groff.texinfo: Apart of some typo corrections, I also changed
6171         some index entris, to make them more non-ambiguous, and also put
6172         @ignore around some parts that are not yet written, to allow the
6173         Info output be readable.
6175 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
6177         Replaced specific checks for function declarations with a generic
6178         routine taken from GNU bfd.
6180         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
6181         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
6182         * configure.in: Use it.
6183         * src/devices/grolbp/lbp.cc, src/include/lib.h,
6184         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
6185         src/roff/groff/groff.cc: Use it.
6186         * Makefile.in, configure: Updated.
6188 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
6190         * src/devides/grolbp/lbp.h: Removed unused variables.
6192 2000-05-31  Keith Thompson  <kst@sdsc.edu>
6194         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
6195         strncasecmp().
6197 2000-05-31  Werner LEMBERG  <wl@gnu.org>
6199         * aclocal.m4 (GROFF_SRAND): New function to test the return value
6200         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
6201         * configure.in: Use it.
6202         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
6203         * configure, Makefile.in: Updated.
6205         * configure.in: Add test for strncasecmp().
6206         * src/include/lib.h: Use it.
6208 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
6210         * src/preproc/grn/Makefile.sub: Add MLIB.
6212 2000-05-29  Nix  <nix@esperi.demon.co.uk>
6214         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
6216 2000-05-29  Werner LEMBERG  <wl@gnu.org>
6218         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
6220         * PROBLEMS: Small update.
6222         * src/devices/grolbp/lbp.cc: Various small fixes.
6224 2000-05-28  Keith Thompson  <kst@sdsc.edu>
6226         * src/roff/nroff/nroff.sh: Fix main loop syntax.
6228         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
6230 2000-05-25  Werner LEMBERG  <wl@gnu.org>
6232         * man/roff.man: Removed unused macro.
6234 2000-05-24  Werner LEMBERG  <wl@gnu.org>
6236         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
6237         This is needed e.g. if you do
6238         `make distclean; ./configure; make dist'.
6240 Version 1.16 released
6241 =====================
6243 2000-05-23  Werner LEMBERG  <wl@gnu.org>
6245         Adding font CWI (constant width italic) to devdvi.
6247         * font/devdvi/CWI: New file.
6248         * font/devdvi/generate/Makefile: Add generating rule.
6249         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
6250         tmac/tmac.dvi: Use it.
6251         * NEWS: Announce it.
6253         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
6254         * font/devlj4/generate/Makefile: Cosmetic changes only.
6256         * man/groff.man: Removed most of the redundant description of
6257         special characters (which is in groff_char.man).  Added font
6258         translation CB->CR for devdvi.  Other minor fixes.
6260         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
6261         (registered) symbols.
6263 2000-05-22  Werner LEMBERG  <wl@gnu.org>
6265         * doc/Makefile: Added rule for creating info files.
6267         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
6268         AMS font metrics.
6269         * font/devdvi/generate/Makefile: Fixed dependencies.
6271         * font/devps/*: Regenerated.  Heavy changes for Bookman and
6272         NewCentury Schoolbook!
6273         * font/devps/generate/afmname: Will now run with GNU awk.
6274         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
6275         * font/devps/generate/Makefile: Cosmetic changes only.
6277 2000-05-21  Werner LEMBERG  <wl@gnu.org>
6279         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
6280         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
6281         `.SS' now produces a heading with a smaller size than `.SH'. 
6282         Completely formatted.
6283         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
6285         * man/groff.man: Improved table appearance.  Use of `eo' request
6286         to reduce number of doubled backslashes in macro definitions.
6287         Replacing `\e' with `\(rs'.  Other minor fixes.
6289         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
6290         to have correct line number.
6292         * INSTALL: Small improvement.
6294 2000-05-20  Bernd Warken  <bwarken@mayn.de>
6296         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
6297         WL).
6299 2000-05-19  Bernd Warken  <bwarken@mayn.de>
6301         * man/groff.man: Complete update (with a lot of corrections by WL).
6303 2000-05-18  Werner LEMBERG  <wl@gnu.org>
6305         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
6307         * font/*/*: Implement it.
6308         * man/groff_char.man, NEWS: Document it.
6310         * src/include/unix.h: Removed.  It isn't used.
6312         * doc/groff.texinfo: Slight improvements.
6314 2000-05-17  Werner LEMBERG  <wl@gnu.org>
6316         * README, win32-diffs: Small fixes and improvements.
6318 2000-05-16  Werner LEMBERG  <wl@gnu.org>
6320         * FDL: New file (the Free Documentation License version 1.1).
6322         * doc/groff.texinfo: Added many start-up values for gtroff.
6323         Some structural improvements of the source code.
6325 2000-05-15  Werner LEMBERG  <wl@gnu.org>
6327         * src/roff/troff/input.cc: Added small comment about troffrc-end.
6328         * src/roff/troff/troff.man: Added info about troffrc-end.
6330 2000-05-14  Werner LEMBERG  <wl@gnu.org>
6332         * Makefile.in (EXTRADIRS): Fix typos.
6333         (dist): Handle deletion of old .tar.gz file correctly.
6334         (DISTDIRS): Include all tty output devices.
6336         * doc/groff.texinfo: Adding more cross references; countless other
6337         fixes.
6339 2000-05-13  Werner LEMBERG  <wl@gnu.org>
6341         * MORE.STUFF: Added Robert Marks's utilities.
6343 2000-05-12  Werner LEMBERG  <wl@gnu.org>
6345         Added win32 port contributed by Blake McBride
6346         <blake@florida-software.com>.
6348         * README.WIN32, win32-diffs: New files.
6349         * NEWS: Updated.
6351         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
6352         (tmove, tmove2): Added parentheses to avoid compiler warnings.
6353         (change): Removed unused variables.
6355         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
6356         (savebounds): Changed return value from `int' to `void'.
6357         * src/preproc/grn/hdb.cc: Ditto.
6359         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
6360         final backslash in comment to avoid compiler warning.
6362         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
6364         * doc/groff.texinfo: More fixes.
6366 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
6368         * tmac/tmac.doc: Documentation fix.
6370 2000-05-11  Werner LEMBERG  <wl@gnu.org>
6372         * doc/groff.texinfo: Reading the source code shows up a lot of
6373         omissions and incorrect data...  More conversion to @Deffn macros.
6375 2000-05-10  Werner LEMBERG  <wl@gnu.org>
6377         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
6378         dependency.
6380         * src/roff/troff/request.h: Removing unused `no_break_flag'.
6382 2000-05-09  Werner LEMBERG  <wl@gnu.org>
6384         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
6385         improvements.
6387         * doc/groff.texinfo: Extended history section.  More conversion to
6388         @Deffn macros.  More .tr documentation.
6390 2000-05-07  Werner LEMBERG  <wl@gnu.org>
6392         * doc/groff.texinfo: Completed tab section.  Added info about
6393         fields.
6395 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
6397         * PROBLEMS: Describe configure script fix for OS/390 Unix.
6399 2000-05-05  Werner LEMBERG  <wl@gnu.org>
6401         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
6402         LaTeX 2e).
6403         * NEWS: Document it.
6405         * man/troff.man: Minor optical improvements.
6407 2000-05-03  Werner LEMBERG  <wl@gnu.org>
6409         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
6411         * font/*/*: Implement it.
6412         * man/groff_char.man, NEWS: Document it.
6414 2000-05-02  Werner LEMBERG  <wl@gnu.org>
6416         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
6417         expansion.
6418         * NEWS: Document the three new man pages.
6420         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
6421         * configure: Updated.
6423         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
6425 2000-05-01  Werner LEMBERG  <wl@gnu.org>
6427         Added grap support to grog.
6429         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
6430         * src/roff/grog/grog.man: Document it.
6432         * doc/groff.texinfo, NEWS: Add info about grap support.
6434         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
6435         (with slight fixes by me).
6437         * tmac/groff_tmac.man: New file documenting tmac mechanism.
6438         * tmac/Makefile.sub: Add groff_tmac.man.
6439         * man/roff.man: New file giving overview of roff system.
6440         * man/troff.man: A short reference of troff.
6441         * man/Makefile.sub: Add roff.man and troff.man.
6443 2000-04-30  Werner LEMBERG  <wl@gnu.org>
6445         Added grap support to groff.
6447         * src/roff/groff/groff.cc: Implement it.
6448         * src/roff/groff/groff.man: Document it.
6450         * src/devices/grotty/grotty.man: Add cp1047 device.
6451         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
6452         Ditto.
6453         * src/roff/groff/groff.man: Ditto.
6454         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
6455         * doc/groff.texinfo: Ditto.
6457         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
6458         for cp1047.
6460 2000-04-29  Werner LEMBERG  <wl@gnu.org>
6462         * man/groff_char.man: Add `pc' glyph.
6463         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
6464         * tmac/tmac.tty: Add `pc' glyph.
6465         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
6466         we use cp1047 output device.
6468         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
6469         there are still hardcoded latin1->unicode values in utf8's font
6470         definition files.
6471         * configure: Updated.
6472         * NEWS: Minor clarification.  Updated.
6474         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
6475         Unix.
6477 2000-04-28  Werner LEMBERG  <wl@gnu.org>
6479         Adding EBCDIC code page 1047.
6481         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
6482         font/devcp1047/DESC.proto: New files.
6484         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
6485         either ascii/latin1 or cp1047.
6486         * Makefile.in: Use it.
6487         * configure: Updated.
6489         Replacing and/or adding `md' (mathdot) glyph with `pc'
6490         (periodcentered) in all text fonts.
6492         * font/*/*: Change it.
6494 2000-04-27  Werner LEMBERG  <wl@gnu.org>
6496         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
6498         * configure.in: Add check for strings.h.
6499         * src/include/driver.h: Use HAVE_STRINGS_H.
6500         * src/devices/grolbp/lpb.cc: Remove string.h.
6502         * src/include/groff-getopt.h: New file.  It will be used instead of
6503         getopt.h (to be included in lib.h) to avoid endless problems with
6504         picky C++ compilers.
6505         * src/include/lib.h: Use groff-getopt.h.
6506         * src/include/Makefile.sub: Updated.
6508         * configure: Updated.
6509         * Makefile.in: Updated.
6511         * NEWS: Mention EBCDIC support.
6513 2000-04-26  Werner LEMBERG  <wl@gnu.org>
6515         * TODO: Some additions.
6517 2000-04-25  Werner LEMBERG  <wl@gnu.org>
6519         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
6520         of mso request.
6522 2000-04-23  Werner LEMBERG  <wl@gnu.org>
6524         * src/roff/troff/troff.man: Minor fixes.
6526 2000-04-22  Werner LEMBERG  <wl@gnu.org>
6528         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
6529         `.T' string register and the incompatible definition of the `.T'
6530         number register (compared to Unix troff).
6532         * man/groff_char.man: Add some missing characters.
6533         * font/devutf8/NOTES: Update.
6535 2000-04-21  Werner LEMBERG  <wl@gnu.org>
6537         * src/include/htmlindicate.h, src/include/lib.h,
6538         src/include/posix.h: Fix copyright.
6540         * src/include/Makefile.sub: Update.
6542 2000-04-20  Werner LEMBERG  <wl@gnu.org>
6544         * src/roff/troff/input.cc (input_char_description): Removing
6545         superfluous space char.
6547         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
6549         * doc/groff.texinfo: Document EBCDIC.
6551 2000-04-19  Werner LEMBERG  <wl@gnu.org>
6553         Introducing `shc' as the glyph name for the soft hyphen character.
6555         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
6556         font/devlatin1/R.proto: Use it.
6558         * NEWS: Updated.
6560 2000-04-18  Werner LEMBERG  <wl@gnu.org>
6562         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
6563         dependency on ASCII order.
6565 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
6567         * src/libs/libgroff/illegal.c: Added EBCDIC table.
6568         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
6570         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
6571         to increase portability.
6573 2000-04-15  Werner LEMBERG  <wl@gnu.org>
6575         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
6576         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
6577         the generic `\n' if under OS/390 Unix.
6579         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
6581         * configure: Regenerated.
6583 2000-04-14  Werner LEMBERG  <wl@gnu.org>
6585         * doc/groff.texinfo: More conversions to @Deffn.
6587 2000-04-12  Werner LEMBERG  <wl@gnu.org>
6589         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
6590         with `:'.
6592         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
6594 2000-04-10  Werner LEMBERG  <wl@gnu.org>
6596         * doc/groff.texinfo: More conversions to @Deffn.
6598 2000-04-08  Werner LEMBERG  <wl@gnu.org>
6600         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
6601         Updated to latest version (glibc 2.1.3).
6603 2000-04-07  Werner LEMBERG  <wl@gnu.org>
6605         * doc/Makefile (clean): Include more index files.
6606         Add rule texinfo->dvi.
6608 2000-04-05  Werner LEMBERG  <wl@gnu.org>
6610         * doc/groff.texinfo: Added new index `op' for operators.  More
6611         info on end of sentence characters.  More use of @Deffn.
6613 2000-03-30  Werner LEMBERG  <wl@gnu.org>
6615         * */*.man: Adding a note that a whitespace can be inserted between
6616         a command line option and its parameter -- we are using GNU getopt.
6618         * src/roff/groff/groff.man: Add example of `-m mandoc'.
6620 2000-03-28  Werner LEMBERG  <wl@gnu.org>
6622         Correct anachronism of calling the man macro file with `-man'
6623         instead of `-m man' etc.
6625         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
6626         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
6627         load tmac.<package>.
6629         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
6631         * NEWS: Updated.
6633         * doc/groff.texinfo: Updated.
6635         * tmac/groff_man.man: Copyright added.
6637 2000-03-27  Werner LEMBERG  <wl@gnu.org>
6639         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
6640         typeset the request resp. escape name with a tt font -- due to a
6641         bug in texinfo.tex it is necessary to use the `-e' switch with
6642         texi2dvi.
6644         Improving info about usage of groff units.
6646         Other minor fixes.
6648 2000-03-20  Werner LEMBERG  <wl@gnu.org>
6650         * doc/groff.texinfo: Added section about man macro package
6651         (I've basically taken groff_man.man).  Introducing new indices `ma'
6652         for macros/strings and `gl' for glyph names.  Other minor fixes.
6654         * tmac/groff_man.man: Fixed some typos.
6656 2000-03-19  Werner LEMBERG  <wl@gnu.org>
6658         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
6659         Other minor fixes.
6661         * doc/texinfo.tex: New file.
6663 2000-03-18  Werner LEMBERG  <wl@gnu.org>
6665         * doc/groff.texinfo: Improved section on number registers.  Other
6666         minor updates.
6668 2000-03-16  Werner LEMBERG  <wl@gnu.org>
6670         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
6671         synopsis.
6673         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
6674         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
6675         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
6676         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
6678         * src/preproc/grn/grn.man: Better synopsis; added copyright.
6680         * src/roff/grog/grog.man: Updated copyright date.
6682 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
6684         * configure.in: Added test for strdup.
6686         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
6687         is available.
6689         Replaced dynamic allocation of arrays `[...]' with `new' operator.
6691         Other minor fixes.
6693 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
6695         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
6697 2000-03-11  Werner LEMBERG  <wl@gnu.org>
6699         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
6700         compilers silent.
6701         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
6702         * src/include/lib.h: Remove some spaces.
6704 2000-03-10  Werner LEMBERG  <wl@gnu.org>
6706         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
6707         initializers from arguments (some compilers don't like this).
6709 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
6711         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
6712         used by pic and eqn to tell grohtml where the graphic regions start
6713         and end.
6714         * src/libs/libgroff/Makefile.sub: Use it.
6715         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
6716         graphic_start() and graphic_end() from htmlindicate.cc.
6718 2000-03-09  Werner LEMBERG  <wl@gnu.org>
6720         * tmac/tmac.safer: Will now work correctly in compatibility mode.
6721         * tmac/groff_man.man: More fixes.
6723 2000-03-08  Werner LEMBERG  <wl@gnu.org>
6725         * doc/Makefile: Added texput.log to the `clean' target.
6726         * doc/groff.texinfo: Added info about delimiters for escapes.
6728 2000-03-08  Bernd Warken  <bwarken@mayn.de>
6730         * src/preproc/pic/pic.man: Add info on conversion of pic images to
6731         other graphic formats.
6733 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
6735         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
6736         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
6737         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
6738         files.
6740 2000-03-07  Werner LEMBERG  <wl@gnu.org>
6742         * doc/groff.texinfo: Spelling fixes.
6744 2000-03-06  Werner LEMBERG  <wl@gnu.org>
6746         * tmac/groff_man.man: Completely revised to cover everything in
6747         tmac.an.
6749         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
6750         Other minor fixings.
6751         * src/roff/troff/env.cc (environment_copy): Improve error message and
6752         fix itoa->i_to_a.
6753         * src/roff/troff/TODO: Updated.
6755         * doc/Makefile: Bug fixes -- this is still provisional, though...
6757         * tmac/eqnrc: Small fixes.
6759 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
6761         Adding a request `evc' to copy environments.
6763         * src/roff/troff/env.cc (environment::copy, environment_copy):
6764         Implement it.
6765         * src/roff/troff/env.h: Add prototype.
6767 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
6769         Adding strsep() -- Solaris 8 doesn't have it.
6771         * configure.in: Test it.
6772         * src/devices/grolbp/lbp.cc: Add code.
6774 2000-03-05  Werner LEMBERG  <wl@gnu.org>
6776         * src/roff/troff/div.cc (macro_diversion::output,
6777         top_level_diversion::output): Fixing an incompatibility with
6778         original troff: \x'0' updates the .a register also.  Thanks to
6779         <Andries.Brouwer@cwi.nl> for pointing this out.
6780         * doc/groff.texinfo: Document it.
6782         * Makefile.in: Create Makefile.dep if necessary before calling the
6783         submake process to avoid warning about nonexistent file.
6785         * NEWS, PROJECTS: Updated.
6787 2000-03-04  Werner LEMBERG  <wl@gnu.org>
6789         * tmac/troffrc: Add tmac.lbp.
6791 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
6793         * tmac/tmac.lbp: New file.
6794         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
6795         command.
6797 2000-03-03  Werner LEMBERG  <wl@gnu.org>
6799         * Makefile.in: Fixing $(subdir).
6801         * README, NEWS: Small fixes.
6803         * test-groff: Adding path to grolbp.
6805         * configure.in: The (new) file src/xditview/Imakefile.in will be
6806         also configured -- it is now possible to build gxditview in a
6807         directory different from $srcdir.
6809 2000-03-02  Blake McBride  <blake@florida-software.com>
6811         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
6813         * MORE.STUFF: Added website of bell labs and info about plot2dev.
6815 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
6817         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
6818         files.
6820 2000-02-29  Werner LEMBERG  <wl@gnu.org>
6822         Adding GNU getopt to the groff distribution.
6824         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
6825         New files.
6826         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
6827         * aclocal.a4: Remove GROFF_GETOPT function.
6828         * configure.in, Makefile.in, PROBLEMS: Update.
6829         * src/include/lib.h: Replace getopt tests with getopt.h.
6830         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
6832         * doc/groff.texinfo: Further checking/updating.  Adding more index
6833         entries.
6835         * man/groff_out.man: Fix nroff mode activation (for emacs).
6836         * man/groff_font.man: Add missing ligature.
6838 2000-02-28  Werner LEMBERG  <wl@gnu.org>
6840         * doc/groff.texinfo: Further checking/updating.  Adding more index
6841         entries.
6843         * src/devices/grolbp/grolbp.man: Added a comment line at the
6844         beginning of the file (similar to shell scripts) which indicates
6845         that `tbl' should be used as a preprocessor.
6847 2000-02-27  Blake McBride  <blake@florida-software.com>
6849         Adapting groff to MS Visual C++ 6.0 compiler (tested with
6850         Windows NT 4.0).  Uses _MSC_VER define where necessary.
6852         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
6853         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
6854         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
6855         src/include/lib.h, src/libs/libgroff/errarg.cc,
6856         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
6857         src/preproc/refer/label.y, src/preproc/refer/label.cc,
6858         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
6859         src/roff/troff/div.cc, src/roff/troff/env.cc,
6860         src/roff/troff/input.cc, src/roff/troff/node.cc,
6861         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
6862         if_to_a() to avoid name clashes.
6863         * src/include/posix.h: Don't use unistd.h.
6864         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
6865         clause for integrating non-Unix xtmpfile() code.
6866         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
6867         structure; use "rt" for popen() in pipe_source(); add getpid()
6868         dummy function.
6869         * src/roff/troff/node.cc: Use special versions of popen() in
6870         real_output_file() and pclose() in ~real_output_file().
6872 2000-02-27  Werner LEMBERG  <wl@gnu.org>
6874         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
6875         LBP-8 series laser printers).  This code has been contributed by
6876         Francisco Andrés Verdú <pandres@dragonet.es>.
6878         * src/devices/grolbp/*: The grolbp output device.
6879         * font/devlpb/*: The font description files.
6880         * Makefile.in: Add grolpb and devlbp subdirectories.
6882         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
6883         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
6884         typographic fixes.
6886         * doc/groff.texinfo: Further checking/updating.  Adding more index
6887         entries.
6889         * NEWS: Updated.
6891         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
6893         * man/groff_font.man: Adding info about obsolete DESC keywords.
6894         * src/devices/grolj4/grolj4.man: Documenting additional DESC
6895         keywords.
6897 2000-02-26  Werner LEMBERG  <wl@gnu.org>
6899         * src/preproc/grn/grn.man: Added info about the gremlin file format
6900         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
6902 2000-02-25  Werner LEMBERG  <wl@gnu.org>
6904         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
6905         friends to be non-integer.
6907         * src/preproc/grn/grn.man: Document it.
6909         * doc/groff.texinfo: Further checking/updating.  Adding more index
6910         entries.
6912 2000-02-24  Werner LEMBERG  <wl@gnu.org>
6914         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
6915         line thicknesses to be integer multiples of this value.
6917         * src/preproc/grn/grn.man: Commenting out the -s option -- the
6918         corresponding code doesn't work (yet).
6920         * doc/groff.texinfo: Further checking/updating.  Adding more index
6921         entries.
6923 2000-02-23  Werner LEMBERG  <wl@gnu.org>
6925         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
6926         specify line thickness instead of base units.  The new default
6927         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
6928         thick lines respectively.
6930         Removed unused variable `prevval'.
6932         * src/preproc/grn/grn.man: Updated.
6934 2000-02-22  Werner LEMBERG  <wl@gnu.org>
6936         * src/preproc/grn/main.cc: Slight formatting.
6938         * src/roff/groff/groff.man: Formatting fix.
6939         * src/preproc/grn/grn.man: Ditto.
6941         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
6943         * doc/groff.texinfo: Further checking/updating.
6945 2000-02-21  Werner LEMBERG  <wl@gnu.org>
6947         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
6949         * test-groff: Added grn subdir to path.
6951         * doc/groff.texinfo: Some restructing and other small improvements.
6953         * src/roff/groff/groff.cc (help): Fixed info string.
6955 2000-02-20  Werner LEMBERG  <wl@gnu.org>
6957         * doc/meref.me: Fix description of .GS request.
6959         * src/roff/troff/troff.man: Fixing typo.
6961         Adding the `grn' preprocessor for gremlin graphic files.
6963         * src/preproc/grn/*: This is the Berkeley distribution written by
6964         David Slattengren and Barry Roitblat, adapted to groff by Daniel
6965         Senderowicz and Werner Lemberg.
6967         * doc/grnexampl.{me,g}: A sample for grn.
6969         * Makefile.in: Added subdirectory entry for grn.
6971         * src/roff/groff/groff.cc: Added support for grn.  It can be now
6972         called with the switch `-g'.
6974         * src/roff/groff/groff.man: Updated.
6976         * src/roff/grog/grog.{man,pl,sh}: Updated.
6978         * NEWS: Updated.
6980 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
6982         * src/include/lib.h: Added xtmptemplate and made xtmpfile
6983         parametrically polymorphic.
6985         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
6986         and the alterations to xtmpfile.
6987         xtmpfile can be requested to return the filename created
6988         and asked not to unlink the temp file.  The default behaviour
6989         if parameters are absent is exactly the same as before.
6991 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
6993         A new request `length' is available which returns the length of a
6994         string in a number register:
6996         * src/roff/troff/input.cc (length_macro): Implement it.
6997         * src/roff/troff/input.cc (init_input_requests): Register it.
6999 2000-02-11  Werner LEMBERG  <wl@gnu.org>
7001         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
7002         of the `substring' request.
7004         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
7005         request.
7007         * src/roff/troff/TODO, NEWS: Updated.
7009 2000-02-09  Werner LEMBERG  <wl@gnu.org>
7011         * src/roff/groff/groff.man: Added an example.
7013 2000-02-06  Werner LEMBERG  <wl@gnu.org>
7015         I've considerably modified the directory structure of the
7016         distribution to get a more vertical layout.  For example, the number
7017         of top level directories has been reduced from 42 to 6.
7019         As a consequence, many changes, especially to the makefiles, were
7020         necessary:
7022         * The makefile variables `top_builddir' and `top_srcdir' have been
7023         introduced.  Virtually all relative paths have been replaced with
7024         absolute ones using these two variables.
7026         * Dependencies (in the files `Makefile.dep') are no longer part of
7027         the distribution.  Instead, they are created during a `make install'
7028         in the build directory.
7030         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
7031         make `top_srcdir' and `top_builddir' absolute.
7033         Some other changes:
7035         * Man pages now depend on the files `VERSION' and `REVISION'.
7037         * The added shell script `mkinstalldirs' will replace `mkdir' in
7038         almost all cases.
7040         * VERSION: Version number increased to 1.16.
7042 2000-02-04  Werner LEMBERG  <wl@gnu.org>
7044         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
7046         * Makefile.in: Removed $(tmac_m) since it is no longer needed
7047         (after an update of the mm stuff).
7049         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
7051 2000-02-03  Werner LEMBERG  <wl@gnu.org>
7053         The .psbb request will now also accept Mac PS images (i.e. using LF
7054         as the EOL character).
7056         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
7057         (with slight modifications).
7058         * troff/input.cc (do_ps_file): Use it.
7060         * test-groff: Add grohtml and grolj4 output devices to PATH.
7062 2000-01-30  Werner LEMBERG  <wl@gnu.org>
7064         * NEWS, MORE.STUFF: Updated.
7066 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
7068         Add the `srand' command to pic.
7070         * pic/lex.cc, pic/pic.y: Implement it.
7071         * pic/pic.man: Document it.
7072         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
7074 2000-01-30  Werner LEMBERG  <wl@gnu.org>
7076         Add a new request `.psbb'.  This does exactly what the external
7077         program psbb did.  It scans a PostScript image file for a
7078         %%BoundingBox comment and extracts the bounding box values (in
7079         PostScript units) which are then stored in the four new (read-only)
7080         number registers `llx', `lly', `urx', and `ury'.
7082         This will allow the usage of the .PSPIC macro without worrying
7083         about unsafe behaviour of groff, i.e., it will work without the
7084         `-U' switch of groff.
7086         * troff/input.cc: Implement it.
7087         * tmac/tmac.pspic: Use it.
7088         * troff/troff.man, grops/grops.man, NEWS: Document it.
7089         * psbb/*, Makefile.in: Remove it since it is no longer needed.
7091         This is bloody C code simply adapted from psbb.c!  Any improvements
7092         welcome.
7094 2000-01-29  Werner LEMBERG  <wl@gnu.org>
7096         * man/groff_font.man: Minor clarifications.
7098         * NEWS: Updated.
7100 2000-01-28  Werner LEMBERG  <wl@gnu.org>
7102         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
7104 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
7106         * man/groff_font.man: Brought up to date regarding tcommand
7107         extensions.
7108         * libgroff/font.cc: Handle everything after `--' as a comment
7109         in the font files.
7110         * devps/*: Added comment delimiter inside devps font files.
7112 2000-01-28  Werner LEMBERG  <wl@gnu.org>
7114         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
7115         \fC...\fP (which now works as expected).
7117         * troff/troff.man: Fix typo.
7119 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
7121         Completed the pass_filenames implementation in troff.
7123         * libdriver/input.cc: Will read the new `F' tcommand.
7124         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
7125         * troff/input.cc: Use it.
7127 2000-01-26  Werner LEMBERG  <wl@gnu.org>
7129         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
7130         font will now be updated even if an invalid font is selected.
7132 2000-01-24  Werner LEMBERG  <wl@gnu.org>
7134         * doc/homepage.ms: Updated for new tmac.arkup.
7136         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
7138         * tmac/tmac.arkup: Cleanup.
7140         Added `\&' to .HTML macro to `leave vertical mode', so to say.
7142         Removed obsolete .LINK macro completely.
7144         The macros .URL, .FTP, and .MAILTO now accept a third argument which
7145         will be immediately appended to the second argument (to be used with
7146         punctuation, for example).
7148         Disabled .CDFTP macro temporarily for security reasons.
7150         * tmac/groff_markup.man: Complete revision for latest changes in
7151         tmac.arkup -- note that it does not yet format correctly with
7152         grohtml :-(
7154 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
7156         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
7157         * devutf8/R.proto: Add mappings for wp, lh, rh.
7158         * devutf8/NOTES: Updated.
7160 2000-01-23  Werner LEMBERG  <wl@gnu.org>
7162         * doc/groff.texinfo: Updated version/copyright info.
7164 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
7166         Added support for two new directives in device descriptions:
7167         `pass_filenames' (to pass the input file name to the output device)
7168         and `use_charnames_in_special' (to support e.g. accented characters
7169         in the `X' request).
7171         * include/font.h, troff/charinfo.h: Declare it.
7173         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
7175         * devhtml/DESC: Use it.
7177         * troff/input.cc: New function encoded_char.
7179         * troff/token.h: Add test for `specialness'.
7181 2000-01-21  Werner LEMBERG  <wl@gnu.org>
7183         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
7184         mistake from the list of files to be installed.
7186 2000-01-18  Werner LEMBERG  <wl@gnu.org>
7188         * README: Added info how to apply patches.
7190 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
7192         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
7194 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
7196         * troff/input.cc: Add support for troffrc-end.
7198         * tbl/main.cc: Altered to issue table-start and table-end special
7199         characters if using the html device.
7201         * devhtml/*: Modified font files to incorporate html encoding of
7202         characters.
7204         * tmac/groff_markup.man: New file documenting tmac.arkup.
7206         * tmac/troffrc-end: New file.  This is invoked after all user
7207         specified macros.  Currently used by the html device to include
7208         tmac.html.  Thus no need for users to specify -mhtml anymore.
7210         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
7211         (MAN7): Add groff_markup.man.
7213         * tmac/tmac.an, tmac/tmac.html: Small html updates.
7215         * tmac/troffrc: tmac.arkup will now be called for the html device.
7217         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
7218         extra device specific information about fonts.
7220         * doc/homepage.ms: New file.  It is an example how an HTML home page
7221         could look like with grohtml.
7223         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
7225 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
7227         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
7228         of Im, Re.
7230         * devutf8/NOTES: Updated.
7232 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
7234         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
7235         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
7236         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
7237         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
7238         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
7239         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
7240         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
7241         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
7242         warnings.
7244         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
7246 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
7248         grolj4: Paper size will be searched case-insensitively.
7250         * include/lib.h: Add check for strcasecmp().
7251         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
7252         * configure.in: Check for strcasecmp().
7254 2000-01-11  Werner LEMBERG  <wl@gnu.org>
7256         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
7257         `REVISION'.
7259 2000-01-10  Werner LEMBERG  <wl@gnu.org>
7261         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
7262         revision scheme.
7264         Add a new read-only register, `.Y', which contains the groff
7265         revision.
7267         * troff/input.cc (init_input_requests): Define it.
7268         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
7269         * doc/groff.texinfo, troff/troff.man: Document it.
7271         * libgroff/Makefile.sub (version.cc): Add definition of
7272         `Version_string[]', consisting of `<major>.<minor>.<revision>'
7273         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
7274         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
7275         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
7276         troff/input.cc, pfbtops/pfbtops.c: Use it.
7278 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
7280         Add a revision scheme to the groff package.
7282         * REVISION: New file.
7283         * libgroff/Makefile.sub (version.cc): Use it to define
7284         `revision_string[]'.
7285         * grops/psrm.cc: Use revision_string (converted to an unsigned
7286         integer) in constructor of resource_manager.
7288 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
7290         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
7291         files.
7292         * Makefile.in (DEVDIRS): Add devutf8.
7293         * grotty/tty.cc: Include device.h.
7294         (glyph): Change type of `code' to `unsigned int'.
7295         (tty_printer): New field is_utf8.  Constructor takes device argument.
7296         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
7297         (tty_printer::add_char): Change type of first arg to `unsigned int'.
7298         (tty_printer::put_char): New function.
7299         (tty_printer::end_page): Use put_char() instead of ::putchar().
7300         (make_printer): Pass device to tty_printer constructor.
7301         * nroff.sh: Determine default device by calling 'locale'.  As a
7302         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
7303         Recognize UTF-8 locales.
7304         * tmac/eqnrc: Recognize utf8 like latin1.
7305         * tmac/troffrc: Device utf8 needs tmac.tty.
7307 2000-01-07  Werner LEMBERG  <wl@gnu.org>
7309         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
7311 2000-01-07  Paul Eggert  <eggert@twinsun.com>
7313         Add a new predefined writeable number register, `year',
7314         which contains the current year.
7316         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
7317         * tmac/tmac.s: Use it.
7318         * troff/input.cc (init_registers): Initialize it.
7320 2000-01-06  Werner LEMBERG  <wl@gnu.org>
7322         * PROBLEMS: Fixed typo.
7324 2000-01-04  Paul Eggert  <eggert@twinsun.com>
7326         * PROBLEMS: Add Y2k advice for the yr number register.
7328 2000-01-03  Paul Eggert  <eggert@twinsun.com>
7330         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
7332 2000-01-02  Werner LEMBERG  <wl@gnu.org>
7334         * tmac/tmac.arkup: Slight modification of macros to provide better
7335         appearance for non-HTML formats.
7337 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
7339         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
7340         does not automatically translate to malloc(n) on all OSes
7341         (e.g., SunOS) so do it explicitly.  Also, check the returned
7342         value.
7344 2000-01-01  Werner LEMBERG  <wl@gnu.org>
7346         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
7348         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
7349         expects this variable
7351 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
7353         * doc/Makefile: Added instructions to create HTML and text
7354         versions of some files.
7356 1999-12-31  Werner LEMBERG  <wl@gnu.org>
7358         * Updated INSTALL.gen.
7360         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
7361         better resp. correctly with non-HTML devices.
7363 Version 1.15 released
7364 =====================
7366 1999-12-28  Werner LEMBERG  <wl@gnu.org>
7368         * NEWS, VERSION: Changed to 1.15
7370 1999-12-27  Paul Eggert  <eggert@twinsun.com>
7372         * nroff/nroff.man: -S is safer, not safe.
7374         * groff/groff.cc (main): Use `safer', not `safe', in variable
7375         names.  This does not change the behavior.
7377         * troff/input.cc (main): Likewise.
7379         * nroff/nroff.sh: Likewise.
7381         * troff/input.cc (prepend_string): New function.
7382         (main): Prepend -msafer, so that we check macro libraries for
7383         safety.
7385         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
7387 Version 1.14 released
7388 =====================
7390 1999-12-26  Werner LEMBERG  <wl@gnu.org>
7392         * NEWS, VERSION: Changed to 1.14.
7394 1999-12-24  Werner LEMBERG  <wl@gnu.org>
7396         * refer/refer.cc: Fixing the last fix.
7398 Version 1.13 released
7399 =====================
7401 1999-12-23  Werner LEMBERG  <wl@gnu.org>
7403         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
7404         number disappear.
7406         * NEWS: Updated.
7408         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
7410         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
7411         document conventions, the version number must be a real.
7413 Version 1.12.1 released
7414 =======================
7416 1999-12-22  Werner LEMBERG  <wl@gnu.org>
7418         * VERSION: Changed to 1.12.1.
7420 1999-12-22  Alan Rooks  <arooks@istar.ca>
7422         * refer/refer.cc (do_file): Slight modification to satisfy the
7423         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
7424         UnixWare 7.1.
7426 1999-12-20  Werner LEMBERG  <wl@gnu.org>
7428         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
7429         notices.
7431         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
7432         list of unsafe requests.
7434         * pic/pic.man: Fixed a typo.
7436         * man/groff_out.man: Fixed a typo.
7438 1999-12-18  Werner LEMBERG  <wl@gnu.org>
7440         * Makefile.in: Doc fixes.
7442 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
7444         * groff/groff.cc: Missing `U' option added to getopt().
7446         * troff/troff.man: Missing `U' option added to synopsis.
7448 Version 1.12 released
7449 =====================
7451 1999-12-14  Werner LEMBERG  <wl@gnu.org>
7453         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
7454         to the synopsis.
7456         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
7457         with the more appropriate terms `safer' and `unsafe'.
7459         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
7460         sys_nerr and sys_errlist[].
7462         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
7464         * pic/pic.y, pic/pic.cc: Added check for fmod().
7466 1999-12-13  Werner LEMBERG  <wl@gnu.org>
7468         * VERSION: Changed to 1.12.
7470         Here some patches from various sources; most of them taken from
7471         the Debian distribution.
7473         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
7474         tmac/Makefile.sub: New files copied directly from the NetBSD
7475         distribution.  Probably, some additional adaptation later on is
7476         necessary...
7478         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
7479         of unsafe requests.
7481         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
7482         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
7483         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
7484         (`-S') is now the default.
7486         * README, NEWS: Updated.
7488 1999-12-09  Werner LEMBERG  <wl@gnu.org>
7490         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
7492         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
7494 1999-12-06  Werner LEMBERG  <wl@gnu.org>
7496         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
7497         grief than relief today.  Additionally, it is against the GNU
7498         coding standards.
7500         * configure: Recreated.
7502 1999-12-05  Werner LEMBERG  <wl@gnu.org>
7504         * configure.in: Added GROFF_LIBM.
7506         * configure: Recreated.
7508         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
7509         necessary.
7511         * Makefile.in: Added definition of $(LIBM).
7513         * Makefile.comm (LIBM): Removed.
7515         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
7517 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
7519         * doc/Makefile: Added rule for generation pic.html.
7521         (clean): Files produced by grohtml will be removed also.
7523         * doc/pic.ms: Small fix.
7525         * tmac/tmac.html: Fixed suppression of headers.
7527 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
7529         * tmac/tmac.html: Fixing horizontal arrows.
7531         Turning off hyphenation.
7533         * tmac/tmac.an: Improved support for grohtml; better indentation,
7534         no footers/headers.
7536 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
7538         * tmac/tmac.arkup: Added CDFTP macro
7540         * tmac/tmac.html: All headers are turned off for ms, me, and mm
7541         macros.
7543         * tmac/troffrc: Some additions for HTML stuff.
7545 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
7547         * tmac/tmac.html: Small changes.
7549 1999-09-26  Werner LEMBERG  <wl@gnu.org>
7551         * doc/groff.texinfo: Minor fixes.
7553 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
7555         * devhtml/TR: Changed spacewidth to 3.
7557         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
7559         * tmac/tmac.html: Moved markup macros to tmap.arkup.
7561         * tmac/tmac.arkup: New file.
7563         * grohtml/ChangeLog: New file.
7565 1999-09-16  Werner LEMBERG  <wl@gnu.org>
7567         * doc/groff.texinfo (Common Features): Added Copying chapter.
7568         Changed format to @smallbook.
7570 1999-09-15  Werner LEMBERG  <wl@gnu.org>
7572         * NEWS: Added info about groff.texinfo.
7574         * doc/groff.texinfo: Will now compile (using texi2dvi) without
7575         warning messages.
7577 1999-09-14  Werner LEMBERG  <wl@gnu.org>
7579         * groff/groff.man: More updates.
7581 1999-09-13  Werner LEMBERG  <wl@gnu.org>
7583         * doc/groff.texinfo: New file.  This manual is still very
7584         rudimentary.  It has been originally contributed by Trent
7585         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
7586         additions by me.
7588         * INSTALL: Added information about the `doc' subdir
7590         * troff/troff.man: Minor fixes.
7592         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
7593         reordered options.
7595         * troff/input.cc (usage): Added missing `-ffam' to usage message.
7597         * Makefile.in (dist): groff-$(version).tar.gz must be removed
7598         also, otherwise it is included itself in another call of `make
7599         dist'.
7601         * groff/groff.cc (synopsis): Removed superfluous space.
7603         * PROJECTS, PROBLEMS, NEWS: Updated.
7605         * VERSION: Updated to 1.12beta.
7607         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
7609         * README: Updated: Included documentation about CVS repository,
7610         mailing lists, and daily snapshots.
7612         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
7614 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
7616         * tmac/tmac.an: If the tag didn't fit into the space that the
7617         macro `TP' specifies, the rest of the tag went into the space for
7618         the next line.
7620 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
7622         * grolj4/lj4.cc: Added duplex printing (option `-d').
7624         * grolj4/grolj4.man: Document duplex printing.
7626 1999-09-12  Werner LEMBERG  <wl@gnu.org>
7628         * doc/Makefile (pic.ps): Fixed rule which caused problems with
7629         non-GNUish sed programs.
7631         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
7632         definition.
7634         * configure.in (LIBS): Added `-lc'
7636         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
7638         * pic/tex.cc (solid_arc): Casting M_PI to double.
7640         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
7642         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
7643         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
7644         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
7646         * groff/groff_man.man: New file.  This manual page was originally
7647         written for the Debian GNU/Linux system by Susan G. Kleinmann
7648         <sgk@debian.org>.
7650         * eqn/list.cc (list_box::compute_metrics,
7651         list_box::compute_sublist_width): Removed variable declaration to
7652         avoid shadowing warnings.
7654         * grops/psrm.cc (resource_manager::process_file): Ditto.
7656         * tfmtodit/tfmtodit.cc (main): Ditto.
7658         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
7659         to avoid shadowing warnings.
7661         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
7662         shadowing loop variable.
7664         * groff/groff.man, troff/troff.man: Added doc about grohtml.
7666 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
7668         New grohtml frontend to convert groff input to html.
7670         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
7672         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
7674         * tmac/eqnrc: Added html device.
7676         * tmac/tmac.html: New file.
7678         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
7679         (troff_output::start_picture, troff_output::finish_picture),
7680         tbl/main.cc (process_input_file):
7681         Surrounded output with `graphics_start' and `graphics_end' so that
7682         the html driver can identify non-text portions.
7684         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
7685         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
7686         grotty/tty.ps (tty_printer::set_char): Additional parameter
7687         `name'.
7689         * include/printer.h: Class printer: New function
7690         set_char_and_width; new variables (is_char_named, is_named_set,
7691         named_command, named_char_s, named_char_n) to hold information
7692         about named characters -- needed by the html driver.
7694         * libdriver/printer.cc (printer::set_ascii_char,
7695         printer::set_special_char): Use set_char_and_width.
7697         * devhtml/*: New device files for html driver.
7699         * grohtml/*: New driver grohtml.
7701 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
7703         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
7704         default strings.
7706 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
7708         * libgroff/string.cc (search): Small fix to test against NULL
7709         pointer.
7711 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
7713         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
7714         \b'abc') were stacked in reverse order when processed in a
7715         diversion.
7717         * troff/node.h: Added `*last' to struct `node' to make the above
7718         fix work.
7720         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
7721         The default scale for the 'f' and 't' graphics functions were 'm'
7722         rather than 'u' (i.e., no scaling).
7724 1999-09-11  Peter Miller  <peterm@jna.com.au>
7726         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
7727         do_file), soelim/soelim.man: Added `-I file' option to soelim,
7728         defining include paths.
7730         * soelim/soelim.cc (include_path_append): New function.
7732 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
7734         * tbl/main.cc (process_options): Unix (at least Documenter's
7735         Workbench) tbl allows arbitrary non-alpha characters between
7736         options.
7738 1999-09-11  Paul Eggert  <eggert@twinsun.com>
7740         Y2k fixes.  Don't assume that the current year precedes 2000.
7742         * doc/meref.me: Add \n(y2, \n(y4.
7744         * tmac/doc-common (Yr): New number register.
7745         (Dd): Don't assume current year precedes 2000.
7747         * tmac/tmac.e (td): Likewise.
7748         (y2, y4): New number registers.
7750         * pic/pic.man: Update reference for pic paper to May, 1991
7751         version.
7753 1999-09-11  Werner LEMBERG  <wl@gnu.org>
7755         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
7756         Removed quotation marks which prevented correct expansion of
7757         $(tmac_wrap).
7759         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
7761 1999-09-10  Werner LEMBERG  <wl@gnu.org>
7763         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
7764         `config.cache'.
7766         * Removed configure.old.
7768 1999-08-31  Werner LEMBERG  <wl@gnu.org>
7770         * VERSION: Updated to 1.11.1
7772 1999-05-27  Werner LEMBERG  <wl@gnu.org>
7774         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
7776         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
7777         added quotations around $(tmac_wrap) to avoid syntax error if
7778         variable is empty.
7780         * configure: Newly generated using autoconf 2.13.
7782         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
7784 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
7786         * README, PROJECTS, NEWS, INSTALL, VERSION, 
7787         doc/Makefile. doc/pic.ms, groff/groff.man:
7788         Prepare for 1.11 release.  No code changes.
7789         Documentation for pic added (doc/pic.ms).
7791 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
7793         * Version 1.10 released.
7795 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
7797         * afmtodit/afmtodit.pl: Avoid comment on first line.
7799 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
7801         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
7802         * configure.in: Call it.
7804         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
7805         (distfiles): Doesn't depend on config.log or config.cache.
7807 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
7809         * grog/grog.sh: Use print "" rather than print in END rule.
7811 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
7813         * tbl/main.cc (process_data): Don't give error for excess data
7814         entries that are comments.
7816 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
7818         * tbl/main.cc (process_data): Fix case where new for-scope rules
7819         silently change meaning of code.
7821 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
7823         * troff/env.cc (hyphenate): Loop over all consecutive sequences
7824         of non-zero hyphenation codes.
7826 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
7828         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
7830 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
7832         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
7834 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
7836         * tmac/tmac.andoc: Make it work in compatibility mode.
7838         * refer/token.h (token_info::is_range_sep): New function.
7839         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
7840         * refer/ref.cc (reference::output): More sophisticated check for
7841         multiple pages.
7843         * devps/prologue.ps (MANUAL): New procedure.
7844         * grops/ps.cc (main): New -m option.
7845         (usage): Include -m.
7846         (ps_printer::~ps_printer): Implement -m.
7848         * aclocal.m4 (GROFF_G): New macro.
7849         * configure.in: Call it.
7850         * Makefile.in (g): Provided by configure.
7852         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
7854         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
7855         translations.
7857         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
7858         (tmac_m, tmac_s): Deleted.
7859         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
7860         tmac_s_prefix): New variables.
7861         (MDEFINES): Change accordingly.
7862         * Makefile.comm (.man.n): Use new TMAC_* variables.
7863         * configure.in (GROFF_TMAC): Call.
7864         * aclocal.m4 (GROFF_TMAC): Define.
7865         * tmac/Makefile.sub (stamp_wrap): New target.
7866         (install_data, uninstall_sub): Handle macro wrapping.
7868 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
7870         * tbl/main.cc (main): Ignore -T option.
7872 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
7874         * devlj4/generate/special.map: Add definition of \(nb.
7876         * tmac/tmac.dvi: Add definition of \(nb.
7878         * troff/dictionary.c (dictionary::dictionary): association::v gets
7879         initialized by association::association.
7881         * tmac/Makefile.sub: Avoid using temporary files when installing.
7883         * troff/env.cc (environment::set_font): Make bad font number a
7884         warning.
7886         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
7888         * Makefile.in (datadir): Use share rather than lib.
7890         * groff/groff.cc (basename): Rename to xbasename.
7892 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
7894         * Makefile (CCLIBS): Don't use.
7895         * Makefile.ccpg: Likewise.
7897         * acgroff.m4: Rename to...
7898         * aclocal.m4: Modify extensively for autoconf 2.
7899         * configure.in: Likewise.
7900         * Makefile.in: Likewise.
7902         * groff/pipeline.c (const): Declare as empty if __STDC__ not
7903         defined.
7904         (xstrsignal): Check for definition of NSIG. Conditionalize
7905         on SYS_SIGLIST_DECLARED.  Make return type const.
7907 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
7909         * troff/input.cc (interpolate_macro): Rephrase missing space
7910         warning.
7912 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
7914         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
7915         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
7916         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
7917         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
7918         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
7919         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
7920         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
7921         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
7922         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
7923         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
7924         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
7925         Fix 'for' scoping.
7927 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
7929         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
7930         string_iterator.
7931         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
7932         file.
7933         (macro_iterator::macro_iterator): Add additional argument.
7935 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
7937         * troff/div.cc (vertical_size::vertical_size): In place of integer
7938         specifying line spacing use cunits specifying post vertical
7939         space.
7940         (macro_diversion::output, top_level_diversion::output): Likewise.
7941         * troff/div.h: Change declarations accordingly.
7942         * troff/env.cc (pending_output_line): Replace ls field by post_vs
7943         field.
7944         (pending_output_line::pending_output_line,
7945         pending_output_line::output, environment::output,
7946         environment::output_line, environment::output_title,
7947         environment::hyphenate_line):  In place of
7948         integer specifying line spacing use cunits specifying post vertical
7949         space.
7950         (environment::environment): Add post_vertical_spacing and
7951         prev_post_vertical_spacing arguments.
7952         (environment::get_post_vertical_spacing): New function.
7953         (environment::total_post_vertical_spacing): New function.
7954         (environment::post_vertical_spacing): New function.
7955         (init_env_requests): Initialize pvs request and .pvs register.
7956         * troff/env.h: Change declarations.
7958 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
7960         * tmac/tmac.pspic: Immediately remove the temporary file.
7962 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
7964         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
7965         height is specified.
7967 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
7969         * tbl/table.c (struct vertical rule, class table_entry): Use int
7970         not short for start_row and end_row.
7972 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
7974         * troff/input.cc (trapping_blank_line, blank_line_macro): New
7975         functions.
7976         (diverted_space_node::reread, process_input_stack): Call
7977         trapping_blank_line() rather than blank_line().
7978         (init_input_requests): Bind "blm" to blank_line_macro().
7980         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
7982 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
7984         * troff/env.cc (environment::possibly_break_line): Require that
7985         width total excluding width of final space node be greater than
7986         the target text length.
7988 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
7990         * troff/node.cc (kern_pair_node::vertical_extent): New function.
7992 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
7994         * troff/node.cc (charinfo_node): New class.
7995         (glyph_node, composite_node): Derive from charinfo_node.  Change
7996         member functions accordingly.
7998 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
8000         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
8002 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
8004         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
8006         * devps/generate/textmap (notsubset): Add.
8008         * tmac/tmac.a4: New file.
8010 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
8012         * pic/main.cc (had_parse_error): New variable.
8013         (do_picture, do_whole_file): Set had_parse_error if yyparse()
8014         returns non-zero.
8015         (main): Return 1 if had_parse_error is true.
8017 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
8019         * grolj4/lj4.cc (main): Avoid use of strtoul.
8021 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
8023         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
8024         iso_8859_1 or $LESSCHARSET is latin1.
8026 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
8028         * hpftodit: New directory.
8029         * Makefile.in (CCPROGDIRS): Add hpftodit.
8030         * devlj4/generate: New directory.
8032 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
8034         * configure.in: Don't use AC_VFORK.
8035         * groff/pipeline.c (run_pipeline): Use fork() always.
8037 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
8039         * grops/ps.cc (main): Use %1 not %s in error message for -w.
8041         * Makefile.in (CCPROGDIRS): Add grolj4.
8042         (DEVDIRS): Add devlj4.
8043         * grolj4, devlj4: New directories.
8044         * tmac/troffrc: Handle lj4.
8045         * tmac/tmac.lj4: New file.
8047 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
8049         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
8051 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
8053         * troff/input.cc (do_if_request): At end of second string, switch
8054         environments before getting next token.
8056 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
8058         * devps/psstrip.sed: Split rule that strips whitespace on either
8059         side of delimiters.
8061 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
8063         * troff/node.h (font_family::make_definition): Add return value to
8064         declaration.  * troff/symbol.h (symbol::operator==,
8065         symbol::operator!=): Likewise.
8067 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
8069         * groff/groff.cc (main, help, synopsis): Handle -S.
8070         (possible_command::insert_arg): New function.
8072         * tmac/tmac.safer: New file.
8073         * tmac/msafer.man: New file.
8074         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
8076 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
8078         * pic/pic.h, pic/main.cc (safer_flag): New variable.
8079         * pic/pic.y (placeless_element): Avoid unsafe operations if
8080         `safer_flag' is set.
8081         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
8083 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
8085         * eqn/lex.cc (get_token): Put call to add_context() in block to
8086         work around Sun C++ 4.0 bug.
8088         * include/stringclass.h (operator +): Use ?: instead of `if' to
8089         work around Sun C++ 4.0 bug.
8091 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
8093         * tbl/main.cc (process_format): Accept - as a synonym for the _
8094         key letter.
8096         * libbib/index.cc (minus_one): Don't declare as const.
8098 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
8100         * troff/input.cc (get_char_for_escape_name): Push back a newline.
8102 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
8104         * troff/input.cc (write_macro_request): New function.
8105         (init_input_requests): Bind write_macro_request to writem.
8107 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
8109         * tmac/tmac.s (@EN): Turn filling back on even if there was no
8110         equation.
8112         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
8114         * tmac/tmac.s (@TS): Renamed from TS.
8115         (TS): Call LP then TS again.
8116         (cov*ab-init): Alias @TS to TS.
8118         * tmac/tmac.s: Allow QP or RS to initialize.
8120         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
8121         Move initializations of PS and LL here.
8122         (par@init): Don't initialize HY.  Avoid changing environment 0.
8123         (par*env-init): Don't all par@reset.
8125 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
8127         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
8129 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
8131         * Makefile.in (MDEFINES): Add LDFLAGS.
8132         (LDFLAGS): Add definition line.
8134 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
8136         * troff/input.cc (get_optional_char): Split off error check into...
8137         (check_missing_character): New function.
8138         * troff/token.h: Declare it.
8139         * troff/env.cc (margin_character): Don't call get_optional_char.
8140         Only call tok.next() after making the node.
8142         * include/lib.h (getopt): Make 2nd argument char *const *.
8144 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
8146         * nroff/conftest.sh: Deleted.
8148 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
8150         * pic/make-dos-dist: Deleted.
8152 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
8154         * devps/psstrip.sed: Strip comments before stripping trailing
8155         white space.
8157 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
8159         * Version 1.09 released.
8161 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
8163         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
8165 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
8167         * libgroff/font.cc (font::load_desc): Fix typo in error message.
8169 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
8171         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
8172         about returning without a value.
8174         * troff/charinfo.h (charinfo::get_special_translation): Cast
8175         TRANSLATE_NONE to int.
8177         * refer/token.cc (lookup_token, store_token): Remove bogus loop
8178         test.  Fix test so that it works with n unsigned.
8180         * pic/pic.y (defaults_table): Fully bracket initializer.
8181         * pic/lex.cc (lookup_keyword): Likewise.
8182         * eqn/lex.cc (token_table, def_table): Likewise.
8183         * eqn/box.cc (param_table): Likewise.
8184         * troff/input.cc (warning_table): Likewise.
8185         * libgroff/font.cc (table): Likewise.
8186         * grops/ps.cc (ps_printer::special): Likewise.
8187         * grops/psrm.cc (resource_manager::process_file): Likewise.
8188         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
8189         * refer/command.cc (command_table): Likewise.
8190         * addftinfo/addftinfo.cc (param_table): Likewise.
8192         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
8193         about temp's being unused.
8194         (unused): New function.
8196         * groff/pipeline.cc: Declare c_fatal.
8198         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
8199         uchar.
8201         * libbib/index.cc (index_search_item::load): Prevent compiler
8202         warnings about fd_closer's being unused.
8203         (unused): New function.
8205 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
8207         * troff/input.cc (copy_mode_error): Make `prefix' static.
8208         Fix typo.
8210         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
8211         defined.
8212         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
8213         HAVE_CC_OSFCN_H and modify accordingly.
8215         * troff/input.cc (init_charset_table): radicalex overlaps
8216         horizontally.
8218         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
8219         udodo!hans@relay.NL.net).
8220         * groff/configure.in: Call it.
8222         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
8223         * groff/configure.in: Call it.
8224         * include/lib.h: Conditionalize declaration of pclose.
8226         * troff/div.cc (last_page_number): New global variable.
8227         (top_level_diversion::begin_page): Exit if we just printed the
8228         last page.
8229         * troff/div.h (last_page_number): Declare it.
8230         * troff/input.cc (parse_output_page_list): Set last_page_number.
8232         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
8233         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
8234         tmac/tmac.X: Likewise.
8235         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
8236         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
8238 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
8240         * tmac/doc-ditroff (hK): Remove groff specific code which
8241         prevented page-breaks between separate manual entries.  If this is
8242         the first page, don't set the page number to 1.
8244         * acgroff.m4 (GROFF_POSIX): New macro.
8245         * configure.in: Use it.
8247         * troff/node.cc (class real_output_file,
8248         real_output_file::real_output_file,
8249         real_output_file::~real_output_file): Conditionalize use of
8250         popen/pclose on POPEN_MISSING.
8251         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
8252         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
8253         (pipe_source): Similarily.
8255         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
8257         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
8258         presence of declarations by trying to compile example with
8259         conflicting declarations.  (gcc only gives a warning for missing
8260         declarations.)
8262 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
8264         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
8265         (from Ulrich Lauther).
8267 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
8269         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
8271 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
8273         * indxbib/indxbib.cc (write_hash_table): Add code for case where
8274         pointers and ints have different sizes.
8276 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
8278         * tmac/tmac.s (par*env-init): Call par@reset.
8280 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
8282         * tmac/tmac.s (@IP): Switch to a new environment when diverting
8283         tag.
8284         (par*push-tag-env, par*pop-tag-env): New macros.
8286 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
8288         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
8289         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
8291         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
8292         comment.  Include <time.h>.
8294 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
8296         * grops/ps.cc (is_small_h, is_small_v): Deleted.
8297         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
8298         lines.
8300 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
8302         * troff/input.cc (read_request): Only print a prompt if reading
8303         from the terminal.  Also clearerr on EOF if reading from the
8304         terminal.  Declare isatty.
8306 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
8308         * refer/label.y: Rename map_t to map_func and extractor_t to
8309         extractor_func.
8311 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
8313         * include/assert.h: Don't use volatile.
8314         * libgroff/assert.cc: Likewise.
8316 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
8318         * troff/input.cc (abort_request): Look at character in tok before
8319         calling get_copy().
8321 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
8323         * troff/troff.h (NO_RETURN): Deleted.
8324         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
8325         * troff/input.cc (exit_troff): Likewise
8327         * Makefile.in: Remove `Making ...' messages since GNU make now
8328         gives these. 
8330         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
8332 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
8334         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
8335         to constant 1 inch.
8337 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
8339         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
8341 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
8343         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
8344         MARK_REG if there was no left delimiter.
8346 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
8348         * pic/troff.cc (troff_output::text): Set line thickness to
8349         relative before outputting text.
8351         * tmac/tmac.e (@k): Don't zero ?T.
8352         ((z): Likewise.
8354 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
8356         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
8358 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
8360         * troff/input.cc (decode_args): Warn about unquoted tabs (from
8361         Paul Eggert).
8363 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
8365         * troff/input.cc (ignoring): New variable.
8366         (ignore): Set ignoring during call to do_define_macro.
8367         (do_define_macro): Clear ignoring before interpolating terminating
8368         macro.
8369         (copy_mode_error): New function.
8370         (get_char_for_escape_name, read_long_escape_name,
8371         interpolate_arg): Use copy_mode_error.
8372         (warning_table): Add WARN_IG.
8373         * troff/troff.h (WARN_IG): Declare.
8374         (WARN_TOTAL): Change accordingly.
8376         * groff/pipeline.c (strsignal): Rename to xstrsignal.
8377         * groff/groff.cc (strsignal): Delete declaration.
8379 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
8381         * troff/div.cc (page_offset): Use 'm' as default scaling.
8383 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
8385         * nroff/nroff.sh: Ignore -u.
8387 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
8389         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
8391 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
8393         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
8394         drawing box.
8395         (B2): With -Tascii, leave additional vertical space before
8396         and after. Ensure that the left and right indent is restored to
8397         what it was even if the point size changes.  Don't call
8398         par@finish. Change the indent, line length and title length
8399         directly.  With -Tascii, make the width of the box 1n less.
8400         (B1): Remember 1n at the current point size.  Don't call
8401         par@reset.  Change the indent, line length and title length
8402         directly.  Ensure that the temporary indent is preserved.
8403         (par*box-mark-top): Turn off no spacing mode.
8405 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
8407         * Makefile.in (dist): Use .gz suffix.
8409 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
8411         * troff/input.cc (main): Add return 0.
8412         * pic/main.cc (main): Use return instead of exit.
8413         * tbl/main.cc (main): Likewise.
8414         * eqn/main.cc (main): Likewise.
8415         * grops/ps.cc (main): Likewise.
8416         * grotty/tty.cc (main): Likewise.
8417         * groff/groff.cc (main): Likewise.
8418         * grodvi/dvi.cc (main): Likewise.
8419         * refer/refer.cc (main): Likewise.
8420         * indxbib/indxbib.cc (main): Likewise.
8421         * lkbib/lkbib.cc (main): Likewise.
8422         * soelim/soelim.cc (main): Likewise.
8423         * addftinfo/addftinfo.cc (main): Likewise.
8424         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
8425         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
8427         * troff/token.h (process_input_stack): Don't declare as static.
8428         * troff/input.cc: Likewise.
8430         * troff/node.c (invalidate_fontno): Make it a static member of
8431         class font_family.  Change callers.
8432         * troff/node.c: Change declaration.
8434         * tbl/main.cc (struct input_entry_format): Add explicit public
8435         specifier.
8436         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
8437         struct double_hline_stuff): Likewise.
8438         * tbl/table.h (struct entry_format): Likewise.
8439         * pic/object.h (struct saved_state): Likewise.
8441         * include/stringclass.h: Add forward declarations of friend
8442         functions that are later declared as inline.  Don't include inline
8443         specifier in friend declaration.
8445         * libgroff/lib.h: Declare popen and pclose.
8446         * acgroff.m4 (GROFF_POPEN): New macro.
8447         * configure.in: Call it.
8449         * include/lib.h (PI): New constant. Undef first if necessary.
8450         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
8451         * grops/ps.cc (degrees, radians): Likewise.
8452         * libgroff/font.cc (font::get_skew): Likewise.
8454         * grops/ps.cc (is_ascii): New function.
8455         (ps_output::put_string): Use is_ascii.  Use csprint rather than
8456         isprint.
8457         (ps_printer::define_encoding): Use csspace.
8458         * libgroff/strtol.c (ISASCII): New macro.
8459         (strtol): Cast arguments to is*() and tolower() to unsigned char.
8460         Use ISASCII rather than isascii.
8461         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
8462         * libgroff/cset.cc: Likewise.
8463         * libdriver/input.cc: Include cset.h.
8464         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
8465         than isdigit().
8467         * refer/refer.cc (main): Use %ld rather than %d for longs.
8469         * libbib/index.cc (index_search_item_iterator::get_tag): Use
8470         S_ISREG macro.
8472         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
8474 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
8476         * troff/input.cc (hyphenation_code): Skip white space between
8477         char/code pairs.
8479 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
8481         * tbl/table.h (table::entry_list_tailp): New member.
8482         (table::table): Initialize it.
8483         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
8484         behaviour.
8486 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
8488         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
8489         with negative horizontal positions. Remove casts of glyph::hpos to
8490         int.
8491         (USHRT_MAX): Delete definition.
8492         (SHRT_MAX, SHRT_MIN): New definitions.
8493         (glyph::hpos): Change type to short.
8494         (tty_printer::end_page): Output multiple backspaces if necessary.
8495          Remove casts of glyph::hpos to int.
8496         
8497 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
8499         * tmac/tmac.s (@RT): New definition.
8501 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
8503         * refer/refer.cc (do_file): Make sure current_filename is set when
8504         filename is "-".
8506         * pic/common.cc (common_output::dot_line): Handle zero length
8507         lines.
8509 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
8511         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
8512         (par@init): Initialize \n[HY].
8514 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
8516         * troff/dictionary.cc (dictionary::remove): Continue when
8517         r < j < i.
8519 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
8521         * Makefile.com (.y.cc): Avoid ending up with two versions of
8522         $(YTABH).
8524 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
8526         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
8527         (\(,C): Likewise.  Also fix typo.
8529 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
8531         * lib.h: Delete extraneous semi-colon.
8533         * Add pso request: `so' from a pipe.
8534         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
8535         (file_iterator::close): New function.
8536         (file_iterator::~file_iterator, file_iterator::next_file): Use
8537         file_iterator::close.
8538         (file_iterator::backtrace): Say `process' rather than `file' when
8539         the stream is popened.
8540         (pipe_source): New function.
8541         (init_input_requests): Bind ".pso" to pipe_source.
8543 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
8545         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
8547         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
8548         digits in lower case.
8550 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
8552         * Version 1.08 released.
8554         * Makefile.in (dist): Insert || true after ln -s commands that
8555         might fail.
8557         * mm: Update to mm 1.16.
8559         * acgroff.m4 (GROFF_CSH_HACK): New macro.
8560         * configure.in: Call GROFF_CSH_HACK.  Substitute for
8561         SH_SCRIPT_SED_CMD.
8562         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
8563         MDEFINES.
8564         * nroff/Makefile.sub (nroff): New target.
8565         (install_data): Install nroff.
8566         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
8567         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
8569 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
8571         * eqn/Makefile.sub (neqn): Add chmod +x.
8573         * grog/Makefile.sub (grog): Remove spurious semi-colon.
8575 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
8577         * troff/input.cc (string_iterator::string_iterator()): Initialize
8578         lineno and count.
8580 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
8582         * troff/div.cc (macro_diversion::space,
8583         top_level_diversion::space): Don't set high_water_mark.
8584         (macro_diversion::output, top_level_diversion::output): Don't
8585         include post line space in high water mark.
8587 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
8589         * eqn/eqn.y: Don't define YYDEBUG.
8590         * pic/pic.y: Likewise.
8592 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
8594         * tmac/tmac.e ([3): Add space after comma following editors.
8595         Change double spaces to single spaces.
8596         ([4): Change double spaces to single spaces.
8598         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
8599         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
8600         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
8601         after %!PS-Adobe- (for Newsprint).
8603         * troff/div.cc (top_level_diversion::begin_page): When
8604         before_first_page is 1, set page_number to 1.
8606 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
8608         * eqn/box.cc (box::top_level): Protect equation with \&.
8610 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
8612         * groff/groff.cc (possible_command::set_name): Delete old name.
8614         * groff/groff.cc (possible_command::~possible_command): Use
8615         a_delete.
8617         * troff/node.cc (troff_output_file::begun_page): New member.
8618         (troff_output_file::troff_output_file): Initialize it.
8619         (troff_output_file::really_begin_page): Only output V command if a
8620         page has been begun.
8622         * pic/pic.y (placeless_element): Delete argument to PRINT after
8623         use.
8625 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
8627         * Make wrapman work.
8628         * troff/div.h (class top_level_diversion): Replace
8629         first_page_begun by before_first_page (with opposite sense).
8630         * Change first_page_begun to before_first_page inverting sense.
8631         * troff/div.cc (class nl_reg): New class.
8632         (init_div_requests): Use class nl_reg for \n(nl.
8633         (top_level_diversion::begin_page): Don't call
8634         output_file::begin_page if before_first_page is 2;
8635         reset before_first_page afterwards.  If have_next_page_number is
8636         false, then always increment page_number.
8637         * tmac/tmac.an: Set traps within TH rather than at the top-level.
8638         Restore compatibility mode after loading, and then disable
8639         compatibility mode in TH.
8641 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
8643         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
8644         past last line.
8645         * troff/node.h (output_file::trailer): Declare.
8646         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
8647         * troff/node.cc (output_file::trailer): New function.
8648         (troff_output_file::~troff_output_file): Move most code into...
8649         (troff_output_file::trailer): New function.
8650         (class troff_output_file): Delete page_length member. Declare
8651         trailer().
8652         (troff_output_file::really_begin_page): Use current page length
8653         for final V command.
8655         * tbl/main.cc (struct options): New decimal_point_char member.
8656         (options::options): Initialize this.
8657         (process_options): Implement decimalpoint option.
8658         (process_data): Pass decimal_point_char option to table::table.
8659         * tbl/table.h (class table): New decimal_point_char member.
8660         (table::table): Add additional argument.
8661         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
8662         second argument specifying decimal point character.  Use this
8663         instead of '.'.
8664         (table::table): Initialize decimal_point_char.
8665         (table::add_entry): Change call to find_dot.
8667         * troff/input.cc (get_copy, token::next): Implement \V.
8668         (interpolate_environment_variable): New function.
8670 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
8672         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
8673         * pic/pic.y: Likewise.
8675         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
8676         Add casts to int.
8677         * refer/ref.cc (reference::insert_field, reference::delete_field):
8678         Likewise.
8679         * troff/number.cc (parse_term): Likewise.
8681         * acgroff.m4 (GROFF_PROG_YACC): New macro.
8682         * configure.in: Use GROFF_PROG_YACC.
8684         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
8685         and g++.
8686         * Makefile.in (OPTIMIZE): New define.
8687         (DEBUG): Empty by default.
8688         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
8690         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
8691         (GROFF_ARRAY_DELETE): Likewise.
8692         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
8694         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
8696         * devps/psstrip.sed: Use different delimiter on last line (so that
8697         it works with BSD 4.4 sed.)
8699 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
8701         * devps/psstrip.sed: Delete comments.
8703         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
8704         optind, opterr, optarg.
8705         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
8706         opterr, optarg.
8708 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
8710         * Makefile.in (check): Dummy target.
8712 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
8714         * Version 1.07 released.
8716         * Integrate mm 1.11.
8718         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
8719         where start_col was meant.
8721 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
8723         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
8725 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
8727         * troff/input.cc (token::next): Make \z\o'...' and similar things
8728         work.
8730         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
8731         constants.
8732         (environment): Add margin_character_flags member.
8733         * env.cc (environment::environment(symbol),
8734         environment::environment(const environment *): Initialize
8735         margin_character_flags.
8736         (margin_character): Rewrite.
8737         (environment::output_line): Add a margin character if
8738         margin_character_flags is non-zero.  Turn off the
8739         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
8740         zero, use margin_character_node without copying and then set
8741         margin_character_node to 0.
8743         * devps/DESC.in: Change minimum size to 1000.
8745 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
8747         * troff/symbol.h (symbol::hash): Change return type to unsigned
8748         long.
8749         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
8750         Add casts to int.
8752         * test-groff: Use -r rather than -x.
8754         * grops/psfig.diff: Include in distribution again.
8756 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
8758         * Makefile.in (dist): Use gzip.
8760 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
8762         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
8763         unistd.h as well as in stdlib.h.
8764         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
8765         defined; otherwise include <sys/types.h> and <unistd.h> if
8766         UNISTD_H_DECLARES_GETOPT is defined.
8768         * configure.in: use builtin(include, ... rather than include(...
8769         * configure: Regenerate with autoconf 1.3.
8771         * libdriver/print.cc (printer::adjust_arc_center): Use new
8772         algorithm suggested by Andy Fyfe.
8774         * libdriver/printer.cc (printer::adjust_arc_center): New function.
8775         * include/printer.h: Declare this.
8776         * grops/ps.cc (ps_printer::draw): Use it.
8777         * grodvi/dvi.cc (dvi_printer::draw): Use it.
8779 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
8781         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
8783 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
8785         * eqn/main.cc (main): Handle "eqn -".
8787 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
8789         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
8791         * mm: Integrate version 1.08.
8793         * pic/troff.cc (troff_output::finish_picture): Set
8794         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
8795         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
8796         if it's not defined. Check whether the register is non-zero rather
8797         than whether it's not defined.
8798         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
8800         * indxbib/indxbib.cc: Move all signal handling into...
8801         * indxbib/signal.c: New file.
8802         * configure.in: Call AC_RETSIGTYPE.
8804         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
8805         * configure.in: Call GROFF_STRUCT_EXCEPTION.
8806         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
8808         * troff/input.cc (token::token, token::operator=): Work round SGI
8809         C++ bug.
8810         * pic/object.cc (position::position): Likewise.
8812 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
8814         * pic/pic.h: Move declaration of hypot().
8816 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
8818         * pic/pic.h: Declare hypot().
8820         * pic/pic.h: Define M_PI if necessary.
8822 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
8824         * tmac/tmac.e (re): Add alternative version that doesn't use groff
8825         `.ta T' feature.
8827         * devps/prologue.ps (RE): Handle the possibility that the old font
8828         doesn't have a FontName entry.
8830 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
8832         * tmac/tmac.e (fam): Redefine to set family in environment 2.
8833         (@C): Use @fam not fam.
8835 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
8837         * lookbib/lookbib.cc (main): Change type of start to const char *.
8838         * lkbib/lkbib.cc (main): Likewise.
8840         * eqn/lex.cc (definition::definition): Don't use member
8841         initializer syntax for members of anonymous unions.
8843         * troff/input.cc (input_stack::backtrace): Change type of to const
8844         char *.
8846 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
8848         * include/stringclass.h (class string): Declare inline friend
8849         functions as inline in class declaration.
8850         * troff/hvunits.h (class hunits, class vunits): Likewise.
8851         * include/refid.h (class reference_id): Likewise
8852         * troff/troff.h (points_to_units(units), scale(units, double)):
8853         Delete declarations.
8854         * libdriver/input.cc (get_char): Delete declaration.
8855         * include/lib.h: Change 2nd argument of getopt from const char **
8856         to char **.
8857         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
8858         char **' before assigning to a `const char **'.
8859         * tbl/table.cc: Delete extra declarations of prints().
8861 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
8863         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
8864         char **' before assigning to a `const char **'.
8866         * libgroff/errarg.cc (errarg::errarg): Don't use member
8867         initializer syntax for members of anonymous unions.
8869 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
8871         * mm: Integrate version 1.07.
8873 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
8875         * troff/input.c (translate2): Rename to
8876         (translate_no_transparent).
8877         (init_input_requests): Rename tr2 to trnt.
8879 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
8881         * troff/charinfo.h (class charinfo): Add transparent_translate field.
8882         (charinfo::set_translation, charinfo::set_special_translation):
8883         Add second argument that specifies value for
8884         transparent_translate.
8885         (charinfo::get_translation, charinfo::get_special_translation):
8886         Add optional second argument that specifies whether translation is
8887         being used for transparent throughput.
8888         * troff/input.cc (charinfo::set_translation,
8889         charinfo::set_special_translation): Handle second argument.
8890         (charinfo::charinfo): Initialize transparent_translate.
8891         (translate): Split main part off into
8892         (do_translate): New function.  Pass argument saying whether
8893         translation applies to transparent throughput.
8894         (translate2): New request.
8895         (init_input_requests): Bind translate2 to `tr2'.
8897 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
8899         * tbl/table.h (class table): Add `nokeep' flag.
8900         * tbl/main.cc (process_options): Handle `nokeep' option.
8901         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
8902         table::do_bottom): Don't output keep/release macro definitions or
8903         calls when `nokeep' option has been specified.
8905 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
8907         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
8909 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
8911         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
8912         block_entry::divert, alphabetic_block_entry::divert): Add extra
8913         argument giving column separation.
8914         (table::compute_widths): Pass column separation to
8915         table_entry::divert().
8916         (block_entry::do_divert): If an entry spans multiple columns and a
8917         minimumum width has been specified for each column, then set the
8918         line length to the sum of the widths (plus possibly the column
8919         separations).
8921         * troff/input.cc (set_escape_char): Don't set the escape_char
8922         until after calling has_arg().
8924 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
8926         * tbl/table.cc (table::do_top): Add missing \s0 for double box
8927         case.
8929         * tbl/table.cc (table::print_double_hline): Avoid extra new line
8930         in case where r > nrows - 1.
8932         * tbl/table.cc (BODY_HEIGHT): Deleted.
8933         (LINE_SEP): New definition.
8934         (table::print_single_hline, table::print_double_hline,
8935         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
8936         table::do_row, table::do_top): Use LINE_SEP space before a line
8937         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
8939         * tbl/table.cc (text_entry::print_contents): New function.
8940         (text_string_name, right_text_string_name): Deleted.
8941         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
8942         (simple_text_entry::do_width, numeric_text_entry::do_width,
8943         alphabetic_text_entry::do_width): Don't store the contents of the
8944         entry in a string.
8945         (left_text_entry::simple_print, right_text_entry::simple_print,
8946         center_text_entry::simple_print,
8947         alphabetic_text_entry::simple_print,
8948         numeric_text_entry::simple_print): Print the entry directly
8949         instead of using the stored string.
8951 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
8953         * devps/Makefile: Strip PostScript files.
8954         * devps/prologue: Rename to...
8955         * devps/prologue.ps.
8956         * devps/psstrip.sed: New file.
8957         * devps/download: Use .pfa rather than .ps for installed versions
8958         of fonts.
8960 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
8962         * troff/env.cc (input_trap): Give a warning if the argument is out
8963         of range.
8965         * troff/env.cc (adjust): Treat negative argument as missing. Round
8966         argument > 5 down to 5.
8968         * troff/env.cc (center, right_justify): Make negative argument zero.
8970         * troff/div.cc (page_offset, vertical_position_traps): Treat
8971         invalid argument as missing.
8972         * troff/env.cc (line_spacing, line_length, title_length, indent,
8973         underline, hyphen_line_max_request, control_char,
8974         no_break_control_char, widow_control_request, adjust, input_trap,
8975         point_size): Likewise.
8976         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
8977         constant_space): Likewise.
8978         * troff/input.cc (compatible, shift, warn_request,
8979         set_escape_char): Likewise.
8981         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
8982         * tbl/table.cc (table::table): Likewise.
8984         * Makefile.dev (install_dev): depends on $(DEVFILES).
8986 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
8988         * devX75, devX75-12, devX100, devX100-12: New directories.
8989         * Makefile.in: Add these to DEVDIRS.
8991         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
8992         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
8993         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
8994         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
8995         targets.
8996         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
8997         (uninstall): New target.
8998         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
8999         uninstall_prog, uninstall_dev): New targets.
9001         * troff/div.cc (return_request): Treat an invalid argument as
9002         missing.
9004 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
9006         * tmac/tmac.e ((f): Set up the environment even when there's a
9007         current diversion.  Transperently throughput a call to @N.
9008         (@N): New macro.
9010 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
9012         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
9013         up to vertical resolution.
9015         * tbl/table.cc (table::do_row): Change row number after printing
9016         stuff list.
9018         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
9020 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
9022         * Rename CHANGES to NEWS.
9024 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
9026         * libgroff/new.cc (operator new): Avoid calling malloc(0).
9028 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
9030         * man.ultrix: Removed.
9032 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
9034         * Makefile.comm (extraclean): Delete files whose names begin with
9035         `='.
9037         * pic/troff.cc (troff_output::text): Fix typo in implementation of
9038         aligned text.
9040 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
9042         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
9043         * troff/div.cc (page_length, need_space, space_request): Treat
9044         invalid optional argument as missing.
9045         * troff/env.cc (number_lines): If the first argument is present
9046         but not a number, turn on line numbering, don't change the next
9047         line number and parse the remaining arguments.
9049         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
9051 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
9053         * eqn/box.h: Change declaration accordingly.
9054         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
9055         the specified size was bad but don't give an error.  Check for
9056         overflow.
9057         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
9058         * eqn/lex (do_size): Likewise.
9060 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
9062         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
9063         compatible headers.
9065 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
9067         * tbl/table.cc (table::init_output): Improve error message when
9068         table won't fit on one page.
9070 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
9072         * pic/troff.cc (troff_output::start_picture): Generate line
9073         containing a horizontal motion equal to the width of the picture.
9075         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
9076         using GROFF_COMMAND_PREFIX environment variable.
9078 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
9080         * mdate.sh: Use $NF rather than $(NF).
9082 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
9084         * pic/main.cc (main):  Use %1 not %c in argument to warning.
9086         * eqn/main.cc (main): Output code to check that geqn was given the
9087         correct -T option.
9089 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
9091         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
9092         `ln -s ../Makefile .; make; rm -f Makefile'.
9094         * troff/hyphen: Rename to...
9095         * troff/hyphen.us:
9096         * troff/input.cc (main): Delete -H option. Don't call
9097         read_hyphen_file().
9098         * troff/env.cc: Include searchpath.h and macropath.h.
9099         (exception_dictionary): Deleted.
9100         (ht): Deleted.
9101         (read_hyphen_file): Deleted.
9102         (hyphenation_language): New struct.
9103         (class trie, class hyphen_trie): Move declarations up.
9104         (trie_node::~trie_node): Deleted.
9105         (trie::delete_trie_node): New function.
9106         (trie::do_delete): New pure virtual function.
9107         (hyphen_trie::do_delete): New function.
9108         (trie::~trie): New function.
9109         (hyphen_trie::~hyphen_trie): New function.
9110         (trie::clear): No need to chcek that tp is not 0.
9111         (current_language, language_dictionary): New variables.
9112         (hyphen_word): Give an error if no current language.  Use
9113         exceptions dictionary in current language.
9114         (hyphen_trie::read_patterns_file): Find file using macro_path.
9115         Allow comments (starting with %) in patterns file.  Don't make it
9116         a fatal error if the file can't be found.
9117         (hyphenate): Return if no current language.  Get the exceptions
9118         dictionary and the hyphenation patterns from the current language.
9119         (set_hyphenation_language): New variable.
9120         (hyphenation_patterns_file): New function.
9121         (hyphenation_language_reg): New class.
9122         (hyphenation_language_reg::get_string): New function.
9123         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
9124         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
9125         register.
9126         * groff/groff.cc (main, help, synopsis): Delete -H option.
9127         * include/Makefile.sub: Don't define HYPHENFILE.
9128         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
9129         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
9130         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
9131         hyphenation patterns.
9133 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
9135         * eqn/neqn.sh: New file.
9136         * eqn/Makefile.sub: Handle neqn.sh.
9138         * eqn/eqn.h: Declare `nroff' variable.
9139         * eqn/box.cc (param_table): Add `nroff' param.
9140         (nroff): Define it.
9141         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
9142         variable.
9143         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
9145         * troff/troff.h (WARN_FONT): New warning.
9146         (WARN_TOTAL): Change accordingly.
9147         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
9148         (warning_table): Add WARN_FONT.
9149         * troff/node.cc (mount_font_no_translate): Pass argument to
9150         font::load_font.  If this is non-zero, give a warning.
9151         Don't give an error message when accessing a font that has already
9152         been found to be invalid.
9153         * include/font.h (font::load, font::load_font): Add additional
9154         optional argument which suppresses error message if the font is
9155         not found.
9156         * libgroff/font.cc (font::load_font): Handle additional argument.
9157         (font::load): Add additional argument. If this is non-null, set it
9158         to 1 and don't give error message.
9160         * include/printer.h (printer::end_page): Add argument giving
9161         length of page.
9162         * libdriver/input.cc (do_file): Pass this.
9163         * grops/ps.cc (ps_printer::end_page): Add argument.
9164         * grodvi/dvi.cc (dvi_printer::end_page,
9165         draw_dvi_printer::end_page): Add argument.
9166         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
9167         columns_per_page members. New member nlines.
9168         (DEFAULT_LINES_PER_PAGE): Deleted.
9169         (tty_printer::tty_printer): Don't compute lines_per_page from
9170         font::paperlength. Don't compute columns_per_page from
9171         font::paperwidth.
9172         (tty_printer::add_char): Don't check horizontal position against
9173         columns_per_page. Grow glyphs vector if neccessary.
9174         (tty_printer::end_page): Add argument giving page_length in units.
9175         Discard lines past end of page.
9177 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
9179         * tmac/tmac.tty-char: Fix definition of \(/l.
9181         * tmac/tmac.X: Define \(en.
9183 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
9185         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
9186         lpq, then use lp rather than lpr.
9188         * tmac/tmac.s (par@reset): Don't call `ad'.
9189         (par*env-init): Call `ad'.
9191 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
9193         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
9194         date.
9196         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
9197         * indxbib/indxbib.cc: Likewise.
9199 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
9201         * libgroff/putenv.c: New file.
9202         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
9203         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
9204         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
9205         stdlib.h with AC_HAVE_HEADERS.
9207 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
9209         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
9210         does not exist.
9212 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
9214         * eqn/box.cc (gsize): Make it an int.
9215         (set_gsize): Parse argument handling increment or decrement.
9216         (box::top_level): Convert gsize to a string.
9218         * troff/input.cc (exit_troff): Make buf unsigned char [].
9219         Call to make_temp_iterator casts buf to char*.
9221         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
9223         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
9224         * Makefile.cpg (depend.temp): Likewise.
9226         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
9228         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
9230 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
9232         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
9234 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
9236         * Version 1.06 released.
9238         * Integrate mm 1.04.
9240 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
9242         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
9244 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
9246         * afmtodit/afmtodit.pl: Add -n option that disables generation of
9247         ligatures command.
9248         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
9249         afmtodit. Regenerate.
9251         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
9252         @f back past the current position.
9254         * tmac/tmac.e: Change calls to @R so that comments are not part of
9255         arguments.
9257 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
9259         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
9261         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
9262         check that we can link a call to a function declared in <stdio.h>.
9263         (GROFF_UNISTD_H): New macro.
9264         * configure.in: Call it.
9265         * Makefile.in: Document it.
9266         * include/posix.h: New file.
9267         * troff/troff.h: Don't include <osfcn.h>
9268         * troff/input.cc: Include posix.h.
9269         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
9270         osfcn.h.
9271         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
9272         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
9273         <fcntl.h>.
9274         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
9275         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
9276         * libbib/search.cc (O_RDONLY): Delete definition.
9277         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
9278         Don't include <osfcn.h>.
9280         * acgroff.m4 (GROFF_TIME_T): New macro.
9281         * configure.in: Call it.
9282         * Makefile.in: Document it.
9284         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
9285         * configure.in: Call it.
9286         * Makefile.in: Document -DTRADITIONAL_CPP.
9287         * include/ptable.h: Don't include generic.h.
9288         (name2): Define it.
9290         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
9291         Afterwards remove [T1 and [T2.
9292         (ref*spec!0, ref*spec!2): Use T1 rather than T.
9293         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
9294         (ref*add-T2): Renamed from ref*add-T.
9295         (ref*add-T1): New macro.
9297 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
9299         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
9301         * libbib/index.cc: Include <fcntl.h>.
9302         (O_RDONLY): Define if necessary.
9303         (make_index_search_item, index_search_item_iterator::get_tag,
9304         index_search_item::check_files): Use O_RDONLY.
9305         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
9306         (O_RDONLY): Define if necessary.
9307         (search_list::add_file): Use O_RDONLY.
9308         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
9309         <sys/stat.h>.
9310         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
9311         (main): Use these.
9313         * libbib/index.cc (S_ISREG): Define it if necessary.
9314         (index_search_item::load): Use S_ISREG.
9316         * include/driver.h: Include <errno.h>.
9318 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
9320         * eqn/box.cc (body_height): Increase default value to 85.
9321         (body_depth): Increase default value to 35.
9323 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
9325         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
9326         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
9327         protected from expansion with \E.
9329         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
9331         * Makefile (Makefile): New target.
9333         * Makefile.sub (configure, distfiles): New targets.
9335         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
9336         construct.
9338 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
9340         * eqn/box.cc (param_table): Add body_height and body_depth.
9342         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
9344 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
9346         * psbb/Makefile.sub: Don't link with libgroff.a.
9348         * acgroff.m4 (GROFF_PUTENV): New macro.
9349         * configure.in: Call GROFF_PUTENV.
9350         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
9351         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
9352         is defined.
9354         * troff/env.cc (distribute_space): Rename force_forward argument
9355         to force_reverse.  Reverse the list if force_reverse is true.
9357 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
9359         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
9361         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
9362         height or depth to be negative.  Guard against SUP_RAISE quantity
9363         being negative.
9365 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
9367         * devps/generate/textmap: Add `an' (arrowhorizex).
9368         * tmac/tmac.ps: \(an overlaps horizontally.
9369         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
9371         * devps/symbolchars: Add arrowverttp, arrowvertbt.
9372         * devps/textmap: Add arrowvertex.
9373         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
9374         updownarrow delimiters.
9375         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
9377         * tbl/table.cc (simple_entry::position_vertically,
9378         block_entry::position_vertically):  For a centered entry, perform
9379         the motion in two stages.
9381         * refer/refer.cc (split_punct): Don't call lookup_token if there
9382         is no token.
9384 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
9386         * troff/input.cc (token::next): Delete token_node after copying
9387         token.
9389         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
9390         cur_point_size.
9392         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
9394         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
9396 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
9398         * grops/ps.cc (usage): -b option takes an argument.
9400         * devps/prologue (PLG): New procedure.
9401         * grops/ps.cc (main, usage): New -g option.
9402         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
9403         length using PLG.
9405 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
9407         * include/cset.h: Include <limits.h> if we have it.
9409         * libgroff/illegal.cc: New file.
9410         * include/lib.h (illegal_input_char): Use table.
9411         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
9412         * pic/lex.cc (ARG1): Renumber to 14.
9413         * eqn/lex.cc (ARG1: Likewise.
9415         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
9416         (eg 1.05.90) correctly.
9418 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
9420         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
9421         Rename $r and $R registers to $v and $V.
9422         ($r, $R): Initialize to 0.
9423         (@v, @V): New macros.
9424         (sz): Call @v.
9425         (@M): Call @V.
9427         * troff/input.cc (main, usage): Add -R option that says not to
9428         load troffrc.
9429         * eqn/main.cc (main, usage): Rename -n to -R.
9431 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
9433         * devps/DESC.in: Leave font positions 5-9 blank.
9434         * devdvi/DESC.in: Likewise.
9436         * grog/grog.pl: Handle `.PS <file' correctly.
9438         * troff/input.cc (input_stack::push): Improve error message when
9439         input stack limit exceeded.
9441 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
9443         * refer/refer.cc (main): Fix typo in handling of `a' option.
9445         * refer/refer.cc (do_bib): In state START after a newline remain
9446         in state START.
9448         * groff/groff.sh: Deleted.
9449         * groff/Makefile.sub: Delete handling of groff.sh.
9451         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
9452         to determine whether to use \X'ps:...'.
9453         * tmac/troffrc: Set 0p register to 0.
9454         * tmac/tmac.ps: Set 0p register to 1.
9456         * groff/groff.cc: Support -X option. Give warning for -TXps and
9457         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
9458         * tmac/troffrc: Support -r.X=1.
9460         * pic/troff.cc (troff_output::dot): Don't test
9461         zero_length_line_flag.
9463 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
9465         * include/lib.h: Declare getopt() and friends unless
9466         STDLIB_H_DECLARES_GETOPT is defined.
9468         * doc/chars.tr: Delete.
9469         * man/groff_char.man: New file.
9471 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
9473         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
9474         user has changed register format.
9476 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
9478         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
9479         `postpro' command in DESC file.  Get spooler command from `print'
9480         command in DESC file.  Execute spooler command with /bin/sh.
9482         * groff/groff.cc: Split Unix-specific parts into...
9483         * groff/pipeline.c: New file.
9485         * LICENSE: Delete.
9486         * COPYING: New file.
9487         * all files: Update copyright notices.
9489         * Rearrange files.  Redo Makefiles.  Use autoconf.
9491 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
9493         * troff/input.c (charinfo_to_node_list): Interpret character
9494         definition with escape_char of `\'.
9496 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
9498         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
9499         Define INT_DIGITS as big enough for 64-bit integer.
9500         * lib/strtol.c: Don't include lib.h.
9501         * lib/lib.h: Delete ifdef __cplusplus stuff.
9503 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
9505         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
9506         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
9507         get DESC from current directory.
9509 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
9511         * tbl/main.c (main): Always reset the line number when reading
9512         from stdin.
9514         * tbl/table.c (table::print_single_hline, table::print_double_hline,
9515         table::define_bottom_macro, table::do_row, table::do_top): Round
9516         vertical spacing up to vertical resolution.
9518 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
9520         * ps/ps.h (enum resource_type): Avoid comma at end of
9521         enumerator-list.
9522         * dvi/dvi.c (class dvi_printer): Likewise.
9523         * dvi/tfmtodit.c (gf::load): Likewise.
9524         * refer/label.y (struct expression): Likewise.
9525         * refer/refer.c (class label_processing_state): Likewise.
9526         * refer/indxbib.c (do_file): Likewise.
9527         * troff/troff.c (enum warning_type): Likewise.
9528         * tbl/main.c (process_data): Likewise.
9529         * troff/charinfo.h (class charinfo):
9531 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
9533         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
9535 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
9537         * groff.c: Move to new groff subdirectory.
9538         * groff/Makefile: New file.
9539         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
9541         * man/mdate.sh: Use ls -L if supported.
9543         * Consolidate all header files produced by gendef into lib/defs.h.
9544         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
9545         Don't include path.h.
9546         * lib/Makefile (path.h): Don't generate.
9547         * troff/input.c: Include defs.h. Don't include config.h.
9548         * troff/Makefile (config.h): Don't generate.
9549         * refer/index.h: Don't include suffix.h.
9550         * refer/index.c: Include defs.h.
9551         * refer/indxbib.c: Include defs.h.
9552         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
9553         defs.h.
9554         * refer/Makefile (suffix.h, path.h): Don't generate.
9555         * groff.c: Don't include config.h. Include defs.h.
9556         * Makefile (config.h): Don't generate.
9557         (lib/defs.h): Generate.
9558         (topclean): Remove lib/defs.h.
9560 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
9562         * lib/malloc.c, lib/getpagesize.h: Deleted.
9563         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
9564         related stuff.
9565         * lib/Makefile: Delete malloc-related stuff.
9566         * lib/new.c: Workaround COOKIE_BUG if necessary.
9568         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
9569         needed header files directly.
9570         * refer/refer.h: Omit definition of DEFAULT_INDEX.
9571         * Makefile: Include definition of DEFAULT_INDEX in path.h.
9573 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
9575         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
9576         argument.
9577         * lib/font (font::load_desc, font::load): Don't split argument of
9578         unknown command.
9579         (font::handle_unknown_font_command): Change type.
9580         * ps/ps.c (ps_font::handle_unknown_font_command,
9581         handle_unknown_desc_command): Change type.
9582         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
9584 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
9586         * lib/font.h (font::handle_unknown_font_command): Add file and
9587         line arguments.
9588         * lib/font.c (font::handle_unknown_font_command):
9589         * ps/ps.c (ps_font::handle_unknown_font_command):
9590         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
9591         lineno arguments.  Use _with_file_and_line functions for error
9592         reporting.
9594         * lib/fontfile.c (font::unknown_desc_command_handler): New static
9595         data member.
9596         * lib/font.c (font::set_unknown_desc_command_handler): New
9597         function.
9598         (font::load_desc): For unknown commands, call
9599         unknown_desc_command_handler if not null.
9600         * lib/font.h (class font): Declare them.
9601         (FONT_COMMAND_HANDLER): New typedef.
9602         * ps/ps.c (handle_unknown_desc_command): New function.
9603         (main): Set bflag if we had a -b option. Call
9604         font::set_unknown_desc_command_handler.
9605         (broken.h): Don't include.
9606         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
9607         submake 
9608         * ps/devps/Makefile: Add `broken' command to DESC file using
9609         BROKEN_SPOOLER_FLAGS.
9611         * macros/tmac.e ([, ]): Add as synonyms for { and }.
9613         * macros/tmac.e ($p): Only exdent if \$3 > 0.
9615         * macros/tmac.e (@R, @S): New macros.
9616         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
9617         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
9618         Declare $H, $[0-9], .. macros with @S.
9619         Declare |0, |1, |2, |3 strings with @S.
9621         * macros/tmac.e (@S): Rename to @U.
9623         * macros/tmac.e (@z): Define @b and bp as empty instead of
9624         deleting them,
9626         * macros/tmac.e (@m): Deleted.
9627         (@h): Don't call @m.
9628         (@z): Don't set @m trap.
9630         * macros/tmac.e ($h, $f): Define |z as empty string.
9632         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
9633         (@q): Likewise.
9635         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
9636         removing them.
9637         ()f): Likewise for * register.
9639         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
9640         argument is missing, don't change $R.  Call sr with three
9641         arguments when initializing.
9643 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
9645         * macros/tmac.e (sr): New macro.
9646         Initialize $r and $R using sr.
9648         * macros/tmac.e (,): Delete \*(#[.
9650         * troff/env.c (set_tabs): Read the tab type even if the position
9651         is bad.  Allow the position of the first tab stop to be negative.
9653 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
9655         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
9656         _POSIX_VERSION.
9657         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
9658         rather than -DPATHCONF_MISSING.
9659         * Makefile: Get rid of PATHCONF_MISSING.
9661         * refer/map.c: New file.
9662         * refer/index.c: Interface to mmap through map.c.  Rename map_size
9663         to map_len.
9664         * refer/Makefile: Handle map.c.
9665         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
9667 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
9669         * Makefile: RANLIB should be `true' if there is no ranlib.
9670         * lib/Makefile (libgroff.a): Simplify.
9671         * driver/Makefile (libdriver.a): Simplify.
9673         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
9674         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
9675         defined.
9677 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
9679         * troff/env.c (compare_ranges): Declare as extern "C".
9681         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
9683         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
9685 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
9687         * pic/troff.c (troff_output::text): Merge in grops_output::text,
9688         but conditionalize use of \X based on \*(.T.
9689         (grops_output::*): Deleted.
9690         * pic/output.h: Delete declaration of make_grops_output.
9691         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
9692         by default. -n sets it to 0.
9693         (usage): Corresponding changes.
9694         * groff.c (main): Don't pass -x or -p to pic.
9695         * groff.sh: Likewise.
9697         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
9698         to be non-zero.
9700         * ps/devps/afmtodit: Change calculation of asc_boundary and
9701         desc_boundary.  Make these bounds inclusive.
9702         * ps/devps: Regenerate font files.
9704 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
9706         * macros/tmac.latin1: New file.
9707         * macros/tmac.tty-char: Use tmac.latin1.
9708         (tmac.tty-tr): Deleted.
9709         * macros/Makefile: Install tmac.latin1.
9710         * macros/tmac.dvi: Use tmac.latin1.
9711         * macros/troffrc: Translate \[char160] onto no-break space here.
9712         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
9714 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
9716         * macros/tmac.Xps: Use `do' request.
9718         * macros/tmac.ps: Use `do' request.
9720         * macros/tmac.e (@C): Use `do' request.
9722         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
9723         * macros/Makefile: Install tmac.X*.
9725         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
9726         * tty/Makefile: Don't install tmac.tty*.
9727         * macros/Makefile: Install tmac.tty*.
9729         * dvi/tmac.dvi: Move to macros.
9730         * dvi/Makefile: Don't install tmac.dvi.
9731         * macros/Makefile: Install tmac.dvi.
9733         * ps/tmac.ps*: Move to macros.
9734         * ps/Makefile: Don't install tmac.ps*.
9735         * macros/Makefile: Install tmac.ps*.
9737         * eqn/box.c: Provide draw_lines parameter corresponding to -D
9738         option.
9739         * macros/eqnrc: Set draw_lines parameter based on device.
9740         * groff.c: Don't pass -D flag to eqn.
9741         * groff.sh: Likewise.
9742         * eqn/main.c: Warn about use of -D.
9744         * troff/input.c (process_startup_file): New function.
9745         (main): Call process_startup_file().
9746         * macros/troffrc: New file.
9747         * macros/Makefile: Install troffrc.
9748         * groff.c (main): Don't pass extra -m option to troff. For a 
9749         pseudo device pass the name of the pseudo device to troff using
9750         -d.
9751         * groff.sh: Likewise.
9752         * groff.c (possible_command::prepend_arg): Deleted.
9754         * troff/input.c (do_request): New function.
9755         (init_input_requests): Bind "do" to do_request.
9757         * eqn/main.c (main): Instead of loading eqnchar from device directory,
9758         load eqnrc from macro directory.
9759         * macros/eqnrc: New file.
9760         * macros/Makefile: Install eqnrc.
9761         * ps/devps/eqnchar: Deleted.
9762         * ps/devps/Makefile: Don't install eqnchar.
9763         * dvi/devdvi/eqnchar: Deleted.
9764         * dvi/devdvi/Makefile: Don't install eqnchar.
9765         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
9766         variable optM.
9768         * lib/device.[ch]: New files.
9769         * lib/font.h (font::set_device_name, font::get_device_name):
9770         Deleted.
9771         * lib/fontfile.c: Use device.h.
9772         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
9773         * troff/input.c: Delete definition of `device'.
9774         (main): Don't initialize device.
9775         * troff/troff.h: Include device.h rather than declaring device.
9776         * troff/Makefile: No need to handle DEVICE.
9777         * driver/input.c: Include device.h. Don't use
9778         font::{set,get}_device_name.
9779         * groff.c, Makefile: Rename device.h to config.h.
9780         * groff.c: Use library device variable.
9781         * eqn/main.c: Use library device variable.
9782         * eqn/Makefile: No need to handle DEVICE.
9784         * lib/searchpath.[ch]: New files.
9785         * lib/Makefile: Handle searchpath.[ch].
9786         * troff/input.c (open_file, init_dirs): Deleted.
9787         (macro_dirs): Deleted.
9788         (open_mac_file, macro_source): Use class search_path.
9789         (add_string, struct string_list): Move definition.
9790         (main): Change -M option to use macro_path. Delete call to
9791         init_dirs().
9792         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
9793         Rewrite to use class search_path.
9794         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
9795         * lib/Makefile: fontfile.c depends on searchpath.h.
9796         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
9797         MACROPATH.
9798         * lib/macropath.[ch]: New files.
9799         * troff/Makefile: No need to handle MACROPATH.
9801         * troff/input.c: Delete DUMP code.
9802         * lib/fontfile.c, lib/font.h: Delete
9803         font::forget_command_line_font_dirs.
9805         * troff/input.c (push_token): New function.
9806         (handle_first_page_transition): Use push_token().
9807         (process_input_stack): Change handling of a space at the beginning
9808         of the line.
9810 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
9812         * troff/input.c (font_dirs): Delete unused variable.
9814         * eqn/lex.c (do_set): Correct error messages.
9816 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
9818         * troff/input.c (do_define_string): Allow the string name to be
9819         followed immediately by a tab.
9820         (define_character): Likewise.
9822 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
9824         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
9825         be negative.
9827         * troff/input.c (input_iterator::is_file): New virtual function.
9828         (file_iterator::is_file): New function.
9829         (input_stack::end_file): New function.
9830         (input_stack::next_file): Handle the situation where there is no
9831         file on the input stack correctly.  Avoid making two passes over
9832         the input stack.
9833         (next_file): Make the filename optional; in this case call
9834         input_stack::end_file().
9836 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
9838         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
9839         produce a real _ charater when the current font is CW and _
9840         otherwise.
9842         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
9843         expression to work around gcc 2.2 bug.
9845 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
9847         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
9849         * troff/env.c (environment::add_padding): New function.
9850         (environment::add_char): Use add_padding().
9851         (environment::space): Likewise.
9852         (environment::wrap_up_field): Add some padding if there is none
9853         and there's no current tab.
9854         * troff/env.h: Declare environment::add_padding.
9856 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
9858         * pic/pic.y: undef fmod and rand before declaring them.
9860 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
9862         * troff/input.c (main): If the DESC file specifies a font name of
9863         0, then leave the corresponding font position empty.
9865         * nroff.sh: New file.
9866         * Makefile (install.nobin): Install nroff.sh.
9868         * tty/devlatin1/R.proto: Add ao as synonym for de.
9869         * tty/tmac.tty-char: Define ao as o.
9871         * tty/dev{ascii,latin1}/R.proto: Add aq.
9872         * tty/tmac.tty-char: Delete definition of aq.
9874 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
9876         * troff/input.c (init_charset_table): Don't translate 0240.
9877         * ps/tmac.ps: Translate char160 to space.
9878         * dvi/tmac.dvi: Likewise.
9879         * tty/tmac.tty: Likewise.
9881 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
9883         * dvi/tmac.dvi: Add support for all Latin-1 characters.
9885         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
9886         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
9887         \(oe, \(r?, \(r!.
9889         * tty/tmac.tty-char: Add \(ah.
9891         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
9892         No need to define \(FM and \(!/. Conditionalize all character
9893         definitions.
9895         * ps/devps/lgreekmap: Add +h, +f, +p.
9897         * ps/tmac.psnew: New file.
9898         * ps/Makefile: Install tmac.psnew.
9900         * troff/input.c (charinfo_to_node_list): Don't ever interpret
9901         character definitions in compatible mode.
9903         * troff/input.c (remove_character): New function.
9904         (init_input_requests): Bind remove_character to "rchar".
9906         * ps/tmac.psold: New file.
9907         * ps/Makefile: Install tmac.psold.
9908         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
9909         characters into tmac.psold.  Make these definitions unconditional.
9911         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
9913         * ps/tmac.ps: Don't define \('c and \('C.
9915         * ps/devps/textmap: Move Greek characters to...
9916         * ps/devps/symbolchars:
9918 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
9920         * ps/devps/text.enc: Add quotesingle.
9921         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
9922         * tty/tmac.tty-char: Likewise.
9923         * dvi/devdvi/texmi.map: Add +h, +f, +p.
9924         * dvi/devdvi/texi.map: Add Fn.
9925         * dvi/devdvi/msam.map: Add lz.
9926         * dvi/tmac.dvi: Handle Bq, bq, aq.
9928         * pic/lex.c (get_token): Recognize 'th.
9929         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
9931 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
9933         * ps/devps/textmap: Move di, mu, +- to...
9934         * ps/devps/symbolchars:
9936         * macros/tmac.s (@XS): Don't call par@reset or fi.
9937         (XA): Call LP. Turn off adjustment. Reduce line length.
9939         * macros/tmac.s: Initially alias XS to LP.
9940         (XS): Rename to @XS.
9941         (cov*ab-init): Alias XS to @XS.
9943 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
9945         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
9946         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
9947         (token::is_size, token::changes_env): Deleted.
9948         * troff/number.c (parse_term): No need to process \s explicitly.
9949         Call tok.next() only after scale indicator has been processed.
9950         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
9951         \f etc explicitly.
9952         (token::next): Handle \s, \f, \S, \H immediately rather than
9953         returning them as tokens.
9954         (token::operator==, token::description, token::add_to_node_list,
9955         token::process): Remove handling of deleted tokens.
9957         * troff/env.c (environment::add_char): When adding padding
9958         indicator character, call start_line() if necessary.
9960 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
9962         * ps/devps/afmtodit: Don't output 0 kerns.
9964         * ps/devps/afmtodit: Remove directory from name of encoding in
9965         font description file.
9967         * ps/devps/afmtodit: Improve error messages.
9969         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
9971         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
9972         * ps/devps/FontMakefile: Deleted.
9973         * ps/devps/afmname: New file.
9975         * ps/devps/symbol.sed: New file.
9976         * ps/devps/symbol.diff: Deleted.
9977         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
9978         Generate zapfdr.afm from zapfd.afm.
9980         * tty/tmac.tty (tty-char): Prefix definition with ".
9982         * macros/tmac.an (TP): Don't start a diversion if one has already
9983         been started.
9985         * tty/tmac.tty-char: Add Latin-1 characters.
9987         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
9989 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
9991         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
9992         Move declaration of struct horizontal_span.
9994         * tbl/table.c (table::table): Initialize span_list.
9995         (table::~table): Delete span_list.
9997         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
9999         * ps/devps/Makefile: Avoid dependency on GNU make.
10001         * ps/tmac.ps: Check that character does not already exist before
10002         defining it.
10004         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
10005         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
10006         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
10007         files.
10009         * tty/tmac.tty-char: New file.
10010         * tty/Makefile: Install tmac.tty-char.
10011         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
10012         tmac.tty-char.
10014         * tty/tmac.tty: Fix definition of \(34.
10016         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
10017         bracket-drawing characters onto |. Add *o.
10019         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
10020         only if current_field.
10022         * troff/dictionary.c (dictionary::lookup): Free old_table after
10023         rehashing. 
10025 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
10027         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
10028         whose glyphs are identical to glyphs of some Roman character.
10030         * tty/devlatin1/R.proto (bu): Deleted.
10031         * tty/devascii/R.proto (bu): Deleted.
10032         * tty/tmac.tty: Add definition of \(bu.
10034         * eqn/main.c (do_file): Pass FILE as argument.
10035         (main): Automatically load eqnchar.  New options -F and -n.
10036         Pass do_file an opened FILE.
10037         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
10038         No need to include font.h.
10039         * groff.sh: Likewise.  Don't need to use - for standard input.
10040         Prefix files with -- if first file starts with -.
10042         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
10044         * troff/env.c (environment::possibly_break_line): Don't set line
10045         to 0 across call to output_line().  Don't call output_line() until
10046         after discarding nodes after break.
10048 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
10050         * request.h (macro::empty): Declare it.
10051         * input.c (macro::empty): New method.
10052         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
10053         macro is empty.
10055 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
10057         * troff/env.c (environment::start_field): Decrement space_total
10058         when a space is frozen.
10060 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
10062         * macros/tmac.an (R): Delete macro.
10064         * troff/input.c (get_copy, token::next): Support \# (like \" but
10065         newline is ignored).
10067         * troff/input.c (token::next): Fix error message in 'Y' case.
10069 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
10071         * eqn/delim.c (define_extensible_string): Recognize any prefix of
10072         a delimiter name.
10074 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
10076         * c++test.c: Include <osfcn.h>.
10078         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
10079         <errno.h> doesn't.
10081 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
10083         * tbl/table.c (table::divide_span): Don't count column separation
10084         if expand was specified.
10086         * tbl/main.c (process_format): Don't ignore width specs in
10087         continued format.  Give warning for changing equal widths or
10088         column separation in continued format.
10089         (process_data): Set column separation, minimum width, equal
10090         columns at end of table.
10092 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
10094         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
10095         node::add_discretionary_hyphen): Use soft_hyphen_char.
10096         (set_soft_hyphen_char): New function.
10097         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
10099         * Makefile (c++tested): Give more helpful message if test fails.
10101 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
10103         * troff/input.c (init_charset_table): Translate 0240 to
10104         an unbreakable space.
10106         * troff/token.h (token::hyphen_indicator): New function.
10107         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
10108         translation.
10109         * troff/input.c (translate): Allow translation to \%.
10110         * troff/node.c (node::add_char): Handle
10111         TRANSLATE_HYPHEN_INDICATOR.     
10112         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
10114         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
10115         for \(hy.
10117         * tty/devlatin1/R.proto: \(hy and - should print as 055.
10119 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
10121         * groff.c (run_commands): If the last command gets a SIGPIPE send
10122         a SIGPIPE to all children than haven't yet terminated.  When
10123         command terminates, set pid field to -1.
10125 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
10127         * groff.c (main): Pass an appropriate -filename option to gxditview.
10129 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
10131         * Makefile.bd (install): Remove existing program before copying.
10133         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
10134         programs which have Unix counterparts to be installed with
10135         user-specified prefix.
10137         * troff/input.c (exit_troff): Don't check if exit_started.
10138         (exit_request): Don't call exit_troff if exit_started.
10140         * Makefile.bd (install.mm): Rename to install.dwbmm.
10142 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
10144         * driver/input.c (do_file): Add missing break for '#' case.
10146 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
10148         * troff/input.c (input_stack::clear):  Clear past any boundaries and
10149         then add the boundaries back.
10151         * troff/input.c (exit_troff): Return immediately if already
10152         exiting.
10154         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
10155         end macro.
10156         (pg*end-page): If the text has ended and there are no more
10157         footnotes or keeps, exit.
10159         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
10161         * troff/input.c (init_charset_table): Make \(rq transparent by
10162         default.
10164         * macros/tmac.an: Define lq and rq strings.
10166         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
10168 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
10170         * troff/env.c (environment::final_break): New function.
10171         (environment::newline): Set prev_line_interrupted to 2 if
10172         exit_started.
10173         * troff/env.h: Declare environment::final_break.
10174         * troff/input.c (exit_troff): Call environment::final_break()
10175         instead of environment::do_break().
10177         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
10178         doesn't already exist.
10179         * macros/man.local: New file.
10180         * macros/tmac.an: Load man.local.
10181         * macros/man.ultrix: New file.
10183 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
10185         * troff/input.c (exit_groff): Rename to...
10186         (exit_troff): New function.
10188         * troff/div.c (exit_started, done_end_macro,
10189         seen_last_page_ejector): New global variables.
10190         (began_page_in_end_macro): New static variable.
10191         (exit_flag): Deleted.
10192         (top_level_diversion::top_level_diversion): Initialize
10193         last_page_count.
10194         (top_level_diversion): More elaborate test for whether
10195         cleanup_and_exit() should be called.
10196         Set began_page_in_end_macro if the end macro isn't yet finished.
10197         * troff/div.h (top_level_diversion::last_page_count): New data
10198         member.
10199         (top_level_diversion::set_last_page): New function.
10200         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
10201         * troff/env.c (do_break): Zero prev_line_interrupted.
10202         * troff/input.c (exit_flag): Delete declaration.
10203         (LAST_PAGE_EJECTOR): New magic cookie.
10204         (token::next): Handle LAST_PAGE_EJECTOR.
10205         (exit_groff): Set exit_started and done_end_macro instead of
10206         exit_flag.  Call top_level_diversion::set_last_page.  Push a
10207         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
10208         another ejection after setting seen_last_page_ejector.
10210 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
10212         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
10214         * macros/tmac.e (TH): Make sure there's room for the initial
10215         header.
10217         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
10218         Set FVS in points rather than units.
10220 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
10222         * troff/div.c (top_level_diversion::add_trap): Don't consider the
10223         position of empty slots.
10225 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
10227         * ps/devps/S: Fix height and depth of parenrightex.
10228         * ps/devps/symbol.diff: Regenerate.
10230 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
10232         * tmac.e (u): Do underlining as in -mgs.
10234 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
10236         * tty/tty.c (tty_printer::end_page): If overstriking is
10237         suppressed, still turn overstruck horizontal and vertical lines
10238         into +.
10240         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
10241         2.1.
10243         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
10245 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
10247         * Version 1.05 released.
10249 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
10251         * tty/tty.c: Instead of keeping an array of glyphs and then
10252         sorting it, keep a ordered linked list of glyphs for each line.
10254         * driver/driver.h: Include stddef.h.
10256         * tty/tty.c (compare_glyph):
10257         * refer/refer.c (rcompare):
10258         * troff/env.c (compare_ranges): Arguments of qsort comparison
10259         function should be const void *.
10261         * troff/number.c (parse_term):
10262         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
10263         switch statement.
10265         * refer/label.y (consider_authors): Don't access variables
10266         constructed under a condition outside that condition: put braces
10267         round for statement containing declaration; redeclare use of same
10268         variable later.
10270         * pic/pic.y (text_expr): Delete production that allows
10271         parenthesised text_expr.
10272         (expr): Allow a conditional_expr to appear in parentheses.
10273         (conditional_expr): Rename to any_expr.
10275         * mm: Install new version 1.01 from jh.
10277         * lib/font.c (font::get_width): Cache scaled widths.
10278         (font::font): Initialize widths_cache.
10279         (font::~font): Destroy widths_cache.
10280         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
10282 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
10284         * c++test.c, c++test.ref: New files.
10285         * Makefile: Check that the C++ compiler works.
10287         * ps/tmac.pspic (PSPIC): Do a break.
10289         * ps/tmac.ps: Move definition of PSPIC into...
10290         * ps/tmac.pspic: New file.
10291         (PSPIC): Draw box around picture, but make it invisible to grops.
10292         * ps/tmac.ps: Load tmac.pspic.
10293         * ps/Makefile: Install tmac.pspic.
10295 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
10297         * lib/font.c (scale_round): If n is negative,
10298         subtract .5 before truncating floating point result.
10300         * lib/fontfile.c: Include <errno.h>.
10302 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
10304         * driver/input.c (get_char): Inline. Don't update current_lineno.
10305         Change callers to up date current_lineno if necessary.
10306         Use get_char() instead of getc(current_file).
10308 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
10310         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
10312 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
10314         * tty/tty.c (tmac.tty): Define \(rg as (R).
10316 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
10318         * lib/lib.h: New define a_delete.
10319         * Use a_delete instead of delete when deleting an array of objects
10320         without destructors.
10322         * lib/lib.h: Rename adelete to ad_delete.
10323         * Change uses of adelete.
10325 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
10327         * eqn/eqn.y: Include lib.h.
10329         * troff/node.c (grow_font_table): Delete old_font_table.
10331         * mm: Install new version from jh.
10333 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
10335         * tbl/table.h (format_type): Make global instead of local to class
10336         entry_format.  Prefix enumerators with FORMAT_.
10337         * tbl/table.c, tbl/main.c: Corresponding changes.
10338         * refer/token.h (token_type): Make global.  Prefix enumerators
10339         with TOKEN_.
10340         * refer/token.[ch]: Corresponding changes.
10341         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
10343         * troff/div.c (node::set_vertical_size): Don't name argument.
10345 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
10347         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
10348         * lib/lib.h: Define adelete accordingly.
10349         * pic/object.c (graphic_object::graphic_object):
10350         * tbl/main.c (format::~format):
10351         * tbl/table.c (table::~table):
10352         * refer/ref.c (reference::~reference, reference::merge,
10353         reference::insert_field, reference::delete_field): Use adelete.
10355         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
10356         * refer/token.h:
10357         * tbl/table.h: Corresponding changes.
10359         * common.c (common_output::dashed_arc, common_output::dotted_arc):
10360         Ensure total_angle is positive.
10362 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
10364         * refer/ref.c (reference::merge, reference::insert_field,
10365         reference::delete_field): Avoid delete[0].
10367         * refer/token.c (init_special_chars): Move calls to cmupper
10368         outside calls to init_two_char_letter to work around bug in gcc
10369         2.0.
10371 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
10373         * lib/new.c (operator new): Use __builtin_new for g++.
10375         * pic/object.c (graphic_object::~graphic_object):  Don't use
10376         delete [] on 0.
10378         * pic/object.c (output::compute_scale): Initialize max_width and
10379         max_height.
10381 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
10383         * troff/input.c (write_request): Call fflush.
10385         * troff/node.h (class composite_node): Move declaration to node.c
10386         * troff/input.c (charinfo_to_node): Rename to ...
10387         (charinfo_to_node_list): Return node list rather than composite
10388         node.
10389         * troff/node.c (make_composite_node): New function.
10390         (make_node, add_char): Call make_composite_node instead of
10391         charinfo_to_node.
10392         (class composite_node): Add a tfont * member.  Delete font_size
10393         member.
10394         (composite_node::composite_node, composite_node::copy,
10395         composite_node::size): Corresponding changes.
10396         (composite_node::tprint): Provide constant spacing, emboldening
10397         and track kerning as specified in tfont.
10398         (composite_node::width): Change width calculation accordingly.
10399         * troff/env.h (environment::composite): New member.
10400         (environment::is_composite, environment::set_composite): New
10401         functions.
10402         * troff/env.c (environment::environment): Initialize composite.
10403         * troff/input.c (charinfo_to_node): Call
10404         environment::set_composite.
10405         * troff/node.c (make_composite_node, make_glyph_node): Use the
10406         plain version of the tfont if the environment is composite.
10408         * troff/node.c (font_info::get_space_width): Additional argument
10409         giving space_size.  Handle constant space correctly. Scale by
10410         space_size unless constant spaced.
10411         (env_sentence_space_width): New function.
10412         * troff/node.h: Declare it.
10413         * troff/env.h (environment::get_space_size,
10414         environment::get_sentence_space_size,
10415         environment::get_narrow_space_width,
10416         environment::get_half_narrow_space_width): Make inline.
10417         (environment::get_space_width): Make inline.  Just call
10418         env_space_width.
10419         * troff/env.c: Delete definitions for funtions made inline.
10420         (environment::space_newline, environment::space): Use
10421         env_sentence_space_width(). Don't scale by space_size.
10422         * troff/node.h: Move declarations of env*space_width() functions
10423         into env.h.
10425 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
10427         * macros/tmac.s (PS): Don't try to set negative indent.
10429 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
10431         * pic/pic.y: Fix min function.
10433 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
10435         * man/mdate.sh: Clear LANGUAGE.
10437 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
10439         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
10440         * pic/lex.c: New COMMAND keyword.
10441         * pic/pic.y (print_args, print_arg): New rules.
10442         (placeless_element): Use print_args for PRINT.
10443         New COMMAND element.
10445 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
10447         * troff/input.c (terminal): Handle missing argument correctly.
10449         * pic/pic.y (text_expr): New rule.
10451         * pic/pic.y: Implement := operator.
10453 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
10455         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
10456         mdoc.
10458 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
10460         * ps/devps/dingbatsrmap: Include this in the distribution.
10462         * macros/tmac.doc: Replace with new version from 2nd Networking
10463         Release. Fix loading of doc-* files.
10464         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
10465         * macros/tmac.doc.old: New file.  Apply fixes that had been
10466         applied to old tmac.doc.
10467         * macros/tmac.andoc: Check that we're running under groff.
10468         * macros/Makefile: Rework.
10470 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
10472         * tbl/table.h (format_type): 
10473         * refer/token.h (token_type): If NESTED_TYPES is defined, use
10474         typedef to make these types visible at file scope.
10475         * Makefile: Add NESTED_TYPES configuration option.
10477         * troff/div.c (mark): At the top level use the value of
10478         nl_reg_contents rather than the current vertical position.
10480 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
10482         * tty/tty.c: Implement \D for horizontal or vertical lines.
10483         (tty_printer::set_char): Use vec_used+2 as serial number.
10484         Don't allow size of vector to exceed USHRT_MAX-2.
10485         Split off part into...
10486         (tty_printer::add_char): New function.
10487         (tty_printer::draw): New function.
10488         (compare_glyph): Handle equal serial numbers.
10489         (tty_printer::end_page): Handle overstruck characters from \D.
10490         (main, usage): Implement -d option.
10492 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
10494         * tbl/main.c (process_format):
10495         * eqn/text.c (split_text):
10496         * troff/input.c (token::next): Use inner block for declarations
10497         with initializers in switch statement.
10499 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
10501         * pic/common.c (common_output::dash_line): Cope with zero-length
10502         lines.
10504 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
10506         * Version 1.04 released.
10508 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
10510         * macros/tmac.an (TH): Define a macro an-init to define variables
10511         based on command line arguments.
10512         (an-header): Call it.
10514 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
10516         * Makefile (install.mm): Rename to install.dwbmm.
10518         * Makefile: Integrate mm.
10519         * mm: New directory.
10521 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
10523         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
10524         <sys/types.h>.
10526         * pic/troff.c (troff_output::simple_spline,
10527         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
10528         shadowing parameter.
10530         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
10532         * lib/ptable.h: Add explicit casts when converting from unsigned
10533         long to unsigned.
10535         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
10536         * dvi/devdvi/Makefile: Install SA, SB.
10538         * refer/indxbib.c: Add declaration of mktemp.
10540         * refer/lookbib.c: Add declaration of isatty.
10542 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
10544         * pic/lex.c (interpolate_macro_with_args):  While collecting
10545         arguments, keep track of whether we're in a string.
10547 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
10549         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
10550         down with \v, so as to avoid problems with top of page trap
10551         setting no space mode.
10553 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
10555         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
10557 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
10559         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
10560         Improve error message.
10562 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
10564         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
10565         printf("%03o");
10567 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
10569         * groff.c (possible_command::execp): Always use _exit() after a
10570         failed exec.
10572         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
10573         NO_SYS_WAIT_H   configuration options.
10574         * groff.c: Use these options.  Use POSIX-style macros to extract
10575         fields from the status returned by wait().
10577 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
10579         * tbl/table.c (table::compute_separation_factor): Allow the
10580         separation factor to drop to 0.
10582 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
10584         * refer/search.c: Include <errno.h>.
10586 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
10588         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
10590         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
10591         C++. 
10593         * pic/lex.c (input_stack::bol): Move definition out of class body.
10595         * pic/main.c: On MSDOS munge argv[0].
10597         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
10599         * lib/ptable.c (hash_string): Use unsigned long rather than
10600         unsigned.
10601         (next_ptable_size): Use unsigned rather than int.  Give an error
10602         message if we've hit the largest table size.
10603         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
10604         table size.
10606         * pic/object.h (object_spec): Make flags unsigned long.  Declare
10607         flags as const unisgned long rather than as enums.
10609         * pic/output.c: Deleted.
10611         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
10613         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
10614         Add additional argument.
10615         (line_entry::note_double_vrule_on_{left,right}): Set value of
10616         douvle_vrule_on_{right,left} flag according to argument.
10617         (simple_line_entry::simple_print,
10618         simple_line_entry::double_line_print): If adjacent to double vrule
10619         on a corner extend rather than shorten the rule by half the double
10620         vrule sep.
10622         * troff/number.c (parse_term): In checking for overflow, handle the
10623         case where the current horizontal position is negative.
10625 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
10627         * pic/object.c (draw_arrow): Check for object having zero length.
10629 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
10631         * eqn/main.c (do_file): Split off inline equation handling into...
10632         (inline_equation): New function.  Search for starting delimiter
10633         using...
10634         (delim_search): New function. Don't recognize a delimiter that
10635         occurs in the name of an escape sequence, number register, string
10636         etc.
10638 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
10640         * eqn/delim.c (delim_box::compute_metrics): Don't call
10641         define_extensible_string if left is 0.
10642         (delim_box::output):  Don't print the left delimiter if left is 0.
10643         (delim_box::debug_print): Check for left == 0 before calling printf.
10645 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
10647         * troff/Makefile (majorminor.c): Include only digits in
10648         minor_version.
10650 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
10652         * refer/dirnamemax.c: new file.
10653         * refer/genlimits.c: Deleted.
10654         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
10655         Don't check path length.
10656         * refer/Makefile: Add dir_name_max.o; delete genlimits.
10657         * Makefile: Add PATHCONF_MISSING option.
10659         * refer/indxbib.c (get_cwd): New function.
10660         (main): Use get_cwd().
10661         * lib/getcwd.c: New file.
10662         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
10663         GETCWD in SUBFLAGS.
10664         * lib/Makefile: Compile getcwd.o.
10666         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
10667         userdict.
10669         * refer/indxbib.c (main): Check success of mktemp.
10671         * lib/tmpfile.c: New file.
10672         * lib/Makefile: Add tmpfile.c.
10673         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
10674         * ps/ps.h: Delete declaration of mktemp().
10675         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
10676         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
10677         * driver/driver.h: No need now to include errno.h.
10679         * everywhere: Set errno to 0 before calling fopen().
10681         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
10682         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
10683         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
10685 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
10687         * troff/env.h (translate_space_to_dummy): Declare it.
10688         * troff/env.c (environment::space_newline, environment::space):
10689         If translate_space_to_dummy is set then make the width of spaces 0.
10690         * troff/input.c (translate): If the second character of a
10691         translation is a space, translate to unbreakable space.  If the
10692         first character is a space, set or clear translate_space_to_dummy
10693         according to whether the second character is \&.  Weird!
10695 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
10697         * groff.c (run_commands): Don't use non-zero exit code because a
10698         command gets SIGPIPE.
10700         * groff.c, groff.sh: Use -mXps with -TXps.
10702         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
10703         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
10704         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
10705         (ps_printer::special): New specials invis and endinvis.
10706         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
10707         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
10708         (ps_printer::end_page): Check that invis_count == 0.
10709         (ps_printer::invis_count): New member.
10710         (ps_printer::ps_printer): Initialize invis_count to 0.
10712         * troff/env.c (environment::hyphenate_line): Hyphenation
10713         indicator at beginning of word inhibits splitting after -, \(em
10714         etc.
10716         * pic/pic.y (element): Allow another element to follow } without
10717         any intervening separator.
10719 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
10721         * pic/lex.c (get_delimited): Allow tabs before delimiter.
10723 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
10725         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
10726         declaration of wait() in header files.
10727         * Makefile: Get rid of -DHAVE_UNION_WAIT.
10729         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
10731         * lib/lib.h: Declare return type of strerror as char *.
10733         * man/Makefile: Add g flag to sed substitutions.
10734         * Makefile (shgroff, bindist): Likewise.
10736 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
10738         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
10739         * ps/devps/prologue (PBEGIN): Define showpage after pushing
10740         userdict.
10742 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
10744         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
10745         userdict.
10747 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
10749         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
10750         group.
10752 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
10754         * troff/input.c (define_number_reg):  If currently undefined,
10755         don't define it if the argument is an invalid expression.
10757         * Makefile: Ignore return value of `if' commands without `else'
10758         parts.
10760         * Makefile: Split up CPPDEFINES into a series of separate
10761         configuration options.
10763         * troff/input.c (init_registers): Use time_t instead of long
10764         unless LONG_FOR_TIME_T is defined.  Use returned result rather
10765         than passing pointer.
10766         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
10768         * lib/Makefile (fontpath.h): Use gendef.
10770 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
10772         * troff/input.c (input_iterator::shift): Delete argument name.
10773         * troff/node.c (suppress_output_file::really_begin_page,
10774         suppress_output_file::really_transparent_char, node::ascii_print,
10775         node::tprint): Delete names of unused arguments.
10777 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
10779         * refer/label.y (string):  Pass $4 to command_error.
10781 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
10783         * Version 1.03 released.
10785 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
10787         * Makefile: Pass definition of SHELL in SUBFLAGS.
10789         * gendef: New file.
10790         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
10791         ps/Makefile: Use gendef to construct header files that are
10792         constructed from the Makefile.
10794         * macros/Makefile: make all should build stripped version of tmac.e.
10796         * refer/Makefile (clean): Remove y.output.
10798 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
10800         * ps/pfbtops.c (main): Add -v option which prints out a version
10801         number.
10802         * ps/Makefile (pfbtops): Link with libgroff.a.
10804 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
10806         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
10807         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
10809         * refer/lkbib.c (main): Always terminate reference with blank
10810         line.
10811         * refer/lookbib.c (main): Likewise.
10813         * refer/linear.c (file_buffer::load): Check that the file is not a
10814         binary file.
10816         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
10817         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
10818         Delete second inclusion of <sys/param.h>.
10820 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
10822         * troff/token.h (token::special): Deleted.
10824         * tbl/main.c (process_format): Rework so that opt->tab_char is
10825         recognized only when appropriate.
10827         * ps/Makefile (clean): Remove pfbtops.
10829 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
10831         * lib/font.c (text_file::next): Don't return if we have got a
10832         blank line.
10834 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
10836         * refer/refer.c (store_reference): Get hash code from old_table[i]
10837         when rehashing the table.
10839 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
10841         * eqn/box.c (box::top_level): Save size and prev size using \R and
10842         restore it afterwards. Set the size to the size at the beginning
10843         of the line.
10844         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
10845         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
10847         * refer/Makefile (limits.h): Use ./genlimits.
10849 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
10851         * refer/index.c: Delete declarations of stat() and fstat().
10853 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
10855         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
10857 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
10859         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
10861 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
10863         * troff/input.c (token::get_char): Handle \e.
10865         * refer/linear.c: Delete declarations of fstat() and stat().
10867 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
10869         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
10870         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
10872 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
10874         * troff/input.c (do_define_macro): Improve error handling for end
10875         of file while defining macro.
10877 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
10879         * eqn/box.h: Fix declaration of set_gsize.
10880         * eqn/box.c (set_gsize): Make argument const char *.
10881         (gsize): Declare as char *.
10882         * eqn/main.c (main): Don't convert gsize to int.
10883         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
10885         * Version 1.02 released.
10887 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
10889         * macros/tmac.andoc: New file.
10890         * macros/Makefile: Install tmac.andoc.
10892         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
10893         operator new and delete on OP_DELETE_BROKEN not being defined.
10894         * Makefile: Mention OP_DELETE_BROKEN.
10896 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
10898         * Makefile (bindist): Pass SUBFLAGS.
10900 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
10902         * Makefile, groff.c: Pass definitions to groff.c via device.h.
10904         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
10905         parameter.
10907         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
10909         * ps/ps.h, ps/psrm.c: Make comment_table and
10910         header_comment_table local to resource_manager::process_file.
10912         * groff.sh: With -TXps pass -printCommand option to gxditview.
10914         * groff.c (possible_command::print): Implement using
10915         append_arg_to_string.
10917         * xditview: Merge in new implementation with own ChangeLog.
10919 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
10921         * groff.c (main): Implement PRINT_OPTION.
10922         (append_arg_to_string): New command.
10923         (device_table): Set PRINT_OPTION flag for Xps.
10925 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
10927         * troff/groff.h: Rename to troff.h.
10929         * pic/lex.c (lookup_keyword, docmp): New functions.
10930         (get_token): Use new lookup_keyword.
10931         Don't include key.h.
10932         * pic/key.[ch], pic/pic.gperf: Deleted.
10933         * pic/Makefile: Remove gperf stuff.
10935         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
10936         into output.h.
10937         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
10939         * troff/Makefile, troff/node.c: Move definition of
10940         STORE_WIDTH into node.c.
10942         * etc/grog.pl, etc/grog.sh: Support -mdoc.
10944 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
10946         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
10947         dvi/devdvi/texb.map: Add lq and rq.
10948         dvi/devdvi: Regenerate fonts.
10949         * ps/devps/textmap: Add lq and rq.
10950         * ps/devps: Regenerate fonts.
10951         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
10952         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
10954         * pic/object.c (position_rectangle): When checking radius
10955         cope with possiblity that width or height is negative.
10956         (box_object::box_object): Have separate xrad and yrad with
10957         signs matching signs of dim components.
10958         (box_object::{north,south}_{east,west}): Use xrad and yrad.
10959         (box_object::print): With rounded boxes use absolute values
10960         for dim and rad arguments.
10962         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
10963         in fontpath.h.
10965         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
10967         * various files: Add explicit destructors to keep Saber CC +d
10968         happy.
10970 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
10972         * eqn/box.c (box::top_level): Restore fonts correctly after
10973         font changes in line containing inline equation.  Also
10974         restore previous font as well as current font.
10975         * eqn/pbox.h: Define necessary string and register names.
10977         * troff/input.c (token::next): Case 'R' calls do_register.
10978         (do_register): New function.
10980 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
10982         * groff.c, groff.sh: Support Xps device.  Allow each device
10983         to have a pseudo_name and a real_name.
10985         * groff.c (run_commands): Don't print `Broken pipe' messages.
10987         * ps/pfbtops.c: New file.
10988         * ps/Makefile: Add pfbtops.
10990         * troff/number.c (parse_term): Improved error message.
10992 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
10994         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
10996         * Makefile: Integrate refer.
10997         * refer: New directory.
10998         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
10999         man/lkbib.man: New files.
11000         * man/Makefile: Support refer man pages.
11002         * lib/lib.h: Declare is_prime.
11003         * lib/prime.c: New file.
11005         * troff/input.c (macro_source): New function.
11006         (init_input_requests): Bind "mso" to macro_source.
11008         * troff/env.c (environment::possibly_break_line): Maintain
11009         pointer to pointer to node to be split in ndp so as to avoid
11010         using address of freed node.
11012         * troff/env.c (environment::hyphenate_line): Maintain pointer to
11013         pointer to first node to be hyphenated in startp so as to
11014         avoid using address of freed node.
11016         * troff/env.c (class trie, class hyphen_trie): Make the
11017         elements of the trie be of type char not unsigned char.
11018         Declare arguments to be const char* instead of unsigned char *.
11019         
11020         * troff/env.c (hyphenate): Initialize hbuf[0].
11022         * troff/input.c (set_string): Declare p to be char * and cast
11023         *p to unsigned char when necessary.
11025         * troff/input.c (do_define_macro): Declare s to be const
11026         char*. Cast element to unisgned char when necessary, Declare
11027         d to be an int.  Handle EOF better.
11029         * troff/Makefile, troff/input.c: Different scheme for passing
11030         definitions of MACROPATH, HYPHENFILE and DEVICE.
11032 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
11034         * tty/devascii/R.proto: Delete entry for em.
11035         * tty/devlatin1/R.proto: Likewise.
11037 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
11039         * troff/input.c (translate): Stop when we get a space. Treat eof
11040         like newline.
11042         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
11044 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
11046         * tbl/main.c (process_format): A font name following a `f'
11047         modifier that starts with a digit can be only one character long.
11048         Also deal with EOF on the second character of the font name.
11050 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
11052         * troff/input.c (token::next): Turn \~ into an
11053         unbreakable_space_node.
11054         * troff/node.c (unbreakable_space_node): New class.
11055         * troff/node.h: Declare it.
11057 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
11059         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
11060         it's >= 0, before outputting it as a single byte.
11062 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
11064         * lib/font.c: Make font_char_metric::code an int.
11065         (font::get_code): Change return type to int.
11066         (font::load): Allow code to be arbitrary integer.
11067         * lib/font.h (font::get_code): Change return type to int.
11068         (font::number_to_index): Change argument type to int.
11069         * troff/input.c (token::next):  In case 'N', allow any value.
11070         Store value in token::val.
11071         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
11072         (token::get_char, token::add_to_node_list, token::process): Get
11073         number from val.
11074         (charinfo::set_number): Change argument to int.
11075         (charinfo::get_number):  Require that NUMBERED flag be set.
11076         (get_charinfo_by_number): Store numbered characters not between 0
11077         and 255 in a dictionary.
11078         * troff/charinfo.h (get_charinfo_by_number): Change argument type
11079         to int.
11080         (charinfo::number): Change type to int.
11081         (charinfo::set_number): Change type of set_number to int.
11082         * troff/node.c (troff_output_file::put_char_width,
11083         troff_output_file::put_char): Test whether character is numbered
11084         using charinfo::numbered().
11085         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
11086         values of num.
11087         * lib/nametoindex.c: New implementation to cope with arbitrary
11088         number characters.
11090         * troff/input.c (token::operator==): Test val for
11091         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
11092         TOKEN_SIZE.
11094         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
11095         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
11097 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
11099         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
11100         variable.
11102         * all Makefiles: rm targets of cp and >.
11104         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
11105         it.
11107         * eqn/lex.c (def_table): Add dollar.
11109 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
11111         * troff/input.c (do_width): Push back newline before closing delim
11112         like do_bracket.
11114 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
11116         * groff.c (possible_command::prepend_arg): New function.
11117         (main): Prepend device -m option.
11118         * groff.sh: Put device -m options before command-line options.
11120 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
11122         * macros/tmac.an (IP): Quote argument to TP.
11124         * ps/ps.c (main): New option -b, which sets...
11125         (broken_flags): New variable.
11126         (ps_printer::~ps_printer): Incorporate the setup section in the
11127         prolog if (broken_flags & NO_SETUP_SECTION).
11128         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
11129         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
11130         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
11131         ps_printer::print_needed_font_comment,
11132         ps_printer::print_supplied_font_comment,
11133         ps_printer::print_include_font_comments,
11134         ps_printer::lookup_doc_font, ps_printer::download_fonts,
11135         ps_printer::read_download_file, read_document_fonts, add_font,
11136         skip_line, parse_fonts_arg, document_font::document_font,
11137         document_font::~document_font, document_font::download,
11138         ps_output::include_file):  Deleted.
11139         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
11140         rather than %!PS-Adobe-2.0.  Make calls to
11141         resource_manager::need_font for each font that we used. Replace
11142         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
11143         print_supplied_font_comment, print_needed_font_comment by call to
11144         resource_manager::print_header_comments. Output %%Orientation
11145         comment. Output %%Requirements: numcopies comment if ncopies > 1.
11146         Don't output the prolog directly.  Instead call
11147         resource_manager::output_prolog.  Only define #copies when ncopies
11148         > 1.  Delete calls to print_include_font_comments  and
11149         download_fonts.  Add call to resource_manager::document_setup.
11150         (ps_printer::do_file): Call resource_manager::import_file instead
11151         of including it ourselves.
11152         (ps_printer::do_import): Likewise.  Also don't call
11153         merge_import_fonts. Push userdict on the dictionary stack before
11154         and pop it afterwards.
11155         Move declaration of ps_output into ps.h.
11156         * ps/psrm.c: New file implementing resource_manager class.
11157         * ps/ps.h: New file declaring ps_output and resource_manager
11158         classes.
11159         * ps/devps/zapfdr.ps:
11160         * ps/devps/symbolsl.ps:
11161         * ps/devps/prologue:  Use 3.0 conventions.
11162         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
11163         Add default definition of BROKEN_SPOOLER_FLAGS.
11164         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
11165         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
11167 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
11169         * etc/grog.pl: New file.
11170         * Makefile (GROG): New variable.
11171         Add GROG to SUBFLAGS.
11172         * etc/Makefile (GROG): New variable.
11173         (install.nobin): Install $(GROG) rather than grog.sh.
11175 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
11177         * eqn/special.c (special_box::compute_metrics): Make the input and
11178         output strings the same.  Get the new height and depth from the
11179         predefined height and depth registers.  Also make subscript kern
11180         and skew available.
11181         (special_box::compute_subscript_kern, special_box::compute_skew):
11182         New functions.
11184         * eqn/box.c (pointer_box::compute_skew,
11185         simple_box::compute_metrics, box::top_level)
11186         * eqn/text.c (prime_box::compute_metrics,
11187         prime_box::comput_subscript_kern)
11188         * eqn/limit.c (limit_box::compute_metrics):
11189         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
11190         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
11191         negative numbers in `nr' requests with a leading 0.
11193 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
11195         * eqn/special.c: New file.
11196         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
11197         Add new rule for simple.
11198         * eqn/lex.c (token_table): Add SPECIAL.
11199         * eqn/box.h: Declare make_special_box.
11200         * eqn/Makefile: Add special.[co].
11202 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
11204         * ps/devps/prologue: Possibly set packing to true while defining.
11205         Create grops dictionary here.  Initialize local variables before
11206         defining procedures.
11207         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
11208         the dictionary stack. Set strokeadjust and overprint to false if
11209         the relevant operators are defined.
11210         (PEND): New procedure.
11211         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
11212         prologue.  Do everything else in the setup section.
11213         (ps_printer::do_import): Just call PBEGIN and PEND around the
11214         picture. Also push userdict before, and pop it afterwards.
11216 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
11218         * troff/node.c (bracket_node::tprint): Brackets were being printed
11219         1m too low.
11221         * macros/tmac.an (SH, SS): Set fill mode.
11223 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
11225         * troff/div.c (top_level_diversion::begin_page): Set
11226         high_water_mark to 0.
11228 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
11230         * man/mdate.sh: New file.
11231         * man/mdate.c: Deleted.
11232         * man/Makefile: Use mdate.sh instead of mdate.
11233         (mdate): Deleted.
11235         * eqn/lex.c (do_gsize): Supply missing argument to error message.
11237 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
11239         * man/mdate.c: New file.
11240         * man/*.man: Replace modification date by @MDATE@.
11241         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
11242         (mdate): New target.
11244         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
11245         Remove illegal input characters.
11247 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
11249         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
11251 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
11253         * troff/div.c (begin_page): Change behaviour when
11254         !first_page_begun and !break_flag.
11256         * troff/input.c (do_name_test): Return 0 if argument is empty.
11258         * troff/input.c (read_long_escape_name): Require closing ] to be
11259         at same input level as opening [.
11261         * troff/input.c (read_increment_and_escape_name): New function.
11262         (get_copy, process_input_stack): Use this for \n.
11264 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
11266         * troff/div.c (top_level_diversion::begin_page): Ignore the
11267         current value of page_number if !first_page_begun.
11269         * groff.c (main): Fix declaration of buf.
11271         * troff/input.c (do_name_test): New function.
11272         (token::next): Implement \A.
11273         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
11274         (token::description, token::add_to_node_list, token::process):
11275         Handle TOKEN_ESCAPE.
11276         * troff/token.h: New token TOKEN_ESCAPE.
11278 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
11280         * pic/main.c (do_picture): Allow space before and after filename
11281         following `<'.  Check that the filename is not empty.
11283 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
11285         * Version 1.01 released. 
11287         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
11289         * dvi/tmac.dvi: ftr HR to H.
11291         * macros/tmac.e: Round up computation of $r.
11293         * xditview/tmac.X:  Don't give up completely in compatibility mode.
11294         Use \n(.s instead of \n[.s].
11296         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
11297         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
11298         Add u to factors inside \s[...]. Rename frac to dvi-frac.
11299         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
11300         short names in the char definitions.
11302         * ps/tmac.ps: Don't give up completely in compatibility mode.
11303         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
11304         quote in front of \n(.s. Add u to factors inside \s[...].
11306 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
11308         * tty/tmac.tty: Call the nroff request.
11310         * macros/tmac.e ((x, )x):  Better definitions that work properly
11311         in a diversion.
11312         (@0, @1): Helper macros for (x.
11314         * macros/tmac.e ($s, hl): Use \l rather than \D.
11316         * tty/tmac.tty: Make it work better in compatibility mode.
11317         (pchar): Rename to tty-char.
11319         * macros/tmac.e (@E): New macro.
11320         (r, i, b, rb, bi): Use @E.
11322         * macros/tmac.e (@F): Don't use (;...) syntax.
11324         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
11325         it was modified for groff.
11327         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
11329         * macros/tmac.e (<., .>): Removed.
11330         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
11332         * macros/tmac.e: Remove check that groff is being used.
11334         * macros/tmac.e (@C): Change families only if using groff; turn
11335         compatibility mode off while changing familes. Save compatibility
11336         mode before changing families and restore it afterwards.
11338         * macros/tmac.e (@h): Remove test for offset + line length.
11340         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
11341         (lo, th, ac): Define to call @S instead of using als.
11343         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
11344         the ratio of the vertical spacing to the point size in units
11345         expressed as a percentage.  Use these instead of $10r and $10R,
11346         Delete $10r and $10R.
11348         * lib/font.c (font::load): In default computation of space_width,
11349         divide by sizescale.  Use scale_round.
11351         * macros/tmac.an (TP): Don't call `nf'.
11352         (an-do-tag): Don't call `fi'.
11354 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
11356         * troff/input.c (process_input_stack): Handle the case where
11357         spaces at the beginning of an input line are followed by a
11358         newline.
11360 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
11362         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
11363         * groff.sh: Use pic -x with the dvi device.
11365         * dvi/devdvi/FontMakefile (H): Don't use -s.
11367         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
11368         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
11369         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
11370         in FONTS.
11372 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
11374         * ps/psfig.diff: New file.
11375         * ps/tmac.psfig: New file.
11377 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
11379         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
11380         (]-): Don't call ref*do-tl.
11382         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
11384         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
11385         (fn@do-FS): Rename to fn*do-FS.
11387         * troff/input.c (transparent_translate): New function.
11388         (process_input_stack): Apply transparent_translate before calling
11389         diversion::transparent_output(unsigned char).
11391 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
11393         * troff/input.c (do_define_macro): Define the macro before calling
11394         skip_line.
11396         * xditview/Makefile: Add DEVICES variable.  Change install target
11397         to use this.
11399 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
11401         * groff.c (run_commands): Handle the possibility that there are
11402         child processes other than those forked by us.
11404 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
11406         * lib/string.c (string::append): New function.
11407         * lib/stringclass.h: Declare it.
11409 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
11411         * eqn/main.c (main): New option -N which sets
11412         no_newline_in_delim_flag. 
11413         (do_file): If no_newline_in_delim_flag is set don't allow newlines
11414         in delimiters.
11415         * groff.c (main): Pass -N on to eqn.
11416         (help, synopsis): Mention -N.
11417         * groff.sh: Implement -N.
11419 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
11421         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
11422         (]-): Call ref*do-tl if ref*need-tl is non-zero.
11423         (XP): Allow as initializer.
11425 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
11427         * troff/env.c (environment::wrap_up_field): If field_spaces are
11428         non-zero and we have a current_tab, subtract padding from
11429         tab_distance.  If this makes tab_distance <= 0, use the next tab
11430         stop instead.  If there isn't any next tab or it's a left tab,
11431         wrap up the current tab.
11432         (environment::start_field): Initialize tab_precedes_field.
11433         (environment::wrap_up_tab): If there's a current field, update
11434         pre_field_width, field_distance and tab_precedes_field.
11435         * troff/env.h (environment::tab_precedes_field): New member.
11437 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
11439         * ps/ps.c (ps_printer::do_file): New function.
11440         (ps_printer::special): Bind to `file' special.
11441         (ps_printer::do_exec): Set ndefined_styles to 0.
11443 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
11445         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
11446         Avoid stripping first character from the start of unrecognized
11447         escapes.  Use lex_error instead of error to report errors.
11448         * eqn/lex.c (get_token): Rework handling of escapes.
11449         (lex_error): Move declaration into...
11450         * eqn/eqn.h.
11452         * xditview/xditview.c (main): Make -page option work.
11454         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
11456 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
11458         * macros/tmac.s (B2): Correct size of box.
11460 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
11462         * macros/tmac.s (B2): Postpone drawing the box until in the
11463         top-level diversion.
11465         * tty/tmac.tty: Add font translations for C, CR, CW.
11467         * groff.c (synopsis, help): Document -i.
11468         * groff.sh: Implement -i.
11470         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
11471         Simplify the construction of SN.
11473         * troff/number.c (parse_term): Give `|' a higher precedence.
11474         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
11475         accordingly.
11477         * macros/tmac.s (B2): Use par@finish instead of par@reset.
11479 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
11481         * lib/string.c (string::move): New function.
11482         * lib/stringclass.h: Declare it.
11484 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
11486         * troff/env.c (distribute_space): Add optional argument
11487         `force_forward'.
11488         (environment::wrap_up_field): Call distribute_space with
11489         `force_forward' argument of 1.
11491 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
11493         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
11494         Inline it.  Move reallocation into...
11495         (string::grow1): New function.
11496         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
11497         dependencies to include library header files.
11498         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
11500 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
11502         * macros/tmac.s (@NH): Use the same number registers than -ms does
11503         for the heading level counters.  Use the same string that -ms does
11504         for the number for this heading.
11506 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
11508         * lib/new.c (operator new): Cast result of malloc to char *.
11510         * troff/input.c (spring_trap, lookup_request): Add assert that nm
11511         is not null.
11513 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
11515         * groff.c (main): Support -i.
11517 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
11519         * pic/pic.h: Include <osfcn.h>.
11521         * ps/ps.c: Add declaration of mktemp.
11523         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
11524         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
11525         argument as union wait *.
11526         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
11527         argument to union wait *.
11529 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
11531         * tty/tmac.tty: Add definition of \(co.
11533         * pic/object.c (make_arc): Only increase radius when radius
11534         strictly less than d.
11535         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
11536         more than once.
11538         * troff/env.c (environment::environment(symbol),
11539         environment::environment(const environment *)):  Initialize
11540         input_trap_count.
11542 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
11544         * tbl/main.c (main): Add exit(0).
11546         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
11548         * pic/main.c (main):
11549         * eqn/main.c (main):
11550         * tbl/main.c (main):
11551         * etc/soelim.c (main):
11552         * driver/printer.c (printer::~printer):
11553         * troff/node.c (real_output_file::~real_output_file,
11554         real_output_file::flush):  Check for errors on stdout.
11556         * most files: Add 1991 to copyright notice.
11558         * macros/tmac.s: Don't test \n(.x and \n(.y.
11560         * troff/input.c (token::next): Rename `escape_char' label to
11561         `handle_escape_char' and `normal_char' label to
11562         `handle_normal_char'.
11564 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
11566         * groff.c (main, synopsis, help): Support -a option.
11567         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
11568         to trflags while parsing options.
11570 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
11572         * troff/number.c (parse_term): With `m', `M' and `n' scale
11573         indicators, convert scale factor to hunits before scaling.
11575 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
11577         * lib/font.c (scale_round): Better test for overflow when n is
11578         negative.
11580 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
11582         * tbl/main.c (process_format): Add second argument of type
11583         options*. Change callers.  Allow opt->tab_char as well as '\t'
11584         between format items.
11586 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
11588         * macros/tmac.an (PD): With no arguments, make sure register PD is
11589         at least \n[.V].
11590         (TH): Call PD with no argument, instead of setting register PD
11591         directly.
11593 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
11595         * Version 1.00 released.
11597 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
11599         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
11601         * dvi/devdvi/DESC: Mount CW instead of CR.
11603         * dvi/tmac.dvi: Add definition of \(tm.
11605         * dvi/devdvi/texsy.map: Add lh, and rh.
11606         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
11607         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
11609         * dvi/devdvi/FontMakefile: Generate H from cmss10.
11610         * dvi/devdvi/Makefile: Install H.
11611         * dvi/devdvi/H: New file.
11613 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
11615         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
11616         be 0.
11618 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
11620         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
11622         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
11624         * macros/tmac.s (@EN): Handle the case where the equation is empty
11625         but the label is not.
11627 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
11629         * troff/groff.h: New warning category WARN_SPACE.
11630         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
11631         WARN_SPACE to warning_table.
11632         (interpolate_macro): Give a warning of type WARN_SPACE if the name
11633         is longer than two characters and is not defined, but the first
11634         two characters do make a defined name.
11636         * PROBLEMS: New file.
11638         * CHANGES: New file.
11639         * README-0.6, README-1.00: Deleted.
11641         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
11642         * xditview/devX75/Makefile: Make devX75-12.
11643         * xditview/devX100/Makefile: Make devX100-12.
11645         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
11646         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
11648 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
11650         * README-0.7: Rename to README-1.00.
11652         * macros/tmac.pic: New file.
11653         * macros/Makefile (install.nobin): Install tmac.pic.
11655 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
11657         * troff/env.c (hyphen_word): Correct the test for whether the
11658         token is a hyphen.  Reset npos to 0.
11660         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
11662 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
11664         * macros/tmac.s (ds*common-end): Call par*reset.
11665         (PE): Likewise.
11666         (par@reset-indent): Deleted.
11668         * macros/tmac.s (@IP): Divert the label.
11670 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
11672         * xditview/draw.c (setGC): Use a line width of .1m rather than
11673         .04m by default; round rather than truncate value.
11675         * tbl/table.c (class empty_entry): New class.
11676         (empty_entry::empty_entry, empty_entry::line_type): New functions.
11677         (table::add_entry): Represent empty entries by objects of type
11678         empty_entry.
11679         (table_entry::line_type): Return -1.
11680         (table::determine_row_type): Ignore entries with line_type 0.
11681         Treat type -1 as non-lines.
11683 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
11685         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
11686         macros/tmac.s: Rename \(-d to \(Sd.
11688 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
11690         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
11691         * xditview/libXdvi/DviChar.c: Likewise.
11692         * dvi/devdvi/texsy.map: Add `<<', `>>'.
11694 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
11696         * troff/div.c (top_level_diversion::begin_page): Call
11697         init_output() if the_output is 0.
11699 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
11701         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
11702         ESCAPE_c.
11703         (get_copy): Turn \E into ESCAPE_E.
11704         (token::process, asciify): Handle ESCAPE_E.
11706         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
11707         (RD): New macro.
11708         (DS): Implement `.DS R'.
11710 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
11712         * macros/tmac.s (FS): New macro.
11714         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
11716         * macros/tmac.s (cov*tl-init): Remove after first execution
11717         instead of aliasing to @nop.  Call top of page macro explicitly
11718         instead of setting trap; call @init first.  Set pg@top as top of
11719         page macro.
11720         (cov*auto-init): Deleted.  Set cov*tl-init instead of
11721         cov*auto-init as top of page trap. 
11722         (TL, LP): Do a break instead of calling cov*tl-init.
11723         (cov*print): With RP format but no TL, alias FS and FE to @FS and
11724         @FE; in this case also give a warning and always start another
11725         page. No need to set pg@top here.
11726         (cov*tl-init): Rename to cov*first-page-init.
11728         * macros/tmac.s (RP): Do `.pn 0'.
11729         (cov*tl-init): With RP format don't do `.pn 0'.
11731         * macros/tmac.s (pg@cs-top): Set no space mode.
11733         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
11734         (cov*ab-init): Alias TL, AU and AI to these.
11736 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
11738         * macros/tmac.s (@EQ): Move the space before the equation into @EN
11739         (@EN): Do nothing unless \n[dl] is > 0.
11741 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
11743         * pic/object.c (ellipse_object::radius): New function.
11745         * VERSION: Change version to 0.7.
11747         * tbl/table.c (block_entry::do_divert): Declare return type as
11748         void.
11749         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
11751 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
11753         * troff/column.c: New file.
11754         * troff/Makefile: Corresponding changes.
11756         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
11757         Friend of vunits.
11759         * troff/div.c (top_level_diversion::space): If the space causes
11760         the first-page transition and springs a trap, truncate the space
11761         to 0.
11763 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
11765         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
11766         the document.
11768         * pic/troff.c (troff_output::line_thickness,
11769         troff_output::set_fill): Do a horizontal motion to compensate for
11770         the width of the \D escape sequence.
11772 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
11774         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
11775         (not X75).
11777         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
11778         to printf.
11780         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
11781         Supply empty definition.
11782         (text_entry::simple_print, simple_text_entry::simple_print):
11783         Delete declarations.
11784         (table::add_entry): Represent empty entries by objects of type
11785         `simple_entry'.
11787 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
11789         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
11791         * tbl/table.c (left_text_entry::add_tab): New function.
11793         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
11794         initialize like LP.
11796 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
11798         * troff/env.c (environment::start_field): Give an error message if
11799         there is no next tab.
11801 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
11803         * troff/env.c (hyphenate): Skip initial elements with zero
11804         hyphenation code.
11806         * macros/tmac.s (par@init): Keep VS in points rather than units.
11808 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
11810         * pic/main.c (main): Implement `-c' option.
11811         * pic/output.h: Declare make_tpic_output().
11812         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
11813         protected.
11814         (tpic_output): New class.
11815         (tpic_output::tpic_output, tpic_output::set_pen_size,
11816         tpic_output::command, make_tpic_output): New functions.
11818 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
11820         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
11821         if they're not already defined.
11822         * tbl/table.c (init_output): Don't test \n(.g.
11824         * troff/input.c (do_if_request): Delete `g' condition. Recognize
11825         `d', `r' and `c' conditions even in compatibility mode.
11827 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
11829         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
11830         box.
11832 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
11834         * troff/env.h (environment::prev_line_interrupted): New member.
11835         (environment::get_prev_line_interrupted): New function.
11836         * troff/env.c (environment::newline): Set prev_line_interrupted.
11837         (environment::environment(const environment *),
11838         environment::environment(symbol)): Initialize
11839         prev_line_interrupted.
11840         * troff/input.c (process_input_stack): Don't give special
11841         treatment to space and newline at the beginning of the line if the
11842         previous line was interrupted.
11844 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
11846         * eqn/eqn.y: Disallow PRIME by itself.
11847         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
11848         PRIME.
11849         (def_table): Remove definition of '.  Define prime to be `.
11851         * eqn/eqn.y: Split off part of rule `script' into a new rule
11852         `nonsup'.
11854 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
11856         * macros/tmac.s ({, }): New string aliases.
11858 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
11860         * README-0.7: New file.
11862 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
11864         * macros/tmac.s: New file.
11865         * man/groff_ms.man: New file.
11866         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
11867         * Makefile.bd: Similarily.
11868         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
11869         definition of TMAC_S.
11870         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
11871         * macros/TODO: New file.
11873 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
11875         * troff/env.c (right_justify): New function.
11876         (init_env_requests): Bind this to request "rj".
11877         (center_lines): Set right_justify_lines to 0. If we get a bad
11878         integer, center 1 line.
11879         (environment::environment(symbol), environment::environment(const
11880         environment *)): Initialize right_justify_lines.
11881         (environment::get_right_justify_lines): New function.
11882         (init_env_requests): Bind this to number_register ".rj".
11884         * troff/env.c (environment::choose_breakpoint): Implement
11885         hyphenation_margin and hyphenation_space.
11886         (environment::get_hyphenation_space,
11887         environment::get_hyphenation_margin): New functions.
11888         (init_env_requests): Bind these to .hys and .hym.
11889         (hyphenation_space_request, hyphenation_margin_request): New
11890         functions
11891         (init_env_requests): Bind these to hys and hym.
11892         (environment::environment(symbol), environment::environment(const
11893         environment *)): Initialize hyphenation_margin and
11894         hyphenation_space.
11895         * troff/env.h: Corresponding changes to class environment.
11897 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
11899         * troff/div.c (blank_line): Always do a break.
11901         * eqn/box.c (do_text): Turn off escapes while appending text to
11902         string.
11904 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
11906         * troff/input.c (while_break_request, while_continue_request): New
11907         functions.
11908         (init_input_requests): Bind these to "break" and "continue".
11909         (while_depth, while_break_flag): New variables.
11910         (while_request): Update while_depth.  Break out of loop if
11911         while_break_flag is set.
11913 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
11915         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
11916         rather than 0.
11918 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
11920         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
11922         * stringify: New file.
11923         * Makefile (groff.o): Use stringify.
11925         * xditview/tmac.X: Remove definition of \(rn.
11926         * xditview/libXdvi/DviChar.c: Remove radicalex from
11927         Adobe_symbol_map.
11929 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
11931         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
11932         (alphabetic_block_entry::alphabetic_block_entry,
11933         alphabetic_block_entry::divert, alphabetic_block_entry::print):
11934         New functions.
11935         (block_entry::divert): Split off body into ...
11936         (block_entry::do_divert): If the block is alphabetic, subtract 2n
11937         from the line length; also update the span width to dl+2n, and the
11938         alphabetic span width to dl.
11940         * driver/input.c (do_file):  While reading argument to D command,
11941         when expanding buffer, multiply szp by sizeof(int) rather than 2
11942         in the argument to memcpy.
11944         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
11945         width of alphabetic columns.
11947 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
11949         * troff/node.c (lookup_family): Supply second argument to lookup.
11951         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
11952         search, return immediately if v is 0.
11954         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
11955         (troff_output::start_picture): Set this reg.
11956         (troff_output::end_picture): Remove this reg
11957         * eqn/box.c (box::extra_space): Don't produce `\x's if
11958         EQN_NO_EXTRA_SPACE_REG is defined.
11960         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
11961         * eqn/text.c (split_text): Map ' to \(fm when it's the first
11962         character.
11964 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
11966         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
11967         requests.
11969         * troff/div.c (top_level_diversion::top_level_diversion):
11970         Initialize page_number to 0.
11972 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
11974         * groff/troff (environment::environment(const environment *)):
11975         Initialize name to e->name, rather than "anonymous".
11977 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
11979         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
11980         requested_page.  Split middle part into ...
11981         (FindPage): New function.
11982         (SetValues): If we don't yet know the last page, and the requested
11983         page is greater than the current page, call FindPage.
11984         Update the font_map_string before doing this.
11986         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
11987         Translate \(lh and \(rh into left and right double arrows.
11989         * troff/node.c (class hyphen_inhibitor_node): New class.
11990         (hyphen_inhibitor_node::hyphen_inhibitor_node,
11991         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
11992         hyphen_inhibitor_node::type,
11993         hyphen_inhibitor_node::get_hyphenation_type): New functions.
11994         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
11995         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
11996         word.
11998 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
12000         * troff/node.h (dummy_node::get_hyphenation_type,
12001         transparent_dummy_node::get_hyphenation_type):  Declare them.
12002         * troff/node.c: (dummy_node::get_hyphenation_type,
12003         transparent_dummy_node::get_hyphenation_type): New functions.
12005 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
12007         * xditview/libXdvi/draw.c: If M_PI not defined after including
12008         math.h, then define it.
12010         * xditview/Makefile: Add definition of AR. Pass it to the submake
12011         in libXdvi.
12012         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
12014 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
12016         * troff/dictionary.h (object_dictionary::alias): Declare return
12017         value as int.
12018         * troff/dictionary.c (object_dictionary::alias): Return non-zero
12019         if the old name was defined.
12020         * troff/input.c (alias_macro): Give a warning if the old name was
12021         not defined.
12022         * troff/reg.c (alias_reg): Likewise.
12024 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
12026         * troff/input.c (token::next): Delete implementation of \R.
12028         * macros/Makefile: Strip comments from tmac.e while installing it.
12030         * troff/input.c: New variable `nroff_mode'.
12031         (troff_request, nroff_request): New functions.
12032         (init_input_requests): Bind `troff' and `nroff' to troff_request
12033         and nroff_request.
12034         (do_if_request): Compute results of t and n conditions from
12035         nroff_mode.
12037         * text/text.c (split_text): Fix typo in >=.
12039         * eqn/lex.c: Add definition of `==' to def_table.
12041 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
12043         * pic/tex.c (tex_output::start_picture): Change the definitions of
12044         \graph and \graphtemp so that they work properly with Plain TeX.
12046         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
12047         argument to `ar' is not less than the first.
12049         * pic/pic.y: Allow a comma between elements of the variable list
12050         in the argument to `reset'.
12052         * pic/object.c (arc_object::arc_object): Fix computation of
12053         radius.
12055         * eqn/main.c (main): Add exit(0).
12057 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
12059         * troff/div.c (begin_page): Test no_space_mode after doing the
12060         break, but still push the page ejector cookie before doing the
12061         break.  Also set the next page number after doing the break.
12062         
12063         * xditview/xditview.c (NewFile): Don't set the title and icon name
12064         if this is the first file and its name is `-'.
12065         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
12066         the X75 and X100 devices.
12067         (main): If a device has the XT_OPTION flag set and there's exactly
12068         one file argument, pass the driver -xrm and -title options to set
12069         the icon name and window title to the name of the file.
12071         * troff/env.c (environment_switch): If there was an argument but
12072         it wasn't a valid number or name, then pop an environment but
12073         don't give an error message on underflow.
12075         * troff/number.c (start_number): Correct spelling in error message.
12077         * troff/input.c (token::delimiter): Don't print an error message
12078         if err is false.
12080         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
12081         ParseDrawFunction if dw->display_enable is true.
12083 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
12085         * pic/pic.y: Parse text positioning like normal attributes, so as
12086         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
12087         positioning attribute.
12089 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
12091         * tbl/main.c (process_data): When in state START while reading a
12092         text block, don't change to state MIDDLE if c is a newline.
12094 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
12096         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
12097         so as to avoid shadowing parameter.
12099 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
12101         * tbl/table.c (trim_space): Deleted.
12102         (table::add_entry): Don't call trim_space.
12104 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
12106         * VERSION: Change version to 0.6.
12108         * troff/number.c (parse_expr): Make == work.
12110 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
12112         * man/grog.man: New file.
12113         * man/Makefile: Add grog.n to MAN1PAGES.
12114         * etc/grog.sh: New file.
12115         * etc/Makefile: Install grog.sh as grog.
12117 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
12119         * troff/input.c (token::next): Implement \E.
12121 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
12123         * xditview/tmac.X: Change font translations to match tmac.ps.
12125         * troff/input.c (non_empty_name_warning): Don't give a warning if
12126         `\{' terminates the name.
12128 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
12130         * ps/devps/symbol.diff: New file.
12131         * ps/devps/FontMakefile: Mention symbol.diff.
12133 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
12135         * troff/node.c (font_position): Use get_long_name to read the
12136         external_name.
12138         * troff/env.c (environment_switch): If we get a number that's < 0
12139         or >= NENVIRONMENTS, treat it like a name.
12140         Change NENVIRONMENTS to 10.
12142         * troff/groff.h: Remove definition of FONTS_MAX.
12143         * troff/node.h (class font_family): Make map a pointer instead of
12144         an array. Add a map_size member. Make it a class. Make nm const
12145         and public. Make invalidate_fontno a friend.
12146         * troff/node.c: Define font_table_size. Make font_info a pointer
12147         rather than an array.
12148         (class troff_output_file): Allocate font_position dynamically. Add
12149         nfont_positions member.
12150         (troff_output_file::set_font): Grow font_position if necessary.
12151         (troff_output_file::~troff_output_file): Delete font_position.
12152         (troff_output_file::troff_output_file): Allocate font_position.
12153         (grow_font_table): New function.
12154         (troff_output_file::really_begin_page,
12155         troff_output_file:really_copy_page): Use nfont_positions rather
12156         than FONTS_MAX.
12157         (mount_font_no_translate, mount_style): Call grow_font_table if
12158         necessary.
12159         (font_family::font_family): Allocate map.
12160         (font_family::make_definite): Grow map if necessary. Use
12161         font_table_size instead of FONTS_MAX.
12162         (font_family::~font_family): New function.
12163         (invalidate_fontno): Use font_family::map_size.
12164         (get_fontno, env_space_width, env_half_narrow_space_width,
12165         env_narrow_space_width, symbol_fotno, is_good_fontno,
12166         get_bold_fontno, make_glyph_node): Use font_table_size rather than
12167         FONTS_MAX.
12168         (next_available_font_position): Never return 0.
12170 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
12172         * ps/tmac.ps: Add font translations for compatibility with dpost.
12174 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
12176         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
12177         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
12178         Move definitions baseline_sep, shift_down, column_sep,
12179         matrix_side_sep into...
12180         * eqn/box.c: Add them to param_table.
12181         * eqn/pbox.h: Add declarations to pbox.h.
12183         * troff/input.c (set_string): Cast value to unsigned char *.
12185         * troff/token.h (process_input_stack): Declare it static before
12186         declaring it a friend.
12188 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
12190         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
12191         and bottom.
12192         * dvi/devdvi/EX: Regenerate.
12194         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
12195         transparent.
12197 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
12199         * eqn/lex.c: In defaults_table, make definition of `dot' call
12200         `dot_def'.  Don't explicitly make it roman.  Similarily for other
12201         accents.
12203         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
12204         argument.
12205         (for_input::get, for_input::peek): Use this.
12206         (do_for): Add by_is_multiplicative argument.
12207         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
12208         Change semantic value of optional_by to be a double plus a flag
12209         saying whethet the by clause is multiplicative.
12211         * eqn/lex.c (get_delimited_text): Remember location of start of
12212         definition.  Improve error handling when EOF is encountered.
12214         * lib/font.h: Rename handle_x_command to
12215         handle_unknown_font_command.
12216         * lib/font.c (font::load): Call handle_unknown_font_command for
12217         any unknown command in the font description file.  Don't call
12218         handle_x_command. Include the name of the command in the argv.
12219         Improve message for unknown command after kernpairs or charset
12220         command.
12221         * ps/ps.c (ps_font::handle_x_command): Rename to
12222         handle_unknown_font_command.  Remove message about `x download'
12223         command.  Give error message for wrong number of arguments.
12224         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
12225         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
12226         handle_unknown_font_command. Give an error message for wrong
12227         number of arguments.  Rename design_size to designsize.
12228         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
12229         checksum', `designsize' instead of `design_size'.
12231 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
12233         * eqn/*.[chy]: Change underaccent to uaccent.
12235         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
12236         give it the same precedence as ACCENT.
12237         * eqn/other.c (make_underaccent_box): New function.
12238         * eqn/box.h: Declare it.
12239         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
12240         def_table.
12242 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
12244         * pic/pic.y (reset_all): New function. Called in rule for RESET.
12245         (parse_init): Call reset_all.
12246         (define_variable): When defining scale reset only those
12247         pre-defined variables that are scaled.
12248         (defaults_table): Add `scale' as non-scaled value.
12250         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
12251         together with the text; allow any number of positioning words;
12252         allow center as a positioning word.
12254         * pic/object.c (output::compute_scale): Get picture maximum height
12255         and width from variables called maxpswid and maxpsht.
12256         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
12258 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
12260         * pic/object.c (object_spec::make_text): Multiply textht by number
12261         of text items.
12263         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
12264         occur.
12265         (do_sprintf): New function.
12266         (pic.gperf): Add sprintf token.
12267         (text, sprintf): New rules.
12269         * pic/pic.y: `rand()' with no arguments returns a random number
12270         in the range [0,1).
12272         * pic/pic.y: Allow a bare expression to be an attribute: change
12273         precedences to support this.  Change optional_ordinal rule to
12274         optional_ordinal_last to avoid reduce/reduce conflict.
12275         * pic/object.c (object_spec::object_spec): Initialize direction.
12277         * pic/pic.y: Implement ^ operator meaning exponentiation.
12279         * troff/node.h: Add default argument to mount_font.
12280         * troff/node.c (font_position): Read an optional third argument
12281         giving the external_name.
12282         (mount_font): Add optional argument giving the external_name.
12283         (mount_font_not_translate): Have additional argument giving
12284         external name.  Use this name to load the font.  Pass both names
12285         to font_info::font_info.
12286         (font_info::font_info): Have additional argument giving
12287         external_name.
12288         (class tfont): New member external_name.
12289         (font_info::get_tfont): Use external name to construct tfont_spec.
12291 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
12293         * eqn/lex.c (init_table): Add argument giving device.  Define
12294         name of device to be "1".
12295         (do_ifdef): Counts as true if the argument has been defined with
12296         `define'.
12297         * eqn/main.c (main): Call init_table with device argument. Make
12298         device local to main.
12299         * eqn/eqn.h: Change declaration of init_table. Remove declaration
12300         of device.
12302         * pic/lex.c (get_delimited): Allow text to be delimited by
12303         matching {}s.  Don't recognize ending delimiter within a string.
12305         * troff/input.c (get_delim_name): New function.
12306         (token::next): Implement \C.
12308         * lib/font.c (font::load): Grok ---.  Add an alias for each
12309         character based on its code.
12310         (font::get_code_width): Deleted.
12311         * lib/font.h (class font): Declare font::number_to_index().
12312         Remove declaration of font::get_code_width.
12313         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
12314         to indices of named characters.
12315         (font::number_to_index): New function.
12316         * troff/input.c (font::number_to_index): New function.
12317         (get_charinfo_by_number, charinfo::get_number,
12318         charinfo::set_number): New functions.
12319         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
12320         (token::process, token::description, token::get_char,
12321         token::add_to_node_list, token::operator==): Handle
12322         TOKEN_NUMBERED_CHAR.
12323         * troff/charinfo.h: Declare get_charinfo_by_number,
12324         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
12325         charinfo class.
12326         (charinfo::numbered): New function.
12327         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
12328         * troff/env.h (class environment): Remove declaration of ...
12329         * troff/env.c (environment::make_numbered_char_node): Deleted.
12330         * troff/node.c (make_numbered_node): Deleted.
12331         (class numbered_glyph_node): Remove.
12332         (troff_output_file::put_char_width, troff_output_file::put_char):
12333         Handle numbered chars.
12334         (troff_output_file::numbered_char): Removed.
12335         (tfont::get_code_width): Removed.
12336         (make_glyph_node): Don't search special fonts for numbered
12337         characters.
12338         * troff/node.h: Remove declaration of make_numbered_node.
12339         * driver/input.c (do_file): Handle N command.
12340         * driver/printer.h: Add declaration of ...
12341         * driver/printer.c (printer::set_numbered_char): New function.
12342         * dvi/tfmtodit.c (main): Generate unnamed entries.
12343         * ps/devps/afmtodit: Likewise.
12344         * xditview/xtotroff.c (MapFont): Likewise.
12345         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
12347         * tbl/main.c (process_format): If multiple widths are specified
12348         for a column but all the widths are the same, don't give an error
12349         message.
12351         * tbl/table.c (table::do_row): If the current row is all lines and
12352         the stuff doesn't contains a line, mark the top of the row after
12353         printing stuff before the row.  If the current row is not all
12354         lines and the stuff doesn't contain a line, don't unnecessarily
12355         mark the top of the row before printing the stuff.
12356         
12357 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
12359         * troff/groff.h: Remove MAX_PATH.
12360         * troff/input.c (open_file): Dynamically allocate space for the
12361         path.
12362         (open_mac_file, process_macro_file): Corresponding changes.
12364 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
12366         * troff/node.h (class output_file): Make copy_file pure.  Add
12367         vspace method ifdef COLUMN. Add is_printing method.
12368         * troff/node.c: Add class printing_reg. Add class
12369         real_output_file. Derive other output_file classes from
12370         real_output_file; in these classes rename begin_page to
12371         really_begin_page, print_line to really_print_line, copy_file to
12372         really_copy_file, transparent_char to really_transparent_char.
12373         Move output_file::flush to real_output_file. Add printing member
12374         to class output_file.
12375         * troff/div.h: Remove printing member from top_level_diversion.
12376         Add vspace member function to class diversion ifdef COLUMN. Add
12377         some declarations ifdef COLUMN.
12378         * troff/div.c (top_level_diversion::copy_file,
12379         top_level_diversion::transparent_output,
12380         top_level_diversion::output): Don't test printing member before
12381         output.
12382         * troff/input.c: Handle initial variable_space_request ifdef
12383         COLUMN.
12384         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
12385         but comment it out.
12387 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
12389         * troff/div.c (diversion::need): Make any space forced.  If we
12390         sprung a trap, set truncated_space to minus the distance to the
12391         trap and set needed_space to the amount that was needed.
12392         (top_level_diversion::space): A forced space turns no_space_mode
12393         off.
12394         (class constant_vunits_reg): New class.
12395         (init_div_requests): Implement number registers .trunc and .ne
12396         using constant_vunits_reg.
12397         (class truncated_space_reg): Deleted.   
12399         * troff/div.h: Don't have a no_space_mode member in diversion.
12400         Instead have it in top_level_diversion.
12401         * troff/div.c (diversion::diversion): Don't initialize
12402         no_space_mode.
12403         (top_level_diversion::top_level_diversion): Initialize
12404         no_space_mode.
12405         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
12406         (macro_diversion::output): Don't clear no_space_mode.
12408         * troff/input.c (diverted_space_node::reread): Don't call
12409         environment::do_break.  In fill mode, act like a blank line.
12410         (diverted_copy_file_node::reread): Don't call
12411         environment::do_break.
12413         * troff/div.c (blank_line): New function.
12414         * troff/div.h: Declare it.
12415         * troff/input.c (process_input_stack): Call it.
12417         * troff/div.c (truncated_space_reg::get_string): New function.
12418         (init_div_requests): Bind to .trunc.
12419         (space_request, top_level_diversion::space,
12420         top_level_diversion::output, macro_diversion::space,
12421         macro_diversion::output): Update truncated_space.
12422         (macro_diversion::output): Redo calculations when trap sprung.
12423         (macro_diversion::output, macro_diversion::space): No need for
12424         trap_flag.
12426         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
12427         after truncating post line spacing.
12429 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
12431         * ps/devps/prologue (MF, SF): Make them work even if setfont is
12432         defined as a procedure rather than as an operator.
12434 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
12436         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
12438 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
12440         * troff/div.c (top_level_diversion::output): Merge
12441         output_file::print_line and output_file::end_of_line member
12442         functions.
12443         * troff/div.h (class output_file):
12444         * troff/node.c (troff_output_file::print_line,
12445         troff_output_file::end_of_line, output_file::end_of_line,
12446         ascii_output_file::print_line, suppress_output_file::print_line):
12447         Corresponding changes.  
12449 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
12451         * troff/input.c (token::next): Don't give a warning for `\.'.
12453         * troff/env.c (environment::get_center_lines): New function.
12454         (init_env_requests): Bind number register .ce to it.
12455         * troff/env.h: Declare it.
12456         * tbl/table.c (table::init_output): Define reset macro to restore
12457         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
12458         Then do .ce 0.
12459         (table::print): If center option not given, then imply center
12460         option if SAVED_CENTER_REG > 0.
12462 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
12464         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
12465         Troff.ps from DOWNLOAD.
12466         
12467         * troff/Makefile: Change comment in DEFINES to avoid confusing
12468         System V make.
12470         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
12471         code.  Don't try to catch errors with stopped.
12472         (check_line_lengths): New function.
12473         * ps/devps/prologue (EXEC): Deleted.
12474         (EBEGIN, EEND): New procedures.
12476 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
12478         * troff/input.c: Include request.h before node.h.
12479         * troff/node.c: Likewise.
12480         * troff/env.c: Likewise.
12481         * troff/div.c: Likewise.
12482         * troff/node.h (class special_node): Store argument as a macro
12483         rather than a char *.
12484         * troff/node.c (special_node::special_node, special_node::copy):
12485         Grok this.
12486         (special_node::~special_node): Deleted.
12487         (special_node::tprint): Deleted.
12488         (special_node::tprint_start, special_node::tprint_end,
12489         special_node::tprint_char): New functions.
12490         (troff_output_file::special): Deleted.
12491         (troff_output_file::start_special, troff_output_file::end_special,
12492         troff_output_file::special_char): New functions.
12493         * troff/input.c (special_node::tprint): New function.
12494         (do_special): Use macro not char *.
12495         (do_transparent_macro): Deleted.
12496         (token::next): Don't call do_transparent_macro.
12498         * troff/input.c (token::next): Add 'Y' case.
12499         (do_transparent_macro): New function.
12500         * troff/node.c (troff_output_file::special): Handle newlines with
12501         argument using new continuation convention.
12502         * driver/input.c (get_string): Cope with continuation convention.
12503         (do_file): Don't call skip_line after calling get_string(1).
12504         * ps/ps.c (ps_printer::special, ps_printer::do_import,
12505         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
12506         arg.
12507         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
12508         with +.
12510 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
12512         * troff/input.c (asciify): By default, illegal input characters
12513         should return empty string.
12515         * troff/input.c (copy_file): Handle first page transition like title.
12516         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
12518         * troff/input.c (token::next): Improve error message for EOF after
12519         escape character.
12520         (input_char_description): New function.
12521         (get_char_for_escape_name): Use input_char_description.
12522         (token::next): Warn about unrecognized escape sequences.
12523         (warning_table): Add WARN_ESCAPE.
12524         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
12525         accordingly.
12527         * troff/token.h: Remove declaration of process_input_stack.
12529         * troff/input.c: Remove declaration of init_hyphen_requests.
12530         * troff/request.h: Correct spelling in declaration of same.
12532         * troff/input.c (token::next): Check whether escape_char is 0.
12534 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
12536         * groff.c (main, usage, help): Implement -P and -L options.
12537         * groff.sh: Likewise.
12539         * troff/input.c (token::next): Use some gotos to avoid code
12540         duplication.
12542         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
12543         Avoid calling symbol::symbol if name empty.
12545 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
12547         * troff/input.c (init_input_requests): Make \n(.x return the major
12548         version number and \n(.y return the minor version number.
12549         * troff/Makefile: Construct file majorminor.c defining
12550         major_version and minor_version automatically from ../VERSION.
12552         * troff/node.c (class glyph_node): Make operator new and operator
12553         delete public.
12554         (class ligature_node): Similarily.
12556         * troff/input.c (operator==(const macro &, const macro &)): New
12557         function.
12558         (non_interpreted_node::same): Use this.
12559         (string_iterator::string_iterator): Make macro& argument const.
12561         * troff/input.c (input_iterator::get): New function. Don't make
12562         asciify_macro or class non_interpreted_node friends of class
12563         input_iterator.
12564         (non_interpreted_node::interpret): Use input_iterator::get.
12565         (asciify_macro): Likewise.
12567         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
12568         ~non_interpreted_node): Deleted.
12569         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
12570         Deleted.
12572         * troff/symbol.h: Make all symbol member functions const.
12574         * lib/strtol.c: New file.
12575         * lib/Makefile: Add strtol.c.
12576         * Makefile: Define STRTOL as strtol.o to include strtol in
12577         libgroff.a.
12579 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
12581         * pic/troff.c (troff_output::simple_circle): Divide by scale.
12583 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
12585         * troff/input.c (do_special): Use input_level.
12587         * troff/token.h (TOKEN_BACKSPACE): New token.
12588         (token::backspace): New function.
12589         * troff/input.c (token::description, token::next, token::process):
12590         Grok TOKEN_BACKSPACE.
12591         (do_special): Turn TOKEN_BACKSPACE back into \b.
12593         * troff/token.h (token::leader): New function.
12594         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
12596         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
12598         * troff/input.c (do_special): Use token::description in error
12599         message.
12601 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
12603         * troff/input.c (decode_args): Combine quoted and
12604         quote_input_level variables. Make it a for (;;) loop.
12606         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
12608         * troff/input.c (read_long_escape_name): The test for whether to
12609         expand buffer was off by 1.
12610         (read_string): Similarily.
12612 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
12614         * troff/input.c: Use `const int' rather than `static const int'.
12616         * troff/div.h (diversion::copy_file): Declare as pure virtual.
12617         (macro_diversion::copy_file): New function.
12618         * troff/node.h: New class diverted_copy_file_node.
12619         * troff/node.c: Implement it.
12620         * troff/input.c (copy_file): Use diversion::copy_file. Handle
12621         first page transition by pushing a diverted_copy_file_node.
12622         * troff/input.c (token::next, process_input_stack): Don't handle
12623         COPY_FILE_REQUEST.
12625 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
12627         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
12628         whether space widths need adjusting.
12630         * troff/charinfo.h: Generalize translated_to_space to
12631         special_translation so as to allow translation to \&.
12632         * troff/input.c (translate): Allow translation to \&.
12633         (charinfo::*): Corresponding changes.
12634         * troff/node.c (make_node, node::add_char): Corresponding changes.
12635         * troff/node.h (dummy_node::dummy_node): Allow optional first
12636         argument.
12638         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
12639         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
12640         TOKEN_REQUEST.
12641         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
12642         TOKEN_REQUEST with an argument of TITLE_REQUEST.
12643         (token::process): Grok that.
12644         * troff/input.c (copy_file): Handle first page transition like
12645         title by pushing a COPY_FILE_REQUEST cookie.
12646         (token::next, process_input_stack): Grok that.
12647         * troff/node.h (output_file::copy_file): Add x and y arguments.
12648         Make it non-pure.
12649         * troff/div.c (top_level_diversion::copy_file): Supply them.
12650         * troff/node.c (troff_output_file::copy_file): Add x and y
12651         arguments; moveto specified position.  Invalidate font_position
12652         array after copying file.
12653         (output_file::copy_file): New function.
12654         (suppressed_output_file::copy_file, ascii_output::copy_file):
12655         Removed.
12656         * troff/input.c (transparent_file): New function.
12657         (init_input_requests): Bind to "trf".
12658         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
12659         (process_input_stack): Likewise.
12661         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
12663         * troff/node.c (init_node_requests): New number registers .kern
12664         pointing to global_kern_mode, and .lg pointing to
12665         global_ligature_mode.
12667         * troff/node.c (ligature): Don't change it if we get a bad
12668         integer.
12670         * troff/input.c (do_define_string): Don't strip tabs.
12672         * troff/input.c (asciify_macro): Make the string_iterator auto.
12674         * troff/node.c (init_font_requests): Rename to...
12675         (init_node_requests):
12676         * troff/node.h: Change declaration.
12677         * troff/input.c (main): Change call.
12679         * troff/input.c (node::reread, diverted_space_node::reread): New
12680         methods.
12681         (process_input_stack): Call reread rather than
12682         get_diverted_space_node.
12683         * troff/node.c (node::get_diverted_space_node,
12684         diverted_space_node::get_diverted_space_node): Removed.
12685         * troff/node.h: Declare reread methods instead of
12686         get_diverted_space_node methods. Make `n' member private.
12687         * troff/input.c: (token::diverted_space): Removed.
12688         * troff/token.h: Removed declaration.
12689         
12691 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
12693         * eqn/script.c (script_box::compute_metrics): Don't let
12694         SUP_RAISE_FORMAT become negative.
12696         * tbl/table.c (table::do_row): Entries that don't end in the
12697         this row shouldn't make the row non-blank.
12698         
12699         * tbl/table.c (table::make_columns_equal): Only set the width of
12700         columns which are marked as equal.
12701         
12702         * tbl/main.c (process_data): Before issuing excess data error,
12703         if last character was a newline unget it; then get it again after
12704         the error.  Also include the contents of the entry in the message.
12706         * groff.c: New file.
12707         * Makefile: Build groff from groff.c.  Make it possible to use
12708         either groff.sh or groff.c as groff.
12709         * Makefile.bd: Similarily.
12711 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
12713         * groff.sh: Don't delay expansion of $@ in assignment to files.
12714         Remove occurrences of \".
12716 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
12718         * all Makefiles: Simplify and rearrange.
12720         * Makefile: Handle fmod like malloc.
12721         * lib/Makefile: Similarily.
12722         * lib/fmod.c: Remove #ifdef NEED_FMOD.
12724         * Makefile: Rename OPTIMISE to OPTIMIZE.
12726         * groff.sh: Remove assignment to PATH.
12727         * Makefile: Remove SHPATH variable.
12728         * Makefile.bd: Similarily.
12730         * groff.sh: Add -V option to print the pipeline instead of
12731         executing it.
12733 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
12735         * lib/font.c: Split off file searching into ...
12736         * lib/fontfile.c: New file.
12738         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
12740 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
12742         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
12743         Also change misleading comment.
12744         (table::do_vspan): Change similarily misleading comment.
12745         * tbl/main.c (process_data): A format row with an explicit `s'
12746         uses up a data line, even if all the other columns are `_' or `='.
12748         * troff/input.c (token::description): Fix description of
12749         TOKEN_DUMMY and TOKEN_EMPTY.
12751 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
12753         * groff.sh: Fix description of -Z in help message.
12755 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
12757         * pic/object.c (object_spec::make_object): Allow negative and zero
12758         line thicknesses.
12759         * pic/pic.y: Give linethick default value of -1.0.
12760         * pic/troff.c (troff_output::troff_output): Initialize
12761         last_line_thickness to BAD_THICKNESS.
12762         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
12763         (troff_output::line_thickness): Canonicalize negative thicknesses
12764         to RELATIVE_THICKNESS.
12765         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
12766         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
12767         to -1.0.
12768         (tex_output::start_picture): Set pen_size to -2.0.
12770         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
12771         0, then use 0 linewidth.
12772         (ps_printer::ps_printer): Initialize line_thickness to -1.
12774         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
12776         * ps/devps/symbolchars: Remove `or'.
12777         * ps/tmac.ps: Implement \(or with .char.
12779         * ps/devps/symbolchars: Move most characters into textmap.
12780         * ps/devps/textmap: Add names for troff bracket characters. Remove
12781         ul, ru, br, bv.
12783         * ps/devps/TSymbol.ps: Removed.
12784         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
12785         * ps/tmac.ps: Do with .char what TSymbol did.
12786         * ps/devps/download: Remove TSymbol.
12788         * ps/devps/T: Removed.
12789         * ps/devps/Troff.ps: Removed.
12790         * ps/devps/Troff.afm: Removed.
12791         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
12792         * ps/devps/download: Remove Troff.
12793         * ps/devps/FontMakefile: Remove T target.
12794         * ps/devps/DESC-A4: Remove T from font list.
12795         * ps/devps/DESC-letter: Likewise.
12797         * troff/input.c (macro_to_node): Rename to ...
12798         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
12799         character's definition while processing it.
12800         * troff/node.c (node::add_char, make_node): Change calls to
12801         macro_to_node accordingly.
12803         * troff/input.c (token::next): Translate \_ to \(ul.
12805         * tty/devascii/R.proto: Add `|'.
12806         * tty/devlatin1/R.proto: Likewise.
12808 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
12810         * man: Put the version number in all the man pages.
12812 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
12814         * Makefile.bd: New file.
12815         * README.bd: New file.
12817         * VERSION: New file.
12818         * lib/version.c: Removed.
12819         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
12820         in clean target.
12822         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
12823         environment variable.
12825         * all Makefiles: Split install target into install.bin for
12826         binaries, and install.nobin for everything else.
12827         * Makefile: Add bindist target.
12829         * man/afmtodit.man: New file.
12830         * man/Makefile: Add afmtodit.n to MAN1PAGES.
12831         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
12832         in BINDIR.
12833         * ps/Makefile: Pass BINDIR to make install in devps.
12835         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
12836         the space character.
12838         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
12840 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
12842         * ps/ps.c: Redo font downloading.
12843         * ps/devps/download: New file.
12844         * ps/devps/Makefile: Add download to DEVICEFILES.
12845         * ps/devps/afmtodit: Remove -d option.
12846         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
12847         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
12848         * ps/devps/zapfdr.ps: Likewise.
12849         * ps/devps/TSymbol.ps: Likewise.
12851 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
12853         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
12855 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
12857         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
12858         then strip the first line if it starts with %.
12859         * Makefile: Add a comment about this.
12861         * man/tfmtodit.man: New file.
12862         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
12863         * dvi/Makefile: Install tfmtodit in BINDIR.
12865         * dvi/tfmtodit.c (usage): Mention -v option.
12867 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
12869         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
12870         * troff/node.c (troff_output_file::transparent_char): Don't call
12871         flush_tbuf.
12873         * eqn: Add check_tabs method to most box classes.
12874         * eqn/box.c (box::top_level): Call check_tabs.
12876         * eqn/script.c (script_box::output): Use \Z.
12877         * eqn/limit.c (limit_box::output): Use \Z.
12879         * eqn/box.c (box::top_level): Use itoa.
12881 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
12883         * dvi/tmac.dvi: Add font translations for CR, C, TT.
12884         * dvi/devdvi/Makefile: Don't make links to CW.
12886         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
12887         HX, HD.
12888         * xditview/tmac.X: Likewise.
12890         * troff/node.c: Add font translation feature.
12891         (get_font_translation): New function.
12892         (symbol_fontno): Translate the font name.
12893         (mount_font_no_translate): Rename to mount_font to this.
12894         (mount_font): New function.
12895         (font_family::make_definite): Call mount_font_no_translate instead
12896         of mount_font.
12897         (mount_style): Translate the font name.
12898         (font_translate): New function.
12899         (init_font_requests): Bind "ftr" to font_translate.
12901         * ps/devps/prologue (SN): New procedure that rounds a position to
12902         the nearest (pixel + (.25,.25)).
12903         (DL): Use SN to round endpoints.
12905         * lib/version.c: Changed version to 0.5.
12907 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
12909         * Makefile: Move definition of PAGE to the very beginning, so that
12910         people are less likely to miss it.
12912 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
12914         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
12916         * troff/env.c (environment::choose_breakpoint): Make `can't find
12917         breakpoint' error a warning of type WARN_BREAK.  Change message to
12918         `can't break line'.
12919         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
12920         code 040000.
12921         * troff/input.c: Add WARN_BREAK to warning_table.  Include
12922         WARN_BREAK in DEFAULT_WARNING_MASK.
12924         * tty/tmac.tty: Add definition of \(+-.
12926         * groff.sh: Remove `--' option to set command.
12928         * dvi/devdvi/texsy.map: Remove duplicate md entry.
12930         * ps/devps/eqnchar: Better definition of cdot using md.
12931         * dvi/devdvi/eqnchar:  Likewise.
12932         * xditview/devX100/eqnchar:  Likewise.
12933         * xditview/devX75/eqnchar: Likewise.
12934         * eqn/lex.c: Add definition of cdot.
12936 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
12938         * troff/input.c (get_optional_char): New function.
12939         * troff/input.c (set_page_character): Use get_optional_char(),
12940         rather than has_arg() and tok.get_char(1).
12941         * troff/env.c (tab_character, leader_character, hyphen_char,
12942         field_characters): Likewise.
12943         (margin_character): Likewise.  Also always delete the
12944         margin_character_node.
12946         * troff/input.c (token::get_char): Use token::description.
12948         * troff/input.c (has_arg): Don't skip over tab and \}.
12949         * troff/number.c (start_number): Give a warning if the number
12950         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
12952 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
12954         * troff/input.c (empty_name_warning, non_empty_name_warning): New
12955         functions.
12956         (get_name, get_long_name): Use these.  Rename `warn' argument to
12957         `required'.
12959         * troff/node.c (get_fontno): Test that the symbol is not null.
12961         * troff/input.c (token::description): New function.
12962         * troff/number.c (parse_term): Use token::description in `numeric
12963         expression expected' message.
12964         * troff/groff.h: Add WARN_MISSING.
12965         * troff/number.c (start_number): New function.
12966         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
12967         get_incr_number): Use start_number().
12968         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
12969         default.
12970         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
12971         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
12972         token::descripion.
12973         * troff/input.c (token::get_char): Use WARN_MISSING.
12974         * troff/input.c (token::delimiter): Use token::description.
12975         * troff/env.c (environment_switch): Back out Aug 3 change.
12976         * troff/input.c (has_arg): Skip over \}s and tabs but give a
12977         warning.
12978         * troff/token.h (token::tab): New function.
12979         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
12980         * troff/reg.c (alter_format): Likewise.
12981         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
12983 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
12985         * troff (most files): Redo warnings. Divide warnings into various
12986         categories; warning() has an additional first argument indicating
12987         the category it falls into.
12988         * troff/input.c (main): -w now takes an argument. New option -W.
12989         (enable_warning, disable_warning): New functions.
12991         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
12992         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
12994 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
12996         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
12997         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
12998         * xditview/devX75/eqnchar: Likewise.
12999         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
13001         * eqn/other.c: When bar or over applies to a single character
13002         don't produce an overline_box or an underline_box. Instead produce
13003         an accent_box or an underaccent_box, with the accent a line
13004         whose width is accent_width.  New classes underaccent_box,
13005         overline_char_box and underline_char_box.
13006         * eqn/box.h: Move overline_box, underline_box, accent_box class
13007         declarations into eqn/other.c. Add declarations of
13008         make_underline_box, make_overline_box, make_accent_box.
13009         * eqn/eqn.y: Call make_overline_box, make_underline_box
13010         make_accent_box instead of constructors.
13011         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
13013         * eqn/other.c: Add accent_box::~accent_box.
13014         * eqn/box.h: Declare it.
13016         * groff.sh: With -Tps, use eqn -D.
13018         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
13019         rather than \l.
13020         (underline_box::output): Similarily.
13021         (accent_box::output): Use \Z.
13023         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
13024         bit smaller.)
13026 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
13028         * troff/div.c (top_level_diversion::transparent_output(unsigned
13029         char)): Use asciify.
13030         * troff/input.c (asciify): Don't make it static.
13031         * troff/token.h (asciify): Declare it.
13032         
13033         * troff/input.c (get_name, get_long_name, token::get_char,
13034         token::delimiter): Add an extra default argument which says
13035         whether a warning should be printed.
13036         * troff: Pass a non-zero argument to one of these rather than
13037         printing a warning directly.
13039 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
13041         * troff: Consistently use symbol::is_null.
13043         * troff/dictionary.h: Move some inline functions into
13044         dictionary.c.
13046         * troff/request.h: Move inline functions into input.c.
13047         (request_or_macro::invoke): Make it pure.
13049         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
13050         * troff/input.c (init_input_requests): Use class constant_int_reg.
13051         (class compatible_reg): Deleted.
13052         * troff/div.c (init_div_requests): Use class constant_int_reg.
13053         (class last_post_line_extra_space_reg): Deleted.
13055         * troff/env.c (tab_character): Don't change the tab character if
13056         we get an invalid argument.
13057         (hyphen_char): Similarily.
13059         * troff/reg.c (alter_format): Check that nm is not null.
13061         * Makefile, groff.sh: Make it possible to customize the commands
13062         used for printing PostScript and dvi files. Also make it possible
13063         to customize the path used by groff.sh.
13065         * eqn/eqn.y: Make `left' right associative.
13067 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
13069         * pic/pic.h: Added definition of M_SQRT2 for those systems that
13070         don't have it.
13072         * pic/pic.h: Removed definition of INT_MAX.
13074         * troff/node.c (italic_corrected_node::vertical_extent): Omit
13075         `return'.
13077         * troff/input.c (token::next):  Handle \R like \n.
13079 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
13081         * ps/tmac.pc (PSPIC): Simplify.
13083         * troff/env.c (tab_stops::to_string):
13084         * pic/pic.y (object_type_name):
13085         * pic/troff.c (simple_output::line):
13086         * pic/tex.c (tex_output::spline):
13087         * pic/object.c (object_spec::make_object):
13088         * tbl/main.c (process_data):  Add cases to switch statements to
13089         avoid cfront warnings. (Some of these are spurious, since the
13090         switch already has a default case.)
13092         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
13093         `ps-'.  Don't test systat; instead check number of arguments to
13094         ps-bb.
13096 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
13098         * macros/tmac.e: Do not decrease the page offset by 0.5i.
13100         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
13101         Unlink the file as soon as we have opened it, so that we don't
13102         have to bother with signal handlers.
13103         (handler): Deleted.
13104         (fatal_error_exit): Deleted.
13105         (main): Don't call signal.
13107         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
13108         can be ignored.
13109         * dvi/devdvi/Makefile: Use the -k option with S and MI.
13111         * pic/pic.y:  If there is a label, or an nth construction before
13112         the first `.' in the argument to `with', ignore it and generate a
13113         warning.
13114         * pic/lex.c (lex_warning): New function.
13116         * tbl/table.c (table::init_output): In section keep and release
13117         macro, use 0 indent when diverting and the correct indent when
13118         rereading.
13120         * troff/input.c (interpolate_number_format): Do not interpolate
13121         anything if the number register is not defined.
13123         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
13125 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
13127         * ps/devps/prologue (PICTURE): Set components of graphics state to
13128         their default values.
13130         * ps/devps/text.enc: Add trademark
13131         * ps/devps/textmap: Add names for club, spade, heart, diamond,
13132         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
13133         * ps/devps/symbolchars: Add names for summation and product.
13135         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
13136         suchthat. Add pp. Add upper-case letters.
13138         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
13139         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
13140         Upsilon.
13142         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
13143         rA (right angle bracket) to ra.  Introduce names for double-headed
13144         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
13145         * ps/devps/textmap: Likewise for ps device.
13146         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
13147         * tty/devascii/R.proto: Rename lA to la and rA to ra.
13148         * tty/devascii/R.proto: Likewise.
13149         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
13150         \(uA, \(dA.
13151         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
13153         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
13155         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
13156         def_table.
13158 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
13160         * troff/div.c (when_request): Use symbol::is_null rather than
13161         has_arg to determine whether we have an argument.
13162         (change_trap): Remove the trap if we get an invalid number. Give
13163         an error if we don't get at least the macro name.
13164         (diversion_trap): Remove trap if we get an invalid name or number.
13166         * troff/env.c (environment_switch): Pop if we get an invalid
13167         symbol or numeric expression.
13169         * troff/input.c (do_define_macro):  If EOF is encoutered while
13170         defining the macro, do tok.next() before returning.
13172         * troff/token.h (has_arg): Move definition from here, to ...
13173         * troff/input.c (has_arg): ... here
13175         * troff/env.c (space_size): Do nothing if we get an invalid argument.
13176         * troff/input.c (shift): Likewise.
13178         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
13179         for `.c'.
13181         * pic/troff.c (troff_output::start_picture):  Comment out calls to
13182         `..'.
13184         * eqn/main.c (do_file): Subtract 1 from current_lineno if
13185         interpret_lf_args succeeds.
13187         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
13188         \\.  This avoids problems with \$N.
13190         * groff.sh: Pass -C to preprocessors.
13192         * lib/lf.c (interpret_lf_args):  Be more flexible.
13194         * tbl/main.c (main): Add -C option.
13195         (table_input::get): Do not recognize TE if followed by character
13196         other than a space or newline unless -C option given.
13197         (process_input_file): Likewise for lf, TS.
13198         (process_data): Likewise for lf in text blocks.
13200         * eqn/main.c (main): Add -C option.
13201         (do_file): Don't recognize EQ, EN or lf if followed by character
13202         other than space or newline unless -C option given.
13203         * eqn/lex.c (file_input::read_line): Similarily.
13204         * eqn/eqn.h: Declare compatible_flag.
13206         * etc/soelim.c (main): Add -C option.
13207         (interpret_lf_args): Use version in libgroff.
13208         (do_file):
13210         * pic/main.c (main): Add -C option, which sets compatible_flag.
13211         (top_input::get), (top_input::peek):  If -C option not given,
13212         do not recognize .PS/.PE/.PF/.lf if followed by a character
13213         other than space or newline.
13214         * pic/lex.c (file_input::read_line): Similarily.
13215         * pic/pic.h: Add declaration of compatible_flag.
13217 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
13219         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
13221         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
13222         derived from node.  New class space_char_hmotion_node.
13223         * troff/input.c (asciify_macro): New function.
13224         * troff/input.c (init_input_requests): New request `asciify' bound
13225         to asciify_macro.
13226         * macros/mm.diff: New file.
13227         * Makefile:  In install.mm target use `patch' to apply
13228         macros/mm.diff.
13230         * troff/input.c (macro::print_size): Just print the size in bytes.
13232         * troff/div.c (return_request): Correct the argument
13233         interpretation.
13235 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
13237         * troff/node.h (class composite_node): Add sz member.
13238         * troff/node.c (composite_node::size): Return sz.
13239         * troff/input.c (macro_to_node):  Use the initial size in the
13240         environment as the size of the composite_node.
13242         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
13243         default.
13245 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
13247         * troff/div.c (change_trap): If we get a bad number expression,
13248         do nothing.
13250 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
13252         * lib/matherr.c (matherr): Define this only if math.h defines
13253         TLOSS.
13255 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
13257         * troff/div.c (macro_diversion::distance_to_next_trap): If there
13258         no diversion trap return vunits(INT_MAX - vresolution).
13260 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
13262         * troff/input.c (do_zero_width): New implementation that doesn't
13263         use a temporary environment. Use instead:
13264         (token::add_to_node_list): New function.
13265         * troff/env.c (environment::get_prev_char_height),
13266         (environment::get_prev_char_height),
13267         (environment::get_prev_char_skew): New functions.
13268         (environment::get_prev_char): New function.
13269         (environment::get_prev_char_width): Change to use get_prev_char.
13270         (init_env_request): Implement new registers .cht, .cdp, .csk.
13271         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
13272         \Z being processed in a separate environment.
13274 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
13276         * tbl/table.c: Removed TABLE_BOTTOM_REG.
13278         * tbl/table.c (table::init_output): In the section release macro,
13279         give a warning message if the section won't fit on one page.
13281         * tbl/table.c (table::do_top): Emit table keep only if table is
13282         boxed.
13283         (table::do_bottom): Likewise for table release.
13284         (table::table), (table::add_vertical_rule):  Remove reference to
13285         keep member.
13286         * tbl/table.h: Remove keep member.
13288         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
13289         SECTION_RELEASE_MACRO, if there's not enough space before the next
13290         trap to output the diversion, call T# ourselves, set
13291         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
13292         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
13293         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
13294         vertical position and return to it before turning traps on again.
13295         
13296 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
13298         * troff/node.c, troff/node.h: In classes derived from node,
13299         replace prev_char_width method by last_char_node method.
13300         * troff/env.c (environment::get_prev_char_width): Use
13301         node::last_char_node rather than node::get_prev_char_width.
13303         * Makefile: Added comment about -fno-inline on 68030-based
13304         Apollos.
13306         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
13307         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
13308         expressions using sizeof to int.
13309         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
13311         * macros/tmac.e (TS):  Don't move @f back past the current
13312         position.
13314 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
13316         * ps/ps.c (main): Buffer stderr.
13317         * dvi/dvi.c (main): Likewise.
13318         * tty/tty.c (main): Likewise.
13320         * ps/ps.c (ps_printer::do_import): Improve error handling.
13322         * troff/input.c (abort_request): Use asciify.
13324         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
13325         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
13326         type of first argument int rather than char.  This works around a
13327         bug on the 68030 based Apollo using g++ 1.37.1.
13329         * tbl/table.h (class table): Add `keep' member.
13330         * tbl/table.c (table::table): Initialize `keep'.
13331         (table::add_vertical_rule): Set `keep' to 1.
13332         (table::do_top): Only emit table keep macro is `keep' is non-zero.
13333         (table::do_bottom): Likewise for table release macro.
13334         (table::do_row): Emit section keep macro even if the row is 0.
13336 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
13338         * macros/tmac.e (@C): Preserve the font family across the change
13339         in environments.
13341 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
13343         * lib/font.c: Initialize font::hor and font::vert to 1.
13344         (font::load_desc): Check the values of font::hor and font::vert.
13346         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
13347         be included in a C compilation.
13348         (iftoa): Use INT_DIGITS. Include lib.h.
13349         (itoa): Likewise.
13350         (as_string): Likewise.
13351         * tbl/table.c: Removed definition of INT_DIGITS.
13352         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
13353         * troff/input.c (input_input_requests): Likewise.
13354         * ps/ps.c (make_encoding_name): Likewise.
13355         (ps_printer::set_style): Likewise.
13356         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
13358         * tty/devascii/R.proto: Map fm onto '.
13359         * tty/devlatin1/R.proto: Likewise.
13361 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
13363         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
13364         argument to \w is at a different input level.
13366         * tbl/table.c (table::init_output): Define a new macro
13367         REPEATED_VPT_MACRO, like vpt but if in a diversion also
13368         transparently outputs itself.
13369         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
13370         vpt.
13371         (table::do_row): Likewise.
13373         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
13374         TRANSPARENT_STRING_NAME.
13376         * tbl/table.c (table::init_output): In the table release macro
13377         print an error message and don't produce any output if after
13378         issuing the need request the table still will not fit.  Also
13379         remove the diversion after bringing it back.
13381         * tbl/table.c (table::init_output): Define a new macro
13382         REPEATED_MARK_MACRO, like mk but if in a diversion also
13383         transparently outputs itself.
13384         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
13385         is necessary because .TH might not call .T#.
13386         (table::do_top): Likewise TOP_REG.
13387         (table::define_bottom_macro): If TOP_REG is no longer valid, use
13388         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
13389         table header might contain just the two top rules.
13391 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
13393         * troff/div.c: Implement new request `ptr' to print all traps.
13395         * troff/env.c (init_env_requests): Implement `.tabs' reg with
13396         init_string_env_reg.
13397         * troff/env.c (class tab_reg): Deleted.
13399 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
13401         * troff/div.c: New number register .pn returns the number of the
13402         next page as set by the pn request.
13404         * macros/tmac.an: Redid headers and footers.  Number each manual
13405         entry starting from 1 unless \nC is > 0, like Sun.  Added an
13406         optional 5th argument to .TH which specifies the manual name and
13407         appears in the center of the header.  Understand the X, P and D
13408         registers like Sun.
13410 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
13412         * troff/env.c (init_env_requests): New number register `.lt' to
13413         return the title length.
13415         * troff/node.h (class transparent_dummy_node): New class.
13416         * troff/node.c (class transparent_dummy_node): Provide member
13417         functions. 
13418         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
13419         than a dummy_node.
13421         * troff/input.c (token::next): New escape sequence \).
13422         * troff/input.c (get_copy): Recognize \) in copy mode.
13424         * troff/input.c (input_stack::clear): New function.
13425         * troff/input.c (exit_request): Use input_stack::clear.
13427         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
13428         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
13430         * troff/env.c: Move set_page_character to input.c.  Move
13431         page_character to input.c also.
13432         * troff/env.c (title): Split off the reading of the parts of the
13433         title into read_title_parts.
13434         * troff/input.c (read_title_parts): New function.  Check the
13435         input_level when testing whether a token matches the delimiter.
13437         * troff/input.c (exit_request): New function.
13438         * troff/input.c (init_input_requests): Bind ex request to
13439         exit_request rather than exit_groff.
13441         * troff/input.c (exit_groff): Call tok.next() before
13442         process_input_stack().
13444 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
13446         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
13447         * troff/env.h: ditto.
13448         * troff/input.c: ditto.
13450         * troff/env.c (environment::is_empty): Test pending_lines.
13452         * troff/env.c (environment::have_pending_lines): Removed.
13454         * troff/input.c: Add request to flush pending lines from the
13455         environment.
13457         * troff/env.c, troff/env.h: Add automatic widow control feature.
13459         * troff/input.c (exit_groff):  Do process_input_stack() after
13460         do_break() but before setting exit_flag to 2.
13462         * troff/input.c: Remove FLUSH_PENDING_LINES and
13463         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
13464         environment after END_TRAP token seen, but only if there aren't
13465         any more traps still unfinished.
13466         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
13468 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
13470         * troff/env.c: Rename the `retain_size' member of class
13471         pending_output_line to `no_fill'.
13473         * troff/env.c (title): When the line is output, make the
13474         retain_size argument !fill.
13476         * troff/node.h: Add `hyphenated' member to struct breakpoint.
13477         * troff/node.c (space_node::get_breakpoints),
13478         (dbreak_node::get_breakpoints):  Fill this in.
13479         * troff/env.c:  Allow specification of maximum number of
13480         consecutive hyphenated lines.
13482         * troff/env.c (environment::is_empty): Add test for !current_tab.
13484 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
13486         * troff/env.c (environment::hyphenate_line): Don't completely give
13487         up if the word is not to be hyphenated; continue so that breaks
13488         can be made at break_char_node's.
13490         * lib/lib.h: Only define INT_MAX if it's not already defined;
13491         undef INT_MIN if it's already defined.
13493         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
13495         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
13496         This works around a bug in AT&T C++ 2.0 used with an ANSI C
13497         compiler.
13498         
13499         * macros/tmac.an (an-header): Set no-space mode.
13501         * macros/tmac.an (TH): Start a new page if necessary.
13503         * Started using ChangeLog at version 0.4.
13505 Local Variables:
13506 version-control: never
13507 coding: latin-1
13508 End: