* src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
[s-roff.git] / ChangeLog
blobe76b415008e5401eff500c0a4fa9022b672d67d3
1 2002-08-08  Werner LEMBERG  <wl@gnu.org>
3         * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
4         tok.next().
5         (read_gray): Ditto.
6         Don't push back a space but a newline onto the stack.
8 2002-08-07  Gaius Mulley  <gaius@glam.ac.uk>
10         Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
11         inadvertently.
13         * src/devices/grohtml/post-html.cc (html_printer::end_font,
14         html_printer::start_font): Handle them.
15         * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
16         reset bold and tt.
17         (html_text::do_bold): Don't reset italic and tt.
18         (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
19         * font/devhtml/DESC.proto: Add those fonts.
20         * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
22 2002-08-07  Werner LEMBERG  <wl@gnu.org>
24         * MORE.STUFF: Added gpresent.
26         * tmac/trace.tmac: Show nesting level by a corresponding amount of
27         whitespace before printing the logging message.
29 2002-07-31  Colin Watson  <cjwatson@debian.org>
31         * src/devices/grohtml/html-table.cc (html_table::finish_row):
32         Initialize `n' to zero.  This fixes a segfault on ARM.
34 2002-07-30  Werner LEMBERG  <wl@gnu.org>
36         * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
38 2002-07-29  Werner LEMBERG  <wl@gnu.org>
40         * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
41         final semicolon.
43 2002-07-28  Colin Watson  <cjwatson@debian.org>
45         * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
46         `.ps'.
47         (html_printer::html_printer): Initialize `pointsize'.
49 2002-07-26  Werner LEMBERG  <wl@gnu.org>
51         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
52         gnu.png.
53         (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
54         (gnu.eps): Add -rle switch to pnmtops.
55         (distfiles): Add gnu.eps and gnu.png.
57 2002-07-25  Petter Reinholdtsen  <pere@hungry.com>
59         * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
60         Add `operator!='.
62 2002-07-24  Werner LEMBERG  <wl@gnu.org>
64         * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
65         ' \+' but '  *' for sed.
66         (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
68 2002-07-23  Werner LEMBERG  <wl@gnu.org>
70         * doc/groff.texinfo: Document `papersize' keyword.
71         * NEWS, man/groff_font.man: Updated.
73 2002-07-23  Colin Watson  <cjwatson@debian.org>
75         Extend papersize keyword to accept more than a single entry.  The
76         first valid will be used.
78         * src/libs/libgroff/font.cc (font::load_desc): Implement it.
79         (font::scan_papersize): Really skip final newline.
80         * src/preproc/html/pre-html.cc (get_papersize): Ditto.
82 2002-07-23  Werner LEMBERG  <wl@gnu.org>
84         * configure.ac: Test for isatty.
85         * configure: Regenerated.
86         * src/include/posix.h: Check HAVE_ISATTY.
87         * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
88         * src/utils/lookbib/lookbib.cc: Include posix.h.
89         Don't declare isatty.
91 2002-07-21  Werner LEMBERG  <wl@gnu.org>
93         * NEWS: Add `output' request.
95         * REVISION: Increased to 1.
97 Version 1.18.0 released
98 =======================
100 2002-07-19  Gaius Mulley  <gaius@glam.ac.uk>
102         Allow internal glyph indices > 0xFF in grohtml for input characters.
104         * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
105         as parameter.
106         (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
107         Updated all callers.
108         (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
109         (html_printer): Updated.
111 2002-07-19  Werner LEMBERG  <wl@gnu.org>
113         * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
114         * font/devutf8/R.proto: Adding some missing glyphs.
115         * font/devutf8/NOTES: Updated.
117         * tmac/dvi.tmac: Add more composite glyphs.
118         * tmac/html.tmac: Updated.
120         * man/groff_char.man: Add `sum' and `product' entities.
122         * NEWS: Updated.
124 2002-07-18  Gaius Mulley  <gaius@glam.ac.uk>
126         Improved table, tab, and indenting support.
128         * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
129         string_iterator::suppress_newline_flag): Removed.  Updated all
130         function which have used it.
132         * src/roff/troff/env.cc: Include `input.h'.
133         (environment::add_node): Accept 0 as parameter.
134         (environment::add_html_tag): Add `force' parameter.
135         Updated all callers.
136         (environment::add_html_tag_tabs): Ditto.
137         For the moment, support left-aligned tabs only.
138         (environment::make_html_tag): New function.
139         (fill, no_fill): Set .br html tag additionally.
140         (environment::newline): Emit `eol.ce' or `eol' tag for html.
141         (environment::add_html_tag_eol): Removed.
142         (tab_stops::distance_to_next_tab): Add variant for handling 
143         nextpos'.
144         (environment::distance_to_next_tab): Ditto.
145         Updated all callers.
146         (environment::handle_tab): Handle tabs for html.
147         
148         * src/roff/troff/env.h: Updated.
150         * src/roff/troff/div.cc: Updated all callers of
151         `environment::add_html_tag'.
153         * src/devices/grohtml/html-table.cc,
154         src/devices/grohtml/html-table.h: New files.
156         * src/devices/grohtml/html-text.cc (html_text): New members
157         `blank_para' and `start_space'.
158         (html_text::issue_tag): Don't emit TABLE_TAG.
159         Handle indentation for PRE_TAG and P_TAG.
160         (html_text::end_tag): Updated.
161         (html_text::table_is_void, html_text::issue_table_begin,
162         html_text::issue_table_end): Removed.
163         (html_text::do_push): Simplified.
164         [DEBUGGING]: Small fix.
165         (html_text::push_para): Add new parameter for indentation; updated
166         all callers.
167         Handle PRE_TAG.
168         (html_text::do_indent, html_text::do_table, html_text::done_table,
169         html_text::is_in_table): Removed.
170         (html_text::do_pre): Handle P_TAG also.
171         (html_text::shutdown): Handle p->indent.
172         (html_text::check_emit_text): Simplified.
173         (html_text::do_emittext): Reset `blank_para'.
174         (html_text::do_para): Add new parameter for indentation; updated
175         all callers.
176         (html_text::remove_indent): New function.
177         (html_text::do_space): Handle verbatim text properly.
178         (html_text::ever_emitted_text, html_text::starts_with_space,
179         html_text::remove_para_align): New functions.
180         (html_text::dump_stack_element, html_text::dump_stack): Updated.
182         * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
183         Updated.
185         * src/devices/grohtml/post-html.cc: Include html-table.h.
186         (INDENTATION): Removed.
187         (text_glob): Added many `is_<foo>' functions.
188         Added table description `tab'.
189         Added `get_arg',`get_tab_args', `remember_table', and `get_table'
190         member functions.
191         (list): Add `insert' and `move_to' member functions.
192         (page): Add `insert_tag' member function.
193         (page::dump_page) [DEBUG_TABLES]: Improved.
194         (html_printer): Add `table' and `max_linelength' elements.
195         Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
196         `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
197         `remove_tabs', `remove_courier_tabs'.
198         (html_printer::emit_raw): Handle indentation.
199         (html_printer::do_center, html_printer::write_header): Updated.
200         (html_printer::is_courier_until_eol): Check for tag.
201         (html_printer::do_linelength): Handle max_linelength.
202         (html_printer::do_page_offset, html_printer::do_indentation): Handle
203         fill_on.
204         (html_printer::do_tempindent): Updated.
205         (html_printer::do_indentedparagraph): Removed.
206         (html_printer::do_indent): Simplified.
207         (html_printer::do_eol): Use `ever_emitted_text'.
208         (html_printer::do_flush, html_printer::do_links): Don't call
209         done_table.
210         (html_printer::do_break): Handle end_tempindent.
211         (html_printer::troff_tag): Get argument.
212         Don't handle `.ip'.
213         Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
214         (html_printer::flush_page): Call `lookahead_for_tables'.
215         Don't call `done_table'.
216         (html_printer::add_to_sbuf): Always call do_indent.
218         * src/devices/grohtml/Makefile.sub: Updated.
220         * tmac/an-old.tmac (TP): Don't handle html device specially.
221         (an-do-tag-html): New function which will be used instead of
222         `an-do-tag' if html device is used.
224         * tmac/html.tmac: Call .po to pass default page offset to grohtml.
226         * tmac/s.tmac (@IP): Don't handle html device specially.
227         (@IP-html): New function which will be used instead of `@IP' if
228         html device is used.
230         * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
231         is a hack which will eventually vanish again.
232         (PIMG): Handle `-C' option correctly if not html.
233         (HR): Use HTML-NS.
235 2002-07-17  Werner LEMBERG  <wl@gnu.org>
237         * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
239 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
241         * contrib/pic2graph/pic2graph.*: Use convert(1).
242         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
244 2002-07-14  Bernd Warken  <bwarken@mayn.de>
246         * tmac/groff_trace.man: New file.
247         * tmac/Makefile.sub: Updated.
248         * NEWS: Updated.
250 2002-07-13  Werner LEMBERG  <wl@gnu.org>
252         * src/roff/groff/groff.man: Add some cross references.
254 2002-07-12  Werner LEMBERG  <wl@gnu.org>
256         * src/roff/troff/input.cc (substring_request): Add warnings for
257         string indices out of range.
259 2002-07-11  Werner LEMBERG  <wl@gnu.org>
261         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
262         * font/devdvi/*EC: Regenerated.
264 2002-07-10  Bernd Warken  <bwarken@mayn.de>
266         * man/groff_char.man: Updated and extended.
268 2002-07-10  Werner LEMBERG  <wl@gnu.org>
270         * src/roff/troff/input.cc (length_macro): Renamed to...
271         (length_request): This.
272         Move call of `tok.next()' to the very end, otherwise the register
273         value hasn't been updated yet.
274         (init_input_requests): Updated.
276 2002-07-09  Werner LEMBERG  <wl@gnu.org>
278         * src/roff/troff/input.cc (substring_macro): Renamed to...
279         (substring_request): This.
280         (init_input_requests): Updated.
281         * src/roff/troff/request.h: Updated.
283 2002-07-08  Robert D. Goulding <goulding@Princeton.EDU>
285         * src/roff/grog/grog.sh: Fix typo.
287 2002-07-08  Werner LEMBERG  <wl@gnu.org>
289         * win32-diffs: Updated.
291         Handle `papersize' keyword properly in DESC.
293         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
294         type.
295         Updated all callers.
296         * src/libs/libgroff/paper.cc: Add four more paper formats used by
297         grolj4.
298         * src/include/paper.h: Updated.
300         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
301         Other minor C syntax fixes.
302         (papersize, paperlength, paperwidth): Renamed to `user_*'.
303         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
304         members.
305         (lbp_printer::lbp_printer): Pass three arguments.
306         Set paper dimensions properly.
307         (make_printer, main): Updated.
308         (handle_unknown_desc_command): Fix error messages.
309         (main): Handle papersize keyword in DESC properly.
311         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
312         `user_paper_size'.
313         (lbp_printer::lbp_printer): Pass an argument.
314         Set paper_size properly.
315         (handle_unknown_desc_command): Removed.
316         (make_printer, main): Updated.
317         * src/devices/grolj4/grolj4.man: Minor documentation fix.
319         * man/groff_font.man, NEWS: Updated.
321 2002-07-07  Werner LEMBERG  <wl@gnu.org>
323         Integrated eqn2graph, contributed by Eric S. Raymond.
325         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
326         files.
327         * Makefile.in, NEWS: Updated.
329 2002-06-04  Werner LEMBERG  <wl@gnu.org>
331         Changing the substring request to make it fit better with other
332         string manipulation functions in other programming languages:
333         Index 0 is now the first character in the string, and index -1
334         indicates the last character.  Since this request didn't work
335         properly anyway in the last release, it doesn't harm too much to
336         change the syntax.
338         * src/roff/troff/input.cc (substring_macro): Use loops to get
339         the real string length (ignoring COMPATIBLE_SAVE and
340         COMPATIBLE_RESTORE) and offsets.
341         Implement change described above.
343         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
344         (doc-do-Bd-args, doc-do-Bl-args: Changed accordingly.
346         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
348 2002-06-03  Werner LEMBERG  <wl@gnu.org>
350         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
351         COMPATIBLE_RESTORE are completely ignored.
353         * src/roff/troff/input.cc (char_list::set, char_list::get): New
354         functions.
355         (macro): `length' field renamed to `len'.
356         Added new field `empty_macro' (1 if macro is empty), to be used
357         instead of checking `len'.
358         Updated all callers.
359         (macro::empty): Updated.
360         (macro::length, macro::set, macro::get): New functions.
361         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
362         Set `empty_macro'.
363         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
364         COMPATIBLE_RESTORE pairs.
365         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
366         * src/roff/troff/request.h: Updated.
368         * doc/groff.texinfo: Document .chop's behaviour better.
370 2002-06-02  Werner LEMBERG  <wl@gnu.org>
372         * doc/pic.ms: Fix documentation for the addition of positions.
374         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
376 2002-06-29  Werner LEMBERG  <wl@gnu.org>
378         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
380         * src/roff/troff/input.cc (have_string_arg): New global variable.
381         (read_mode): New enumeration.
382         (read_escape_name): Use it.  Update all calls.
383         (read_long_escape_name): Use it.  Update all calls.
384         Set have_string_arg if appropriate.
385         (get_char_for_escape_name): Add parameter for handling space
386         character.
387         (interpolate_string_with_args, decode_string_args): New functions.
388         (get_copy, token::next): Call it if necessary.
389         (interpolate_string): Fix error message.
391         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
392         Document it.
394 2002-06-24  Bernd Warken  <bwarken@mayn.de>
396         * man/groff_tmac.man: Updated and extended.
398 2002-06-24  Werner LEMBERG  <wl@gnu.org>
400         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
402 2002-06-23  Werner LEMBERG  <wl@gnu.org>
404         * doc/pic.ms: Improve documentation of composite block objects.
406 2002-06-22  Werner LEMBERG  <wl@gnu.org>
408         * src/roff/troff/input.cc (init_registers): Add three registers
409         `seconds', `minutes', and `hours' to hold the current time.
411         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
412         Updated.
414 2002-06-20  Werner LEMBERG  <wl@gnu.org>
416         Make \X accept both `\ ' and `\~', converting them to single space
417         characters.
419         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
420         (token::unstretchable_space): New inline function.
421         * src/roff/troff/input.cc (token::next, token::delimiter,
422         token::description, token::add_to_node_list, token::process): Handle
423         TOKEN_UNSTRETCHABLE_NODE.
424         (encode_char): Handle tok.stretchable_space and
425         tok.unstretchable_space.
427         * NEWS, doc/groff.texinfo: Document it..
429 2002-06-19  Werner LEMBERG  <wl@gnu.org>
431         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
433         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
434         keyword to enable/disable SGR output.
435         (tty_printer::change_fill_color): New function.
436         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
438         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
439         call.
441 2002-06-18  Werner LEMBERG  <wl@gnu.org>
443         Add a `color' request and a `.color' register to control usage of
444         colours.
446         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
447         (color_flag): This (which is the inverse).
448         (activate_color): New function.
449         (main, init_input_requests): Updated.
450         * src/roff/troff/troff.h, src/roff/troff/node.cc
451         (troff_output_file::fill_color, troff_output_file::glyph_color):
452         Updated.
454         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
455         Document the changes.
457 2002-06-17  Colin Watson  <cjwatson@debian.org>
459         Circumvent bug in autoconf 2.53 regarding top_builddir.
461         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
462         * Makefile.in, doc/Makefile.in:
463         s/@top_builddir@/@groff_top_builddir@/.
464         * configure: Regenerated (with autoconf 2.53).
466 2002-06-17  Werner LEMBERG  <wl@gnu.org>
468         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
469         `paperwidth' and `paperlength' for the `papersize' keyword.
471 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
473         * src/devices/grops/grops.man: Add info about Type 42 fonts.
475 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
477         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
478         html_printer::do_linelength, html_printer::do_pageoffset,
479         html_printer::do_indentation, html_printer::do_tempindent,
480         html_printer::do_break, html_printer::begin_page): Clear indented
481         text.
482         * tmac/html.tmac: Disable hyphenation.
484 2002-06-15  Werner LEMBERG  <wl@gnu.org>
486         Don't produce HTML files if utility programs are missing.
488         * Makefile.in (make_html, make_install_html): New variables.
489         (MDEFINES): Updated.
491         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
492         utility programs.
493         * configure.ac: Use it.
494         * configure: Regenerated.
496         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
497         (HTMLEXAMPLESFILES): This new variable.
498         (EXAMPLESIMAGEFILES): Renamed to...
499         (HTMLEXAMPLEIMAGEFILES): This.
500         (CLEANADD): Add HTMLEXAMPLEFILES.
501         (all): Use `make_html'.
502         (html): New target.
503         (install_data): Use `make_install_html'.
504         Move html stuff to...
505         (install_html): This new target.
506         (uninstall_sub): Updated.
508 2002-06-14  Bernd Warken  <bwarken@mayn.de>
510         * src/roff/grog/Makefile.sub (grog): Renamed to...
511         (grog.old): This.
512         (grog): New rule to always install grog.sh as grog.
514 2002-06-08  Bernd Warken  <bwarken@mayn.de>
516         * src/roff/grog/grog.pl: Fix typo.
518 2002-06-07  Werner LEMBERG  <wl@gnu.org>
520         * doc/groff.texinfo: Add more info on .tr arguments.
522 2002-06-05  Werner LEMBERG  <wl@gnu.org>
524         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
526         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
527         * configure: Regenerated.
529 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
531         * src/roff/troff/symbol.cc (table_sizes): Add more values.
533         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
535 2002-06-04  Werner LEMBERG  <wl@gnu.org>
537         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
538         is not initialized at the time we need it in case `--prefix' hasn't
539         been set.  Check for `ac_default_prefix' also.
540         Test for `papersize' keyword also and generalize allowed whitespace.
541         * configure: Regenerated.
543         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
544         `paperlength'.
546         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
547         with...
548         (src_version, src_revision): New variables to avoid overwriting
549         from parent make process.
550         (version.cc): Updated.
552         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
553         (linebuf, linebufsize): New global variables.
554         (sys_fatal): Use `fatal' to abort properly.
555         (get_line): New function.
556         (get_resolution): Use it.
557         Improve error messages.
558         (get_papersize): Check `papersize' also.
559         Use `get_line'.
560         Improve error messages.
562 2002-06-03  Werner LEMBERG  <wl@gnu.org>
564         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
565         should be removed only if builddir is not srcdir.
566         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
567         (clean): Depend on `mostlyclean'.
568         (distclean): Depend on `clean'.
569         (realclean, extraclean): Depend on `distclean'.
570         (.y.cc, .y.o): Simplified.  The output files are no longer written
571         to srcdir but to builddir.
572         * Makefile.in (MDEFINES): Add `version' and `revision'.
573         (uninstall_dirs): Fix order of directories.
574         * doc/Makefile.sub (version, revision): Removed.
575         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
576         Added `HTMLDOCFILES'.
577         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
578         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
579         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
580         as prefix.
582         * doc/texinfo.tex (\authortt): New macro.
583         (\shortcontt): Define.
584         (\titlepage): Set \tt to \authortt while defining \authorfont.
585         (\appendixbox): New macro.
586         (\chapmacro, \appendixentry): Use \appendixbox to get even
587         indentation for letters.
588         (\summarycontents): Set \tt.
589         (\internalpagesize): Add two arguments for real paper width and
590         height as needed by pdfTeX.
591         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
592         Updated.
593         (\tempdima, \tempdimb): New temporary dimensions.
594         (\pagesizesyyy): Updated.
596 2002-06-02  Werner LEMBERG  <wl@gnu.org>
598         Adding a new keyword `papersize' to the DESC file format (similar
599         but not completely identical to grolbp's extension).  grops now has
600         a -p command line option to override `papersize'.  Finally, grolbp
601         has been adapted to the new syntax.
603         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
604         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
605         elements.
606         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
607         (CCSRCS): Add `paper.cc'.
609         * src/include/font.h (font): Add `papersize' element.
610         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
611         (font::scan_papersize): New function.
612         (font::load_desc): Use it for handling `papersize' keyword.
613         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
615         * src/devices/grops/ps.cc: Include paper.h.
616         (user_paper_length): New global variable.
617         (ps_printer): Use paper length as initializer.
618         (make_printer): Updated.
619         (main): Handle new `-p' option.
620         * src/devices/grops/grops.man: Updated.
622         * src/devices/grolbp/lbp.cc: Include paper.h.
623         s/papersizes/lbp_papersizes/.
624         (set_papersize): Use new `papersizes' array.
625         (handle_unknown_desc_command): Don't handle `papersize'.
626         (main): Use `font::scan_papersize' for handling `-p' option.
627         * src/devices/grolbp/grolbp.man: Updated.
629         * man/groff_font.man: Document `papersize'.
630         * NEWS: Updated.
632 2002-05-30  Werner LEMBERG  <wl@gnu.org>
634         * src/devices/grops/TODO: Updated.
635         * src/devices/grops/grops.man: More info on paper formats.
636         * man/groff_font.man: Document `paperheight' and `paperwidth'.
638 2002-05-29  Werner LEMBERG  <wl@gnu.org>
640         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
641         to list only if srcdir != currdir.
642         (distfiles): New target.
644         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
645         (NOMAKEDIRS): New variable.
646         (DISTDIRS): Use it.
648 2002-05-26  Werner LEMBERG  <wl@gnu.org>
650         Add .output request, similar to \! at top-level.
652         * src/roff/troff/input.cc (transparent): Remove unused declaration.
653         (output_request): New function.
654         (init_input_requests): Add it.
655         Sorted.
656         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
657         Document it.
659         * Makefile.in (MDEFINES): Add INSTALL_INFO.
660         (prepare_examples): Fix typo.
661         * doc/groff.texinfo (@direntry): Fix it.
663 2002-05-25  Werner LEMBERG  <wl@gnu.org>
665         Including the doc subdir into groff's Makefile system.
667         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
668         * configure.ac: Use it.
669         Generate `doc/Makefile'.
670         * configure: Regenerated.
672         * Makefile.in (infodir, INSTALL_INFO): New variables.
673         (MDEFINES, uninstall_dirs): Updated.
674         (OTHERDIRS): Add `doc'.
675         * Makefile.comm (CLEANDIRADD): New variable.
676         (mostlyclean): Use it.
678         * doc/Makefile.sub, doc/Makefile.in: New files.
679         * doc/Makefile: Removed.
681         * NEWS, INSTALL: Updated.
683 2002-05-24  Werner LEMBERG  <wl@gnu.org>
685         * doc/homepage.ms: Renamed to ...
686         * doc/webpage.ms: This.
687         Use `.NHR'.
689 2002-05-23  Werner LEMBERG  <wl@gnu.org>
691         Integrating the `mom' macro package, contributed by Peter Schaffter
692         <df191@ncf.ca>.
694         * contrib/mom/*: New subdirectory tree.
695         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
696         be used for documentation files.
697         (MDEFINES, uninstall_dirs): Use them.
698         (OTHERDIRS): Add contrib/mom.
699         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
700         @HTMLDOCDIR@.
701         * MANIFEST, NEWS: Updated.
703 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
705         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
706         if at outer level; at start-up we are at outer level.
708         * src/roff/troff/input.cc (do_suppress): Implement it.
709         Simplify \O[3].
711         Add option -p to show progress information.
712         pre-grohtml will now render only one page at a time, reducing the
713         size of needed disk resources enormously.
715         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
716         (imagePageName): New global variable.
717         (psPageName, show_progress, currentPageNo): New global variables.
718         (html_system): Close saved stderr and stdout handles.
719         (write_end_image): Accept a parameter to control \O escape.
720         (write_start_image): Adapted to new \O meaning.
721         (char_buffer::write_upto_newline): Updated.
722         (createAllPages): Replaced with...
723         (createPage): This new function to create a single page for images.
724         It uses `psselect' from the psutils package.
725         (removeAllPages): Removed.
726         (createImage): Updated.
727         Handle progress display.
728         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
729         (scanArguments): Add option -p.
730         (makeTempFiles): Updated to create temp files for psPageName and
731         imagePageName.
732         (removeTempFiles): Removed.
733         (main): Updated.
735         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
736         html_printer::write_header): Append `\0' to `buffer'.
737         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
738         (main): Handle -p.
739         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
740         Handle `text_emitted'.
741         (html_text::table_is_void): Slightly rewritten.
742         (stop): New external symbol.
743         (html_text::do_push) [DEBUGGING]: Use it and simplify.
744         (html_text::shutdown): Call `dump_stack'.
745         (html_text::do_space): Rewritten.
746         * src/devices/grohtml/grohtml.man: Document -p and the need of
747         `psselect'.
749         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
750         new \O syntax.
751         Call \O[0] if `ps4html' is active.
752         * tmac/s.tmac (@EQ, @EN): Handle html better.
753         (@TS, TE): Ditto.
754         * tmac/html.tmac: Don't use black for background colour.
756         * src/roff/troff/node.cc: Include `div.h'.
757         (troff_output_file::really_print_line): Don't use `is_on'. 
758         (troff_output_file::word_marker, troff_output_file::flush_tbuf
759         troff_output_file::check_charinfo,
760         troff_output_file::put_char_width, troff_output_file::put_char,
761         troff_output_file::determine_line_limits, troff_output_file::draw,
762         real_output_file::begin_page, glyph_color_node::tprintf,
763         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
764         Use `is_on'.
765         (troff_output_file::really_on): Call `do_motion'.
766         (suppress_node::tprint): Use `get_page_number' instead of `%'
767         register.
768         Call `reset_output_registers' conditionally on `is_on'.
770         * doc/groff.texinfo: Document new syntax of \O.
771         * NEWS, man/groff_diff.man: Updated.
773 2002-05-22  Werner LEMBERG  <wl@gnu.org>
775         * MORE.STUFF: Add info about David Frey's deroff implementation.
776         Mention troff.org.
778 2002-05-16  Werner LEMBERG  <wl@gnu.org>
780         Pic's `with' attribute now accepts positions.
782         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
783         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
784         conflicts.
785         (object_spec): Add rule for `WITH' and `position'.
786         (relative_path): Give `corner' the precedence of `CHOP'.
787         * src/preproc/pic/object.h (path): New members `pos' and
788         `is_position'.
789         * src/preproc/pic/object.cc: Updated initializers of `path'.
790         (path::follow): Handle `is_position'.
792         * doc/pic.ms: Completely updated grammar description.
793         Many typographical improvements.
795 2002-05-15  Werner LEMBERG  <wl@gnu.org>
797         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
798         code of x in range 0-127) also.
799         * doc/groff.texinfo, man/groff_diff.man: Updated.
801         Added keywords `north', `south', `east', and `west' for corners
802         in pic.
804         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
805         and WEST.
806         (yylex): Handle them.
807         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
808         (corner): Handle them.
810 2002-05-14  Werner LEMBERG  <wl@gnu.org>
812         * src/devices/grops/grops.man: Clarify handling of `download' file.
814 2002-05-11  Werner LEMBERG  <wl@gnu.org>
816         Adding `warnscale' and `spreadwarn' requests, based on a patch from
817         Jeffrey Friedl <jfriedl@yahoo.com>.
819         * src/roff/troff/input.cc (spread_limit, warn_scale,
820         warn_scaling_indicator): New global variables.
821         (warnscale_request, spreadwarn_requests): New functions.
822         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
823         (init_input_requests): Updated.
824         (error_type): Add `OUTPUT_WARNING'.
825         (do_error): Handle it.
826         (output_warning): New warning function which shows output location.
827         * src/roff/troff/env.h (spread_limit): New external variable.
828         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
829         `output_warning'.
830         (distribute_space): Emit warning if added space is larger than
831         `spread_limit'.
832         (environment::possibly_break_line): Emit warning if a line can't
833         be adjusted on both sides.
835         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
837 2002-05-08  Werner LEMBERG  <wl@gnu.org>
839         * src/roff/troff/node.cc (special_node::special_node): Use
840         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
841         \X''\% crashes, for example.
843         * doc/groff.texinfo: Document \! and \? used at top-level.
845 2002-05-06  Werner LEMBERG  <wl@gnu.org>
847         * src/preproc/pic/pic.man: Fix some keyword syntax.
848         Other minor typographical fixes.
850         * src/roff/groff/groff.man: Fix typos.
852 2002-05-04  Werner LEMBERG  <wl@gnu.org>
854         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
855         (ShortOpt[]): This to avoid problems with refer.
857         * doc/pic.ms: Fix typo.
858         Fix pic grammar description.
860         * tmac/an-old.tmac (ne): Use de1, not de.
862 2002-05-03  Werner LEMBERG  <wl@gnu.org>
864         * doc/groff.texinfo: Finished separation of glyphs and characters.
865         Don't use the string `Appendix' for appendix headers (both in
866         the text and the table of contents).
867         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
868         directories.
870         Use registers LL and LT (similar to -ms) for controlling the
871         length of title and line, respectively, in the -man and -mdoc
872         macro packages.
874         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
875         (doc-setup-page-layout): Use \n[LL] and \n[LT].
876         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
877         (TH): Use \n[LL].
878         (an-header, an-p-footer): Use \n[LT].
879         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
880         doc/groff.texinfo: Document it.
882 2002-05-02  Werner LEMBERG  <wl@gnu.org>
884         * doc/fdl.texi: New file.
885         * doc/groff.texinfo: Include it.
886         Define and use @copying.
887         Starting with separating glyph, symbol, and character.
889 2002-04-27  Werner LEMBERG  <wl@gnu.org>
891         * Makefile.in (EXEEXT): Set it.
892         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
893         programs.
895         * src/include/nonposix.h: Define GS_NAME.
896         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
898         Some preliminary changes for EMX support under OS/2.
900         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
901         __EMX__ similar to __MSDOS__.
902         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
904 2002-04-25  Werner LEMBERG  <wl@gnu.org>
906         * doc/groff.texinfo: Integrated groff_out.man.
907         Some macro fixes.
909 2002-04-23  Werner LEMBERG  <wl@gnu.org>
911         * man/groff_out.man: Minor fixes.
913 2002-04-23  Werner LEMBERG  <wl@gnu.org>
915         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
916         correct page references.
917         Fixed many index entries.
919 2002-04-23  Bernd Warken  <bwarken@mayn.de>
921         * man/roff.man: Enlarged.
923 2002-04-22  Werner LEMBERG  <wl@gnu.org>
925         * doc/groff.texinfo: More examples, other fixes.
927 2002-04-20  Werner LEMBERG  <wl@gnu.org>
929         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
930         will now form a chain, e.g.
932           .pi foo
933           .pi bar
935         is now the same as
937           .pi foo | bar
939         This is for compatibility with plan 9's troff.
941         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
942         with UNIX troff.
943         * NEWS: Updated.
945         * doc/groff.texinfo: Add documentation of remaining requests and
946         registers.
948 2002-04-19  Werner LEMBERG  <wl@gnu.org>
950         * doc/groff.texinfo: Add documentation of remaining escapes.
952         * font/devdvi/generate/tc.map: Remove entry for `sr'.
953         * font/devdvi/*TC: Regenerated.
955 2002-04-18  Werner LEMBERG  <wl@gnu.org>
957         * src/roff/troff/input.cc (token::next): Make \H behave consistently
958         if not in compatibility mode, i.e., increment relative to the
959         previous height.
960         * doc/groff.texinfo: Updated accordingly.
962 2002-04-17  Werner LEMBERG  <wl@gnu.org>
964         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
966 2002-04-16  Bernd Warken  <bwarken@mayn.de>
968         * src/roff/groff/groff.man: Improve documentation of -P option.
969         Other minor fixes.
971 2002-04-15  Werner LEMBERG  <wl@gnu.org>
973         Add new escape \F to switch font family.
975         * src/roff/troff/input.cc (token::next): Handle \F.
976         * src/roff/troff/env.cc (environment::set_family): Handle
977         `interrupted' flag.
978         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
979         Document it.
981 2002-04-14  Werner LEMBERG  <wl@gnu.org>
983         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
984         spaces in tags.
986 2002-04-13  Werner LEMBERG  <wl@gnu.org>
988         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
989         \m[] and \M[], respectively.
991         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
992         (symbol::symbol): Handle NULL string and empty string differently.
993         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
994         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
995         Add optional parameter.
996         Updated calling functions.
997         (get_copy, do_glyph_color, do_fill_color, token::next): Use
998         `symbol::is_empty'.
999         * src/roff/troff/env.cc (environment::set_font): Ditto.
1001         * src/preproc/pic/troff.cc (troff_output::set_fill,
1002         troff_output::reset_color: Updated.
1004         * tmac/www.tmac: Updated.
1006         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
1007         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
1008         Updated.
1010         * tmac/Xps.tmac: Remove some redundant code.
1012         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
1013         tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
1014         man/groff_out.man, man/groff.man, man/groff_diff.man,
1015         src/roff/groff/groff.man: Replace \f[P] with \f[].
1017 2002-04-13  Bernd Warken  <bwarken@mayn.de>
1019         * src/include/printer.h, src/libs/libdriver/printer.cc
1020         (printer::change_fill_color): New member function.
1021         * src/libs/libdriver/input.cc (parse_D_command): Use it.
1023 2002-04-12  Werner LEMBERG  <wl@gnu.org>
1025         * doc/groff.texinfo: Completed pass on gtroff reference.
1027 2002-04-11  Werner LEMBERG  <wl@gnu.org>
1029         * doc/groff.texinfo: More fixes.
1031 2002-04-11  Bernd Warken  <bwarken@mayn.de>
1033         * src/include/color.h: Decorate with `const'.
1034         Use `size_t'.
1035         Include `stddef.h'.
1036         * src/libs/libgroff.color.cc: Decorate with `const'.
1037         Use `size_t'.
1038         (color::color): Initialize members.
1039         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
1040         command according to the documentation.
1042         * man/groff_out.man: Updated.
1043         Minor fixes.
1045 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
1047         * src/preproc/html/pre-html.cc (write_start_image): Remove
1048         redundant output.
1049         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
1051         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
1052         \C'hy' caused an assertion failure.
1054         * src/roff/troff/env.cc (environment::environment): Initialize
1055         `emitted_node'.
1056         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
1058 2002-04-10  Werner LEMBERG  <wl@gnu.org>
1060         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1061         Document pvs request and .pvs register.
1063 2002-04-09  Werner LEMBERG  <wl@gnu.org>
1065         * doc/groff.texinfo: Improve and fix documentation of diversions
1066         and environments.
1068 2002-04-08  Werner LEMBERG  <wl@gnu.org>
1070         * doc/groff.texinfo: Fix documentation of drawing functions.
1071         Other minor fixes.
1073 2002-04-07  Werner LEMBERG  <wl@gnu.org>
1075         * doc/groff.texinfo: Better documentation of double quotes as
1076         arguments.
1077         Other minor fixes.
1079 2002-04-06  Werner LEMBERG  <wl@gnu.org>
1081         * man/groff_font.man: Document names of special characters better.
1082         * doc/groff.texinfo: Minor improvements.
1084         * tmac/lbp.tmac: Load latin1.tmac.
1085         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
1087         * font/devX*/*: Regenerated (all chars > 0x80 removed).
1089 2002-04-05  Werner LEMBERG  <wl@gnu.org>
1091         * tmac/tty.tmac: Don't use shc request.
1092         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
1093         * NEWS: Updated.
1095         * man/groff_diff.man: Minor fixes.
1097         * font/devlbp/*: Remove all `charXXX' entities.
1099         * src/libs/libgroff/font.cc (font::~font): Deallocate
1100         `special_device_coding'.
1101         (font::load): Use `new' for allocating `special_device_coding'.
1102         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
1103         Removed unused member.
1105 2002-04-05  Werner LEMBERG  <wl@gnu.org>
1107         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
1108         (resource_manager::do_begin_binary,
1109         resource_manager::do_begin_data): Use it.
1111         * doc/texinfo.tex: Updated to version 4.2.
1113         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
1114         (token::zero_width_break): New inline function.
1115         * src/roff/troff/input.cc (token::next): Use it.
1116         (token::description): Updated.
1117         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
1118         (token::add_to_node_list, token::process): Use it.
1119         * NEWS, doc/groff.texinfo: Updated.
1121         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
1122         * tmac/tty.tmac: Add missing backslash.
1124 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
1126         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
1127         `.ps' register instead of `.s' to handle fractional point sizes.
1128         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
1129         limit_box::output): Ditto.
1130         * src/preproc/eqn/other.cc (size_box::compute_metrics,
1131         size_box::output): Ditto.
1132         * src/preproc/eqn/over.cc (over_box::compute_metrics,
1133         over_box::output): Ditto.
1134         * src/preproc/eqn/script.cc (script_box::compute_metrics,
1135         script_box::output): Ditto.
1136         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
1137         sqrt_box::output): Ditto.
1139 2002-04-03  Michael Selway  <mas@ssl.co.uk>
1141         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
1142         Fix typo.
1144 2002-04-03  Werner LEMBERG  <wl@gnu.org>
1146         * doc/homepage.ms: Reduce title size.
1147         * doc/groff.texinfo: Fix documentation of .t register.
1148         Fix handling of colon.
1149         Fix `\' vs. `\\'.
1151         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
1152         only if page length is positive to avoid a loop.
1154         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
1155         tbl.
1157 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
1159         * src/include/nonposix.h, src/roff/groff/pipeline.c:
1160         s/__CYGWIN32__/__CYGWIN__/.
1162 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
1164         * doc/gnu.xpm: New image contributed by Emily Mulley.
1165         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
1166         (homepage.html): Be dependent on gnu.eps.
1167         * doc/homepage.ms: Updated to new image.
1169         * src/devices/grohtml/post-html.cc (html_printer): New member
1170         `sbuf_prev_hpos'.
1171         (html_printer::flush_sbuf, html_printer::set_char): Set it.
1172         (html_printer::sbuf_continuation): Use it.
1174 2002-03-28  Werner LEMBERG  <wl@gnu.org>
1176         * src/libs/libgroff/getopt.c: Updated to latest version.
1178         * tmac/README: More on hyphen.tex license.
1180 2002-03-26  Larry Kollar  <kollar@alltel.net>
1182         * doc/groff.texinfo: Add documentation of most missing requests.
1184 2002-03-25  Werner LEMBERG  <wl@gnu.org>
1186         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
1187         of `+-', `mu', and `di', respectively.
1189         * font/devascii/R.proto, font/devutf8/R.proto,
1190         font/devlatin1/R.proto, font/devhtml/R.proto,
1191         font/devcp1047/R.proto, font/devlpb/*: Add them.
1192         * font/devps/generate/textmap: Ditto.
1193         * font/devps/*: Regenerated.
1194         * font/devlj4/generate/text.map: Add them.
1195         * font/devlj4/*: Regenerated.
1196         * font/devdvi/generate/tc.map: Use them.
1197         * font/devdvi/generate/texsy.map: Add them.
1198         * font/devdvi/*: Regenerated.
1199         * font/devX*/*: Regenerated.
1201         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
1202         tmac/tty-char.tmac: Updated.
1204         * NEWS, man/groff_char.man: Updated.
1206 2002-03-24  Werner LEMBERG  <wl@gnu.org>
1208         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
1209         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
1210         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
1211         we use `.fchar' in dvi.tmac.
1212         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
1213         * tmac/Xps.tmac: Simplify some char definitions.
1214         Add definition for \[f/].
1215         * man/groff_char.man: Updated for new X.tmac.
1217         * tmac/README: New file.
1219 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
1221         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
1222         internal .y.o rule took precendence over the .y.cc rule, compiling
1223         the yacc files with gcc instead of g++.
1225 2002-03-23  Werner LEMBERG  <wl@gnu.org>
1227         * tmac/dvi.tmac: Add replacement font for `CB'.
1229         * tmac/doc.tmac: s/request/macro/ in messages.
1230         (doc-generic-macro): Improve error message.
1231         * tmac/groff_mdoc.man: Minor improvements.
1233 2002-03-22  Werner LEMBERG  <wl@gnu.org>
1235         * doc/groff.texinfo: Document possible conflict between `tr' and
1236         `char' requests.
1238 2002-03-21  Werner LEMBERG  <wl@gnu.org>
1240         Improve handling of hyphenation patterns.  It is now possible to
1241         use most of TeX's pattern files unmodified.  To make the process
1242         more flexible, a new request `hpfcode' has been added which
1243         provides a character code mapping for the `hpf' request.  See
1244         comment before hpf_getc() for more details.
1246         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
1247         functions.
1248         (read_patterns_file): Additional parameter for exception dictionary.
1249         Extended to recognize \pattern, \hyphenation, and \endinput.
1250         (do_hyphenation_patterns_file): Updated.
1251         * src/roff/troff/env.h (hpf_code_table): New extern.
1253         * src/roff/troff/input.cc (hpf_code_table): New array.
1254         (init_hpf_code_table, hyphenation_patterns_file_code): New
1255         functions.
1256         (hyphenation_code): Handle translation from `trin' correctly.
1257         (main, init_input_requests): Updated.
1258         (charinfo::set_translation): Handle hyphenation code also.
1260         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
1261         inline function.
1263         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
1264         char' is used for offsets in hyphenation exceptions.
1266         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
1268         * NEWS, man/groff_diff.man, man/groff.man: Document it.
1270 2002-03-20  Larry Kollar  <kollar@alltel.net>
1272         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
1273         requests.
1275 2002-03-18  Werner LEMBERG  <wl@gnu.org>
1277         * tmac/html.tmac: Fix serious typo.
1279 2002-03-17  Larry Kollar  <kollar@alltel.net>
1281         * doc/groff.texinfo: Add documentation for `writec' request.
1283 2002-03-17  Werner LEMBERG  <wl@gnu.org>
1285         Added request `hpfa' to append hyphenation patterns.
1287         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
1288         parameter `append'.
1289         (hyphenation_patterns_file): Renamed to...
1290         (do_hyphenation_patterns_file): This.
1291         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
1292         functions.
1293         (init_hyphen_requests): Updated.
1294         * NEWS, man/groff.man, man/groff_diff.man: Document it.
1296 2002-03-16  Werner LEMBERG  <wl@gnu.org>
1298         Added request `writec' in analogy to `tmc'.
1300         * src/roff/troff/input.cc (write_request): Renamed to...
1301         (do_write_request): This.
1302         Added one parameter.
1303         (write_request, write_request_continue): New functions.
1304         (init_input_requests): Updated.
1305         * NEWS, man/groff.man, man/groff_diff.man: Document it.
1307         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
1308         5-10000pt.
1309         * NEWS: Document it.
1311 2002-03-15  Werner LEMBERG  <wl@gnu.org>
1313         * man/groff.man: Add writem request.
1315         Add request `trin' (translate input) to make `.asciify' work
1316         correctly.  This is necessary since `charXXX' entity names are no
1317         longer hardcoded in font definition files.
1319         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
1320         `translate_input' members.
1321         (charinfo::set_asciify_code, charinfo::get_asciify_code,
1322         charinfo::set_translation_input): New methods.
1323         (charinfo::set_translation): Add third argument.
1324         * src/roff/troff/input.cc (charinfo:set_translation): Set
1325         `asciify_code'.
1326         (do_translate): Add second argument.
1327         (translate_input): New function.
1328         (init_input_requests): Updated.
1329         * src/roff/troff/node.cc (glyph_node::asciify,
1330         composite_node::asciify): Use `get_asciify_code'.
1332         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
1334         * NEWS, man/groff.man, man/groff_diff.man: Updated.
1336 2002-03-14  Larry Kollar  <kollar@alltel.net>
1338         * doc/groff.texinfo: Improve documentation of .RS and .RE.
1340 2002-03-14  Werner LEMBERG  <wl@gnu.org>
1342         Add a new request `sizes' similar to the `sizes' command in DESC
1343         files.
1345         * src/roff/troff/env.cc (override_sizes): New function.
1346         (init_env_requests): Use it.
1347         * src/roff/troff/token.h: Export `read_string'.
1348         * NEWS, man/groff_diff.man, man/groff.man: Document it.
1350 2002-03-12  Werner LEMBERG  <wl@gnu.org>
1352         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
1354 2002-03-10  Werner LEMBERG  <wl@gnu.org>
1356         * tmac/pspic.tmac: Add support for -Tdvi.
1357         * tmac/dvi.tmac: Include pspic.tmac.
1358         * src/devices/grodvi/grodvi.man: Document it.
1359         * NEWS: Updated.
1361         * font/devlj4/generate/Makefile: Fix URL of metric files.
1363 2002-03-09  Werner LEMBERG  <wl@gnu.org>
1365         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
1367 2002-03-09  Larry Kollar  <kollar@alltel.net>
1369         * tmac/groff_ms.man: Add documentation for RS and RE macros.
1371 2002-03-08  Werner LEMBERG  <wl@gnu.org>
1373         * doc/groff.texinfo: Fixes for texinfo 4.1.
1375 2002-03-07  Werner LEMBERG  <wl@gnu.org>
1377         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
1378         included.
1379         Handle CYGWIN properly.
1381 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
1383         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
1384         * tmac/lbp.tmac: Add some font translations.
1386 2002-03-02  Werner LEMBERG  <wl@gnu.org>
1388         * font/devcp1047/R.proto, font/devlatin1/R.proto,
1389         font/devhtml/R.proto: Remove `charXXX'  entries.
1390         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
1391         where appropriate.
1393         * font/devlj4/generate/text.map: Remove `charXXX' entries.
1394         * font/devlj4/*: Regenerated all font definition files.
1395         * tmac/lj4.tmac: Load latin1.tmac.
1397         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
1398         from 2000-06-17: LJ4 metric files are *not* text files.
1400         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
1401         register to test for EBCDIC.
1403 2002-03-01  Werner LEMBERG  <wl@gnu.org>
1405         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
1406         files (as grops already does).
1407         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
1408         files.
1409         * src/devices/grops/grops.man: Document comment lines in encoding
1410         files.
1412         * tmac/cp1047.tmac: New file.
1413         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
1414         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
1415         * tmac/Makefile.sub (NORMALFILES): Updated.
1417         * tmac/ec.tmac: Don't load latin1.tmac again.
1419         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
1420         font/devps/generate/dingbats.map,
1421         font/devps/generate/dingbats.rmap, font/devps/text.enc,
1422         font/devps/generate/Makefile (symbolmap): Add header comment.
1423         * font/devps/generate/textmap: Ditto.
1424         Remove `charXXX' entries.
1425         * font/devps/symbolmap: Regenerated.
1426         * font/devps/*: Regenerated all font definition files.
1428 2002-02-28  Werner LEMBERG  <wl@gnu.org>
1430         Add color support to grodvi (for drawing colors are currently
1431         translated to gray values).
1433         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
1434         (dvi_printer): Add `cur_color' member.
1435         (dvi_printer::set_color): New function.
1436         (draw_dvi_printer): Remove `fill'.
1437         (draw_dvi_printer::fill_next): Pass environment as parameter.
1438         Update code for new color support translated to gray.
1439         (dvi_printer::set_char): Updated.
1440         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
1441         changes crossing the page border.
1442         (dvi_printer::draw): Updated.
1443         Remove cases `f' and `F'.
1444         * tmac/dvi.tmac: Add color definitions.
1445         * NEWS, src/devices/grodvi/grodvi.man: Updated.
1447         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
1448         used incorrectly.
1450         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
1451         versions of autoconf.
1452         * configure: Updated.
1454         * doc/homepage.ms: Use `.blm'.
1455         * tmac/www.tmac (www-depth): New auxiliary variable.
1456         (www-pop-level): Don't issue HTML tag.
1457         (ULS, ULE, LI): Use absolute indentation.
1459         * src/devices/grops/ps.cc (ps_printer::begin_page,
1460         ps_printer::end_page): Switch forth and back to default color while
1461         starting a new page.
1463 2002-02-27  Werner LEMBERG  <wl@gnu.org>
1465         Add EC and TC fonts to devdvi.
1467         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
1468         * font/devdvi/generate/cork.map: Renamed to...
1469         * font/devdvi/generate/ec.map: This.
1470         Remove entry for `aq'.
1471         * font/devdvi/generate/tc.map: New file.
1472         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
1473         EC and TC fonts.
1474         (FONTS): Updated.
1475         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
1476         * font/devdvi/Makefile.sub (DEVFILES): Updated.
1477         * tmac/ec.tmac: New file.
1478         * tmac/Makefile.sub (NORMALFILES): Updated.
1479         * NEWS, src/devices/grodvi/grodvi.man: Updated.
1480         * man/groff_char.man: Check `ECFONTS' register.
1482         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
1484 2002-02-26  Werner LEMBERG  <wl@gnu.org>
1486         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
1487         * font/devdvi/generate/cork.map: Add 'y and 'Y.
1488         * font/devdvi/*: Updated.
1489         * tmac/dvi.tmac: Formatting.
1491         Add font `HBI' for the dvi output.
1492         Add support for font families `T' and `H'.
1494         * font/devdvi/HBI: New file.
1495         * font/devdvi/B: Renamed to ...
1496         * font/devdvi/TB: This.
1497         * font/devdvi/BI: Renamed to ...
1498         * font/devdvi/TBI: This.
1499         * font/devdvi/I: Renamed to ...
1500         * font/devdvi/TI: This.
1501         * font/devdvi/R: Renamed to ...
1502         * font/devdvi/TR: This.
1503         * font/devdvi/H: Renamed to ...
1504         * font/devdvi/HR: This.
1505         * font/devdvi/Makefile.sub (DEVFILES): Updated.
1506         * font/devdvi/generate/Makefile (HBI): New rule.
1507         (FONTS): Updated.
1508         (R, I, B, BI, H): Renamed to ...
1509         (TR, TI, TB, TBI, HR): This, respectively.
1510         (srcdir): Fixed.
1511         * NEWS, src/devices/grodvi/grodvi.man: Updated.
1512         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
1513         Add `styles' and `family' keywords.
1514         * tmac/dvi.tmac: Alias `H' to `HR'.
1515         Add some fspecial requests for italic fonts.
1516         Add TR and TI as special.
1517         Add support for `_' with font CWI.
1519         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
1520         operator `:'.  Until now, the expression `0:1' would return 2
1521         instead of 1.
1523 2002-02-25  Werner LEMBERG  <wl@gnu.org>
1525         * man/groff_char.man: Added some missing PS glyph names (from the
1526         Adobe Glyph List).
1527         * font/devps/generate/textmap, font/devps/symbolmap: Add
1528         `arrowupdn'.
1530         * doc/groff.texinfo: Minor additions and fixes.
1531         * man/groff_diff.man: Remove documentation of fp request.  This
1532         is already covered in the original troff manual.
1533         Updated to be consistent with other doc files.
1534         * NEWS: Updated.
1536 2002-02-24  Werner LEMBERG  <wl@gnu.org>
1538         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
1539         TTYDEVDIRS.
1540         Define new variable OTHERDEVDIRS (containing `font/devlj4
1541         font/devlbp' if not EBCDIC).
1542         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
1543         (OTHERDEVDIRS): New variable.
1544         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
1545         * configure: Regenerated.
1547         * NEWS, src/devices/grotty/grotty.man: Updated.
1549 2002-02-23  Werner LEMBERG  <wl@gnu.org>
1551         * src/roff/troff/input.cc (do_overstrike, do_bracket,
1552         get_line_arg): Honour input level.
1554         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
1556         * font/*/*: Implement it in all font files.
1557         * font/devps/generate/textmap, font/devps/generate/symbolchars,
1558         * font/devps/symbolmap: Updated.
1559         * font/devlj4/generate/text.map: Updated.
1560         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
1561         * font/devdvi/generate/texmi.map: Updated.
1563         * font/devutf8/R.proto: Remove all `charXXX' entries.
1564         * font/devutf8/NOTES: Updated.
1566         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
1567         version 4.1.0.
1569         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
1571         * NEWS, man/groff_char.man: Updated.
1573 2002-02-21  Phil Lobbes <phil@perkpartners.com>
1575         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
1577 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
1579         * src/roff/grog/grog.pl: Fix computation of $refer.
1581 2002-02-19  Werner LEMBERG  <wl@gnu.org>
1583         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
1584         `snprintf' and `vsnprintf'.
1586         * src/include/htmlindicate.h: Renamed to...
1587         * src/include/htmlhint.h: This.
1588         * src/include/Makefile.sub: Updated.
1589         * src/preproc/eqn/main.cc: Updated.
1591 2002-02-18  Werner LEMBERG  <wl@gnu.org>
1593         * man/roff.man, man/groff_out.man, man/groff.man,
1594         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
1595         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
1597         * win32-diffs: Updated.
1599 2002-02-17  Werner LEMBERG  <wl@gnu.org>
1601         * doc/Makefile (clean): Add *.eps.
1602         (MEMACROS): Removed.
1603         (TFLAG): New variable.
1604         (TROFF): Use it.
1605         Add -ww.
1606         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
1607         (.me.dit): Fixed.
1608         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
1610         * tmac/www.tmac: Use dummy diversion while resetting and disabling
1611         `.tl'.
1612         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
1613         unstripped.
1614         * src/roff/troff/troff.man: Fix order of parameter description.
1616         * NEWS: Updated.
1618 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
1620         Simplify image handling for grohtml.
1621         Fix <p> bug.
1623         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
1624         comment out.
1625         (html_text::dump_stack): Don't emit newline while debugging.
1626         (html_text::do_push) [DEBUGGING]: Print more info.
1627         (html_text::check_emit_text): Fix handling of <p>.
1628         * src/devices/grohtml/html.h: Updated.
1629         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
1630         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
1631         send its data to stderr also.
1632         Update all callers.
1633         (simple_output::space_or_newline) [DEBUGGING]: Removed.
1634         * src/devices/grohtml/post-html.cc (html_printer::do_links,
1635         html_printer::html_printer): Remove `DEBUGGING' conditionals.
1637         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
1638         Removed.
1639         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
1640         is_inline_image): Removed.
1641         (html_begin_suppress, html_end_suppress): Don't take a parameter.
1642         (graphic_start, graphic_end): Removed.
1643         * src/include/htmlindicate.h: Updated.
1644         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
1645         (macroset_template): New global variable.
1646         (makeFileName): Use `macroset_template'.
1647         (write_end_image): Don't take a parameter.
1648         Don't emit newline.
1649         (write_start_image: Don't emit newline.
1650         (char_buffer::write_upto_newline): Updated.
1651         (char_buffer::skip_to_newline): Renamed to ...
1652         (char_buffer::skip_until_newline): This.
1653         Fix code.
1654         (char_buffer::write_file_troff, char_buffer::write_file_html):
1655         Simplified.
1656         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
1657         (removeAllPages): Remove `DEBUGGING' conditionals.
1658         (addRegDef, dump_args): New functions.
1659         (char_buffer::do_html, char_buffer::do_image): Handle
1660         `www-image-template' command line variable.
1661         Add more debugging code.
1662         (addps4html): Removed.
1663         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
1665         * src/preproc/eqn/main.cc: Include `ctype.h'.
1666         (suppress_html): Removed.
1667         (do_file): Updated.
1668         (inline_equation): Use `html_begin_suppress' and
1669         `html_end_suppress'.
1670         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
1671         (troff_output::start_picture, troff_output::finish_picture):
1672         Updated.
1673         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
1674         (process_input_file): Updated.
1676         * src/roff/troff/div.cc (page_number): Set page number only if the
1677         `ps4html' register isn't defined.
1678         * src/roff/troff/input.cc (image_no): New external variable.
1679         (do_suppress): Use it.
1680         * src/roff/troff/node.h (suppress_node::image_id): New member.
1681         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
1682         (suppress_node::suppress_node): Initialize `image_id' member.
1683         (suppress_node::same): Handle `image_id' also.
1684         (suppress_node::copy): Updated.
1685         (last_image_id): New global variable.
1686         (suppress_node::tprint): Use it.
1688         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
1689         HTML-IMAGE-END.
1690         * tmac/pspic.mac (PSPIC): Fix html support.
1691         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
1692         * tmac/www.tmac (www-image-template): Set up.
1693         (HTMLINDEX): Renamed to...
1694         (HX): This.
1695         (BODYCOLOR): Renamed to...
1696         (BCL): This.
1697         (BACKGROUND): Renamed to...
1698         (BGIMG): This.
1699         (URL): Change order of parameters for consistency.
1700         (MAILTO): Renamed to...
1701         (MTO): This.
1702         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
1703         (IMG, PIMG, MPIMG): This.
1704         (HTML-H-BEGIN, HTML-H-END): Renamed to...
1705         (HnS, HnE): This.
1706         (LINKS): Renamed to...
1707         (LK): This.
1708         (LINE): Renamed to...
1709         (HR): This.
1710         (NO-AUTO-RULE): Renamed to...
1711         (NHR): This.
1712         (HTML-TL): Renamed to...
1713         (HTL): This.
1714         (UL-BEGIN, UL-END): Renamed to...
1715         (ULS, ULE): This.
1716         (DROPCAP): Renamed to...
1717         (DC): This.
1718         (TS, TE, EQ, EN): Provide default definitions.
1719         (www-make-unique-name): Updated.
1720         (HTML-IMAGE-INLINE): Fix typo.
1721         * tmac/groff_www.man: Updated.
1723         * doc/Makefile (homepage.html): Add option -r to grohtml.
1724         Use shortened image name.
1725         * doc/groff.texinfo: Updated info on grohtml strings and macros.
1726         * doc/homepage.ms: Updated and extended.
1728 2002-02-14  Werner LEMBERG  <wl@gnu.org>
1730         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
1732         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
1733         SGR_BACK_DEFAULT_COLOR): Replaced with ...
1734         (tty_printer::put_color): Use it.
1735         (ttr_printer::end_page): Simplify.
1737 2002-02-13  Werner LEMBERG  <wl@gnu.org>
1739         * tmac/groff_tmac.man: Moved to...
1740         * man/groff_tmac.man: This place.
1741         * tmac/Makefile.sub, man/Makefile.sub: Updated.
1743 2002-02-12  Werner LEMBERG  <wl@gnu.org>
1745         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
1746         $(COMPILE.c) to not include groff's assert.h.
1748         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
1749         variable.
1750         * NEWS, src/drivers/grotty/grotty.man: Document it.
1752 2002-02-11  Werner LEMBERG  <wl@gnu.org>
1754         * src/libs/snprintf/snprintf.c: Updated to latest version
1755         (2002-02-11).
1757         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
1758         test whether there is `.]' also.
1759         Don't check for spaces after `.['.
1760         * src/roff/grog/grog.sh: Do the same.
1762 2002-02-10  Werner LEMBERG  <wl@gnu.org>
1764         Illegal -> Invalid.
1766         * src/libs/libgroff/illegal.cc: Renamed to ...
1767         * src/libs/libgroff/invalid.cc: This.
1768         (illegal_char_table): Renamed to ...
1769         (invalid_char_table): This.
1770         * src/libs/libgroff/Makefile.sub: Updated.
1771         * win32-diffs: Updated.
1773         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
1774         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
1775         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
1776         font::load), src/preproc/eqn/main.cc (read_line, main),
1777         src/preproc/eqn/lex.cc (file_input::read_line),
1778         src/preproc/pic/lex.cc (file_input::read_line,
1779         simple_file_input::get, simple_file_input::peek),
1780         src/preproc/pic/main.cc (top_input::get, top_input::peek),
1781         src/preproc/pic/pic.man, src/preproc/refer/main.cc
1782         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
1783         do_bib), src/preproc/tbl/main.cc (table_input::get),
1784         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
1785         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
1786         do_zero_width, read_request, encode_char, ps_get_line,
1787         transparent_file, get_char_for_escape_name, transparent_translate,
1788         asciify, input_char_description, read_string, set_string),
1789         src/roff/troff/env.cc (environment::add_html_tag),
1790         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
1792         * src/include/lib.h: Updated.
1794         * src/preproc/eqn/eqn.cc: Removed.
1796         * NEWS: Updated.
1798         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
1800 2002-02-09  Werner LEMBERG  <wl@gnu.org>
1802         * doc/gnu.xpm: New image.
1803         * doc/Makefile (DOCS): Add homepage.ps.
1804         Add rules for converting xpm->png and xpm->eps.
1805         Use `gnu.{xpm,eps}' as image names.
1806         * doc/homepage.ms: Updated.
1808 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
1810         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
1811         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
1812         Remove calls to `B1' and `B2'
1813         (PNG-IMAGE): New macro for inclusion of images in PNG format.
1814         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
1815         auxiliary variables for MARGIN-PNG-IMAGE.
1816         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
1817         auxiliary macros for MARGIN-PNG-IMAGE.
1818         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
1819         the margin.
1820         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
1821         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
1822         (DROPCAP): New macro to produce dropcap characters.
1823         (www-do-image): Renamed back to...
1824         (HTML-DO-IMAGE): This.
1825         Updated all callers.
1827         * doc/Makefile (gnubw.eps): Updated.
1828         * doc/homepage.ms: Updated.
1830 2002-02-08  Werner LEMBERG  <wl@gnu.org>
1832         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
1833         Added `linethick' to table in section `Style Variables'.
1835 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
1837         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
1839 2002-02-07  Werner LEMBERG  <wl@gnu.org>
1841         Adding options -C (compatibility mode) and -c (grotty's old output
1842         scheme) to nroff.
1844         * src/roff/nroff/nroff.sh: Implement it.
1845         Remove `-Wall'.
1846         * NEWS, src/roff/nroff/nroff.man: Updated.
1848         * PROBLEMS: Document bison 1.32 bug.
1850         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
1852         * src/roff/troff/node.cc (make_tfont): Define it earlier.
1853         * src/roff/troff/div.h: Add prototype for `end_diversions'.
1854         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
1855         * src/roff/troff/env.h: Add prototype for `title'.
1857         Adding EBCDIC support to grotty.
1859         * src/devices/grotty/tty.cc (CSI): New macro.
1860         (SGR_*, tty_printer::put_color): Use it.
1862 2002-02-06  Werner LEMBERG  <wl@gnu.org>
1864         Implementing color support in grotty.  The new switch -c activates
1865         the old drawing scheme, disabling color at the same time.  The new
1866         switch `-i' selects italic instead of underlining (SGR only).
1868         * src/devices/grotty/tty.cc (putstring): New define instead of
1869         `fputs'.  Updated all callers.
1870         (old_drawing_scheme): New global variable.
1871         (COLOR_CHANGE): New enum value.
1872         (SGR_*): New defines containing color handling escape sequences.
1873         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
1874         (glyph): New members `back_color_idx' and `fore_color_idx'.
1875         (glyph::order): Add COLOR_CHANGE.
1876         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
1877         `is_underline', `is_bold', `cu_flag', `tty_colors'.
1878         New methods `make_underline', `make_bold', `color_to_idx',
1879         `change_color', `put_color'.
1880         (cu_flag): Moved into `tty_printer' class.
1881         (tty_printer::tty_printer): Initialize colors.
1882         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
1883         tty_printer::draw, tty_printer::end_page): Handle colors also.
1884         (main): Add options `-c' and `-i'.
1885         (usage): Updated.
1886         * NEWS, src/devices/grotty/grotty.man: Updated.
1888         * src/include/errarg.h (errarg): Add support for `unsigned int'.
1889         * src/libs/libgroff/errarg.c: Implement it.
1891         * src/include/printer.h (printer): Add `change_color' method
1892         (currently used by grotty only).
1893         * src/libs/libdriver/printer.cc: Implement it.
1894         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
1895         call to `pr->change_color'.
1897         * src/roff/troff/node.cc (troff_output_file::fill_color,
1898         troff_output_file::glyph_color): Call `do_motion'.
1900         * tmac/tty.tmac: Add color definitions.
1902         * src/roff/groff/groff.man: Minor fixes.
1904 2002-02-05  Bernd Warken  <bwarken@mayn.de>
1906         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
1907         it.  This is a preparation for future changes.
1909 2002-02-05  Werner LEMBERG  <wl@gnu.org>
1911         * src/roff/troff/input.cc (process_input_stack): Fix the case
1912         where leading spaces are followed by \f or \s; previously, an
1913         incorrect space width has been used.
1915         * doc/roff.man (quoted_char): Fix argument.
1916         (comment): Define string.
1918 2002-02-04  Larry Kollar  <kollar@alltel.net>
1920         * doc/groff.texinfo: More fixes.
1922 2002-02-04  Werner LEMBERG  <wl@gnu.org>
1924         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
1925         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
1926         `restore_compatibility' before `output_string' -- the LINE_STRING
1927         register now already contains proper switches from and to
1928         compatibility mode.
1930         * man/groff_char.man: Add Euro symbol.
1931         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
1932         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
1933         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
1934         Other minor fixes.
1936         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
1937         texinfo->pdf.
1938         (.texinfo.html): Add support for texinfo->html.
1940 2002-02-03  Werner LEMBERG  <wl@gnu.org>
1942         Added three new requests `ds1', `as1', and `ami'.  The former two
1943         are equivalent to `ds' and `as' with the difference that
1944         compatibility mode is saved on entry, switched off during string
1945         expansion, and restored on exit.  The latter is the pendant to `dei'
1946         for `am'.
1948         (do_define_string): Use `define_mode' and `calling mode'.
1949         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
1950         end of string, respectively.
1951         (define_string, append_string): Use `calling_mode'.
1952         (define_nocomp_string, append_nocomp_string,
1953         define_string_indirect): New functions.
1954         (init_input_requests): Updated.
1955         * NEWS, man/groff_diff.man, man/groff.man: Document it.
1957         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
1958         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
1959         mm macro package accesses this string register directly.
1960         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
1962         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
1963         compatibility mode.
1965 2002-02-02  Larry Kollar  <kollar@alltel.net>
1967         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
1969 2002-01-31  Werner LEMBERG  <wl@gnu.org>
1971         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
1973 2002-01-31  Bernd Warken  <bwarken@mayn.de>
1975         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
1976         * man/groff_out.man: Revised and updated.
1978 2002-01-30  Bernd Warken  <bwarken@mayn.de>
1980         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
1981         out the unused `{' and `}' commands.  Undefined by default.
1982         (IntArray): Make `data' private.
1983         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
1984         new methods instead.
1985         (skip_line_D, skip_to_end_of_line): New functions.
1986         (get_D_fixed_args): Use `skip_line_D'.
1987         Changed to handle dummy odd arguments by ...
1988         (get_D_fixed_args_odd_dummy): This new function.
1989         (get_D_variable_args): Split some code into ...
1990         (get_possibly_integer_args): This new function.
1991         (send_draw): Use more `const'.
1992         (delete_current_env): New function.
1993         (position_to_end_of_args): Use `size_t'.
1994         Updated.
1995         (send_draw): Updated.
1996         (parse_D_command): Handle `c', `C', and `t' better.
1997         Updated.
1998         (do_file): Updated.
2000 2002-01-29  Werner LEMBERG  <wl@gnu.org>
2002         * NEWS: Revised.
2003         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
2004         @Def...ListEnd which replaces @Def...x.  This is necessary to get
2005         proper HTML output -- see the comment in the file for more
2006         information.
2007         Updated all calls.
2009 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
2011         Fixes to make color changes of 2002-01-21 work with grohtml.
2013         * src/devices/grohtml/post-html.cc (style): Updated.
2014         (html_printer): Remove unused methods.
2015         (html_printer::do_font, html_printer::draw, html_printer::set_char,
2016         html_printer::special): Updated.
2017         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
2018         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
2019         Added some debugging code.
2020         (html_text::start_tag): Updated.
2021         (html_text::do_push): New method.
2022         (html_text::push_para): Call it.
2023         Add method for handling color.
2024         (html_text::do_color): Updated.
2025         (html_text::shutdown): Handle color.
2026         * src/devices/grohtml/html-text.h (tag_definition): New member
2027         `col'.
2028         Updated.
2030 2002-01-28  Werner LEMBERG  <wl@gnu.org>
2032         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
2034 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
2036         Add two switches -a and -g to control the antialiasing bits for
2037         text and graphics, respectively.
2039         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
2040         `-g'.
2041         * src/devices/grohtml/grohtml.man: Document them.
2042         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
2043         New macros.
2044         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
2045         (setupAntiAlias): New function.
2046         (createAllPages): Updated.
2047         (scanArguments): Handle `-a' and `-g'.
2048         (main): Call `setupAntiAlias'.
2049         * NEWS: Updated.
2051 2002-01-27  Werner LEMBERG  <wl@gnu.org>
2053         * doc/groff.texinfo (Def*): Call index function after deffn.
2055         * tmac/html.tmac: Call `nroff' request.
2057 2002-01-26  Larry Kollar  <kollar@alltel.net>
2059         * tmac/groff_ms.man: Add some omissions.
2061 2002-01-25  Larry Kollar  <kollar@alltel.net>
2063         * tmac/groff_ms.man: Typographical improvements.
2065 2002-01-25  Werner LEMBERG  <wl@gnu.org>
2067         * doc/groff.texinfo: Updated version and copyright.
2068         * src/devices/grops/grops.man: Updated.
2070         * tmac/groff_tmac.man: Fix `ig' macro.
2072         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
2073         nroff mode.
2074         Use `.ne' unconditionally everywhere.
2075         (TS): Only insert some vertical space.  Doing a page break is no
2076         longer necessary due to the redefinition of the `ne' request.
2078         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
2079         warning for unknown subcommands but parse and pass them to the
2080         device driver.
2082 2002-01-24  Werner LEMBERG  <wl@gnu.org>
2084         * tmac/groff_www.man, NEWS: Fix typos.
2086 2002-01-21  Werner LEMBERG  <wl@gnu.org>
2088         Complete revision of color support:
2090           Adapt programs to the new libdriver/input.cc.
2092           Color spaces are no longer converted to RGB but transferred as-is
2093           in the troff intermediate output format.
2095           Handle default color gracefully.  troff now supports a `default'
2096           color (which can't be changed).
2098           grops will now use the proper color space functions if available.
2100           Update pic.
2102         Note that currently grohtml doesn't handle colors properly.  This
2103         has to be fixed.
2105         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
2106         (ui_to_a): New function.
2107         * src/include/lib.h: Updated.
2109         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
2110         (color): Simplified; removed all `double' members and methods.
2111         A new array `components' now holds the color parameters.
2112         (color::is_default, color::get_components): New methods.
2113         (color::operator==, color:operator!=): New.
2114         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
2115         to make access to the `components' array more comprehensible.
2116         * src/libs/libgroff/color.cc: Implement new color support.
2117         (atoh): Small fixes.
2118         (color::read_encoding): Simplified for new troff intermediate color
2119         output format.
2120         (default_color): New global variable.
2122         * src/roff/troff/input.cc (default_symbol): New global variable.
2123         (lookup_color): Use it.
2124         (default_black): Removed.
2125         (do_glyph_color, do_fill_color): Simplified.
2126         (define_color): Handle default color.
2127         Improve warnings.
2128         (do_if_request): Handle default color.
2129         * src/roff/troff/env.cc (environment::environment): Initialize
2130         colors with `default_color'.
2131         * src/roff/troff/node.cc (troff_output_file::put): Add method
2132         for `unsigned int'.
2133         (troff_output_file::hex): Removed.
2134         (troff_output_file::fill_color, troff_output_file::glyph_color):
2135         Updated to include/color.h and libdriver/input.cc.
2137         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
2138         fill color properly (identically to the outline color).  \D'f...'
2139         doesn't work any more.
2140         All function calls to it updated.
2142         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
2143         Updated.
2144         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
2145         Updated.
2147         * src/devices/grops/ps.cc (ps_output::put_color): New method.
2148         (ps_printer::sbuf_color): Make a real member instead of pointer.
2149         (ps_printer::fill_color, ps_printer::output_color): Removed.
2150         (ps_printer::ps_printer): Updated.
2151         (ps_printer::set_char): Ditto.
2152         (ps_printer::set_color): Use various color schemes.
2153         Use `put_color' method.
2154         (ps_printer::flush_sbuf): Don't set color.
2155         (ps_printer::fill_path): Take `environment' as parameter.
2156         Simplify color handling.
2157         (ps_printer::set_line_thickness): Renamed to ...
2158         (ps_printer::set_line_thickness_and_color): This (and updated).
2159         (ps_printer::set_color): Change second parameter from `complete'
2160         to `fill' which better describes what it does.
2161         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
2162         and text in the right order.
2163         Updated.
2164         Remove branches for `f' and `F'; this is handled by
2165         libdriver/input.cc.
2166         * src/devices/grops/ps.h: Updated.
2167         * font/devps/prologue (FL): Redefined.
2168         ({F,C}r,k,g: New color functions (with and without filling).
2170         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
2171         * man/groff_diff.man, man/groff.man, man/groff_out.man,
2172         doc/groff.texinfo, NEWS: Updated.
2174 2002-01-20  Bernd Warken  <bwarken@mayn.de>
2176         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
2177         in this file for what has been changed.
2179 2002-01-19  Werner LEMBERG  <wl@gnu.org>
2181         * test-groff: Fix GROFF_FONT_PATH.
2182         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
2183         is read before .TH or .Dd is parsed.
2185 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
2187         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
2188         quadrant boundaries.
2190 2002-01-18  Werner LEMBERG  <wl@gnu.org>
2192         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
2193         applied last patch.
2195 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
2197         * tmac/doc.common: Initialize %I register for the %I macro to
2198         avoid (harmless) warning.
2199         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
2200         when in the SYNOPSIS section.
2202 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
2204         * src/preproc/pic/lex.cc (get_token): Fix typo.
2206 2002-01-17  Werner LEMBERG  <wl@gnu.org>
2208         * devices/grops/ps.cc: Fix incorrectly applied last patch.
2210 2002-01-17  Larry Kollar  <kollar@alltel.net>
2212         * tmac/groff_ms.man: Completely rewritten.
2214 2002-01-16  Werner LEMBERG  <wl@gnu.org>
2216         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
2218 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
2220         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
2221         fill colors.
2222         (ps_printer::draw): Ditto.
2224 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
2226         * tmac/groff_mdoc.man: Minor fixes.
2228 2002-01-13  Werner LEMBERG  <wl@gnu.org>
2230         * man/groff_out.man: Some fixes.
2232 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
2234         * doc/pic.ms: Fix typos.
2236 2002-01-12  Werner LEMBERG  <wl@gnu.org>
2238         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
2240 2002-01-10  Werner LEMBERG  <wl@gnu.org>
2242         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
2243         symbols.
2244         * NEWS: Updated.
2246 2002-01-09  Bernd Warken  <bwarken@mayn.de>
2248         * man/groff_out.man: Revised.
2249         * man/roff.man: Minor fixes.
2250         * src/roff/troff/troff.man: Some reordering.
2252 2002-01-09  Werner LEMBERG  <wl@gnu.org>
2254         * tmac/an-old.tmac: Add dummy macros for equation support.
2256 2002-01-07  Werner LEMBERG  <wl@gnu.org>
2258         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
2260         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
2261         man pages.
2262         * tmac/groff_man.man: Small improvements.
2264 2002-01-07  Bernd Warken  <bwarken@mayn.de>
2266         * man/groff_diff.man: Revised.
2268 2002-01-06  Werner LEMBERG  <wl@gnu.org>
2270         * tmac/www.tmac: Remove extraneous backslash.
2272 2002-01-06  Bernd Warken  <bwarken@mayn.de>
2274         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
2276 2002-01-05  Werner LEMBERG  <wl@gnu.org>
2278         Integrated groffer, contributed by Bernd Warken.
2280         * contrib/groffer/*: New.       
2281         * Makefile.in, NEWS: Updated.
2283 2002-01-04  Werner LEMBERG  <wl@gnu.org>
2285         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
2286         registers defined in macro packages.
2287         Revising the ms part.
2289 2002-01-04  Larry Kollar  <kollar@alltel.net>
2291         * doc/groff.texinfo: Add documentation for ms macros.
2293 2002-01-02  Werner LEMBERG  <wl@gnu.org>
2295         First step in adding PS support for the Euro symbol.  `eu' is the
2296         official Euro logo, `Eu' is a font-specific glyph variant.
2298         * font/devps/text.enc: Add `Euro' at position 9.
2299         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
2300         * font/devps/symbolmap: Regenerated.
2302         * NEWS: Updated.
2304 2002-01-02  Bernd Warken  <bwarken@mayn.de>
2306         * man/roff.man: Revised.
2308 2002-01-01  Bernd Warken  <bwarken@mayn.de>
2310         * src/roff/groff/groff.man: Completely rewritten.
2312 2001-12-31  Werner LEMBERG  <wl@gnu.org>
2314         * doc/Makefile: Updated.
2316 2001-12-30  Werner LEMBERG  <wl@gnu.org>
2318         * tmac/www.tmac: Make all names of internal macros/registers/strings
2319         lowercase, and prepend `www-'.
2320         Other minor changes.
2321         * src/roff/troff/troff.man: Add preprocessor string at BOF.
2323 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
2325         Implement option `-b' in grohtml to set the HTML background colour.
2327         * src/devices/grohtml/post-html.cc (default_background): New global
2328         variable.
2329         (html_printer::html_printer): Initialize `background' to
2330         `default_background'.
2331         (main): Implement option `-b'.
2332         (usage): Updated.
2333         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
2334         of `-b' option.
2335         * src/devices/grohtml/grohtml.man: Updated.
2336         * doc/Makefile (.ms.html): Use `-b'.
2337         * tmac/html.tmac: Don't set background color.
2339         Add new grohtml tag `.html-tl'.
2341         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
2342         member variable.
2343         (title_desc::title_desc): Updated.
2344         (html_printer::troff_tag): Handle `.html-tl'.
2345         (html_printer::write_title): Use `with_h1'.
2346         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
2347         (HTML-TL): New macro.
2349         Add support for unordered lists in HTML.
2351         * tmac/www.tmac (www-level): New auxiliary register.
2352         (www-level1, www-level2, www-level3): New auxiliary strings.
2353         (www-push-level, www-pop-level): New auxiliary macros
2354         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
2356         Miscellaneous.
2358         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
2359         (DEFAULT_VERTICAL_OFFSET): Removed.
2360         (IMAGE_BOARDER_PIXELS): Set to 0.
2361         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
2362         (vertical_offset): Initialize with 0.
2363         (gsPaper): New global variable.
2364         (get_resolution): Scan for and return unsigned int.
2365         (get_papersize): New function to get paper length from devps/DESC.
2366         (determine_vertical_offset): New function.
2367         (createAllPages): Produce gray-level images and use proper page
2368         length.
2369         (createImage): Use `-quiet' option of pnmcrop.
2370         (addZ): Fix passing of `-Z'.
2371         (scanArguments): Fix handling of `-o'.
2372         (main): Call `determine_vertical_offset'.
2373         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
2374         code for `l'.
2376         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
2377         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
2378         glyph descenders properly.
2380         * doc/homepage.ms: Include `gnubw.eps'.
2381         * doc/Makefile (gnubw.eps): New rule.
2382         (homepage.html): Depend on `gnubw.eps'.
2384 2001-12-25  Werner LEMBERG  <wl@gnu.org>
2386         * src/roff/troff/input.cc (default_black): Fix return value.
2388 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
2390         * tmac/doc-common (Dt): Change output of architecture strings.
2391         Do some syntax cleanup.
2392         * tmac/groff_mdoc.man: Updated.
2394 2001-12-23  Werner LEMBERG  <wl@gnu.org>
2396         Adding an `itc' request (input line trap accepting \c).
2398         * src/roff/troff/env.h (environment): New member
2399         `continued_input_trap'.
2400         Make `do_input_trap' a friend function instead of `input_trap'.
2401         * src/roff/troff/env.cc (environment::environment,
2402         environment::copy): Updated.
2403         (environment::newline): Implement it.
2404         (do_input_trap): New function.
2405         (input_trap): Call `do_input_trap'.
2406         (input_trap_continued): New function.
2407         (init_env_requests): Updated.
2408         * src/roff/troff/TODO: Updated.
2410         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
2411         `.it'.
2413         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
2415 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
2417         * tmac/doc-common, tmac/doc-syms: Small updates.
2419 2001-12-22  Colin Watson  <cjwatson@debian.org>
2421         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
2423 2001-12-22  Bernd Warken  <bwarken@mayn.de>
2425         * MANIFEST: New file.
2427 2001-12-22  Werner LEMBERG  <wl@gnu.org>
2429         * src/preproc/grn/grn.man: Updated.
2431 2001-12-22  Solar Designer  <solar@openwall.com>
2433         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
2434         (DBRead): Use it.
2436 2001-12-19  Werner LEMBERG  <wl@gnu.org>
2438         Implement a fallback character request `.fchar'.
2440         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
2441         (is_fallback): New inline function.
2442         * src/roff/troff/input.cc (do_define_character): New function.
2443         (define_character): Call `do_define_character'.
2444         (define_fallback_character): New function.
2445         (init_input_requests): Add `fchar'.
2446         (charinfo::charinfo): Updated.
2447         (charinfo::set_macro): New argument to set `fallback' flag.
2448         * src/roff/troff/node.cc (make_glyph_node, make_node,
2449         node::add_char): Check `fallback' flag.
2450         * NEWS, man/groff_diff.man, man/groff_man: Updated.
2452 2001-12-16  Werner LEMBERG  <wl@gnu.org>
2454         * groff.texinfo: Document exact search algorithm for glyphs.
2456 2001-12-15  Werner LEMBERG  <wl@gnu.org>
2458         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
2459         the left side of $(MANPAGES) rule to make it always non-empty.
2461 2001-12-14  Werner LEMBERG  <wl@gnu.org>
2463         * src/roff/troff/input.cc (default_black): Define default color
2464         `black' if not yet defined.
2466 2001-12-13  Werner LEMBERG  <wl@gnu.org>
2468         Implement new string-valued register `.fn' to return the current
2469         real (internal) font name.
2471         * env.cc (environment::get_font_name_string): New function.
2472         (init_env_requests): Add `.fn' register.
2473         * env.h (environment): Updated.
2474         * node.cc (font_info): Make `get_font_name' a friend.
2475         (get_font_name): New function.
2476         * node.h: Updated.
2478         * man/groff_diff.man, man/groff.man, NEWS: Updated.
2480 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2482         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
2484 2001-12-12  Werner LEMBERG  <wl@gnu.org>
2486         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
2488 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
2490         * man/groff_diff.man: Adding documentation for \O.
2492 2001-12-10  Werner LEMBERG  <wl@gnu.org>
2494         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
2495         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
2497 2001-12-09  Werner LEMBERG  <wl@gnu.org>
2499         * man/roff.man: Revised.
2500         * src/roff/groff/groff.man: Replace man page references with a
2501         pointer to roff.man.
2503 2001-12-09  Bernd Warken  <bwarken@mayn.de>
2505         * man/roff.man: Completely rewritten.
2507 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2509         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
2511 2001-12-05  Werner LEMBERG  <wl@gnu.org>
2513         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
2514         longer used.
2515         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
2516         order of initializers.
2517         * NEWS: Updated.
2519 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
2521         * doc/groff.texinfo: Fix documentation of \O.
2523         * src/devices/grohtml/html-text.cc (html_text::do_indent,
2524         html_text::do_table, html_text::do_emittext, html_text::do_para):
2525         Use `const' for first argument.
2526         (html_text::do_table): Use cast.
2527         * src/devices/grohtml/html-text.h: Updated.
2528         * src/devices/grohtml/output.cc (simple_output::put_string): Add
2529         method for `const string &s'.
2530         * src/devices/grohtml/html.h: Updated.
2531         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
2532         (ANCHOR_TEMPLATE): Modified.
2533         (manufacture_headings): New global variable to handle `-h' option.
2534         (is_subsection): Removed.
2535         (char_buffer::add_string): Add `const' to first argument.
2536         Protect against invalid string argument.
2537         Add method for `const string &s'.
2538         (text_glob): Completely redesigned.
2539         (page): Use `const' for strings and remove string length variable.
2540         (page::add_html): Removed.
2541         (page::add_end_encode): New member function.
2542         (to_unicode): Moved upwards.
2543         (title_desc, header_desc): Updated.
2544         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
2545         definition.
2546         (html_printer::is_bold, html_printer::make_bold): New member
2547         functions.
2548         (html_printer::end_of_line): Updated.
2549         (generate_img_src, html_printer::do_auto_image,
2550         html_printer::do_title, html_printer::write_header,
2551         html_printer::determine_header_level, html_printer::do_heading,
2552         html_printer::do_linelength, html_printer::do_pageoffset,
2553         html_printer::do_indentation, html_printer::do_tempindent,
2554         html_printer::do_indentedparagraph, html_printer::do_break,
2555         html_printer::flush_sbuf, get_html_translation,
2556         html_printer::begin_page, html_printer::special): Rewritten to get
2557         rid of static string length limit.
2558         (html_printer::troff_tag): Added `.no-auto-rule'.
2559         (html_printer::flush_globs): Small fix.
2560         (html_printer::determine_space): Don't compute `space_width'.
2561         (html_printer::translate_to_html): Renamed to ...
2562         (html_printer::emit_html): This (with updates).
2563         (html_printer::write_header): Implement `-h' option.
2564         (html_printer::draw): Remove commented-out code.  Handle `F'
2565         command.
2566         (html_printer::add_char_to_sbuf): Removed.
2567         (html_printer::add_to_sbuf): Rewritten.
2568         (html_printer::sbuf_continuation): Fixed.
2569         (html_printer::seen_backwards_escape, reverse,
2570         html_printer::remove_last_char_from_sbuf): Removed.
2571         (char_translate_to_html, str_translate_to_html): Removed.
2572         (html_printer::overstrike): New function member.
2573         (html_printer::set_char): Use it.
2574         (html_printer::do_body): New function member.
2575         (html_printer::~html_printer): Use it.
2576         (main): Handle `-h' option.
2577         (usage): Updated.
2578         * src/devices/grohtml/grohtml.man: Document -h switch.
2580         * src/preproc/html/pre-html.cc: Include searchpath.h
2581         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
2582         (get_resolution): New function.
2583         (checkImageDir): Use `0777' permissions in mkdir()
2584         (write_start_image): Rewritten to use `\O[5...]'.
2585         (createImage, generateImages): Updated.
2586         (main): Handle `F' and `h' options.
2587         Use `get_resolution'.
2589         * src/roff/troff/input.cc (begin, end, image): Removed.
2590         (do_suppress): Take parameter.
2591         Handle modified syntax of `\O'.
2592         (token::next): Updated.
2593         (init_markup_requests): Removed.
2594         (main): Updated.
2596         * src/roff/troff/div.h: Add declaration for begin_page().
2598         * tmac/color-html.tmac: Removed.  Contents moved to...
2599         * tmac/html.tmac: Here.  Set background color.
2600         * tmac/color.tmac: Removed.  Contents moved to...
2601         * tmac/ps.tmac: Here.
2602         * tmac/www.tmac: Remove the title command when generating images
2603         for html.
2604         (NO_AUTO_RULE): New macro.
2605         (HTML_DO_IMAGE): Use revised `\O' escapes.
2606         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
2608 2001-12-02  Werner LEMBERG  <wl@gnu.org>
2610         * tmac/groff_mdoc.man: Fix typo.
2612 2001-12-01  Colin Watson  <cjwatson@debian.org>
2614         * man/roff.man: Fix typo.
2616 2001-11-29  Werner LEMBERG  <wl@gnu.org>
2618         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
2619         stdlib.h.
2621         * src/roff/troff/input.cc (read_draw_node): Emit error message if
2622         more than one argument to \D'f ...'.
2624         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
2626 2001-11-28  Werner LEMBERG  <wl@gnu.org>
2628         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
2629         loaded only once.
2631         * tmac/groff_man.man: Minor cosmetic fix.
2633 2001-11-27  Werner LEMBERG  <wl@gnu.org>
2635         * src/roff/groff/groff.man, tmac/groff_tmac.man,
2636         tmac/groff_www.man: s/mwww/www/.
2638 2001-11-26  Werner LEMBERG  <wl@gnu.org>
2640         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
2641         * configure: Regenerated.
2642         * win32-diffs: Updated.
2644         * tmac/groff_mwww.tmac: Renamed to ...
2645         * tmac/groff_www.tmac: This.
2646         * tmac/mwww.tmac: Removed.
2647         * NEWS, tmac/Makefile.sub: Updated.
2649 2001-11-21  Werner LEMBERG  <wl@gnu.org>
2651         * doc/groff.texinfo: Improve documentation of the `\v' escape.
2652         Fix explanation of `\D' and `rt'.
2654 2001-11-20  Werner LEMBERG  <wl@gnu.org>
2656         * tmac/an-old.tmac (an-header): Set header length equal to page
2657         width.
2658         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
2659         minor fixes.
2660         * NEWS: Small fix.
2662 2001-11-19  Werner LEMBERG  <wl@gnu.org>
2664         * NEWS, man/Makefile.sub: Updated.
2666 2001-11-19  Bernd Warken  <bwarken@mayn.de>
2668         * man/ditroff.man: New file.
2670 2001-11-17  Werner LEMBERG  <wl@gnu.org>
2672         * man/groff_differences.man: Renamed to ...
2673         * man/groff_diff.man: This.  Updated.
2674         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
2676         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
2677         * src/preproc/html/pushback.cc: This.  Updated.
2678         * src/preproc/html/pushbackbuffer.h: Renamed to ...
2679         * src/preproc/html/pushback.h: This.
2680         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
2681         Updated.
2683         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
2684         * src/libs/libgroff/htmlhint.cc: This.
2685         * src/libs/libgroff/Makefile.sub: Updated.
2687         * tmac/an-old.tmac (an-end): Fix page length.
2689 2001-11-16  Werner LEMBERG  <wl@gnu.org>
2691         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
2692         * man/Makefile.sub: Include groff_differences.man.
2693         * VERSION: Set to 1.18.
2694         * REVISION: Set to 0.
2696 2001-11-16  Bernd Warken  <bwarken@mayn.de>
2698         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
2699         the second dot (or ending macro name) to end a macro.
2700         * doc/groff.texinfo: Doc fix.
2702 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
2704         * tmac/doc-common (doc-header): Handle very long document titles
2705         better.
2707 2001-11-16  Werner LEMBERG  <wl@gnu.org>
2709         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
2711 2001-11-15  Werner LEMBERG  <wl@gnu.org>
2713         * src/roff/troff/troff.man: Revised and split into troff.man and...
2714         * man/groff_differences.man: New file.
2715         * NEWS: Updated.
2717 2001-11-13  Werner LEMBERG  <wl@gnu.org>
2719         * tmac/an-old.tmac (TS, TE): New macros for table support.
2721 2001-11-12  Werner LEMBERG  <wl@gnu.org>
2723         * src/include/lib.h: Provide a fix for emx to not include
2724         groff-getopt.h.
2726 2001-10-27  Werner LEMBERG  <wl@gnu.org>
2728         * src/roff/troff/input.cc (substring_macro): Fix computation of
2729         boundary values.
2731 2001-10-20  Werner LEMBERG  <wl@gnu.org>
2733         Undo change from 2001-08-28.
2735         * src/roff/troff/input.cc (have_input): New global variable.
2736         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
2737         in compatibility mode.
2738         (process_input_stack): Use it.
2740 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
2742         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
2743         being handled as end-of-sentence characters,
2745 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
2747         * src/roff/troff/input.cc (file_iterator): New members
2748         `suppress_newline_flag' and `seen_escape'.
2749         (file_iterator::next_file): Updated.
2750         (file_iterator::fill): Use it.
2751         (string_iterator): New member `suppress_newline_flag'.
2752         (string_iterator::fill): Set it.
2753         (get_color_element): Use MAX_COLOR_VAL.
2754         * src/roff/troff/env.cc (environment): Remove `need_eol'.
2755         (no_fill): Don't set `env->ignore_next_eol'.
2756         (environment::newline): Handle `eol' tag properly.
2757         Emit `eol.ce'.
2758         (environment::add_html_tag): Set `env->ignore_next_eol'.
2759         Don't handle `.ce'.
2760         * src/roff/troff/env.h (environment): Updated.
2762         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
2763         member function.
2764         (html_printer::outstanding_eol): New member function.
2765         (html_printer::do_title): Use new functions.
2766         (html_printer::troff_tag): Test `id_eol_ce'.
2768 2001-10-10  Werner LEMBERG  <wl@gnu.org>
2770         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
2771         files work with -C also.
2773 2001-10-05  Werner LEMBERG  <wl@gnu.org>
2775         * doc/pic.ms: Minor fix.
2776         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
2777         as a valid command line switch.
2778         * src/devices/grohtml/post-html.cc (main): Ditto.
2779         (usage): Updated.
2780         * src/devices/grohtml/grohtml.man: Updated.
2781         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
2783 2001-10-04  Werner LEMBERG  <wl@gnu.org>
2785         Implementing color support in troff, pic, grops, and grohtml.  These
2786         changes are based on a major patch provided by Gaius Mulley
2787         <gaius@glam.ac.uk>.
2789         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
2790         definitions with both hex values and fractions.
2792         New escapes: \m and \M for drawing and background color,
2793         respectively.  This corresponds to the troff output commands `m'
2794         and `DF'.
2796         groff and troff accept command line switch `-c' to disable color
2797         output (which is automatically disabled in compatibility mode).
2799         New scaling indicator `f' for fractions (1f = 65536u).
2801         New conditional operator `m' to test for defined colors with `if'
2802         and `ie'.
2804         New keywords `color' (or `colour', `colored', `coloured'), `outline'
2805         (or `outlined'), and `shaded' added to pic.
2807         * src/include/color.h: New file.
2808         * src/include/driver.h: Include it.
2809         * src/include/printer.h: Include color.h.
2810         (environment): New members `col' and `fill'.
2811         (printer): Remove `adjust_arc_center' member function.
2812         * src/include/Makefile.sub: Updated.
2814         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
2815         `env.fill'.
2816         Handle `m' and `DF' troff commands.
2817         * src/libs/libgroff/color.cc: New file.
2818         * src/libs/libgroff/Makefile.sub: Updated.
2820         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
2821         (stop): Removed.
2822         (createImage): Fix computation of `y2'.
2823         Use `pnmcrop' also.
2824         (buffer::write_file_html): Remove calls to `stop'.
2826         * src/preproc/pic/common.h (common_output): New abstract function
2827         members `set_color', `reset_color', `get_last_filled', and
2828         `get_outline_color'.
2829         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
2830         (object_spec): Add members `shaded' and `outlined'.
2831         * src/preproc/pic/output.h (output): `command' is now abstract.
2832         New function members `set_color', `reset_color', `get_last_filled',
2833         and `get_outline_color'.
2834         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
2835         `outline[d]', and `shaded'.
2836         * src/preproc/pic/object.cc (output::command): Removed.
2837         (output::set_location): Moved to output.h.
2838         (graphic_object): Add protected members `outline_color' and
2839         `color_fill'.
2840         Add member functions `set_outline_color', `get_outline_color', and
2841         `set_fill_color'.
2842         (closed_object): Add member function `set_fill_color'.
2843         Add member `color_fill'.
2844         (graphic_object::print_text): Use `out->set_color' and
2845         `out->reset_color'.
2846         (box_object::print, ellipse_object::print, circle_object::print,
2847         line_object::print, spline_object::print, arc_object::print): Ditto.
2848         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
2849         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
2850         `SHADED', making them `%left'.
2851         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
2852         * src/preproc/pic/tex.cc (tex_output): New dummy function members
2853         `set_color', `reset_color', `get_last_filled', and
2854         `get_outline_color'.
2855         * src/preproc/pic/troff.cc (simple_output): New abstract function
2856         members `set_color', `reset_color', and `get_last_filled'.
2857         (simple_output::polygon, simple_output::circle,
2858         simple_output::ellipse): Use `get_last_filled'.
2859         (troff_output): New members `last_filled' and `last_outlined'.
2860         New function members `set_color', `reset_color', `get_last_filled',
2861         and `get_outline_color'.
2862         (troff_output::finish_picture): Use `reset_color'.
2863         (troff_output::set_fill): Test `last_filled'.
2864         * src/preproc/pic/pic.man: Updated.
2866         * src/roff/groff/groff.cc (main): Implement `-c' option.
2867         (synopsis, help): Updated.
2868         src/roff/groff/groff.man: Updated.
2870         * src/roff/troff/troff.h: Include color.h.
2871         (warning_type): Add WARN_COLOR.
2872         * src/roff/troff/env.h (environment): New members
2873         `{cur,prev}_{glyph,fill}_color'.
2874         New member functions `get_{prev_,}{glyph,fill}_color'.
2875         * src/roff/troff/env.cc: Initialize and implement them.
2876         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
2877         Replace `NULL' with `0' everywhere for consistency.
2878         (lookup_color, default_black, do_glyph_color, do_fill_color,
2879         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
2880         define_color): New functions.
2881         (token::next): Implement \M and \m escapes.
2882         (do_if_request): Implement `m' operator.
2883         (usage): Updated.
2884         (main): Implement `-c' option.
2885         (init_markup_requests): Add `defcolor' request.
2886         (warning_table): Add `color' warning.
2887         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
2888         classes.
2889         * src/roff/troff/node.cc (troff_output_file): New members
2890         `current_{page,glyph}color'.  New member functions `put_hex',
2891         `glyph_color', and `fill_color'.
2892         (glyph_color_node::*, fill_color_node::*): Implement it.
2893         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
2894         (parse_term): Add support for `f'.
2895         * src/roff/troff/troff.man: Updated.
2897         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
2898         entry for `F'.
2899         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
2900         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
2902         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
2903         (tag_definition): Use `void *' for arg1.
2904         (html_text): New member functions `do_color' and `done_color'.
2905         Use `void *' for second parameter of `push_para' member function.
2906         New `push_para' member function with a single parameter.
2907         Use `char *' for parameter of `issue_table_begin' member funtion.
2908         New `issue_color_begin' member function.
2909         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
2910         COLOR_TAG.
2911         (html_text::issue_color_begin): New function.
2912         (html_text::issue_table_begin): Use `char *' for parameter.
2913         (html_text::start_tag, html_text::shutdown,
2914         html_text::check_emit_text): Updated.
2915         (html_text::push_para): Use `void *' for second parameter.
2916         Add same function with only one parameter.
2917         (html_text::do_*): Updated.
2918         (html_text::do_color, html_text::done_color): New functions.
2919         * src/devices/grohtml/post-html.cc (style): New member `col'.
2920         Mew member `style' with 6 parameters.
2921         (style::style, style::operator==): Updated.
2922         (html_printer::do_font): Use it.
2923         (html_printer::draw): Add dummy entry for `F'.
2924         (html_printer::set_char): Updated.
2925         * src/devices/grohtml/grohtml.man: Updated.
2927         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
2928         trailing zeroes removed.
2929         (ps_printer): New members `sbuf_color', `fill_color', and
2930         `output_color'.
2931         Removed member `fill'.
2932         New member function `set_color'.
2933         (ps_printer::ps_printer, ps_printer::set_char): Updated.
2934         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
2935         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
2937         * tmac/color-html.tmac, tmac/color.tmac: New files.
2938         * tmac/troffrc: Include them.
2939         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
2940         * tmac/Makefile.sub: Updated.
2942         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
2943         man/groff.man: Updated.
2944         * font/devps/prologue.ps: Define FC and CO functions.
2946 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
2948         Fix incorrect cropping of images and incorrect handling of special
2949         characters.  Fix handling of file names in \O.
2951         * src/include/geometry.h: New file.
2952         * src/libs/libgroff/geometry.cc: New file.
2953         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
2954         to `geometry.cc'.
2955         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
2956         initial spaces.
2957         (do_suppress): Updated.
2958         * src/roff/troff/node.cc: Include geometry.h.
2959         (troff_output_file::flush_tbuf): Fixed parameters to
2960         `check_output_limits'.
2961         (troff_output_file::check_charinfo): Ditto.
2962         (troff_output_file::determine_line_limits): Add support for `Da'
2963         and `Dl' commands.
2965         * src/devices/grohtml/post-html.cc (str_translate_to_html):
2966         Add new parameter `is_special' to decode special characters from
2967         escape sequences.
2968         (html_printer::do_title, html_printer::do_heading,
2969         html_printer::do_indentedparagraph,
2970         html_printer::translate_to_html, html_printer::special): Updated.
2972 2001-10-03  Werner LEMBERG  <wl@gnu.org>
2974         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
2975         Fix entry for config.h.
2976         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
2977         * tmac/troffrc: Translate nonbreakable space character to `\~'.
2978         * src/preproc/eqn/eqn.man: Document -d command line option.
2980 2001-09-27  Werner LEMBERG  <wl@gnu.org>
2982         * man/groff.man: Use
2984           .ev xxx
2985           .na
2986           .nh
2987           <table>
2988           .ev
2990         instead of the old code (`.ad .hy' after the table) to suppress
2991         incorrect hyphenation for grohtml output.
2993 2001-09-22  Werner LEMBERG  <wl@gnu.org>
2995         * man/groff_font.man, man/groff_out.man: Minor fixes.
2997 2001-09-20  Werner LEMBERG  <wl@gnu.org>
2999         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
3000         Arnold Robbins <arnold@skeeve.com>).
3002 2001-09-09  Werner LEMBERG  <wl@gnu.org>
3004         * configure: Regenerated with autoconf 2.52.
3006         * doc/groff.texinfo: Complete revision of indices.
3008 2001-09-07  Werner LEMBERG  <wl@gnu.org>
3010         * doc/Makefile (clean): Updated to delete all indices.
3012 2001-09-05  Werner LEMBERG  <wl@gnu.org>
3014         * src/roff/troff/troff.man: Remove superfluous line.
3016         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
3017         given on the command line (or rather, if only the default warnings
3018         are set).
3020 2001-09-03  Werner LEMBERG  <wl@gnu.org>
3022         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
3023         use .ne for TTY devices.
3025 2001-08-31  Werner LEMBERG  <wl@gnu.org>
3027         * src/roff/troff/token.h, src/roff/troff/input.cc:
3028         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
3030 2001-08-28  Werner LEMBERG  <wl@gnu.org>
3032         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
3033         * src/roff/troff/input.cc (token::next): Return
3034         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
3035         compatibility mode.
3036         (token::description): Updated.
3037         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
3038         (token::add_to_node_list, token::process): Ignore
3039         TOKEN_TRANSPARENT_ESCAPE.
3041 2001-08-27  Werner LEMBERG  <wl@gnu.org>
3043         * tmac/an-old.tmac: Fix `S' string.
3045 2001-08-26  Werner LEMBERG  <wl@gnu.org>
3047         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
3049 2001-08-25  Werner LEMBERG  <wl@gnu.org>
3051         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
3052         backslashes).
3053         Many other minor fixes.
3055         * configure.ac: Add message at end to inform how to compile
3056         xditview.
3057         * configure: Regenerated.
3059 2001-08-24  Werner LEMBERG  <wl@gnu.org>
3061         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
3062         Updated to latest version of libc.
3064 2001-08-23  Werner LEMBERG  <wl@gnu.org>
3066         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
3067         Autoconf 2.50 and newer can handle this.
3068         * configure: Regenerated.
3070 2001-08-21  Werner LEMBERG  <wl@gnu.org>
3072         * doc/pic.ms: Fix typo.
3073         * src/preproc/tbl/tbl.man: Document case of global options.
3075 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
3077         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
3078         handling of `CR' font.
3080 2001-08-20  Werner LEMBERG  <wl@gnu.org>
3082         Use a config.h file.
3084         * src/include/lib.h: Include config.h.
3085         * All C files: Ditto (if necessary).
3086         * All C++ source and header files: Include lib.h first (if
3087         necessary).
3089         * src/include/config.hin: New file (autogenerated by autoheader).
3090         * stamp-h.in: New file.
3091         * configure.ac: Updated.
3092         * aclocal.m4: Add third parameters to AC_DEFINE macros.
3093         (GROFF_ARRAY_DELETE): Simplified.
3094         * Makefile.sub (DISTCLEANFILES): Updated.
3095         Added targets for remaking config.status, config.hin, config.h,
3096         stamp-h.in, and stamp-h.
3097         * configure: Regenerated.
3099 2001-08-19  Werner LEMBERG  <wl@gnu.org>
3101         * NEWS: Updated.
3103 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
3105         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
3106         (do_sprintf): Use snprintf().
3108 2001-08-18  Werner LEMBERG  <wl@gnu.org>
3110         * src/libs/snprintf/*: Added an snprintf module written by Mark
3111         Martinec.
3112         * src/libs/libgroff/Makefile.sub: Updated.
3113         * configure.ac: Add test for snprintf().
3114         * Makefile.in: Updated.
3115         * configure: Regenerated.
3117         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
3118         uses snprintf().
3120 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
3122         * tmac/doc.tmac (Ex): New implementation.
3123         * tmac/doc-common, tmac/groff_tmac.man: Updated.
3125 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
3127         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
3128         argument.
3129         * tmac/groff_tmac.man: Updated.
3131 2001-08-13  Werner LEMBERG  <wl@gnu.org>
3133         * src/preproc/tbl/tbl.man: Minor documentation update.
3135 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3137         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
3138         * configure.ac: Add declaration test for gettimeofday().
3139         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
3140         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
3141         * configure: Regenerated.
3143 2001-08-11  Werner LEMBERG  <wl@gnu.org>
3145         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
3146         * configure.ac: Add declaration test for strcasecmp().
3147         * Makefile.in: Updated.
3148         * configure: Regenerated.
3149         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
3150         this is necessary because groff's mkstemp.cc is C++.
3151         Add declaration conditionally for strcasecmp().
3153 2001-08-10  Werner LEMBERG  <wl@gnu.org>
3155         Integrated pic2graph, contributed by Eric S. Raymond.
3157         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
3158         files.
3159         * Makefile.in, NEWS: Updated.
3161         * src/preproc/tbl/tbl.man: Revised.
3163 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
3165         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
3167 2001-08-09  Werner LEMBERG  <wl@gnu.org>
3169         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
3170         requests.
3172 2001-08-08  Paul Eggert  <eggert@twinsun.com>
3174         * Makefile.sub (configure): Depend on configure.ac, not
3175         configure.in.
3176         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
3178 2001-08-07  Werner LEMBERG  <wl@gnu.org>
3180         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
3181         fixes.
3183 2001-08-06  Werner LEMBERG  <wl@gnu.org>
3185         * src/roff/troff/troff.man: Improve documentation of -E option.
3187 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
3189         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
3190         Simplified.
3192 2001-07-27  Werner LEMBERG  <wl@gnu.org>
3194         * src/preproc/refer/refer.cc: Undo last change.
3195         * src/devices/grohtml/post-html.cc: Ditto.
3197 2001-07-26  Werner LEMBERG  <wl@gnu.org>
3199         * src/preproc/refer/refer.cc: Include `lib.h'.
3200         * src/devices/grohtml/post-html.cc: Ditto.
3202 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
3204         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
3205         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
3206         * Makefile.in: Comment updated.
3207         * configure: Regenerated.
3209 2001-07-25  Werner LEMBERG  <wl@gnu.org>
3211         * src/preproc/pic/pic.cc: Removed.
3212         * src/preproc/pic/pic_tab.h: Removed.
3213         * src/preproc/refer/label.cc: Removed.
3215         * doc/Makefile (.ms.html): Don't use a file name extension in
3216         argument to grohtml's -I option.
3217         * Makefile.in (dist): Remove CVS directories.
3218         Call `distfiles' target.
3220         * src/devices/grohtml/grohtml.man: Add information about valid
3221         versions of pnmtopng.
3222         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
3223         name instead of number.
3225 2001-07-24  Werner LEMBERG  <wl@gnu.org>
3227         * doc/groff.texinfo: Minor fixes.
3229 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
3231         * doc/Makefile (.ms.html): Put image files into a subdirectory.
3232         (clean): Updated.
3234 2001-07-20  Werner LEMBERG  <wl@gnu.org>
3236         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
3237         * src/libs/libgroff/mkstemp.cc: New file.
3238         * src/libs/libgroff/mksdir.cc: New file.
3239         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
3240         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
3241         * src/libs/libgroff/Makefile.sub: Updated.
3242         * src/include/lib.h: Add mksdir() prototype.
3243         * src/include/posix.h: Define S_IXUSR if not yet defined.
3245         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
3246         (createAllPages): Use mksdir() instead of current code.
3247         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
3248         (main): [!HAVE_MKSTEMP]: Removed.
3250         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
3251         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
3252         macros.
3253         * configure.ac: Add tests for stdint.h, sys/time.h, and
3254         gettimeofday().
3255         Call new GROFF_xxx macros.
3256         * configure: Regenerated.
3257         * Makefile.in: Comments updated.
3259 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
3261         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
3262         instead of current code.
3263         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
3264         * src/roff/groff/groff.cc (possible_command::insert_args): New
3265         function.
3266         (main): Use it for predriver handling instead of insert_arg().
3268 2001-07-19  Werner LEMBERG  <wl@gnu.org>
3270         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
3271         groff also.
3273         * src/include/posix.h: Define S_IWUSR if not yet defined.
3275 2001-07-18  Werner LEMBERG  <wl@gnu.org>
3277         * NEWS: Updated.
3279 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
3281         * tmac/groff_mdoc.man: Document new -width and -column syntax.
3282         Some other minor fixes.
3283         * tmac/an-old.tmac: Add `AT' and `UC' macros.
3285 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
3287         Replace call to `troff' with `groff -Z' to make it aware of
3288         GROFF_BIN_PATH.
3290         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
3291         (troff_command, command_prefix): Removed.
3292         (alterDeviceTo): Use groff.
3293         (addZ): New function.
3294         (char_buffer::do_html): Use it.
3295         (scanArguments): Use TROFF_COMMAND.
3296         (findPrefix): Removed.
3297         (main): Updated.
3298         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
3300 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
3302         * doc/pic.ms: Documentation fixes.
3304 2001-07-17  Werner LEMBERG  <wl@gnu.org>
3306         Replace atexit() with global destructor.
3308         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
3309         (xtmpfile_list_init): New global structure to deallocate
3310         xtmpfile_list on exit.  Its destructor inherits most code from
3311         remove_tmp_files().
3312         (remove_tmp_files): Deleted.
3313         (add_tmp_file): Simplified.
3315 2001-07-16  Werner LEMBERG  <wl@gnu.org>
3317         Replace strdup() with strsave().
3319         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
3320         (set_papersize): Use strsave() and a_delete.
3321         (main): Use strsave().
3322         * src/preproc/html/pre-html.cc (make_message, createAllPages,
3323         removeAllPages): Use strsave() and a_delete.
3325         * configure.ac: Remove test for strdup.
3326         * Makefile.in: Comment updated.
3327         * configure: Regenerated.
3329 2001-07-15  Werner LEMBERG  <wl@gnu.org>
3331         * win32-diffs: Updated.
3333 2001-07-14  Werner LEMBERG  <wl@gnu.org>
3335         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
3336         removing the old one.
3337         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
3339 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
3341         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
3343 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
3345         Merge -xwidth into -width.  Add -xwidth functionality to -column
3346         also.
3348         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
3349         avoid warning.
3350         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
3351         string immediately following a leading dot starts with a valid mdoc
3352         argument.
3353         Add similar code to the -column branch.
3354         (doc-Bl-usage): Updated.
3355         * groff_mdoc.man: s/-xwidth/-width/.
3357 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
3359         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
3360         running into centered or non-formatted text.
3362 2001-07-11  Werner LEMBERG  <wl@gnu.org>
3364         Introduce short and long prefixes to have the selection at run-time
3365         whether there is a 8+3 limit for names of temporary files.
3367         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
3368         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
3369         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
3370         variables.
3371         (temp_init): New global structure to initialize above three
3372         variables.
3373         (xtmptemplate): Use two parameters for long and short prefix.
3374         Simplify code use above three variables.
3375         (xtmpfile): Use long and short prefixes as parameters.
3376         * src/include/lib.h: Updated.
3378         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
3379         with ...
3380         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
3381         (createAllPages, makeTempFiles): Updated.
3383 2001-07-09  Werner LEMBERG  <wl@gnu.org>
3385         * REVISION: Increased to 3.
3387 Version 1.17.2 released
3388 =======================
3390 2001-07-07  Werner LEMBERG  <wl@gnu.org>
3392         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
3393         to size_t.
3395 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
3397         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
3398         Fix synopsis.
3399         * tmac/groff_mdoc.man: Fix synopsis.
3401 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
3403         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
3404         Restore `doc-Pa-font'.
3406 2001-07-04  Werner LEMBERG  <wl@gnu.org>
3408         * src/utils/indxbib/dirnamemax.c: Moved to ...
3409         * src/libs/libgroff/maxfilename.cc: Here.
3410         s/dir_name_max/file_name_max/.
3411         Add copyright.
3412         * src/include/lib.h: Add file_name_max.
3413         * src/utils/indxbib/indxbib.cc: Updated.
3414         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
3415         Updated.
3417         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
3418         as empty.
3419         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
3421         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
3422         REGION_TEMPLATE): New macros.
3423         (createAllPages, makeTempFiles): Use them.
3424         Include `nonposix.h'.
3425         (html_system): New function.
3426         (createAllPages, createImage): Use it.
3427         Use EXE_EXT.
3429         * tmac/www.tmac: Fix typos.
3431 2001-07-03  Werner LEMBERG  <wl@gnu.org>
3433         * tmac/www.tmac: Disable hyphenation in normal text only if output
3434         device is html.
3435         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
3436         * tmac/groff_mwww.man, NEWS: Updated.
3438 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
3440         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
3441         image location.
3443 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
3445         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
3446         doc-display-ps-stack): Implement font and font size stack for
3447         displays.
3449 2001-07-02  Werner LEMBERG  <wl@gnu.org>
3451         * REVISION: Increased to 2.
3452         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
3454         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
3455         beginning of a line.
3456         * src/groff/grog/grog.sh: Ditto.
3458 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
3460         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
3461         make it portable.
3463 2001-06-27  Werner LEMBERG  <wl@gnu.org>
3465         Fix problems with preprocessor string for `man' program.
3467         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
3468         Updated/added copyright.
3469         Moved Emacs's local variable to identify nroff mode to the end of
3470         the file; add local variable if missing.
3472 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
3474         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
3475         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
3476         * configure: Regenerated.
3478 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
3480         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
3481         * configure: Regenerated.
3483 2001-06-24  Werner LEMBERG  <wl@gnu.org>
3485         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
3486         but www.tmac.
3487         * doc/pic.ms: Fix typos.
3489 Version 1.17.1 released
3490 =======================
3492 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
3494         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
3495         * configure: Updated.
3497 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
3499         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
3500         image names.
3501         * src/roff/troff/dic.cc (blank_line): Add html tag.
3503 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
3505         * src/roff/troff/input.cc (do_suppress): Fix typo.
3507 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
3509         Added two new options (-D and -I) to specify image names and a
3510         subdirectory to place the images in.
3512         Change syntax from \\Ox to \\O[x].
3514         * src/devices/grohtml/post-html.cc (main): Add options.
3515         (usage): Updated.
3516         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
3517         Use `NULL' instead of `0' for null string pointers.
3518         (MAX_RETRIES): New macro.
3519         (lengthOfintToStr, intToStr, make_message): New functions.
3520         (makeFileName): Make function static.
3521         Implement -D and -I options.
3522         (checkImageDir): New function.
3523         (write_end_image, write_start_image): Use new syntax of \O.
3524         (createAllPages, removeAllPages): Implement -D and -I options.  Use
3525         make_message().
3526         (createImage): Use make_message().
3527         (addps4html): Add guard for malloc().
3528         (usage, scanArguments): Updated.
3529         (makeTempFiles): Use mkstemp().
3530         (removeTempFiles): Use unlink().
3531         (findPrefix): Add guard for malloc().
3532         (main): Updated.
3533         * src/roff/troff/input.cc (get_delim_file_name): New function to
3534         parse \O.
3535         (do_suppress): Updated to parse new syntax.
3536         * src/devices/grohtml/grohtml.man: Updated.
3537         * tmac/www.tmac: Updated to new syntax.
3539         * NEWS: Updated.
3541 2001-06-15  Werner LEMBERG  <wl@gnu.org>
3543         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
3545         * src/devices/grohtml/grohtml.man: Minor improvements.
3547 2001-06-14  Werner LEMBERG  <wl@gnu.org>
3549         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
3551 2001-06-11  Werner LEMBERG  <wl@gnu.org>
3553         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
3554         line to specify preprocessor options -- mandb 2.3.1 only recognizes
3555         the former.
3556         * src/preproc/grn/grn.man: Add proper '\" string.
3558 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
3560         * test-groff: Don't use PATH but GROFF_BIN_PATH.
3562 2001-06-08  Werner LEMBERG  <wl@gnu.org>
3564         Updated to autoconf 2.50.
3566         * configure.in: Renamed to...
3567         * configure.ac: This.
3568         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
3569         (GROFF_OS390): Updated.
3570         * configure: Regenerated.
3572 2001-05-18  Werner LEMBERG  <wl@gnu.org>
3574         * src/roff/troff/env.c, src/roff/troff/env.h,
3575         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
3576         from 2000-12-21.
3578 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
3580         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
3582 2001-05-16  Werner LEMBERG  <wl@gnu.org>
3584         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
3585         less than or equal zero; set it to 1 then.
3586         * src/roff/troff/node.h (node::node): Initialize `last'.
3588 2001-05-08  Werner LEMBERG  <wl@gnu.org>
3590         * tmac/an-old.tmac: Make predefined strings work in compatibility
3591         mode.
3592         Add troff version guard.
3593         * tmac/doc.tmac: Simplify version guard.
3595 2001-05-07  Werner LEMBERG  <wl@gnu.org>
3597         The .ns and .rs requests are now honoured not only in the top-level
3598         but in all diversions (similar to UNIX troff).
3600         This change is based on a patch from Tadziu Hoffmann
3601         <hoffmann@usm.uni-muenchen.de>.
3603         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
3604         (top_level_diversion): Remove `no_space_mode' member.
3605         * src/roff/troff/div.cc (diversion::diversion,
3606         top_level_diversion::top_level_diversion): Updated.
3607         (macro_diversion::output): Reset `no_space_mode'.
3608         (no_space, restore_spacing): Use `curdiv' unconditionally.
3609         (space_request, blank_line): Check `curdiv->no_space_mode'.
3610         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
3611         `curdiv' unconditionally.
3612         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
3613         Updated.
3615 2001-05-06  Werner LEMBERG  <wl@gnu.org>
3617         Added two new requests `de1' and `am1' which are similar to `de' and
3618         `am' with the difference that compatibility mode is saved on entry,
3619         switched off during macro execution, and restored on exit.
3621         * src/roff/troff/input.h: Added two new special characters
3622         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
3623         * src/roff/troff/input.cc (input_iterator): Added two member
3624         functions `save_compatible_flag' and `get_compatible_flag'.
3625         (input_stack): Ditto.
3626         (string_iterator): Ditto.  Also add private member
3627         `saved_compatible_flag'.
3628         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
3629         (calling_mode): New enumeration.
3630         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
3631         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
3632         (define_macro, define_indirect_macro, append_macro, ignore): Use
3633         `calling_mode'.
3634         (define_nocomp_macro, append_nocomp_macro): New functions.
3635         (init_input_requests): Updated.
3636         (do_request): Rename local variable `saved_compatible_flag' to
3637         `old_compatible_flag'.
3638         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
3640         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
3641         public and trap-invoked macros.  As a consequence, the man macros
3642         work in compatibility mode also.
3644 2001-05-06  Solar Designer  <solar@openwall.com>
3646         * Makefile.in: Use $(mandir).
3648 2001-05-06  Alexios Zavras  <zvr@pobox.com>
3650         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
3652 2001-05-05  Werner LEMBERG  <wl@gnu.org>
3654         Added `.ns' number register: Returns 1 in no-space mode (if in
3655         top-level diversion), 0 otherwise.
3657         * src/roff/troff/div.cc (no_space_mode_reg): New class.
3658         (init_div_requests): Updated.
3659         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
3660         Document it.
3662 2001-05-04  Werner LEMBERG  <wl@gnu.org>
3664         * src/roff/nroff/nroff.man: Improved documentation (especially
3665         locales).
3667 2001-05-02  Werner LEMBERG  <wl@gnu.org>
3669         Added `brp' request: This is \p as a request.
3671         * src/roff/troff/env.cc (environment::do_break): Add parameter
3672         `spread'.
3673         (do_break_request): New function (was `break_request').
3674         (break_request): Calls `do_break_request'.
3675         (break_spread_request): New; calls `do_break_request'.
3676         (init_env_requests): Updated.
3677         * src/roff/troff/env.h: Updated.
3678         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
3680         * REVISION: Increased to 1.
3681         * win32-diffs: Updated.
3683 2001-05-01  Werner LEMBERG  <wl@gnu.org>
3685         * tmac/an-old.tmac: Fix minor compatibility mode issue.
3686         * tmac/troffrc-end: Make it really work in compatibility mode.
3688 2001-04-27  Werner LEMBERG  <wl@gnu.org>
3690         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
3691         stdlib.h.
3693 2001-04-22  Werner LEMBERG  <wl@gnu.org>
3695         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
3696         latest versions from glibc CVS archive.
3698         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
3699         <c.zeelenberg@hccnet.nl>.
3701 2001-04-21  Werner LEMBERG  <wl@gnu.org>
3703         * configure.in: Move check for mkstemp() to...
3704         * aclocal.m4 (GROFF_MKSTEMP): This new function.
3705         * configure: Regenerated.
3707         * src/include/groff-getopt.h: Don't use variable names in
3708         declarations.
3710         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
3711         * src/devices/grohtml/Makefile.sub,
3712         src/devices/grohtml/post-html.cc: Updated.
3714 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
3716         * configure.in: Add special check for mkstemp().
3717         * src/libs/libgroff/tmpfile.cc: Use it.
3718         * src/utils/indxbib/indxbib.cc: Ditto.
3719         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
3720         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
3721         `const'.
3723 2001-04-20  Bruce Lilly  <blilly@erols.com>
3725         `Version_string' as C++ object was not visible to linker from C
3726         object files.
3727         Add `const' to `Version_string'.
3729         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
3730         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
3731         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
3732         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
3733         (scanArguments), src/preproc/refer/refer.cc (main),
3734         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
3735         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
3736         (main), src/devices/grohtml/post-html.cc (main),
3737         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
3738         (main), src/utils/hpftodit/hpftodit.cc (main),
3739         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
3740         (main), src/utils/lkbib/lkbib.cc (main),
3741         src/utils/addftinfo/addftinfo.cc (main): Implement it.
3743         * src/roff/groff/pipeline.c: Add _UWIN.
3744         * src/include/nonposix.h: Ditto.
3746 2001-04-20  Werner LEMBERG  <wl@gnu.org>
3748         * src/include/lib.h: Use HAVE_STRERROR.
3749         * src/roff/groff/pipeline.c: Ditto.
3750         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
3751         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
3752         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
3753         * win32-diffs: Updated.
3754         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
3756 2001-04-19  Werner LEMBERG  <wl@gnu.org>
3758         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
3759         instead of hardwired `"troff"'.
3760         (char_buffer::read_file): Remove unused variables.
3761         (char_buffer::write_file_troff): Ditto.
3762         (char_buffer::write_file_html): Ditto.
3763         (generateImages): Ditto.
3764         (abs): Removed.
3765         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
3767         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
3769         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
3770         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
3771         index_search_item::search1): Ditto.
3772         * src/roff/troff/node.h (width_list): Reorder members.
3773         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
3774         (lookup_warning): Ditto.
3775         (prepend_string): Commented out.
3776         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
3777         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
3778         * src/preproc/tbl/main.cc (process_format): Ditto.
3779         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
3780         compiler warnings.
3781         * src/preproc/pic/pic.cc: Updated.
3782         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
3783         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
3784         * src/preproc/refer/command.cc (execute_command): Ditto.
3785         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
3786         * src/preproc/refer/token.cc (lookup_token): Ditto.
3787         * src/preproc/soelim/soelim.cc: Ditto.
3788         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
3789         (isHexDigit): Commented out.
3790         (pushBackBuffer::isString): Remove unused variable.
3791         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
3792         warning.
3793         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
3794         resource_manager::read_resource_arg, read_one_of, parse_extensions):
3795         Ditto.
3796         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
3797         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
3798         lookup_paper_size): Ditto.
3799         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
3800         (text_glob, element_list): Reorder members.
3801         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
3802         compiler warning.
3803         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
3804         return value to `void'.
3805         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
3806         of initializers.
3807         * src/devices/grohtml/html.h (simple_output::check_newline,
3808         simple_output::space_or_newline, simple_output::enable_newlines):
3809         Add return value.
3810         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
3811         compiler warnings.
3812         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
3813         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
3814         output_ligatures, output_charset, read_map): Ditto.
3815         * src/utils/lookbib/lookbib.cc (main): Ditto.
3816         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
3817         (do_file): Fix typo (`=' -> `==').
3818         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
3819         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
3821 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
3823         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
3824         Fix usage of GROFF_BIN_PATH.
3825         * src/roff/nroff/nroff.man: Updated.
3827 2001-04-18  Werner LEMBERG  <wl@gnu.org>
3829         * NEWS: Fixing typos.
3830         Updated.
3832 Version 1.17 released
3833 =====================
3835 2001-04-17  Werner LEMBERG  <wl@gnu.org>
3837         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
3838         directory, not in $(srcdir).
3840 2001-04-16  Werner LEMBERG  <wl@gnu.org>
3842         * doc/groff.texinfo: More info on conditionals.
3844 2001-04-15  Werner LEMBERG  <wl@gnu.org>
3846         * doc/groff.texinfo: Added some info about groff internals.
3848         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
3849         about missing special character only if the name is non-null.
3851 2001-04-14  Werner LEMBERG  <wl@gnu.org>
3853         Removing the grohtml-old device driver which is now obsolete.
3855         * src/devices/grohtml-old/*: Removed.
3856         * font/devhtml-old/*: Removed.
3857         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
3858         Remove comments.
3859         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
3860         * test-groff (PATH): Updated.
3861         * tmac/Makefile.sub (NORMALFILES): Updated.
3862         * tmac/an-old.tmac: Remove special code for html-old device.
3863         Replace `html-or-html-old' register with `an-html'.
3864         * tmac/eqnrc: Updated.
3865         * tmac/html-old.tmac: Removed.
3866         * tmac/troffrc, tmac/troffrc-end: Updated.
3867         * tmac/www.tmac: Remove special code for html-old device.
3868         Replace `html-or-html-old' register with `www-html'.
3870         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
3871         src/libs/libgroff/htmlindicate.cc (graphic_end),
3872         include/htmlindicate.h, src/preproc/grn/*.cc,
3873         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
3874         single argument for consistency with rest of source code.
3876         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
3878 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
3880         * src/roff/troff/troff.man: Fixing typos.
3882 2001-04-13  Werner LEMBERG  <wl@gnu.org>
3884         * doc/pic.ms: Fixing many font switches.
3885         * doc/groff.texinfo: Fixes, additions.
3886         * MORE.STUFF: Updated.
3888 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
3890         * src/devices/grohtml/grohtml.man: Updated manual page regarding
3891         simple anchor.
3892         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
3893         cropping of images.
3894         (removeTempFiles): New function to tidy up temporary files.
3895         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
3896         Many fixes to do with the new inline suppress node and image regions
3897         are much tighter.
3898         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
3899         (generate_img_src): New function.
3900         (html_printer::do_auto_image): Utilizes it.
3901         (do_heading, do_title): Include inline images within their contents.
3902         (html_printer::begin_page): Tidied up comments that are issued to
3903         the html output file.
3904         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
3905         than courier.
3906         (text_glob::is_br): New method used by do_heading.
3907         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
3908         equivalent diversion.
3909         * src/include/html-strings.h: Altered image tags to reflect the
3910         inline image node.
3911         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
3912         parameter.
3913         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
3914         it is already inside a pic image.  Only emit tags if the argument
3915         `-Tps:html' is present.
3916         * src/preproc/tbl/main.cc: Changes to reflect additional
3917         `html_end_suppress' parameter.
3918         * src/roff/troff/env.cc: Only emit eol tag if a node has been
3919         emitted since the last eol tag was written.
3920         * src/roff/troff/env.h: New boolean `emitted_node'.
3921         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
3922         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
3923         * src/roff/troff/node.cc (check_charinfo): New method. 
3924         (troff_output_file::determine_line_limits): Alterations to limit
3925         checking.
3926         * tmac/www.tmac: Changes to reflect new suppress nodes.
3927           
3928 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
3930         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
3931         Escape the html_glyph in the buffer.
3932         (str_translate_to_html): Output the unescaped escaped_char.
3933         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
3934         `frame=void', not `frame=none'.  Add `border=0'.
3936 2001-04-12  Werner LEMBERG  <wl@gnu.org>
3938         * PROBLEMS: Add some words on how to avoid wrapper macros.
3940 2001-04-11  Blake McBride  <blake@florida-software.com>
3942         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
3944 2001-04-11  Werner LEMBERG  <wl@gnu.org>
3946         * font/devlbp/Makefile.sub (CLEANADD): Set it.
3947         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
3948         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
3949         * Makefile.sub (DISTCLEANFILES): Here.
3951         * libs/libgroff/new.cc: Include `nonposix.h'.
3952         * win32-diffs: Updated.
3954 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
3956         Added skeleton macro for defunct macros.
3958         Updated documentation.
3960         When inside displays, an empty input line warning should be
3961         suppressed.  If another macro call is put inside a display,
3962         all subsequent empty lines found in that display caused a
3963         warning to be emitted.
3965         * tmac/doc.tmac (doc-defunct-macro): New macro.
3966         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
3967         (doc-restore-global-vars): Fixed typo.
3968         (doc-empty-line): Check the `doc-display-depth' register to
3969         determine whether we are inside display or not.
3971         * tmac/doc-common: Removed `Or' and `Sf' registers.
3972         Moved obsolete `Ds' macro to doc.tmac.
3974         * tmac/groff_mdoc.man: Bump document date.
3975         Document `.Vt' under ``Variable Types''.
3976         Removed documentation for obsolete `.Or' macro.
3978 2001-04-10  Werner LEMBERG  <wl@gnu.org>
3980         * NEWS: Updated.
3981         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
3983 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
3985         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
3986         (usage): Add stream argument. Don't exit.
3987         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
3988         Write --version output to stdout, not stderr.
3989         (usage): Add stream argument. Don't exit.
3990         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
3991         (usage): Add stream argument. Don't exit.
3992         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
3993         constants.
3994         (usage): Add stream argument. Don't exit.
3995         (main): Write --help output to stdout, not stderr.
3996         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
3997         (usage): Add stream argument. Don't exit.
3998         * src/devices/grops/ps.cc (main): Accept --help and --version.
3999         (usage): Add stream argument. Don't exit.
4000         * src/devices/grotty/tty.cc (main): Accept --help and --version.
4001         (usage): Add stream argument. Don't exit.
4002         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
4003         (main): Accept --help and --version.
4004         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
4005         (main): Accept --help and --version.
4006         * src/preproc/html/pre-html.cc (usage): Add stream argument.
4007         (scanArguments): Accept --help and --version.
4008         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
4009         (main): Accept --help and --version.
4010         * src/preproc/refer/refer.cc (main): Accept --help and --version.
4011         (usage): Add stream argument. Don't exit.
4012         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
4013         exit.
4014         (main): Accept --help and --version.
4015         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
4016         (main): Accept --help and --version.
4017         * src/roff/groff/groff.cc (main): Accept --help and --version.
4018         (synopsis): Add stream argument.
4019         (help): Write --help output to stdout, not stderr.
4020         (usage): Add stream argument. Don't exit.
4021         * src/roff/grog/grog.pl: Accept --help and --version.
4022         (help): New sub.
4023         * src/roff/grog/grog.sh: Accept --help and --version.
4024         * src/roff/nroff/nroff.sh: Accept --help and --version.
4025         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
4026         (usage): Add stream argument. Don't exit.
4027         (main): Accept --help and --version.
4028         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
4029         (usage): New function with stream argument, doesn't exit.
4030         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
4031         (usage): New function with stream argument, doesn't exit.
4032         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
4033         (usage): Add stream argument. Don't exit.
4034         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
4035         (main): Accept --help and --version.
4036         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
4037         exit.
4038         (main): Accept --help and --version.
4039         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
4040         (main): Accept --help and --version.
4041         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
4042         (usage): Add stream argument. Don't exit.
4044 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
4046         Fix indentation in SYNOPSIS.
4048         Updated to include changes of latest BSD mdoc version (basically,
4049         the only change is that `.Fn' and `.Fc' put a final semicolon after
4050         a function declaration in the SYNOPSIS section).
4052         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
4053         (doc-in-synopsis-section): New variable.  Updated all related
4054         functions.
4055         (doc-indent-synopsis-active): New register.
4056         (Nd, Fn, Fo): Use it.
4057         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
4058         `.Cd' with long argument line produces indented wrapped lines. 
4059         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
4060         undesirable line break to be output.
4061         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
4062         `.rs'.
4063         (Fn, Fc): Add final `;' to output.
4064         (doc-save-global-vars, doc-restore-global-vars): Updated.
4065         * tmac/doc-common: Remove `Ex' register.
4066         Updated.
4067         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
4068         copyright.
4070 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
4072         * tmac/doc.tmac (Cd): Simplify code.
4073         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
4075 2001-04-06  Werner LEMBERG  <wl@gnu.org>
4077         Implement continuous underlining for nroff mode.  To do that, a new
4078         request in the ditroff language has been added: `x u N' (N is 0
4079         or 1).
4081         \X and \Y are now transparent to end-of-sentence recognition.
4083         * src/include/printer.h (printer): Add `type' parameter to `special'
4084         method.
4085         * src/libs/libdriver/printer.cc (printer::special): Updated.
4086         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
4088         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
4089         specials of type `p'.
4090         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
4091         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
4092         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
4093         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
4094         (glyph::order): New method.
4095         (tty_printer::add_char): Use it.
4096         (tty_printer::special): New method.
4097         (tty_printer::end_page): Implement it.
4099         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
4100         * src/roff/troff/node.cc (special_node::special_node): Add parameter
4101         to set `no_init_string'.
4102         (special_node::tprint_start): Use it.
4103         (special_node::same, special_node::copy): Updated.
4104         (special_node::ends_sentence): New method.
4105         (troff_output_file::start_special): Add parameter to include
4106         inititialization of special conditionally.
4108         * src/roff/troff/env.h (environment): New member `underline_spaces'.
4109         * src/roff/troff/env.cc (do_underline_special): New function.
4110         (environment::set_font): Use it.
4111         (do_underline): Use it.  This was `underline()'.
4112         (underline): Call `do_underline()'.
4113         (continuous_underline): New function which calls `do_underline()'.
4114         (environment::newline): Use `do_underline_special()'.
4115         (init_env_requests): Updated.
4117         * NEWS, man/troff_out.man: Updated.
4119 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
4121         * font/devutf8/R.proto: Fix code of 'shc'.
4123 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
4125         Many fixes.  Diag lists can now be nested also; additionally,
4126         `-compact' and `-offset' are supported.
4128         * tmac/doc.tmac (doc-have-indent): Replaced with ...
4129         (doc-list-have-indent-stackXXX): A new register stack.
4130         (doc-have-diag-list): Removed.
4131         (Bl): Use `doc-list-have-indent-stackXXX'.
4132         (El): Updated.
4133         (doc-diag-list): Use `doc-compact-list-stackXXX'.
4134         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
4135         (doc-set-vertical-and-indent): Ditto.
4136         (doc-next-list-depth): Removed.
4137         (doc-increment-list-stack): Updated.
4138         (doc-decrement-list-stack): Use `doc-list-depth' instead of
4139         `doc-next-list-depth'.
4140         (doc-end-list, doc-end-column-list): Don't use
4141         `doc-increment-list-stack'.
4142         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
4143         (doc-save-global-vars, doc-restore-global-vars): Updated.
4144         * tmac/doc-common: Updated.
4145         * tmac/groff_mdoc.man: Updated.
4146         * NEWS: Fix typo.
4148 2001-04-02  Werner LEMBERG  <wl@gnu.org>
4150         * src/devices/grotty/grotty.man: Fix grammatical error.
4152 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
4154         Remove .Ld from mdoc package; replace it with special handling of
4155         `...'.
4157         * tmac/doc-common: Remove `Ld' register.
4158         Uncomment `doc-volume-ds-*' strings.
4159         Remove `doc-operating-system-default'.
4160         (Os): Updated.
4161         * tmac/doc-syms (Ld): Removed.
4162         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
4163         `...' specially.
4164         * NEWS: Updated.
4166         * tmac/groff_mdoc.man: Many fixes and updates.
4168 2001-03-29  Werner LEMBERG  <wl@gnu.org>
4170         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
4171         Bond <tkb@tkb.mpl.com>.
4172         * tmac/www.tmac: Save compatibility mode.
4174 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
4176         * tmac/groff_mdoc.man: Many fixes.
4178 2001-03-28  Werner LEMBERG  <wl@gnu.org>
4180         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
4181         isn't recognized.
4183 2001-03-27  Werner LEMBERG  <wl@gnu.org>
4185         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
4186         diversion.  This fixes overlong tags.
4188 2001-03-26  Werner LEMBERG  <wl@gnu.org>
4190         * doc/groff.texinfo: Fixed and improved documentation of fonts.
4191         * tmac/doc-syms: Fix error messages.
4192         * tmac/an-old.tmac: Remove incorrect double backslashes.
4194 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
4196         * tmac/Makefile.sub: Strip mdoc.local also
4197         * tmac/strip.sed: Fixed.
4199 2001-03-24  Werner LEMBERG  <wl@gnu.org>
4201         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
4202         selecting the font size.
4203         * tmac/groff_mdoc.man, NEWS: Document it.
4205 2001-03-23  Werner LEMBERG  <wl@gnu.org>
4207         * src/roff/troff/div.cc (save_vertical_space): Add default argument
4208         to `sv' request.
4209         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
4210         argument to restore previous font family.
4211         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
4213         * doc/groff.texinfo: More fixes and additions (mainly for font
4214         manipulating commands).
4216         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
4217         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
4218         * tmac/Makefile.sub, NEWS: Updated.
4220 2001-03-23  Werner LEMBERG  <wl@gnu.org>
4222         Replaced mdoc implementation.  The new version is `state of the
4223         art', using almost all new features of groff 1.17 -- it won't run
4224         with older versions.
4226         * tmac/doc.tmac: Completely rewritten.
4227         * tmac/doc-common: Ditto.
4228         * tmac/doc-nroff: Ditto.
4229         * tmac/doc-ditroff: Ditto.
4230         * tmac/doc-syms: Ditto.
4231         * tmac/mdoc.local: New file.
4232         * tmac/groff_mdoc.samples.man: Replaced with ...
4233         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
4234         * tmac/strip.sed: Updated.
4235         * tmac/Makefile.sub: Updated.
4236         * INSTALL: Updated.
4238         * tmac/groff_man.man: Add `man.local' to the FILES section.
4240 2001-03-22  Werner LEMBERG  <wl@gnu.org>
4242         * doc/groff.texinfo: Added many @noindent.
4243         Replaced @end_Example -> @endExample.
4244         Added info whether registers are r/o.
4245         Many other additions and fixes.
4247 2001-03-21  Werner LEMBERG  <wl@gnu.org>
4249         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
4250         in makeinfo of texinfo 4.0) to be used in @Def* macros.
4251         Improved @Def* macros: Now the exact syntax of request, register,
4252         and escapes is shown.
4253         Added macros for parentheses and brackets to be used in @Def*.
4254         Many fixes and improvements of the documentation.
4256 2001-03-20  Werner LEMBERG  <wl@gnu.org>
4258         * doc/groff.texinfo: Added new index: `st' (for strings).
4259         Added macros @Defstr(x).
4260         Added macro @Example (adding @group).
4261         Other minor improvements.
4263 2001-03-19  Werner LEMBERG  <wl@gnu.org>
4265         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
4266         `rq' for requests.  `fn' is no longer used.
4267         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
4268         Removed @Deffn(x).
4270         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
4271         number with name of man page.
4273 2001-03-19  Larry Kollar  <kollar@alltel.net>
4275         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
4276         consistency.
4278 2001-03-19  Werner LEMBERG  <wl@gnu.org>
4280         * man/groff_font.man: Document `prepro', `postpro', and `print'.
4281         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
4282         * src/devices/grohtml/grohtml.man: Fixing typos.
4284 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
4286         * tmac/s.tmac (@IP): Pass `.ip' html tag.
4287         * tmac/groff_mwww.man: Remove .LINE macro
4288         * tmac/www.tmac (LINE): Add `.ti'.
4290         * src/devices/grohtml/post-html.cc (html_printer): New member
4291         `indent'.
4292         (html_printer::emit_raw): Use it.
4293         (html_printer::do_linelength): Ditto.
4294         (html_printer::do_pageoffset): Ditto.
4295         (html_printer::do_indentation): Ditto.
4296         (html_printer::do_tempindent): Ditto.
4297         (html_printer::do_break): Ditto.
4298         (html_printer::begin_page): Ditto.
4299         (html_printer::do_indentedparagraph): New function.
4300         (html_printer::troff_tag): Handle `.ip'.
4301         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
4302         Add `<td width=...>' handling.
4303         (html_text::do_table): Add parameter.
4304         (html_text::do_indent): Updated.
4305         * src/devices/groohtml/html-text.h: Updated.
4307 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
4309         Introduced simple html tables to implement indentation.
4311         * src/devices/grohtml/html.h (word, word_list): New structures.
4312         (simple_output): Use it.
4313         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
4314         (html_printer): Improve indentation handling.
4315         (html_printer::emit_raw): Set `in_table' element.  Handle
4316         indentation if set.
4317         (html_printer::write_header): Move conditional downwards.
4318         Don't allow whitespace in tags.
4319         (html_printer::do_linelength): Handle line length and indentation
4320         conditionally.
4321         (html_printer::do_pageoffset): Handle indentation conditionally.
4322         (html_printer::do_indentation): Ditto.
4323         (html_printer::do_tempindent): New function member.
4324         (html_printer::do_fill): Take care of indentation.
4325         (html_printer::do_flush): Finish table.
4326         (html_printer::do_links): Ditto.
4327         (html_printer::do_break): New function for handling `.br' and `.ti'.
4328         (html_printer::troff_tag): Use it.
4329         Handle `.ti'.
4330         (html_printer::flush_globs): Fix.
4331         (html_printer::flush_page): Finish table.
4332         (html_printer::html_printer): Fix error message.  Set up
4333         `linelength'.
4334         (html_printer::add_to_sbuf): Remove special handling of character
4335         code 255.
4336         (to_unicode): Remove `stop()'.
4337         (html_printer::write_title): Cleanup.
4338         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
4339         (html_printer::~html_printer): Flush text and end the line.
4340         Use `put_string()'.
4341         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
4342         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
4343         emission of tags.
4344         (html_text::start_tag): Disable newlines.
4345         (html_text::table_is_void): New function.
4346         (html_text::issue_table_begin): Ditto.
4347         (html_text::issue_table_end): Ditto.
4348         (html_text::push_para): Better table handling.
4349         (html_text::do_indent): New function.
4350         (html_text::do_table): Ditto.
4351         (html_text::done_table): Ditto.
4352         (html_text::do_tt): Handle PRE_TAG.
4353         (html_text::is_in_table): New function.
4354         (html_text::check_emit_text): Handle tables.
4355         (html_text::do_emittext): Use `nl()'.
4356         (html_text::do_para): Handle table.
4357         (html_text::remove_def): New function.
4358         * src/devices/grohtml/output.cc (word, word_list): Implement
4359         methods.
4360         (simple_output::end_line): Flush last word.
4361         (simple_output::simple_comment): Ditto.
4362         (simple_output::begin_comment): Recoded.
4363         (simple_output::end_comment): Ditto.
4364         (simple_output::comment_arg): Removed.
4365         (simple_output::check_newline): Improve test and flush last word.
4366         (simple_output::space_or_newline): Improved.
4367         (simple_output::write_newline): Replaced with...
4368         (simple_output::nl): This.
4369         (simple_output::put_raw_char): Flush last word.
4370         (simple_output::check_space): Removed.
4371         (simple_output::put_translated_string): Ditto.
4372         (simple_output::put_string): Simplified.
4373         (simple_output::put_number): Updated.
4374         (simple_output::put_float): Ditto.
4375         (simple_output::put_symbol): Removed.
4376         (simple_output::enable_newlines): Add `check_newline()'.
4377         (simple_output::flush_last_word): New function.
4379         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
4380         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
4382         * tmac/s.tmac (@PP, @IP): Add html conditional code.
4383         * tmac/an-old.tmac (TP): Ditto.
4385 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
4387         * mdate.sh: Make it POSIX compliant.
4389 2001-03-09  Werner LEMBERG  <wl@gnu.org>
4391         Added the `return' request to end a macro immediately.  It simply
4392         pops iterators from the input stack until a macro iterator is found.
4394         * src/roff/troff/input.cc (input_iterator::is_macro,
4395         macro_iterator::is_macro): New member.
4396         (input_return_boundary): New class to signal an immediate return
4397         to while_request().
4398         (input_stack::add_return_boundary, input_stack::is_return_boundary):
4399         New functions.
4400         (input_stack::clear): Use it.
4401         (input_stack::pop_macro): New function.
4402         (while_request): Use `is_return_boundary()'.
4403         (return_macro_request): New function.
4404         (init_input_requests): Use it.
4406         * src/roff/troff/TODO: Updated.
4407         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4409 2001-03-08  Werner LEMBERG  <wl@gnu.org>
4411         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
4412         cleanup.
4414 2001-03-07  Werner LEMBERG  <wl@gnu.org>
4416         Make `\B' more rigid.
4418         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
4419         parameter.
4420         (get_number_rigidly): New function.
4421         * src/roff/troff/input.cc (do_expr_test): Use it.
4422         * src/roff/troff/token.h: Updated.
4424         * src/roff/troff/request.h: Fix typo (init_html_request ->
4425         init_markup_request).
4427 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
4429         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
4430         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
4431         are now `.begin', `.end', `.image'.
4433         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
4434         (html_printer::add_to_sbuf): Changing type of `code' parameter.
4435         Use add_char_to_sbuf().
4436         (to_unicode): New function.
4437         (char_translate_to_html): Changing type of `ch' parameter.
4438         Use `to_unicode()'.
4439         (html_printer::~html_printer): Comment out doctype string.
4440         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
4441         instead of `.html-end'.
4442         (write_start_image): Use `.begin' and `.image' instead of
4443         `.html-begin' and `.html-image'.
4444         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
4445         (html_begin): Renamed to ...
4446         (begin): This.
4447         (html_end): Renamed to ...
4448         (end): This.
4449         (html_image): Renamed to ...
4450         (image): This.
4451         (init_html_requests): Renamed to ...
4452         (init_markup_requests): This.
4453         * tmac/www.tmac: Updated.
4455 2001-02-28  Bram  <bram@avontuur.org>
4457         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
4458         constructor.
4460 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
4462         * doc/meref.me: Fixing some typos.
4464 2001-02-16  Werner LEMBERG  <wl@gnu.org>
4466         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
4467         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
4468         * src/roff/troff/node.h: Updated.
4470 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
4472         * tmac/groff_tmac.man: Fix typo.
4474 2001-02-16  Werner LEMBERG  <wl@gnu.org>
4476         Fixing a bug which prevented proper end-of-sentence recognition
4477         between an `unformatted' box and the following text.  As a
4478         consequence, vertical line distances are no longer preserved in
4479         boxes after a call to `.unformat' -- because boxes aren't
4480         line-oriented (contrary to diversions), this doesn't make sense
4481         anyway.
4483         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
4484         value.
4485         (vertical_size_node::set_unformat_flag): New method.
4486         * src/roff/troff/node.hh: Updated.
4487         * src/roff/troff/input.cc (word_space_node::reread,
4488         hmotion_node::reread): Reset `unformat' flag after usage.
4489         (unformat_macro): Append only if `set_unformat_flag()' returns
4490         non-zero.
4491         * src/roff/troff/troff.man: Updated.
4493 2001-02-15  Werner LEMBERG  <wl@gnu.org>
4495         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
4496         documentation of `asciify' and `unformat' requests.
4498 2001-02-13  Werner LEMBERG  <wl@gnu.org>
4500         Redesigned the `unformat' request.  It is no longer connected with
4501         `asciify' but rather uses new `reread()' methods if the `unformat'
4502         flag is set.  Additionally, the handling of space characters after
4503         unformatting has been fixed so that they retain their width.
4505         * src/roff/troff/node.h (width_list): New structure to store
4506         original widths of spaces.
4507         (node): Added `unformat' member.
4508         Replaced `num_spaces' variable with `orig_width' list.
4509         * src/roff/troff/node.cc (*node::asciify,
4510         asciify_reverse_node_list): Removed `unformat_only' flag and related
4511         code.
4512         (word_space_node::asciify, word_space_node::word_space_node): Use
4513         `orig_width'.
4514         (word_space_node::~word_space_node): New destructor.
4515         (word_space_node::copy): Updated to handle `orig_width'.
4516         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
4517         (*node::merge_space): Update `orig_width' list if necessary.
4518         (*node::set_unformat_flag): New methods to set the `unformat' flag.
4519         * src/roff/troff/enc.cc (environment::space_newline): Use
4520         `width_list'.
4521         (environment::space): Added method to handle space width and
4522         sentence space width as parameters.  Use `width_list'.
4523         (environment::make_tab_node): Updated.
4524         * src/roff/troff/env.h: Updated.
4525         * src/roff/troff/input.cc (word_space_node::reread,
4526         unbreakable_space_node::reread, hmotion_node::reread): New methods
4527         to handle nodes specially if `unformat' flag is set.
4528         (do_asciify_macro): Renamed back to ...
4529         (asciify_macro): This.
4530         (unformat_macro): New implementation to simply set the `unformat'
4531         flag.
4533         * MORE.STUFF: Added more info about deroff.
4535 2001-02-08  Werner LEMBERG  <wl@gnu.org>
4537         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
4538         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
4539         and `add_self()' methods to avoid hyphenation.  For example, the
4540         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
4541         soft hyphen after `foo'.  Now the hyphen list is correctly
4542         `foo<ignore><ignore>bar'.
4544 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
4546         * tmac/groff_tmac.man: Fix `BIR' macro.
4548 2001-02-04  Werner LEMBERG  <wl@gnu.org>
4550         A new escape sequence `\:', inserting a zero-width break point.
4552         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
4553         * src/roff/troff/input.cc (get_copy, token::next, asciify):
4554         Implement it.
4555         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
4556         method.
4557         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
4558         and `asciify()' methods.
4559         * src/roff/troff/node.cc (space_node::space_node): Updated.
4560         (space_node::asciify): Handle `was_escape_colon'.
4561         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4563         Handle `\~' similar to other comparable requests.
4565         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
4566         label.
4567         (token::next): Move creation of an unbreakable_space_node to...
4568         (token::add_to_node_list): Here.
4570         Fix a bug which sometimes prevented hyphenation of words connected
4571         with `\~' or `\ ' (and other escape sequences handled as
4572         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
4573         (after a call to the `unformat' request).
4575         * src/roff/troff/env.h (environment::possibly_break_line,
4576         environment::hyphenate_line): Introducing `start_here' parameter.
4577         * src/roff/troff/env.cc (environment::space_newline,
4578         environment::space): Use it.
4579         (environment::possibly_break_line, environment::hyphenate_line):
4580         Implement it.
4581         * src/roff/troff/input.cc (process_input_stack): Use it.
4582         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
4583         space_char_hmotion_node, overstrike_node): Add
4584         `get_hyphenation_type()' method.
4585         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
4586         if `unformat_only' is active.
4588 2001-01-30  Werner LEMBERG  <wl@gnu.org>
4590         Implemented new read-only number register `.linetabs' which
4591         returns 1 if in line-tabs mode, 0 otherwise.
4593         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
4594         * src/roff/troff/env.cc (get_line_tabs): New function.
4595         (init_env_requests): Use it.
4596         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4598         * VERSION, REVISION: Changing to 1.17.0.
4600 2001-01-28  Werner LEMBERG  <wl@gnu.org>
4602         Fixed a bug which prevented hyphenation of words which are finished
4603         with `\)'.
4605         * src/roff/troff/token.h (token): Add enum type
4606         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
4607         * src/roff/troff/input.cc (token::next, token::description,
4608         get_line_arg, token::add_to_node_list, token::process): Use it.
4610 2001-01-27  Werner LEMBERG  <wl@gnu.org>
4612         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
4613         * src/roff/troff/div.cc (do_divert): Use it.
4615         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
4617 2001-01-25  Werner LEMBERG  <wl@gnu.org>
4619         Adding the `linetabs' request.  If set, tab distances are not
4620         computed relative to the input line but relative to the output line.
4622         * src/roff/troff/env.h (environment): New member `line_tabs'.
4623         * src/roff/troff/env.cc (line_tabs_request): Implement request.
4624         (environment::environment, environment::copy): Updated.
4625         (environment::distance_to_next_tab): Use `line_tabs'.
4626         (init_env_requests): Register request.
4627         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
4628         fixes.
4630 2001-01-24  Werner LEMBERG  <wl@gnu.org>
4632         Introducing a new read-only register `.int' which is set to a
4633         positive value if the last output line is interrupted (i.e., if it
4634         contains `\c').
4636         * src/roff/troff/env.cc (init_env_requests): Add it.
4637         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4639 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
4641         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
4642         * src/preproc/html/pre-html.cc (findPrefix): New function which
4643         generates the troff executable name via the system prefix.
4644         * src/preproc/eqn/main.cc: Modified warning message.
4646 2001-01-23  Werner LEMBERG  <wl@gnu.org>
4648         troff's `box' and `boxa' requests didn't preserve temporary
4649         indentation.
4651         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
4652         `saved_target_text_length' members.
4653         * src/roff/troff/div.cc (do_divert): Use them.
4655         Tabs (but not yet leaders and fields) are now handled correctly by
4656         `asciify' request.
4658         * node.h (hmotion_node): Add field `was_tab'.
4659         * env.cc (environment::make_tab_node): Set it.
4660         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
4662         Added new request `unformat' which will, contrary to `asciify',
4663         preserve font information after unformatting (i.e., only nodes
4664         dealing with horizontal space are converted back to input
4665         characters).
4667         * input.cc (asciify_macro): Renamed to ...
4668         (do_asciify_macro): this, having a new parameter `unformat_only'.
4669         (asciify_macro, unformat_macro): New; using do_asciify_macro.
4670         (init_input_requests): Added `unformat'.
4671         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
4672         parameter to control asciification process.
4673         * node.h (*_node::asciify): Ditto.
4674         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4676 2001-01-20  Werner LEMBERG  <wl@gnu.org>
4678         * doc/groff.texinfo: Minor improvement of `.in' documentation.
4680 2001-01-18  Werner LEMBERG  <wl@gnu.org>
4682         * tmac/ps.tmac: Remove call of psold.tmac.
4683         * tmac/psold.tmac: Comment updated.
4684         * tmac/psnew.tmac: Removed since no longer needed.
4685         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
4687         * font/devutf8/R.proto: Adding `shc' glyph.
4688         * font/devutf8/NOTES: Updated.
4690         * test-groff: Updated.
4692 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
4694         First cut of the new html device driver.  Changes to pre-html and
4695         the new grohtml are too numerous to be documented here.
4697         Stuff related to `html' has been renamed to `html-old' and `html2'
4698         stuff has been renamed to `html' (including directories).  The new
4699         html device driver is therefore invoked as `-Thtml'.
4701         Added new `\O' escape to suppress output (needed by html driver).
4703         Added functions and code to pass info about input-level commands
4704         (`.in', `.fl', etc.) to html driver.
4706         Three new functions (.html-begin, .html-end, and .html-image) for
4707         better html handling: `html-begin' will execute the remaining line
4708         if at the outermost nesting level, increasing an internal counter.
4709         `html-end' does the same but decreases the internal counter.
4710         `html_image' puts its arguments into a special node (suppress_node)
4711         to define an image region.
4713         The `output' request has been removed.
4715         * tmac/html-tags.tmac: Removed.
4716         * tmac/arkup.tmac: Updated and renamed to ...
4717         * tmac/www.tmac: New file.
4718         * tmac/markup.tmac Updated and renamed to ...
4719         * tmac/mwww.tmac: New file.
4720         * tmac/Makefile.sub: Updated.
4721         * tmac/an-old.tmac: Updated.
4722         * tmac/eqnrc: Updated.
4723         * tmac/groff_man.man
4724         * tmac/groff_markup.man: Updated and renamed to ...
4725         * tmac/groff_mwww.man: New file.
4726         * tmac/groff_tmac.man: Updated.
4727         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
4728         * tmac/html.tmac: Updated and renamed from html2.tmac.
4729         * tmac/pspic.tmac: Updated html support.
4730         * tmac/s.tmac: Added html output support.
4731         * tmac/troffrc, tmac/troffrc-end: Updated.
4733         * Makefile.in, doc/Makefile: Updated.
4734         * doc/groff.texinfo: Added info about new `\O' escape.
4735         * doc/homepage.ms: Use `MAILTO' macro.
4737         * font/devhtml/DESC.proto: Add `C' font.
4738         * font/devhtml/Makefile.sub: Updated.
4739         * font/devhtml/R.proto: Minor fixes.
4740         * font/devhtml-old/Makefile.sub: Updated.
4742         * src/devices/grohtml-old/Makefile.sub: Updated.
4744         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
4745         method.
4746         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
4747         graphic_start): Add `inline' parameter.  Update.
4748         (html_end_suppress, graphic_end): Update.
4750         * src/include/html-strings.h: New file.
4751         * src/include/htmlindicate.h: Comments updated.
4752         * src/include/printer.h: Updated.
4754         * src/preproc/eqn/main.cc (do_file, main): Updated.
4755         * src/preproc/pic/troff.cc (troff_output::start_picture,
4756         troff_output::finish_picture): Updated.
4757         * src/preproc/tbl/main.cc (process_input_file): Updated.
4759         * src/roff/groff/groff.cc (main): Updated.
4760         Pass device arguments to predrivers also.
4761         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
4762         * src/roff/troff/env.h (environment): Updated.
4763         New elements `need_eol' and `ignore_next_eol' (for html output).
4764         * src/roff/troff/env.cc (environment::environment): Add initializers
4765         for `need_eol' and `ignore_next_eol'.
4766         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
4767         functions.
4768         (point_size, fill, no_fill, center, right_justify, line_length,
4769         indent, temporary_indent, break_request, handle_tab): Use
4770         `add_html_tag()'.
4771         (set_tabs): Use `add_html_tag_tabs()'.
4772         (environment::add_html_tag): Updated.
4773         (environment::do_break): Updated.
4774         * src/roff/troff/div.cc (space_request, flush_output): Use
4775         `environment::add_html_tag()'.
4776         * src/roff/troff/input.cc: Updated.
4777         New variable `html_level' to indicate nested `html-begin' requests.
4778         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
4779         (non_interpreted_char_node, token_node, non_interpreted_node): Add
4780         `force_tprint()' method.
4781         (token::next): Handle `\O'.
4782         (do_suppress): Implement it.
4783         (html_begin, html_end, html_image): New functions.
4784         (init_output_requests): Renamed to ...
4785         (init_html_requests): this.
4786         (main): Use it.
4787         (macro::append_str, macro::append_unsigned, macro::append_int): New
4788         methods.
4789         New variable `output_low_mark_miny' to limit minimal value of y.
4790         (reset_output_registers): Use it.
4791         (output_request): Removed.
4792         (get_output_registers): New function.
4793         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
4794         (*_node): Added `force_tprint()' if necessary.
4795         (special_node): New elements `tf' and `get_tfont()'.
4796         (suppress_node): New class.
4797         * src/roff/troff/node.cc:
4798         New global variables `image_no' and `suppress_start_page'.
4799         (real_output_file): New method `is_on()'.
4800         (troff_output_file): New method `start_special(tfont)'.
4801         (troff_output_file::really_print_line): Use `tprint' conditionally.
4802         (real_output_file::print_line): Updated.
4803         (real_output_file::on): Updated.
4804         (*_node): Added `force_tprint()'.
4805         (special_node::special_node): Initializer updated.
4806         (special_node::same, special_node::copy, special_node::tprint_start):
4807         Updated.
4808         (get_reg_int, get_reg_str): New functions.
4809         (suppress_node::*): New methods.
4810         New global variables last_position, last_image_filename;
4811         (min): New inline function.
4812         * src/roff/troff/reg.h, src/roff/troff/request.h,
4813         src/roff/troff/troff.h: Updated.
4815 2001-01-13  Werner LEMBERG  <wl@gnu.org>
4817         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
4818         documentation of `asciify' request.
4820 2001-01-12  Werner LEMBERG  <wl@gnu.org>
4822         * src/roff/troff/input.cc: Move definition of special characters
4823         like `ESCAPE_TILDE' to ...
4824         * src/roff/troff/input.h: New file.
4825         * src/roff/troff/Makefile.sub (HDRS): Add it.
4827         Extending the .asciify request to `unformat' space characters also.
4829         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
4830         to count input space characters.
4831         Update constructors to take care of it.
4832         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
4833         `ESCAPE_SPACE' instead of normal space.
4834         (word_space_node::asciify): New method.
4835         (unbreakable_space_node::asciify): New method.
4836         (word_space_node::merge_space): New method.
4837         * src/roff/troff/env.cc (environment::space_newline,
4838         environment::space): Add code to initialize `num_spaces' (using the
4839         constructor of `word_space_node').
4840         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
4841         Document it.
4843 2001-01-09  Werner LEMBERG  <wl@gnu.org>
4845         * man/groff_char.man: Use table header traps only conditionally.
4847 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
4849         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
4851 2001-01-08  Werner LEMBERG  <wl@gnu.org>
4853         Introducing the `box' and `boxa' requests which are similar to
4854         `di' resp. `da' but omitting a partially filled line (which is
4855         restored after ending the diversion).
4857         * src/roff/troff/div.h (diversion): Add elements to save partially
4858         filled line.
4859         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
4860         partially filled line.
4861         (divert, divert_append): Updated.
4862         (box, box_append): New functions.
4863         (init_div_requests): Use them.
4864         * src/roff/troff/env.h (environment): do_divert() is now a friend.
4865         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4867         * doc/groff.texinfo: Fix documentation of `lf' request.
4869 2000-12-25  Werner LEMBERG  <wl@gnu.org>
4871         * src/roff/troff/troff.man, NEWS: Document `writem' request.
4873 2000-12-21  Werner LEMBERG  <wl@gnu.org>
4875         Ignore `ss' request if in compatibility mode.
4877         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
4878         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
4879         * src/roff/troff/env.cc (space_size): Use it.
4881         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
4882         `ss' request in nroff mode.
4884         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
4885         changes.
4887 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
4889         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
4891 2000-12-13  Werner LEMBERG  <wl@gnu.org>
4893         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
4894         * src/preproc/eqn/neqn.man: Small fixes and additions.
4896 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
4898         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
4899         Fixing typo.
4901         * src/preproc/eqn/neqn.man: New file.
4903         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
4904         negative' warning.
4906         * tmac/e.tmac: Add `T&' macro.
4907         Fix `indent cannot be negative' warning.
4908         * tmac/s.tmac: Fix `indent cannot be negative' warning.
4910 2000-12-07  Werner LEMBERG  <wl@gnu.org>
4912         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
4914 2000-12-06  Werner LEMBERG  <wl@gnu.org>
4916         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
4917         `alloca' symbol .
4919         * MORE.STUFF: Added info about deroff for djgpp.
4921         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
4922         documentation of -rcR switch.
4924 2000-12-03  Werner LEMBERG  <wl@gnu.org>
4926         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
4927         if -rcR=1 (which is now the default in nroff mode), a single, very
4928         long page is created instead of multiple pages: All `ne' and `wh'
4929         requests are put into conditionals; a new macro `an-end' is added to
4930         be called with `em'.
4932         Some other minor cleanups.
4934         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
4936 2000-12-02  Werner LEMBERG  <wl@gnu.org>
4938         Fixing a bug which prevented hyphenation in words followed
4939         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
4941         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
4942         Adding possibly_break_line().
4943         * src/roff/troff/env.h (environment): Make possibly_break_line()
4944         public.
4946         Make `\~' usable in .tr request.
4948         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
4949         (token): Add stretchable_space().
4950         * src/roff/troff/input.cc (token::next, token::delimiter,
4951         token::description, process_input_stack, do_translate,
4952         add_to_node_list, token::process): Use it.
4953         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
4954         for adjusting the space.
4955         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
4956         for stretchable space.
4957         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
4958         (make_node): Add code for stretchable space.
4959         * src/roff/troff/env.cc (environment::add_char): Use it.
4960         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
4961         (get_copy, token::next, transparent_translate, asciify): Use it.
4963         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
4964         doc/groff.texinfo: Updated.
4965         * man/groff.man: Small reorderings.
4967 2000-11-23  Werner LEMBERG  <wl@gnu.org>
4969         * NEWS: Fixes.
4970         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
4971         option.
4972         * src/roff/troff/input.cc (main): Add `config_macro_path' and
4973         `safer_macro_path' to -M option.
4974         * src/roff/troff/troff.man: Fixes.
4976 2000-11-22  Werner LEMBERG  <wl@gnu.org>
4978         Use safer path (except for config files) if -U isn't specified.  Add
4979         a special macro path (without home and current directory) for config
4980         files.  Add home directory to unsafe path for consistency.  Don't
4981         include the home directory in the font path.
4983         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
4984         `macro_path'.
4985         * src/include/macropath.h: Add `config_macrp_path'.
4986         * src/libs/libgroff/fontfile.cc: Fix font path.
4987         * src/roff/troff/input.cc (process_startup_file): Use
4988         `config_macro_path'.
4989         (main): Select unsafe path if -U is given.
4991         * src/preproc/eqn/main.cc (main): Fixing search path for
4992         configuration file.
4993         * src/preproc/eqn/eqn.man: Updated.
4995         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
4996         Updated.
4998         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
4999         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
5000         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
5001         src/devices/grotty/grotty.man: Updated.
5003         * Makefile.in: Fix comments.
5005 2000-11-17  Werner LEMBERG  <wl@gnu.org>
5007         * tmac/safer.tmac: Empty file added (again) for compatibility
5008         reasons.
5009         * tmac/Makefile.sub: Updated.
5011 2000-11-16  Werner LEMBERG  <wl@gnu.org>
5013         * src/devices/grodvi/dvi.cc (main),
5014         src/devices/grohtml2/post-html.cc (main),
5015         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
5016         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
5017         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
5018         (main), src/preproc/html2/pre-html.cc (main),
5019         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
5020         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
5021         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
5022         (main), src/utils/hpftodit/hpftodit.cc (main),
5023         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
5024         (main), src/utils/lookbib/lookbib.cc (main),
5025         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
5026         (main): Use stdout for -v.
5027         * src/roff/groff/groff.cc (run_commands),
5028         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
5029         to make direct printing to stdout possible.
5030         * src/roff/groff/pipeline.h: Updated.
5032         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
5033         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
5034         * src/utils/afmtodit/afmtodit.man: Updated.
5036         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
5037         (version): New function.
5038         (usage): Updated.
5039         * src/utils/addftinfo/addftinfo.man: Updated.
5041         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
5042         Fixing copyright dates.
5044         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
5045         replacing it.
5047         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
5048         version_string.
5050         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
5052 2000-11-15  Werner LEMBERG  <wl@gnu.org>
5054         In all programs, make -v return immediately with exit status 0 to
5055         be compliant with the GNU standard.
5057         * src/devices/grodvi/dvi.cc (main),
5058         src/devices/grohtml2/post-html.cc (main),
5059         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
5060         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
5061         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
5062         (main), src/preproc/html2/pre-html.cc (main),
5063         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
5064         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
5065         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
5066         (main): Implement it.
5067         * NEWS: Updated.
5069         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
5070         and postprocessors to the -v option.
5072         * src/roff/grog/grog.pl: Implement -v.
5073         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
5074         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
5076         * src/roff/nroff/nroff.sh: Implement -v.
5077         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
5078         * src/roff/nroff/nroff.man: Updated.
5079         
5080         * src/preproc/eqn/main.cc (main): Fix comment typo.
5082         * MORE.STUFF: Added info about djgpp port of grap.
5084 2000-11-14  Werner LEMBERG  <wl@gnu.org>
5086         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
5087         mode (or rather, implemented non-compatibility mode).
5088         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
5090         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
5091         replacing it -- we don't find gxditview otherwise.
5092         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
5094         * src/preproc/pic/depend: Removed.  Unnecessary.
5096         Implemented dummy keyword `solid' in pic for compatibility with
5097         AT&T pic.
5099         * lex.cc (lookup_keyword): Added `solid'.
5100         * pic.y: Added SOLID with dummy rule.
5101         * pic.cc, pic_tab.h: Regenerated.
5102         * doc/pic.ms: Updated.
5104 2000-11-13  Werner LEMBERG  <wl@gnu.org>
5106         For security reasons, don't use the current directory but the home
5107         directory while searching and scanning troffrc and troffrc-end.
5108         Similarly, replace the current directory with the home directory
5109         in the font path.
5111         * Makefile.in (fontpath, tmacpath): Remove current directory.
5113         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
5114         two parameters `add_home' and `add_current'.
5115         (search_path::~search_path, search_path::command_line_dir,
5116         search_path::open_file): Remove tests for `dirs' being zero.
5117         * src/include/searchpath.h: Adjust.
5118         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
5119         `safer_macro_path'.
5120         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
5122         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
5123         * src/roff/troff/input.cc: Use `mac_path', initialized with
5124         `macro_path'.
5125         (process_startup_file): Set `mac_path' to `safer_macro_path'.
5126         * src/roff/troff/env.cc: Use `mac_path'.
5128         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
5130         * NEWS, man/roff.man, src/roff/troff/troff.man,
5131         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
5132         Updated.
5134 2000-11-12  Werner LEMBERG  <wl@gnu.org>
5136         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
5138         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
5139         * configure.in: Fix typo in comment.
5140         * configure: Regenerated.
5142         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
5143         copyright dates.
5145 2000-11-08  Werner LEMBERG  <wl@gnu.org>
5147         Add system tmac directory (/usr/local/lib/groff/site-tmac).
5149         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
5150         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
5151         $(systemtmacdir).
5152         Use @libdir@.
5153         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
5154         * tmac/Makefile.sub (install_data): Create
5155         $(systemtmacdir) and $(localtmacdir).
5156         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
5157         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
5158         NEWS, doc/groff.texinfo: Updated and minor fixes.
5160         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
5161         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
5162         $(systemtmacdir) since the wrapper files are platform-dependent.
5164 2000-11-01  Werner LEMBERG  <wl@gnu.org>
5166         * doc/groff.texinfo: Fix typo.
5168 2000-10-26  Werner LEMBERG  <wl@gnu.org>
5170         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
5171           tmac.doc.old -> doc-old.tmac
5172           tmac.an.old  -> an-old.tmac
5174         * tmac/tmac.*: Moved to ...
5175         * tmac/*.tmac: this.
5176         * tmac/man.local: Fix comment.
5177         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
5178         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
5179         Added some `FILES' sections.  More use of @...@ directives.  Other
5180         minor updates.
5181         * arch/djgpp/README, font/devutf8/NOTES: Updated.
5182         * doc/homepage.ms, doc/groff.texinfo: Updated.
5183         * man/groff.man, man/roff.man: Updated.
5184         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
5185         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
5186         src/devices/grotty/grotty.man: Updated.
5187         * src/preproc/pic/pic.man: Updated.
5188         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
5189         instead of -mdoc.old.
5190         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
5191         * src/roff/nroff/nroff.man: Updated.
5192         * NEWS: Updated.
5194         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
5196         * tmac/mm.diff: Removed -- it has no use now since the mm package
5197         is part of groff.
5199         * tmac/*: Removed trailing spaces.
5201         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
5202         the tmac subdirectory also).
5204         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
5205         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
5206         stuff since it is no longer needed.
5208         * README, PROBLEMS: Updated.
5210 2000-10-25  Werner LEMBERG  <wl@gnu.org>
5212         Invert current behaviour: Search first FOOBAR.tmac, then
5213         tmac.FOOBAR.
5215         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
5216         (open_mac_file, macro_source): Implement it.
5217         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
5218         doc/groff.texinfo, NEWS: Document it.
5220         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
5221         Small documentation improvements.
5223         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
5224         subdirectory also).
5226         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
5228 2000-10-24  Werner LEMBERG  <wl@gnu.org>
5230         Add local tmac directory (groff/site-tmac).
5232         * Makefile.in: Add $(localtmacdir).
5233         (uninstall_dirs): Add $(localtmacdir).
5234         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
5235         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
5236         in $(localtmacdir).  Create $(localtmacdir).
5237         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
5238         Updated and minor fixes.
5240         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
5242         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
5244 2000-10-23  Werner LEMBERG  <wl@gnu.org>
5246         Move hyphen.us to tmac directory.
5248         * src/roff/troff/hyphen.us: Removed.
5249         * src/tmac/hyphen.us: Added.
5250         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
5252         Change installation structure for data files from .../groff/... to
5253         .../groff/<version><revision>/... to be conform with other GNU
5254         programs.
5256         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
5257         doc/Makefile: Implement it.
5258         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
5259         * configure: Updated.
5260         * arch/djgpp/README, font/devutf8/NOTES: Use it.
5261         * NEWS: Document it.
5262         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
5263         @MACRODIR@ instead of hard-coded directories.
5265 2000-10-22  Werner LEMBERG  <wl@gnu.org>
5267         Implement $GROFF_BIN_PATH environment variable (which defaults to
5268         $bindir) used for child programs of groff and similar wrappers.
5270         * gendefs.sh: Improve documentation.
5271         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
5272         src/preproc/eqn/Makefile.sub (neqn),
5273         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
5274         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
5275         $GROFF_BIN_PATH.
5276         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
5277         $GROFF_PATH__ (the latter for communication with troff).
5278         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
5279         set.
5280         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
5281         doc/groff.texinfo: Document it.
5283         * doc/groff.texinfo: Improve documentation of troff's -a option.
5285 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
5287         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
5288         non-intrusive eol marker.
5289         (troff_output_file::determine_line_limits): New function.
5290         (troff_output_file::draw): Use it.
5291         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
5292         output_pending_lines() instead of output_line().
5293         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
5294         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
5295         createImage): Small fixes.
5296         
5297 2000-10-14  Werner LEMBERG  <wl@gnu.org>
5299         Replace tmac.safer with a real secure solution.
5301         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
5302         system_request, pipe_output): Disable requests if in safer mode.
5303         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
5304         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
5305         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
5306         doc/groff.texinfo, src/roff/groff/groff.man,
5307         src/roff/troff/troff.man, arch/djgpp/README: Updated.
5309         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
5310         (resource_manager::output_prolog): Replace setenv() with putenv().
5312 2000-10-09  Werner LEMBERG  <wl@gnu.org>
5314         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
5315         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
5316         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
5317         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
5318         compilation errors with some compilers.  It seems that this code
5319         is no longer necessary -- if yes, it is easy to add some #ifdef's
5320         for that particular old-fashioned compiler.
5322         * MORE.STUFF: Added info about Meta-tbl.
5324         * doc/groff.texinfo: Added more info about `.if "..."..."'.
5326 2000-10-07  Werner LEMBERG  <wl@gnu.org>
5328         Adding a new escape sequence \B'...': If the string between
5329         the delimiters is a valid numeric expression, return the character
5330         `1', and `0' otherwise.  This is an analogon to \A.
5332         * src/roff/troff/input.cc (do_expr_test): Implement it.
5333         (token::next): Use it.
5334         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
5336         * tmac/tmac.trace: Made independent from escape character.
5338 2000-10-06  Werner LEMBERG  <wl@gnu.org>
5340         Adding a new request .dei: define indirect.  The first and second
5341         parameter of .dei are taken from string registers instead directly;
5342         this very special request is needed to make tmac.trace independent
5343         from the escape character (which might even be disabled).
5345         * src/roff/troff/input.cc (do_define_macro): Implement it.
5346         (define_macro_indirect): New function.
5347         (init_input_requests): Use it.
5349         Adding two requests .ecs and .ecr: Save and restore the escape
5350         character.  These two requests are needed to make tmac.trace
5351         independent from the escape character (which might even be
5352         disabled).
5354         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
5355         Implement it.
5356         (init_input_requests): Use it.
5358         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
5360 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
5362         Adding a new option -P and new environment variable GROPS_PROLOGUE
5363         to grops, selecting a different prologue file (minor modifications
5364         by WL).
5366         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
5367         src/devices/grops/ps.cc (main): Implement it.
5368         * src/devices/grops/grops.man, NEWS: Document it.
5370 2000-09-22  Werner LEMBERG  <wl@gnu.org>
5372         * INSTALL: Add info about selecting paper format.
5374 2000-09-21  Werner LEMBERG  <wl@gnu.org>
5376         * src/roff/troff/input.cc (main): Fixing compiler warning.
5377         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
5378         strings.h from the former to the latter.
5379         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
5380         stuff from the former to the latter.
5382 2000-09-11  Werner LEMBERG  <wl@gnu.org>
5384         Implementing two new requests .tm1 and .tmc: The former is similar
5385         to .tm but can output leading spaces; its syntax is similar to
5386         defining a string, i.e., a `"' can be used to mark the beginning of
5387         the string to be written to stderr: `.tm1 " test'.  The latter is
5388         similar to .tm1 but doesn't write out a final newline character.
5390         * src/roff/troff/input.cc (terminal1, terminal_continue,
5391         do_terminal): New functions.
5392         (init_input_requests): Use them.
5393         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
5395 2000-09-09  Werner LEMBERG  <wl@gnu.org>
5397         * tmac/groff_mdoc.samples.man: Small fixes.
5399 2000-09-08  Werner LEMBERG  <wl@gnu.org>
5401         * tmac/groff_mdoc.man: Fixing typo.
5403 2000-09-02  Werner LEMBERG  <wl@gnu.org>
5405         Implementing a .nop request which does nothing.
5407         * src/roff/troff/input.cc (nop_request): New function.
5408         (init_input_requests): Use it.
5409         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
5411 2000-09-01  Werner LEMBERG  <wl@gnu.org>
5413         * doc/groff.texinfo: Added some comments.
5415 2000-08-30  Werner LEMBERG  <wl@gnu.org>
5417         * src/roff/troff/TODO: Updated.
5419 2000-08-25  Werner LEMBERG  <wl@gnu.org>
5421         * doc/groff.texinfo: Fix comment how to compile the DVI file.
5423 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
5425         * font/devps/generate/Makefile (SHELL): Define explicitly to
5426         "/bin/sh", for non-Unix platforms.
5427         (extraclean): Use a more portable "" quoting instead of a
5428         backslash (which doesn't work on DOS/Windows).
5429         
5430         * font/devlj4/generate/Makefile (extraclean): Ditto.
5432         * font/devdvi/generate/Makefile (extraclean): Ditto.
5434 2000-08-25  Werner LEMBERG  <wl@gnu.org>
5436         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
5437         src/roff/troff/troff.man: Document Eli's latest changes.
5439 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
5441         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
5442         macro file names of the form NAME.tmac as well as tmac.NAME.
5444 2000-08-25  Werner LEMBERG  <wl@gnu.org>
5446         * src/include/posix.h: Remove definition of FILENAME_MAX.
5448         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
5449         `sys_fatal' and `stop' function().
5451         * test-groff: Updated.
5453 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
5455         Added the new troff command .output <arg> to suppress output (while
5456         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
5457         registers (for passing the output dimensions to the output device).
5459         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
5460         parameter.
5461         * src/roff/troff/node.h, src/roff/troff/node.cc
5462         (troff_output_file::really_print_line,
5463         ascii_output_file::really_print_line,
5464         supress_output_file::really_print_line): Use `width' parameter.
5465         (troff_output_file::really_on, troff_output_file::really_off,
5466         output_file::on, output_file::off, real_output_file::on,
5467         real_output_file::off, real_output_file::really_on,
5468         real_output_file::really_off): New functions.
5469         (real_output_file:public output_file): New variable `output_on'.
5470         (real_output_file::begin_page, real_output_file::copy_file,
5471         real_output_file::transparent_char, real_output_file::print_line):
5472         Use it.
5473         (real_output_file::print_line): Use check_output_limits.
5474         * src/roff/troff/reg.h, src/roff/troff/request.h,
5475         src/roff/troff/input.cc (assign_registers): New function to remove
5476         two `goto's.
5477         (do_ps_file): Use it.
5478         (check_output_limits, reset_output_registers, output_request,
5479         init_output_requests): New functions.
5480         (init_input_requests): Updated.
5482         Added new grohtml2 device and html2 preprocessor (coding
5483         not yet finished) which will eventually replace grohtml.
5485         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
5486         Updated.
5487         * src/include/htmlindicate.h, src/include/htmlindicate
5488         (html_begin_suppress, html_end_suppress): New functions.
5489         * src/preproc/tbl/main.cc: Use it.
5490         * src/roff/groff/groff.cc: Add support for html2 device (which will
5491         automatically invoke the html2 preprocessor).
5492         * src/roff/troff/input.cc (is_html2): New variable.
5493         * src/roff/troff/troff.h, src/roff/troff/env.h,
5494         src/roff/troff/env.cc (environment::add_html_tag): New function
5495         (uses `is_html2').
5496         (environment::do_break): Use it.
5497         * font/devhtml2/*: New files.
5498         * src/devices/grohtml2: New device.
5499         * src/preproc/html2: New preprocessor.
5500         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
5502 2000-08-23  Werner LEMBERG  <wl@gnu.org>
5504         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
5506 2000-08-22  Werner LEMBERG  <wl@gnu.org>
5508         * src/include/lib.h: Provide a fix for IRIX to not include
5509         groff-getopt.h.
5511 2000-08-18  Werner LEMBERG  <wl@gnu.org>
5513         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
5514         since some non-GNU sed programs can't handle null regexps.
5515         * configure, src/preproc/eqn/Makefile.sub,
5516         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
5518         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
5519         bug (string.h and strings.h are both needed according to latest
5520         POSIX standard).
5522         * MORE.STUFF: Added info about unroff and troffcvt.
5524 2000-08-08  Werner LEMBERG  <wl@gnu.org>
5526         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
5527         used before -ms.
5529         * tmac/tmac.man.old: Remove unused number register.
5531         * tmac.doc: Minor documentation fix.
5533 2000-08-07  Paul Eggert  <eggert@twinsun.com>
5535         * src/roff/groff/pipeline.c (is_system_shell):
5536         Fix typo: "monocased_shell" no longer exists.
5538 2000-08-07  Paul Eggert  <eggert@twinsun.com>
5540         Remove FILENAME_MAX limits.
5542         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
5543         that the argument length is less than FILENAME_MAX.
5544         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
5545         Use struct hack to allocate and free file name.
5546         (struct xtmpfile_list): fname is now part of the structure,
5547         not a pointer to another string.
5549 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
5551         * src/include/posix.h: Add a default value for FILENAME_MAX.
5553 2000-08-06  Paul Eggert  <eggert@twinsun.com>
5555         Add support for new BSD-style man pages (with ".Dd" instead of
5556         ".TH"), so that "groff -man" understands both styles, even
5557         when running "groff -man" on a host whose system man page
5558         macros don't support ".Dd".
5560         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
5561         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
5562         in case the system man macros don't define Dd or TH.
5564         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
5565         * tmac/tmac.an: New one-line file.
5566         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
5568 2000-08-06  Werner LEMBERG  <wl@gnu.org>
5570         * src/roff/troff/troff.man: Fixing typos.
5572 Version 1.16.1 released
5573 =======================
5575 2000-07-31  Werner LEMBERG  <wl@gnu.org>
5577         Preparing release 1.16.1.
5579         * REVISION: Revision number set to 1.
5580         * MORE.STUFF: Added info about port to DOS.
5581         * NEWS, win32-diffs: Updated.
5583         * src/include/nonposix.h: Remove first line -- this file is used
5584         in C also.
5586         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
5587         link to it.
5589 2000-07-30  Werner LEMBERG  <wl@gnu.org>
5591         * doc/texinfo.tex: Update to latest version.
5593 2000-06-28  Paul Eggert  <eggert@twinsun.com>
5595         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
5596         commands that fail.  Don't assume that "export a=b" is valid shell
5597         syntax.  This is needed for Solaris 2.5.1.
5599         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
5600         comment about missing Solaris headers.
5602         * PROBLEMS: Add section about problems with Sun Make and VPATH.
5604 2000-06-25  Werner LEMBERG  <wl@gnu.org>
5606         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
5607         SET_BINARY().
5609         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
5611         * win32-diffs: Updated.
5612         * README.WIN32: Added CRs to make all Windows editors happy.
5614         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
5615         src/roff/groff/pipeline.c).
5617 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
5619         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
5620         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
5622 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
5624         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
5625         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
5626         are binary files.
5627         (main): Support non-Posix systems with several different styles of
5628         slash characters in file names.
5630         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
5631         (main) [SET_BINARY]: Switch stdin into binary mode.
5633         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
5634         (main): Support file names with several possible slash-type
5635         characters, as given by DIR_SEPS[] in nonposix.h.
5636         (main) [__MSDOS__]: If renaming the temporary index file fails
5637         because it has more than one dot in its trunk, replace the dot
5638         with an underscore and try again.
5639         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
5640         Newline.
5641         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
5643         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
5644         (File::File): Open the input file in binary mode.  Strip CR
5645         characters from each CR-LF pair.
5646         (xbasename): Support file names with several possible slash-type
5647         characters, as given by DIR_SEPS[] in nonposix.h.
5649         * src/include/Makefile.sub (HDRS): Add nonposix.h.
5651         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
5652         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
5653         [!_POSIX_VERSION]: Define for traditional Unix systems.
5654         (real_output_file::real_output_file): Remove the MSVC-specific
5655         call to popen, use instead POPEN_WT, appropriately defined on
5656         nonposix.h.  #include nonposix.h.
5657         (real_output_file::~real_output_file): Remove the MSVC-specific
5658         call to pclose, a suitable macro is now defined on nonposix.h.
5659         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
5660         and WEXITSTATUS instead of assuming traditional Unix
5661         interpretation of the status returned by pclose.
5663         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
5664         call to popen, use POPEN_RT instead (appropriately defined on
5665         nonposix.h).  #include nonposix.h.
5666         (ps_bbox_request): Open the PostScript file in binary mode.
5667         Close the file after processing it.
5668         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
5669         nonposix.h.
5671         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
5672         A version of run_pipeline that doesn't use `fork'.
5673         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
5674         (system_shell_name, system_shell_dash_c)
5675         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
5676         the ugliness of testing DOS/Windows file names for equality, and
5677         support both stock shells and ports of Unix shells.
5679         * src/roff/groff/groff.cc: #include nonposix.h.
5680         (BSHELL): Definition moved to nonposix.h.
5681         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
5682         instead of a literal "-c".
5683         (xbasename): Support file names with several possible slash-type
5684         characters, as given by DIR_SEPS[] in nonposix.h.
5685         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
5686         of literal strings.
5688         * src/preproc/soelim/soelim.cc: #include nonposix.h.
5689         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
5691         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
5692         pic_tab.h.
5694         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
5696         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
5697         eqn_tab.h.
5699         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
5701         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
5702         P_tmpdir is defined, use it instead of the literal "/tmp".
5703         (remove_tmp_files, add_tmp_file): New functions.
5704         (xtmpfile): Record temporary files and register an atexit function
5705         to delete them explicitly, instead of relying on the OS to do
5706         that, which doesn't work on non-Unix systems.
5708         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
5709         (search_path::search_path): Use PATH_SEP instead of a literal
5710         colon.
5711         (search_path::command_line_dir): Ditto.
5712         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
5713         to support non-Posix systems.
5715         * src/libs/libbib/search.cc: #include nonposix.h.
5716         (search_list::add_file): Open the file in binary mode.
5718         * src/libs/libbib/linear.cc: #include nonposix.h.
5719         (file_buffer::load): Remove \r characters preceding \n from the
5720         loaded buffer.
5722         * src/libs/libbib/index.cc: #include nonposix.h.
5723         (make_index_search_item): Open index_filename in O_BINARY mode.
5724         (index_search_item_iterator::get_tag): Ditto.  Remove \r
5725         characters before \n characters.
5726         (index_search_item::check_files): Open files in binary mode.
5727         (index_search_item::munge_filename): Support DOS-style file names
5728         with backslashes and drive letters, use IS_ABSOLUTE.
5730         * src/devices/grops/ps.cc: #include nonposix.h.
5731         (main) [SET_BINARY]: Switch stdout to binary mode.
5733         * src/devices/grolj4/lj4.cc: #include nonposix.h.
5734         (main) [SET_BINARY]: Switch stdout to binary mode.
5736         * src/devices/grolbp/lbp.cc: #include nonposix.h
5737         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
5739         * src/devices/grodvi/dvi.cc: #include nonposix.h.
5740         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
5741         nonposix.h).
5742         (main) [SET_BINARY]: Switch stdout to binary mode.
5743         [_MSC_VER]: Remove an explicit call to _setmode.
5745         * src/include/nonposix.h: New file.
5747         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
5748         operation when building with DJGPP.
5749         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
5750         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
5751         ENVSETUP.
5753         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
5754         MS-DOS.
5755         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
5756         etc. can include a semi-colon on DOS/Windows.
5757         (depend.temp): Use depend1.temp instead of depend.temp1, to
5758         prevent files from overerwiting each other on 8+3 filesystems.
5760         * gendef.sh (t): Change definition to work with DOS/Windows.
5762         doc/groff.texinfo: Apart of some typo corrections, I also changed
5763         some index entris, to make them more non-ambiguous, and also put
5764         @ignore around some parts that are not yet written, to allow the
5765         Info output be readable.
5767 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
5769         Replaced specific checks for function declarations with a generic
5770         routine taken from GNU bfd.
5772         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
5773         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
5774         * configure.in: Use it.
5775         * src/devices/grolbp/lbp.cc, src/include/lib.h,
5776         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
5777         src/roff/groff/groff.cc: Use it.
5778         * Makefile.in, configure: Updated.
5780 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
5782         * src/devides/grolbp/lbp.h: Removed unused variables.
5784 2000-05-31  Keith Thompson  <kst@sdsc.edu>
5786         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
5787         strncasecmp().
5789 2000-05-31  Werner LEMBERG  <wl@gnu.org>
5791         * aclocal.m4 (GROFF_SRAND): New function to test the return value
5792         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
5793         * configure.in: Use it.
5794         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
5795         * configure, Makefile.in: Updated.
5797         * configure.in: Add test for strncasecmp().
5798         * src/include/lib.h: Use it.
5800 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
5802         * src/preproc/grn/Makefile.sub: Add MLIB.
5804 2000-05-29  Nix  <nix@esperi.demon.co.uk>
5806         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
5808 2000-05-29  Werner LEMBERG  <wl@gnu.org>
5810         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
5812         * PROBLEMS: Small update.
5814         * src/devices/grolbp/lbp.cc: Various small fixes.
5816 2000-05-28  Keith Thompson  <kst@sdsc.edu>
5818         * src/roff/nroff/nroff.sh: Fix main loop syntax.
5820         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
5822 2000-05-25  Werner LEMBERG  <wl@gnu.org>
5824         * man/roff.man: Removed unused macro.
5826 2000-05-24  Werner LEMBERG  <wl@gnu.org>
5828         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
5829         This is needed e.g. if you do
5830         `make distclean; ./configure; make dist'.
5832 Version 1.16 released
5833 =====================
5835 2000-05-23  Werner LEMBERG  <wl@gnu.org>
5837         Adding font CWI (constant width italic) to devdvi.
5839         * font/devdvi/CWI: New file.
5840         * font/devdvi/generate/Makefile: Add generating rule.
5841         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
5842         tmac/tmac.dvi: Use it.
5843         * NEWS: Announce it.
5845         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
5846         * font/devlj4/generate/Makefile: Cosmetic changes only.
5848         * man/groff.man: Removed most of the redundant description of
5849         special characters (which is in groff_char.man).  Added font
5850         translation CB->CR for devdvi.  Other minor fixes.
5852         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
5853         (registered) symbols.
5855 2000-05-22  Werner LEMBERG  <wl@gnu.org>
5857         * doc/Makefile: Added rule for creating info files.
5859         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
5860         AMS font metrics.
5861         * font/devdvi/generate/Makefile: Fixed dependencies.
5863         * font/devps/*: Regenerated.  Heavy changes for Bookman and
5864         NewCentury Schoolbook!
5865         * font/devps/generate/afmname: Will now run with GNU awk.
5866         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
5867         * font/devps/generate/Makefile: Cosmetic changes only.
5869 2000-05-21  Werner LEMBERG  <wl@gnu.org>
5871         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
5872         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
5873         `.SS' now produces a heading with a smaller size than `.SH'. 
5874         Completely formatted.
5875         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
5877         * man/groff.man: Improved table appearance.  Use of `eo' request
5878         to reduce number of doubled backslashes in macro definitions.
5879         Replacing `\e' with `\(rs'.  Other minor fixes.
5881         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
5882         to have correct line number.
5884         * INSTALL: Small improvement.
5886 2000-05-20  Bernd Warken  <bwarken@mayn.de>
5888         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
5889         WL).
5891 2000-05-19  Bernd Warken  <bwarken@mayn.de>
5893         * man/groff.man: Complete update (with a lot of corrections by WL).
5895 2000-05-18  Werner LEMBERG  <wl@gnu.org>
5897         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
5899         * font/*/*: Implement it.
5900         * man/groff_char.man, NEWS: Document it.
5902         * src/include/unix.h: Removed.  It isn't used.
5904         * doc/groff.texinfo: Slight improvements.
5906 2000-05-17  Werner LEMBERG  <wl@gnu.org>
5908         * README, win32-diffs: Small fixes and improvements.
5910 2000-05-16  Werner LEMBERG  <wl@gnu.org>
5912         * FDL: New file (the Free Documentation License version 1.1).
5914         * doc/groff.texinfo: Added many start-up values for gtroff.
5915         Some structural improvements of the source code.
5917 2000-05-15  Werner LEMBERG  <wl@gnu.org>
5919         * src/roff/troff/input.cc: Added small comment about troffrc-end.
5920         * src/roff/troff/troff.man: Added info about troffrc-end.
5922 2000-05-14  Werner LEMBERG  <wl@gnu.org>
5924         * Makefile.in (EXTRADIRS): Fix typos.
5925         (dist): Handle deletion of old .tar.gz file correctly.
5926         (DISTDIRS): Include all tty output devices.
5928         * doc/groff.texinfo: Adding more cross references; countless other
5929         fixes.
5931 2000-05-13  Werner LEMBERG  <wl@gnu.org>
5933         * MORE.STUFF: Added Robert Marks's utilities.
5935 2000-05-12  Werner LEMBERG  <wl@gnu.org>
5937         Added win32 port contributed by Blake McBride
5938         <blake@florida-software.com>.
5940         * README.WIN32, win32-diffs: New files.
5941         * NEWS: Updated.
5943         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
5944         (tmove, tmove2): Added parentheses to avoid compiler warnings.
5945         (change): Removed unused variables.
5947         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
5948         (savebounds): Changed return value from `int' to `void'.
5949         * src/preproc/grn/hdb.cc: Ditto.
5951         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
5952         final backslash in comment to avoid compiler warning.
5954         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
5956         * doc/groff.texinfo: More fixes.
5958 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
5960         * tmac/tmac.doc: Documentation fix.
5962 2000-05-11  Werner LEMBERG  <wl@gnu.org>
5964         * doc/groff.texinfo: Reading the source code shows up a lot of
5965         omissions and incorrect data...  More conversion to @Deffn macros.
5967 2000-05-10  Werner LEMBERG  <wl@gnu.org>
5969         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
5970         dependency.
5972         * src/roff/troff/request.h: Removing unused `no_break_flag'.
5974 2000-05-09  Werner LEMBERG  <wl@gnu.org>
5976         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
5977         improvements.
5979         * doc/groff.texinfo: Extended history section.  More conversion to
5980         @Deffn macros.  More .tr documentation.
5982 2000-05-07  Werner LEMBERG  <wl@gnu.org>
5984         * doc/groff.texinfo: Completed tab section.  Added info about
5985         fields.
5987 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
5989         * PROBLEMS: Describe configure script fix for OS/390 Unix.
5991 2000-05-05  Werner LEMBERG  <wl@gnu.org>
5993         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
5994         LaTeX 2e).
5995         * NEWS: Document it.
5997         * man/troff.man: Minor optical improvements.
5999 2000-05-03  Werner LEMBERG  <wl@gnu.org>
6001         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
6003         * font/*/*: Implement it.
6004         * man/groff_char.man, NEWS: Document it.
6006 2000-05-02  Werner LEMBERG  <wl@gnu.org>
6008         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
6009         expansion.
6010         * NEWS: Document the three new man pages.
6012         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
6013         * configure: Updated.
6015         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
6017 2000-05-01  Werner LEMBERG  <wl@gnu.org>
6019         Added grap support to grog.
6021         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
6022         * src/roff/grog/grog.man: Document it.
6024         * doc/groff.texinfo, NEWS: Add info about grap support.
6026         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
6027         (with slight fixes by me).
6029         * tmac/groff_tmac.man: New file documenting tmac mechanism.
6030         * tmac/Makefile.sub: Add groff_tmac.man.
6031         * man/roff.man: New file giving overview of roff system.
6032         * man/troff.man: A short reference of troff.
6033         * man/Makefile.sub: Add roff.man and troff.man.
6035 2000-04-30  Werner LEMBERG  <wl@gnu.org>
6037         Added grap support to groff.
6039         * src/roff/groff/groff.cc: Implement it.
6040         * src/roff/groff/groff.man: Document it.
6042         * src/devices/grotty/grotty.man: Add cp1047 device.
6043         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
6044         Ditto.
6045         * src/roff/groff/groff.man: Ditto.
6046         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
6047         * doc/groff.texinfo: Ditto.
6049         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
6050         for cp1047.
6052 2000-04-29  Werner LEMBERG  <wl@gnu.org>
6054         * man/groff_char.man: Add `pc' glyph.
6055         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
6056         * tmac/tmac.tty: Add `pc' glyph.
6057         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
6058         we use cp1047 output device.
6060         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
6061         there are still hardcoded latin1->unicode values in utf8's font
6062         definition files.
6063         * configure: Updated.
6064         * NEWS: Minor clarification.  Updated.
6066         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
6067         Unix.
6069 2000-04-28  Werner LEMBERG  <wl@gnu.org>
6071         Adding EBCDIC code page 1047.
6073         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
6074         font/devcp1047/DESC.proto: New files.
6076         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
6077         either ascii/latin1 or cp1047.
6078         * Makefile.in: Use it.
6079         * configure: Updated.
6081         Replacing and/or adding `md' (mathdot) glyph with `pc'
6082         (periodcentered) in all text fonts.
6084         * font/*/*: Change it.
6086 2000-04-27  Werner LEMBERG  <wl@gnu.org>
6088         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
6090         * configure.in: Add check for strings.h.
6091         * src/include/driver.h: Use HAVE_STRINGS_H.
6092         * src/devices/grolbp/lpb.cc: Remove string.h.
6094         * src/include/groff-getopt.h: New file.  It will be used instead of
6095         getopt.h (to be included in lib.h) to avoid endless problems with
6096         picky C++ compilers.
6097         * src/include/lib.h: Use groff-getopt.h.
6098         * src/include/Makefile.sub: Updated.
6100         * configure: Updated.
6101         * Makefile.in: Updated.
6103         * NEWS: Mention EBCDIC support.
6105 2000-04-26  Werner LEMBERG  <wl@gnu.org>
6107         * TODO: Some additions.
6109 2000-04-25  Werner LEMBERG  <wl@gnu.org>
6111         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
6112         of mso request.
6114 2000-04-23  Werner LEMBERG  <wl@gnu.org>
6116         * src/roff/troff/troff.man: Minor fixes.
6118 2000-04-22  Werner LEMBERG  <wl@gnu.org>
6120         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
6121         `.T' string register and the incompatible definition of the `.T'
6122         number register (compared to Unix troff).
6124         * man/groff_char.man: Add some missing characters.
6125         * font/devutf8/NOTES: Update.
6127 2000-04-21  Werner LEMBERG  <wl@gnu.org>
6129         * src/include/htmlindicate.h, src/include/lib.h,
6130         src/include/posix.h: Fix copyright.
6132         * src/include/Makefile.sub: Update.
6134 2000-04-20  Werner LEMBERG  <wl@gnu.org>
6136         * src/roff/troff/input.cc (input_char_description): Removing
6137         superfluous space char.
6139         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
6141         * doc/groff.texinfo: Document EBCDIC.
6143 2000-04-19  Werner LEMBERG  <wl@gnu.org>
6145         Introducing `shc' as the glyph name for the soft hyphen character.
6147         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
6148         font/devlatin1/R.proto: Use it.
6150         * NEWS: Updated.
6152 2000-04-18  Werner LEMBERG  <wl@gnu.org>
6154         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
6155         dependency on ASCII order.
6157 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
6159         * src/libs/libgroff/illegal.c: Added EBCDIC table.
6160         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
6162         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
6163         to increase portability.
6165 2000-04-15  Werner LEMBERG  <wl@gnu.org>
6167         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
6168         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
6169         the generic `\n' if under OS/390 Unix.
6171         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
6173         * configure: Regenerated.
6175 2000-04-14  Werner LEMBERG  <wl@gnu.org>
6177         * doc/groff.texinfo: More conversions to @Deffn.
6179 2000-04-12  Werner LEMBERG  <wl@gnu.org>
6181         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
6182         with `:'.
6184         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
6186 2000-04-10  Werner LEMBERG  <wl@gnu.org>
6188         * doc/groff.texinfo: More conversions to @Deffn.
6190 2000-04-08  Werner LEMBERG  <wl@gnu.org>
6192         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
6193         Updated to latest version (glibc 2.1.3).
6195 2000-04-07  Werner LEMBERG  <wl@gnu.org>
6197         * doc/Makefile (clean): Include more index files.
6198         Add rule texinfo->dvi.
6200 2000-04-05  Werner LEMBERG  <wl@gnu.org>
6202         * doc/groff.texinfo: Added new index `op' for operators.  More
6203         info on end of sentence characters.  More use of @Deffn.
6205 2000-03-30  Werner LEMBERG  <wl@gnu.org>
6207         * */*.man: Adding a note that a whitespace can be inserted between
6208         a command line option and its parameter -- we are using GNU getopt.
6210         * src/roff/groff/groff.man: Add example of `-m mandoc'.
6212 2000-03-28  Werner LEMBERG  <wl@gnu.org>
6214         Correct anachronism of calling the man macro file with `-man'
6215         instead of `-m man' etc.
6217         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
6218         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
6219         load tmac.<package>.
6221         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
6223         * NEWS: Updated.
6225         * doc/groff.texinfo: Updated.
6227         * tmac/groff_man.man: Copyright added.
6229 2000-03-27  Werner LEMBERG  <wl@gnu.org>
6231         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
6232         typeset the request resp. escape name with a tt font -- due to a
6233         bug in texinfo.tex it is necessary to use the `-e' switch with
6234         texi2dvi.
6236         Improving info about usage of groff units.
6238         Other minor fixes.
6240 2000-03-20  Werner LEMBERG  <wl@gnu.org>
6242         * doc/groff.texinfo: Added section about man macro package
6243         (I've basically taken groff_man.man).  Introducing new indices `ma'
6244         for macros/strings and `gl' for glyph names.  Other minor fixes.
6246         * tmac/groff_man.man: Fixed some typos.
6248 2000-03-19  Werner LEMBERG  <wl@gnu.org>
6250         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
6251         Other minor fixes.
6253         * doc/texinfo.tex: New file.
6255 2000-03-18  Werner LEMBERG  <wl@gnu.org>
6257         * doc/groff.texinfo: Improved section on number registers.  Other
6258         minor updates.
6260 2000-03-16  Werner LEMBERG  <wl@gnu.org>
6262         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
6263         synopsis.
6265         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
6266         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
6267         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
6268         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
6270         * src/preproc/grn/grn.man: Better synopsis; added copyright.
6272         * src/roff/grog/grog.man: Updated copyright date.
6274 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
6276         * configure.in: Added test for strdup.
6278         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
6279         is available.
6281         Replaced dynamic allocation of arrays `[...]' with `new' operator.
6283         Other minor fixes.
6285 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
6287         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
6289 2000-03-11  Werner LEMBERG  <wl@gnu.org>
6291         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
6292         compilers silent.
6293         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
6294         * src/include/lib.h: Remove some spaces.
6296 2000-03-10  Werner LEMBERG  <wl@gnu.org>
6298         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
6299         initializers from arguments (some compilers don't like this).
6301 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
6303         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
6304         used by pic and eqn to tell grohtml where the graphic regions start
6305         and end.
6306         * src/libs/libgroff/Makefile.sub: Use it.
6307         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
6308         graphic_start() and graphic_end() from htmlindicate.cc.
6310 2000-03-09  Werner LEMBERG  <wl@gnu.org>
6312         * tmac/tmac.safer: Will now work correctly in compatibility mode.
6313         * tmac/groff_man.man: More fixes.
6315 2000-03-08  Werner LEMBERG  <wl@gnu.org>
6317         * doc/Makefile: Added texput.log to the `clean' target.
6318         * doc/groff.texinfo: Added info about delimiters for escapes.
6320 2000-03-08  Bernd Warken  <bwarken@mayn.de>
6322         * src/preproc/pic/pic.man: Add info on conversion of pic images to
6323         other graphic formats.
6325 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
6327         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
6328         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
6329         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
6330         files.
6332 2000-03-07  Werner LEMBERG  <wl@gnu.org>
6334         * doc/groff.texinfo: Spelling fixes.
6336 2000-03-06  Werner LEMBERG  <wl@gnu.org>
6338         * tmac/groff_man.man: Completely revised to cover everything in
6339         tmac.an.
6341         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
6342         Other minor fixings.
6343         * src/roff/troff/env.cc (environment_copy): Improve error message and
6344         fix itoa->i_to_a.
6345         * src/roff/troff/TODO: Updated.
6347         * doc/Makefile: Bug fixes -- this is still provisional, though...
6349         * tmac/eqnrc: Small fixes.
6351 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
6353         Adding a request `evc' to copy environments.
6355         * src/roff/troff/env.cc (environment::copy, environment_copy):
6356         Implement it.
6357         * src/roff/troff/env.h: Add prototype.
6359 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
6361         Adding strsep() -- Solaris 8 doesn't have it.
6363         * configure.in: Test it.
6364         * src/devices/grolbp/lbp.cc: Add code.
6366 2000-03-05  Werner LEMBERG  <wl@gnu.org>
6368         * src/roff/troff/div.cc (macro_diversion::output,
6369         top_level_diversion::output): Fixing an incompatibility with
6370         original troff: \x'0' updates the .a register also.  Thanks to
6371         <Andries.Brouwer@cwi.nl> for pointing this out.
6372         * doc/groff.texinfo: Document it.
6374         * Makefile.in: Create Makefile.dep if necessary before calling the
6375         submake process to avoid warning about nonexistent file.
6377         * NEWS, PROJECTS: Updated.
6379 2000-03-04  Werner LEMBERG  <wl@gnu.org>
6381         * tmac/troffrc: Add tmac.lbp.
6383 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
6385         * tmac/tmac.lbp: New file.
6386         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
6387         command.
6389 2000-03-03  Werner LEMBERG  <wl@gnu.org>
6391         * Makefile.in: Fixing $(subdir).
6393         * README, NEWS: Small fixes.
6395         * test-groff: Adding path to grolbp.
6397         * configure.in: The (new) file src/xditview/Imakefile.in will be
6398         also configured -- it is now possible to build gxditview in a
6399         directory different from $srcdir.
6401 2000-03-02  Blake McBride  <blake@florida-software.com>
6403         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
6405         * MORE.STUFF: Added website of bell labs and info about plot2dev.
6407 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
6409         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
6410         files.
6412 2000-02-29  Werner LEMBERG  <wl@gnu.org>
6414         Adding GNU getopt to the groff distribution.
6416         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
6417         New files.
6418         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
6419         * aclocal.a4: Remove GROFF_GETOPT function.
6420         * configure.in, Makefile.in, PROBLEMS: Update.
6421         * src/include/lib.h: Replace getopt tests with getopt.h.
6422         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
6424         * doc/groff.texinfo: Further checking/updating.  Adding more index
6425         entries.
6427         * man/groff_out.man: Fix nroff mode activation (for emacs).
6428         * man/groff_font.man: Add missing ligature.
6430 2000-02-28  Werner LEMBERG  <wl@gnu.org>
6432         * doc/groff.texinfo: Further checking/updating.  Adding more index
6433         entries.
6435         * src/devices/grolbp/grolbp.man: Added a comment line at the
6436         beginning of the file (similar to shell scripts) which indicates
6437         that `tbl' should be used as a preprocessor.
6439 2000-02-27  Blake McBride  <blake@florida-software.com>
6441         Adapting groff to MS Visual C++ 6.0 compiler (tested with
6442         Windows NT 4.0).  Uses _MSC_VER define where necessary.
6444         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
6445         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
6446         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
6447         src/include/lib.h, src/libs/libgroff/errarg.cc,
6448         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
6449         src/preproc/refer/label.y, src/preproc/refer/label.cc,
6450         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
6451         src/roff/troff/div.cc, src/roff/troff/env.cc,
6452         src/roff/troff/input.cc, src/roff/troff/node.cc,
6453         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
6454         if_to_a() to avoid name clashes.
6455         * src/include/posix.h: Don't use unistd.h.
6456         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
6457         clause for integrating non-Unix xtmpfile() code.
6458         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
6459         structure; use "rt" for popen() in pipe_source(); add getpid()
6460         dummy function.
6461         * src/roff/troff/node.cc: Use special versions of popen() in
6462         real_output_file() and pclose() in ~real_output_file().
6464 2000-02-27  Werner LEMBERG  <wl@gnu.org>
6466         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
6467         LBP-8 series laser printers).  This code has been contributed by
6468         Francisco Andrés Verdú <pandres@dragonet.es>.
6470         * src/devices/grolbp/*: The grolbp output device.
6471         * font/devlpb/*: The font description files.
6472         * Makefile.in: Add grolpb and devlbp subdirectories.
6474         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
6475         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
6476         typographic fixes.
6478         * doc/groff.texinfo: Further checking/updating.  Adding more index
6479         entries.
6481         * NEWS: Updated.
6483         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
6485         * man/groff_font.man: Adding info about obsolete DESC keywords.
6486         * src/devices/grolj4/grolj4.man: Documenting additional DESC
6487         keywords.
6489 2000-02-26  Werner LEMBERG  <wl@gnu.org>
6491         * src/preproc/grn/grn.man: Added info about the gremlin file format
6492         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
6494 2000-02-25  Werner LEMBERG  <wl@gnu.org>
6496         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
6497         friends to be non-integer.
6499         * src/preproc/grn/grn.man: Document it.
6501         * doc/groff.texinfo: Further checking/updating.  Adding more index
6502         entries.
6504 2000-02-24  Werner LEMBERG  <wl@gnu.org>
6506         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
6507         line thicknesses to be integer multiples of this value.
6509         * src/preproc/grn/grn.man: Commenting out the -s option -- the
6510         corresponding code doesn't work (yet).
6512         * doc/groff.texinfo: Further checking/updating.  Adding more index
6513         entries.
6515 2000-02-23  Werner LEMBERG  <wl@gnu.org>
6517         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
6518         specify line thickness instead of base units.  The new default
6519         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
6520         thick lines respectively.
6522         Removed unused variable `prevval'.
6524         * src/preproc/grn/grn.man: Updated.
6526 2000-02-22  Werner LEMBERG  <wl@gnu.org>
6528         * src/preproc/grn/main.cc: Slight formatting.
6530         * src/roff/groff/groff.man: Formatting fix.
6531         * src/preproc/grn/grn.man: Ditto.
6533         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
6535         * doc/groff.texinfo: Further checking/updating.
6537 2000-02-21  Werner LEMBERG  <wl@gnu.org>
6539         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
6541         * test-groff: Added grn subdir to path.
6543         * doc/groff.texinfo: Some restructing and other small improvements.
6545         * src/roff/groff/groff.cc (help): Fixed info string.
6547 2000-02-20  Werner LEMBERG  <wl@gnu.org>
6549         * doc/meref.me: Fix description of .GS request.
6551         * src/roff/troff/troff.man: Fixing typo.
6553         Adding the `grn' preprocessor for gremlin graphic files.
6555         * src/preproc/grn/*: This is the Berkeley distribution written by
6556         David Slattengren and Barry Roitblat, adapted to groff by Daniel
6557         Senderowicz and Werner Lemberg.
6559         * doc/grnexampl.{me,g}: A sample for grn.
6561         * Makefile.in: Added subdirectory entry for grn.
6563         * src/roff/groff/groff.cc: Added support for grn.  It can be now
6564         called with the switch `-g'.
6566         * src/roff/groff/groff.man: Updated.
6568         * src/roff/grog/grog.{man,pl,sh}: Updated.
6570         * NEWS: Updated.
6572 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
6574         * src/include/lib.h: Added xtmptemplate and made xtmpfile
6575         parametrically polymorphic.
6577         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
6578         and the alterations to xtmpfile.
6579         xtmpfile can be requested to return the filename created
6580         and asked not to unlink the temp file.  The default behaviour
6581         if parameters are absent is exactly the same as before.
6583 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
6585         A new request `length' is available which returns the length of a
6586         string in a number register:
6588         * src/roff/troff/input.cc (length_macro): Implement it.
6589         * src/roff/troff/input.cc (init_input_requests): Register it.
6591 2000-02-11  Werner LEMBERG  <wl@gnu.org>
6593         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
6594         of the `substring' request.
6596         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
6597         request.
6599         * src/roff/troff/TODO, NEWS: Updated.
6601 2000-02-09  Werner LEMBERG  <wl@gnu.org>
6603         * src/roff/groff/groff.man: Added an example.
6605 2000-02-06  Werner LEMBERG  <wl@gnu.org>
6607         I've considerably modified the directory structure of the
6608         distribution to get a more vertical layout.  For example, the number
6609         of top level directories has been reduced from 42 to 6.
6611         As a consequence, many changes, especially to the makefiles, were
6612         necessary:
6614         * The makefile variables `top_builddir' and `top_srcdir' have been
6615         introduced.  Virtually all relative paths have been replaced with
6616         absolute ones using these two variables.
6618         * Dependencies (in the files `Makefile.dep') are no longer part of
6619         the distribution.  Instead, they are created during a `make install'
6620         in the build directory.
6622         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
6623         make `top_srcdir' and `top_builddir' absolute.
6625         Some other changes:
6627         * Man pages now depend on the files `VERSION' and `REVISION'.
6629         * The added shell script `mkinstalldirs' will replace `mkdir' in
6630         almost all cases.
6632         * VERSION: Version number increased to 1.16.
6634 2000-02-04  Werner LEMBERG  <wl@gnu.org>
6636         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
6638         * Makefile.in: Removed $(tmac_m) since it is no longer needed
6639         (after an update of the mm stuff).
6641         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
6643 2000-02-03  Werner LEMBERG  <wl@gnu.org>
6645         The .psbb request will now also accept Mac PS images (i.e. using LF
6646         as the EOL character).
6648         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
6649         (with slight modifications).
6650         * troff/input.cc (do_ps_file): Use it.
6652         * test-groff: Add grohtml and grolj4 output devices to PATH.
6654 2000-01-30  Werner LEMBERG  <wl@gnu.org>
6656         * NEWS, MORE.STUFF: Updated.
6658 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
6660         Add the `srand' command to pic.
6662         * pic/lex.cc, pic/pic.y: Implement it.
6663         * pic/pic.man: Document it.
6664         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
6666 2000-01-30  Werner LEMBERG  <wl@gnu.org>
6668         Add a new request `.psbb'.  This does exactly what the external
6669         program psbb did.  It scans a PostScript image file for a
6670         %%BoundingBox comment and extracts the bounding box values (in
6671         PostScript units) which are then stored in the four new (read-only)
6672         number registers `llx', `lly', `urx', and `ury'.
6674         This will allow the usage of the .PSPIC macro without worrying
6675         about unsafe behaviour of groff, i.e., it will work without the
6676         `-U' switch of groff.
6678         * troff/input.cc: Implement it.
6679         * tmac/tmac.pspic: Use it.
6680         * troff/troff.man, grops/grops.man, NEWS: Document it.
6681         * psbb/*, Makefile.in: Remove it since it is no longer needed.
6683         This is bloody C code simply adapted from psbb.c!  Any improvements
6684         welcome.
6686 2000-01-29  Werner LEMBERG  <wl@gnu.org>
6688         * man/groff_font.man: Minor clarifications.
6690         * NEWS: Updated.
6692 2000-01-28  Werner LEMBERG  <wl@gnu.org>
6694         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
6696 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
6698         * man/groff_font.man: Brought up to date regarding tcommand
6699         extensions.
6700         * libgroff/font.cc: Handle everything after `--' as a comment
6701         in the font files.
6702         * devps/*: Added comment delimiter inside devps font files.
6704 2000-01-28  Werner LEMBERG  <wl@gnu.org>
6706         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
6707         \fC...\fP (which now works as expected).
6709         * troff/troff.man: Fix typo.
6711 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
6713         Completed the pass_filenames implementation in troff.
6715         * libdriver/input.cc: Will read the new `F' tcommand.
6716         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
6717         * troff/input.cc: Use it.
6719 2000-01-26  Werner LEMBERG  <wl@gnu.org>
6721         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
6722         font will now be updated even if an invalid font is selected.
6724 2000-01-24  Werner LEMBERG  <wl@gnu.org>
6726         * doc/homepage.ms: Updated for new tmac.arkup.
6728         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
6730         * tmac/tmac.arkup: Cleanup.
6732         Added `\&' to .HTML macro to `leave vertical mode', so to say.
6734         Removed obsolete .LINK macro completely.
6736         The macros .URL, .FTP, and .MAILTO now accept a third argument which
6737         will be immediately appended to the second argument (to be used with
6738         punctuation, for example).
6740         Disabled .CDFTP macro temporarily for security reasons.
6742         * tmac/groff_markup.man: Complete revision for latest changes in
6743         tmac.arkup -- note that it does not yet format correctly with
6744         grohtml :-(
6746 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
6748         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
6749         * devutf8/R.proto: Add mappings for wp, lh, rh.
6750         * devutf8/NOTES: Updated.
6752 2000-01-23  Werner LEMBERG  <wl@gnu.org>
6754         * doc/groff.texinfo: Updated version/copyright info.
6756 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
6758         Added support for two new directives in device descriptions:
6759         `pass_filenames' (to pass the input file name to the output device)
6760         and `use_charnames_in_special' (to support e.g. accented characters
6761         in the `X' request).
6763         * include/font.h, troff/charinfo.h: Declare it.
6765         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
6767         * devhtml/DESC: Use it.
6769         * troff/input.cc: New function encoded_char.
6771         * troff/token.h: Add test for `specialness'.
6773 2000-01-21  Werner LEMBERG  <wl@gnu.org>
6775         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
6776         mistake from the list of files to be installed.
6778 2000-01-18  Werner LEMBERG  <wl@gnu.org>
6780         * README: Added info how to apply patches.
6782 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
6784         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
6786 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
6788         * troff/input.cc: Add support for troffrc-end.
6790         * tbl/main.cc: Altered to issue table-start and table-end special
6791         characters if using the html device.
6793         * devhtml/*: Modified font files to incorporate html encoding of
6794         characters.
6796         * tmac/groff_markup.man: New file documenting tmac.arkup.
6798         * tmac/troffrc-end: New file.  This is invoked after all user
6799         specified macros.  Currently used by the html device to include
6800         tmac.html.  Thus no need for users to specify -mhtml anymore.
6802         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
6803         (MAN7): Add groff_markup.man.
6805         * tmac/tmac.an, tmac/tmac.html: Small html updates.
6807         * tmac/troffrc: tmac.arkup will now be called for the html device.
6809         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
6810         extra device specific information about fonts.
6812         * doc/homepage.ms: New file.  It is an example how an HTML home page
6813         could look like with grohtml.
6815         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
6817 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
6819         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
6820         of Im, Re.
6822         * devutf8/NOTES: Updated.
6824 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
6826         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
6827         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
6828         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
6829         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
6830         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
6831         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
6832         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
6833         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
6834         warnings.
6836         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
6838 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
6840         grolj4: Paper size will be searched case-insensitively.
6842         * include/lib.h: Add check for strcasecmp().
6843         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
6844         * configure.in: Check for strcasecmp().
6846 2000-01-11  Werner LEMBERG  <wl@gnu.org>
6848         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
6849         `REVISION'.
6851 2000-01-10  Werner LEMBERG  <wl@gnu.org>
6853         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
6854         revision scheme.
6856         Add a new read-only register, `.Y', which contains the groff
6857         revision.
6859         * troff/input.cc (init_input_requests): Define it.
6860         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
6861         * doc/groff.texinfo, troff/troff.man: Document it.
6863         * libgroff/Makefile.sub (version.cc): Add definition of
6864         `Version_string[]', consisting of `<major>.<minor>.<revision>'
6865         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
6866         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
6867         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
6868         troff/input.cc, pfbtops/pfbtops.c: Use it.
6870 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
6872         Add a revision scheme to the groff package.
6874         * REVISION: New file.
6875         * libgroff/Makefile.sub (version.cc): Use it to define
6876         `revision_string[]'.
6877         * grops/psrm.cc: Use revision_string (converted to an unsigned
6878         integer) in constructor of resource_manager.
6880 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
6882         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
6883         files.
6884         * Makefile.in (DEVDIRS): Add devutf8.
6885         * grotty/tty.cc: Include device.h.
6886         (glyph): Change type of `code' to `unsigned int'.
6887         (tty_printer): New field is_utf8.  Constructor takes device argument.
6888         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
6889         (tty_printer::add_char): Change type of first arg to `unsigned int'.
6890         (tty_printer::put_char): New function.
6891         (tty_printer::end_page): Use put_char() instead of ::putchar().
6892         (make_printer): Pass device to tty_printer constructor.
6893         * nroff.sh: Determine default device by calling 'locale'.  As a
6894         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
6895         Recognize UTF-8 locales.
6896         * tmac/eqnrc: Recognize utf8 like latin1.
6897         * tmac/troffrc: Device utf8 needs tmac.tty.
6899 2000-01-07  Werner LEMBERG  <wl@gnu.org>
6901         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
6903 2000-01-07  Paul Eggert  <eggert@twinsun.com>
6905         Add a new predefined writeable number register, `year',
6906         which contains the current year.
6908         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
6909         * tmac/tmac.s: Use it.
6910         * troff/input.cc (init_registers): Initialize it.
6912 2000-01-06  Werner LEMBERG  <wl@gnu.org>
6914         * PROBLEMS: Fixed typo.
6916 2000-01-04  Paul Eggert  <eggert@twinsun.com>
6918         * PROBLEMS: Add Y2k advice for the yr number register.
6920 2000-01-03  Paul Eggert  <eggert@twinsun.com>
6922         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
6924 2000-01-02  Werner LEMBERG  <wl@gnu.org>
6926         * tmac/tmac.arkup: Slight modification of macros to provide better
6927         appearance for non-HTML formats.
6929 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
6931         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
6932         does not automatically translate to malloc(n) on all OSes
6933         (e.g., SunOS) so do it explicitly.  Also, check the returned
6934         value.
6936 2000-01-01  Werner LEMBERG  <wl@gnu.org>
6938         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
6940         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
6941         expects this variable
6943 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
6945         * doc/Makefile: Added instructions to create HTML and text
6946         versions of some files.
6948 1999-12-31  Werner LEMBERG  <wl@gnu.org>
6950         * Updated INSTALL.gen.
6952         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
6953         better resp. correctly with non-HTML devices.
6955 Version 1.15 released
6956 =====================
6958 1999-12-28  Werner LEMBERG  <wl@gnu.org>
6960         * NEWS, VERSION: Changed to 1.15
6962 1999-12-27  Paul Eggert  <eggert@twinsun.com>
6964         * nroff/nroff.man: -S is safer, not safe.
6966         * groff/groff.cc (main): Use `safer', not `safe', in variable
6967         names.  This does not change the behavior.
6969         * troff/input.cc (main): Likewise.
6971         * nroff/nroff.sh: Likewise.
6973         * troff/input.cc (prepend_string): New function.
6974         (main): Prepend -msafer, so that we check macro libraries for
6975         safety.
6977         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
6979 Version 1.14 released
6980 =====================
6982 1999-12-26  Werner LEMBERG  <wl@gnu.org>
6984         * NEWS, VERSION: Changed to 1.14.
6986 1999-12-24  Werner LEMBERG  <wl@gnu.org>
6988         * refer/refer.cc: Fixing the last fix.
6990 Version 1.13 released
6991 =====================
6993 1999-12-23  Werner LEMBERG  <wl@gnu.org>
6995         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
6996         number disappear.
6998         * NEWS: Updated.
7000         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
7002         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
7003         document conventions, the version number must be a real.
7005 Version 1.12.1 released
7006 =======================
7008 1999-12-22  Werner LEMBERG  <wl@gnu.org>
7010         * VERSION: Changed to 1.12.1.
7012 1999-12-22  Alan Rooks  <arooks@istar.ca>
7014         * refer/refer.cc (do_file): Slight modification to satisfy the
7015         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
7016         UnixWare 7.1.
7018 1999-12-20  Werner LEMBERG  <wl@gnu.org>
7020         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
7021         notices.
7023         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
7024         list of unsafe requests.
7026         * pic/pic.man: Fixed a typo.
7028         * man/groff_out.man: Fixed a typo.
7030 1999-12-18  Werner LEMBERG  <wl@gnu.org>
7032         * Makefile.in: Doc fixes.
7034 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
7036         * groff/groff.cc: Missing `U' option added to getopt().
7038         * troff/troff.man: Missing `U' option added to synopsis.
7040 Version 1.12 released
7041 =====================
7043 1999-12-14  Werner LEMBERG  <wl@gnu.org>
7045         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
7046         to the synopsis.
7048         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
7049         with the more appropriate terms `safer' and `unsafe'.
7051         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
7052         sys_nerr and sys_errlist[].
7054         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
7056         * pic/pic.y, pic/pic.cc: Added check for fmod().
7058 1999-12-13  Werner LEMBERG  <wl@gnu.org>
7060         * VERSION: Changed to 1.12.
7062         Here some patches from various sources; most of them taken from
7063         the Debian distribution.
7065         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
7066         tmac/Makefile.sub: New files copied directly from the NetBSD
7067         distribution.  Probably, some additional adaptation later on is
7068         necessary...
7070         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
7071         of unsafe requests.
7073         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
7074         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
7075         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
7076         (`-S') is now the default.
7078         * README, NEWS: Updated.
7080 1999-12-09  Werner LEMBERG  <wl@gnu.org>
7082         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
7084         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
7086 1999-12-06  Werner LEMBERG  <wl@gnu.org>
7088         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
7089         grief than relief today.  Additionally, it is against the GNU
7090         coding standards.
7092         * configure: Recreated.
7094 1999-12-05  Werner LEMBERG  <wl@gnu.org>
7096         * configure.in: Added GROFF_LIBM.
7098         * configure: Recreated.
7100         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
7101         necessary.
7103         * Makefile.in: Added definition of $(LIBM).
7105         * Makefile.comm (LIBM): Removed.
7107         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
7109 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
7111         * doc/Makefile: Added rule for generation pic.html.
7113         (clean): Files produced by grohtml will be removed also.
7115         * doc/pic.ms: Small fix.
7117         * tmac/tmac.html: Fixed suppression of headers.
7119 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
7121         * tmac/tmac.html: Fixing horizontal arrows.
7123         Turning off hyphenation.
7125         * tmac/tmac.an: Improved support for grohtml; better indentation,
7126         no footers/headers.
7128 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
7130         * tmac/tmac.arkup: Added CDFTP macro
7132         * tmac/tmac.html: All headers are turned off for ms, me, and mm
7133         macros.
7135         * tmac/troffrc: Some additions for HTML stuff.
7137 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
7139         * tmac/tmac.html: Small changes.
7141 1999-09-26  Werner LEMBERG  <wl@gnu.org>
7143         * doc/groff.texinfo: Minor fixes.
7145 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
7147         * devhtml/TR: Changed spacewidth to 3.
7149         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
7151         * tmac/tmac.html: Moved markup macros to tmap.arkup.
7153         * tmac/tmac.arkup: New file.
7155         * grohtml/ChangeLog: New file.
7157 1999-09-16  Werner LEMBERG  <wl@gnu.org>
7159         * doc/groff.texinfo (Common Features): Added Copying chapter.
7160         Changed format to @smallbook.
7162 1999-09-15  Werner LEMBERG  <wl@gnu.org>
7164         * NEWS: Added info about groff.texinfo.
7166         * doc/groff.texinfo: Will now compile (using texi2dvi) without
7167         warning messages.
7169 1999-09-14  Werner LEMBERG  <wl@gnu.org>
7171         * groff/groff.man: More updates.
7173 1999-09-13  Werner LEMBERG  <wl@gnu.org>
7175         * doc/groff.texinfo: New file.  This manual is still very
7176         rudimentary.  It has been originally contributed by Trent
7177         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
7178         additions by me.
7180         * INSTALL: Added information about the `doc' subdir
7182         * troff/troff.man: Minor fixes.
7184         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
7185         reordered options.
7187         * troff/input.cc (usage): Added missing `-ffam' to usage message.
7189         * Makefile.in (dist): groff-$(version).tar.gz must be removed
7190         also, otherwise it is included itself in another call of `make
7191         dist'.
7193         * groff/groff.cc (synopsis): Removed superfluous space.
7195         * PROJECTS, PROBLEMS, NEWS: Updated.
7197         * VERSION: Updated to 1.12beta.
7199         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
7201         * README: Updated: Included documentation about CVS repository,
7202         mailing lists, and daily snapshots.
7204         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
7206 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
7208         * tmac/tmac.an: If the tag didn't fit into the space that the
7209         macro `TP' specifies, the rest of the tag went into the space for
7210         the next line.
7212 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
7214         * grolj4/lj4.cc: Added duplex printing (option `-d').
7216         * grolj4/grolj4.man: Document duplex printing.
7218 1999-09-12  Werner LEMBERG  <wl@gnu.org>
7220         * doc/Makefile (pic.ps): Fixed rule which caused problems with
7221         non-GNUish sed programs.
7223         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
7224         definition.
7226         * configure.in (LIBS): Added `-lc'
7228         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
7230         * pic/tex.cc (solid_arc): Casting M_PI to double.
7232         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
7234         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
7235         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
7236         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
7238         * groff/groff_man.man: New file.  This manual page was originally
7239         written for the Debian GNU/Linux system by Susan G. Kleinmann
7240         <sgk@debian.org>.
7242         * eqn/list.cc (list_box::compute_metrics,
7243         list_box::compute_sublist_width): Removed variable declaration to
7244         avoid shadowing warnings.
7246         * grops/psrm.cc (resource_manager::process_file): Ditto.
7248         * tfmtodit/tfmtodit.cc (main): Ditto.
7250         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
7251         to avoid shadowing warnings.
7253         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
7254         shadowing loop variable.
7256         * groff/groff.man, troff/troff.man: Added doc about grohtml.
7258 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
7260         New grohtml frontend to convert groff input to html.
7262         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
7264         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
7266         * tmac/eqnrc: Added html device.
7268         * tmac/tmac.html: New file.
7270         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
7271         (troff_output::start_picture, troff_output::finish_picture),
7272         tbl/main.cc (process_input_file):
7273         Surrounded output with `graphics_start' and `graphics_end' so that
7274         the html driver can identify non-text portions.
7276         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
7277         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
7278         grotty/tty.ps (tty_printer::set_char): Additional parameter
7279         `name'.
7281         * include/printer.h: Class printer: New function
7282         set_char_and_width; new variables (is_char_named, is_named_set,
7283         named_command, named_char_s, named_char_n) to hold information
7284         about named characters -- needed by the html driver.
7286         * libdriver/printer.cc (printer::set_ascii_char,
7287         printer::set_special_char): Use set_char_and_width.
7289         * devhtml/*: New device files for html driver.
7291         * grohtml/*: New driver grohtml.
7293 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
7295         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
7296         default strings.
7298 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
7300         * libgroff/string.cc (search): Small fix to test against NULL
7301         pointer.
7303 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
7305         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
7306         \b'abc') were stacked in reverse order when processed in a
7307         diversion.
7309         * troff/node.h: Added `*last' to struct `node' to make the above
7310         fix work.
7312         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
7313         The default scale for the 'f' and 't' graphics functions were 'm'
7314         rather than 'u' (i.e., no scaling).
7316 1999-09-11  Peter Miller  <peterm@jna.com.au>
7318         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
7319         do_file), soelim/soelim.man: Added `-I file' option to soelim,
7320         defining include paths.
7322         * soelim/soelim.cc (include_path_append): New function.
7324 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
7326         * tbl/main.cc (process_options): Unix (at least Documenter's
7327         Workbench) tbl allows arbitrary non-alpha characters between
7328         options.
7330 1999-09-11  Paul Eggert  <eggert@twinsun.com>
7332         Y2k fixes.  Don't assume that the current year precedes 2000.
7334         * doc/meref.me: Add \n(y2, \n(y4.
7336         * tmac/doc-common (Yr): New number register.
7337         (Dd): Don't assume current year precedes 2000.
7339         * tmac/tmac.e (td): Likewise.
7340         (y2, y4): New number registers.
7342         * pic/pic.man: Update reference for pic paper to May, 1991
7343         version.
7345 1999-09-11  Werner LEMBERG  <wl@gnu.org>
7347         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
7348         Removed quotation marks which prevented correct expansion of
7349         $(tmac_wrap).
7351         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
7353 1999-09-10  Werner LEMBERG  <wl@gnu.org>
7355         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
7356         `config.cache'.
7358         * Removed configure.old.
7360 1999-08-31  Werner LEMBERG  <wl@gnu.org>
7362         * VERSION: Updated to 1.11.1
7364 1999-05-27  Werner LEMBERG  <wl@gnu.org>
7366         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
7368         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
7369         added quotations around $(tmac_wrap) to avoid syntax error if
7370         variable is empty.
7372         * configure: Newly generated using autoconf 2.13.
7374         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
7376 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
7378         * README, PROJECTS, NEWS, INSTALL, VERSION, 
7379         doc/Makefile. doc/pic.ms, groff/groff.man:
7380         Prepare for 1.11 release.  No code changes.
7381         Documentation for pic added (doc/pic.ms).
7383 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
7385         * Version 1.10 released.
7387 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
7389         * afmtodit/afmtodit.pl: Avoid comment on first line.
7391 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
7393         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
7394         * configure.in: Call it.
7396         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
7397         (distfiles): Doesn't depend on config.log or config.cache.
7399 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
7401         * grog/grog.sh: Use print "" rather than print in END rule.
7403 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
7405         * tbl/main.cc (process_data): Don't give error for excess data
7406         entries that are comments.
7408 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
7410         * tbl/main.cc (process_data): Fix case where new for-scope rules
7411         silently change meaning of code.
7413 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
7415         * troff/env.cc (hyphenate): Loop over all consecutive sequences
7416         of non-zero hyphenation codes.
7418 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
7420         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
7422 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
7424         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
7426 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
7428         * tmac/tmac.andoc: Make it work in compatibility mode.
7430         * refer/token.h (token_info::is_range_sep): New function.
7431         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
7432         * refer/ref.cc (reference::output): More sophisticated check for
7433         multiple pages.
7435         * devps/prologue.ps (MANUAL): New procedure.
7436         * grops/ps.cc (main): New -m option.
7437         (usage): Include -m.
7438         (ps_printer::~ps_printer): Implement -m.
7440         * aclocal.m4 (GROFF_G): New macro.
7441         * configure.in: Call it.
7442         * Makefile.in (g): Provided by configure.
7444         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
7446         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
7447         translations.
7449         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
7450         (tmac_m, tmac_s): Deleted.
7451         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
7452         tmac_s_prefix): New variables.
7453         (MDEFINES): Change accordingly.
7454         * Makefile.comm (.man.n): Use new TMAC_* variables.
7455         * configure.in (GROFF_TMAC): Call.
7456         * aclocal.m4 (GROFF_TMAC): Define.
7457         * tmac/Makefile.sub (stamp_wrap): New target.
7458         (install_data, uninstall_sub): Handle macro wrapping.
7460 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
7462         * tbl/main.cc (main): Ignore -T option.
7464 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
7466         * devlj4/generate/special.map: Add definition of \(nb.
7468         * tmac/tmac.dvi: Add definition of \(nb.
7470         * troff/dictionary.c (dictionary::dictionary): association::v gets
7471         initialized by association::association.
7473         * tmac/Makefile.sub: Avoid using temporary files when installing.
7475         * troff/env.cc (environment::set_font): Make bad font number a
7476         warning.
7478         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
7480         * Makefile.in (datadir): Use share rather than lib.
7482         * groff/groff.cc (basename): Rename to xbasename.
7484 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
7486         * Makefile (CCLIBS): Don't use.
7487         * Makefile.ccpg: Likewise.
7489         * acgroff.m4: Rename to...
7490         * aclocal.m4: Modify extensively for autoconf 2.
7491         * configure.in: Likewise.
7492         * Makefile.in: Likewise.
7494         * groff/pipeline.c (const): Declare as empty if __STDC__ not
7495         defined.
7496         (xstrsignal): Check for definition of NSIG. Conditionalize
7497         on SYS_SIGLIST_DECLARED.  Make return type const.
7499 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
7501         * troff/input.cc (interpolate_macro): Rephrase missing space
7502         warning.
7504 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
7506         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
7507         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
7508         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
7509         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
7510         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
7511         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
7512         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
7513         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
7514         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
7515         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
7516         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
7517         Fix 'for' scoping.
7519 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
7521         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
7522         string_iterator.
7523         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
7524         file.
7525         (macro_iterator::macro_iterator): Add additional argument.
7527 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
7529         * troff/div.cc (vertical_size::vertical_size): In place of integer
7530         specifying line spacing use cunits specifying post vertical
7531         space.
7532         (macro_diversion::output, top_level_diversion::output): Likewise.
7533         * troff/div.h: Change declarations accordingly.
7534         * troff/env.cc (pending_output_line): Replace ls field by post_vs
7535         field.
7536         (pending_output_line::pending_output_line,
7537         pending_output_line::output, environment::output,
7538         environment::output_line, environment::output_title,
7539         environment::hyphenate_line):  In place of
7540         integer specifying line spacing use cunits specifying post vertical
7541         space.
7542         (environment::environment): Add post_vertical_spacing and
7543         prev_post_vertical_spacing arguments.
7544         (environment::get_post_vertical_spacing): New function.
7545         (environment::total_post_vertical_spacing): New function.
7546         (environment::post_vertical_spacing): New function.
7547         (init_env_requests): Initialize pvs request and .pvs register.
7548         * troff/env.h: Change declarations.
7550 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
7552         * tmac/tmac.pspic: Immediately remove the temporary file.
7554 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
7556         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
7557         height is specified.
7559 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
7561         * tbl/table.c (struct vertical rule, class table_entry): Use int
7562         not short for start_row and end_row.
7564 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
7566         * troff/input.cc (trapping_blank_line, blank_line_macro): New
7567         functions.
7568         (diverted_space_node::reread, process_input_stack): Call
7569         trapping_blank_line() rather than blank_line().
7570         (init_input_requests): Bind "blm" to blank_line_macro().
7572         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
7574 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
7576         * troff/env.cc (environment::possibly_break_line): Require that
7577         width total excluding width of final space node be greater than
7578         the target text length.
7580 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
7582         * troff/node.cc (kern_pair_node::vertical_extent): New function.
7584 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
7586         * troff/node.cc (charinfo_node): New class.
7587         (glyph_node, composite_node): Derive from charinfo_node.  Change
7588         member functions accordingly.
7590 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
7592         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
7594 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
7596         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
7598         * devps/generate/textmap (notsubset): Add.
7600         * tmac/tmac.a4: New file.
7602 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
7604         * pic/main.cc (had_parse_error): New variable.
7605         (do_picture, do_whole_file): Set had_parse_error if yyparse()
7606         returns non-zero.
7607         (main): Return 1 if had_parse_error is true.
7609 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
7611         * grolj4/lj4.cc (main): Avoid use of strtoul.
7613 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
7615         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
7616         iso_8859_1 or $LESSCHARSET is latin1.
7618 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
7620         * hpftodit: New directory.
7621         * Makefile.in (CCPROGDIRS): Add hpftodit.
7622         * devlj4/generate: New directory.
7624 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
7626         * configure.in: Don't use AC_VFORK.
7627         * groff/pipeline.c (run_pipeline): Use fork() always.
7629 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
7631         * grops/ps.cc (main): Use %1 not %s in error message for -w.
7633         * Makefile.in (CCPROGDIRS): Add grolj4.
7634         (DEVDIRS): Add devlj4.
7635         * grolj4, devlj4: New directories.
7636         * tmac/troffrc: Handle lj4.
7637         * tmac/tmac.lj4: New file.
7639 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
7641         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
7643 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
7645         * troff/input.cc (do_if_request): At end of second string, switch
7646         environments before getting next token.
7648 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
7650         * devps/psstrip.sed: Split rule that strips whitespace on either
7651         side of delimiters.
7653 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
7655         * troff/node.h (font_family::make_definition): Add return value to
7656         declaration.  * troff/symbol.h (symbol::operator==,
7657         symbol::operator!=): Likewise.
7659 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
7661         * groff/groff.cc (main, help, synopsis): Handle -S.
7662         (possible_command::insert_arg): New function.
7664         * tmac/tmac.safer: New file.
7665         * tmac/msafer.man: New file.
7666         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
7668 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
7670         * pic/pic.h, pic/main.cc (safer_flag): New variable.
7671         * pic/pic.y (placeless_element): Avoid unsafe operations if
7672         `safer_flag' is set.
7673         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
7675 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
7677         * eqn/lex.cc (get_token): Put call to add_context() in block to
7678         work around Sun C++ 4.0 bug.
7680         * include/stringclass.h (operator +): Use ?: instead of `if' to
7681         work around Sun C++ 4.0 bug.
7683 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
7685         * tbl/main.cc (process_format): Accept - as a synonym for the _
7686         key letter.
7688         * libbib/index.cc (minus_one): Don't declare as const.
7690 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
7692         * troff/input.cc (get_char_for_escape_name): Push back a newline.
7694 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
7696         * troff/input.cc (write_macro_request): New function.
7697         (init_input_requests): Bind write_macro_request to writem.
7699 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
7701         * tmac/tmac.s (@EN): Turn filling back on even if there was no
7702         equation.
7704         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
7706         * tmac/tmac.s (@TS): Renamed from TS.
7707         (TS): Call LP then TS again.
7708         (cov*ab-init): Alias @TS to TS.
7710         * tmac/tmac.s: Allow QP or RS to initialize.
7712         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
7713         Move initializations of PS and LL here.
7714         (par@init): Don't initialize HY.  Avoid changing environment 0.
7715         (par*env-init): Don't all par@reset.
7717 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
7719         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
7721 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
7723         * Makefile.in (MDEFINES): Add LDFLAGS.
7724         (LDFLAGS): Add definition line.
7726 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
7728         * troff/input.cc (get_optional_char): Split off error check into...
7729         (check_missing_character): New function.
7730         * troff/token.h: Declare it.
7731         * troff/env.cc (margin_character): Don't call get_optional_char.
7732         Only call tok.next() after making the node.
7734         * include/lib.h (getopt): Make 2nd argument char *const *.
7736 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
7738         * nroff/conftest.sh: Deleted.
7740 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
7742         * pic/make-dos-dist: Deleted.
7744 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
7746         * devps/psstrip.sed: Strip comments before stripping trailing
7747         white space.
7749 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
7751         * Version 1.09 released.
7753 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
7755         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
7757 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
7759         * libgroff/font.cc (font::load_desc): Fix typo in error message.
7761 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
7763         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
7764         about returning without a value.
7766         * troff/charinfo.h (charinfo::get_special_translation): Cast
7767         TRANSLATE_NONE to int.
7769         * refer/token.cc (lookup_token, store_token): Remove bogus loop
7770         test.  Fix test so that it works with n unsigned.
7772         * pic/pic.y (defaults_table): Fully bracket initializer.
7773         * pic/lex.cc (lookup_keyword): Likewise.
7774         * eqn/lex.cc (token_table, def_table): Likewise.
7775         * eqn/box.cc (param_table): Likewise.
7776         * troff/input.cc (warning_table): Likewise.
7777         * libgroff/font.cc (table): Likewise.
7778         * grops/ps.cc (ps_printer::special): Likewise.
7779         * grops/psrm.cc (resource_manager::process_file): Likewise.
7780         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
7781         * refer/command.cc (command_table): Likewise.
7782         * addftinfo/addftinfo.cc (param_table): Likewise.
7784         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
7785         about temp's being unused.
7786         (unused): New function.
7788         * groff/pipeline.cc: Declare c_fatal.
7790         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
7791         uchar.
7793         * libbib/index.cc (index_search_item::load): Prevent compiler
7794         warnings about fd_closer's being unused.
7795         (unused): New function.
7797 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
7799         * troff/input.cc (copy_mode_error): Make `prefix' static.
7800         Fix typo.
7802         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
7803         defined.
7804         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
7805         HAVE_CC_OSFCN_H and modify accordingly.
7807         * troff/input.cc (init_charset_table): radicalex overlaps
7808         horizontally.
7810         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
7811         udodo!hans@relay.NL.net).
7812         * groff/configure.in: Call it.
7814         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
7815         * groff/configure.in: Call it.
7816         * include/lib.h: Conditionalize declaration of pclose.
7818         * troff/div.cc (last_page_number): New global variable.
7819         (top_level_diversion::begin_page): Exit if we just printed the
7820         last page.
7821         * troff/div.h (last_page_number): Declare it.
7822         * troff/input.cc (parse_output_page_list): Set last_page_number.
7824         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
7825         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
7826         tmac/tmac.X: Likewise.
7827         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
7828         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
7830 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
7832         * tmac/doc-ditroff (hK): Remove groff specific code which
7833         prevented page-breaks between separate manual entries.  If this is
7834         the first page, don't set the page number to 1.
7836         * acgroff.m4 (GROFF_POSIX): New macro.
7837         * configure.in: Use it.
7839         * troff/node.cc (class real_output_file,
7840         real_output_file::real_output_file,
7841         real_output_file::~real_output_file): Conditionalize use of
7842         popen/pclose on POPEN_MISSING.
7843         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
7844         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
7845         (pipe_source): Similarily.
7847         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
7849         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
7850         presence of declarations by trying to compile example with
7851         conflicting declarations.  (gcc only gives a warning for missing
7852         declarations.)
7854 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
7856         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
7857         (from Ulrich Lauther).
7859 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
7861         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
7863 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
7865         * indxbib/indxbib.cc (write_hash_table): Add code for case where
7866         pointers and ints have different sizes.
7868 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
7870         * tmac/tmac.s (par*env-init): Call par@reset.
7872 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
7874         * tmac/tmac.s (@IP): Switch to a new environment when diverting
7875         tag.
7876         (par*push-tag-env, par*pop-tag-env): New macros.
7878 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
7880         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
7881         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
7883         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
7884         comment.  Include <time.h>.
7886 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
7888         * grops/ps.cc (is_small_h, is_small_v): Deleted.
7889         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
7890         lines.
7892 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
7894         * troff/input.cc (read_request): Only print a prompt if reading
7895         from the terminal.  Also clearerr on EOF if reading from the
7896         terminal.  Declare isatty.
7898 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
7900         * refer/label.y: Rename map_t to map_func and extractor_t to
7901         extractor_func.
7903 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
7905         * include/assert.h: Don't use volatile.
7906         * libgroff/assert.cc: Likewise.
7908 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
7910         * troff/input.cc (abort_request): Look at character in tok before
7911         calling get_copy().
7913 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
7915         * troff/troff.h (NO_RETURN): Deleted.
7916         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
7917         * troff/input.cc (exit_troff): Likewise
7919         * Makefile.in: Remove `Making ...' messages since GNU make now
7920         gives these. 
7922         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
7924 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
7926         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
7927         to constant 1 inch.
7929 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
7931         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
7933 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
7935         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
7936         MARK_REG if there was no left delimiter.
7938 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
7940         * pic/troff.cc (troff_output::text): Set line thickness to
7941         relative before outputting text.
7943         * tmac/tmac.e (@k): Don't zero ?T.
7944         ((z): Likewise.
7946 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
7948         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
7950 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
7952         * troff/input.cc (decode_args): Warn about unquoted tabs (from
7953         Paul Eggert).
7955 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
7957         * troff/input.cc (ignoring): New variable.
7958         (ignore): Set ignoring during call to do_define_macro.
7959         (do_define_macro): Clear ignoring before interpolating terminating
7960         macro.
7961         (copy_mode_error): New function.
7962         (get_char_for_escape_name, read_long_escape_name,
7963         interpolate_arg): Use copy_mode_error.
7964         (warning_table): Add WARN_IG.
7965         * troff/troff.h (WARN_IG): Declare.
7966         (WARN_TOTAL): Change accordingly.
7968         * groff/pipeline.c (strsignal): Rename to xstrsignal.
7969         * groff/groff.cc (strsignal): Delete declaration.
7971 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
7973         * troff/div.cc (page_offset): Use 'm' as default scaling.
7975 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
7977         * nroff/nroff.sh: Ignore -u.
7979 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
7981         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
7983 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
7985         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
7986         drawing box.
7987         (B2): With -Tascii, leave additional vertical space before
7988         and after. Ensure that the left and right indent is restored to
7989         what it was even if the point size changes.  Don't call
7990         par@finish. Change the indent, line length and title length
7991         directly.  With -Tascii, make the width of the box 1n less.
7992         (B1): Remember 1n at the current point size.  Don't call
7993         par@reset.  Change the indent, line length and title length
7994         directly.  Ensure that the temporary indent is preserved.
7995         (par*box-mark-top): Turn off no spacing mode.
7997 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
7999         * Makefile.in (dist): Use .gz suffix.
8001 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
8003         * troff/input.cc (main): Add return 0.
8004         * pic/main.cc (main): Use return instead of exit.
8005         * tbl/main.cc (main): Likewise.
8006         * eqn/main.cc (main): Likewise.
8007         * grops/ps.cc (main): Likewise.
8008         * grotty/tty.cc (main): Likewise.
8009         * groff/groff.cc (main): Likewise.
8010         * grodvi/dvi.cc (main): Likewise.
8011         * refer/refer.cc (main): Likewise.
8012         * indxbib/indxbib.cc (main): Likewise.
8013         * lkbib/lkbib.cc (main): Likewise.
8014         * soelim/soelim.cc (main): Likewise.
8015         * addftinfo/addftinfo.cc (main): Likewise.
8016         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
8017         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
8019         * troff/token.h (process_input_stack): Don't declare as static.
8020         * troff/input.cc: Likewise.
8022         * troff/node.c (invalidate_fontno): Make it a static member of
8023         class font_family.  Change callers.
8024         * troff/node.c: Change declaration.
8026         * tbl/main.cc (struct input_entry_format): Add explicit public
8027         specifier.
8028         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
8029         struct double_hline_stuff): Likewise.
8030         * tbl/table.h (struct entry_format): Likewise.
8031         * pic/object.h (struct saved_state): Likewise.
8033         * include/stringclass.h: Add forward declarations of friend
8034         functions that are later declared as inline.  Don't include inline
8035         specifier in friend declaration.
8037         * libgroff/lib.h: Declare popen and pclose.
8038         * acgroff.m4 (GROFF_POPEN): New macro.
8039         * configure.in: Call it.
8041         * include/lib.h (PI): New constant. Undef first if necessary.
8042         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
8043         * grops/ps.cc (degrees, radians): Likewise.
8044         * libgroff/font.cc (font::get_skew): Likewise.
8046         * grops/ps.cc (is_ascii): New function.
8047         (ps_output::put_string): Use is_ascii.  Use csprint rather than
8048         isprint.
8049         (ps_printer::define_encoding): Use csspace.
8050         * libgroff/strtol.c (ISASCII): New macro.
8051         (strtol): Cast arguments to is*() and tolower() to unsigned char.
8052         Use ISASCII rather than isascii.
8053         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
8054         * libgroff/cset.cc: Likewise.
8055         * libdriver/input.cc: Include cset.h.
8056         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
8057         than isdigit().
8059         * refer/refer.cc (main): Use %ld rather than %d for longs.
8061         * libbib/index.cc (index_search_item_iterator::get_tag): Use
8062         S_ISREG macro.
8064         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
8066 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
8068         * troff/input.cc (hyphenation_code): Skip white space between
8069         char/code pairs.
8071 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
8073         * tbl/table.h (table::entry_list_tailp): New member.
8074         (table::table): Initialize it.
8075         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
8076         behaviour.
8078 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
8080         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
8081         with negative horizontal positions. Remove casts of glyph::hpos to
8082         int.
8083         (USHRT_MAX): Delete definition.
8084         (SHRT_MAX, SHRT_MIN): New definitions.
8085         (glyph::hpos): Change type to short.
8086         (tty_printer::end_page): Output multiple backspaces if necessary.
8087          Remove casts of glyph::hpos to int.
8088         
8089 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
8091         * tmac/tmac.s (@RT): New definition.
8093 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
8095         * refer/refer.cc (do_file): Make sure current_filename is set when
8096         filename is "-".
8098         * pic/common.cc (common_output::dot_line): Handle zero length
8099         lines.
8101 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
8103         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
8104         (par@init): Initialize \n[HY].
8106 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
8108         * troff/dictionary.cc (dictionary::remove): Continue when
8109         r < j < i.
8111 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
8113         * Makefile.com (.y.cc): Avoid ending up with two versions of
8114         $(YTABH).
8116 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
8118         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
8119         (\(,C): Likewise.  Also fix typo.
8121 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
8123         * lib.h: Delete extraneous semi-colon.
8125         * Add pso request: `so' from a pipe.
8126         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
8127         (file_iterator::close): New function.
8128         (file_iterator::~file_iterator, file_iterator::next_file): Use
8129         file_iterator::close.
8130         (file_iterator::backtrace): Say `process' rather than `file' when
8131         the stream is popened.
8132         (pipe_source): New function.
8133         (init_input_requests): Bind ".pso" to pipe_source.
8135 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
8137         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
8139         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
8140         digits in lower case.
8142 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
8144         * Version 1.08 released.
8146         * Makefile.in (dist): Insert || true after ln -s commands that
8147         might fail.
8149         * mm: Update to mm 1.16.
8151         * acgroff.m4 (GROFF_CSH_HACK): New macro.
8152         * configure.in: Call GROFF_CSH_HACK.  Substitute for
8153         SH_SCRIPT_SED_CMD.
8154         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
8155         MDEFINES.
8156         * nroff/Makefile.sub (nroff): New target.
8157         (install_data): Install nroff.
8158         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
8159         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
8161 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
8163         * eqn/Makefile.sub (neqn): Add chmod +x.
8165         * grog/Makefile.sub (grog): Remove spurious semi-colon.
8167 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
8169         * troff/input.cc (string_iterator::string_iterator()): Initialize
8170         lineno and count.
8172 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
8174         * troff/div.cc (macro_diversion::space,
8175         top_level_diversion::space): Don't set high_water_mark.
8176         (macro_diversion::output, top_level_diversion::output): Don't
8177         include post line space in high water mark.
8179 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
8181         * eqn/eqn.y: Don't define YYDEBUG.
8182         * pic/pic.y: Likewise.
8184 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
8186         * tmac/tmac.e ([3): Add space after comma following editors.
8187         Change double spaces to single spaces.
8188         ([4): Change double spaces to single spaces.
8190         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
8191         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
8192         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
8193         after %!PS-Adobe- (for Newsprint).
8195         * troff/div.cc (top_level_diversion::begin_page): When
8196         before_first_page is 1, set page_number to 1.
8198 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
8200         * eqn/box.cc (box::top_level): Protect equation with \&.
8202 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
8204         * groff/groff.cc (possible_command::set_name): Delete old name.
8206         * groff/groff.cc (possible_command::~possible_command): Use
8207         a_delete.
8209         * troff/node.cc (troff_output_file::begun_page): New member.
8210         (troff_output_file::troff_output_file): Initialize it.
8211         (troff_output_file::really_begin_page): Only output V command if a
8212         page has been begun.
8214         * pic/pic.y (placeless_element): Delete argument to PRINT after
8215         use.
8217 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
8219         * Make wrapman work.
8220         * troff/div.h (class top_level_diversion): Replace
8221         first_page_begun by before_first_page (with opposite sense).
8222         * Change first_page_begun to before_first_page inverting sense.
8223         * troff/div.cc (class nl_reg): New class.
8224         (init_div_requests): Use class nl_reg for \n(nl.
8225         (top_level_diversion::begin_page): Don't call
8226         output_file::begin_page if before_first_page is 2;
8227         reset before_first_page afterwards.  If have_next_page_number is
8228         false, then always increment page_number.
8229         * tmac/tmac.an: Set traps within TH rather than at the top-level.
8230         Restore compatibility mode after loading, and then disable
8231         compatibility mode in TH.
8233 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
8235         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
8236         past last line.
8237         * troff/node.h (output_file::trailer): Declare.
8238         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
8239         * troff/node.cc (output_file::trailer): New function.
8240         (troff_output_file::~troff_output_file): Move most code into...
8241         (troff_output_file::trailer): New function.
8242         (class troff_output_file): Delete page_length member. Declare
8243         trailer().
8244         (troff_output_file::really_begin_page): Use current page length
8245         for final V command.
8247         * tbl/main.cc (struct options): New decimal_point_char member.
8248         (options::options): Initialize this.
8249         (process_options): Implement decimalpoint option.
8250         (process_data): Pass decimal_point_char option to table::table.
8251         * tbl/table.h (class table): New decimal_point_char member.
8252         (table::table): Add additional argument.
8253         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
8254         second argument specifying decimal point character.  Use this
8255         instead of '.'.
8256         (table::table): Initialize decimal_point_char.
8257         (table::add_entry): Change call to find_dot.
8259         * troff/input.cc (get_copy, token::next): Implement \V.
8260         (interpolate_environment_variable): New function.
8262 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
8264         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
8265         * pic/pic.y: Likewise.
8267         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
8268         Add casts to int.
8269         * refer/ref.cc (reference::insert_field, reference::delete_field):
8270         Likewise.
8271         * troff/number.cc (parse_term): Likewise.
8273         * acgroff.m4 (GROFF_PROG_YACC): New macro.
8274         * configure.in: Use GROFF_PROG_YACC.
8276         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
8277         and g++.
8278         * Makefile.in (OPTIMIZE): New define.
8279         (DEBUG): Empty by default.
8280         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
8282         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
8283         (GROFF_ARRAY_DELETE): Likewise.
8284         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
8286         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
8288         * devps/psstrip.sed: Use different delimiter on last line (so that
8289         it works with BSD 4.4 sed.)
8291 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
8293         * devps/psstrip.sed: Delete comments.
8295         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
8296         optind, opterr, optarg.
8297         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
8298         opterr, optarg.
8300 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
8302         * Makefile.in (check): Dummy target.
8304 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
8306         * Version 1.07 released.
8308         * Integrate mm 1.11.
8310         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
8311         where start_col was meant.
8313 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
8315         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
8317 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
8319         * troff/input.cc (token::next): Make \z\o'...' and similar things
8320         work.
8322         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
8323         constants.
8324         (environment): Add margin_character_flags member.
8325         * env.cc (environment::environment(symbol),
8326         environment::environment(const environment *): Initialize
8327         margin_character_flags.
8328         (margin_character): Rewrite.
8329         (environment::output_line): Add a margin character if
8330         margin_character_flags is non-zero.  Turn off the
8331         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
8332         zero, use margin_character_node without copying and then set
8333         margin_character_node to 0.
8335         * devps/DESC.in: Change minimum size to 1000.
8337 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
8339         * troff/symbol.h (symbol::hash): Change return type to unsigned
8340         long.
8341         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
8342         Add casts to int.
8344         * test-groff: Use -r rather than -x.
8346         * grops/psfig.diff: Include in distribution again.
8348 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
8350         * Makefile.in (dist): Use gzip.
8352 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
8354         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
8355         unistd.h as well as in stdlib.h.
8356         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
8357         defined; otherwise include <sys/types.h> and <unistd.h> if
8358         UNISTD_H_DECLARES_GETOPT is defined.
8360         * configure.in: use builtin(include, ... rather than include(...
8361         * configure: Regenerate with autoconf 1.3.
8363         * libdriver/print.cc (printer::adjust_arc_center): Use new
8364         algorithm suggested by Andy Fyfe.
8366         * libdriver/printer.cc (printer::adjust_arc_center): New function.
8367         * include/printer.h: Declare this.
8368         * grops/ps.cc (ps_printer::draw): Use it.
8369         * grodvi/dvi.cc (dvi_printer::draw): Use it.
8371 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
8373         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
8375 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
8377         * eqn/main.cc (main): Handle "eqn -".
8379 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
8381         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
8383         * mm: Integrate version 1.08.
8385         * pic/troff.cc (troff_output::finish_picture): Set
8386         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
8387         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
8388         if it's not defined. Check whether the register is non-zero rather
8389         than whether it's not defined.
8390         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
8392         * indxbib/indxbib.cc: Move all signal handling into...
8393         * indxbib/signal.c: New file.
8394         * configure.in: Call AC_RETSIGTYPE.
8396         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
8397         * configure.in: Call GROFF_STRUCT_EXCEPTION.
8398         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
8400         * troff/input.cc (token::token, token::operator=): Work round SGI
8401         C++ bug.
8402         * pic/object.cc (position::position): Likewise.
8404 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
8406         * pic/pic.h: Move declaration of hypot().
8408 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
8410         * pic/pic.h: Declare hypot().
8412         * pic/pic.h: Define M_PI if necessary.
8414 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
8416         * tmac/tmac.e (re): Add alternative version that doesn't use groff
8417         `.ta T' feature.
8419         * devps/prologue.ps (RE): Handle the possibility that the old font
8420         doesn't have a FontName entry.
8422 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
8424         * tmac/tmac.e (fam): Redefine to set family in environment 2.
8425         (@C): Use @fam not fam.
8427 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
8429         * lookbib/lookbib.cc (main): Change type of start to const char *.
8430         * lkbib/lkbib.cc (main): Likewise.
8432         * eqn/lex.cc (definition::definition): Don't use member
8433         initializer syntax for members of anonymous unions.
8435         * troff/input.cc (input_stack::backtrace): Change type of to const
8436         char *.
8438 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
8440         * include/stringclass.h (class string): Declare inline friend
8441         functions as inline in class declaration.
8442         * troff/hvunits.h (class hunits, class vunits): Likewise.
8443         * include/refid.h (class reference_id): Likewise
8444         * troff/troff.h (points_to_units(units), scale(units, double)):
8445         Delete declarations.
8446         * libdriver/input.cc (get_char): Delete declaration.
8447         * include/lib.h: Change 2nd argument of getopt from const char **
8448         to char **.
8449         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
8450         char **' before assigning to a `const char **'.
8451         * tbl/table.cc: Delete extra declarations of prints().
8453 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
8455         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
8456         char **' before assigning to a `const char **'.
8458         * libgroff/errarg.cc (errarg::errarg): Don't use member
8459         initializer syntax for members of anonymous unions.
8461 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
8463         * mm: Integrate version 1.07.
8465 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
8467         * troff/input.c (translate2): Rename to
8468         (translate_no_transparent).
8469         (init_input_requests): Rename tr2 to trnt.
8471 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
8473         * troff/charinfo.h (class charinfo): Add transparent_translate field.
8474         (charinfo::set_translation, charinfo::set_special_translation):
8475         Add second argument that specifies value for
8476         transparent_translate.
8477         (charinfo::get_translation, charinfo::get_special_translation):
8478         Add optional second argument that specifies whether translation is
8479         being used for transparent throughput.
8480         * troff/input.cc (charinfo::set_translation,
8481         charinfo::set_special_translation): Handle second argument.
8482         (charinfo::charinfo): Initialize transparent_translate.
8483         (translate): Split main part off into
8484         (do_translate): New function.  Pass argument saying whether
8485         translation applies to transparent throughput.
8486         (translate2): New request.
8487         (init_input_requests): Bind translate2 to `tr2'.
8489 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
8491         * tbl/table.h (class table): Add `nokeep' flag.
8492         * tbl/main.cc (process_options): Handle `nokeep' option.
8493         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
8494         table::do_bottom): Don't output keep/release macro definitions or
8495         calls when `nokeep' option has been specified.
8497 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
8499         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
8501 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
8503         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
8504         block_entry::divert, alphabetic_block_entry::divert): Add extra
8505         argument giving column separation.
8506         (table::compute_widths): Pass column separation to
8507         table_entry::divert().
8508         (block_entry::do_divert): If an entry spans multiple columns and a
8509         minimumum width has been specified for each column, then set the
8510         line length to the sum of the widths (plus possibly the column
8511         separations).
8513         * troff/input.cc (set_escape_char): Don't set the escape_char
8514         until after calling has_arg().
8516 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
8518         * tbl/table.cc (table::do_top): Add missing \s0 for double box
8519         case.
8521         * tbl/table.cc (table::print_double_hline): Avoid extra new line
8522         in case where r > nrows - 1.
8524         * tbl/table.cc (BODY_HEIGHT): Deleted.
8525         (LINE_SEP): New definition.
8526         (table::print_single_hline, table::print_double_hline,
8527         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
8528         table::do_row, table::do_top): Use LINE_SEP space before a line
8529         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
8531         * tbl/table.cc (text_entry::print_contents): New function.
8532         (text_string_name, right_text_string_name): Deleted.
8533         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
8534         (simple_text_entry::do_width, numeric_text_entry::do_width,
8535         alphabetic_text_entry::do_width): Don't store the contents of the
8536         entry in a string.
8537         (left_text_entry::simple_print, right_text_entry::simple_print,
8538         center_text_entry::simple_print,
8539         alphabetic_text_entry::simple_print,
8540         numeric_text_entry::simple_print): Print the entry directly
8541         instead of using the stored string.
8543 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
8545         * devps/Makefile: Strip PostScript files.
8546         * devps/prologue: Rename to...
8547         * devps/prologue.ps.
8548         * devps/psstrip.sed: New file.
8549         * devps/download: Use .pfa rather than .ps for installed versions
8550         of fonts.
8552 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
8554         * troff/env.cc (input_trap): Give a warning if the argument is out
8555         of range.
8557         * troff/env.cc (adjust): Treat negative argument as missing. Round
8558         argument > 5 down to 5.
8560         * troff/env.cc (center, right_justify): Make negative argument zero.
8562         * troff/div.cc (page_offset, vertical_position_traps): Treat
8563         invalid argument as missing.
8564         * troff/env.cc (line_spacing, line_length, title_length, indent,
8565         underline, hyphen_line_max_request, control_char,
8566         no_break_control_char, widow_control_request, adjust, input_trap,
8567         point_size): Likewise.
8568         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
8569         constant_space): Likewise.
8570         * troff/input.cc (compatible, shift, warn_request,
8571         set_escape_char): Likewise.
8573         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
8574         * tbl/table.cc (table::table): Likewise.
8576         * Makefile.dev (install_dev): depends on $(DEVFILES).
8578 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
8580         * devX75, devX75-12, devX100, devX100-12: New directories.
8581         * Makefile.in: Add these to DEVDIRS.
8583         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
8584         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
8585         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
8586         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
8587         targets.
8588         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
8589         (uninstall): New target.
8590         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
8591         uninstall_prog, uninstall_dev): New targets.
8593         * troff/div.cc (return_request): Treat an invalid argument as
8594         missing.
8596 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
8598         * tmac/tmac.e ((f): Set up the environment even when there's a
8599         current diversion.  Transperently throughput a call to @N.
8600         (@N): New macro.
8602 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
8604         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
8605         up to vertical resolution.
8607         * tbl/table.cc (table::do_row): Change row number after printing
8608         stuff list.
8610         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
8612 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
8614         * Rename CHANGES to NEWS.
8616 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
8618         * libgroff/new.cc (operator new): Avoid calling malloc(0).
8620 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
8622         * man.ultrix: Removed.
8624 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
8626         * Makefile.comm (extraclean): Delete files whose names begin with
8627         `='.
8629         * pic/troff.cc (troff_output::text): Fix typo in implementation of
8630         aligned text.
8632 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
8634         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
8635         * troff/div.cc (page_length, need_space, space_request): Treat
8636         invalid optional argument as missing.
8637         * troff/env.cc (number_lines): If the first argument is present
8638         but not a number, turn on line numbering, don't change the next
8639         line number and parse the remaining arguments.
8641         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
8643 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
8645         * eqn/box.h: Change declaration accordingly.
8646         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
8647         the specified size was bad but don't give an error.  Check for
8648         overflow.
8649         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
8650         * eqn/lex (do_size): Likewise.
8652 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
8654         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
8655         compatible headers.
8657 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
8659         * tbl/table.cc (table::init_output): Improve error message when
8660         table won't fit on one page.
8662 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
8664         * pic/troff.cc (troff_output::start_picture): Generate line
8665         containing a horizontal motion equal to the width of the picture.
8667         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
8668         using GROFF_COMMAND_PREFIX environment variable.
8670 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
8672         * mdate.sh: Use $NF rather than $(NF).
8674 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
8676         * pic/main.cc (main):  Use %1 not %c in argument to warning.
8678         * eqn/main.cc (main): Output code to check that geqn was given the
8679         correct -T option.
8681 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
8683         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
8684         `ln -s ../Makefile .; make; rm -f Makefile'.
8686         * troff/hyphen: Rename to...
8687         * troff/hyphen.us:
8688         * troff/input.cc (main): Delete -H option. Don't call
8689         read_hyphen_file().
8690         * troff/env.cc: Include searchpath.h and macropath.h.
8691         (exception_dictionary): Deleted.
8692         (ht): Deleted.
8693         (read_hyphen_file): Deleted.
8694         (hyphenation_language): New struct.
8695         (class trie, class hyphen_trie): Move declarations up.
8696         (trie_node::~trie_node): Deleted.
8697         (trie::delete_trie_node): New function.
8698         (trie::do_delete): New pure virtual function.
8699         (hyphen_trie::do_delete): New function.
8700         (trie::~trie): New function.
8701         (hyphen_trie::~hyphen_trie): New function.
8702         (trie::clear): No need to chcek that tp is not 0.
8703         (current_language, language_dictionary): New variables.
8704         (hyphen_word): Give an error if no current language.  Use
8705         exceptions dictionary in current language.
8706         (hyphen_trie::read_patterns_file): Find file using macro_path.
8707         Allow comments (starting with %) in patterns file.  Don't make it
8708         a fatal error if the file can't be found.
8709         (hyphenate): Return if no current language.  Get the exceptions
8710         dictionary and the hyphenation patterns from the current language.
8711         (set_hyphenation_language): New variable.
8712         (hyphenation_patterns_file): New function.
8713         (hyphenation_language_reg): New class.
8714         (hyphenation_language_reg::get_string): New function.
8715         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
8716         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
8717         register.
8718         * groff/groff.cc (main, help, synopsis): Delete -H option.
8719         * include/Makefile.sub: Don't define HYPHENFILE.
8720         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
8721         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
8722         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
8723         hyphenation patterns.
8725 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
8727         * eqn/neqn.sh: New file.
8728         * eqn/Makefile.sub: Handle neqn.sh.
8730         * eqn/eqn.h: Declare `nroff' variable.
8731         * eqn/box.cc (param_table): Add `nroff' param.
8732         (nroff): Define it.
8733         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
8734         variable.
8735         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
8737         * troff/troff.h (WARN_FONT): New warning.
8738         (WARN_TOTAL): Change accordingly.
8739         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
8740         (warning_table): Add WARN_FONT.
8741         * troff/node.cc (mount_font_no_translate): Pass argument to
8742         font::load_font.  If this is non-zero, give a warning.
8743         Don't give an error message when accessing a font that has already
8744         been found to be invalid.
8745         * include/font.h (font::load, font::load_font): Add additional
8746         optional argument which suppresses error message if the font is
8747         not found.
8748         * libgroff/font.cc (font::load_font): Handle additional argument.
8749         (font::load): Add additional argument. If this is non-null, set it
8750         to 1 and don't give error message.
8752         * include/printer.h (printer::end_page): Add argument giving
8753         length of page.
8754         * libdriver/input.cc (do_file): Pass this.
8755         * grops/ps.cc (ps_printer::end_page): Add argument.
8756         * grodvi/dvi.cc (dvi_printer::end_page,
8757         draw_dvi_printer::end_page): Add argument.
8758         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
8759         columns_per_page members. New member nlines.
8760         (DEFAULT_LINES_PER_PAGE): Deleted.
8761         (tty_printer::tty_printer): Don't compute lines_per_page from
8762         font::paperlength. Don't compute columns_per_page from
8763         font::paperwidth.
8764         (tty_printer::add_char): Don't check horizontal position against
8765         columns_per_page. Grow glyphs vector if neccessary.
8766         (tty_printer::end_page): Add argument giving page_length in units.
8767         Discard lines past end of page.
8769 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
8771         * tmac/tmac.tty-char: Fix definition of \(/l.
8773         * tmac/tmac.X: Define \(en.
8775 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
8777         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
8778         lpq, then use lp rather than lpr.
8780         * tmac/tmac.s (par@reset): Don't call `ad'.
8781         (par*env-init): Call `ad'.
8783 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
8785         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
8786         date.
8788         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
8789         * indxbib/indxbib.cc: Likewise.
8791 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
8793         * libgroff/putenv.c: New file.
8794         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
8795         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
8796         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
8797         stdlib.h with AC_HAVE_HEADERS.
8799 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
8801         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
8802         does not exist.
8804 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
8806         * eqn/box.cc (gsize): Make it an int.
8807         (set_gsize): Parse argument handling increment or decrement.
8808         (box::top_level): Convert gsize to a string.
8810         * troff/input.cc (exit_troff): Make buf unsigned char [].
8811         Call to make_temp_iterator casts buf to char*.
8813         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
8815         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
8816         * Makefile.cpg (depend.temp): Likewise.
8818         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
8820         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
8822 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
8824         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
8826 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
8828         * Version 1.06 released.
8830         * Integrate mm 1.04.
8832 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
8834         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
8836 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
8838         * afmtodit/afmtodit.pl: Add -n option that disables generation of
8839         ligatures command.
8840         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
8841         afmtodit. Regenerate.
8843         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
8844         @f back past the current position.
8846         * tmac/tmac.e: Change calls to @R so that comments are not part of
8847         arguments.
8849 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
8851         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
8853         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
8854         check that we can link a call to a function declared in <stdio.h>.
8855         (GROFF_UNISTD_H): New macro.
8856         * configure.in: Call it.
8857         * Makefile.in: Document it.
8858         * include/posix.h: New file.
8859         * troff/troff.h: Don't include <osfcn.h>
8860         * troff/input.cc: Include posix.h.
8861         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
8862         osfcn.h.
8863         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
8864         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
8865         <fcntl.h>.
8866         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
8867         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
8868         * libbib/search.cc (O_RDONLY): Delete definition.
8869         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
8870         Don't include <osfcn.h>.
8872         * acgroff.m4 (GROFF_TIME_T): New macro.
8873         * configure.in: Call it.
8874         * Makefile.in: Document it.
8876         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
8877         * configure.in: Call it.
8878         * Makefile.in: Document -DTRADITIONAL_CPP.
8879         * include/ptable.h: Don't include generic.h.
8880         (name2): Define it.
8882         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
8883         Afterwards remove [T1 and [T2.
8884         (ref*spec!0, ref*spec!2): Use T1 rather than T.
8885         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
8886         (ref*add-T2): Renamed from ref*add-T.
8887         (ref*add-T1): New macro.
8889 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
8891         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
8893         * libbib/index.cc: Include <fcntl.h>.
8894         (O_RDONLY): Define if necessary.
8895         (make_index_search_item, index_search_item_iterator::get_tag,
8896         index_search_item::check_files): Use O_RDONLY.
8897         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
8898         (O_RDONLY): Define if necessary.
8899         (search_list::add_file): Use O_RDONLY.
8900         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
8901         <sys/stat.h>.
8902         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
8903         (main): Use these.
8905         * libbib/index.cc (S_ISREG): Define it if necessary.
8906         (index_search_item::load): Use S_ISREG.
8908         * include/driver.h: Include <errno.h>.
8910 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
8912         * eqn/box.cc (body_height): Increase default value to 85.
8913         (body_depth): Increase default value to 35.
8915 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
8917         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
8918         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
8919         protected from expansion with \E.
8921         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
8923         * Makefile (Makefile): New target.
8925         * Makefile.sub (configure, distfiles): New targets.
8927         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
8928         construct.
8930 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
8932         * eqn/box.cc (param_table): Add body_height and body_depth.
8934         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
8936 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
8938         * psbb/Makefile.sub: Don't link with libgroff.a.
8940         * acgroff.m4 (GROFF_PUTENV): New macro.
8941         * configure.in: Call GROFF_PUTENV.
8942         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
8943         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
8944         is defined.
8946         * troff/env.cc (distribute_space): Rename force_forward argument
8947         to force_reverse.  Reverse the list if force_reverse is true.
8949 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
8951         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
8953         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
8954         height or depth to be negative.  Guard against SUP_RAISE quantity
8955         being negative.
8957 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
8959         * devps/generate/textmap: Add `an' (arrowhorizex).
8960         * tmac/tmac.ps: \(an overlaps horizontally.
8961         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
8963         * devps/symbolchars: Add arrowverttp, arrowvertbt.
8964         * devps/textmap: Add arrowvertex.
8965         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
8966         updownarrow delimiters.
8967         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
8969         * tbl/table.cc (simple_entry::position_vertically,
8970         block_entry::position_vertically):  For a centered entry, perform
8971         the motion in two stages.
8973         * refer/refer.cc (split_punct): Don't call lookup_token if there
8974         is no token.
8976 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
8978         * troff/input.cc (token::next): Delete token_node after copying
8979         token.
8981         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
8982         cur_point_size.
8984         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
8986         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
8988 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
8990         * grops/ps.cc (usage): -b option takes an argument.
8992         * devps/prologue (PLG): New procedure.
8993         * grops/ps.cc (main, usage): New -g option.
8994         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
8995         length using PLG.
8997 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
8999         * include/cset.h: Include <limits.h> if we have it.
9001         * libgroff/illegal.cc: New file.
9002         * include/lib.h (illegal_input_char): Use table.
9003         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
9004         * pic/lex.cc (ARG1): Renumber to 14.
9005         * eqn/lex.cc (ARG1: Likewise.
9007         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
9008         (eg 1.05.90) correctly.
9010 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
9012         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
9013         Rename $r and $R registers to $v and $V.
9014         ($r, $R): Initialize to 0.
9015         (@v, @V): New macros.
9016         (sz): Call @v.
9017         (@M): Call @V.
9019         * troff/input.cc (main, usage): Add -R option that says not to
9020         load troffrc.
9021         * eqn/main.cc (main, usage): Rename -n to -R.
9023 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
9025         * devps/DESC.in: Leave font positions 5-9 blank.
9026         * devdvi/DESC.in: Likewise.
9028         * grog/grog.pl: Handle `.PS <file' correctly.
9030         * troff/input.cc (input_stack::push): Improve error message when
9031         input stack limit exceeded.
9033 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
9035         * refer/refer.cc (main): Fix typo in handling of `a' option.
9037         * refer/refer.cc (do_bib): In state START after a newline remain
9038         in state START.
9040         * groff/groff.sh: Deleted.
9041         * groff/Makefile.sub: Delete handling of groff.sh.
9043         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
9044         to determine whether to use \X'ps:...'.
9045         * tmac/troffrc: Set 0p register to 0.
9046         * tmac/tmac.ps: Set 0p register to 1.
9048         * groff/groff.cc: Support -X option. Give warning for -TXps and
9049         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
9050         * tmac/troffrc: Support -r.X=1.
9052         * pic/troff.cc (troff_output::dot): Don't test
9053         zero_length_line_flag.
9055 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
9057         * include/lib.h: Declare getopt() and friends unless
9058         STDLIB_H_DECLARES_GETOPT is defined.
9060         * doc/chars.tr: Delete.
9061         * man/groff_char.man: New file.
9063 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
9065         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
9066         user has changed register format.
9068 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
9070         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
9071         `postpro' command in DESC file.  Get spooler command from `print'
9072         command in DESC file.  Execute spooler command with /bin/sh.
9074         * groff/groff.cc: Split Unix-specific parts into...
9075         * groff/pipeline.c: New file.
9077         * LICENSE: Delete.
9078         * COPYING: New file.
9079         * all files: Update copyright notices.
9081         * Rearrange files.  Redo Makefiles.  Use autoconf.
9083 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
9085         * troff/input.c (charinfo_to_node_list): Interpret character
9086         definition with escape_char of `\'.
9088 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
9090         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
9091         Define INT_DIGITS as big enough for 64-bit integer.
9092         * lib/strtol.c: Don't include lib.h.
9093         * lib/lib.h: Delete ifdef __cplusplus stuff.
9095 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
9097         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
9098         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
9099         get DESC from current directory.
9101 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
9103         * tbl/main.c (main): Always reset the line number when reading
9104         from stdin.
9106         * tbl/table.c (table::print_single_hline, table::print_double_hline,
9107         table::define_bottom_macro, table::do_row, table::do_top): Round
9108         vertical spacing up to vertical resolution.
9110 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
9112         * ps/ps.h (enum resource_type): Avoid comma at end of
9113         enumerator-list.
9114         * dvi/dvi.c (class dvi_printer): Likewise.
9115         * dvi/tfmtodit.c (gf::load): Likewise.
9116         * refer/label.y (struct expression): Likewise.
9117         * refer/refer.c (class label_processing_state): Likewise.
9118         * refer/indxbib.c (do_file): Likewise.
9119         * troff/troff.c (enum warning_type): Likewise.
9120         * tbl/main.c (process_data): Likewise.
9121         * troff/charinfo.h (class charinfo):
9123 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
9125         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
9127 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
9129         * groff.c: Move to new groff subdirectory.
9130         * groff/Makefile: New file.
9131         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
9133         * man/mdate.sh: Use ls -L if supported.
9135         * Consolidate all header files produced by gendef into lib/defs.h.
9136         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
9137         Don't include path.h.
9138         * lib/Makefile (path.h): Don't generate.
9139         * troff/input.c: Include defs.h. Don't include config.h.
9140         * troff/Makefile (config.h): Don't generate.
9141         * refer/index.h: Don't include suffix.h.
9142         * refer/index.c: Include defs.h.
9143         * refer/indxbib.c: Include defs.h.
9144         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
9145         defs.h.
9146         * refer/Makefile (suffix.h, path.h): Don't generate.
9147         * groff.c: Don't include config.h. Include defs.h.
9148         * Makefile (config.h): Don't generate.
9149         (lib/defs.h): Generate.
9150         (topclean): Remove lib/defs.h.
9152 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
9154         * lib/malloc.c, lib/getpagesize.h: Deleted.
9155         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
9156         related stuff.
9157         * lib/Makefile: Delete malloc-related stuff.
9158         * lib/new.c: Workaround COOKIE_BUG if necessary.
9160         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
9161         needed header files directly.
9162         * refer/refer.h: Omit definition of DEFAULT_INDEX.
9163         * Makefile: Include definition of DEFAULT_INDEX in path.h.
9165 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
9167         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
9168         argument.
9169         * lib/font (font::load_desc, font::load): Don't split argument of
9170         unknown command.
9171         (font::handle_unknown_font_command): Change type.
9172         * ps/ps.c (ps_font::handle_unknown_font_command,
9173         handle_unknown_desc_command): Change type.
9174         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
9176 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
9178         * lib/font.h (font::handle_unknown_font_command): Add file and
9179         line arguments.
9180         * lib/font.c (font::handle_unknown_font_command):
9181         * ps/ps.c (ps_font::handle_unknown_font_command):
9182         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
9183         lineno arguments.  Use _with_file_and_line functions for error
9184         reporting.
9186         * lib/fontfile.c (font::unknown_desc_command_handler): New static
9187         data member.
9188         * lib/font.c (font::set_unknown_desc_command_handler): New
9189         function.
9190         (font::load_desc): For unknown commands, call
9191         unknown_desc_command_handler if not null.
9192         * lib/font.h (class font): Declare them.
9193         (FONT_COMMAND_HANDLER): New typedef.
9194         * ps/ps.c (handle_unknown_desc_command): New function.
9195         (main): Set bflag if we had a -b option. Call
9196         font::set_unknown_desc_command_handler.
9197         (broken.h): Don't include.
9198         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
9199         submake 
9200         * ps/devps/Makefile: Add `broken' command to DESC file using
9201         BROKEN_SPOOLER_FLAGS.
9203         * macros/tmac.e ([, ]): Add as synonyms for { and }.
9205         * macros/tmac.e ($p): Only exdent if \$3 > 0.
9207         * macros/tmac.e (@R, @S): New macros.
9208         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
9209         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
9210         Declare $H, $[0-9], .. macros with @S.
9211         Declare |0, |1, |2, |3 strings with @S.
9213         * macros/tmac.e (@S): Rename to @U.
9215         * macros/tmac.e (@z): Define @b and bp as empty instead of
9216         deleting them,
9218         * macros/tmac.e (@m): Deleted.
9219         (@h): Don't call @m.
9220         (@z): Don't set @m trap.
9222         * macros/tmac.e ($h, $f): Define |z as empty string.
9224         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
9225         (@q): Likewise.
9227         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
9228         removing them.
9229         ()f): Likewise for * register.
9231         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
9232         argument is missing, don't change $R.  Call sr with three
9233         arguments when initializing.
9235 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
9237         * macros/tmac.e (sr): New macro.
9238         Initialize $r and $R using sr.
9240         * macros/tmac.e (,): Delete \*(#[.
9242         * troff/env.c (set_tabs): Read the tab type even if the position
9243         is bad.  Allow the position of the first tab stop to be negative.
9245 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
9247         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
9248         _POSIX_VERSION.
9249         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
9250         rather than -DPATHCONF_MISSING.
9251         * Makefile: Get rid of PATHCONF_MISSING.
9253         * refer/map.c: New file.
9254         * refer/index.c: Interface to mmap through map.c.  Rename map_size
9255         to map_len.
9256         * refer/Makefile: Handle map.c.
9257         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
9259 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
9261         * Makefile: RANLIB should be `true' if there is no ranlib.
9262         * lib/Makefile (libgroff.a): Simplify.
9263         * driver/Makefile (libdriver.a): Simplify.
9265         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
9266         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
9267         defined.
9269 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
9271         * troff/env.c (compare_ranges): Declare as extern "C".
9273         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
9275         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
9277 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
9279         * pic/troff.c (troff_output::text): Merge in grops_output::text,
9280         but conditionalize use of \X based on \*(.T.
9281         (grops_output::*): Deleted.
9282         * pic/output.h: Delete declaration of make_grops_output.
9283         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
9284         by default. -n sets it to 0.
9285         (usage): Corresponding changes.
9286         * groff.c (main): Don't pass -x or -p to pic.
9287         * groff.sh: Likewise.
9289         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
9290         to be non-zero.
9292         * ps/devps/afmtodit: Change calculation of asc_boundary and
9293         desc_boundary.  Make these bounds inclusive.
9294         * ps/devps: Regenerate font files.
9296 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
9298         * macros/tmac.latin1: New file.
9299         * macros/tmac.tty-char: Use tmac.latin1.
9300         (tmac.tty-tr): Deleted.
9301         * macros/Makefile: Install tmac.latin1.
9302         * macros/tmac.dvi: Use tmac.latin1.
9303         * macros/troffrc: Translate \[char160] onto no-break space here.
9304         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
9306 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
9308         * macros/tmac.Xps: Use `do' request.
9310         * macros/tmac.ps: Use `do' request.
9312         * macros/tmac.e (@C): Use `do' request.
9314         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
9315         * macros/Makefile: Install tmac.X*.
9317         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
9318         * tty/Makefile: Don't install tmac.tty*.
9319         * macros/Makefile: Install tmac.tty*.
9321         * dvi/tmac.dvi: Move to macros.
9322         * dvi/Makefile: Don't install tmac.dvi.
9323         * macros/Makefile: Install tmac.dvi.
9325         * ps/tmac.ps*: Move to macros.
9326         * ps/Makefile: Don't install tmac.ps*.
9327         * macros/Makefile: Install tmac.ps*.
9329         * eqn/box.c: Provide draw_lines parameter corresponding to -D
9330         option.
9331         * macros/eqnrc: Set draw_lines parameter based on device.
9332         * groff.c: Don't pass -D flag to eqn.
9333         * groff.sh: Likewise.
9334         * eqn/main.c: Warn about use of -D.
9336         * troff/input.c (process_startup_file): New function.
9337         (main): Call process_startup_file().
9338         * macros/troffrc: New file.
9339         * macros/Makefile: Install troffrc.
9340         * groff.c (main): Don't pass extra -m option to troff. For a 
9341         pseudo device pass the name of the pseudo device to troff using
9342         -d.
9343         * groff.sh: Likewise.
9344         * groff.c (possible_command::prepend_arg): Deleted.
9346         * troff/input.c (do_request): New function.
9347         (init_input_requests): Bind "do" to do_request.
9349         * eqn/main.c (main): Instead of loading eqnchar from device directory,
9350         load eqnrc from macro directory.
9351         * macros/eqnrc: New file.
9352         * macros/Makefile: Install eqnrc.
9353         * ps/devps/eqnchar: Deleted.
9354         * ps/devps/Makefile: Don't install eqnchar.
9355         * dvi/devdvi/eqnchar: Deleted.
9356         * dvi/devdvi/Makefile: Don't install eqnchar.
9357         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
9358         variable optM.
9360         * lib/device.[ch]: New files.
9361         * lib/font.h (font::set_device_name, font::get_device_name):
9362         Deleted.
9363         * lib/fontfile.c: Use device.h.
9364         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
9365         * troff/input.c: Delete definition of `device'.
9366         (main): Don't initialize device.
9367         * troff/troff.h: Include device.h rather than declaring device.
9368         * troff/Makefile: No need to handle DEVICE.
9369         * driver/input.c: Include device.h. Don't use
9370         font::{set,get}_device_name.
9371         * groff.c, Makefile: Rename device.h to config.h.
9372         * groff.c: Use library device variable.
9373         * eqn/main.c: Use library device variable.
9374         * eqn/Makefile: No need to handle DEVICE.
9376         * lib/searchpath.[ch]: New files.
9377         * lib/Makefile: Handle searchpath.[ch].
9378         * troff/input.c (open_file, init_dirs): Deleted.
9379         (macro_dirs): Deleted.
9380         (open_mac_file, macro_source): Use class search_path.
9381         (add_string, struct string_list): Move definition.
9382         (main): Change -M option to use macro_path. Delete call to
9383         init_dirs().
9384         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
9385         Rewrite to use class search_path.
9386         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
9387         * lib/Makefile: fontfile.c depends on searchpath.h.
9388         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
9389         MACROPATH.
9390         * lib/macropath.[ch]: New files.
9391         * troff/Makefile: No need to handle MACROPATH.
9393         * troff/input.c: Delete DUMP code.
9394         * lib/fontfile.c, lib/font.h: Delete
9395         font::forget_command_line_font_dirs.
9397         * troff/input.c (push_token): New function.
9398         (handle_first_page_transition): Use push_token().
9399         (process_input_stack): Change handling of a space at the beginning
9400         of the line.
9402 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
9404         * troff/input.c (font_dirs): Delete unused variable.
9406         * eqn/lex.c (do_set): Correct error messages.
9408 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
9410         * troff/input.c (do_define_string): Allow the string name to be
9411         followed immediately by a tab.
9412         (define_character): Likewise.
9414 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
9416         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
9417         be negative.
9419         * troff/input.c (input_iterator::is_file): New virtual function.
9420         (file_iterator::is_file): New function.
9421         (input_stack::end_file): New function.
9422         (input_stack::next_file): Handle the situation where there is no
9423         file on the input stack correctly.  Avoid making two passes over
9424         the input stack.
9425         (next_file): Make the filename optional; in this case call
9426         input_stack::end_file().
9428 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
9430         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
9431         produce a real _ charater when the current font is CW and _
9432         otherwise.
9434         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
9435         expression to work around gcc 2.2 bug.
9437 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
9439         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
9441         * troff/env.c (environment::add_padding): New function.
9442         (environment::add_char): Use add_padding().
9443         (environment::space): Likewise.
9444         (environment::wrap_up_field): Add some padding if there is none
9445         and there's no current tab.
9446         * troff/env.h: Declare environment::add_padding.
9448 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
9450         * pic/pic.y: undef fmod and rand before declaring them.
9452 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
9454         * troff/input.c (main): If the DESC file specifies a font name of
9455         0, then leave the corresponding font position empty.
9457         * nroff.sh: New file.
9458         * Makefile (install.nobin): Install nroff.sh.
9460         * tty/devlatin1/R.proto: Add ao as synonym for de.
9461         * tty/tmac.tty-char: Define ao as o.
9463         * tty/dev{ascii,latin1}/R.proto: Add aq.
9464         * tty/tmac.tty-char: Delete definition of aq.
9466 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
9468         * troff/input.c (init_charset_table): Don't translate 0240.
9469         * ps/tmac.ps: Translate char160 to space.
9470         * dvi/tmac.dvi: Likewise.
9471         * tty/tmac.tty: Likewise.
9473 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
9475         * dvi/tmac.dvi: Add support for all Latin-1 characters.
9477         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
9478         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
9479         \(oe, \(r?, \(r!.
9481         * tty/tmac.tty-char: Add \(ah.
9483         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
9484         No need to define \(FM and \(!/. Conditionalize all character
9485         definitions.
9487         * ps/devps/lgreekmap: Add +h, +f, +p.
9489         * ps/tmac.psnew: New file.
9490         * ps/Makefile: Install tmac.psnew.
9492         * troff/input.c (charinfo_to_node_list): Don't ever interpret
9493         character definitions in compatible mode.
9495         * troff/input.c (remove_character): New function.
9496         (init_input_requests): Bind remove_character to "rchar".
9498         * ps/tmac.psold: New file.
9499         * ps/Makefile: Install tmac.psold.
9500         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
9501         characters into tmac.psold.  Make these definitions unconditional.
9503         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
9505         * ps/tmac.ps: Don't define \('c and \('C.
9507         * ps/devps/textmap: Move Greek characters to...
9508         * ps/devps/symbolchars:
9510 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
9512         * ps/devps/text.enc: Add quotesingle.
9513         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
9514         * tty/tmac.tty-char: Likewise.
9515         * dvi/devdvi/texmi.map: Add +h, +f, +p.
9516         * dvi/devdvi/texi.map: Add Fn.
9517         * dvi/devdvi/msam.map: Add lz.
9518         * dvi/tmac.dvi: Handle Bq, bq, aq.
9520         * pic/lex.c (get_token): Recognize 'th.
9521         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
9523 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
9525         * ps/devps/textmap: Move di, mu, +- to...
9526         * ps/devps/symbolchars:
9528         * macros/tmac.s (@XS): Don't call par@reset or fi.
9529         (XA): Call LP. Turn off adjustment. Reduce line length.
9531         * macros/tmac.s: Initially alias XS to LP.
9532         (XS): Rename to @XS.
9533         (cov*ab-init): Alias XS to @XS.
9535 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
9537         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
9538         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
9539         (token::is_size, token::changes_env): Deleted.
9540         * troff/number.c (parse_term): No need to process \s explicitly.
9541         Call tok.next() only after scale indicator has been processed.
9542         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
9543         \f etc explicitly.
9544         (token::next): Handle \s, \f, \S, \H immediately rather than
9545         returning them as tokens.
9546         (token::operator==, token::description, token::add_to_node_list,
9547         token::process): Remove handling of deleted tokens.
9549         * troff/env.c (environment::add_char): When adding padding
9550         indicator character, call start_line() if necessary.
9552 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
9554         * ps/devps/afmtodit: Don't output 0 kerns.
9556         * ps/devps/afmtodit: Remove directory from name of encoding in
9557         font description file.
9559         * ps/devps/afmtodit: Improve error messages.
9561         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
9563         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
9564         * ps/devps/FontMakefile: Deleted.
9565         * ps/devps/afmname: New file.
9567         * ps/devps/symbol.sed: New file.
9568         * ps/devps/symbol.diff: Deleted.
9569         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
9570         Generate zapfdr.afm from zapfd.afm.
9572         * tty/tmac.tty (tty-char): Prefix definition with ".
9574         * macros/tmac.an (TP): Don't start a diversion if one has already
9575         been started.
9577         * tty/tmac.tty-char: Add Latin-1 characters.
9579         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
9581 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
9583         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
9584         Move declaration of struct horizontal_span.
9586         * tbl/table.c (table::table): Initialize span_list.
9587         (table::~table): Delete span_list.
9589         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
9591         * ps/devps/Makefile: Avoid dependency on GNU make.
9593         * ps/tmac.ps: Check that character does not already exist before
9594         defining it.
9596         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
9597         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
9598         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
9599         files.
9601         * tty/tmac.tty-char: New file.
9602         * tty/Makefile: Install tmac.tty-char.
9603         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
9604         tmac.tty-char.
9606         * tty/tmac.tty: Fix definition of \(34.
9608         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
9609         bracket-drawing characters onto |. Add *o.
9611         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
9612         only if current_field.
9614         * troff/dictionary.c (dictionary::lookup): Free old_table after
9615         rehashing. 
9617 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
9619         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
9620         whose glyphs are identical to glyphs of some Roman character.
9622         * tty/devlatin1/R.proto (bu): Deleted.
9623         * tty/devascii/R.proto (bu): Deleted.
9624         * tty/tmac.tty: Add definition of \(bu.
9626         * eqn/main.c (do_file): Pass FILE as argument.
9627         (main): Automatically load eqnchar.  New options -F and -n.
9628         Pass do_file an opened FILE.
9629         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
9630         No need to include font.h.
9631         * groff.sh: Likewise.  Don't need to use - for standard input.
9632         Prefix files with -- if first file starts with -.
9634         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
9636         * troff/env.c (environment::possibly_break_line): Don't set line
9637         to 0 across call to output_line().  Don't call output_line() until
9638         after discarding nodes after break.
9640 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
9642         * request.h (macro::empty): Declare it.
9643         * input.c (macro::empty): New method.
9644         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
9645         macro is empty.
9647 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
9649         * troff/env.c (environment::start_field): Decrement space_total
9650         when a space is frozen.
9652 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
9654         * macros/tmac.an (R): Delete macro.
9656         * troff/input.c (get_copy, token::next): Support \# (like \" but
9657         newline is ignored).
9659         * troff/input.c (token::next): Fix error message in 'Y' case.
9661 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
9663         * eqn/delim.c (define_extensible_string): Recognize any prefix of
9664         a delimiter name.
9666 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
9668         * c++test.c: Include <osfcn.h>.
9670         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
9671         <errno.h> doesn't.
9673 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
9675         * tbl/table.c (table::divide_span): Don't count column separation
9676         if expand was specified.
9678         * tbl/main.c (process_format): Don't ignore width specs in
9679         continued format.  Give warning for changing equal widths or
9680         column separation in continued format.
9681         (process_data): Set column separation, minimum width, equal
9682         columns at end of table.
9684 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
9686         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
9687         node::add_discretionary_hyphen): Use soft_hyphen_char.
9688         (set_soft_hyphen_char): New function.
9689         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
9691         * Makefile (c++tested): Give more helpful message if test fails.
9693 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
9695         * troff/input.c (init_charset_table): Translate 0240 to
9696         an unbreakable space.
9698         * troff/token.h (token::hyphen_indicator): New function.
9699         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
9700         translation.
9701         * troff/input.c (translate): Allow translation to \%.
9702         * troff/node.c (node::add_char): Handle
9703         TRANSLATE_HYPHEN_INDICATOR.     
9704         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
9706         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
9707         for \(hy.
9709         * tty/devlatin1/R.proto: \(hy and - should print as 055.
9711 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
9713         * groff.c (run_commands): If the last command gets a SIGPIPE send
9714         a SIGPIPE to all children than haven't yet terminated.  When
9715         command terminates, set pid field to -1.
9717 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
9719         * groff.c (main): Pass an appropriate -filename option to gxditview.
9721 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
9723         * Makefile.bd (install): Remove existing program before copying.
9725         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
9726         programs which have Unix counterparts to be installed with
9727         user-specified prefix.
9729         * troff/input.c (exit_troff): Don't check if exit_started.
9730         (exit_request): Don't call exit_troff if exit_started.
9732         * Makefile.bd (install.mm): Rename to install.dwbmm.
9734 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
9736         * driver/input.c (do_file): Add missing break for '#' case.
9738 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
9740         * troff/input.c (input_stack::clear):  Clear past any boundaries and
9741         then add the boundaries back.
9743         * troff/input.c (exit_troff): Return immediately if already
9744         exiting.
9746         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
9747         end macro.
9748         (pg*end-page): If the text has ended and there are no more
9749         footnotes or keeps, exit.
9751         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
9753         * troff/input.c (init_charset_table): Make \(rq transparent by
9754         default.
9756         * macros/tmac.an: Define lq and rq strings.
9758         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
9760 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
9762         * troff/env.c (environment::final_break): New function.
9763         (environment::newline): Set prev_line_interrupted to 2 if
9764         exit_started.
9765         * troff/env.h: Declare environment::final_break.
9766         * troff/input.c (exit_troff): Call environment::final_break()
9767         instead of environment::do_break().
9769         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
9770         doesn't already exist.
9771         * macros/man.local: New file.
9772         * macros/tmac.an: Load man.local.
9773         * macros/man.ultrix: New file.
9775 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
9777         * troff/input.c (exit_groff): Rename to...
9778         (exit_troff): New function.
9780         * troff/div.c (exit_started, done_end_macro,
9781         seen_last_page_ejector): New global variables.
9782         (began_page_in_end_macro): New static variable.
9783         (exit_flag): Deleted.
9784         (top_level_diversion::top_level_diversion): Initialize
9785         last_page_count.
9786         (top_level_diversion): More elaborate test for whether
9787         cleanup_and_exit() should be called.
9788         Set began_page_in_end_macro if the end macro isn't yet finished.
9789         * troff/div.h (top_level_diversion::last_page_count): New data
9790         member.
9791         (top_level_diversion::set_last_page): New function.
9792         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
9793         * troff/env.c (do_break): Zero prev_line_interrupted.
9794         * troff/input.c (exit_flag): Delete declaration.
9795         (LAST_PAGE_EJECTOR): New magic cookie.
9796         (token::next): Handle LAST_PAGE_EJECTOR.
9797         (exit_groff): Set exit_started and done_end_macro instead of
9798         exit_flag.  Call top_level_diversion::set_last_page.  Push a
9799         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
9800         another ejection after setting seen_last_page_ejector.
9802 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
9804         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
9806         * macros/tmac.e (TH): Make sure there's room for the initial
9807         header.
9809         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
9810         Set FVS in points rather than units.
9812 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
9814         * troff/div.c (top_level_diversion::add_trap): Don't consider the
9815         position of empty slots.
9817 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
9819         * ps/devps/S: Fix height and depth of parenrightex.
9820         * ps/devps/symbol.diff: Regenerate.
9822 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
9824         * tmac.e (u): Do underlining as in -mgs.
9826 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
9828         * tty/tty.c (tty_printer::end_page): If overstriking is
9829         suppressed, still turn overstruck horizontal and vertical lines
9830         into +.
9832         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
9833         2.1.
9835         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
9837 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
9839         * Version 1.05 released.
9841 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
9843         * tty/tty.c: Instead of keeping an array of glyphs and then
9844         sorting it, keep a ordered linked list of glyphs for each line.
9846         * driver/driver.h: Include stddef.h.
9848         * tty/tty.c (compare_glyph):
9849         * refer/refer.c (rcompare):
9850         * troff/env.c (compare_ranges): Arguments of qsort comparison
9851         function should be const void *.
9853         * troff/number.c (parse_term):
9854         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
9855         switch statement.
9857         * refer/label.y (consider_authors): Don't access variables
9858         constructed under a condition outside that condition: put braces
9859         round for statement containing declaration; redeclare use of same
9860         variable later.
9862         * pic/pic.y (text_expr): Delete production that allows
9863         parenthesised text_expr.
9864         (expr): Allow a conditional_expr to appear in parentheses.
9865         (conditional_expr): Rename to any_expr.
9867         * mm: Install new version 1.01 from jh.
9869         * lib/font.c (font::get_width): Cache scaled widths.
9870         (font::font): Initialize widths_cache.
9871         (font::~font): Destroy widths_cache.
9872         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
9874 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
9876         * c++test.c, c++test.ref: New files.
9877         * Makefile: Check that the C++ compiler works.
9879         * ps/tmac.pspic (PSPIC): Do a break.
9881         * ps/tmac.ps: Move definition of PSPIC into...
9882         * ps/tmac.pspic: New file.
9883         (PSPIC): Draw box around picture, but make it invisible to grops.
9884         * ps/tmac.ps: Load tmac.pspic.
9885         * ps/Makefile: Install tmac.pspic.
9887 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
9889         * lib/font.c (scale_round): If n is negative,
9890         subtract .5 before truncating floating point result.
9892         * lib/fontfile.c: Include <errno.h>.
9894 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
9896         * driver/input.c (get_char): Inline. Don't update current_lineno.
9897         Change callers to up date current_lineno if necessary.
9898         Use get_char() instead of getc(current_file).
9900 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
9902         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
9904 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
9906         * tty/tty.c (tmac.tty): Define \(rg as (R).
9908 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
9910         * lib/lib.h: New define a_delete.
9911         * Use a_delete instead of delete when deleting an array of objects
9912         without destructors.
9914         * lib/lib.h: Rename adelete to ad_delete.
9915         * Change uses of adelete.
9917 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
9919         * eqn/eqn.y: Include lib.h.
9921         * troff/node.c (grow_font_table): Delete old_font_table.
9923         * mm: Install new version from jh.
9925 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
9927         * tbl/table.h (format_type): Make global instead of local to class
9928         entry_format.  Prefix enumerators with FORMAT_.
9929         * tbl/table.c, tbl/main.c: Corresponding changes.
9930         * refer/token.h (token_type): Make global.  Prefix enumerators
9931         with TOKEN_.
9932         * refer/token.[ch]: Corresponding changes.
9933         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
9935         * troff/div.c (node::set_vertical_size): Don't name argument.
9937 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
9939         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
9940         * lib/lib.h: Define adelete accordingly.
9941         * pic/object.c (graphic_object::graphic_object):
9942         * tbl/main.c (format::~format):
9943         * tbl/table.c (table::~table):
9944         * refer/ref.c (reference::~reference, reference::merge,
9945         reference::insert_field, reference::delete_field): Use adelete.
9947         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
9948         * refer/token.h:
9949         * tbl/table.h: Corresponding changes.
9951         * common.c (common_output::dashed_arc, common_output::dotted_arc):
9952         Ensure total_angle is positive.
9954 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
9956         * refer/ref.c (reference::merge, reference::insert_field,
9957         reference::delete_field): Avoid delete[0].
9959         * refer/token.c (init_special_chars): Move calls to cmupper
9960         outside calls to init_two_char_letter to work around bug in gcc
9961         2.0.
9963 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
9965         * lib/new.c (operator new): Use __builtin_new for g++.
9967         * pic/object.c (graphic_object::~graphic_object):  Don't use
9968         delete [] on 0.
9970         * pic/object.c (output::compute_scale): Initialize max_width and
9971         max_height.
9973 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
9975         * troff/input.c (write_request): Call fflush.
9977         * troff/node.h (class composite_node): Move declaration to node.c
9978         * troff/input.c (charinfo_to_node): Rename to ...
9979         (charinfo_to_node_list): Return node list rather than composite
9980         node.
9981         * troff/node.c (make_composite_node): New function.
9982         (make_node, add_char): Call make_composite_node instead of
9983         charinfo_to_node.
9984         (class composite_node): Add a tfont * member.  Delete font_size
9985         member.
9986         (composite_node::composite_node, composite_node::copy,
9987         composite_node::size): Corresponding changes.
9988         (composite_node::tprint): Provide constant spacing, emboldening
9989         and track kerning as specified in tfont.
9990         (composite_node::width): Change width calculation accordingly.
9991         * troff/env.h (environment::composite): New member.
9992         (environment::is_composite, environment::set_composite): New
9993         functions.
9994         * troff/env.c (environment::environment): Initialize composite.
9995         * troff/input.c (charinfo_to_node): Call
9996         environment::set_composite.
9997         * troff/node.c (make_composite_node, make_glyph_node): Use the
9998         plain version of the tfont if the environment is composite.
10000         * troff/node.c (font_info::get_space_width): Additional argument
10001         giving space_size.  Handle constant space correctly. Scale by
10002         space_size unless constant spaced.
10003         (env_sentence_space_width): New function.
10004         * troff/node.h: Declare it.
10005         * troff/env.h (environment::get_space_size,
10006         environment::get_sentence_space_size,
10007         environment::get_narrow_space_width,
10008         environment::get_half_narrow_space_width): Make inline.
10009         (environment::get_space_width): Make inline.  Just call
10010         env_space_width.
10011         * troff/env.c: Delete definitions for funtions made inline.
10012         (environment::space_newline, environment::space): Use
10013         env_sentence_space_width(). Don't scale by space_size.
10014         * troff/node.h: Move declarations of env*space_width() functions
10015         into env.h.
10017 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
10019         * macros/tmac.s (PS): Don't try to set negative indent.
10021 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
10023         * pic/pic.y: Fix min function.
10025 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
10027         * man/mdate.sh: Clear LANGUAGE.
10029 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
10031         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
10032         * pic/lex.c: New COMMAND keyword.
10033         * pic/pic.y (print_args, print_arg): New rules.
10034         (placeless_element): Use print_args for PRINT.
10035         New COMMAND element.
10037 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
10039         * troff/input.c (terminal): Handle missing argument correctly.
10041         * pic/pic.y (text_expr): New rule.
10043         * pic/pic.y: Implement := operator.
10045 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
10047         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
10048         mdoc.
10050 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
10052         * ps/devps/dingbatsrmap: Include this in the distribution.
10054         * macros/tmac.doc: Replace with new version from 2nd Networking
10055         Release. Fix loading of doc-* files.
10056         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
10057         * macros/tmac.doc.old: New file.  Apply fixes that had been
10058         applied to old tmac.doc.
10059         * macros/tmac.andoc: Check that we're running under groff.
10060         * macros/Makefile: Rework.
10062 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
10064         * tbl/table.h (format_type): 
10065         * refer/token.h (token_type): If NESTED_TYPES is defined, use
10066         typedef to make these types visible at file scope.
10067         * Makefile: Add NESTED_TYPES configuration option.
10069         * troff/div.c (mark): At the top level use the value of
10070         nl_reg_contents rather than the current vertical position.
10072 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
10074         * tty/tty.c: Implement \D for horizontal or vertical lines.
10075         (tty_printer::set_char): Use vec_used+2 as serial number.
10076         Don't allow size of vector to exceed USHRT_MAX-2.
10077         Split off part into...
10078         (tty_printer::add_char): New function.
10079         (tty_printer::draw): New function.
10080         (compare_glyph): Handle equal serial numbers.
10081         (tty_printer::end_page): Handle overstruck characters from \D.
10082         (main, usage): Implement -d option.
10084 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
10086         * tbl/main.c (process_format):
10087         * eqn/text.c (split_text):
10088         * troff/input.c (token::next): Use inner block for declarations
10089         with initializers in switch statement.
10091 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
10093         * pic/common.c (common_output::dash_line): Cope with zero-length
10094         lines.
10096 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
10098         * Version 1.04 released.
10100 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
10102         * macros/tmac.an (TH): Define a macro an-init to define variables
10103         based on command line arguments.
10104         (an-header): Call it.
10106 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
10108         * Makefile (install.mm): Rename to install.dwbmm.
10110         * Makefile: Integrate mm.
10111         * mm: New directory.
10113 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
10115         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
10116         <sys/types.h>.
10118         * pic/troff.c (troff_output::simple_spline,
10119         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
10120         shadowing parameter.
10122         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
10124         * lib/ptable.h: Add explicit casts when converting from unsigned
10125         long to unsigned.
10127         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
10128         * dvi/devdvi/Makefile: Install SA, SB.
10130         * refer/indxbib.c: Add declaration of mktemp.
10132         * refer/lookbib.c: Add declaration of isatty.
10134 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
10136         * pic/lex.c (interpolate_macro_with_args):  While collecting
10137         arguments, keep track of whether we're in a string.
10139 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
10141         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
10142         down with \v, so as to avoid problems with top of page trap
10143         setting no space mode.
10145 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
10147         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
10149 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
10151         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
10152         Improve error message.
10154 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
10156         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
10157         printf("%03o");
10159 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
10161         * groff.c (possible_command::execp): Always use _exit() after a
10162         failed exec.
10164         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
10165         NO_SYS_WAIT_H   configuration options.
10166         * groff.c: Use these options.  Use POSIX-style macros to extract
10167         fields from the status returned by wait().
10169 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
10171         * tbl/table.c (table::compute_separation_factor): Allow the
10172         separation factor to drop to 0.
10174 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
10176         * refer/search.c: Include <errno.h>.
10178 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
10180         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
10182         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
10183         C++. 
10185         * pic/lex.c (input_stack::bol): Move definition out of class body.
10187         * pic/main.c: On MSDOS munge argv[0].
10189         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
10191         * lib/ptable.c (hash_string): Use unsigned long rather than
10192         unsigned.
10193         (next_ptable_size): Use unsigned rather than int.  Give an error
10194         message if we've hit the largest table size.
10195         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
10196         table size.
10198         * pic/object.h (object_spec): Make flags unsigned long.  Declare
10199         flags as const unisgned long rather than as enums.
10201         * pic/output.c: Deleted.
10203         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
10205         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
10206         Add additional argument.
10207         (line_entry::note_double_vrule_on_{left,right}): Set value of
10208         douvle_vrule_on_{right,left} flag according to argument.
10209         (simple_line_entry::simple_print,
10210         simple_line_entry::double_line_print): If adjacent to double vrule
10211         on a corner extend rather than shorten the rule by half the double
10212         vrule sep.
10214         * troff/number.c (parse_term): In checking for overflow, handle the
10215         case where the current horizontal position is negative.
10217 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
10219         * pic/object.c (draw_arrow): Check for object having zero length.
10221 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
10223         * eqn/main.c (do_file): Split off inline equation handling into...
10224         (inline_equation): New function.  Search for starting delimiter
10225         using...
10226         (delim_search): New function. Don't recognize a delimiter that
10227         occurs in the name of an escape sequence, number register, string
10228         etc.
10230 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
10232         * eqn/delim.c (delim_box::compute_metrics): Don't call
10233         define_extensible_string if left is 0.
10234         (delim_box::output):  Don't print the left delimiter if left is 0.
10235         (delim_box::debug_print): Check for left == 0 before calling printf.
10237 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
10239         * troff/Makefile (majorminor.c): Include only digits in
10240         minor_version.
10242 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
10244         * refer/dirnamemax.c: new file.
10245         * refer/genlimits.c: Deleted.
10246         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
10247         Don't check path length.
10248         * refer/Makefile: Add dir_name_max.o; delete genlimits.
10249         * Makefile: Add PATHCONF_MISSING option.
10251         * refer/indxbib.c (get_cwd): New function.
10252         (main): Use get_cwd().
10253         * lib/getcwd.c: New file.
10254         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
10255         GETCWD in SUBFLAGS.
10256         * lib/Makefile: Compile getcwd.o.
10258         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
10259         userdict.
10261         * refer/indxbib.c (main): Check success of mktemp.
10263         * lib/tmpfile.c: New file.
10264         * lib/Makefile: Add tmpfile.c.
10265         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
10266         * ps/ps.h: Delete declaration of mktemp().
10267         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
10268         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
10269         * driver/driver.h: No need now to include errno.h.
10271         * everywhere: Set errno to 0 before calling fopen().
10273         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
10274         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
10275         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
10277 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
10279         * troff/env.h (translate_space_to_dummy): Declare it.
10280         * troff/env.c (environment::space_newline, environment::space):
10281         If translate_space_to_dummy is set then make the width of spaces 0.
10282         * troff/input.c (translate): If the second character of a
10283         translation is a space, translate to unbreakable space.  If the
10284         first character is a space, set or clear translate_space_to_dummy
10285         according to whether the second character is \&.  Weird!
10287 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
10289         * groff.c (run_commands): Don't use non-zero exit code because a
10290         command gets SIGPIPE.
10292         * groff.c, groff.sh: Use -mXps with -TXps.
10294         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
10295         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
10296         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
10297         (ps_printer::special): New specials invis and endinvis.
10298         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
10299         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
10300         (ps_printer::end_page): Check that invis_count == 0.
10301         (ps_printer::invis_count): New member.
10302         (ps_printer::ps_printer): Initialize invis_count to 0.
10304         * troff/env.c (environment::hyphenate_line): Hyphenation
10305         indicator at beginning of word inhibits splitting after -, \(em
10306         etc.
10308         * pic/pic.y (element): Allow another element to follow } without
10309         any intervening separator.
10311 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
10313         * pic/lex.c (get_delimited): Allow tabs before delimiter.
10315 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
10317         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
10318         declaration of wait() in header files.
10319         * Makefile: Get rid of -DHAVE_UNION_WAIT.
10321         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
10323         * lib/lib.h: Declare return type of strerror as char *.
10325         * man/Makefile: Add g flag to sed substitutions.
10326         * Makefile (shgroff, bindist): Likewise.
10328 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
10330         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
10331         * ps/devps/prologue (PBEGIN): Define showpage after pushing
10332         userdict.
10334 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
10336         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
10337         userdict.
10339 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
10341         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
10342         group.
10344 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
10346         * troff/input.c (define_number_reg):  If currently undefined,
10347         don't define it if the argument is an invalid expression.
10349         * Makefile: Ignore return value of `if' commands without `else'
10350         parts.
10352         * Makefile: Split up CPPDEFINES into a series of separate
10353         configuration options.
10355         * troff/input.c (init_registers): Use time_t instead of long
10356         unless LONG_FOR_TIME_T is defined.  Use returned result rather
10357         than passing pointer.
10358         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
10360         * lib/Makefile (fontpath.h): Use gendef.
10362 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
10364         * troff/input.c (input_iterator::shift): Delete argument name.
10365         * troff/node.c (suppress_output_file::really_begin_page,
10366         suppress_output_file::really_transparent_char, node::ascii_print,
10367         node::tprint): Delete names of unused arguments.
10369 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
10371         * refer/label.y (string):  Pass $4 to command_error.
10373 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
10375         * Version 1.03 released.
10377 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
10379         * Makefile: Pass definition of SHELL in SUBFLAGS.
10381         * gendef: New file.
10382         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
10383         ps/Makefile: Use gendef to construct header files that are
10384         constructed from the Makefile.
10386         * macros/Makefile: make all should build stripped version of tmac.e.
10388         * refer/Makefile (clean): Remove y.output.
10390 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
10392         * ps/pfbtops.c (main): Add -v option which prints out a version
10393         number.
10394         * ps/Makefile (pfbtops): Link with libgroff.a.
10396 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
10398         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
10399         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
10401         * refer/lkbib.c (main): Always terminate reference with blank
10402         line.
10403         * refer/lookbib.c (main): Likewise.
10405         * refer/linear.c (file_buffer::load): Check that the file is not a
10406         binary file.
10408         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
10409         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
10410         Delete second inclusion of <sys/param.h>.
10412 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
10414         * troff/token.h (token::special): Deleted.
10416         * tbl/main.c (process_format): Rework so that opt->tab_char is
10417         recognized only when appropriate.
10419         * ps/Makefile (clean): Remove pfbtops.
10421 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
10423         * lib/font.c (text_file::next): Don't return if we have got a
10424         blank line.
10426 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
10428         * refer/refer.c (store_reference): Get hash code from old_table[i]
10429         when rehashing the table.
10431 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
10433         * eqn/box.c (box::top_level): Save size and prev size using \R and
10434         restore it afterwards. Set the size to the size at the beginning
10435         of the line.
10436         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
10437         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
10439         * refer/Makefile (limits.h): Use ./genlimits.
10441 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
10443         * refer/index.c: Delete declarations of stat() and fstat().
10445 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
10447         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
10449 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
10451         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
10453 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
10455         * troff/input.c (token::get_char): Handle \e.
10457         * refer/linear.c: Delete declarations of fstat() and stat().
10459 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
10461         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
10462         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
10464 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
10466         * troff/input.c (do_define_macro): Improve error handling for end
10467         of file while defining macro.
10469 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
10471         * eqn/box.h: Fix declaration of set_gsize.
10472         * eqn/box.c (set_gsize): Make argument const char *.
10473         (gsize): Declare as char *.
10474         * eqn/main.c (main): Don't convert gsize to int.
10475         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
10477         * Version 1.02 released.
10479 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
10481         * macros/tmac.andoc: New file.
10482         * macros/Makefile: Install tmac.andoc.
10484         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
10485         operator new and delete on OP_DELETE_BROKEN not being defined.
10486         * Makefile: Mention OP_DELETE_BROKEN.
10488 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
10490         * Makefile (bindist): Pass SUBFLAGS.
10492 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
10494         * Makefile, groff.c: Pass definitions to groff.c via device.h.
10496         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
10497         parameter.
10499         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
10501         * ps/ps.h, ps/psrm.c: Make comment_table and
10502         header_comment_table local to resource_manager::process_file.
10504         * groff.sh: With -TXps pass -printCommand option to gxditview.
10506         * groff.c (possible_command::print): Implement using
10507         append_arg_to_string.
10509         * xditview: Merge in new implementation with own ChangeLog.
10511 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
10513         * groff.c (main): Implement PRINT_OPTION.
10514         (append_arg_to_string): New command.
10515         (device_table): Set PRINT_OPTION flag for Xps.
10517 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
10519         * troff/groff.h: Rename to troff.h.
10521         * pic/lex.c (lookup_keyword, docmp): New functions.
10522         (get_token): Use new lookup_keyword.
10523         Don't include key.h.
10524         * pic/key.[ch], pic/pic.gperf: Deleted.
10525         * pic/Makefile: Remove gperf stuff.
10527         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
10528         into output.h.
10529         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
10531         * troff/Makefile, troff/node.c: Move definition of
10532         STORE_WIDTH into node.c.
10534         * etc/grog.pl, etc/grog.sh: Support -mdoc.
10536 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
10538         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
10539         dvi/devdvi/texb.map: Add lq and rq.
10540         dvi/devdvi: Regenerate fonts.
10541         * ps/devps/textmap: Add lq and rq.
10542         * ps/devps: Regenerate fonts.
10543         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
10544         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
10546         * pic/object.c (position_rectangle): When checking radius
10547         cope with possiblity that width or height is negative.
10548         (box_object::box_object): Have separate xrad and yrad with
10549         signs matching signs of dim components.
10550         (box_object::{north,south}_{east,west}): Use xrad and yrad.
10551         (box_object::print): With rounded boxes use absolute values
10552         for dim and rad arguments.
10554         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
10555         in fontpath.h.
10557         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
10559         * various files: Add explicit destructors to keep Saber CC +d
10560         happy.
10562 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
10564         * eqn/box.c (box::top_level): Restore fonts correctly after
10565         font changes in line containing inline equation.  Also
10566         restore previous font as well as current font.
10567         * eqn/pbox.h: Define necessary string and register names.
10569         * troff/input.c (token::next): Case 'R' calls do_register.
10570         (do_register): New function.
10572 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
10574         * groff.c, groff.sh: Support Xps device.  Allow each device
10575         to have a pseudo_name and a real_name.
10577         * groff.c (run_commands): Don't print `Broken pipe' messages.
10579         * ps/pfbtops.c: New file.
10580         * ps/Makefile: Add pfbtops.
10582         * troff/number.c (parse_term): Improved error message.
10584 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
10586         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
10588         * Makefile: Integrate refer.
10589         * refer: New directory.
10590         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
10591         man/lkbib.man: New files.
10592         * man/Makefile: Support refer man pages.
10594         * lib/lib.h: Declare is_prime.
10595         * lib/prime.c: New file.
10597         * troff/input.c (macro_source): New function.
10598         (init_input_requests): Bind "mso" to macro_source.
10600         * troff/env.c (environment::possibly_break_line): Maintain
10601         pointer to pointer to node to be split in ndp so as to avoid
10602         using address of freed node.
10604         * troff/env.c (environment::hyphenate_line): Maintain pointer to
10605         pointer to first node to be hyphenated in startp so as to
10606         avoid using address of freed node.
10608         * troff/env.c (class trie, class hyphen_trie): Make the
10609         elements of the trie be of type char not unsigned char.
10610         Declare arguments to be const char* instead of unsigned char *.
10611         
10612         * troff/env.c (hyphenate): Initialize hbuf[0].
10614         * troff/input.c (set_string): Declare p to be char * and cast
10615         *p to unsigned char when necessary.
10617         * troff/input.c (do_define_macro): Declare s to be const
10618         char*. Cast element to unisgned char when necessary, Declare
10619         d to be an int.  Handle EOF better.
10621         * troff/Makefile, troff/input.c: Different scheme for passing
10622         definitions of MACROPATH, HYPHENFILE and DEVICE.
10624 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
10626         * tty/devascii/R.proto: Delete entry for em.
10627         * tty/devlatin1/R.proto: Likewise.
10629 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
10631         * troff/input.c (translate): Stop when we get a space. Treat eof
10632         like newline.
10634         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
10636 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
10638         * tbl/main.c (process_format): A font name following a `f'
10639         modifier that starts with a digit can be only one character long.
10640         Also deal with EOF on the second character of the font name.
10642 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
10644         * troff/input.c (token::next): Turn \~ into an
10645         unbreakable_space_node.
10646         * troff/node.c (unbreakable_space_node): New class.
10647         * troff/node.h: Declare it.
10649 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
10651         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
10652         it's >= 0, before outputting it as a single byte.
10654 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
10656         * lib/font.c: Make font_char_metric::code an int.
10657         (font::get_code): Change return type to int.
10658         (font::load): Allow code to be arbitrary integer.
10659         * lib/font.h (font::get_code): Change return type to int.
10660         (font::number_to_index): Change argument type to int.
10661         * troff/input.c (token::next):  In case 'N', allow any value.
10662         Store value in token::val.
10663         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
10664         (token::get_char, token::add_to_node_list, token::process): Get
10665         number from val.
10666         (charinfo::set_number): Change argument to int.
10667         (charinfo::get_number):  Require that NUMBERED flag be set.
10668         (get_charinfo_by_number): Store numbered characters not between 0
10669         and 255 in a dictionary.
10670         * troff/charinfo.h (get_charinfo_by_number): Change argument type
10671         to int.
10672         (charinfo::number): Change type to int.
10673         (charinfo::set_number): Change type of set_number to int.
10674         * troff/node.c (troff_output_file::put_char_width,
10675         troff_output_file::put_char): Test whether character is numbered
10676         using charinfo::numbered().
10677         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
10678         values of num.
10679         * lib/nametoindex.c: New implementation to cope with arbitrary
10680         number characters.
10682         * troff/input.c (token::operator==): Test val for
10683         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
10684         TOKEN_SIZE.
10686         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
10687         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
10689 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
10691         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
10692         variable.
10694         * all Makefiles: rm targets of cp and >.
10696         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
10697         it.
10699         * eqn/lex.c (def_table): Add dollar.
10701 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
10703         * troff/input.c (do_width): Push back newline before closing delim
10704         like do_bracket.
10706 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
10708         * groff.c (possible_command::prepend_arg): New function.
10709         (main): Prepend device -m option.
10710         * groff.sh: Put device -m options before command-line options.
10712 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
10714         * macros/tmac.an (IP): Quote argument to TP.
10716         * ps/ps.c (main): New option -b, which sets...
10717         (broken_flags): New variable.
10718         (ps_printer::~ps_printer): Incorporate the setup section in the
10719         prolog if (broken_flags & NO_SETUP_SECTION).
10720         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
10721         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
10722         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
10723         ps_printer::print_needed_font_comment,
10724         ps_printer::print_supplied_font_comment,
10725         ps_printer::print_include_font_comments,
10726         ps_printer::lookup_doc_font, ps_printer::download_fonts,
10727         ps_printer::read_download_file, read_document_fonts, add_font,
10728         skip_line, parse_fonts_arg, document_font::document_font,
10729         document_font::~document_font, document_font::download,
10730         ps_output::include_file):  Deleted.
10731         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
10732         rather than %!PS-Adobe-2.0.  Make calls to
10733         resource_manager::need_font for each font that we used. Replace
10734         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
10735         print_supplied_font_comment, print_needed_font_comment by call to
10736         resource_manager::print_header_comments. Output %%Orientation
10737         comment. Output %%Requirements: numcopies comment if ncopies > 1.
10738         Don't output the prolog directly.  Instead call
10739         resource_manager::output_prolog.  Only define #copies when ncopies
10740         > 1.  Delete calls to print_include_font_comments  and
10741         download_fonts.  Add call to resource_manager::document_setup.
10742         (ps_printer::do_file): Call resource_manager::import_file instead
10743         of including it ourselves.
10744         (ps_printer::do_import): Likewise.  Also don't call
10745         merge_import_fonts. Push userdict on the dictionary stack before
10746         and pop it afterwards.
10747         Move declaration of ps_output into ps.h.
10748         * ps/psrm.c: New file implementing resource_manager class.
10749         * ps/ps.h: New file declaring ps_output and resource_manager
10750         classes.
10751         * ps/devps/zapfdr.ps:
10752         * ps/devps/symbolsl.ps:
10753         * ps/devps/prologue:  Use 3.0 conventions.
10754         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
10755         Add default definition of BROKEN_SPOOLER_FLAGS.
10756         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
10757         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
10759 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
10761         * etc/grog.pl: New file.
10762         * Makefile (GROG): New variable.
10763         Add GROG to SUBFLAGS.
10764         * etc/Makefile (GROG): New variable.
10765         (install.nobin): Install $(GROG) rather than grog.sh.
10767 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
10769         * eqn/special.c (special_box::compute_metrics): Make the input and
10770         output strings the same.  Get the new height and depth from the
10771         predefined height and depth registers.  Also make subscript kern
10772         and skew available.
10773         (special_box::compute_subscript_kern, special_box::compute_skew):
10774         New functions.
10776         * eqn/box.c (pointer_box::compute_skew,
10777         simple_box::compute_metrics, box::top_level)
10778         * eqn/text.c (prime_box::compute_metrics,
10779         prime_box::comput_subscript_kern)
10780         * eqn/limit.c (limit_box::compute_metrics):
10781         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
10782         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
10783         negative numbers in `nr' requests with a leading 0.
10785 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
10787         * eqn/special.c: New file.
10788         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
10789         Add new rule for simple.
10790         * eqn/lex.c (token_table): Add SPECIAL.
10791         * eqn/box.h: Declare make_special_box.
10792         * eqn/Makefile: Add special.[co].
10794 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
10796         * ps/devps/prologue: Possibly set packing to true while defining.
10797         Create grops dictionary here.  Initialize local variables before
10798         defining procedures.
10799         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
10800         the dictionary stack. Set strokeadjust and overprint to false if
10801         the relevant operators are defined.
10802         (PEND): New procedure.
10803         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
10804         prologue.  Do everything else in the setup section.
10805         (ps_printer::do_import): Just call PBEGIN and PEND around the
10806         picture. Also push userdict before, and pop it afterwards.
10808 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
10810         * troff/node.c (bracket_node::tprint): Brackets were being printed
10811         1m too low.
10813         * macros/tmac.an (SH, SS): Set fill mode.
10815 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
10817         * troff/div.c (top_level_diversion::begin_page): Set
10818         high_water_mark to 0.
10820 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
10822         * man/mdate.sh: New file.
10823         * man/mdate.c: Deleted.
10824         * man/Makefile: Use mdate.sh instead of mdate.
10825         (mdate): Deleted.
10827         * eqn/lex.c (do_gsize): Supply missing argument to error message.
10829 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
10831         * man/mdate.c: New file.
10832         * man/*.man: Replace modification date by @MDATE@.
10833         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
10834         (mdate): New target.
10836         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
10837         Remove illegal input characters.
10839 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
10841         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
10843 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
10845         * troff/div.c (begin_page): Change behaviour when
10846         !first_page_begun and !break_flag.
10848         * troff/input.c (do_name_test): Return 0 if argument is empty.
10850         * troff/input.c (read_long_escape_name): Require closing ] to be
10851         at same input level as opening [.
10853         * troff/input.c (read_increment_and_escape_name): New function.
10854         (get_copy, process_input_stack): Use this for \n.
10856 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
10858         * troff/div.c (top_level_diversion::begin_page): Ignore the
10859         current value of page_number if !first_page_begun.
10861         * groff.c (main): Fix declaration of buf.
10863         * troff/input.c (do_name_test): New function.
10864         (token::next): Implement \A.
10865         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
10866         (token::description, token::add_to_node_list, token::process):
10867         Handle TOKEN_ESCAPE.
10868         * troff/token.h: New token TOKEN_ESCAPE.
10870 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
10872         * pic/main.c (do_picture): Allow space before and after filename
10873         following `<'.  Check that the filename is not empty.
10875 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
10877         * Version 1.01 released. 
10879         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
10881         * dvi/tmac.dvi: ftr HR to H.
10883         * macros/tmac.e: Round up computation of $r.
10885         * xditview/tmac.X:  Don't give up completely in compatibility mode.
10886         Use \n(.s instead of \n[.s].
10888         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
10889         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
10890         Add u to factors inside \s[...]. Rename frac to dvi-frac.
10891         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
10892         short names in the char definitions.
10894         * ps/tmac.ps: Don't give up completely in compatibility mode.
10895         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
10896         quote in front of \n(.s. Add u to factors inside \s[...].
10898 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
10900         * tty/tmac.tty: Call the nroff request.
10902         * macros/tmac.e ((x, )x):  Better definitions that work properly
10903         in a diversion.
10904         (@0, @1): Helper macros for (x.
10906         * macros/tmac.e ($s, hl): Use \l rather than \D.
10908         * tty/tmac.tty: Make it work better in compatibility mode.
10909         (pchar): Rename to tty-char.
10911         * macros/tmac.e (@E): New macro.
10912         (r, i, b, rb, bi): Use @E.
10914         * macros/tmac.e (@F): Don't use (;...) syntax.
10916         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
10917         it was modified for groff.
10919         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
10921         * macros/tmac.e (<., .>): Removed.
10922         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
10924         * macros/tmac.e: Remove check that groff is being used.
10926         * macros/tmac.e (@C): Change families only if using groff; turn
10927         compatibility mode off while changing familes. Save compatibility
10928         mode before changing families and restore it afterwards.
10930         * macros/tmac.e (@h): Remove test for offset + line length.
10932         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
10933         (lo, th, ac): Define to call @S instead of using als.
10935         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
10936         the ratio of the vertical spacing to the point size in units
10937         expressed as a percentage.  Use these instead of $10r and $10R,
10938         Delete $10r and $10R.
10940         * lib/font.c (font::load): In default computation of space_width,
10941         divide by sizescale.  Use scale_round.
10943         * macros/tmac.an (TP): Don't call `nf'.
10944         (an-do-tag): Don't call `fi'.
10946 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
10948         * troff/input.c (process_input_stack): Handle the case where
10949         spaces at the beginning of an input line are followed by a
10950         newline.
10952 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
10954         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
10955         * groff.sh: Use pic -x with the dvi device.
10957         * dvi/devdvi/FontMakefile (H): Don't use -s.
10959         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
10960         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
10961         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
10962         in FONTS.
10964 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
10966         * ps/psfig.diff: New file.
10967         * ps/tmac.psfig: New file.
10969 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
10971         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
10972         (]-): Don't call ref*do-tl.
10974         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
10976         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
10977         (fn@do-FS): Rename to fn*do-FS.
10979         * troff/input.c (transparent_translate): New function.
10980         (process_input_stack): Apply transparent_translate before calling
10981         diversion::transparent_output(unsigned char).
10983 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
10985         * troff/input.c (do_define_macro): Define the macro before calling
10986         skip_line.
10988         * xditview/Makefile: Add DEVICES variable.  Change install target
10989         to use this.
10991 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
10993         * groff.c (run_commands): Handle the possibility that there are
10994         child processes other than those forked by us.
10996 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
10998         * lib/string.c (string::append): New function.
10999         * lib/stringclass.h: Declare it.
11001 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
11003         * eqn/main.c (main): New option -N which sets
11004         no_newline_in_delim_flag. 
11005         (do_file): If no_newline_in_delim_flag is set don't allow newlines
11006         in delimiters.
11007         * groff.c (main): Pass -N on to eqn.
11008         (help, synopsis): Mention -N.
11009         * groff.sh: Implement -N.
11011 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
11013         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
11014         (]-): Call ref*do-tl if ref*need-tl is non-zero.
11015         (XP): Allow as initializer.
11017 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
11019         * troff/env.c (environment::wrap_up_field): If field_spaces are
11020         non-zero and we have a current_tab, subtract padding from
11021         tab_distance.  If this makes tab_distance <= 0, use the next tab
11022         stop instead.  If there isn't any next tab or it's a left tab,
11023         wrap up the current tab.
11024         (environment::start_field): Initialize tab_precedes_field.
11025         (environment::wrap_up_tab): If there's a current field, update
11026         pre_field_width, field_distance and tab_precedes_field.
11027         * troff/env.h (environment::tab_precedes_field): New member.
11029 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
11031         * ps/ps.c (ps_printer::do_file): New function.
11032         (ps_printer::special): Bind to `file' special.
11033         (ps_printer::do_exec): Set ndefined_styles to 0.
11035 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
11037         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
11038         Avoid stripping first character from the start of unrecognized
11039         escapes.  Use lex_error instead of error to report errors.
11040         * eqn/lex.c (get_token): Rework handling of escapes.
11041         (lex_error): Move declaration into...
11042         * eqn/eqn.h.
11044         * xditview/xditview.c (main): Make -page option work.
11046         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
11048 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
11050         * macros/tmac.s (B2): Correct size of box.
11052 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
11054         * macros/tmac.s (B2): Postpone drawing the box until in the
11055         top-level diversion.
11057         * tty/tmac.tty: Add font translations for C, CR, CW.
11059         * groff.c (synopsis, help): Document -i.
11060         * groff.sh: Implement -i.
11062         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
11063         Simplify the construction of SN.
11065         * troff/number.c (parse_term): Give `|' a higher precedence.
11066         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
11067         accordingly.
11069         * macros/tmac.s (B2): Use par@finish instead of par@reset.
11071 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
11073         * lib/string.c (string::move): New function.
11074         * lib/stringclass.h: Declare it.
11076 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
11078         * troff/env.c (distribute_space): Add optional argument
11079         `force_forward'.
11080         (environment::wrap_up_field): Call distribute_space with
11081         `force_forward' argument of 1.
11083 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
11085         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
11086         Inline it.  Move reallocation into...
11087         (string::grow1): New function.
11088         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
11089         dependencies to include library header files.
11090         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
11092 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
11094         * macros/tmac.s (@NH): Use the same number registers than -ms does
11095         for the heading level counters.  Use the same string that -ms does
11096         for the number for this heading.
11098 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
11100         * lib/new.c (operator new): Cast result of malloc to char *.
11102         * troff/input.c (spring_trap, lookup_request): Add assert that nm
11103         is not null.
11105 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
11107         * groff.c (main): Support -i.
11109 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
11111         * pic/pic.h: Include <osfcn.h>.
11113         * ps/ps.c: Add declaration of mktemp.
11115         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
11116         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
11117         argument as union wait *.
11118         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
11119         argument to union wait *.
11121 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
11123         * tty/tmac.tty: Add definition of \(co.
11125         * pic/object.c (make_arc): Only increase radius when radius
11126         strictly less than d.
11127         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
11128         more than once.
11130         * troff/env.c (environment::environment(symbol),
11131         environment::environment(const environment *)):  Initialize
11132         input_trap_count.
11134 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
11136         * tbl/main.c (main): Add exit(0).
11138         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
11140         * pic/main.c (main):
11141         * eqn/main.c (main):
11142         * tbl/main.c (main):
11143         * etc/soelim.c (main):
11144         * driver/printer.c (printer::~printer):
11145         * troff/node.c (real_output_file::~real_output_file,
11146         real_output_file::flush):  Check for errors on stdout.
11148         * most files: Add 1991 to copyright notice.
11150         * macros/tmac.s: Don't test \n(.x and \n(.y.
11152         * troff/input.c (token::next): Rename `escape_char' label to
11153         `handle_escape_char' and `normal_char' label to
11154         `handle_normal_char'.
11156 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
11158         * groff.c (main, synopsis, help): Support -a option.
11159         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
11160         to trflags while parsing options.
11162 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
11164         * troff/number.c (parse_term): With `m', `M' and `n' scale
11165         indicators, convert scale factor to hunits before scaling.
11167 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
11169         * lib/font.c (scale_round): Better test for overflow when n is
11170         negative.
11172 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
11174         * tbl/main.c (process_format): Add second argument of type
11175         options*. Change callers.  Allow opt->tab_char as well as '\t'
11176         between format items.
11178 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
11180         * macros/tmac.an (PD): With no arguments, make sure register PD is
11181         at least \n[.V].
11182         (TH): Call PD with no argument, instead of setting register PD
11183         directly.
11185 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
11187         * Version 1.00 released.
11189 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
11191         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
11193         * dvi/devdvi/DESC: Mount CW instead of CR.
11195         * dvi/tmac.dvi: Add definition of \(tm.
11197         * dvi/devdvi/texsy.map: Add lh, and rh.
11198         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
11199         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
11201         * dvi/devdvi/FontMakefile: Generate H from cmss10.
11202         * dvi/devdvi/Makefile: Install H.
11203         * dvi/devdvi/H: New file.
11205 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
11207         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
11208         be 0.
11210 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
11212         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
11214         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
11216         * macros/tmac.s (@EN): Handle the case where the equation is empty
11217         but the label is not.
11219 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
11221         * troff/groff.h: New warning category WARN_SPACE.
11222         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
11223         WARN_SPACE to warning_table.
11224         (interpolate_macro): Give a warning of type WARN_SPACE if the name
11225         is longer than two characters and is not defined, but the first
11226         two characters do make a defined name.
11228         * PROBLEMS: New file.
11230         * CHANGES: New file.
11231         * README-0.6, README-1.00: Deleted.
11233         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
11234         * xditview/devX75/Makefile: Make devX75-12.
11235         * xditview/devX100/Makefile: Make devX100-12.
11237         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
11238         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
11240 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
11242         * README-0.7: Rename to README-1.00.
11244         * macros/tmac.pic: New file.
11245         * macros/Makefile (install.nobin): Install tmac.pic.
11247 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
11249         * troff/env.c (hyphen_word): Correct the test for whether the
11250         token is a hyphen.  Reset npos to 0.
11252         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
11254 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
11256         * macros/tmac.s (ds*common-end): Call par*reset.
11257         (PE): Likewise.
11258         (par@reset-indent): Deleted.
11260         * macros/tmac.s (@IP): Divert the label.
11262 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
11264         * xditview/draw.c (setGC): Use a line width of .1m rather than
11265         .04m by default; round rather than truncate value.
11267         * tbl/table.c (class empty_entry): New class.
11268         (empty_entry::empty_entry, empty_entry::line_type): New functions.
11269         (table::add_entry): Represent empty entries by objects of type
11270         empty_entry.
11271         (table_entry::line_type): Return -1.
11272         (table::determine_row_type): Ignore entries with line_type 0.
11273         Treat type -1 as non-lines.
11275 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
11277         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
11278         macros/tmac.s: Rename \(-d to \(Sd.
11280 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
11282         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
11283         * xditview/libXdvi/DviChar.c: Likewise.
11284         * dvi/devdvi/texsy.map: Add `<<', `>>'.
11286 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
11288         * troff/div.c (top_level_diversion::begin_page): Call
11289         init_output() if the_output is 0.
11291 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
11293         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
11294         ESCAPE_c.
11295         (get_copy): Turn \E into ESCAPE_E.
11296         (token::process, asciify): Handle ESCAPE_E.
11298         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
11299         (RD): New macro.
11300         (DS): Implement `.DS R'.
11302 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
11304         * macros/tmac.s (FS): New macro.
11306         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
11308         * macros/tmac.s (cov*tl-init): Remove after first execution
11309         instead of aliasing to @nop.  Call top of page macro explicitly
11310         instead of setting trap; call @init first.  Set pg@top as top of
11311         page macro.
11312         (cov*auto-init): Deleted.  Set cov*tl-init instead of
11313         cov*auto-init as top of page trap. 
11314         (TL, LP): Do a break instead of calling cov*tl-init.
11315         (cov*print): With RP format but no TL, alias FS and FE to @FS and
11316         @FE; in this case also give a warning and always start another
11317         page. No need to set pg@top here.
11318         (cov*tl-init): Rename to cov*first-page-init.
11320         * macros/tmac.s (RP): Do `.pn 0'.
11321         (cov*tl-init): With RP format don't do `.pn 0'.
11323         * macros/tmac.s (pg@cs-top): Set no space mode.
11325         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
11326         (cov*ab-init): Alias TL, AU and AI to these.
11328 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
11330         * macros/tmac.s (@EQ): Move the space before the equation into @EN
11331         (@EN): Do nothing unless \n[dl] is > 0.
11333 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
11335         * pic/object.c (ellipse_object::radius): New function.
11337         * VERSION: Change version to 0.7.
11339         * tbl/table.c (block_entry::do_divert): Declare return type as
11340         void.
11341         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
11343 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
11345         * troff/column.c: New file.
11346         * troff/Makefile: Corresponding changes.
11348         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
11349         Friend of vunits.
11351         * troff/div.c (top_level_diversion::space): If the space causes
11352         the first-page transition and springs a trap, truncate the space
11353         to 0.
11355 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
11357         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
11358         the document.
11360         * pic/troff.c (troff_output::line_thickness,
11361         troff_output::set_fill): Do a horizontal motion to compensate for
11362         the width of the \D escape sequence.
11364 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
11366         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
11367         (not X75).
11369         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
11370         to printf.
11372         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
11373         Supply empty definition.
11374         (text_entry::simple_print, simple_text_entry::simple_print):
11375         Delete declarations.
11376         (table::add_entry): Represent empty entries by objects of type
11377         `simple_entry'.
11379 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
11381         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
11383         * tbl/table.c (left_text_entry::add_tab): New function.
11385         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
11386         initialize like LP.
11388 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
11390         * troff/env.c (environment::start_field): Give an error message if
11391         there is no next tab.
11393 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
11395         * troff/env.c (hyphenate): Skip initial elements with zero
11396         hyphenation code.
11398         * macros/tmac.s (par@init): Keep VS in points rather than units.
11400 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
11402         * pic/main.c (main): Implement `-c' option.
11403         * pic/output.h: Declare make_tpic_output().
11404         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
11405         protected.
11406         (tpic_output): New class.
11407         (tpic_output::tpic_output, tpic_output::set_pen_size,
11408         tpic_output::command, make_tpic_output): New functions.
11410 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
11412         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
11413         if they're not already defined.
11414         * tbl/table.c (init_output): Don't test \n(.g.
11416         * troff/input.c (do_if_request): Delete `g' condition. Recognize
11417         `d', `r' and `c' conditions even in compatibility mode.
11419 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
11421         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
11422         box.
11424 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
11426         * troff/env.h (environment::prev_line_interrupted): New member.
11427         (environment::get_prev_line_interrupted): New function.
11428         * troff/env.c (environment::newline): Set prev_line_interrupted.
11429         (environment::environment(const environment *),
11430         environment::environment(symbol)): Initialize
11431         prev_line_interrupted.
11432         * troff/input.c (process_input_stack): Don't give special
11433         treatment to space and newline at the beginning of the line if the
11434         previous line was interrupted.
11436 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
11438         * eqn/eqn.y: Disallow PRIME by itself.
11439         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
11440         PRIME.
11441         (def_table): Remove definition of '.  Define prime to be `.
11443         * eqn/eqn.y: Split off part of rule `script' into a new rule
11444         `nonsup'.
11446 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
11448         * macros/tmac.s ({, }): New string aliases.
11450 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
11452         * README-0.7: New file.
11454 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
11456         * macros/tmac.s: New file.
11457         * man/groff_ms.man: New file.
11458         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
11459         * Makefile.bd: Similarily.
11460         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
11461         definition of TMAC_S.
11462         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
11463         * macros/TODO: New file.
11465 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
11467         * troff/env.c (right_justify): New function.
11468         (init_env_requests): Bind this to request "rj".
11469         (center_lines): Set right_justify_lines to 0. If we get a bad
11470         integer, center 1 line.
11471         (environment::environment(symbol), environment::environment(const
11472         environment *)): Initialize right_justify_lines.
11473         (environment::get_right_justify_lines): New function.
11474         (init_env_requests): Bind this to number_register ".rj".
11476         * troff/env.c (environment::choose_breakpoint): Implement
11477         hyphenation_margin and hyphenation_space.
11478         (environment::get_hyphenation_space,
11479         environment::get_hyphenation_margin): New functions.
11480         (init_env_requests): Bind these to .hys and .hym.
11481         (hyphenation_space_request, hyphenation_margin_request): New
11482         functions
11483         (init_env_requests): Bind these to hys and hym.
11484         (environment::environment(symbol), environment::environment(const
11485         environment *)): Initialize hyphenation_margin and
11486         hyphenation_space.
11487         * troff/env.h: Corresponding changes to class environment.
11489 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
11491         * troff/div.c (blank_line): Always do a break.
11493         * eqn/box.c (do_text): Turn off escapes while appending text to
11494         string.
11496 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
11498         * troff/input.c (while_break_request, while_continue_request): New
11499         functions.
11500         (init_input_requests): Bind these to "break" and "continue".
11501         (while_depth, while_break_flag): New variables.
11502         (while_request): Update while_depth.  Break out of loop if
11503         while_break_flag is set.
11505 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
11507         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
11508         rather than 0.
11510 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
11512         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
11514         * stringify: New file.
11515         * Makefile (groff.o): Use stringify.
11517         * xditview/tmac.X: Remove definition of \(rn.
11518         * xditview/libXdvi/DviChar.c: Remove radicalex from
11519         Adobe_symbol_map.
11521 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
11523         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
11524         (alphabetic_block_entry::alphabetic_block_entry,
11525         alphabetic_block_entry::divert, alphabetic_block_entry::print):
11526         New functions.
11527         (block_entry::divert): Split off body into ...
11528         (block_entry::do_divert): If the block is alphabetic, subtract 2n
11529         from the line length; also update the span width to dl+2n, and the
11530         alphabetic span width to dl.
11532         * driver/input.c (do_file):  While reading argument to D command,
11533         when expanding buffer, multiply szp by sizeof(int) rather than 2
11534         in the argument to memcpy.
11536         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
11537         width of alphabetic columns.
11539 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
11541         * troff/node.c (lookup_family): Supply second argument to lookup.
11543         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
11544         search, return immediately if v is 0.
11546         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
11547         (troff_output::start_picture): Set this reg.
11548         (troff_output::end_picture): Remove this reg
11549         * eqn/box.c (box::extra_space): Don't produce `\x's if
11550         EQN_NO_EXTRA_SPACE_REG is defined.
11552         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
11553         * eqn/text.c (split_text): Map ' to \(fm when it's the first
11554         character.
11556 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
11558         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
11559         requests.
11561         * troff/div.c (top_level_diversion::top_level_diversion):
11562         Initialize page_number to 0.
11564 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
11566         * groff/troff (environment::environment(const environment *)):
11567         Initialize name to e->name, rather than "anonymous".
11569 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
11571         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
11572         requested_page.  Split middle part into ...
11573         (FindPage): New function.
11574         (SetValues): If we don't yet know the last page, and the requested
11575         page is greater than the current page, call FindPage.
11576         Update the font_map_string before doing this.
11578         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
11579         Translate \(lh and \(rh into left and right double arrows.
11581         * troff/node.c (class hyphen_inhibitor_node): New class.
11582         (hyphen_inhibitor_node::hyphen_inhibitor_node,
11583         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
11584         hyphen_inhibitor_node::type,
11585         hyphen_inhibitor_node::get_hyphenation_type): New functions.
11586         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
11587         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
11588         word.
11590 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
11592         * troff/node.h (dummy_node::get_hyphenation_type,
11593         transparent_dummy_node::get_hyphenation_type):  Declare them.
11594         * troff/node.c: (dummy_node::get_hyphenation_type,
11595         transparent_dummy_node::get_hyphenation_type): New functions.
11597 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
11599         * xditview/libXdvi/draw.c: If M_PI not defined after including
11600         math.h, then define it.
11602         * xditview/Makefile: Add definition of AR. Pass it to the submake
11603         in libXdvi.
11604         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
11606 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
11608         * troff/dictionary.h (object_dictionary::alias): Declare return
11609         value as int.
11610         * troff/dictionary.c (object_dictionary::alias): Return non-zero
11611         if the old name was defined.
11612         * troff/input.c (alias_macro): Give a warning if the old name was
11613         not defined.
11614         * troff/reg.c (alias_reg): Likewise.
11616 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
11618         * troff/input.c (token::next): Delete implementation of \R.
11620         * macros/Makefile: Strip comments from tmac.e while installing it.
11622         * troff/input.c: New variable `nroff_mode'.
11623         (troff_request, nroff_request): New functions.
11624         (init_input_requests): Bind `troff' and `nroff' to troff_request
11625         and nroff_request.
11626         (do_if_request): Compute results of t and n conditions from
11627         nroff_mode.
11629         * text/text.c (split_text): Fix typo in >=.
11631         * eqn/lex.c: Add definition of `==' to def_table.
11633 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
11635         * pic/tex.c (tex_output::start_picture): Change the definitions of
11636         \graph and \graphtemp so that they work properly with Plain TeX.
11638         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
11639         argument to `ar' is not less than the first.
11641         * pic/pic.y: Allow a comma between elements of the variable list
11642         in the argument to `reset'.
11644         * pic/object.c (arc_object::arc_object): Fix computation of
11645         radius.
11647         * eqn/main.c (main): Add exit(0).
11649 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
11651         * troff/div.c (begin_page): Test no_space_mode after doing the
11652         break, but still push the page ejector cookie before doing the
11653         break.  Also set the next page number after doing the break.
11654         
11655         * xditview/xditview.c (NewFile): Don't set the title and icon name
11656         if this is the first file and its name is `-'.
11657         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
11658         the X75 and X100 devices.
11659         (main): If a device has the XT_OPTION flag set and there's exactly
11660         one file argument, pass the driver -xrm and -title options to set
11661         the icon name and window title to the name of the file.
11663         * troff/env.c (environment_switch): If there was an argument but
11664         it wasn't a valid number or name, then pop an environment but
11665         don't give an error message on underflow.
11667         * troff/number.c (start_number): Correct spelling in error message.
11669         * troff/input.c (token::delimiter): Don't print an error message
11670         if err is false.
11672         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
11673         ParseDrawFunction if dw->display_enable is true.
11675 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
11677         * pic/pic.y: Parse text positioning like normal attributes, so as
11678         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
11679         positioning attribute.
11681 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
11683         * tbl/main.c (process_data): When in state START while reading a
11684         text block, don't change to state MIDDLE if c is a newline.
11686 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
11688         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
11689         so as to avoid shadowing parameter.
11691 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
11693         * tbl/table.c (trim_space): Deleted.
11694         (table::add_entry): Don't call trim_space.
11696 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
11698         * VERSION: Change version to 0.6.
11700         * troff/number.c (parse_expr): Make == work.
11702 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
11704         * man/grog.man: New file.
11705         * man/Makefile: Add grog.n to MAN1PAGES.
11706         * etc/grog.sh: New file.
11707         * etc/Makefile: Install grog.sh as grog.
11709 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
11711         * troff/input.c (token::next): Implement \E.
11713 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
11715         * xditview/tmac.X: Change font translations to match tmac.ps.
11717         * troff/input.c (non_empty_name_warning): Don't give a warning if
11718         `\{' terminates the name.
11720 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
11722         * ps/devps/symbol.diff: New file.
11723         * ps/devps/FontMakefile: Mention symbol.diff.
11725 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
11727         * troff/node.c (font_position): Use get_long_name to read the
11728         external_name.
11730         * troff/env.c (environment_switch): If we get a number that's < 0
11731         or >= NENVIRONMENTS, treat it like a name.
11732         Change NENVIRONMENTS to 10.
11734         * troff/groff.h: Remove definition of FONTS_MAX.
11735         * troff/node.h (class font_family): Make map a pointer instead of
11736         an array. Add a map_size member. Make it a class. Make nm const
11737         and public. Make invalidate_fontno a friend.
11738         * troff/node.c: Define font_table_size. Make font_info a pointer
11739         rather than an array.
11740         (class troff_output_file): Allocate font_position dynamically. Add
11741         nfont_positions member.
11742         (troff_output_file::set_font): Grow font_position if necessary.
11743         (troff_output_file::~troff_output_file): Delete font_position.
11744         (troff_output_file::troff_output_file): Allocate font_position.
11745         (grow_font_table): New function.
11746         (troff_output_file::really_begin_page,
11747         troff_output_file:really_copy_page): Use nfont_positions rather
11748         than FONTS_MAX.
11749         (mount_font_no_translate, mount_style): Call grow_font_table if
11750         necessary.
11751         (font_family::font_family): Allocate map.
11752         (font_family::make_definite): Grow map if necessary. Use
11753         font_table_size instead of FONTS_MAX.
11754         (font_family::~font_family): New function.
11755         (invalidate_fontno): Use font_family::map_size.
11756         (get_fontno, env_space_width, env_half_narrow_space_width,
11757         env_narrow_space_width, symbol_fotno, is_good_fontno,
11758         get_bold_fontno, make_glyph_node): Use font_table_size rather than
11759         FONTS_MAX.
11760         (next_available_font_position): Never return 0.
11762 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
11764         * ps/tmac.ps: Add font translations for compatibility with dpost.
11766 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
11768         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
11769         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
11770         Move definitions baseline_sep, shift_down, column_sep,
11771         matrix_side_sep into...
11772         * eqn/box.c: Add them to param_table.
11773         * eqn/pbox.h: Add declarations to pbox.h.
11775         * troff/input.c (set_string): Cast value to unsigned char *.
11777         * troff/token.h (process_input_stack): Declare it static before
11778         declaring it a friend.
11780 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
11782         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
11783         and bottom.
11784         * dvi/devdvi/EX: Regenerate.
11786         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
11787         transparent.
11789 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
11791         * eqn/lex.c: In defaults_table, make definition of `dot' call
11792         `dot_def'.  Don't explicitly make it roman.  Similarily for other
11793         accents.
11795         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
11796         argument.
11797         (for_input::get, for_input::peek): Use this.
11798         (do_for): Add by_is_multiplicative argument.
11799         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
11800         Change semantic value of optional_by to be a double plus a flag
11801         saying whethet the by clause is multiplicative.
11803         * eqn/lex.c (get_delimited_text): Remember location of start of
11804         definition.  Improve error handling when EOF is encountered.
11806         * lib/font.h: Rename handle_x_command to
11807         handle_unknown_font_command.
11808         * lib/font.c (font::load): Call handle_unknown_font_command for
11809         any unknown command in the font description file.  Don't call
11810         handle_x_command. Include the name of the command in the argv.
11811         Improve message for unknown command after kernpairs or charset
11812         command.
11813         * ps/ps.c (ps_font::handle_x_command): Rename to
11814         handle_unknown_font_command.  Remove message about `x download'
11815         command.  Give error message for wrong number of arguments.
11816         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
11817         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
11818         handle_unknown_font_command. Give an error message for wrong
11819         number of arguments.  Rename design_size to designsize.
11820         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
11821         checksum', `designsize' instead of `design_size'.
11823 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
11825         * eqn/*.[chy]: Change underaccent to uaccent.
11827         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
11828         give it the same precedence as ACCENT.
11829         * eqn/other.c (make_underaccent_box): New function.
11830         * eqn/box.h: Declare it.
11831         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
11832         def_table.
11834 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
11836         * pic/pic.y (reset_all): New function. Called in rule for RESET.
11837         (parse_init): Call reset_all.
11838         (define_variable): When defining scale reset only those
11839         pre-defined variables that are scaled.
11840         (defaults_table): Add `scale' as non-scaled value.
11842         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
11843         together with the text; allow any number of positioning words;
11844         allow center as a positioning word.
11846         * pic/object.c (output::compute_scale): Get picture maximum height
11847         and width from variables called maxpswid and maxpsht.
11848         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
11850 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
11852         * pic/object.c (object_spec::make_text): Multiply textht by number
11853         of text items.
11855         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
11856         occur.
11857         (do_sprintf): New function.
11858         (pic.gperf): Add sprintf token.
11859         (text, sprintf): New rules.
11861         * pic/pic.y: `rand()' with no arguments returns a random number
11862         in the range [0,1).
11864         * pic/pic.y: Allow a bare expression to be an attribute: change
11865         precedences to support this.  Change optional_ordinal rule to
11866         optional_ordinal_last to avoid reduce/reduce conflict.
11867         * pic/object.c (object_spec::object_spec): Initialize direction.
11869         * pic/pic.y: Implement ^ operator meaning exponentiation.
11871         * troff/node.h: Add default argument to mount_font.
11872         * troff/node.c (font_position): Read an optional third argument
11873         giving the external_name.
11874         (mount_font): Add optional argument giving the external_name.
11875         (mount_font_not_translate): Have additional argument giving
11876         external name.  Use this name to load the font.  Pass both names
11877         to font_info::font_info.
11878         (font_info::font_info): Have additional argument giving
11879         external_name.
11880         (class tfont): New member external_name.
11881         (font_info::get_tfont): Use external name to construct tfont_spec.
11883 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
11885         * eqn/lex.c (init_table): Add argument giving device.  Define
11886         name of device to be "1".
11887         (do_ifdef): Counts as true if the argument has been defined with
11888         `define'.
11889         * eqn/main.c (main): Call init_table with device argument. Make
11890         device local to main.
11891         * eqn/eqn.h: Change declaration of init_table. Remove declaration
11892         of device.
11894         * pic/lex.c (get_delimited): Allow text to be delimited by
11895         matching {}s.  Don't recognize ending delimiter within a string.
11897         * troff/input.c (get_delim_name): New function.
11898         (token::next): Implement \C.
11900         * lib/font.c (font::load): Grok ---.  Add an alias for each
11901         character based on its code.
11902         (font::get_code_width): Deleted.
11903         * lib/font.h (class font): Declare font::number_to_index().
11904         Remove declaration of font::get_code_width.
11905         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
11906         to indices of named characters.
11907         (font::number_to_index): New function.
11908         * troff/input.c (font::number_to_index): New function.
11909         (get_charinfo_by_number, charinfo::get_number,
11910         charinfo::set_number): New functions.
11911         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
11912         (token::process, token::description, token::get_char,
11913         token::add_to_node_list, token::operator==): Handle
11914         TOKEN_NUMBERED_CHAR.
11915         * troff/charinfo.h: Declare get_charinfo_by_number,
11916         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
11917         charinfo class.
11918         (charinfo::numbered): New function.
11919         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
11920         * troff/env.h (class environment): Remove declaration of ...
11921         * troff/env.c (environment::make_numbered_char_node): Deleted.
11922         * troff/node.c (make_numbered_node): Deleted.
11923         (class numbered_glyph_node): Remove.
11924         (troff_output_file::put_char_width, troff_output_file::put_char):
11925         Handle numbered chars.
11926         (troff_output_file::numbered_char): Removed.
11927         (tfont::get_code_width): Removed.
11928         (make_glyph_node): Don't search special fonts for numbered
11929         characters.
11930         * troff/node.h: Remove declaration of make_numbered_node.
11931         * driver/input.c (do_file): Handle N command.
11932         * driver/printer.h: Add declaration of ...
11933         * driver/printer.c (printer::set_numbered_char): New function.
11934         * dvi/tfmtodit.c (main): Generate unnamed entries.
11935         * ps/devps/afmtodit: Likewise.
11936         * xditview/xtotroff.c (MapFont): Likewise.
11937         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
11939         * tbl/main.c (process_format): If multiple widths are specified
11940         for a column but all the widths are the same, don't give an error
11941         message.
11943         * tbl/table.c (table::do_row): If the current row is all lines and
11944         the stuff doesn't contains a line, mark the top of the row after
11945         printing stuff before the row.  If the current row is not all
11946         lines and the stuff doesn't contain a line, don't unnecessarily
11947         mark the top of the row before printing the stuff.
11948         
11949 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
11951         * troff/groff.h: Remove MAX_PATH.
11952         * troff/input.c (open_file): Dynamically allocate space for the
11953         path.
11954         (open_mac_file, process_macro_file): Corresponding changes.
11956 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
11958         * troff/node.h (class output_file): Make copy_file pure.  Add
11959         vspace method ifdef COLUMN. Add is_printing method.
11960         * troff/node.c: Add class printing_reg. Add class
11961         real_output_file. Derive other output_file classes from
11962         real_output_file; in these classes rename begin_page to
11963         really_begin_page, print_line to really_print_line, copy_file to
11964         really_copy_file, transparent_char to really_transparent_char.
11965         Move output_file::flush to real_output_file. Add printing member
11966         to class output_file.
11967         * troff/div.h: Remove printing member from top_level_diversion.
11968         Add vspace member function to class diversion ifdef COLUMN. Add
11969         some declarations ifdef COLUMN.
11970         * troff/div.c (top_level_diversion::copy_file,
11971         top_level_diversion::transparent_output,
11972         top_level_diversion::output): Don't test printing member before
11973         output.
11974         * troff/input.c: Handle initial variable_space_request ifdef
11975         COLUMN.
11976         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
11977         but comment it out.
11979 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
11981         * troff/div.c (diversion::need): Make any space forced.  If we
11982         sprung a trap, set truncated_space to minus the distance to the
11983         trap and set needed_space to the amount that was needed.
11984         (top_level_diversion::space): A forced space turns no_space_mode
11985         off.
11986         (class constant_vunits_reg): New class.
11987         (init_div_requests): Implement number registers .trunc and .ne
11988         using constant_vunits_reg.
11989         (class truncated_space_reg): Deleted.   
11991         * troff/div.h: Don't have a no_space_mode member in diversion.
11992         Instead have it in top_level_diversion.
11993         * troff/div.c (diversion::diversion): Don't initialize
11994         no_space_mode.
11995         (top_level_diversion::top_level_diversion): Initialize
11996         no_space_mode.
11997         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
11998         (macro_diversion::output): Don't clear no_space_mode.
12000         * troff/input.c (diverted_space_node::reread): Don't call
12001         environment::do_break.  In fill mode, act like a blank line.
12002         (diverted_copy_file_node::reread): Don't call
12003         environment::do_break.
12005         * troff/div.c (blank_line): New function.
12006         * troff/div.h: Declare it.
12007         * troff/input.c (process_input_stack): Call it.
12009         * troff/div.c (truncated_space_reg::get_string): New function.
12010         (init_div_requests): Bind to .trunc.
12011         (space_request, top_level_diversion::space,
12012         top_level_diversion::output, macro_diversion::space,
12013         macro_diversion::output): Update truncated_space.
12014         (macro_diversion::output): Redo calculations when trap sprung.
12015         (macro_diversion::output, macro_diversion::space): No need for
12016         trap_flag.
12018         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
12019         after truncating post line spacing.
12021 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
12023         * ps/devps/prologue (MF, SF): Make them work even if setfont is
12024         defined as a procedure rather than as an operator.
12026 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
12028         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
12030 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
12032         * troff/div.c (top_level_diversion::output): Merge
12033         output_file::print_line and output_file::end_of_line member
12034         functions.
12035         * troff/div.h (class output_file):
12036         * troff/node.c (troff_output_file::print_line,
12037         troff_output_file::end_of_line, output_file::end_of_line,
12038         ascii_output_file::print_line, suppress_output_file::print_line):
12039         Corresponding changes.  
12041 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
12043         * troff/input.c (token::next): Don't give a warning for `\.'.
12045         * troff/env.c (environment::get_center_lines): New function.
12046         (init_env_requests): Bind number register .ce to it.
12047         * troff/env.h: Declare it.
12048         * tbl/table.c (table::init_output): Define reset macro to restore
12049         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
12050         Then do .ce 0.
12051         (table::print): If center option not given, then imply center
12052         option if SAVED_CENTER_REG > 0.
12054 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
12056         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
12057         Troff.ps from DOWNLOAD.
12058         
12059         * troff/Makefile: Change comment in DEFINES to avoid confusing
12060         System V make.
12062         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
12063         code.  Don't try to catch errors with stopped.
12064         (check_line_lengths): New function.
12065         * ps/devps/prologue (EXEC): Deleted.
12066         (EBEGIN, EEND): New procedures.
12068 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
12070         * troff/input.c: Include request.h before node.h.
12071         * troff/node.c: Likewise.
12072         * troff/env.c: Likewise.
12073         * troff/div.c: Likewise.
12074         * troff/node.h (class special_node): Store argument as a macro
12075         rather than a char *.
12076         * troff/node.c (special_node::special_node, special_node::copy):
12077         Grok this.
12078         (special_node::~special_node): Deleted.
12079         (special_node::tprint): Deleted.
12080         (special_node::tprint_start, special_node::tprint_end,
12081         special_node::tprint_char): New functions.
12082         (troff_output_file::special): Deleted.
12083         (troff_output_file::start_special, troff_output_file::end_special,
12084         troff_output_file::special_char): New functions.
12085         * troff/input.c (special_node::tprint): New function.
12086         (do_special): Use macro not char *.
12087         (do_transparent_macro): Deleted.
12088         (token::next): Don't call do_transparent_macro.
12090         * troff/input.c (token::next): Add 'Y' case.
12091         (do_transparent_macro): New function.
12092         * troff/node.c (troff_output_file::special): Handle newlines with
12093         argument using new continuation convention.
12094         * driver/input.c (get_string): Cope with continuation convention.
12095         (do_file): Don't call skip_line after calling get_string(1).
12096         * ps/ps.c (ps_printer::special, ps_printer::do_import,
12097         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
12098         arg.
12099         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
12100         with +.
12102 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
12104         * troff/input.c (asciify): By default, illegal input characters
12105         should return empty string.
12107         * troff/input.c (copy_file): Handle first page transition like title.
12108         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
12110         * troff/input.c (token::next): Improve error message for EOF after
12111         escape character.
12112         (input_char_description): New function.
12113         (get_char_for_escape_name): Use input_char_description.
12114         (token::next): Warn about unrecognized escape sequences.
12115         (warning_table): Add WARN_ESCAPE.
12116         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
12117         accordingly.
12119         * troff/token.h: Remove declaration of process_input_stack.
12121         * troff/input.c: Remove declaration of init_hyphen_requests.
12122         * troff/request.h: Correct spelling in declaration of same.
12124         * troff/input.c (token::next): Check whether escape_char is 0.
12126 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
12128         * groff.c (main, usage, help): Implement -P and -L options.
12129         * groff.sh: Likewise.
12131         * troff/input.c (token::next): Use some gotos to avoid code
12132         duplication.
12134         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
12135         Avoid calling symbol::symbol if name empty.
12137 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
12139         * troff/input.c (init_input_requests): Make \n(.x return the major
12140         version number and \n(.y return the minor version number.
12141         * troff/Makefile: Construct file majorminor.c defining
12142         major_version and minor_version automatically from ../VERSION.
12144         * troff/node.c (class glyph_node): Make operator new and operator
12145         delete public.
12146         (class ligature_node): Similarily.
12148         * troff/input.c (operator==(const macro &, const macro &)): New
12149         function.
12150         (non_interpreted_node::same): Use this.
12151         (string_iterator::string_iterator): Make macro& argument const.
12153         * troff/input.c (input_iterator::get): New function. Don't make
12154         asciify_macro or class non_interpreted_node friends of class
12155         input_iterator.
12156         (non_interpreted_node::interpret): Use input_iterator::get.
12157         (asciify_macro): Likewise.
12159         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
12160         ~non_interpreted_node): Deleted.
12161         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
12162         Deleted.
12164         * troff/symbol.h: Make all symbol member functions const.
12166         * lib/strtol.c: New file.
12167         * lib/Makefile: Add strtol.c.
12168         * Makefile: Define STRTOL as strtol.o to include strtol in
12169         libgroff.a.
12171 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
12173         * pic/troff.c (troff_output::simple_circle): Divide by scale.
12175 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
12177         * troff/input.c (do_special): Use input_level.
12179         * troff/token.h (TOKEN_BACKSPACE): New token.
12180         (token::backspace): New function.
12181         * troff/input.c (token::description, token::next, token::process):
12182         Grok TOKEN_BACKSPACE.
12183         (do_special): Turn TOKEN_BACKSPACE back into \b.
12185         * troff/token.h (token::leader): New function.
12186         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
12188         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
12190         * troff/input.c (do_special): Use token::description in error
12191         message.
12193 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
12195         * troff/input.c (decode_args): Combine quoted and
12196         quote_input_level variables. Make it a for (;;) loop.
12198         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
12200         * troff/input.c (read_long_escape_name): The test for whether to
12201         expand buffer was off by 1.
12202         (read_string): Similarily.
12204 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
12206         * troff/input.c: Use `const int' rather than `static const int'.
12208         * troff/div.h (diversion::copy_file): Declare as pure virtual.
12209         (macro_diversion::copy_file): New function.
12210         * troff/node.h: New class diverted_copy_file_node.
12211         * troff/node.c: Implement it.
12212         * troff/input.c (copy_file): Use diversion::copy_file. Handle
12213         first page transition by pushing a diverted_copy_file_node.
12214         * troff/input.c (token::next, process_input_stack): Don't handle
12215         COPY_FILE_REQUEST.
12217 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
12219         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
12220         whether space widths need adjusting.
12222         * troff/charinfo.h: Generalize translated_to_space to
12223         special_translation so as to allow translation to \&.
12224         * troff/input.c (translate): Allow translation to \&.
12225         (charinfo::*): Corresponding changes.
12226         * troff/node.c (make_node, node::add_char): Corresponding changes.
12227         * troff/node.h (dummy_node::dummy_node): Allow optional first
12228         argument.
12230         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
12231         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
12232         TOKEN_REQUEST.
12233         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
12234         TOKEN_REQUEST with an argument of TITLE_REQUEST.
12235         (token::process): Grok that.
12236         * troff/input.c (copy_file): Handle first page transition like
12237         title by pushing a COPY_FILE_REQUEST cookie.
12238         (token::next, process_input_stack): Grok that.
12239         * troff/node.h (output_file::copy_file): Add x and y arguments.
12240         Make it non-pure.
12241         * troff/div.c (top_level_diversion::copy_file): Supply them.
12242         * troff/node.c (troff_output_file::copy_file): Add x and y
12243         arguments; moveto specified position.  Invalidate font_position
12244         array after copying file.
12245         (output_file::copy_file): New function.
12246         (suppressed_output_file::copy_file, ascii_output::copy_file):
12247         Removed.
12248         * troff/input.c (transparent_file): New function.
12249         (init_input_requests): Bind to "trf".
12250         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
12251         (process_input_stack): Likewise.
12253         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
12255         * troff/node.c (init_node_requests): New number registers .kern
12256         pointing to global_kern_mode, and .lg pointing to
12257         global_ligature_mode.
12259         * troff/node.c (ligature): Don't change it if we get a bad
12260         integer.
12262         * troff/input.c (do_define_string): Don't strip tabs.
12264         * troff/input.c (asciify_macro): Make the string_iterator auto.
12266         * troff/node.c (init_font_requests): Rename to...
12267         (init_node_requests):
12268         * troff/node.h: Change declaration.
12269         * troff/input.c (main): Change call.
12271         * troff/input.c (node::reread, diverted_space_node::reread): New
12272         methods.
12273         (process_input_stack): Call reread rather than
12274         get_diverted_space_node.
12275         * troff/node.c (node::get_diverted_space_node,
12276         diverted_space_node::get_diverted_space_node): Removed.
12277         * troff/node.h: Declare reread methods instead of
12278         get_diverted_space_node methods. Make `n' member private.
12279         * troff/input.c: (token::diverted_space): Removed.
12280         * troff/token.h: Removed declaration.
12281         
12283 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
12285         * eqn/script.c (script_box::compute_metrics): Don't let
12286         SUP_RAISE_FORMAT become negative.
12288         * tbl/table.c (table::do_row): Entries that don't end in the
12289         this row shouldn't make the row non-blank.
12290         
12291         * tbl/table.c (table::make_columns_equal): Only set the width of
12292         columns which are marked as equal.
12293         
12294         * tbl/main.c (process_data): Before issuing excess data error,
12295         if last character was a newline unget it; then get it again after
12296         the error.  Also include the contents of the entry in the message.
12298         * groff.c: New file.
12299         * Makefile: Build groff from groff.c.  Make it possible to use
12300         either groff.sh or groff.c as groff.
12301         * Makefile.bd: Similarily.
12303 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
12305         * groff.sh: Don't delay expansion of $@ in assignment to files.
12306         Remove occurrences of \".
12308 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
12310         * all Makefiles: Simplify and rearrange.
12312         * Makefile: Handle fmod like malloc.
12313         * lib/Makefile: Similarily.
12314         * lib/fmod.c: Remove #ifdef NEED_FMOD.
12316         * Makefile: Rename OPTIMISE to OPTIMIZE.
12318         * groff.sh: Remove assignment to PATH.
12319         * Makefile: Remove SHPATH variable.
12320         * Makefile.bd: Similarily.
12322         * groff.sh: Add -V option to print the pipeline instead of
12323         executing it.
12325 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
12327         * lib/font.c: Split off file searching into ...
12328         * lib/fontfile.c: New file.
12330         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
12332 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
12334         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
12335         Also change misleading comment.
12336         (table::do_vspan): Change similarily misleading comment.
12337         * tbl/main.c (process_data): A format row with an explicit `s'
12338         uses up a data line, even if all the other columns are `_' or `='.
12340         * troff/input.c (token::description): Fix description of
12341         TOKEN_DUMMY and TOKEN_EMPTY.
12343 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
12345         * groff.sh: Fix description of -Z in help message.
12347 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
12349         * pic/object.c (object_spec::make_object): Allow negative and zero
12350         line thicknesses.
12351         * pic/pic.y: Give linethick default value of -1.0.
12352         * pic/troff.c (troff_output::troff_output): Initialize
12353         last_line_thickness to BAD_THICKNESS.
12354         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
12355         (troff_output::line_thickness): Canonicalize negative thicknesses
12356         to RELATIVE_THICKNESS.
12357         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
12358         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
12359         to -1.0.
12360         (tex_output::start_picture): Set pen_size to -2.0.
12362         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
12363         0, then use 0 linewidth.
12364         (ps_printer::ps_printer): Initialize line_thickness to -1.
12366         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
12368         * ps/devps/symbolchars: Remove `or'.
12369         * ps/tmac.ps: Implement \(or with .char.
12371         * ps/devps/symbolchars: Move most characters into textmap.
12372         * ps/devps/textmap: Add names for troff bracket characters. Remove
12373         ul, ru, br, bv.
12375         * ps/devps/TSymbol.ps: Removed.
12376         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
12377         * ps/tmac.ps: Do with .char what TSymbol did.
12378         * ps/devps/download: Remove TSymbol.
12380         * ps/devps/T: Removed.
12381         * ps/devps/Troff.ps: Removed.
12382         * ps/devps/Troff.afm: Removed.
12383         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
12384         * ps/devps/download: Remove Troff.
12385         * ps/devps/FontMakefile: Remove T target.
12386         * ps/devps/DESC-A4: Remove T from font list.
12387         * ps/devps/DESC-letter: Likewise.
12389         * troff/input.c (macro_to_node): Rename to ...
12390         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
12391         character's definition while processing it.
12392         * troff/node.c (node::add_char, make_node): Change calls to
12393         macro_to_node accordingly.
12395         * troff/input.c (token::next): Translate \_ to \(ul.
12397         * tty/devascii/R.proto: Add `|'.
12398         * tty/devlatin1/R.proto: Likewise.
12400 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
12402         * man: Put the version number in all the man pages.
12404 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
12406         * Makefile.bd: New file.
12407         * README.bd: New file.
12409         * VERSION: New file.
12410         * lib/version.c: Removed.
12411         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
12412         in clean target.
12414         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
12415         environment variable.
12417         * all Makefiles: Split install target into install.bin for
12418         binaries, and install.nobin for everything else.
12419         * Makefile: Add bindist target.
12421         * man/afmtodit.man: New file.
12422         * man/Makefile: Add afmtodit.n to MAN1PAGES.
12423         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
12424         in BINDIR.
12425         * ps/Makefile: Pass BINDIR to make install in devps.
12427         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
12428         the space character.
12430         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
12432 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
12434         * ps/ps.c: Redo font downloading.
12435         * ps/devps/download: New file.
12436         * ps/devps/Makefile: Add download to DEVICEFILES.
12437         * ps/devps/afmtodit: Remove -d option.
12438         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
12439         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
12440         * ps/devps/zapfdr.ps: Likewise.
12441         * ps/devps/TSymbol.ps: Likewise.
12443 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
12445         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
12447 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
12449         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
12450         then strip the first line if it starts with %.
12451         * Makefile: Add a comment about this.
12453         * man/tfmtodit.man: New file.
12454         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
12455         * dvi/Makefile: Install tfmtodit in BINDIR.
12457         * dvi/tfmtodit.c (usage): Mention -v option.
12459 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
12461         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
12462         * troff/node.c (troff_output_file::transparent_char): Don't call
12463         flush_tbuf.
12465         * eqn: Add check_tabs method to most box classes.
12466         * eqn/box.c (box::top_level): Call check_tabs.
12468         * eqn/script.c (script_box::output): Use \Z.
12469         * eqn/limit.c (limit_box::output): Use \Z.
12471         * eqn/box.c (box::top_level): Use itoa.
12473 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
12475         * dvi/tmac.dvi: Add font translations for CR, C, TT.
12476         * dvi/devdvi/Makefile: Don't make links to CW.
12478         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
12479         HX, HD.
12480         * xditview/tmac.X: Likewise.
12482         * troff/node.c: Add font translation feature.
12483         (get_font_translation): New function.
12484         (symbol_fontno): Translate the font name.
12485         (mount_font_no_translate): Rename to mount_font to this.
12486         (mount_font): New function.
12487         (font_family::make_definite): Call mount_font_no_translate instead
12488         of mount_font.
12489         (mount_style): Translate the font name.
12490         (font_translate): New function.
12491         (init_font_requests): Bind "ftr" to font_translate.
12493         * ps/devps/prologue (SN): New procedure that rounds a position to
12494         the nearest (pixel + (.25,.25)).
12495         (DL): Use SN to round endpoints.
12497         * lib/version.c: Changed version to 0.5.
12499 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
12501         * Makefile: Move definition of PAGE to the very beginning, so that
12502         people are less likely to miss it.
12504 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
12506         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
12508         * troff/env.c (environment::choose_breakpoint): Make `can't find
12509         breakpoint' error a warning of type WARN_BREAK.  Change message to
12510         `can't break line'.
12511         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
12512         code 040000.
12513         * troff/input.c: Add WARN_BREAK to warning_table.  Include
12514         WARN_BREAK in DEFAULT_WARNING_MASK.
12516         * tty/tmac.tty: Add definition of \(+-.
12518         * groff.sh: Remove `--' option to set command.
12520         * dvi/devdvi/texsy.map: Remove duplicate md entry.
12522         * ps/devps/eqnchar: Better definition of cdot using md.
12523         * dvi/devdvi/eqnchar:  Likewise.
12524         * xditview/devX100/eqnchar:  Likewise.
12525         * xditview/devX75/eqnchar: Likewise.
12526         * eqn/lex.c: Add definition of cdot.
12528 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
12530         * troff/input.c (get_optional_char): New function.
12531         * troff/input.c (set_page_character): Use get_optional_char(),
12532         rather than has_arg() and tok.get_char(1).
12533         * troff/env.c (tab_character, leader_character, hyphen_char,
12534         field_characters): Likewise.
12535         (margin_character): Likewise.  Also always delete the
12536         margin_character_node.
12538         * troff/input.c (token::get_char): Use token::description.
12540         * troff/input.c (has_arg): Don't skip over tab and \}.
12541         * troff/number.c (start_number): Give a warning if the number
12542         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
12544 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
12546         * troff/input.c (empty_name_warning, non_empty_name_warning): New
12547         functions.
12548         (get_name, get_long_name): Use these.  Rename `warn' argument to
12549         `required'.
12551         * troff/node.c (get_fontno): Test that the symbol is not null.
12553         * troff/input.c (token::description): New function.
12554         * troff/number.c (parse_term): Use token::description in `numeric
12555         expression expected' message.
12556         * troff/groff.h: Add WARN_MISSING.
12557         * troff/number.c (start_number): New function.
12558         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
12559         get_incr_number): Use start_number().
12560         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
12561         default.
12562         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
12563         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
12564         token::descripion.
12565         * troff/input.c (token::get_char): Use WARN_MISSING.
12566         * troff/input.c (token::delimiter): Use token::description.
12567         * troff/env.c (environment_switch): Back out Aug 3 change.
12568         * troff/input.c (has_arg): Skip over \}s and tabs but give a
12569         warning.
12570         * troff/token.h (token::tab): New function.
12571         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
12572         * troff/reg.c (alter_format): Likewise.
12573         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
12575 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
12577         * troff (most files): Redo warnings. Divide warnings into various
12578         categories; warning() has an additional first argument indicating
12579         the category it falls into.
12580         * troff/input.c (main): -w now takes an argument. New option -W.
12581         (enable_warning, disable_warning): New functions.
12583         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
12584         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
12586 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
12588         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
12589         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
12590         * xditview/devX75/eqnchar: Likewise.
12591         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
12593         * eqn/other.c: When bar or over applies to a single character
12594         don't produce an overline_box or an underline_box. Instead produce
12595         an accent_box or an underaccent_box, with the accent a line
12596         whose width is accent_width.  New classes underaccent_box,
12597         overline_char_box and underline_char_box.
12598         * eqn/box.h: Move overline_box, underline_box, accent_box class
12599         declarations into eqn/other.c. Add declarations of
12600         make_underline_box, make_overline_box, make_accent_box.
12601         * eqn/eqn.y: Call make_overline_box, make_underline_box
12602         make_accent_box instead of constructors.
12603         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
12605         * eqn/other.c: Add accent_box::~accent_box.
12606         * eqn/box.h: Declare it.
12608         * groff.sh: With -Tps, use eqn -D.
12610         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
12611         rather than \l.
12612         (underline_box::output): Similarily.
12613         (accent_box::output): Use \Z.
12615         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
12616         bit smaller.)
12618 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
12620         * troff/div.c (top_level_diversion::transparent_output(unsigned
12621         char)): Use asciify.
12622         * troff/input.c (asciify): Don't make it static.
12623         * troff/token.h (asciify): Declare it.
12624         
12625         * troff/input.c (get_name, get_long_name, token::get_char,
12626         token::delimiter): Add an extra default argument which says
12627         whether a warning should be printed.
12628         * troff: Pass a non-zero argument to one of these rather than
12629         printing a warning directly.
12631 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
12633         * troff: Consistently use symbol::is_null.
12635         * troff/dictionary.h: Move some inline functions into
12636         dictionary.c.
12638         * troff/request.h: Move inline functions into input.c.
12639         (request_or_macro::invoke): Make it pure.
12641         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
12642         * troff/input.c (init_input_requests): Use class constant_int_reg.
12643         (class compatible_reg): Deleted.
12644         * troff/div.c (init_div_requests): Use class constant_int_reg.
12645         (class last_post_line_extra_space_reg): Deleted.
12647         * troff/env.c (tab_character): Don't change the tab character if
12648         we get an invalid argument.
12649         (hyphen_char): Similarily.
12651         * troff/reg.c (alter_format): Check that nm is not null.
12653         * Makefile, groff.sh: Make it possible to customize the commands
12654         used for printing PostScript and dvi files. Also make it possible
12655         to customize the path used by groff.sh.
12657         * eqn/eqn.y: Make `left' right associative.
12659 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
12661         * pic/pic.h: Added definition of M_SQRT2 for those systems that
12662         don't have it.
12664         * pic/pic.h: Removed definition of INT_MAX.
12666         * troff/node.c (italic_corrected_node::vertical_extent): Omit
12667         `return'.
12669         * troff/input.c (token::next):  Handle \R like \n.
12671 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
12673         * ps/tmac.pc (PSPIC): Simplify.
12675         * troff/env.c (tab_stops::to_string):
12676         * pic/pic.y (object_type_name):
12677         * pic/troff.c (simple_output::line):
12678         * pic/tex.c (tex_output::spline):
12679         * pic/object.c (object_spec::make_object):
12680         * tbl/main.c (process_data):  Add cases to switch statements to
12681         avoid cfront warnings. (Some of these are spurious, since the
12682         switch already has a default case.)
12684         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
12685         `ps-'.  Don't test systat; instead check number of arguments to
12686         ps-bb.
12688 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
12690         * macros/tmac.e: Do not decrease the page offset by 0.5i.
12692         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
12693         Unlink the file as soon as we have opened it, so that we don't
12694         have to bother with signal handlers.
12695         (handler): Deleted.
12696         (fatal_error_exit): Deleted.
12697         (main): Don't call signal.
12699         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
12700         can be ignored.
12701         * dvi/devdvi/Makefile: Use the -k option with S and MI.
12703         * pic/pic.y:  If there is a label, or an nth construction before
12704         the first `.' in the argument to `with', ignore it and generate a
12705         warning.
12706         * pic/lex.c (lex_warning): New function.
12708         * tbl/table.c (table::init_output): In section keep and release
12709         macro, use 0 indent when diverting and the correct indent when
12710         rereading.
12712         * troff/input.c (interpolate_number_format): Do not interpolate
12713         anything if the number register is not defined.
12715         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
12717 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
12719         * ps/devps/prologue (PICTURE): Set components of graphics state to
12720         their default values.
12722         * ps/devps/text.enc: Add trademark
12723         * ps/devps/textmap: Add names for club, spade, heart, diamond,
12724         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
12725         * ps/devps/symbolchars: Add names for summation and product.
12727         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
12728         suchthat. Add pp. Add upper-case letters.
12730         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
12731         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
12732         Upsilon.
12734         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
12735         rA (right angle bracket) to ra.  Introduce names for double-headed
12736         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
12737         * ps/devps/textmap: Likewise for ps device.
12738         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
12739         * tty/devascii/R.proto: Rename lA to la and rA to ra.
12740         * tty/devascii/R.proto: Likewise.
12741         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
12742         \(uA, \(dA.
12743         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
12745         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
12747         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
12748         def_table.
12750 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
12752         * troff/div.c (when_request): Use symbol::is_null rather than
12753         has_arg to determine whether we have an argument.
12754         (change_trap): Remove the trap if we get an invalid number. Give
12755         an error if we don't get at least the macro name.
12756         (diversion_trap): Remove trap if we get an invalid name or number.
12758         * troff/env.c (environment_switch): Pop if we get an invalid
12759         symbol or numeric expression.
12761         * troff/input.c (do_define_macro):  If EOF is encoutered while
12762         defining the macro, do tok.next() before returning.
12764         * troff/token.h (has_arg): Move definition from here, to ...
12765         * troff/input.c (has_arg): ... here
12767         * troff/env.c (space_size): Do nothing if we get an invalid argument.
12768         * troff/input.c (shift): Likewise.
12770         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
12771         for `.c'.
12773         * pic/troff.c (troff_output::start_picture):  Comment out calls to
12774         `..'.
12776         * eqn/main.c (do_file): Subtract 1 from current_lineno if
12777         interpret_lf_args succeeds.
12779         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
12780         \\.  This avoids problems with \$N.
12782         * groff.sh: Pass -C to preprocessors.
12784         * lib/lf.c (interpret_lf_args):  Be more flexible.
12786         * tbl/main.c (main): Add -C option.
12787         (table_input::get): Do not recognize TE if followed by character
12788         other than a space or newline unless -C option given.
12789         (process_input_file): Likewise for lf, TS.
12790         (process_data): Likewise for lf in text blocks.
12792         * eqn/main.c (main): Add -C option.
12793         (do_file): Don't recognize EQ, EN or lf if followed by character
12794         other than space or newline unless -C option given.
12795         * eqn/lex.c (file_input::read_line): Similarily.
12796         * eqn/eqn.h: Declare compatible_flag.
12798         * etc/soelim.c (main): Add -C option.
12799         (interpret_lf_args): Use version in libgroff.
12800         (do_file):
12802         * pic/main.c (main): Add -C option, which sets compatible_flag.
12803         (top_input::get), (top_input::peek):  If -C option not given,
12804         do not recognize .PS/.PE/.PF/.lf if followed by a character
12805         other than space or newline.
12806         * pic/lex.c (file_input::read_line): Similarily.
12807         * pic/pic.h: Add declaration of compatible_flag.
12809 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
12811         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
12813         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
12814         derived from node.  New class space_char_hmotion_node.
12815         * troff/input.c (asciify_macro): New function.
12816         * troff/input.c (init_input_requests): New request `asciify' bound
12817         to asciify_macro.
12818         * macros/mm.diff: New file.
12819         * Makefile:  In install.mm target use `patch' to apply
12820         macros/mm.diff.
12822         * troff/input.c (macro::print_size): Just print the size in bytes.
12824         * troff/div.c (return_request): Correct the argument
12825         interpretation.
12827 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
12829         * troff/node.h (class composite_node): Add sz member.
12830         * troff/node.c (composite_node::size): Return sz.
12831         * troff/input.c (macro_to_node):  Use the initial size in the
12832         environment as the size of the composite_node.
12834         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
12835         default.
12837 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
12839         * troff/div.c (change_trap): If we get a bad number expression,
12840         do nothing.
12842 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
12844         * lib/matherr.c (matherr): Define this only if math.h defines
12845         TLOSS.
12847 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
12849         * troff/div.c (macro_diversion::distance_to_next_trap): If there
12850         no diversion trap return vunits(INT_MAX - vresolution).
12852 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
12854         * troff/input.c (do_zero_width): New implementation that doesn't
12855         use a temporary environment. Use instead:
12856         (token::add_to_node_list): New function.
12857         * troff/env.c (environment::get_prev_char_height),
12858         (environment::get_prev_char_height),
12859         (environment::get_prev_char_skew): New functions.
12860         (environment::get_prev_char): New function.
12861         (environment::get_prev_char_width): Change to use get_prev_char.
12862         (init_env_request): Implement new registers .cht, .cdp, .csk.
12863         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
12864         \Z being processed in a separate environment.
12866 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
12868         * tbl/table.c: Removed TABLE_BOTTOM_REG.
12870         * tbl/table.c (table::init_output): In the section release macro,
12871         give a warning message if the section won't fit on one page.
12873         * tbl/table.c (table::do_top): Emit table keep only if table is
12874         boxed.
12875         (table::do_bottom): Likewise for table release.
12876         (table::table), (table::add_vertical_rule):  Remove reference to
12877         keep member.
12878         * tbl/table.h: Remove keep member.
12880         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
12881         SECTION_RELEASE_MACRO, if there's not enough space before the next
12882         trap to output the diversion, call T# ourselves, set
12883         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
12884         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
12885         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
12886         vertical position and return to it before turning traps on again.
12887         
12888 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
12890         * troff/node.c, troff/node.h: In classes derived from node,
12891         replace prev_char_width method by last_char_node method.
12892         * troff/env.c (environment::get_prev_char_width): Use
12893         node::last_char_node rather than node::get_prev_char_width.
12895         * Makefile: Added comment about -fno-inline on 68030-based
12896         Apollos.
12898         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
12899         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
12900         expressions using sizeof to int.
12901         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
12903         * macros/tmac.e (TS):  Don't move @f back past the current
12904         position.
12906 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
12908         * ps/ps.c (main): Buffer stderr.
12909         * dvi/dvi.c (main): Likewise.
12910         * tty/tty.c (main): Likewise.
12912         * ps/ps.c (ps_printer::do_import): Improve error handling.
12914         * troff/input.c (abort_request): Use asciify.
12916         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
12917         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
12918         type of first argument int rather than char.  This works around a
12919         bug on the 68030 based Apollo using g++ 1.37.1.
12921         * tbl/table.h (class table): Add `keep' member.
12922         * tbl/table.c (table::table): Initialize `keep'.
12923         (table::add_vertical_rule): Set `keep' to 1.
12924         (table::do_top): Only emit table keep macro is `keep' is non-zero.
12925         (table::do_bottom): Likewise for table release macro.
12926         (table::do_row): Emit section keep macro even if the row is 0.
12928 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
12930         * macros/tmac.e (@C): Preserve the font family across the change
12931         in environments.
12933 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
12935         * lib/font.c: Initialize font::hor and font::vert to 1.
12936         (font::load_desc): Check the values of font::hor and font::vert.
12938         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
12939         be included in a C compilation.
12940         (iftoa): Use INT_DIGITS. Include lib.h.
12941         (itoa): Likewise.
12942         (as_string): Likewise.
12943         * tbl/table.c: Removed definition of INT_DIGITS.
12944         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
12945         * troff/input.c (input_input_requests): Likewise.
12946         * ps/ps.c (make_encoding_name): Likewise.
12947         (ps_printer::set_style): Likewise.
12948         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
12950         * tty/devascii/R.proto: Map fm onto '.
12951         * tty/devlatin1/R.proto: Likewise.
12953 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
12955         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
12956         argument to \w is at a different input level.
12958         * tbl/table.c (table::init_output): Define a new macro
12959         REPEATED_VPT_MACRO, like vpt but if in a diversion also
12960         transparently outputs itself.
12961         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
12962         vpt.
12963         (table::do_row): Likewise.
12965         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
12966         TRANSPARENT_STRING_NAME.
12968         * tbl/table.c (table::init_output): In the table release macro
12969         print an error message and don't produce any output if after
12970         issuing the need request the table still will not fit.  Also
12971         remove the diversion after bringing it back.
12973         * tbl/table.c (table::init_output): Define a new macro
12974         REPEATED_MARK_MACRO, like mk but if in a diversion also
12975         transparently outputs itself.
12976         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
12977         is necessary because .TH might not call .T#.
12978         (table::do_top): Likewise TOP_REG.
12979         (table::define_bottom_macro): If TOP_REG is no longer valid, use
12980         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
12981         table header might contain just the two top rules.
12983 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
12985         * troff/div.c: Implement new request `ptr' to print all traps.
12987         * troff/env.c (init_env_requests): Implement `.tabs' reg with
12988         init_string_env_reg.
12989         * troff/env.c (class tab_reg): Deleted.
12991 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
12993         * troff/div.c: New number register .pn returns the number of the
12994         next page as set by the pn request.
12996         * macros/tmac.an: Redid headers and footers.  Number each manual
12997         entry starting from 1 unless \nC is > 0, like Sun.  Added an
12998         optional 5th argument to .TH which specifies the manual name and
12999         appears in the center of the header.  Understand the X, P and D
13000         registers like Sun.
13002 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
13004         * troff/env.c (init_env_requests): New number register `.lt' to
13005         return the title length.
13007         * troff/node.h (class transparent_dummy_node): New class.
13008         * troff/node.c (class transparent_dummy_node): Provide member
13009         functions. 
13010         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
13011         than a dummy_node.
13013         * troff/input.c (token::next): New escape sequence \).
13014         * troff/input.c (get_copy): Recognize \) in copy mode.
13016         * troff/input.c (input_stack::clear): New function.
13017         * troff/input.c (exit_request): Use input_stack::clear.
13019         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
13020         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
13022         * troff/env.c: Move set_page_character to input.c.  Move
13023         page_character to input.c also.
13024         * troff/env.c (title): Split off the reading of the parts of the
13025         title into read_title_parts.
13026         * troff/input.c (read_title_parts): New function.  Check the
13027         input_level when testing whether a token matches the delimiter.
13029         * troff/input.c (exit_request): New function.
13030         * troff/input.c (init_input_requests): Bind ex request to
13031         exit_request rather than exit_groff.
13033         * troff/input.c (exit_groff): Call tok.next() before
13034         process_input_stack().
13036 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
13038         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
13039         * troff/env.h: ditto.
13040         * troff/input.c: ditto.
13042         * troff/env.c (environment::is_empty): Test pending_lines.
13044         * troff/env.c (environment::have_pending_lines): Removed.
13046         * troff/input.c: Add request to flush pending lines from the
13047         environment.
13049         * troff/env.c, troff/env.h: Add automatic widow control feature.
13051         * troff/input.c (exit_groff):  Do process_input_stack() after
13052         do_break() but before setting exit_flag to 2.
13054         * troff/input.c: Remove FLUSH_PENDING_LINES and
13055         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
13056         environment after END_TRAP token seen, but only if there aren't
13057         any more traps still unfinished.
13058         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
13060 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
13062         * troff/env.c: Rename the `retain_size' member of class
13063         pending_output_line to `no_fill'.
13065         * troff/env.c (title): When the line is output, make the
13066         retain_size argument !fill.
13068         * troff/node.h: Add `hyphenated' member to struct breakpoint.
13069         * troff/node.c (space_node::get_breakpoints),
13070         (dbreak_node::get_breakpoints):  Fill this in.
13071         * troff/env.c:  Allow specification of maximum number of
13072         consecutive hyphenated lines.
13074         * troff/env.c (environment::is_empty): Add test for !current_tab.
13076 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
13078         * troff/env.c (environment::hyphenate_line): Don't completely give
13079         up if the word is not to be hyphenated; continue so that breaks
13080         can be made at break_char_node's.
13082         * lib/lib.h: Only define INT_MAX if it's not already defined;
13083         undef INT_MIN if it's already defined.
13085         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
13087         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
13088         This works around a bug in AT&T C++ 2.0 used with an ANSI C
13089         compiler.
13090         
13091         * macros/tmac.an (an-header): Set no-space mode.
13093         * macros/tmac.an (TH): Start a new page if necessary.
13095         * Started using ChangeLog at version 0.4.
13097 Local Variables:
13098 version-control: never
13099 coding: latin-1
13100 End: