Support multiple calls of .Lb in LIBRARY section.
[s-roff.git] / ChangeLog
blobada7bfc5e434f6e4c6bca34a8ee30a5a02161f8c
1 2003-09-15  Ruslan Ermilov  <ru@FreeBSD.org>
3         Support multiple calls of .Lb in LIBRARY section.
5         * tmac/doc-common (doc-in-library-section): New register.
6         (doc-section-library): New string.
7         (Sh): Set `doc-in-library-section'.
8         (Rd): Updated.
9         * tmac/doc-syms (Lb): Insert breaks before and after arguments
10         if in LIBRARY section.
11         * tmac/doc.tmac (doc-save-global-vars): Updated.
12         * NEWS, tmac/groff_mdoc.man: Updated.
14 2003-09-14  Ruslan Ermilov  <ru@FreeBSD.org>
16         * tmac/doc-common (doc-default-operating-system): New variable.
17         (Os): Use it.
19 2003-09-08  Werner LEMBERG  <wl@gnu.org>
21         * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
23 2003-08-31  Werner LEMBERG  <wl@gnu.org>
25         * contrib/mom/Makefile.sub: Fix last change to make it really work.
26         * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
27         (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
28         $(DEVFILES) are not empty.
29         * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
31 2003-08-26  Chuck Silvers  <chuq@chuq.com>
33         * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
34         with parallel runs of `make'.
36 2003-08-23  Stephen Gildea  <gildea@stop.mail-abuse.org>
38         * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
39         insert SORT_SEP.  With certain combinations of sort specifications,
40         refer sorted entries in the wrong order.  In particular, entries
41         with a missing field should be be sorted before all entries that
42         have that field, before refer looks to the next field.
44 2003-08-23  Werner LEMBERG  <wl@gnu.org>
46         * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
47         g++ linker is used.  Reported by Mark J. Reed
48         <mark.reed@turner.com>.
50 2003-08-16  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
52         Add key character `x' to tbl which makes tbl call a user-defined
53         macro on a table cell.
55         * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
56         * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
57         `set_modifier' after printing the compatibility request.
58         (set_modifier): Print call to `m->macro' if not empty.
59         * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
60         `macro'.
61         (process_format): Implement cases `x' and `X'.
62         * src/preproc/tbl/tbl.man, NEWS: Updated.
64 2003-08-15  Werner LEMBERG  <wl@gnu.org>
66         * doc/groff.texinfo: Minor fixes.
68 2003-08-09  Werner LEMBERG  <wl@gnu.org>
70         * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
72 2003-08-07  Werner LEMBERG  <wl@gnu.org>
74         * doc/Makefile.sub: Not all shells expand wildcards in the `for'
75         argument list to nothing if there is no file to match.  Use `ls' as
76         a protection, similar to autoconf.
78         * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
79         empty argument lists.
81         * doc/groff.texinfo: Improve documentation how vertical spacing
82         and line breaks interact.
83         Other minor fixes.
85         * tmac/www.tmac: Initialize `www-htmlimage-gap'.
87 2003-08-03  Werner LEMBERG  <wl@gnu.org>
89         * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
90         EPS (using eps2eps or similar programs to compute the bounding box).
92 2003-07-24  Werner LEMBERG  <wl@gnu.org>
94         * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
95         * doc/texinfo.tex: Updated from texinfo 4.6.
96         * README.CVS: From now on we need texinfo 4.6.
98 2003-07-23  Werner LEMBERG  <wl@gnu.org>
100         Add requests `dei1' and `ami1' for completeness.
102         * src/roff/troff/input.cc (calling_mode): Remove
103         CALLING_DISABLE_COMP.
104         (comp_mode): New enumeration.
105         (do_define_string, define_string, define_nocomp_string,
106         append_string, append_nocomp_string): Updated.
107         (do_define_macro): Add third parameter.
108         (define_macro, define_nocomp_macro, define_indirect_macro,
109         append_macro, append_nocomp_macro, append_indirect_macro): Updated.
110         (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
111         functions.
112         (ignore): Updated.
113         (init_input_requests): Add `dei1' and `ami1'.
115         * tmac/trace.tmac: Handle de1 and am1.
116         (de): Improve tracing message.
117         (am): Add missing `do'.
118         (return): Use de1.
120         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
121         Document new requests.
123 2003-07-22  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
125         Add option -G to .MPIMG to insert a gap between text and the image.
127         * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
128         www-finish-left-ll): Updated.
129         (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
130         (MPIMG): Make option -L and -R optional.
131         Implement option -G.
133 2003-07-22  Gaius Mulley  <gaius@glam.ac.uk>
135         * src/devices/grohtml/post-html.cpp
136         (html_printer::do_file_components): Don't use `stdout' as lvalue
137         since it can be a macro.
139 2003-07-22  Werner LEMBERG  <wl@gnu.org>
141         * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
142         the corresponding test in aclocal.m4.
144 2003-07-21  Werner LEMBERG  <wl@gnu.org>
146         * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
147         names but RGB values directly.  Otherwise pnmtopng depends on
148         an external file `rgb.txt' which maps colour names to values.
150 2003-07-20  Werner LEMBERG  <wl@gnu.org>
152         * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
153         * configure, src/include/config.hin: Regenerated.
155         * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
157 2003-07-19  Werner LEMBERG  <wl@gnu.org>
159         * PROBLEMS: Add solution for UTF-8 problem with hyphens.
161 2003-07-18  Werner LEMBERG  <wl@gnu.org>
163         * *.man: Switch to non-compatibility mode temporarily if GNU
164         syntax extensions are used in the particular man page.
166         * PROBLEMS: Add solutions for SGR problems.
168 2003-07-17  Werner LEMBERG  <wl@gnu.org>
170         Don't ignore grotty's command line options if \X'tty: sgr ...' is
171         used to change the drawing scheme.
173         * src/devives/grotty/tty.cpp (bold_flag_option,
174         underline_flag_option, italic_flag_option, reverse_flag_option,
175         bold_underline_mode_option): New global variables.
176         (update_options): New function.
177         (tty_printer::special): Call update_options.
178         (main): Don't set xxx_flag but xxx_flag_option, then call
179         update_options.
181 2003-07-14  Werner LEMBERG  <wl@gnu.org>
183         Make grotty emit proper Unicode box drawing characters for -Tutf8.
185         * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
186         values.
187         (hline_char, vline_char): New global variables.
188         (tty_printer::tty_printer): Initialize them.
189         (tty_printer::draw): Emit START_LINE and END_LINE flags for both
190         horizontal and vertical lines.
191         (crossings): New global array.
192         (tty_printer::end_page): Use it to determine the proper crossing
193         character for -Tutf8.
195 2003-07-12  Werner LEMBERG  <wl@gnu.org>
197         * doc/Makefilesub (HTMLDOCFILESALL): New macro.
198         (HTMLDOCFILES): Revert to `pic.html'.
199         (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
201 2003-07-11  Werner LEMBERG  <wl@gnu.org>
203         * doc/pic.ms: Improve documentation of absolute coordinates.
204         Document absolute positioning of pictures.
206         * NEWS: Add new pic capability.
208 2003-07-09  Hartmut Henkel  <hartmut_henkel@gmx.de>
210         * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
211         Rewritten.
213 2003-07-07  Werner LEMBERG  <wl@gnu.org>
215         Implement support for dashed and dotted ellipses in pic.  Based on
216         a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
218         * src/preproc/pic/common.cpp (common_output::ellipse_arc,
219         common_output::dashed_ellipse, common_output::dotted_ellipse): New
220         functions.  Ellipse arcs are approximated with circle arcs.
221         * src/preproc/pic/common.h (common_output): Updated.
222         * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
223         functions.
224         * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
226         * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
228 2003-07-06  Werner LEMBERG  <wl@gnu.org>
230         Make grotty work on platforms which have unsigned char as the
231         default for char.  Based on a patch by Thomas Klausner
232         <wiz@netbsd.org>.
234         * src/devices/grotty/tty.cpp (schar): New typedef.
235         Updated calls to declare_ptable and implement_ptable.
236         (glyph): Use schar for back_color_idx and fore_color_idx.
237         (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
238         (tty_printer::tty_color, tty_printer::tty_printer,
239         tty_printer::color_to_idx, tty_printer::put_color): Updated.
241 2003-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
243         * src/roff/nroff/nroff.sh: Add option -d for completeness.
244         * src/roff/nroff/nroff.man: Updated.
246 2003-07-05  Werner LEMBERG  <wl@gnu.org>
248         * NEWS, tmac/groff_www.man: Updated.
249         * doc/Makefile.sub: Updated.
251 2003-07-05  Gaius Mulley  <gaius@glam.ac.uk>
253         Implement support for multiple HTML output files.
255         * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
256         -j command line option.
258         * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
259         global variables.
260         (file): New fields `new_output_file', `require_links',
261         `output_file_name'.
262         (file::file): Updated.
263         (files::set_file_name, files::set_links_required,
264         files::are_links_required, files::is_new_output_file,
265         files::file_name, files::next_file_name): New functions.
266         (header_desc): New fields `no_of_level_one_headings',
267         `header_filename'.
268         (header_desc::header_desc): Updated.
269         (header_desc::write_headings): Handle multiple files.
270         (html_printer::write_header): Save file name in which header occurs.
271         (html_printer::determine_header_level): Possibly split files on
272         level one headings.
273         (html_printer::do_links, html_printer::troff_tag): Updated.
274         (html_printer::insert_split_file, html_printer::do_job_name,
275         html_printer::emit_link, html_printer::write_navigation,
276         html_printer::do_file_components): New functions.
277         (html_printer::~html_printer): Handle multiple files.
278         (main): Handle command line option `-j'.
280         * src/devices/grohtml/grohtml.man: Updated.
282         * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
283         which splits file.
285         * tmac/www.tmac (JOBNAME): New macro.
286         * tmac/s.tmac (SH-NO-TAG): New macro.
287         (@SH): Call SH-NO-TAG.
288         (@NH): Updated.
290 2003-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
292         * tmac/groff_mdoc.man: Improve documentation of punctuation
293         characters.
295 2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>
297         * tmac/doc.tmac (Bd): Change to doc-Li-font later.
299 2003-07-03  Werner LEMBERG  <wl@gnu.org>
301         * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
303 2003-07-01  Ruslan Ermilov  <ru@FreeBSD.org>
305         * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
306         after `/*' and `*/'.
307         Fix spacing.
308         (Fn, Fo): Reduce indentation in synopsis.
310         * tmac/doc-common (doc-check-depth): New macro.
311         (doc-end-macro, Sh, Ss): Use it.
312         (Cd): Fix behaviour in synopsis.
313         (In): Make it parsed and callable.
314         If not in the synopsis, represent the C header file enclosed in
315         angle brackets.
316         (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
317         Use minus, not hyphen.
319         * tmc/groff_mdoc.man: Updated.
321 2003-07-01  Werner LEMBERG  <wl@gnu.org>
323         Integrated grap2graph, contributed by Eric S. Raymond.
325         * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
326         New files.
327         * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
328         contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
330 2003-07-01  Colin Watson  <cjwatson@debian.org>
332         * src/xditview/*.c: Add prototypes, fix return types, add includes.
333         Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
335 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
337         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
339 2003-06-31  Werner LEMBERG  <wl@gnu.org>
341         * doc/Makefile.sub (CLEANADD): Remove all files created by
342         running `make groff.{pdf,dvi}'.
344         * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
345         src/xditview also.
347 2003-06-30  Werner LEMBERG  <wl@gnu.org>
349         * Makefile.in (SHELL): Define as @SHELL@.
350         (mkinstalldirs): Use $(SHELL).
351         (MDEFINES): Add $(SHELL).
352         * Makefile.comm (SHELL): Removed.
354 2003-06-29  Werner LEMBERG  <wl@gnu.org>
356         * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
357         The X11 documentation files use them.
358         * tmac/groff_ms.man, doc/groff.texinfo: Document them.
360 2003-06-15  Robert Goulding  <goulding@Princeton.EDU>
362         * tmac/e.tmac (@C): Handle .ad also.
364 2003-06-12  Werner LEMBERG  <wl@gnu.org>
366         * src/preproc/tbl/tbl.man: Document formatting of text blocks.
368         * src/roff/troff/input.cc (token::next) <handle_escape_char>:
369         Assign `n' even here.  It is possible to construct a node
370         immediately following an escape character:
372           .di xx
373           \?\\\?a
374           .br
375           .di
376           .xx
378 2003-06-10  Werner LEMBERG  <wl@gnu.org>
380         * README.WIN32: Removed.
381         * MANIFEST: Updated.
383 2003-06-07  Werner LEMBERG  <wl@gnu.org>
385         * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
387 2003-06-05  Werner LEMBERG  <wl@gnu.org>
389         * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
390         in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
392 2003-06-03  Werner LEMBERG  <wl@gnu.org>
394         * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
395         is done by the calling function.
397 2003-05-22  Ruslan Ermilov  <ru@FreeBSD.org>
399         * tmac/X.tmac: Fix definition of `em'.
401 2003-05-22  Werner LEMBERG  <wl@gnu.org>
403         * src/roff/troff/input.cc (return_macro_request): Fix detection of
404         argument.
406 2003-05-18  Werner LEMBERG  <wl@gnu.org>
408         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
409         to make items work which consist only of a tag.
411 2003-05-17  Werner LEMBERG  <wl@gnu.org>
413         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
414         aren't stretched in a tag (this can fail with unformatted boxes).
415         Instead, insert a break and go back one line.
417 2003-05-16  Werner LEMBERG  <wl@gnu.org>
419         * src/roff/troff/input.cc (return_macro_request): If called with
420         argument pop macro twice.  We need this to trace `return'.
422         * tmac/trace.tmac: Handle `return'.
423         Fix typos.
425         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
426         Document.
428 2003-05-15  Larry Kollar  <kollar@alltel.net>
430         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
431         registers `FPS', `FVS', and `FPD'.
433 2003-05-15  Werner LEMBERG  <wl@gnu.org>
435         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
436         correctly.
438 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
440         * tmac/groff_mdoc.man: Slight improvements.
442 2003-05-03  Werner LEMBERG  <wl@gnu.org>
444         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
445         `doc-header-space' after header line if register `cR' is set.
447 2003-05-02  Werner LEMBERG  <wl@gnu.org>
449         * TODO: Updated.
451 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
453         * tmac/doc-common (Nd): Use \[em].
455 2003-05-01  Werner LEMBERG  <wl@gnu.org>
457         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
458         doc-footer-space): Initialize to 0.5i.
459         (doc-setup-page-layout): Don't set doc-header-space and
460         doc-footer-space.
462 2003-04-30  Werner LEMBERG  <wl@gnu.org>
464         * REVISION: Set to 1.
466         * doc/pic.ms: Document possible problems with `figname'.
468 2003-04-29  Werner LEMBERG  <wl@gnu.org>
470 Version 1.19 released
471 =====================
473         * VERSION: Set to 1.19.
474         * REVISION: Set to 0.
475         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
477         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
478         Define charset as `US-ASCII' in html output.
480         * tmac/www.tmac (ULE): Add missing scaling indicator.
482         * win32-diffs: Removed.
484 2003-04-28  Werner LEMBERG  <wl@gnu.org>
486         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
487         `.da' and `.boxa'.
488         Document how to insert discardable whitespace with `.ss'.
490 2003-04-27  Werner LEMBERG  <wl@gnu.org>
492         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
493         work with plain TeX also.
495         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
497 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
499         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
500         Use a loose DTD.
502 2003-04-24  Werner LEMBERG  <wl@gnu.org>
504         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
505         vbox with positive height and zero depth if in TeX mode.
507         * NEWS: Document glyph name changes for grodvi and grolj4.
509 2003-04-23  Werner LEMBERG  <wl@gnu.org>
511         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
512         * doc/pic.ms: Fixed.
514 2003-04-21  Werner LEMBERG  <wl@gnu.org>
516         HP-UX 10.20 has `snprintf' but it isn't declared.
518         * configure.ac: Add declaration test for snprintf.
519         * configure: Regenerated.
520         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
521         * src/include/config.hin: Regenerated.
523 2003-04-19  Werner LEMBERG  <wl@gnu.org>
525         Add keyword `figname' to pic, specifying the name of the picture
526         box in TeX mode.  Based on a patch from William J Poser
527         <wjposer@unagi.cis.upenn.edu>.
529         * src/preproc/pic/pic.y: New token `FIGNAME'.
530         (macro_name): New rule of type <str>.
531         (placeless_element): Handle `FIGNAME'.
532         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
533         * src/preproc/pic/main.cpp (graphname): New global variable.
534         (do_picture): Initialize `graphname'.
535         * src/preproc/pic/pic.h: Updated.
536         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
537         `graphname'.
538         Simplify TeX code.
539         (tex_output::text): Beautify output.
540         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
541         `shaded' and `outlined' unconditionally.
542         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
543         Minor improvements.
545         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
546         greater is necessary.
548 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
550         Add option -r to soelim to avoid emission of `.lf' lines.
551         Add option -t to produces TeX comment lines instead of `.lf' lines.
553         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
554         and `tex_flag'.
555         (usage): Updated.
556         (main): Handle `-r' and `-t'.
557         (set_location): Handle `raw_flag' and `tex_flag'.
558         * src/preproc/soelim/soelim.man, NEWS: Updated.
560 2003-04-17  Werner LEMBERG  <wl@gnu.org>
562         * tmac/hyphenex.sh: Replaced with...
563         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
564         nightmares.
566         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
567         if --quiet is used for the configure script.
568         * configure: Regenerated.
570 2003-04-16  Werner LEMBERG  <wl@gnu.org>
572         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
573         Add `const' to second argument.
574         (html_printer::add_table_end): Add `const' to argument.
575         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
576         `const' to arguments.
577         * src/devices/grohtml/html-text.h: Updated.
579         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
580         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
581         argument.
583         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
584         cast for integer constant.
586         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
587         (writeNbytes): Add `const' to first argument.
588         (writeString): Add `const' to argument.
589         (char_buffer::can_see): Add `const' to third argument.
590         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
591         `const' to argument.
592         * src/preproc/html/pushback.h: Updated.
594         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
595         (include_path_append): Add `const' to argument.
596         (do_file): Updated.
598         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
599         for `value'.
600         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
601         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
602         for `value'.
603         (unicode_decompose_init::unicode_decompose_init): Updated.
604         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
605         for `value'.
606         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
607         * src/roff/troff/input.cc (process_startup_file): Add `const' to
608         argument.
610         * tmac/hyphenex.sh: Make script more portable by using a here
611         document.
613 2003-04-15  Werner LEMBERG  <wl@gnu.org>
615         Renamed all `*.cc' files to `*.cpp'.
616         Updated all configuration files, makefiles, and documentation.
618 2003-04-14  Werner LEMBERG  <wl@gnu.org>
620         * tmac/hyphenex.sh: Slight improvements.
622 2003-04-13  Werner LEMBERG  <wl@gnu.org>
624         * font/devascii/R.proto, font/devcp1037/R.proto,
625         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
626         character slots with unnamed glyphs.
628         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
629         (an-first): New global variable.
630         (an-header): Emit vertical space between multiple man pages.
632 2003-04-11  Werner LEMBERG  <wl@gnu.org>
634         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
635         values.
637 2003-04-10  Werner LEMBERG  <wl@gnu.org>
639         * PROBLEMS: Revised.
641 2003-04-10  Bernd Warken  <bwarken@mayn.de>
643         * doc/webpage.ms: Improved.
645 2003-04-09  Werner LEMBERG  <wl@gnu.org>
647         Add register \n[.height] which returns the value of \H.
648         Add register \n[.slant] which returns the value of \S.
650         * src/roff/troff/env.cc (init_env_requests): Implement.
651         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
652         Document.
654 2003-04-08  Werner LEMBERG  <wl@gnu.org>
656         * tmac/html.tmac: Move some of the data into html-end.tmac.
657         Remove most of the character translations for eqn since html fonts
658         now cover those characters.
659         Load www.tmac.
660         * tmac/html-end.tmac: New file.
661         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
662         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
663         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
665 2003-04-07  Werner LEMBERG  <wl@gnu.org>
667         * man/groff_out.man: Document negative values of `N' if -Thtml is
668         used.
670 2003-04-06  Werner LEMBERG  <wl@gnu.org>
672         * Makefile.comm (depend.temp): Check location of YTABC.
674 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
676         * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
677         binary path.
678         (groff_bin_path): Rename to GROFF_BIN_PATH.
679         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
680         * doc/Makefile.in (TROFFBIN): New variable for troff
681         binary path.
682         (GROFFBIN): New variable for groff binary path.
683         (groff_bin_path): Rename to GROFF_BIN_PATH.
684         (TROFF): Use TROFFBIN.
685         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
686         * doc/Makefile.sub (GROFFBIN): New variable for groff
687         binary path.
688         (groff_bin_path): Rename to GROFF_BIN_PATH.
689         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
691         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
692         with INSTALL_SCRIPT.
693         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
694         * Makefile.dev (all): Depend on DEVSCRIPTS.
695         (install_dev): Likewise.
696         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
697         scripts.
698         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
699         (DEVGENSCRIPTS): New variable to hold generated scripts.
701 2003-04-05  Werner LEMBERG  <wl@gnu.org>
703         * src/libs/libdriver/input.cc (IntArray::operator[],
704         IntArray::get_data): Remove meaningless `const' in return value.
706         * README.CVS: New file.
708 2003-04-04  Werner LEMBERG  <wl@gnu.org>
710         Check for stdint.h in C++, not in C.
712         * aclocal.m4 (GROFF_STDINT_H): New function,
713         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
714         AC_CHECK_HEADERS.
715         * configure, src/include/config.hin: Regenerated.
716         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
719         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
720         with a negative value, representing the width of the unbreakable
721         space (only for -Thtml).  grohtml then converts this back to
722         &nbsp; and uses the value of N as its width.
724         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
725         unbreakable_space_node::tprint): Emit `N-<width>'.
726         * src/include/printer.h (printer::set_numbered_char): Make it
727         virtual.
728         Make members `font_table' and `nfonts' protected instead of private.
729         * src/devices/grohtml/post-html.cc
730         (html_printer::set_numbered_char): New member function.
733         * src/libs/libgroff/maxfilename.cc:
734         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
736         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
737         emit word marker.
739 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
741         * man/roff.man: Small fixes.
743 2003-04-03  Werner LEMBERG  <wl@gnu.org>
745         Make groff independent from locale's numeric settings.
747         * configure.ac: Check for `setlocale'.
748         * configure, src/include/config.hin: Regenerated.
750         * src/include/lib.h: Handle HAVE_SETLOCALE.
752         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
753         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
754         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
757         * doc/groff.texinfo: Change dir category to `Typesetting'.
758         (Man font macros): Mention that there is no space between arguments
759         of .BI and friends.
761         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
762         (*printer::change_color, *printer::change_fill_color): Add missing
763         `const'.
765 2003-04-02  Werner LEMBERG  <wl@gnu.org>
767         * src/devices/grohtml/html-table.cc (html_table::emit_col,
768         html_table::is_gap): Compute table widths after converting border
769         positions to avoid rounding errors.
771 2003-04-01  Werner LEMBERG  <wl@gnu.org>
773         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
774         `space_emitted' properly.
776 2003-03-31  Werner LEMBERG  <wl@gnu.org>
778         * src/devices/grohtml/html-table.cc: Fix column width calculation.
779         (html_table::set_linelength): Don't add 1.
780         (html_table::add_indent): Don't subtract 1.
782         * tmac/html.tmac: Set default page offset to zero.
784 2003-03-30  Werner LEMBERG  <wl@gnu.org>
786         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
788         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
789         unbreakable_space_node::tprint): New functions.
790         (troff_output_file): Make space_char_hmotion_mode::tprint and
791         unbreakable_space_node::tprint to friends.
792         * src/roff/troff/node.h: Updated.
794         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
795         in the HTML standard).
797 2003-03-29  Werner LEMBERG  <wl@gnu.org>
799         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
800         Otherwise, the following code
802           .di xxx
803           .ps 10
804           a
805           .br
806           .di
807           x\*[xxx]
809         produces `x a' instead of `xa'.  This is a temporary fix, disabling
810         font changes in diversions for -Thtml.
812         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
813         `HTML-TAG'.
814         (an-do-tag-html): Merge with ...
815         (an-do-tag): This macro.
816         Change code slightly to circumvent grohtml bug.
817         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
819         * src/devices/grohtml/html-table.cc (html_table::emit_col,
820         html_table::is_gap): Round `width' properly.
822         * tmac/html.tmac: Provide some default layout parameters for
823         grohtml.
825         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
826         command.
828 2003-03-28  Werner LEMBERG  <wl@gnu.org>
830         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
832 2003-03-27  Werner LEMBERG  <wl@gnu.org>
834         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
835         defined.
837 2003-03-20  Werner LEMBERG  <wl@gnu.org>
839         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
840         `.vs'.
841         * doc/groff.texinfo: Updated.
843 2003-03-19  Werner LEMBERG  <wl@gnu.org>
845         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
846         TOKEN_END_TRAP>: Reset `have_input'.
848 2003-03-18  Werner LEMBERG  <wl@gnu.org>
850         * src/roff/groff/groff.man: Mention groff_trace man page.
852 2003-03-16  Werner LEMBERG  <wl@gnu.org>
854         * Makefile.in (LIBEXT): New variable to indicate the file extension
855         of library files.  Computed heuristically from $(OBJEXT).
856         (MDEFINES): Add $(LIBEXT).
857         * Makefile.lib, Makefile.comm: Use it.
859         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
860         overlong lines into smaller chunks.
861         (get_binary): New function.
862         (main): Use them.
863         * src/utils/pfbtops/pfbtops.man: Updated.
865 2003-03-15  Colin Watson  <cjwatson@debian.org>
867         * src/roff/groff/groff.man: Minor syntax fix.
869 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
871         * src/devices/grops/ps.cc (ps_printer::media_set,
872         ps_printer::~ps_printer): Handle zero paper width and length.
874 2003-03-13  Werner LEMBERG  <wl@gnu.org>
876         Add options -p and -l to grodvi.
878         * src/devices/grodvi/dvi.cc: Include paper.h.
879         (landscape_flag, user_paper_length, user_paper_width): New global
880         variables.
881         (dvi_printer::begin_page): Emit `papersize' special.
882         Set color after initialization of `cur_h' and `cur_v'.
883         (main): Add options `-l' and `-p'.
884         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
885         * src/devices/grodvi/grodvi.man, NEWS: Updated.
887         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
889 2003-03-12  Werner LEMBERG  <wl@gnu.org>
891         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
892         * man/groff_tmac.man: This man page.
893         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
894         deprecated.
896         * tmac/X.tmac: Don't load pspic.tmac.
898 2003-03-11  Werner LEMBERG  <wl@gnu.org>
900         Make variable `pr' local to libdriver/input.cc.  Based on a patch
901         by Bernd Warken <bwarken@mayn.de>.
903         * src/include/driver.h (pr): Removed.
905         * src/libs/libdriver/input.cc (pr): New global variable.
906         (do_file): Deallocate `pr'.
907         * src/libs/libdriver/printer.cc (pr): Removed.
909         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
910         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
911         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
912         (main): Don't delete `pr'.
914 2003-03-10  Werner LEMBERG  <wl@gnu.org>
916         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
917         * tmac/papersize.tmac: New file.
918         * tmac/troffrc: Include `papersize.tmac'.
919         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
920         * tmac/an-old.tmac: Set LT to LL by default.
922         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
923         doc/groff.texinfo: Updated.
925         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
926         bug which caused all odd iso papers to have wrong dimensions.
928         * src/devices/grops/ps.cc (user_paper_width): New global variable.
929         (main) <'p'>: Set `user_paper_width' also.
930         (ps_printer::media_width, ps_printer::media_height): Use values
931         given with option `-p'.
933 2003-03-09  Werner LEMBERG  <wl@gnu.org>
935         * src/include/nonposix.h: Provide default for SET_BINARY.
937         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
938         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
939         unconditionally.
941         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
942         (main): Treat \r\n as \n.
944 2003-03-08  Werner LEMBERG  <wl@gnu.org>
946         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
947         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
949 2003-03-07  Werner LEMBERG  <wl@gnu.org>
951         Added support to access more than 256 glyphs in Type 1 fonts.
953         * src/devices/grops/ps.cc (subencoding): New structure.
954         (style): Add `sub' field.
955         Updated all users.
956         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
957         Add `set_subencoding', `get_subfont' and `encode_subfont' member
958         functions.
959         Updated all users.
960         (ps_printer::set_char): Use `set_subencoding'.
961         (make_subencoding_name): New function.
962         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
963         (ps_printer::~ps_printer): Emit subencoding definitions.
965         * src/devices/grops/psrm.cc (valid_input_table): New array to
966         properly support EBCDIC.
967         (white_space): Add `\f'.
968         (ps_get_line): Change first argument to be of type `string &'.
969         Updated all callers.
970         This allows to get lines of arbitrary length.
971         Use `valid_input_table'.
972         Remove warning about non-conforming PS line length.  This seems
973         not to be of great importance -- for example, dvips don't emit
974         a warning either.
975         (PS_LINE_MAX): Removed.
976         (matches_comment): Change first argument to be of type `string &'.
978         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
980         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
981         %AGL_to_unicode, %default_ligatures): New hash tables.
982         Read all map entries.
983         Add unencoded characters.
984         Check for default ligatures if there are no `L' entries.
985         Print all kern entries.
986         Print all characters in charset.
987         * src/utils/afmtodit/afmtodit.man: Updated.
989         * font/devps/*: Regerated all fonts.
991         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
992         of characters, just use `.trin'.  Otherwise the mapping depends
993         on the font encoding.
994         * tmac/ps.tmac: Add `fi' and `fl'.
995         Improve `Fi' and `Fl'.
996         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
997         * tmac/Xps.tmac: Fix `em'.
999         * NEWS: Updated.
1001 2003-03-04  Werner LEMBERG  <wl@gnu.org>
1003         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
1004         `have_input'.
1006 2003-03-03  Werner LEMBERG  <wl@gnu.org>
1008         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
1010         * font/devps/generate/textmap: Remove entry `similarequal'.
1011         * font/devps/symbolmap: Updated.
1013 2003-03-02  Werner LEMBERG  <wl@gnu.org>
1015         * src/libs/libgroff/font.cc (font::load): Fix error message for
1016         bad character type.
1018         * src/devices/grops/grops.man: Improve documentation of the -b
1019         flag.
1021         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
1022         `ascii' and `cp1047'.
1024 2003-03-01  Werner LEMBERG  <wl@gnu.org>
1026         Document composite glyphs and the `composite' request.
1028         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
1030 2003-02-28  Werner LEMBERG  <wl@gnu.org>
1032         * font/devdvi/generate/ec.map: Add some more Unicode entities.
1033         * font/devdvi/*EC: Updated.
1035         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
1036         * tmac/latin1 (latin1-tr): Undo any previous mapping.
1037         * tmac/troffrc: Load `composite.tmac'.
1038         * tmac/Makefile.sub (NORMALFILES): Updated.
1040         * doc/groff.texinfo (Input Encodings): New section.
1041         * NEWS: Updated.
1043 2003-02-27  Werner LEMBERG  <wl@gnu.org>
1045         * doc/texinfo.tex: New version 2003-02-11.06.
1047         * tmac/doc-common (Dt): Don't emit warning for unknown section.
1048         * tmac/groff_mdoc.man: Fix description of `Dt'.
1050 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
1052         * font/devps/prologue.ps: Fix for included Postscript that does
1053         a setpagedevice -- which is now safely ignored.
1055         * NEWS: Updated.
1057         * src/devices/grops/ps.cc: Now sets the page size in the generated
1058         document.  This is done in two ways: Via a %%-comment for gv and
1059         the like, and via a PageSize and setpagedevice for programs that
1060         understands Postscript proper, like ps2pdf.
1062         * src/devices/grops/ps.h: New broken-flag to avoid page size
1063         definition, if required.
1065         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
1067         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
1068         Not really necessary due to the fix in prologue.ps, but cleaner:
1069         Such information does not belong in an .eps file.
1071         * doc/Makefile.sub: See doc/Makefile.in.
1073 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
1075         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
1076         instead of P1 since the latter is broken in some versions of netpbm.
1077         * configure: Updated.
1079 2003-02-26  Larry Kollar  <kollar@alltel.net>
1081         Make man pages more customizable.
1083         * tmac/an-old.tmac (FT): New register holding footer distance from
1084         bottom.
1085         (HF): New string holding the default heading font.
1086         (TH): Handle registers `IN' and `SN' set on the command line.
1087         Use `FT'.
1088         (PT, BT): New strings to customize header and footer lines.
1089         (an-header, an-footer): Use them.
1090         (SH, SS): Use `HF'.
1091         * tmac/groff_man.man: Document changes.
1093         * doc/groff.texinfo: Document man changes.
1094         Document Ultrix extensions of man.
1096 2003-02-26  Werner LEMBERG  <wl@gnu.org>
1098         * src/roff/troff/input.cc (do_width, do_if_request): Reset
1099         `have_input' after changing back to old environment.
1101         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
1102         function up to be defined before first call.  This is necessary to
1103         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
1105         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
1106         the default font directory also.  Based on a patch from James
1107         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
1108         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
1109         * src/utils/afmtodit/afmtodit.man: Document it.
1111         * NEWS: Updated.
1113         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
1115 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
1117         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
1118         (GROFF_PNMTOPS_NOSETPAGE): New macro.
1119         * configure.ac: Use it.
1120         * configure: Regenerated.
1121         * Makefile.in: Updated.
1123         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
1124         (CLEANADD): Add www.tmac-sed.
1125         (pnmtops_nosetpage): Define default.
1126         (install_data): Handle www.tmac-sed and substitute
1127         @PNMTOPS_NOSETPAGE@.
1128         (stamp-sed): Add www.tmac.
1129         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
1130         It now breaks URLs at suitable places.
1131         (www:substring_ok): New register set by...
1132         (www:@test_substring): New macro.
1133         (www:error): New alias to www-error.
1134         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
1135         New macros.
1136         (URL): Use www:url_breaks.
1137         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
1138         (CDS, CDE): New macros.
1140 2003-02-25  Werner LEMBERG  <wl@gnu.org>
1142         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
1143         buffer overflow.
1145 2003-02-24  Werner LEMBERG  <wl@gnu.org>
1147         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
1148         can be negative also.
1150         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
1151         `int16'.
1152         (read_char_table): Avoid negative ascenders.
1153         (output_charset): Add cast.
1154         * font/devlj4/*: Regenerated.
1156         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
1157         possible.
1159         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
1160         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
1161         of `<>'.
1162         * font/devdvi/*: Regenerated.
1164         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
1165         normal width, while the previously used characters (U+2329 and
1166         U+232A) are classified as wide due to canonical equivalence with the
1167         CJK punctuation characters U+3008 and U+3009.
1169         * font/devutf8/R.proto: Updated.
1170         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
1172         * man/groff_char.man: Simplify handling of table traps by
1173         introducing `start block' and `end block' macros.
1174         (Ns, Ne, 2s, 2e, Ds, De): New macros.
1175         (DL): Make it work with Unix troff also.
1176         Fix code values of `la' and `ra'.
1178         * tmac/dvi.tmac: Define `<>' for CW and CWI.
1180 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
1182         * src/devices/grohtml/post-html.cc (element_list::~element_list):
1183         New destructor, fixing a major memory leak.
1185 2003-02-22  Werner LEMBERG  <wl@gnu.org>
1187         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
1188         to be in conformance with Unicode 3.0 and newer.
1190         * font/devlj4/generate/text.map: Add `Eu'.
1191         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
1192         * font/devlj4/S: Regenerated.
1194         * man/groff_char.man: Completely rewritten.
1196         * doc/groff.texinfo: Fix description of request and macro arguments.
1198 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
1200         Valgrind fixes.
1202         * src/devices/grohtml/html-table.cc (html_table::~html_table):
1203         Deallocate `columns' list.
1204         * src/devices/grohtml/post-html.cc (char_block::~char_block):
1205         New destructor.
1206         (text_glob::text_glob_html, text_glob::text_glob_special,
1207         text_glob::text_glob_line, text_glob::text_glob_auto_image,
1208         text_glob::text_glob_tag): Avoid memory leaks.
1209         (text_glob::remember_table): Free memory before reassigning.
1211 2003-02-19  Werner LEMBERG  <wl@gnu.org>
1213         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
1214         alias `hbar'), the Planck constant over two pi.
1216         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
1217         `+e' for position 34.
1218         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
1219         `u2662' and `u2661'.
1220         * font/devdvi/{MI,S}: Regenerated.
1221         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
1222         * font/devlbp/*: Add `hbar' alias.
1223         * font/devlj4/generate/special.map: Ditto.
1224         * font/devlj4/S: Regenerated.
1225         * font/devps/generate/symbolchars: Add `+e'.
1226         * font/devps/generate/textmap: Fix PS name for `-h'.
1227         Add `hbar' alias.
1228         * font/devps/symbolmap: Regenerated.
1230         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
1232         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
1233         `-h', `hbar'.
1234         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
1235         `-h'.
1237         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
1238         `hbar'.
1239         * tmac/tty-char.tmac: Add `+e'.
1241 2003-02-17  Werner LEMBERG  <wl@gnu.org>
1243         Another round trying to really fix problems with `have_input'.
1245         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
1246         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
1248         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
1249         handling if both foreground and background colors are default.
1251         * doc/groff.texinfo (Debugging): Document .lf differences to
1252         AT&T troff.
1254 2003-02-16  Werner LEMBERG  <wl@gnu.org>
1256         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
1257         null-bytes in created string.
1259         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
1260         alias_macro, lookup_request): Improve warning messages.
1262         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
1263         not `strdup'.
1264         Free `last_image_filename'.
1266         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
1267         `buffer'.
1268         (imageList::createPage, imageList::createImage): Use `free', not
1269         `a_delete'.
1270         (imageItem::~imageItem): Free `imageName'.
1271         (addRegDef): Use `strsave', not `strdup'.
1272         (get_resolution): Free `pathp'.
1274 2003-02-15  Werner LEMBERG  <wl@gnu.org>
1276         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
1277         to `dummy'.
1279 2003-02-14  Werner LEMBERG  <wl@gnu.org>
1281         Add memory management for colors to deallocate unnamed colors
1282         properly.
1284         * src/include/color.h (color): New members `free_list' and `next'.
1285         New member functions `new' and `delete'.
1286         Add destructor.
1287         * src/libs/libgroff/color.cc: Implement it.
1289         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
1290         for array size of new operator.
1292         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
1293         redundant comparison.
1295         * src/roff/troff/input.cc (word_space_node::reread,
1296         hmotion_node::reread): Avoid warning about unused parameter.
1297         (reset_output_registers): Remove redundant parameter.
1298         (define_color): Undo change 2003-02-12.
1300         * src/roff/troff/reg.h: Updated.
1302         * src/roff/troff/node.cc (troff_output_file::really_print_line,
1303         output_file::put_filename, real_output_file::really_put_filename,
1304         ascii_output_file::really_print_line,
1305         break_char_node::get_hyphen_list): Avoid warning about unused
1306         parameter.
1307         (suppress_node::tprint): Updated.
1309         * configure.ac: Check declaration for rand() and srand().
1310         * configure: Regenerated.
1312         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
1313         conditionally.
1314         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
1315         and srand().
1317         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
1318         to avoid compiler warnings.
1320         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
1321         unused.
1323         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
1324         is unused.
1325         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
1326         (unused) parameter.
1327         Updated all callers.
1329         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
1330         is unused.
1331         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
1332         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
1334         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
1335         Parameter is unused.
1336         (html_printer::add_table_end): Define parameter conditionally.
1337         * src/devices/grohtml/output.cc (simple_output::special): Parameter
1338         is unused.
1340         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
1341         (lbp_printer::set_char): Last parameter is unused.
1343         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
1345 2003-02-13  Werner LEMBERG  <wl@gnu.org>
1347         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
1348         Make \D'f ...' move horizontally again for backwards compatibility.
1349         Replace it with \D'Fg ...' where appropriate to avoid dependency
1350         on horizontal resolution.
1352         * src/roff/troff/input.cc (do_get_long_name): New function.
1353         (get_long_name): Call it.
1355         (read_draw_node): Handle `\D'Fx ...' by calling ...
1356         (read_color_draw_node): New function.
1358         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
1359         `end'.
1360         Pass it to `do_get_long_name' which is used instead of
1361         `get_long_name'.
1363         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
1364         unnecessary value guard.
1365         (parse_D_command) <'f'>: Add horizontal shift.
1367         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
1368         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
1369         (FILL_MAX): Removed.
1371         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1372         Updated.
1374 2003-02-12  Werner LEMBERG  <wl@gnu.org>
1376         * src/roff/troff/input.cc (do_name_test, do_expr_test,
1377         do_zero_width): Push `\n' if closing delimiter is missing.
1379         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
1380         <'F'>: Make \F non-transparent at the beginning of line.
1381         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
1382         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
1383         `have_input'.
1385         (define_color): Free color in case of reassignment.
1387         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
1388         @DefescListEnd): Use @Var, not @var.
1389         Fix all calls.
1391         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
1393         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
1394         `shaded' and `outlined' arrays.
1395         (object_spec::object_spec): Initialize `shaded' and `outlined'.
1396         (graphic_object::set_fill_color, graphic_object::set_outline_color):
1397         Use strsave.
1398         (closed_object::set_fill_color): Ditto.
1399         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
1400         instead of strdup.
1401         (troff_output::reset_color): Use a_delete instead of free.
1402         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
1404 2003-02-11  Werner LEMBERG  <wl@gnu.org>
1406         * doc/groff.texinfo: Improve documentation of `ad'.
1407         Document that \D'f...' is dependent on the horizontal resolution.
1408         * man/groff_diff.man: Improve documentation of \D'f...'.
1410         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
1411         compensating \h'...' for \D'f ...' since the latter no longer moves
1412         current position.
1413         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
1415 2003-02-10  Werner LEMBERG  <wl@gnu.org>
1417         Improve error messages for `x F' (and `F') commands.
1419         * src/include/error.h: Add declaration for
1420         `current_source_filename'.
1421         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
1422         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
1423         parameter for source file string.
1424         Updated all callers.
1426         * src/libs/libdriver/input.cc: Add `current_source_filename'.
1427         (remember_source_filename): New function.
1428         (parse_x_command <'F'>, do_file <'F'>): Use it.
1430 2003-02-09  Werner LEMBERG  <wl@gnu.org>
1432         Make grotty not emit warnings about unknown colors more than
1433         necessary.
1435         * src/devices/grotty/tty.cc: Include `ptable.h'.
1436         (TTY_MAX_COLORS): Removed.
1437         (DEFAULT_COLOR_IDX): Defined to -1.
1438         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
1439         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
1440         Change `tty_colors' to be a ptable.
1441         First arg of `put_color' is now `char'.
1442         New functions `make_rgb_string' and `tty_color'.
1443         (tty_printer::tty_printer): Use `tty_color'.
1444         (tty_printer::color_to_idx): Return value is now `char'.
1445         Use `tty_color'.
1447         * src/include/color.h (color): Add `print_color' member function.
1448         * src/libs/libgroff/color.cc (color::print_color): Implement it.
1450 2003-02-08  Werner LEMBERG  <wl@gnu.org>
1452         Valgrind fixes.
1454         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
1455         encoding file.
1457         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
1458         assume that value has been allocated with `new[]', thus use
1459         `a_delete' for deallocation.
1461         * src/libs/libdriver/input.cc (get_integer_arg,
1462         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
1463         where appropriate.
1465         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
1466         * src/libs/libgroff/nametoindex.cc
1467         (character_indexer::named_char_index): Use `new <type>[1]'.
1469         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
1470         <type>[1]'.
1471         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
1472         (split_text): Use `a_delete'.
1474         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
1475         <type>[1]'.
1477         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
1478         harmless memory leak.
1479         (hyphen_trie::read_patterns_file): Initialize `buf'.
1480         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
1481         Initialize `current_fill_color'and `current_glyph_color'.
1482         * src/roff/troff/glyphuni.cc
1483         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
1484         * src/roff/troff/uniuni.cc
1485         (unicode_decompose_init::unicode_decompose_init): Ditto.
1486         * src/roff/troff/uniglyph.cc
1487         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
1489 2003-01-26  Werner LEMBERG  <wl@gnu.org>
1491         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
1492         `access' before calling `unlink'.
1493         (do_file): Handle __EMX__.
1495         * src/include/nonposix.h: Handle __EMX__.
1497         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
1498         (fontpath,tmacpath): Use it.
1499         (MDEFINES): Add it.
1500         Sorted alphabetically.
1502         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
1503         @SEP@.
1504         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
1505         @SEP@.
1507 2003-01-27  Werner LEMBERG  <wl@gnu.org>
1509         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
1510         New files, copied from gnulib.
1511         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
1512         * configure.ac: Updated.
1513         * configure: Regenerated.
1515         * src/include/config.hin: Regenerated.
1516         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
1517         Don't define `strcasecmp' as `strcmp'.
1518         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
1519         Dont define `strncasecmp' as `strncmp'.
1521         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
1522         Removed.
1524 2003-01-26  Werner LEMBERG  <wl@gnu.org>
1526         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
1527         s/unline/unlink/.
1529 2003-01-25  Werner LEMBERG  <wl@gnu.org>
1531         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
1533 2003-01-24  Werner LEMBERG  <wl@gnu.org>
1535         Add US-english hyphenation exceptions (converted from Barbara
1536         Beeton's hyphenation exception log reports which appear irregularly
1537         in TUGBoat).
1539         * tmac/hyphen.us: Updated to latest version.
1540         * tmac/README: Updated.
1541         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
1542         * tmac/troffrc: Load `hyphenex.us'.
1543         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
1544         * doc/groff.texinfo: Updated.
1546 2003-01-23  Werner LEMBERG  <wl@gnu.org>
1548         Improve hyphenation slightly.  This is a first step in redesigning
1549         the hyphenation algorithm to make it more flexible (e.g. allowing
1550         kerns and ligatures between the hyphenation character and the
1551         following character -- while not used normally in English, other
1552         languages like German would benefit).
1554         * src/roff/troff/env.cc (environment::hyphenate_line): Use
1555         assertion instead of if-clause.
1556         Let `get_hyphen_list' return the number of involved characters in
1557         the hyphenation pattern instead of computing it directly (which
1558         often yields too small values).
1559         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
1560         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
1561         parameter.
1563 2003-01-22  Werner LEMBERG  <wl@gnu.org>
1565         Fixing a bug which caused groff to hang if the hyphenation exception
1566         dictionary tried to grow.
1568         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
1569         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
1570         pointer to dictionary.
1572 2003-01-20  Werner LEMBERG  <wl@gnu.org>
1574         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
1575         negative left italic correction.
1576         * src/utils/afmtodit/afmtodit.man: Document it.
1578         * font/devps/generate/Makefile (RFLAG): Add `-m'.
1579         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
1580         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
1582         * NEWS: Updated.
1584 2003-01-16  Werner LEMBERG  <wl@gnu.org>
1586         * NEWS: Updated.
1588 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
1590         * src/preproc/refer/refer.man: Mention REFER environment variable.
1592 2003-01-05  Werner LEMBERG  <wl@gnu.org>
1594         Similar to \[is], the square root glyph (\[sr]) and the square root
1595         extension glyph (\[radicalex]) are now text symbols.  The new
1596         mathematical versions are called \[sqrt] and \[sqrtex],
1597         respectively.
1599         * font/devX*/S: Regenerated.
1600         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
1601         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
1602         * font/devdvi/EX, font/devdvi/S: Regenerated.
1603         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
1604         * font/devlj4/generate/special.map: Add `sqrt'.
1605         * font/devlj4/S: Regenerated.
1606         * font/devps/generate/textmap: Add `sqrt'.
1607         * font/devps/S, font/devps/symbolmap: Regenerated.
1609         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
1610         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
1611         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
1612         overlap horizontally.
1614         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
1615         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
1616         Fix `radicalex'.
1618         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
1619         and `sqrtex' are overlapping glyphs.
1621 2003-01-04  Werner LEMBERG  <wl@gnu.org>
1623         * font/devdvi/generate/texsy.map: Add `is'.
1624         * font/devps/symbolmap: Regenerated.
1625         * font/devdvi/*TC, MI, S: Regenerated.
1627         * tmac/dvi.tmac: Remove `is'.
1629 2003-01-03  Werner LEMBERG  <wl@gnu.org>
1631         `is' is now a text symbol (only relevant for dvi).  The math variant
1632         can be accessed with `integral'.
1634         * font/devX*/S: Regenerated.
1635         * font/devdvi/generate/texex.map: Remove `is'.
1636         * font/devdvi/EX: Updated.
1637         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
1638         * font/devlj4/generate/special.map: Ditto.
1639         * font/devlj4/S: Regenerated.
1640         * font/devps/generate/textmap: Add `integral'.
1641         * font/devps/S: Regenerated.
1643         * tmac/dvi.tmac: Define `is'.
1645         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
1647         * src/preproc/tbl/main.cc (process_format): Fix error message.
1649 2003-01-02  Werner LEMBERG  <wl@gnu.org>
1651         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
1652         * font/devps/textmap: Fix entries for `ne' and `nc'.
1653         * font/devps/symbolmap: Regenerated.
1655         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
1656         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
1657         `38', `58', `78', `-+', `|=', `nc', `ne'.
1659         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
1660         Use `schar' for `aq'.
1661         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
1662         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
1663         * tmac/tty.tmac: Add `ne'.
1665         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
1666         for fallback glyphs.
1668 2002-12-29  Werner LEMBERG  <wl@gnu.org>
1670         Add glyph `|='.
1672         * font/devX*/*: Regenerated.
1673         * font/devdvi/generate/ec.map: Remove `eq'.
1674         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
1675         Assign `|=' to position 39.
1676         * font/devdvi/*EC, S: Regenerated.
1677         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
1678         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
1679         Assign `|=' to position 549.
1680         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
1681         `equalmath'.
1682         Add `uni2243' for `|='.
1684         * tmac/ec.tmac: Add `eq'.
1685         * tmac/dvi.tmac: Add `=~'.
1686         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
1687         `|='.
1689 2002-12-21  Werner LEMBERG  <wl@gnu.org>
1691         * font/devdvi/generate/tc.map: Remove `**'.
1692         * font/devdvi/*TC: Regenerated.
1693         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
1694         `78', `<<', `>>'.
1695         * font/devutf8/NOTES: Updated.
1697         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
1698         Don't give default parameter to `set_macro'.
1699         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
1700         instead of `set_macro'.
1701         (charinfo::setx_macro): Implement it.
1702         (charinfo::set_macro): Don't change `mode'.
1704         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
1705         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
1706         * tmac/dvi.tmac: Define `!=' with `.schar'.
1708 2002-12-20  Werner LEMBERG  <wl@gnu.org>
1710         * font/devX*/S: Regenerated.
1711         * font/devdvi/generate/ec.map: Remove `pl'.
1712         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
1713         * font/devdvi/*{TC,EC}: Regenerated.
1714         * font/devhtml/R.proto: Add `-+'.
1715         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
1716         * font/devlbp/*: Remove `or'.
1717         * font/devlj4/generate/special.map: Remove `or'.
1718         * font/devlj4/S: Regenerated.
1719         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
1720         `seveneighths', `threeeighths'.
1721         Remove `plusmath'.
1722         Replace `minusplus' with `uni2213'.
1723         * font/devps/symbolmap: Regenerated.
1724         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
1725         Add `-+'.
1727         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
1728         function.
1729         * src/roff/troff/node.cc (troff_output_file::put_char_width):
1730         Call glyph_color and fill_color even if tcommand_flag isn't set.
1731         (make_node, node::add_char): Check not ci->is_fallback but
1732         ci->is_normal.
1734         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
1735         * tmac/ec.tmac: Add .rchar entry for `f/'.
1736         Don't remove `12', `14', `34'.
1737         Define `pl' to be always roman.
1738         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
1739         Define `18', `38', `58', `78'.
1740         * tmac/tty.tmac: Add `-+'.
1741         * tmac/dvi.tmac: Define `f/'.
1742         (dvi-frac): Use `f/'.
1743         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
1744         Define `18', `38', `58', `78'.
1746 2002-12-15  Colin Watson  <cjwatson@debian.org>
1748         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
1750 2002-12-10  Werner LEMBERG  <wl@gnu.org>
1752         Add glyph `tno', a textual variant of `no'.
1754         * font/devX*/*: Regenerated.
1755         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
1756         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
1757         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
1758         * font/devdvi/*: Regenerated.
1759         * font/devlbp/*: Add `tno'.
1760         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
1761         * font/devlj4/*: Regenerated.
1762         * font/devps/generate/textmap: Replace `no' with `tno'.
1763         * font/devps/generate/symbolchars: Add `no'.
1764         * font/devps/*: Regenerated.
1766         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
1768         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
1769         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
1771         * NEWS: Updated.
1773         * tmac/dvi.tmac: Replace most `\\' with `\E'.
1774         Add definition for `sd'.
1775         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
1777         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
1779 2002-12-08  Werner LEMBERG  <wl@gnu.org>
1781         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
1782         mode to avoid rounding errors.
1783         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
1785         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
1786         src/roff/troff/troff.man: Improve documentation of -T.
1788 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
1790         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
1791         (run_pipeline) [_WIN32]: Provide working function without `fork'.
1793 2002-12-06  Werner LEMBERG  <wl@gnu.org>
1795         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
1796         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
1797         Scaling Euro.sansserif glyphs down to have the same height as
1798         digits.
1799         Removed unnecessary points; added some extrema.
1801         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
1802         Regenerated.
1804 2002-12-04  Werner LEMBERG  <wl@gnu.org>
1806         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
1807         and `Euro.symbol.bold.slanted'.
1808         Improve some glyph offsets and widths.
1809         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
1810         Regenerated.
1811         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
1812         typo.
1813         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
1814         direcory.
1816         * tmac/europs.tmac: Updated to new glyph indices.
1817         Use Euro.symbol for font familiy `A'.
1819         * doc/groff.texinfo: Minor improvements.
1821 2002-12-02  Werner LEMBERG  <wl@gnu.org>
1823         * font/devdvi/generate.tc.map: s/%O/%0/.
1824         * font/devdvi/*TC: Regenerated.
1826         * src/roff/troff/div.cc (init_div_requests): Sorted.
1828         * tmac/dvi.tmac: Remove `Ye'.
1829         * tmac/ec.tmac: Remove `Ye'.
1830         Add .rchar entry for `de'.
1832         * man/groff.man, man/groff_diff.man: Document register `.pe'.
1833         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
1834         * NEWS: Updated.
1836 2002-11-30  Werner LEMBERG  <wl@gnu.org>
1838         Add PS font for various Euro glyphs.
1840         * font/devps/generate/freeeuro.sfd: New master font file for
1841         pfaedit.
1842         * font/devps/generate/sfdtopfa.pe: New conversion script for
1843         pfaedit.
1844         * font/devps/generate/Makefile (FONTS): Add `EURO'.
1845         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
1846         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
1847         `freeeuro.sfd'.
1848         * font/devps/EURO: Generated from `freeeuro.afm'.
1849         * font/devps/download: Add `freeuro.pfa'.
1850         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
1851         `freeeuro.pfa'.
1853         * tmac/europs.tmac: New file.
1854         * tmac/ps.tmac: Include `europs.tmac'.
1855         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
1857 2002-11-29  Werner LEMBERG  <wl@gnu.org>
1859         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
1860         * font/devdvi/S: Regenerated.
1861         * font/devhtml/R.proto: Fix `CR' and `ci'.
1862         Add `OK'.
1863         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
1864         Remove `bs'.
1865         * font/devps/symbolmap: Regenerated.
1866         * font/devutf8/R.proto: Fix `CR' and `ci'.
1867         Add `OK'.
1868         * font/devutf8/NOTES: Updated.
1870         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
1871         `ci'.
1872         Add `OK'.
1873         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
1875         * tmac/dvi.tmac: Add `lh' and `rh'.
1876         * tmac/Xps.tmac: Fix `lh' and `rh'.
1877         * tmac/X.tmac: Add `OK'.
1878         * tmac/lj4.tmac: Ditto.
1880 2002-11-24  Werner LEMBERG  <wl@gnu.org>
1882         * font/devX*/S: Regenerated.
1883         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
1884         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
1885         * font/devdvi/generate/texsy.map: Remove `or' glyph.
1886         * font/devdvi/S: Regenerated.
1887         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
1888         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
1889         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
1890         `bracketleftbt', `bracketrighttp', `bracketrightex',
1891         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
1892         `braceex', `braceleftex', `bracerightex', `bracerighttp',
1893         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
1894         `rb', and `bv'.
1895         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
1896         * font/devutf8/NOTES: Updated.
1897         * font/devlj4/generate/special.map: Add glyph `braceex'.
1898         * font/devlj4/S: Regenerated.
1900         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
1902 2002-11-14  Werner LEMBERG  <wl@gnu.org>
1904         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
1905         and `vA'.
1906         Fix code for `an'.
1907         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
1909         * doc/texinfo.tex: New version from texinfo 4.3.
1910         * doc/groff.texinfo: Updated for texinfo 4.3.
1911         Use @tie{} where appropriate.
1912         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
1913         * font/devdvi/generate/tc.map: Remove `rn'.
1914         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
1915         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
1916         Fix code for `an'.
1917         * font/devX100/*, font/devX100-12/*, font/devX75/*,
1918         font/devX75-12/*: Regenerated.
1920         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
1921         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
1922         Improve definition of `an'.
1923         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
1924         `ru'.
1925         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
1926         * tmac/X.tmac: Add definition for `or'.
1927         * tmac/Xps.tmac: Undo change 2002-11-05.
1928         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
1930 2002-11-11  Werner LEMBERG  <wl@gnu.org>
1932         * src/roff/troff/node.cc (troff_output_file::put_char): Always
1933         call flush_tbuf.
1935 2002-11-10  Werner LEMBERG  <wl@gnu.org>
1937         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
1938         defines a glyph which is searched after the check for fonts declared
1939         with `.special' (and before the check for all mounted special
1940         fonts).  `fschar' defines a glyph for a particular font which is
1941         searched after the check for fonts declared with `.fspecial' (and
1942         before the check for fonts declared with `.special').  `rfschar'
1943         removes glyphs defined with `fschar'.
1945         * src/roff/troff/token.h (char_mode): New enum.
1946         Declare do_define_character.
1947         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
1948         `mode'.
1949         (charinfo::is_fallback): Updated.
1950         (charinfo::is_special): New method.
1951         * src/roff/troff/input.cc (do_define_character): Add and use
1952         optional second parameter used as a prefix for font-specific glyph
1953         names.
1954         (define_character, define_fallback_character): Updated.
1955         (define_special_character): New function.
1956         (init_input_requests): Add `schar'.
1957         (charinfo::charinfo, charinfo::set_macro): Updated.
1958         * src/roff/troff/node.cc: Include `stringclass.h'.
1959         (make_glyph_node): Handle special glyphs defined with `.schar' and
1960         `.fschar'.
1961         (define_font_special_character, remove_font_special_character): New
1962         functions.
1963         (init_node_requests): Sorted.
1964         Add `fschar' and `rfschar'.
1965         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1966         Document new requests.
1968         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
1969         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
1971 2002-11-08  Werner LEMBERG  <wl@gnu.org>
1973         Added new font `SC' (cmtex10) to devdvi.
1975         * devdvi/generate/Makefile (FONTS): Add `SC'.
1976         (SC): New rule.
1977         * devdvi/generate/textex.map: New map file for cmtex.
1978         * devdvi/SC: New.
1979         * devdvi/Makefile.sub (DEVFILES): Updated.
1980         * tmac/dvi.tmac: Add fspecial entries for SC.
1981         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
1982         found before `S' since the font position of `SC' is lower due to the
1983         gaps in DESC's `font' line.
1984         * tmac/ec.tmac: Add a `special' call.
1985         * NEWS: Updated.
1987         * font/devhtml/R.proto: Remove double entry for `ti'.
1988         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
1989         * tmac/tty-char.tmac: Remove entry for `bq'.
1990         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
1991         * tmac/ec.tmac: Don't remove `aq' glyph.
1992         * tmac/X.tmac: Fix entry for `em'.
1993         Add entries for `fo' and `fc'.
1994         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
1996         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
1997         documentation of `special' and `fspecial' requests.
1999 2002-11-05  Werner LEMBERG  <wl@gnu.org>
2001         * font/devascii/R.proto, font/devcp1047/R.proto,
2002         font/devlatin1/R.proto: Remove entry for `.i'.
2003         * font/devdvi/generate/textt.map: Add entry for `ad'.
2004         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
2005         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
2006         We need this for getting kerning values to compose `/l' and `/L'.
2007         * font/devdvi: Regenerated font definition files for CM fonts.
2008         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
2009         * font/devutf8/R.proto: Ditto.
2010         Remove double entry for `ti'.
2012         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
2013         for (groff) ligatures, `la', and `ra'.
2014         Add "'C", "'c", `IJ', and `ij'.
2015         Remove double entry for `ti'.
2016         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
2017         double entries.
2018         Add "'C", "'c", `IJ', and `ij'.
2019         Fix entries for (groff) ligatures, `la', and `ra'.
2021         * tmac/ps.tmac (ps-achar): New macro.
2022         Define "'c" and "'C".
2023         * tmac/tty.tmac: Add entry for `.i'.
2024         * tmac/X.tmac (X-achar): New macro.
2025         Define "'c", "'C", and `:Y'.
2026         Add entries for `IJ' and `ij'.
2027         * tmac/Xps.tmac (Xps-achar): New macro.
2028         Define "'c" and "'C".
2029         Add entries for `IJ' and `ij'.
2030         * tmac/lbp.tmac (lbp-achar): New macro.
2031         Add fallback characters for all groff ligatures and many other
2032         glyphs.
2033         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
2034         Add entries for `/l' and `/L'.
2035         Define "'c" and "'C".
2036         Add entries for `IJ' and `ij'.
2038 2002-11-02  Larry Kollar  <kollar@alltel.net>
2040         * PROBLEMS: Document how to solve Mac OS X compilation problems.
2042 2002-11-02  Werner LEMBERG  <wl@gnu.org>
2044         Adding support for composite glyphs: \[xxx yyy ...] and the
2045         `composite' request.
2047         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
2048         to Unicode-based glyph names.
2049         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
2050         glyph names to groff glyph names.
2051         * src/roff/troff/uniuni.cc: New file for canonically decomposing
2052         Unicode-based glyph names.
2053         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
2054         for handling Unicode glyph names.
2055         * src/roff/troff/input.cc: Include unicode.h.
2056         (composite_glyph_name): New function.
2057         (token::next) <'['>: Handle Unicode glyph names and composite
2058         glyphs.
2059         (composite_dictionary): New dictionary for the `composite' request.
2060         (composite_request): Implement `composite' request.
2061         (init_input_requests): Add `composite'.
2062         Alphabetically sorted.
2063         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
2064         commented out).
2065         (init_env_requests): Alphabetically sorted.
2066         Removed `tas' and `tar' (already commented out).
2067         * src/roff/troff/Makefile.sub: Updated.
2069 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
2071         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
2072         of options.
2074 2002-10-29  Werner LEMBERG  <wl@gnu.org>
2076         Fix computation of .trunc register.  Additionally, its value (and
2077         the value of the .ne register) is now always set before entering the
2078         trap.
2080         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
2081         `needed_space' before calling `space'.
2082         (top_level_diversion::space): Remove special code for 'sp before the
2083         first page.
2084         Call `begin_page' with the discarded space as a parameter.
2085         (top_level_diversion::begin_page): Add optional parameter to set
2086         `truncated_space'.
2087         * src/roff/troff/div.h: Updated.
2089         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
2090         \n[.ne].
2092         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
2093         (LP): Remove superfluous call to `br'.
2094         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
2095         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
2097 2002-10-26  Werner LEMBERG  <wl@gnu.org>
2099         * tmac/doc-ditroff: Remove useless switch/variable -rC.
2100         (doc-setup-header): Don't set page register `%'.
2101         * tmac/doc-nroff: Remove variable `C'.
2102         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
2103         (doc-setup-header): Don't set page register `%'.
2104         Don't call `bp'.
2105         * tmac/doc-common (doc-header): Call `ns'.
2106         (doc-paragraph): Protect .sp with .br so that it survives traps
2107         possibly set by the user.
2108         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
2110         * tmac/doc*: Replace ' with . for consistency if no effect.
2112 2002-10-26  Werner LEMBERG  <wl@gnu.org>
2114         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
2115         so that it survives traps possibly set by the user.
2117         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
2118         (troff_output_file::set_font): Call flush_tbuf if necessary.
2119         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
2120         flush_tbuf and do_motion only if necessary.
2121         (troff_output_file::start_special,
2122         troff_output_file::put_char_width, troff_output_file::put_char,
2123         troff_output_file::draw): Updated.
2124         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2125         vmotion_node::tprint): Undo change 2002-10-23.
2127 2002-10-25  Werner LEMBERG  <wl@gnu.org>
2129         * tmac/www.tmac (DC): Fix case of overlapping images.
2131 2002-10-23  Werner LEMBERG  <wl@gnu.org>
2133         * src/roff/troff/node.cc (troff_output_file::fill_color,
2134         troff_output_file::glyph_color): Set current color before testing
2135         color_flag.
2136         (troff_output_file::put_char_width, troff_output_file::put_char,
2137         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
2138         before glyph_color.
2139         (troff_output_file::file_color, troff_output_file::glyph_color):
2140         Call do_motion.
2141         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2142         vmotion_node::tprint): Move first, then call fill_color.
2144 2002-10-20  Werner LEMBERG  <wl@gnu.org>
2146         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
2147         possible to use multiple main macro packages.
2149 2002-10-19  Werner LEMBERG  <wl@gnu.org>
2151         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
2152         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
2153         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
2154         is set.
2155         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
2156         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
2158 2002-10-16  Werner LEMBERG  <wl@gnu.org>
2160         * NEWS, doc/webpage.ms: Updated.
2162 2002-10-14  Werner LEMBERG  <wl@gnu.org>
2164         * src/roff/troff/node.cc (troff_output_file::put_char_width,
2165         troff_output_file::put_char, troff_output_file::fill_color,
2166         troff_output_file::glyph_color): Handle case where color pointer
2167         is null.
2169 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
2171         Add the new -r option to grotty.  It is similar to the -i option
2172         except it tells grotty(1) to use the "reverse video" attribute to
2173         render italic fonts.
2175         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
2176         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
2177         (tty_printer::make_underline, tty_printer::put_color,
2178         tty_printer::end_page): Use it.
2179         (main): Add -r switch.
2180         (usage): Updated.
2181         * src/devices/grotty/grotty.man: Document it.
2183 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
2185         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
2186         cast to `unsigned char' to properly read patterns with 8bit
2187         characters.
2189 2002-10-08  Werner LEMBERG  <wl@gnu.org>
2191         * REVISION: Increased to 2.
2193 Version 1.18.1 released
2194 =======================
2196 2002-10-08  Werner LEMBERG  <wl@gnu.org>
2198         * doc/webpage.ms, NEWS: Updated.
2200 2002-10-07  Werner LEMBERG  <wl@gnu.org>
2202         * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
2203         suppress additional whitespace after the header.
2205         * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
2206         with NetBSD.
2208         * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
2210 2002-10-07  Ruslan Ermilov  <ru@FreeBSD.org>
2212         * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
2213         (Dt): Use it to improve language localization (especially Russian
2214         and French).
2216 2002-10-07  Daniel Senderowicz  <daniel@synchrods.com>
2218         * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
2219         * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
2220         drawing commands.
2221         * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
2222         curve type.
2223         Call `picurve' for BSPLINE.
2224         (HGPrintElt): Handle BSPLINE.
2225         * src/preproc/grn/README: Document it.
2227 2002-10-03  Werner LEMBERG  <wl@gnu.org>
2229         * src/roff/troff/node.cc (break_char_node::col): New variable.
2230         Updated constructor.
2231         (space_node::tprint, word_space_node::tprint): Call `fill_color'
2232         unconditionally.
2233         (space_node::space_node): Remove assertion.
2234         (break_char_node::add_self): Pass color argument to space node.
2235         * src/roff/troff/input.cc (token::add_to_node_list, token::process):
2236         Ditto.
2237         * src/roff/troff/env.cc (environment::do_break,
2238         environment::add_padding): Ditto.
2240 2002-10-02  Werner LEMBERG  <wl@gnu.org>
2242         Redesigning color support in troff.  Colors are no longer
2243         represented as separate nodes but are now part of glyph nodes and
2244         friends.  This fixes the current formatting misbehaviour due to the
2245         changes introduced on 2002-09-20.  Some extra code is necessary for
2246         proper grotty support: Without adding color variables to
2247         space-related nodes, the background color would be changed too late.
2249         * src/roff/troff/node.h, src/roff/troff/node.cc:
2250         s/current_pagecolor/current_fill_color/.
2251         s/current_glyphcolor/current_glyph_color/.
2252         (glyph_color_node, fill_color_node): Removed.
2253         (node::get_glyph_color, node::get_fill_color): New virtual member
2254         functions.
2255         (space_node::col): New variable.
2256         Updated constructors of space_node and derived classes accordingly.
2257         (hmotion_node::col): New variable.
2258         Updated constructors of hmotion_node and space_char_hmotion_node
2259         accordingly.
2260         (vmotion_node::col): New variable.
2261         Updated constructor accordingly.
2262         (draw_node::gcol, draw_node::fcol): New variables.
2263         Updated constructor accordingly.
2264         (special_node::gcol, special_node::fcol): New variables.
2265         Updated constructors accordingly.
2266         (troff_output_file::put_char, troff_output_file::put_charwidth,
2267         troff_output_file::draw): Set glyph and fill color.
2268         (troff_output_file::start_special): Set glyph and fill color.
2269         Always set current font.
2270         (troff_output_file::fill_color, troff_output_file::glyph_color):
2271         Don't call `do_motion'.
2272         (glyph_node::gcol, glyph_node::fcol): New variables.
2273         Updated constructors of glyph_node and ligature_node accordingly.
2274         (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
2275         member functions.
2276         (glyph_node::merge_glyph_node,
2277         kern_pair_node::add_discretionary_hyphen,
2278         node::add_discretionary_hyphen): Updated.
2279         (break_char_node::merge_self): Updated.
2280         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2281         vmotion_node::tprint): Handle color.
2282         (make_glyph_node, make_node, node::add_char): Updated.
2284         * src/roff/troff/env.cc (environment::space_newline,
2285         environment::space, environment::output_line, environment::do_break,
2286         environment::make_tab_node, environment::add_padding, title):
2287         Updated.
2288         (environment_switch, environment_copy): Don't add color nodes.
2290         * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
2291         nothing.
2292         (token::next): Updated.
2293         \m and \M now are as transparent as \s.
2294         (process_input_stack, token::add_to_node_list, token::process,
2295         read_draw_node): Updated.
2296         (charinfo_to_node_list): Don't add color nodes.
2298         * doc/groff.texinfo: Updated.
2300 2002-09-27  Ruslan Ermilov  <ru@FreeBSD.org>
2302         * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
2303         strings.
2305 2002-09-27  Colin Watson  <cjwatson@debian.org>
2307         * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
2309 2002-09-23  Werner LEMBERG  <wl@gnu.org>
2311         * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
2312         appropriate.
2313         (DEFAULT_LINEWIDTH_FACTOR): New macro.
2314         (linewidth_factor): New global variable.
2315         (lbp_printer::set_line_thickness): Fix case for size < 0, using
2316         linewidth_factor.
2317         (long_options): Add -w/--linewidth option.
2318         (usage): Updated.
2319         (main): Handle -w option to set linewidth_factor.
2320         (lbp_printer::lbp_printer): Initialize req_linethickness, not
2321         line_thickness.
2323         * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
2325 2002-09-22  Paco Andrés Verdú  <pandres@dragonet.es>
2327         Fixed a bug in the line thickness setting code.
2329         * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
2330         variable.
2331         (lbp_printer::set_line_thickness): Pass environment as second
2332         parameter.
2333         Implement it actually.
2334         (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
2335         and `set_line_thickness, depending on the current font size.
2337 2002-09-21  Werner LEMBERG  <wl@gnu.org>
2339         Some Debian patches.
2341         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
2342         * src/roff/troff/node.cc (bracket_node::copy): Initialize
2343         `list->last'.
2345 2002-09-20  Werner LEMBERG  <wl@gnu.org>
2347         * configure: Regenerated with autoconf 2.54.
2349 2002-09-20  Werner LEMBERG  <wl@gnu.org>
2351         * src/roff/troff/env.h (environment): Rename cur_glyph_color to
2352         glyph_color.
2353         Rename cur_fill_color to fill_color.
2354         * src/roff/troff/env.cc: Updated.
2356 2002-09-20  Werner LEMBERG  <wl@gnu.org>
2358         * src/roff/troff/env.cc (title): Copy color status after processing
2359         title.
2360         * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
2361         fill color nodes to reset colors properly.
2363         * tmac/www.tmac (DC): Fix color handling.
2365         * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
2366         * doc/groff.texinfo: Fixing documentation of `tl' request.
2367         * doc/webpage.ms: Updated.
2369 2002-09-19  Werner LEMBERG  <wl@gnu.org>
2371         * src/roff/troff/env.cc (environent_switch, environment_copy):
2372         Emit glyph and fill color nodes to initialize colors properly.
2374 2002-09-17  Colin Watson  <cjwatson@debian.org>
2376         * src/roff/troff/env.cc (environment::set_glyph_color,
2377         environment::set_fill_color): Fix typo which prevented \m[] work
2378         correctly.
2380 2002-09-17  Werner LEMBERG  <wl@gnu.org>
2382         Add left and right italic correction to non-slanted PS fonts.  This
2383         is an experimental feature to improve image rendering of grohtml.
2385         * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
2386         ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
2387         * font/devps/*: All non-slanted fonts regenerated.
2388         * NEWS: Updated.
2390 2002-09-16  Werner LEMBERG  <wl@gnu.org>
2392         Add a site-specific font directory.
2394         * Makefile.in (localfontdir, legacyfontdir): New variables.
2395         (fontpath): Use them.
2396         (MDEFINES, uninstall_dirs): Updated.
2397         * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
2398         Remove `FONTPATH' and `MACROPATH'.
2400         * src/roff/troff/troff.man, NEWS: Updated.
2401         * doc/groff.texinfo (Font Directories): New section.
2402         Other minor fixes.
2404         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
2405         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
2406         src/preproc/grn/grn.man: Minor fixes.
2408         * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
2409         Remove unused variable.
2411 2002-09-11  Werner LEMBERG  <wl@gnu.org>
2413         * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
2414         * man/groff_out.man: Fix documentation of 'N'.
2416 2002-09-09  Gaius Mulley  <gaius@glam.ac.uk>
2418         * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
2419         * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
2420         set.
2421         * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
2422         (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
2423         (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
2424         * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
2425         PRE_TAG>: Call `begin' with `FALSE'.
2427 2002-09-09  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2429         * src/libs/libgroff/string.cc (string::extract): Fix position of
2430         terminating null byte.
2432 2002-09-08  Werner LEMBERG  <wl@gnu.org>
2434         Add global option `nospaces' to tbl so that leading and trailing
2435         spaces in data items are ignored.
2437         * src/libs/libgroff/string.cc (string::remove_spaces): New member
2438         function to remove leading and trailing spaces.
2439         * src/include/stringclass.h: Updated.
2441         * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
2443         * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
2444         option.
2445         Fix typo in error messages.
2446         (process_data): Implement `nospaces' option.
2447         * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
2449 2002-09-07  Werner LEMBERG  <wl@gnu.org>
2451         * src/include/config.hin: Add `HAVE_ISATTY'.
2452         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
2453         `fname' member.
2454         * src/libs/libgroff/tmpname.cc: Include `time.h'.
2455         * src/libs/libdriver/input.cc (Char): Add `operator==' and
2456         `operator!=' for `char'.
2457         * doc/groff.texinfo: Replace @ifnottex block for top node with
2458         @ifhtml block.
2460 2002-09-06  Werner LEMBERG  <wl@gnu.org>
2462         * doc/Makefile.in (.texinfo.html): Add -I switch.
2463         * doc/groff.texinfo: Add @ifnottex block for top node to make
2464         translation to HTML work.
2466 2002-09-05  Gaius Mulley  <gaius@glam.ac.uk>
2468         * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
2469         (get_papersize, determine_vertical_offset): Removed.
2470         (char_buffer::do_image): Always specify letter size.
2471         (main): Updated.
2472         (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
2473         -sPAPERSIZE.
2475 2002-09-05  Werner LEMBERG  <wl@gnu.org>
2477         * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
2478         default indentation.
2480 2002-09-04  Gaius Mulley  <gaius@glam.ac.uk>
2482         * src/preproc/html/pre-html.cc (imageList::createPage): Use
2483         -sPAPERSIZE for gs.
2484         (generateImages): Clean up push-back buffer.
2486 2002-09-04  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2488         * doc/groff.texinfo: Minor fixes.
2490 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
2492         * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
2493         (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
2494         (gsPaper): Removed.
2495         (determine_vertical_offset): Use LETTER_LENGTH.
2496         (createPage): Moved to ...
2497         (imageList::createPage): This.
2498         Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
2499         (imageList::getMaxX): New function.
2500         (createImage): Moved to ...
2501         (imageList::createImage): This.
2502         (imageList::createImages): New function.
2503         (generateImages): Read `maxx' directly.
2504         Updated.
2505         (scanArguments): Don't specify `gsPaper' for `-o'.
2506         (makeTempFiles): Call `xtmpfile' with the last argument set to
2507         `TRUE'.
2509 2002-08-24  Werner LEMBERG  <wl@gnu.org>
2511         * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
2512         (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
2513         * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
2514         * src/preproc/html/pushback.cc: Include nonposix.h.
2515         * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
2516         conditionally.
2518 2002-08-23  Werner LEMBERG  <wl@gnu.org>
2520         Use $(OBJEXT) for the object file extension.
2522         * Makefile.comm (.SUFFIXES): Add .obj.
2523         (.cc.obj, .c.obj): New implicit rules.
2524         * Makefile.in (OBJEXT): New variable, initialized from autoconf.
2525         (MDEFINES): Add EXEEXT and OBJEXT.
2526         * */Makefile.sub: s/.o/.$(OBJEXT)/.
2528 2002-08-22  Werner LEMBERG  <wl@gnu.org>
2530         * INSTALL: Mention texinfo 4.2 as a prerequisite.
2532 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
2534         * src/devices/grohtml/post-html.cc (colType): Make enum global to
2535         the file.
2536         (html_printer::update_min_max, html_printer::add_table_end): New
2537         methods.
2538         (html_printer::lookahead_for_tables): Use them.
2539         Reset page offset correctly.
2540         (html_printer::~html_printer): Add creation of creator comment up.
2542 2002-08-20  Werner LEMBERG  <wl@gnu.org>
2544         * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
2545         * man/groff_tmac.man: Fix typos.
2546         * man/groff_font.man: Minor reordering.
2547         * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
2548         * contrib/groffer/groffer.man: Fix typos.
2550 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
2552         Avoid endless loops while scanning for tables.
2554         * src/devices/grohtml/post-html.cc (list::insert): Set
2555         ptr->right->left.
2556         (html_printer::next_horiz_pos): Add `text_glob' argument; update
2557         all callers.
2558         Return immediately if that argument is NULL.
2559         (html_printer::calc_nf): Don't test if `g' is NULL.
2560         (html_printer::lookahead_for_tables): Use
2561         `glyphs.move_right_get_data'.
2562         Don't test if `g' is NULL.
2564 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
2566         A better fix, replacing fix 2002-08-15, for increasing SIZE.
2568         * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
2569         a pointer.
2570         (char_block::char_block): Allocate `buffer'.
2571         (char_buffer::add_string): Use it.
2573 2002-08-15  Werner LEMBERG  <wl@gnu.org>
2575         * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
2576         src/devices/grodvi/grodvi.man: Document default line thickness.
2578 2002-08-15  Gaius Mulley  <gaius@glam.ac.uk>
2580         * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
2581         8192.
2583 2002-08-14  Werner LEMBERG  <wl@gnu.org>
2585         * doc/webpage.ms: Updated.
2587 2002-08-09  Werner LEMBERG  <wl@gnu.org>
2589         * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
2590         unbreakable space.
2592 2002-08-08  Aaron Campbell  <aaron@monkey.org>
2594         * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
2595         (&& -> &).
2597 2002-08-08  Werner LEMBERG  <wl@gnu.org>
2599         * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
2600         tok.next().
2601         (read_gray): Ditto.
2602         Don't push back a space but a newline onto the stack.
2604 2002-08-07  Gaius Mulley  <gaius@glam.ac.uk>
2606         Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
2607         inadvertently.
2609         * src/devices/grohtml/post-html.cc (html_printer::end_font,
2610         html_printer::start_font): Handle them.
2611         * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
2612         reset bold and tt.
2613         (html_text::do_bold): Don't reset italic and tt.
2614         (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
2615         * font/devhtml/DESC.proto: Add those fonts.
2616         * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
2618 2002-08-07  Werner LEMBERG  <wl@gnu.org>
2620         * MORE.STUFF: Added gpresent.
2622         * tmac/trace.tmac: Show nesting level by a corresponding amount of
2623         whitespace before printing the logging message.
2625 2002-07-31  Colin Watson  <cjwatson@debian.org>
2627         * src/devices/grohtml/html-table.cc (html_table::finish_row):
2628         Initialize `n' to zero.  This fixes a segfault on ARM.
2630 2002-07-30  Werner LEMBERG  <wl@gnu.org>
2632         * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
2634 2002-07-29  Werner LEMBERG  <wl@gnu.org>
2636         * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
2637         final semicolon.
2639 2002-07-28  Colin Watson  <cjwatson@debian.org>
2641         * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
2642         `.ps'.
2643         (html_printer::html_printer): Initialize `pointsize'.
2645 2002-07-26  Werner LEMBERG  <wl@gnu.org>
2647         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
2648         gnu.png.
2649         (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
2650         (gnu.eps): Add -rle switch to pnmtops.
2651         (distfiles): Add gnu.eps and gnu.png.
2653 2002-07-25  Petter Reinholdtsen  <pere@hungry.com>
2655         * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
2656         Add `operator!='.
2658 2002-07-24  Werner LEMBERG  <wl@gnu.org>
2660         * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
2661         ' \+' but '  *' for sed.
2662         (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
2664 2002-07-23  Werner LEMBERG  <wl@gnu.org>
2666         * doc/groff.texinfo: Document `papersize' keyword.
2667         * NEWS, man/groff_font.man: Updated.
2669 2002-07-23  Colin Watson  <cjwatson@debian.org>
2671         Extend papersize keyword to accept more than a single entry.  The
2672         first valid will be used.
2674         * src/libs/libgroff/font.cc (font::load_desc): Implement it.
2675         (font::scan_papersize): Really skip final newline.
2676         * src/preproc/html/pre-html.cc (get_papersize): Ditto.
2678 2002-07-23  Werner LEMBERG  <wl@gnu.org>
2680         * configure.ac: Test for isatty.
2681         * configure: Regenerated.
2682         * src/include/posix.h: Check HAVE_ISATTY.
2683         * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
2684         * src/utils/lookbib/lookbib.cc: Include posix.h.
2685         Don't declare isatty.
2687 2002-07-21  Werner LEMBERG  <wl@gnu.org>
2689         * NEWS: Add `output' request.
2691         * REVISION: Increased to 1.
2693 Version 1.18.0 released
2694 =======================
2696 2002-07-19  Gaius Mulley  <gaius@glam.ac.uk>
2698         Allow internal glyph indices > 0xFF in grohtml for input characters.
2700         * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
2701         as parameter.
2702         (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
2703         Updated all callers.
2704         (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
2705         (html_printer): Updated.
2707 2002-07-19  Werner LEMBERG  <wl@gnu.org>
2709         * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
2710         * font/devutf8/R.proto: Adding some missing glyphs.
2711         * font/devutf8/NOTES: Updated.
2713         * tmac/dvi.tmac: Add more composite glyphs.
2714         * tmac/html.tmac: Updated.
2716         * man/groff_char.man: Add `sum' and `product' entities.
2718         * NEWS: Updated.
2720 2002-07-18  Gaius Mulley  <gaius@glam.ac.uk>
2722         Improved table, tab, and indenting support.
2724         * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
2725         string_iterator::suppress_newline_flag): Removed.  Updated all
2726         function which have used it.
2728         * src/roff/troff/env.cc: Include `input.h'.
2729         (environment::add_node): Accept 0 as parameter.
2730         (environment::add_html_tag): Add `force' parameter.
2731         Updated all callers.
2732         (environment::add_html_tag_tabs): Ditto.
2733         For the moment, support left-aligned tabs only.
2734         (environment::make_html_tag): New function.
2735         (fill, no_fill): Set .br html tag additionally.
2736         (environment::newline): Emit `eol.ce' or `eol' tag for html.
2737         (environment::add_html_tag_eol): Removed.
2738         (tab_stops::distance_to_next_tab): Add variant for handling 
2739         nextpos'.
2740         (environment::distance_to_next_tab): Ditto.
2741         Updated all callers.
2742         (environment::handle_tab): Handle tabs for html.
2743         
2744         * src/roff/troff/env.h: Updated.
2746         * src/roff/troff/div.cc: Updated all callers of
2747         `environment::add_html_tag'.
2749         * src/devices/grohtml/html-table.cc,
2750         src/devices/grohtml/html-table.h: New files.
2752         * src/devices/grohtml/html-text.cc (html_text): New members
2753         `blank_para' and `start_space'.
2754         (html_text::issue_tag): Don't emit TABLE_TAG.
2755         Handle indentation for PRE_TAG and P_TAG.
2756         (html_text::end_tag): Updated.
2757         (html_text::table_is_void, html_text::issue_table_begin,
2758         html_text::issue_table_end): Removed.
2759         (html_text::do_push): Simplified.
2760         [DEBUGGING]: Small fix.
2761         (html_text::push_para): Add new parameter for indentation; updated
2762         all callers.
2763         Handle PRE_TAG.
2764         (html_text::do_indent, html_text::do_table, html_text::done_table,
2765         html_text::is_in_table): Removed.
2766         (html_text::do_pre): Handle P_TAG also.
2767         (html_text::shutdown): Handle p->indent.
2768         (html_text::check_emit_text): Simplified.
2769         (html_text::do_emittext): Reset `blank_para'.
2770         (html_text::do_para): Add new parameter for indentation; updated
2771         all callers.
2772         (html_text::remove_indent): New function.
2773         (html_text::do_space): Handle verbatim text properly.
2774         (html_text::ever_emitted_text, html_text::starts_with_space,
2775         html_text::remove_para_align): New functions.
2776         (html_text::dump_stack_element, html_text::dump_stack): Updated.
2778         * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
2779         Updated.
2781         * src/devices/grohtml/post-html.cc: Include html-table.h.
2782         (INDENTATION): Removed.
2783         (text_glob): Added many `is_<foo>' functions.
2784         Added table description `tab'.
2785         Added `get_arg',`get_tab_args', `remember_table', and `get_table'
2786         member functions.
2787         (list): Add `insert' and `move_to' member functions.
2788         (page): Add `insert_tag' member function.
2789         (page::dump_page) [DEBUG_TABLES]: Improved.
2790         (html_printer): Add `table' and `max_linelength' elements.
2791         Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
2792         `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
2793         `remove_tabs', `remove_courier_tabs'.
2794         (html_printer::emit_raw): Handle indentation.
2795         (html_printer::do_center, html_printer::write_header): Updated.
2796         (html_printer::is_courier_until_eol): Check for tag.
2797         (html_printer::do_linelength): Handle max_linelength.
2798         (html_printer::do_page_offset, html_printer::do_indentation): Handle
2799         fill_on.
2800         (html_printer::do_tempindent): Updated.
2801         (html_printer::do_indentedparagraph): Removed.
2802         (html_printer::do_indent): Simplified.
2803         (html_printer::do_eol): Use `ever_emitted_text'.
2804         (html_printer::do_flush, html_printer::do_links): Don't call
2805         done_table.
2806         (html_printer::do_break): Handle end_tempindent.
2807         (html_printer::troff_tag): Get argument.
2808         Don't handle `.ip'.
2809         Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
2810         (html_printer::flush_page): Call `lookahead_for_tables'.
2811         Don't call `done_table'.
2812         (html_printer::add_to_sbuf): Always call do_indent.
2814         * src/devices/grohtml/Makefile.sub: Updated.
2816         * tmac/an-old.tmac (TP): Don't handle html device specially.
2817         (an-do-tag-html): New function which will be used instead of
2818         `an-do-tag' if html device is used.
2820         * tmac/html.tmac: Call .po to pass default page offset to grohtml.
2822         * tmac/s.tmac (@IP): Don't handle html device specially.
2823         (@IP-html): New function which will be used instead of `@IP' if
2824         html device is used.
2826         * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
2827         is a hack which will eventually vanish again.
2828         (PIMG): Handle `-C' option correctly if not html.
2829         (HR): Use HTML-NS.
2831 2002-07-17  Werner LEMBERG  <wl@gnu.org>
2833         * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
2835 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
2837         * contrib/pic2graph/pic2graph.*: Use convert(1).
2838         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
2840 2002-07-14  Bernd Warken  <bwarken@mayn.de>
2842         * tmac/groff_trace.man: New file.
2843         * tmac/Makefile.sub: Updated.
2844         * NEWS: Updated.
2846 2002-07-13  Werner LEMBERG  <wl@gnu.org>
2848         * src/roff/groff/groff.man: Add some cross references.
2850 2002-07-12  Werner LEMBERG  <wl@gnu.org>
2852         * src/roff/troff/input.cc (substring_request): Add warnings for
2853         string indices out of range.
2855 2002-07-11  Werner LEMBERG  <wl@gnu.org>
2857         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
2858         * font/devdvi/*EC: Regenerated.
2860 2002-07-10  Bernd Warken  <bwarken@mayn.de>
2862         * man/groff_char.man: Updated and extended.
2864 2002-07-10  Werner LEMBERG  <wl@gnu.org>
2866         * src/roff/troff/input.cc (length_macro): Renamed to...
2867         (length_request): This.
2868         Move call of `tok.next()' to the very end, otherwise the register
2869         value hasn't been updated yet.
2870         (init_input_requests): Updated.
2872 2002-07-09  Werner LEMBERG  <wl@gnu.org>
2874         * src/roff/troff/input.cc (substring_macro): Renamed to...
2875         (substring_request): This.
2876         (init_input_requests): Updated.
2877         * src/roff/troff/request.h: Updated.
2879 2002-07-08  Robert D. Goulding  <goulding@Princeton.EDU>
2881         * src/roff/grog/grog.sh: Fix typo.
2883 2002-07-08  Werner LEMBERG  <wl@gnu.org>
2885         * win32-diffs: Updated.
2887         Handle `papersize' keyword properly in DESC.
2889         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
2890         type.
2891         Updated all callers.
2892         * src/libs/libgroff/paper.cc: Add four more paper formats used by
2893         grolj4.
2894         * src/include/paper.h: Updated.
2896         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
2897         Other minor C syntax fixes.
2898         (papersize, paperlength, paperwidth): Renamed to `user_*'.
2899         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
2900         members.
2901         (lbp_printer::lbp_printer): Pass three arguments.
2902         Set paper dimensions properly.
2903         (make_printer, main): Updated.
2904         (handle_unknown_desc_command): Fix error messages.
2905         (main): Handle papersize keyword in DESC properly.
2907         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
2908         `user_paper_size'.
2909         (lbp_printer::lbp_printer): Pass an argument.
2910         Set paper_size properly.
2911         (handle_unknown_desc_command): Removed.
2912         (make_printer, main): Updated.
2913         * src/devices/grolj4/grolj4.man: Minor documentation fix.
2915         * man/groff_font.man, NEWS: Updated.
2917 2002-07-07  Werner LEMBERG  <wl@gnu.org>
2919         Integrated eqn2graph, contributed by Eric S. Raymond.
2921         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
2922         files.
2923         * Makefile.in, NEWS: Updated.
2925 2002-06-04  Werner LEMBERG  <wl@gnu.org>
2927         Changing the substring request to make it fit better with other
2928         string manipulation functions in other programming languages:
2929         Index 0 is now the first character in the string, and index -1
2930         indicates the last character.  Since this request didn't work
2931         properly anyway in the last release, it doesn't harm too much to
2932         change the syntax.
2934         * src/roff/troff/input.cc (substring_macro): Use loops to get
2935         the real string length (ignoring COMPATIBLE_SAVE and
2936         COMPATIBLE_RESTORE) and offsets.
2937         Implement change described above.
2939         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
2940         (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
2942         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
2944 2002-06-03  Werner LEMBERG  <wl@gnu.org>
2946         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
2947         COMPATIBLE_RESTORE are completely ignored.
2949         * src/roff/troff/input.cc (char_list::set, char_list::get): New
2950         functions.
2951         (macro): `length' field renamed to `len'.
2952         Added new field `empty_macro' (1 if macro is empty), to be used
2953         instead of checking `len'.
2954         Updated all callers.
2955         (macro::empty): Updated.
2956         (macro::length, macro::set, macro::get): New functions.
2957         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
2958         Set `empty_macro'.
2959         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
2960         COMPATIBLE_RESTORE pairs.
2961         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
2962         * src/roff/troff/request.h: Updated.
2964         * doc/groff.texinfo: Document .chop's behaviour better.
2966 2002-06-02  Werner LEMBERG  <wl@gnu.org>
2968         * doc/pic.ms: Fix documentation for the addition of positions.
2970         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
2972 2002-06-29  Werner LEMBERG  <wl@gnu.org>
2974         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
2976         * src/roff/troff/input.cc (have_string_arg): New global variable.
2977         (read_mode): New enumeration.
2978         (read_escape_name): Use it.  Update all calls.
2979         (read_long_escape_name): Use it.  Update all calls.
2980         Set have_string_arg if appropriate.
2981         (get_char_for_escape_name): Add parameter for handling space
2982         character.
2983         (interpolate_string_with_args, decode_string_args): New functions.
2984         (get_copy, token::next): Call it if necessary.
2985         (interpolate_string): Fix error message.
2987         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
2988         Document it.
2990 2002-06-24  Bernd Warken  <bwarken@mayn.de>
2992         * man/groff_tmac.man: Updated and extended.
2994 2002-06-24  Werner LEMBERG  <wl@gnu.org>
2996         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
2998 2002-06-23  Werner LEMBERG  <wl@gnu.org>
3000         * doc/pic.ms: Improve documentation of composite block objects.
3002 2002-06-22  Werner LEMBERG  <wl@gnu.org>
3004         * src/roff/troff/input.cc (init_registers): Add three registers
3005         `seconds', `minutes', and `hours' to hold the current time.
3007         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
3008         Updated.
3010 2002-06-20  Werner LEMBERG  <wl@gnu.org>
3012         Make \X accept both `\ ' and `\~', converting them to single space
3013         characters.
3015         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
3016         (token::unstretchable_space): New inline function.
3017         * src/roff/troff/input.cc (token::next, token::delimiter,
3018         token::description, token::add_to_node_list, token::process): Handle
3019         TOKEN_UNSTRETCHABLE_NODE.
3020         (encode_char): Handle tok.stretchable_space and
3021         tok.unstretchable_space.
3023         * NEWS, doc/groff.texinfo: Document it..
3025 2002-06-19  Werner LEMBERG  <wl@gnu.org>
3027         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
3029         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
3030         keyword to enable/disable SGR output.
3031         (tty_printer::change_fill_color): New function.
3032         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
3034         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
3035         call.
3037 2002-06-18  Werner LEMBERG  <wl@gnu.org>
3039         Add a `color' request and a `.color' register to control usage of
3040         colours.
3042         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
3043         (color_flag): This (which is the inverse).
3044         (activate_color): New function.
3045         (main, init_input_requests): Updated.
3046         * src/roff/troff/troff.h, src/roff/troff/node.cc
3047         (troff_output_file::fill_color, troff_output_file::glyph_color):
3048         Updated.
3050         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3051         Document the changes.
3053 2002-06-17  Colin Watson  <cjwatson@debian.org>
3055         Circumvent bug in autoconf 2.53 regarding top_builddir.
3057         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
3058         * Makefile.in, doc/Makefile.in:
3059         s/@top_builddir@/@groff_top_builddir@/.
3060         * configure: Regenerated (with autoconf 2.53).
3062 2002-06-17  Werner LEMBERG  <wl@gnu.org>
3064         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
3065         `paperwidth' and `paperlength' for the `papersize' keyword.
3067 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
3069         * src/devices/grops/grops.man: Add info about Type 42 fonts.
3071 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
3073         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
3074         html_printer::do_linelength, html_printer::do_pageoffset,
3075         html_printer::do_indentation, html_printer::do_tempindent,
3076         html_printer::do_break, html_printer::begin_page): Clear indented
3077         text.
3078         * tmac/html.tmac: Disable hyphenation.
3080 2002-06-15  Werner LEMBERG  <wl@gnu.org>
3082         Don't produce HTML files if utility programs are missing.
3084         * Makefile.in (make_html, make_install_html): New variables.
3085         (MDEFINES): Updated.
3087         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
3088         utility programs.
3089         * configure.ac: Use it.
3090         * configure: Regenerated.
3092         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
3093         (HTMLEXAMPLESFILES): This new variable.
3094         (EXAMPLESIMAGEFILES): Renamed to...
3095         (HTMLEXAMPLEIMAGEFILES): This.
3096         (CLEANADD): Add HTMLEXAMPLEFILES.
3097         (all): Use `make_html'.
3098         (html): New target.
3099         (install_data): Use `make_install_html'.
3100         Move html stuff to...
3101         (install_html): This new target.
3102         (uninstall_sub): Updated.
3104 2002-06-14  Bernd Warken  <bwarken@mayn.de>
3106         * src/roff/grog/Makefile.sub (grog): Renamed to...
3107         (grog.old): This.
3108         (grog): New rule to always install grog.sh as grog.
3110 2002-06-08  Bernd Warken  <bwarken@mayn.de>
3112         * src/roff/grog/grog.pl: Fix typo.
3114 2002-06-07  Werner LEMBERG  <wl@gnu.org>
3116         * doc/groff.texinfo: Add more info on .tr arguments.
3118 2002-06-05  Werner LEMBERG  <wl@gnu.org>
3120         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
3122         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
3123         * configure: Regenerated.
3125 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
3127         * src/roff/troff/symbol.cc (table_sizes): Add more values.
3129         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
3131 2002-06-04  Werner LEMBERG  <wl@gnu.org>
3133         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
3134         is not initialized at the time we need it in case `--prefix' hasn't
3135         been set.  Check for `ac_default_prefix' also.
3136         Test for `papersize' keyword also and generalize allowed whitespace.
3137         * configure: Regenerated.
3139         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
3140         `paperlength'.
3142         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
3143         with...
3144         (src_version, src_revision): New variables to avoid overwriting
3145         from parent make process.
3146         (version.cc): Updated.
3148         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
3149         (linebuf, linebufsize): New global variables.
3150         (sys_fatal): Use `fatal' to abort properly.
3151         (get_line): New function.
3152         (get_resolution): Use it.
3153         Improve error messages.
3154         (get_papersize): Check `papersize' also.
3155         Use `get_line'.
3156         Improve error messages.
3158 2002-06-03  Werner LEMBERG  <wl@gnu.org>
3160         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
3161         should be removed only if builddir is not srcdir.
3162         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
3163         (clean): Depend on `mostlyclean'.
3164         (distclean): Depend on `clean'.
3165         (realclean, extraclean): Depend on `distclean'.
3166         (.y.cc, .y.o): Simplified.  The output files are no longer written
3167         to srcdir but to builddir.
3168         * Makefile.in (MDEFINES): Add `version' and `revision'.
3169         (uninstall_dirs): Fix order of directories.
3170         * doc/Makefile.sub (version, revision): Removed.
3171         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
3172         Added `HTMLDOCFILES'.
3173         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
3174         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
3175         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
3176         as prefix.
3178         * doc/texinfo.tex (\authortt): New macro.
3179         (\shortcontt): Define.
3180         (\titlepage): Set \tt to \authortt while defining \authorfont.
3181         (\appendixbox): New macro.
3182         (\chapmacro, \appendixentry): Use \appendixbox to get even
3183         indentation for letters.
3184         (\summarycontents): Set \tt.
3185         (\internalpagesize): Add two arguments for real paper width and
3186         height as needed by pdfTeX.
3187         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
3188         Updated.
3189         (\tempdima, \tempdimb): New temporary dimensions.
3190         (\pagesizesyyy): Updated.
3192 2002-06-02  Werner LEMBERG  <wl@gnu.org>
3194         Adding a new keyword `papersize' to the DESC file format (similar
3195         but not completely identical to grolbp's extension).  grops now has
3196         a -p command line option to override `papersize'.  Finally, grolbp
3197         has been adapted to the new syntax.
3199         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
3200         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
3201         elements.
3202         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
3203         (CCSRCS): Add `paper.cc'.
3205         * src/include/font.h (font): Add `papersize' element.
3206         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
3207         (font::scan_papersize): New function.
3208         (font::load_desc): Use it for handling `papersize' keyword.
3209         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
3211         * src/devices/grops/ps.cc: Include paper.h.
3212         (user_paper_length): New global variable.
3213         (ps_printer): Use paper length as initializer.
3214         (make_printer): Updated.
3215         (main): Handle new `-p' option.
3216         * src/devices/grops/grops.man: Updated.
3218         * src/devices/grolbp/lbp.cc: Include paper.h.
3219         s/papersizes/lbp_papersizes/.
3220         (set_papersize): Use new `papersizes' array.
3221         (handle_unknown_desc_command): Don't handle `papersize'.
3222         (main): Use `font::scan_papersize' for handling `-p' option.
3223         * src/devices/grolbp/grolbp.man: Updated.
3225         * man/groff_font.man: Document `papersize'.
3226         * NEWS: Updated.
3228 2002-05-30  Werner LEMBERG  <wl@gnu.org>
3230         * src/devices/grops/TODO: Updated.
3231         * src/devices/grops/grops.man: More info on paper formats.
3232         * man/groff_font.man: Document `paperheight' and `paperwidth'.
3234 2002-05-29  Werner LEMBERG  <wl@gnu.org>
3236         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
3237         to list only if srcdir != currdir.
3238         (distfiles): New target.
3240         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
3241         (NOMAKEDIRS): New variable.
3242         (DISTDIRS): Use it.
3244 2002-05-26  Werner LEMBERG  <wl@gnu.org>
3246         Add .output request, similar to \! at top-level.
3248         * src/roff/troff/input.cc (transparent): Remove unused declaration.
3249         (output_request): New function.
3250         (init_input_requests): Add it.
3251         Sorted.
3252         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3253         Document it.
3255         * Makefile.in (MDEFINES): Add INSTALL_INFO.
3256         (prepare_examples): Fix typo.
3257         * doc/groff.texinfo (@direntry): Fix it.
3259 2002-05-25  Werner LEMBERG  <wl@gnu.org>
3261         Including the doc subdir into groff's Makefile system.
3263         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
3264         * configure.ac: Use it.
3265         Generate `doc/Makefile'.
3266         * configure: Regenerated.
3268         * Makefile.in (infodir, INSTALL_INFO): New variables.
3269         (MDEFINES, uninstall_dirs): Updated.
3270         (OTHERDIRS): Add `doc'.
3271         * Makefile.comm (CLEANDIRADD): New variable.
3272         (mostlyclean): Use it.
3274         * doc/Makefile.sub, doc/Makefile.in: New files.
3275         * doc/Makefile: Removed.
3277         * NEWS, INSTALL: Updated.
3279 2002-05-24  Werner LEMBERG  <wl@gnu.org>
3281         * doc/homepage.ms: Renamed to ...
3282         * doc/webpage.ms: This.
3283         Use `.NHR'.
3285 2002-05-23  Werner LEMBERG  <wl@gnu.org>
3287         Integrating the `mom' macro package, contributed by Peter Schaffter
3288         <df191@ncf.ca>.
3290         * contrib/mom/*: New subdirectory tree.
3291         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
3292         be used for documentation files.
3293         (MDEFINES, uninstall_dirs): Use them.
3294         (OTHERDIRS): Add contrib/mom.
3295         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
3296         @HTMLDOCDIR@.
3297         * MANIFEST, NEWS: Updated.
3299 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
3301         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
3302         if at outer level; at start-up we are at outer level.
3304         * src/roff/troff/input.cc (do_suppress): Implement it.
3305         Simplify \O[3].
3307         Add option -p to show progress information.
3308         pre-grohtml will now render only one page at a time, reducing the
3309         size of needed disk resources enormously.
3311         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
3312         (imagePageName): New global variable.
3313         (psPageName, show_progress, currentPageNo): New global variables.
3314         (html_system): Close saved stderr and stdout handles.
3315         (write_end_image): Accept a parameter to control \O escape.
3316         (write_start_image): Adapted to new \O meaning.
3317         (char_buffer::write_upto_newline): Updated.
3318         (createAllPages): Replaced with...
3319         (createPage): This new function to create a single page for images.
3320         It uses `psselect' from the psutils package.
3321         (removeAllPages): Removed.
3322         (createImage): Updated.
3323         Handle progress display.
3324         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
3325         (scanArguments): Add option -p.
3326         (makeTempFiles): Updated to create temp files for psPageName and
3327         imagePageName.
3328         (removeTempFiles): Removed.
3329         (main): Updated.
3331         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
3332         html_printer::write_header): Append `\0' to `buffer'.
3333         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
3334         (main): Handle -p.
3335         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
3336         Handle `text_emitted'.
3337         (html_text::table_is_void): Slightly rewritten.
3338         (stop): New external symbol.
3339         (html_text::do_push) [DEBUGGING]: Use it and simplify.
3340         (html_text::shutdown): Call `dump_stack'.
3341         (html_text::do_space): Rewritten.
3342         * src/devices/grohtml/grohtml.man: Document -p and the need of
3343         `psselect'.
3345         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
3346         new \O syntax.
3347         Call \O[0] if `ps4html' is active.
3348         * tmac/s.tmac (@EQ, @EN): Handle html better.
3349         (@TS, TE): Ditto.
3350         * tmac/html.tmac: Don't use black for background colour.
3352         * src/roff/troff/node.cc: Include `div.h'.
3353         (troff_output_file::really_print_line): Don't use `is_on'. 
3354         (troff_output_file::word_marker, troff_output_file::flush_tbuf
3355         troff_output_file::check_charinfo,
3356         troff_output_file::put_char_width, troff_output_file::put_char,
3357         troff_output_file::determine_line_limits, troff_output_file::draw,
3358         real_output_file::begin_page, glyph_color_node::tprintf,
3359         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
3360         Use `is_on'.
3361         (troff_output_file::really_on): Call `do_motion'.
3362         (suppress_node::tprint): Use `get_page_number' instead of `%'
3363         register.
3364         Call `reset_output_registers' conditionally on `is_on'.
3366         * doc/groff.texinfo: Document new syntax of \O.
3367         * NEWS, man/groff_diff.man: Updated.
3369 2002-05-22  Werner LEMBERG  <wl@gnu.org>
3371         * MORE.STUFF: Add info about David Frey's deroff implementation.
3372         Mention troff.org.
3374 2002-05-16  Werner LEMBERG  <wl@gnu.org>
3376         Pic's `with' attribute now accepts positions.
3378         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
3379         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
3380         conflicts.
3381         (object_spec): Add rule for `WITH' and `position'.
3382         (relative_path): Give `corner' the precedence of `CHOP'.
3383         * src/preproc/pic/object.h (path): New members `pos' and
3384         `is_position'.
3385         * src/preproc/pic/object.cc: Updated initializers of `path'.
3386         (path::follow): Handle `is_position'.
3388         * doc/pic.ms: Completely updated grammar description.
3389         Many typographical improvements.
3391 2002-05-15  Werner LEMBERG  <wl@gnu.org>
3393         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
3394         code of x in range 0-127) also.
3395         * doc/groff.texinfo, man/groff_diff.man: Updated.
3397         Added keywords `north', `south', `east', and `west' for corners
3398         in pic.
3400         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
3401         and WEST.
3402         (yylex): Handle them.
3403         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
3404         (corner): Handle them.
3406 2002-05-14  Werner LEMBERG  <wl@gnu.org>
3408         * src/devices/grops/grops.man: Clarify handling of `download' file.
3410 2002-05-11  Werner LEMBERG  <wl@gnu.org>
3412         Adding `warnscale' and `spreadwarn' requests, based on a patch from
3413         Jeffrey Friedl <jfriedl@yahoo.com>.
3415         * src/roff/troff/input.cc (spread_limit, warn_scale,
3416         warn_scaling_indicator): New global variables.
3417         (warnscale_request, spreadwarn_requests): New functions.
3418         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
3419         (init_input_requests): Updated.
3420         (error_type): Add `OUTPUT_WARNING'.
3421         (do_error): Handle it.
3422         (output_warning): New warning function which shows output location.
3423         * src/roff/troff/env.h (spread_limit): New external variable.
3424         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
3425         `output_warning'.
3426         (distribute_space): Emit warning if added space is larger than
3427         `spread_limit'.
3428         (environment::possibly_break_line): Emit warning if a line can't
3429         be adjusted on both sides.
3431         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
3433 2002-05-08  Werner LEMBERG  <wl@gnu.org>
3435         * src/roff/troff/node.cc (special_node::special_node): Use
3436         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
3437         \X''\% crashes, for example.
3439         * doc/groff.texinfo: Document \! and \? used at top-level.
3441 2002-05-06  Werner LEMBERG  <wl@gnu.org>
3443         * src/preproc/pic/pic.man: Fix some keyword syntax.
3444         Other minor typographical fixes.
3446         * src/roff/groff/groff.man: Fix typos.
3448 2002-05-04  Werner LEMBERG  <wl@gnu.org>
3450         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
3451         (ShortOpt[]): This to avoid problems with refer.
3453         * doc/pic.ms: Fix typo.
3454         Fix pic grammar description.
3456         * tmac/an-old.tmac (ne): Use de1, not de.
3458 2002-05-03  Werner LEMBERG  <wl@gnu.org>
3460         * doc/groff.texinfo: Finished separation of glyphs and characters.
3461         Don't use the string `Appendix' for appendix headers (both in
3462         the text and the table of contents).
3463         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
3464         directories.
3466         Use registers LL and LT (similar to -ms) for controlling the
3467         length of title and line, respectively, in the -man and -mdoc
3468         macro packages.
3470         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
3471         (doc-setup-page-layout): Use \n[LL] and \n[LT].
3472         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
3473         (TH): Use \n[LL].
3474         (an-header, an-p-footer): Use \n[LT].
3475         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
3476         doc/groff.texinfo: Document it.
3478 2002-05-02  Werner LEMBERG  <wl@gnu.org>
3480         * doc/fdl.texi: New file.
3481         * doc/groff.texinfo: Include it.
3482         Define and use @copying.
3483         Starting with separating glyph, symbol, and character.
3485 2002-04-27  Werner LEMBERG  <wl@gnu.org>
3487         * Makefile.in (EXEEXT): Set it.
3488         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
3489         programs.
3491         * src/include/nonposix.h: Define GS_NAME.
3492         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
3494         Some preliminary changes for EMX support under OS/2.
3496         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
3497         __EMX__ similar to __MSDOS__.
3498         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
3500 2002-04-25  Werner LEMBERG  <wl@gnu.org>
3502         * doc/groff.texinfo: Integrated groff_out.man.
3503         Some macro fixes.
3505 2002-04-23  Werner LEMBERG  <wl@gnu.org>
3507         * man/groff_out.man: Minor fixes.
3509 2002-04-23  Werner LEMBERG  <wl@gnu.org>
3511         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
3512         correct page references.
3513         Fixed many index entries.
3515 2002-04-23  Bernd Warken  <bwarken@mayn.de>
3517         * man/roff.man: Enlarged.
3519 2002-04-22  Werner LEMBERG  <wl@gnu.org>
3521         * doc/groff.texinfo: More examples, other fixes.
3523 2002-04-20  Werner LEMBERG  <wl@gnu.org>
3525         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
3526         will now form a chain, e.g.
3528           .pi foo
3529           .pi bar
3531         is now the same as
3533           .pi foo | bar
3535         This is for compatibility with plan 9's troff.
3537         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
3538         with UNIX troff.
3539         * NEWS: Updated.
3541         * doc/groff.texinfo: Add documentation of remaining requests and
3542         registers.
3544 2002-04-19  Werner LEMBERG  <wl@gnu.org>
3546         * doc/groff.texinfo: Add documentation of remaining escapes.
3548         * font/devdvi/generate/tc.map: Remove entry for `sr'.
3549         * font/devdvi/*TC: Regenerated.
3551 2002-04-18  Werner LEMBERG  <wl@gnu.org>
3553         * src/roff/troff/input.cc (token::next): Make \H behave consistently
3554         if not in compatibility mode, i.e., increment relative to the
3555         previous height.
3556         * doc/groff.texinfo: Updated accordingly.
3558 2002-04-17  Werner LEMBERG  <wl@gnu.org>
3560         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
3562 2002-04-16  Bernd Warken  <bwarken@mayn.de>
3564         * src/roff/groff/groff.man: Improve documentation of -P option.
3565         Other minor fixes.
3567 2002-04-15  Werner LEMBERG  <wl@gnu.org>
3569         Add new escape \F to switch font family.
3571         * src/roff/troff/input.cc (token::next): Handle \F.
3572         * src/roff/troff/env.cc (environment::set_family): Handle
3573         `interrupted' flag.
3574         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3575         Document it.
3577 2002-04-14  Werner LEMBERG  <wl@gnu.org>
3579         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
3580         spaces in tags.
3582 2002-04-13  Werner LEMBERG  <wl@gnu.org>
3584         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
3585         \m[] and \M[], respectively.
3587         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
3588         (symbol::symbol): Handle NULL string and empty string differently.
3589         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
3590         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
3591         Add optional parameter.
3592         Updated calling functions.
3593         (get_copy, do_glyph_color, do_fill_color, token::next): Use
3594         `symbol::is_empty'.
3595         * src/roff/troff/env.cc (environment::set_font): Ditto.
3597         * src/preproc/pic/troff.cc (troff_output::set_fill,
3598         troff_output::reset_color: Updated.
3600         * tmac/www.tmac: Updated.
3602         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
3603         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
3604         Updated.
3606         * tmac/Xps.tmac: Remove some redundant code.
3608         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
3609         tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
3610         man/groff_out.man, man/groff.man, man/groff_diff.man,
3611         src/roff/groff/groff.man: Replace \f[P] with \f[].
3613 2002-04-13  Bernd Warken  <bwarken@mayn.de>
3615         * src/include/printer.h, src/libs/libdriver/printer.cc
3616         (printer::change_fill_color): New member function.
3617         * src/libs/libdriver/input.cc (parse_D_command): Use it.
3619 2002-04-12  Werner LEMBERG  <wl@gnu.org>
3621         * doc/groff.texinfo: Completed pass on gtroff reference.
3623 2002-04-11  Werner LEMBERG  <wl@gnu.org>
3625         * doc/groff.texinfo: More fixes.
3627 2002-04-11  Bernd Warken  <bwarken@mayn.de>
3629         * src/include/color.h: Decorate with `const'.
3630         Use `size_t'.
3631         Include `stddef.h'.
3632         * src/libs/libgroff.color.cc: Decorate with `const'.
3633         Use `size_t'.
3634         (color::color): Initialize members.
3635         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
3636         command according to the documentation.
3638         * man/groff_out.man: Updated.
3639         Minor fixes.
3641 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
3643         * src/preproc/html/pre-html.cc (write_start_image): Remove
3644         redundant output.
3645         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
3647         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
3648         \C'hy' caused an assertion failure.
3650         * src/roff/troff/env.cc (environment::environment): Initialize
3651         `emitted_node'.
3652         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
3654 2002-04-10  Werner LEMBERG  <wl@gnu.org>
3656         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
3657         Document pvs request and .pvs register.
3659 2002-04-09  Werner LEMBERG  <wl@gnu.org>
3661         * doc/groff.texinfo: Improve and fix documentation of diversions
3662         and environments.
3664 2002-04-08  Werner LEMBERG  <wl@gnu.org>
3666         * doc/groff.texinfo: Fix documentation of drawing functions.
3667         Other minor fixes.
3669 2002-04-07  Werner LEMBERG  <wl@gnu.org>
3671         * doc/groff.texinfo: Better documentation of double quotes as
3672         arguments.
3673         Other minor fixes.
3675 2002-04-06  Werner LEMBERG  <wl@gnu.org>
3677         * man/groff_font.man: Document names of special characters better.
3678         * doc/groff.texinfo: Minor improvements.
3680         * tmac/lbp.tmac: Load latin1.tmac.
3681         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
3683         * font/devX*/*: Regenerated (all chars > 0x80 removed).
3685 2002-04-05  Werner LEMBERG  <wl@gnu.org>
3687         * tmac/tty.tmac: Don't use shc request.
3688         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
3689         * NEWS: Updated.
3691         * man/groff_diff.man: Minor fixes.
3693         * font/devlbp/*: Remove all `charXXX' entities.
3695         * src/libs/libgroff/font.cc (font::~font): Deallocate
3696         `special_device_coding'.
3697         (font::load): Use `new' for allocating `special_device_coding'.
3698         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
3699         Removed unused member.
3701 2002-04-05  Werner LEMBERG  <wl@gnu.org>
3703         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
3704         (resource_manager::do_begin_binary,
3705         resource_manager::do_begin_data): Use it.
3707         * doc/texinfo.tex: Updated to version 4.2.
3709         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
3710         (token::zero_width_break): New inline function.
3711         * src/roff/troff/input.cc (token::next): Use it.
3712         (token::description): Updated.
3713         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
3714         (token::add_to_node_list, token::process): Use it.
3715         * NEWS, doc/groff.texinfo: Updated.
3717         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
3718         * tmac/tty.tmac: Add missing backslash.
3720 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
3722         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
3723         `.ps' register instead of `.s' to handle fractional point sizes.
3724         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
3725         limit_box::output): Ditto.
3726         * src/preproc/eqn/other.cc (size_box::compute_metrics,
3727         size_box::output): Ditto.
3728         * src/preproc/eqn/over.cc (over_box::compute_metrics,
3729         over_box::output): Ditto.
3730         * src/preproc/eqn/script.cc (script_box::compute_metrics,
3731         script_box::output): Ditto.
3732         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
3733         sqrt_box::output): Ditto.
3735 2002-04-03  Michael Selway  <mas@ssl.co.uk>
3737         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
3738         Fix typo.
3740 2002-04-03  Werner LEMBERG  <wl@gnu.org>
3742         * doc/homepage.ms: Reduce title size.
3743         * doc/groff.texinfo: Fix documentation of .t register.
3744         Fix handling of colon.
3745         Fix `\' vs. `\\'.
3747         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
3748         only if page length is positive to avoid a loop.
3750         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
3751         tbl.
3753 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
3755         * src/include/nonposix.h, src/roff/groff/pipeline.c:
3756         s/__CYGWIN32__/__CYGWIN__/.
3758 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
3760         * doc/gnu.xpm: New image contributed by Emily Mulley.
3761         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
3762         (homepage.html): Be dependent on gnu.eps.
3763         * doc/homepage.ms: Updated to new image.
3765         * src/devices/grohtml/post-html.cc (html_printer): New member
3766         `sbuf_prev_hpos'.
3767         (html_printer::flush_sbuf, html_printer::set_char): Set it.
3768         (html_printer::sbuf_continuation): Use it.
3770 2002-03-28  Werner LEMBERG  <wl@gnu.org>
3772         * src/libs/libgroff/getopt.c: Updated to latest version.
3774         * tmac/README: More on hyphen.tex license.
3776 2002-03-26  Larry Kollar  <kollar@alltel.net>
3778         * doc/groff.texinfo: Add documentation of most missing requests.
3780 2002-03-25  Werner LEMBERG  <wl@gnu.org>
3782         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
3783         of `+-', `mu', and `di', respectively.
3785         * font/devascii/R.proto, font/devutf8/R.proto,
3786         font/devlatin1/R.proto, font/devhtml/R.proto,
3787         font/devcp1047/R.proto, font/devlpb/*: Add them.
3788         * font/devps/generate/textmap: Ditto.
3789         * font/devps/*: Regenerated.
3790         * font/devlj4/generate/text.map: Add them.
3791         * font/devlj4/*: Regenerated.
3792         * font/devdvi/generate/tc.map: Use them.
3793         * font/devdvi/generate/texsy.map: Add them.
3794         * font/devdvi/*: Regenerated.
3795         * font/devX*/*: Regenerated.
3797         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
3798         tmac/tty-char.tmac: Updated.
3800         * NEWS, man/groff_char.man: Updated.
3802 2002-03-24  Werner LEMBERG  <wl@gnu.org>
3804         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
3805         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
3806         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
3807         we use `.fchar' in dvi.tmac.
3808         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
3809         * tmac/Xps.tmac: Simplify some char definitions.
3810         Add definition for \[f/].
3811         * man/groff_char.man: Updated for new X.tmac.
3813         * tmac/README: New file.
3815 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
3817         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
3818         internal .y.o rule took precendence over the .y.cc rule, compiling
3819         the yacc files with gcc instead of g++.
3821 2002-03-23  Werner LEMBERG  <wl@gnu.org>
3823         * tmac/dvi.tmac: Add replacement font for `CB'.
3825         * tmac/doc.tmac: s/request/macro/ in messages.
3826         (doc-generic-macro): Improve error message.
3827         * tmac/groff_mdoc.man: Minor improvements.
3829 2002-03-22  Werner LEMBERG  <wl@gnu.org>
3831         * doc/groff.texinfo: Document possible conflict between `tr' and
3832         `char' requests.
3834 2002-03-21  Werner LEMBERG  <wl@gnu.org>
3836         Improve handling of hyphenation patterns.  It is now possible to
3837         use most of TeX's pattern files unmodified.  To make the process
3838         more flexible, a new request `hpfcode' has been added which
3839         provides a character code mapping for the `hpf' request.  See
3840         comment before hpf_getc() for more details.
3842         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
3843         functions.
3844         (read_patterns_file): Additional parameter for exception dictionary.
3845         Extended to recognize \pattern, \hyphenation, and \endinput.
3846         (do_hyphenation_patterns_file): Updated.
3847         * src/roff/troff/env.h (hpf_code_table): New extern.
3849         * src/roff/troff/input.cc (hpf_code_table): New array.
3850         (init_hpf_code_table, hyphenation_patterns_file_code): New
3851         functions.
3852         (hyphenation_code): Handle translation from `trin' correctly.
3853         (main, init_input_requests): Updated.
3854         (charinfo::set_translation): Handle hyphenation code also.
3856         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
3857         inline function.
3859         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
3860         char' is used for offsets in hyphenation exceptions.
3862         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
3864         * NEWS, man/groff_diff.man, man/groff.man: Document it.
3866 2002-03-20  Larry Kollar  <kollar@alltel.net>
3868         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
3869         requests.
3871 2002-03-18  Werner LEMBERG  <wl@gnu.org>
3873         * tmac/html.tmac: Fix serious typo.
3875 2002-03-17  Larry Kollar  <kollar@alltel.net>
3877         * doc/groff.texinfo: Add documentation for `writec' request.
3879 2002-03-17  Werner LEMBERG  <wl@gnu.org>
3881         Added request `hpfa' to append hyphenation patterns.
3883         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
3884         parameter `append'.
3885         (hyphenation_patterns_file): Renamed to...
3886         (do_hyphenation_patterns_file): This.
3887         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
3888         functions.
3889         (init_hyphen_requests): Updated.
3890         * NEWS, man/groff.man, man/groff_diff.man: Document it.
3892 2002-03-16  Werner LEMBERG  <wl@gnu.org>
3894         Added request `writec' in analogy to `tmc'.
3896         * src/roff/troff/input.cc (write_request): Renamed to...
3897         (do_write_request): This.
3898         Added one parameter.
3899         (write_request, write_request_continue): New functions.
3900         (init_input_requests): Updated.
3901         * NEWS, man/groff.man, man/groff_diff.man: Document it.
3903         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
3904         5-10000pt.
3905         * NEWS: Document it.
3907 2002-03-15  Werner LEMBERG  <wl@gnu.org>
3909         * man/groff.man: Add writem request.
3911         Add request `trin' (translate input) to make `.asciify' work
3912         correctly.  This is necessary since `charXXX' entity names are no
3913         longer hardcoded in font definition files.
3915         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
3916         `translate_input' members.
3917         (charinfo::set_asciify_code, charinfo::get_asciify_code,
3918         charinfo::set_translation_input): New methods.
3919         (charinfo::set_translation): Add third argument.
3920         * src/roff/troff/input.cc (charinfo:set_translation): Set
3921         `asciify_code'.
3922         (do_translate): Add second argument.
3923         (translate_input): New function.
3924         (init_input_requests): Updated.
3925         * src/roff/troff/node.cc (glyph_node::asciify,
3926         composite_node::asciify): Use `get_asciify_code'.
3928         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
3930         * NEWS, man/groff.man, man/groff_diff.man: Updated.
3932 2002-03-14  Larry Kollar  <kollar@alltel.net>
3934         * doc/groff.texinfo: Improve documentation of .RS and .RE.
3936 2002-03-14  Werner LEMBERG  <wl@gnu.org>
3938         Add a new request `sizes' similar to the `sizes' command in DESC
3939         files.
3941         * src/roff/troff/env.cc (override_sizes): New function.
3942         (init_env_requests): Use it.
3943         * src/roff/troff/token.h: Export `read_string'.
3944         * NEWS, man/groff_diff.man, man/groff.man: Document it.
3946 2002-03-12  Werner LEMBERG  <wl@gnu.org>
3948         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
3950 2002-03-10  Werner LEMBERG  <wl@gnu.org>
3952         * tmac/pspic.tmac: Add support for -Tdvi.
3953         * tmac/dvi.tmac: Include pspic.tmac.
3954         * src/devices/grodvi/grodvi.man: Document it.
3955         * NEWS: Updated.
3957         * font/devlj4/generate/Makefile: Fix URL of metric files.
3959 2002-03-09  Werner LEMBERG  <wl@gnu.org>
3961         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
3963 2002-03-09  Larry Kollar  <kollar@alltel.net>
3965         * tmac/groff_ms.man: Add documentation for RS and RE macros.
3967 2002-03-08  Werner LEMBERG  <wl@gnu.org>
3969         * doc/groff.texinfo: Fixes for texinfo 4.1.
3971 2002-03-07  Werner LEMBERG  <wl@gnu.org>
3973         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
3974         included.
3975         Handle CYGWIN properly.
3977 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
3979         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
3980         * tmac/lbp.tmac: Add some font translations.
3982 2002-03-02  Werner LEMBERG  <wl@gnu.org>
3984         * font/devcp1047/R.proto, font/devlatin1/R.proto,
3985         font/devhtml/R.proto: Remove `charXXX'  entries.
3986         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
3987         where appropriate.
3989         * font/devlj4/generate/text.map: Remove `charXXX' entries.
3990         * font/devlj4/*: Regenerated all font definition files.
3991         * tmac/lj4.tmac: Load latin1.tmac.
3993         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
3994         from 2000-06-17: LJ4 metric files are *not* text files.
3996         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
3997         register to test for EBCDIC.
3999 2002-03-01  Werner LEMBERG  <wl@gnu.org>
4001         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
4002         files (as grops already does).
4003         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
4004         files.
4005         * src/devices/grops/grops.man: Document comment lines in encoding
4006         files.
4008         * tmac/cp1047.tmac: New file.
4009         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
4010         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
4011         * tmac/Makefile.sub (NORMALFILES): Updated.
4013         * tmac/ec.tmac: Don't load latin1.tmac again.
4015         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
4016         font/devps/generate/dingbats.map,
4017         font/devps/generate/dingbats.rmap, font/devps/text.enc,
4018         font/devps/generate/Makefile (symbolmap): Add header comment.
4019         * font/devps/generate/textmap: Ditto.
4020         Remove `charXXX' entries.
4021         * font/devps/symbolmap: Regenerated.
4022         * font/devps/*: Regenerated all font definition files.
4024 2002-02-28  Werner LEMBERG  <wl@gnu.org>
4026         Add color support to grodvi (for drawing colors are currently
4027         translated to gray values).
4029         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
4030         (dvi_printer): Add `cur_color' member.
4031         (dvi_printer::set_color): New function.
4032         (draw_dvi_printer): Remove `fill'.
4033         (draw_dvi_printer::fill_next): Pass environment as parameter.
4034         Update code for new color support translated to gray.
4035         (dvi_printer::set_char): Updated.
4036         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
4037         changes crossing the page border.
4038         (dvi_printer::draw): Updated.
4039         Remove cases `f' and `F'.
4040         * tmac/dvi.tmac: Add color definitions.
4041         * NEWS, src/devices/grodvi/grodvi.man: Updated.
4043         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
4044         used incorrectly.
4046         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
4047         versions of autoconf.
4048         * configure: Updated.
4050         * doc/homepage.ms: Use `.blm'.
4051         * tmac/www.tmac (www-depth): New auxiliary variable.
4052         (www-pop-level): Don't issue HTML tag.
4053         (ULS, ULE, LI): Use absolute indentation.
4055         * src/devices/grops/ps.cc (ps_printer::begin_page,
4056         ps_printer::end_page): Switch forth and back to default color while
4057         starting a new page.
4059 2002-02-27  Werner LEMBERG  <wl@gnu.org>
4061         Add EC and TC fonts to devdvi.
4063         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
4064         * font/devdvi/generate/cork.map: Renamed to...
4065         * font/devdvi/generate/ec.map: This.
4066         Remove entry for `aq'.
4067         * font/devdvi/generate/tc.map: New file.
4068         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
4069         EC and TC fonts.
4070         (FONTS): Updated.
4071         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
4072         * font/devdvi/Makefile.sub (DEVFILES): Updated.
4073         * tmac/ec.tmac: New file.
4074         * tmac/Makefile.sub (NORMALFILES): Updated.
4075         * NEWS, src/devices/grodvi/grodvi.man: Updated.
4076         * man/groff_char.man: Check `ECFONTS' register.
4078         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
4080 2002-02-26  Werner LEMBERG  <wl@gnu.org>
4082         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
4083         * font/devdvi/generate/cork.map: Add 'y and 'Y.
4084         * font/devdvi/*: Updated.
4085         * tmac/dvi.tmac: Formatting.
4087         Add font `HBI' for the dvi output.
4088         Add support for font families `T' and `H'.
4090         * font/devdvi/HBI: New file.
4091         * font/devdvi/B: Renamed to ...
4092         * font/devdvi/TB: This.
4093         * font/devdvi/BI: Renamed to ...
4094         * font/devdvi/TBI: This.
4095         * font/devdvi/I: Renamed to ...
4096         * font/devdvi/TI: This.
4097         * font/devdvi/R: Renamed to ...
4098         * font/devdvi/TR: This.
4099         * font/devdvi/H: Renamed to ...
4100         * font/devdvi/HR: This.
4101         * font/devdvi/Makefile.sub (DEVFILES): Updated.
4102         * font/devdvi/generate/Makefile (HBI): New rule.
4103         (FONTS): Updated.
4104         (R, I, B, BI, H): Renamed to ...
4105         (TR, TI, TB, TBI, HR): This, respectively.
4106         (srcdir): Fixed.
4107         * NEWS, src/devices/grodvi/grodvi.man: Updated.
4108         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
4109         Add `styles' and `family' keywords.
4110         * tmac/dvi.tmac: Alias `H' to `HR'.
4111         Add some fspecial requests for italic fonts.
4112         Add TR and TI as special.
4113         Add support for `_' with font CWI.
4115         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
4116         operator `:'.  Until now, the expression `0:1' would return 2
4117         instead of 1.
4119 2002-02-25  Werner LEMBERG  <wl@gnu.org>
4121         * man/groff_char.man: Added some missing PS glyph names (from the
4122         Adobe Glyph List).
4123         * font/devps/generate/textmap, font/devps/symbolmap: Add
4124         `arrowupdn'.
4126         * doc/groff.texinfo: Minor additions and fixes.
4127         * man/groff_diff.man: Remove documentation of fp request.  This
4128         is already covered in the original troff manual.
4129         Updated to be consistent with other doc files.
4130         * NEWS: Updated.
4132 2002-02-24  Werner LEMBERG  <wl@gnu.org>
4134         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
4135         TTYDEVDIRS.
4136         Define new variable OTHERDEVDIRS (containing `font/devlj4
4137         font/devlbp' if not EBCDIC).
4138         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
4139         (OTHERDEVDIRS): New variable.
4140         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
4141         * configure: Regenerated.
4143         * NEWS, src/devices/grotty/grotty.man: Updated.
4145 2002-02-23  Werner LEMBERG  <wl@gnu.org>
4147         * src/roff/troff/input.cc (do_overstrike, do_bracket,
4148         get_line_arg): Honour input level.
4150         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
4152         * font/*/*: Implement it in all font files.
4153         * font/devps/generate/textmap, font/devps/generate/symbolchars,
4154         * font/devps/symbolmap: Updated.
4155         * font/devlj4/generate/text.map: Updated.
4156         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
4157         * font/devdvi/generate/texmi.map: Updated.
4159         * font/devutf8/R.proto: Remove all `charXXX' entries.
4160         * font/devutf8/NOTES: Updated.
4162         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
4163         version 4.1.0.
4165         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
4167         * NEWS, man/groff_char.man: Updated.
4169 2002-02-21  Phil Lobbes  <phil@perkpartners.com>
4171         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
4173 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4175         * src/roff/grog/grog.pl: Fix computation of $refer.
4177 2002-02-19  Werner LEMBERG  <wl@gnu.org>
4179         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
4180         `snprintf' and `vsnprintf'.
4182         * src/include/htmlindicate.h: Renamed to...
4183         * src/include/htmlhint.h: This.
4184         * src/include/Makefile.sub: Updated.
4185         * src/preproc/eqn/main.cc: Updated.
4187 2002-02-18  Werner LEMBERG  <wl@gnu.org>
4189         * man/roff.man, man/groff_out.man, man/groff.man,
4190         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
4191         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
4193         * win32-diffs: Updated.
4195 2002-02-17  Werner LEMBERG  <wl@gnu.org>
4197         * doc/Makefile (clean): Add *.eps.
4198         (MEMACROS): Removed.
4199         (TFLAG): New variable.
4200         (TROFF): Use it.
4201         Add -ww.
4202         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
4203         (.me.dit): Fixed.
4204         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
4206         * tmac/www.tmac: Use dummy diversion while resetting and disabling
4207         `.tl'.
4208         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
4209         unstripped.
4210         * src/roff/troff/troff.man: Fix order of parameter description.
4212         * NEWS: Updated.
4214 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
4216         Simplify image handling for grohtml.
4217         Fix <p> bug.
4219         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
4220         comment out.
4221         (html_text::dump_stack): Don't emit newline while debugging.
4222         (html_text::do_push) [DEBUGGING]: Print more info.
4223         (html_text::check_emit_text): Fix handling of <p>.
4224         * src/devices/grohtml/html.h: Updated.
4225         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
4226         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
4227         send its data to stderr also.
4228         Update all callers.
4229         (simple_output::space_or_newline) [DEBUGGING]: Removed.
4230         * src/devices/grohtml/post-html.cc (html_printer::do_links,
4231         html_printer::html_printer): Remove `DEBUGGING' conditionals.
4233         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
4234         Removed.
4235         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
4236         is_inline_image): Removed.
4237         (html_begin_suppress, html_end_suppress): Don't take a parameter.
4238         (graphic_start, graphic_end): Removed.
4239         * src/include/htmlindicate.h: Updated.
4240         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
4241         (macroset_template): New global variable.
4242         (makeFileName): Use `macroset_template'.
4243         (write_end_image): Don't take a parameter.
4244         Don't emit newline.
4245         (write_start_image: Don't emit newline.
4246         (char_buffer::write_upto_newline): Updated.
4247         (char_buffer::skip_to_newline): Renamed to ...
4248         (char_buffer::skip_until_newline): This.
4249         Fix code.
4250         (char_buffer::write_file_troff, char_buffer::write_file_html):
4251         Simplified.
4252         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
4253         (removeAllPages): Remove `DEBUGGING' conditionals.
4254         (addRegDef, dump_args): New functions.
4255         (char_buffer::do_html, char_buffer::do_image): Handle
4256         `www-image-template' command line variable.
4257         Add more debugging code.
4258         (addps4html): Removed.
4259         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
4261         * src/preproc/eqn/main.cc: Include `ctype.h'.
4262         (suppress_html): Removed.
4263         (do_file): Updated.
4264         (inline_equation): Use `html_begin_suppress' and
4265         `html_end_suppress'.
4266         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
4267         (troff_output::start_picture, troff_output::finish_picture):
4268         Updated.
4269         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
4270         (process_input_file): Updated.
4272         * src/roff/troff/div.cc (page_number): Set page number only if the
4273         `ps4html' register isn't defined.
4274         * src/roff/troff/input.cc (image_no): New external variable.
4275         (do_suppress): Use it.
4276         * src/roff/troff/node.h (suppress_node::image_id): New member.
4277         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
4278         (suppress_node::suppress_node): Initialize `image_id' member.
4279         (suppress_node::same): Handle `image_id' also.
4280         (suppress_node::copy): Updated.
4281         (last_image_id): New global variable.
4282         (suppress_node::tprint): Use it.
4284         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
4285         HTML-IMAGE-END.
4286         * tmac/pspic.mac (PSPIC): Fix html support.
4287         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
4288         * tmac/www.tmac (www-image-template): Set up.
4289         (HTMLINDEX): Renamed to...
4290         (HX): This.
4291         (BODYCOLOR): Renamed to...
4292         (BCL): This.
4293         (BACKGROUND): Renamed to...
4294         (BGIMG): This.
4295         (URL): Change order of parameters for consistency.
4296         (MAILTO): Renamed to...
4297         (MTO): This.
4298         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
4299         (IMG, PIMG, MPIMG): This.
4300         (HTML-H-BEGIN, HTML-H-END): Renamed to...
4301         (HnS, HnE): This.
4302         (LINKS): Renamed to...
4303         (LK): This.
4304         (LINE): Renamed to...
4305         (HR): This.
4306         (NO-AUTO-RULE): Renamed to...
4307         (NHR): This.
4308         (HTML-TL): Renamed to...
4309         (HTL): This.
4310         (UL-BEGIN, UL-END): Renamed to...
4311         (ULS, ULE): This.
4312         (DROPCAP): Renamed to...
4313         (DC): This.
4314         (TS, TE, EQ, EN): Provide default definitions.
4315         (www-make-unique-name): Updated.
4316         (HTML-IMAGE-INLINE): Fix typo.
4317         * tmac/groff_www.man: Updated.
4319         * doc/Makefile (homepage.html): Add option -r to grohtml.
4320         Use shortened image name.
4321         * doc/groff.texinfo: Updated info on grohtml strings and macros.
4322         * doc/homepage.ms: Updated and extended.
4324 2002-02-14  Werner LEMBERG  <wl@gnu.org>
4326         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
4328         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
4329         SGR_BACK_DEFAULT_COLOR): Replaced with ...
4330         (tty_printer::put_color): Use it.
4331         (ttr_printer::end_page): Simplify.
4333 2002-02-13  Werner LEMBERG  <wl@gnu.org>
4335         * tmac/groff_tmac.man: Moved to...
4336         * man/groff_tmac.man: This place.
4337         * tmac/Makefile.sub, man/Makefile.sub: Updated.
4339 2002-02-12  Werner LEMBERG  <wl@gnu.org>
4341         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
4342         $(COMPILE.c) to not include groff's assert.h.
4344         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
4345         variable.
4346         * NEWS, src/drivers/grotty/grotty.man: Document it.
4348 2002-02-11  Werner LEMBERG  <wl@gnu.org>
4350         * src/libs/snprintf/snprintf.c: Updated to latest version
4351         (2002-02-11).
4353         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
4354         test whether there is `.]' also.
4355         Don't check for spaces after `.['.
4356         * src/roff/grog/grog.sh: Do the same.
4358 2002-02-10  Werner LEMBERG  <wl@gnu.org>
4360         Illegal -> Invalid.
4362         * src/libs/libgroff/illegal.cc: Renamed to ...
4363         * src/libs/libgroff/invalid.cc: This.
4364         (illegal_char_table): Renamed to ...
4365         (invalid_char_table): This.
4366         * src/libs/libgroff/Makefile.sub: Updated.
4367         * win32-diffs: Updated.
4369         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
4370         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
4371         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
4372         font::load), src/preproc/eqn/main.cc (read_line, main),
4373         src/preproc/eqn/lex.cc (file_input::read_line),
4374         src/preproc/pic/lex.cc (file_input::read_line,
4375         simple_file_input::get, simple_file_input::peek),
4376         src/preproc/pic/main.cc (top_input::get, top_input::peek),
4377         src/preproc/pic/pic.man, src/preproc/refer/main.cc
4378         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
4379         do_bib), src/preproc/tbl/main.cc (table_input::get),
4380         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
4381         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
4382         do_zero_width, read_request, encode_char, ps_get_line,
4383         transparent_file, get_char_for_escape_name, transparent_translate,
4384         asciify, input_char_description, read_string, set_string),
4385         src/roff/troff/env.cc (environment::add_html_tag),
4386         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
4388         * src/include/lib.h: Updated.
4390         * src/preproc/eqn/eqn.cc: Removed.
4392         * NEWS: Updated.
4394         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
4396 2002-02-09  Werner LEMBERG  <wl@gnu.org>
4398         * doc/gnu.xpm: New image.
4399         * doc/Makefile (DOCS): Add homepage.ps.
4400         Add rules for converting xpm->png and xpm->eps.
4401         Use `gnu.{xpm,eps}' as image names.
4402         * doc/homepage.ms: Updated.
4404 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
4406         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
4407         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
4408         Remove calls to `B1' and `B2'
4409         (PNG-IMAGE): New macro for inclusion of images in PNG format.
4410         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
4411         auxiliary variables for MARGIN-PNG-IMAGE.
4412         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
4413         auxiliary macros for MARGIN-PNG-IMAGE.
4414         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
4415         the margin.
4416         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
4417         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
4418         (DROPCAP): New macro to produce dropcap characters.
4419         (www-do-image): Renamed back to...
4420         (HTML-DO-IMAGE): This.
4421         Updated all callers.
4423         * doc/Makefile (gnubw.eps): Updated.
4424         * doc/homepage.ms: Updated.
4426 2002-02-08  Werner LEMBERG  <wl@gnu.org>
4428         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
4429         Added `linethick' to table in section `Style Variables'.
4431 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
4433         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
4435 2002-02-07  Werner LEMBERG  <wl@gnu.org>
4437         Adding options -C (compatibility mode) and -c (grotty's old output
4438         scheme) to nroff.
4440         * src/roff/nroff/nroff.sh: Implement it.
4441         Remove `-Wall'.
4442         * NEWS, src/roff/nroff/nroff.man: Updated.
4444         * PROBLEMS: Document bison 1.32 bug.
4446         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
4448         * src/roff/troff/node.cc (make_tfont): Define it earlier.
4449         * src/roff/troff/div.h: Add prototype for `end_diversions'.
4450         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
4451         * src/roff/troff/env.h: Add prototype for `title'.
4453         Adding EBCDIC support to grotty.
4455         * src/devices/grotty/tty.cc (CSI): New macro.
4456         (SGR_*, tty_printer::put_color): Use it.
4458 2002-02-06  Werner LEMBERG  <wl@gnu.org>
4460         Implementing color support in grotty.  The new switch -c activates
4461         the old drawing scheme, disabling color at the same time.  The new
4462         switch `-i' selects italic instead of underlining (SGR only).
4464         * src/devices/grotty/tty.cc (putstring): New define instead of
4465         `fputs'.  Updated all callers.
4466         (old_drawing_scheme): New global variable.
4467         (COLOR_CHANGE): New enum value.
4468         (SGR_*): New defines containing color handling escape sequences.
4469         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
4470         (glyph): New members `back_color_idx' and `fore_color_idx'.
4471         (glyph::order): Add COLOR_CHANGE.
4472         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
4473         `is_underline', `is_bold', `cu_flag', `tty_colors'.
4474         New methods `make_underline', `make_bold', `color_to_idx',
4475         `change_color', `put_color'.
4476         (cu_flag): Moved into `tty_printer' class.
4477         (tty_printer::tty_printer): Initialize colors.
4478         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
4479         tty_printer::draw, tty_printer::end_page): Handle colors also.
4480         (main): Add options `-c' and `-i'.
4481         (usage): Updated.
4482         * NEWS, src/devices/grotty/grotty.man: Updated.
4484         * src/include/errarg.h (errarg): Add support for `unsigned int'.
4485         * src/libs/libgroff/errarg.c: Implement it.
4487         * src/include/printer.h (printer): Add `change_color' method
4488         (currently used by grotty only).
4489         * src/libs/libdriver/printer.cc: Implement it.
4490         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
4491         call to `pr->change_color'.
4493         * src/roff/troff/node.cc (troff_output_file::fill_color,
4494         troff_output_file::glyph_color): Call `do_motion'.
4496         * tmac/tty.tmac: Add color definitions.
4498         * src/roff/groff/groff.man: Minor fixes.
4500 2002-02-05  Bernd Warken  <bwarken@mayn.de>
4502         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
4503         it.  This is a preparation for future changes.
4505 2002-02-05  Werner LEMBERG  <wl@gnu.org>
4507         * src/roff/troff/input.cc (process_input_stack): Fix the case
4508         where leading spaces are followed by \f or \s; previously, an
4509         incorrect space width has been used.
4511         * doc/roff.man (quoted_char): Fix argument.
4512         (comment): Define string.
4514 2002-02-04  Larry Kollar  <kollar@alltel.net>
4516         * doc/groff.texinfo: More fixes.
4518 2002-02-04  Werner LEMBERG  <wl@gnu.org>
4520         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
4521         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
4522         `restore_compatibility' before `output_string' -- the LINE_STRING
4523         register now already contains proper switches from and to
4524         compatibility mode.
4526         * man/groff_char.man: Add Euro symbol.
4527         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
4528         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
4529         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
4530         Other minor fixes.
4532         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
4533         texinfo->pdf.
4534         (.texinfo.html): Add support for texinfo->html.
4536 2002-02-03  Werner LEMBERG  <wl@gnu.org>
4538         Added three new requests `ds1', `as1', and `ami'.  The former two
4539         are equivalent to `ds' and `as' with the difference that
4540         compatibility mode is saved on entry, switched off during string
4541         expansion, and restored on exit.  The latter is the pendant to `dei'
4542         for `am'.
4544         (do_define_string): Use `define_mode' and `calling mode'.
4545         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
4546         end of string, respectively.
4547         (define_string, append_string): Use `calling_mode'.
4548         (define_nocomp_string, append_nocomp_string,
4549         define_string_indirect): New functions.
4550         (init_input_requests): Updated.
4551         * NEWS, man/groff_diff.man, man/groff.man: Document it.
4553         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
4554         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
4555         mm macro package accesses this string register directly.
4556         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
4558         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
4559         compatibility mode.
4561 2002-02-02  Larry Kollar  <kollar@alltel.net>
4563         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
4565 2002-01-31  Werner LEMBERG  <wl@gnu.org>
4567         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
4569 2002-01-31  Bernd Warken  <bwarken@mayn.de>
4571         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
4572         * man/groff_out.man: Revised and updated.
4574 2002-01-30  Bernd Warken  <bwarken@mayn.de>
4576         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
4577         out the unused `{' and `}' commands.  Undefined by default.
4578         (IntArray): Make `data' private.
4579         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
4580         new methods instead.
4581         (skip_line_D, skip_to_end_of_line): New functions.
4582         (get_D_fixed_args): Use `skip_line_D'.
4583         Changed to handle dummy odd arguments by ...
4584         (get_D_fixed_args_odd_dummy): This new function.
4585         (get_D_variable_args): Split some code into ...
4586         (get_possibly_integer_args): This new function.
4587         (send_draw): Use more `const'.
4588         (delete_current_env): New function.
4589         (position_to_end_of_args): Use `size_t'.
4590         Updated.
4591         (send_draw): Updated.
4592         (parse_D_command): Handle `c', `C', and `t' better.
4593         Updated.
4594         (do_file): Updated.
4596 2002-01-29  Werner LEMBERG  <wl@gnu.org>
4598         * NEWS: Revised.
4599         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
4600         @Def...ListEnd which replaces @Def...x.  This is necessary to get
4601         proper HTML output -- see the comment in the file for more
4602         information.
4603         Updated all calls.
4605 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
4607         Fixes to make color changes of 2002-01-21 work with grohtml.
4609         * src/devices/grohtml/post-html.cc (style): Updated.
4610         (html_printer): Remove unused methods.
4611         (html_printer::do_font, html_printer::draw, html_printer::set_char,
4612         html_printer::special): Updated.
4613         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
4614         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
4615         Added some debugging code.
4616         (html_text::start_tag): Updated.
4617         (html_text::do_push): New method.
4618         (html_text::push_para): Call it.
4619         Add method for handling color.
4620         (html_text::do_color): Updated.
4621         (html_text::shutdown): Handle color.
4622         * src/devices/grohtml/html-text.h (tag_definition): New member
4623         `col'.
4624         Updated.
4626 2002-01-28  Werner LEMBERG  <wl@gnu.org>
4628         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
4630 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
4632         Add two switches -a and -g to control the antialiasing bits for
4633         text and graphics, respectively.
4635         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
4636         `-g'.
4637         * src/devices/grohtml/grohtml.man: Document them.
4638         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
4639         New macros.
4640         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
4641         (setupAntiAlias): New function.
4642         (createAllPages): Updated.
4643         (scanArguments): Handle `-a' and `-g'.
4644         (main): Call `setupAntiAlias'.
4645         * NEWS: Updated.
4647 2002-01-27  Werner LEMBERG  <wl@gnu.org>
4649         * doc/groff.texinfo (Def*): Call index function after deffn.
4651         * tmac/html.tmac: Call `nroff' request.
4653 2002-01-26  Larry Kollar  <kollar@alltel.net>
4655         * tmac/groff_ms.man: Add some omissions.
4657 2002-01-25  Larry Kollar  <kollar@alltel.net>
4659         * tmac/groff_ms.man: Typographical improvements.
4661 2002-01-25  Werner LEMBERG  <wl@gnu.org>
4663         * doc/groff.texinfo: Updated version and copyright.
4664         * src/devices/grops/grops.man: Updated.
4666         * tmac/groff_tmac.man: Fix `ig' macro.
4668         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
4669         nroff mode.
4670         Use `.ne' unconditionally everywhere.
4671         (TS): Only insert some vertical space.  Doing a page break is no
4672         longer necessary due to the redefinition of the `ne' request.
4674         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
4675         warning for unknown subcommands but parse and pass them to the
4676         device driver.
4678 2002-01-24  Werner LEMBERG  <wl@gnu.org>
4680         * tmac/groff_www.man, NEWS: Fix typos.
4682 2002-01-21  Werner LEMBERG  <wl@gnu.org>
4684         Complete revision of color support:
4686           Adapt programs to the new libdriver/input.cc.
4688           Color spaces are no longer converted to RGB but transferred as-is
4689           in the troff intermediate output format.
4691           Handle default color gracefully.  troff now supports a `default'
4692           color (which can't be changed).
4694           grops will now use the proper color space functions if available.
4696           Update pic.
4698         Note that currently grohtml doesn't handle colors properly.  This
4699         has to be fixed.
4701         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
4702         (ui_to_a): New function.
4703         * src/include/lib.h: Updated.
4705         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
4706         (color): Simplified; removed all `double' members and methods.
4707         A new array `components' now holds the color parameters.
4708         (color::is_default, color::get_components): New methods.
4709         (color::operator==, color:operator!=): New.
4710         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
4711         to make access to the `components' array more comprehensible.
4712         * src/libs/libgroff/color.cc: Implement new color support.
4713         (atoh): Small fixes.
4714         (color::read_encoding): Simplified for new troff intermediate color
4715         output format.
4716         (default_color): New global variable.
4718         * src/roff/troff/input.cc (default_symbol): New global variable.
4719         (lookup_color): Use it.
4720         (default_black): Removed.
4721         (do_glyph_color, do_fill_color): Simplified.
4722         (define_color): Handle default color.
4723         Improve warnings.
4724         (do_if_request): Handle default color.
4725         * src/roff/troff/env.cc (environment::environment): Initialize
4726         colors with `default_color'.
4727         * src/roff/troff/node.cc (troff_output_file::put): Add method
4728         for `unsigned int'.
4729         (troff_output_file::hex): Removed.
4730         (troff_output_file::fill_color, troff_output_file::glyph_color):
4731         Updated to include/color.h and libdriver/input.cc.
4733         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
4734         fill color properly (identically to the outline color).  \D'f...'
4735         doesn't work any more.
4736         All function calls to it updated.
4738         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
4739         Updated.
4740         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
4741         Updated.
4743         * src/devices/grops/ps.cc (ps_output::put_color): New method.
4744         (ps_printer::sbuf_color): Make a real member instead of pointer.
4745         (ps_printer::fill_color, ps_printer::output_color): Removed.
4746         (ps_printer::ps_printer): Updated.
4747         (ps_printer::set_char): Ditto.
4748         (ps_printer::set_color): Use various color schemes.
4749         Use `put_color' method.
4750         (ps_printer::flush_sbuf): Don't set color.
4751         (ps_printer::fill_path): Take `environment' as parameter.
4752         Simplify color handling.
4753         (ps_printer::set_line_thickness): Renamed to ...
4754         (ps_printer::set_line_thickness_and_color): This (and updated).
4755         (ps_printer::set_color): Change second parameter from `complete'
4756         to `fill' which better describes what it does.
4757         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
4758         and text in the right order.
4759         Updated.
4760         Remove branches for `f' and `F'; this is handled by
4761         libdriver/input.cc.
4762         * src/devices/grops/ps.h: Updated.
4763         * font/devps/prologue (FL): Redefined.
4764         ({F,C}r,k,g: New color functions (with and without filling).
4766         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
4767         * man/groff_diff.man, man/groff.man, man/groff_out.man,
4768         doc/groff.texinfo, NEWS: Updated.
4770 2002-01-20  Bernd Warken  <bwarken@mayn.de>
4772         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
4773         in this file for what has been changed.
4775 2002-01-19  Werner LEMBERG  <wl@gnu.org>
4777         * test-groff: Fix GROFF_FONT_PATH.
4778         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
4779         is read before .TH or .Dd is parsed.
4781 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
4783         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
4784         quadrant boundaries.
4786 2002-01-18  Werner LEMBERG  <wl@gnu.org>
4788         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
4789         applied last patch.
4791 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
4793         * tmac/doc.common: Initialize %I register for the %I macro to
4794         avoid (harmless) warning.
4795         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
4796         when in the SYNOPSIS section.
4798 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
4800         * src/preproc/pic/lex.cc (get_token): Fix typo.
4802 2002-01-17  Werner LEMBERG  <wl@gnu.org>
4804         * devices/grops/ps.cc: Fix incorrectly applied last patch.
4806 2002-01-17  Larry Kollar  <kollar@alltel.net>
4808         * tmac/groff_ms.man: Completely rewritten.
4810 2002-01-16  Werner LEMBERG  <wl@gnu.org>
4812         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
4814 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
4816         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
4817         fill colors.
4818         (ps_printer::draw): Ditto.
4820 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
4822         * tmac/groff_mdoc.man: Minor fixes.
4824 2002-01-13  Werner LEMBERG  <wl@gnu.org>
4826         * man/groff_out.man: Some fixes.
4828 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
4830         * doc/pic.ms: Fix typos.
4832 2002-01-12  Werner LEMBERG  <wl@gnu.org>
4834         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
4836 2002-01-10  Werner LEMBERG  <wl@gnu.org>
4838         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
4839         symbols.
4840         * NEWS: Updated.
4842 2002-01-09  Bernd Warken  <bwarken@mayn.de>
4844         * man/groff_out.man: Revised.
4845         * man/roff.man: Minor fixes.
4846         * src/roff/troff/troff.man: Some reordering.
4848 2002-01-09  Werner LEMBERG  <wl@gnu.org>
4850         * tmac/an-old.tmac: Add dummy macros for equation support.
4852 2002-01-07  Werner LEMBERG  <wl@gnu.org>
4854         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
4856         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
4857         man pages.
4858         * tmac/groff_man.man: Small improvements.
4860 2002-01-07  Bernd Warken  <bwarken@mayn.de>
4862         * man/groff_diff.man: Revised.
4864 2002-01-06  Werner LEMBERG  <wl@gnu.org>
4866         * tmac/www.tmac: Remove extraneous backslash.
4868 2002-01-06  Bernd Warken  <bwarken@mayn.de>
4870         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
4872 2002-01-05  Werner LEMBERG  <wl@gnu.org>
4874         Integrated groffer, contributed by Bernd Warken.
4876         * contrib/groffer/*: New.       
4877         * Makefile.in, NEWS: Updated.
4879 2002-01-04  Werner LEMBERG  <wl@gnu.org>
4881         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
4882         registers defined in macro packages.
4883         Revising the ms part.
4885 2002-01-04  Larry Kollar  <kollar@alltel.net>
4887         * doc/groff.texinfo: Add documentation for ms macros.
4889 2002-01-02  Werner LEMBERG  <wl@gnu.org>
4891         First step in adding PS support for the Euro symbol.  `eu' is the
4892         official Euro logo, `Eu' is a font-specific glyph variant.
4894         * font/devps/text.enc: Add `Euro' at position 9.
4895         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
4896         * font/devps/symbolmap: Regenerated.
4898         * NEWS: Updated.
4900 2002-01-02  Bernd Warken  <bwarken@mayn.de>
4902         * man/roff.man: Revised.
4904 2002-01-01  Bernd Warken  <bwarken@mayn.de>
4906         * src/roff/groff/groff.man: Completely rewritten.
4908 2001-12-31  Werner LEMBERG  <wl@gnu.org>
4910         * doc/Makefile: Updated.
4912 2001-12-30  Werner LEMBERG  <wl@gnu.org>
4914         * tmac/www.tmac: Make all names of internal macros/registers/strings
4915         lowercase, and prepend `www-'.
4916         Other minor changes.
4917         * src/roff/troff/troff.man: Add preprocessor string at BOF.
4919 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
4921         Implement option `-b' in grohtml to set the HTML background colour.
4923         * src/devices/grohtml/post-html.cc (default_background): New global
4924         variable.
4925         (html_printer::html_printer): Initialize `background' to
4926         `default_background'.
4927         (main): Implement option `-b'.
4928         (usage): Updated.
4929         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
4930         of `-b' option.
4931         * src/devices/grohtml/grohtml.man: Updated.
4932         * doc/Makefile (.ms.html): Use `-b'.
4933         * tmac/html.tmac: Don't set background color.
4935         Add new grohtml tag `.html-tl'.
4937         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
4938         member variable.
4939         (title_desc::title_desc): Updated.
4940         (html_printer::troff_tag): Handle `.html-tl'.
4941         (html_printer::write_title): Use `with_h1'.
4942         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
4943         (HTML-TL): New macro.
4945         Add support for unordered lists in HTML.
4947         * tmac/www.tmac (www-level): New auxiliary register.
4948         (www-level1, www-level2, www-level3): New auxiliary strings.
4949         (www-push-level, www-pop-level): New auxiliary macros
4950         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
4952         Miscellaneous.
4954         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
4955         (DEFAULT_VERTICAL_OFFSET): Removed.
4956         (IMAGE_BOARDER_PIXELS): Set to 0.
4957         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
4958         (vertical_offset): Initialize with 0.
4959         (gsPaper): New global variable.
4960         (get_resolution): Scan for and return unsigned int.
4961         (get_papersize): New function to get paper length from devps/DESC.
4962         (determine_vertical_offset): New function.
4963         (createAllPages): Produce gray-level images and use proper page
4964         length.
4965         (createImage): Use `-quiet' option of pnmcrop.
4966         (addZ): Fix passing of `-Z'.
4967         (scanArguments): Fix handling of `-o'.
4968         (main): Call `determine_vertical_offset'.
4969         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
4970         code for `l'.
4972         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
4973         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
4974         glyph descenders properly.
4976         * doc/homepage.ms: Include `gnubw.eps'.
4977         * doc/Makefile (gnubw.eps): New rule.
4978         (homepage.html): Depend on `gnubw.eps'.
4980 2001-12-25  Werner LEMBERG  <wl@gnu.org>
4982         * src/roff/troff/input.cc (default_black): Fix return value.
4984 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
4986         * tmac/doc-common (Dt): Change output of architecture strings.
4987         Do some syntax cleanup.
4988         * tmac/groff_mdoc.man: Updated.
4990 2001-12-23  Werner LEMBERG  <wl@gnu.org>
4992         Adding an `itc' request (input line trap accepting \c).
4994         * src/roff/troff/env.h (environment): New member
4995         `continued_input_trap'.
4996         Make `do_input_trap' a friend function instead of `input_trap'.
4997         * src/roff/troff/env.cc (environment::environment,
4998         environment::copy): Updated.
4999         (environment::newline): Implement it.
5000         (do_input_trap): New function.
5001         (input_trap): Call `do_input_trap'.
5002         (input_trap_continued): New function.
5003         (init_env_requests): Updated.
5004         * src/roff/troff/TODO: Updated.
5006         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
5007         `.it'.
5009         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
5011 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
5013         * tmac/doc-common, tmac/doc-syms: Small updates.
5015 2001-12-22  Colin Watson  <cjwatson@debian.org>
5017         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
5019 2001-12-22  Bernd Warken  <bwarken@mayn.de>
5021         * MANIFEST: New file.
5023 2001-12-22  Werner LEMBERG  <wl@gnu.org>
5025         * src/preproc/grn/grn.man: Updated.
5027 2001-12-22  Solar Designer  <solar@openwall.com>
5029         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
5030         (DBRead): Use it.
5032 2001-12-19  Werner LEMBERG  <wl@gnu.org>
5034         Implement a fallback character request `.fchar'.
5036         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
5037         (is_fallback): New inline function.
5038         * src/roff/troff/input.cc (do_define_character): New function.
5039         (define_character): Call `do_define_character'.
5040         (define_fallback_character): New function.
5041         (init_input_requests): Add `fchar'.
5042         (charinfo::charinfo): Updated.
5043         (charinfo::set_macro): New argument to set `fallback' flag.
5044         * src/roff/troff/node.cc (make_glyph_node, make_node,
5045         node::add_char): Check `fallback' flag.
5046         * NEWS, man/groff_diff.man, man/groff_man: Updated.
5048 2001-12-16  Werner LEMBERG  <wl@gnu.org>
5050         * groff.texinfo: Document exact search algorithm for glyphs.
5052 2001-12-15  Werner LEMBERG  <wl@gnu.org>
5054         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
5055         the left side of $(MANPAGES) rule to make it always non-empty.
5057 2001-12-14  Werner LEMBERG  <wl@gnu.org>
5059         * src/roff/troff/input.cc (default_black): Define default color
5060         `black' if not yet defined.
5062 2001-12-13  Werner LEMBERG  <wl@gnu.org>
5064         Implement new string-valued register `.fn' to return the current
5065         real (internal) font name.
5067         * env.cc (environment::get_font_name_string): New function.
5068         (init_env_requests): Add `.fn' register.
5069         * env.h (environment): Updated.
5070         * node.cc (font_info): Make `get_font_name' a friend.
5071         (get_font_name): New function.
5072         * node.h: Updated.
5074         * man/groff_diff.man, man/groff.man, NEWS: Updated.
5076 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5078         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
5080 2001-12-12  Werner LEMBERG  <wl@gnu.org>
5082         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
5084 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
5086         * man/groff_diff.man: Adding documentation for \O.
5088 2001-12-10  Werner LEMBERG  <wl@gnu.org>
5090         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
5091         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
5093 2001-12-09  Werner LEMBERG  <wl@gnu.org>
5095         * man/roff.man: Revised.
5096         * src/roff/groff/groff.man: Replace man page references with a
5097         pointer to roff.man.
5099 2001-12-09  Bernd Warken  <bwarken@mayn.de>
5101         * man/roff.man: Completely rewritten.
5103 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5105         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
5107 2001-12-05  Werner LEMBERG  <wl@gnu.org>
5109         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
5110         longer used.
5111         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
5112         order of initializers.
5113         * NEWS: Updated.
5115 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
5117         * doc/groff.texinfo: Fix documentation of \O.
5119         * src/devices/grohtml/html-text.cc (html_text::do_indent,
5120         html_text::do_table, html_text::do_emittext, html_text::do_para):
5121         Use `const' for first argument.
5122         (html_text::do_table): Use cast.
5123         * src/devices/grohtml/html-text.h: Updated.
5124         * src/devices/grohtml/output.cc (simple_output::put_string): Add
5125         method for `const string &s'.
5126         * src/devices/grohtml/html.h: Updated.
5127         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
5128         (ANCHOR_TEMPLATE): Modified.
5129         (manufacture_headings): New global variable to handle `-h' option.
5130         (is_subsection): Removed.
5131         (char_buffer::add_string): Add `const' to first argument.
5132         Protect against invalid string argument.
5133         Add method for `const string &s'.
5134         (text_glob): Completely redesigned.
5135         (page): Use `const' for strings and remove string length variable.
5136         (page::add_html): Removed.
5137         (page::add_end_encode): New member function.
5138         (to_unicode): Moved upwards.
5139         (title_desc, header_desc): Updated.
5140         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
5141         definition.
5142         (html_printer::is_bold, html_printer::make_bold): New member
5143         functions.
5144         (html_printer::end_of_line): Updated.
5145         (generate_img_src, html_printer::do_auto_image,
5146         html_printer::do_title, html_printer::write_header,
5147         html_printer::determine_header_level, html_printer::do_heading,
5148         html_printer::do_linelength, html_printer::do_pageoffset,
5149         html_printer::do_indentation, html_printer::do_tempindent,
5150         html_printer::do_indentedparagraph, html_printer::do_break,
5151         html_printer::flush_sbuf, get_html_translation,
5152         html_printer::begin_page, html_printer::special): Rewritten to get
5153         rid of static string length limit.
5154         (html_printer::troff_tag): Added `.no-auto-rule'.
5155         (html_printer::flush_globs): Small fix.
5156         (html_printer::determine_space): Don't compute `space_width'.
5157         (html_printer::translate_to_html): Renamed to ...
5158         (html_printer::emit_html): This (with updates).
5159         (html_printer::write_header): Implement `-h' option.
5160         (html_printer::draw): Remove commented-out code.  Handle `F'
5161         command.
5162         (html_printer::add_char_to_sbuf): Removed.
5163         (html_printer::add_to_sbuf): Rewritten.
5164         (html_printer::sbuf_continuation): Fixed.
5165         (html_printer::seen_backwards_escape, reverse,
5166         html_printer::remove_last_char_from_sbuf): Removed.
5167         (char_translate_to_html, str_translate_to_html): Removed.
5168         (html_printer::overstrike): New function member.
5169         (html_printer::set_char): Use it.
5170         (html_printer::do_body): New function member.
5171         (html_printer::~html_printer): Use it.
5172         (main): Handle `-h' option.
5173         (usage): Updated.
5174         * src/devices/grohtml/grohtml.man: Document -h switch.
5176         * src/preproc/html/pre-html.cc: Include searchpath.h
5177         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
5178         (get_resolution): New function.
5179         (checkImageDir): Use `0777' permissions in mkdir()
5180         (write_start_image): Rewritten to use `\O[5...]'.
5181         (createImage, generateImages): Updated.
5182         (main): Handle `F' and `h' options.
5183         Use `get_resolution'.
5185         * src/roff/troff/input.cc (begin, end, image): Removed.
5186         (do_suppress): Take parameter.
5187         Handle modified syntax of `\O'.
5188         (token::next): Updated.
5189         (init_markup_requests): Removed.
5190         (main): Updated.
5192         * src/roff/troff/div.h: Add declaration for begin_page().
5194         * tmac/color-html.tmac: Removed.  Contents moved to...
5195         * tmac/html.tmac: Here.  Set background color.
5196         * tmac/color.tmac: Removed.  Contents moved to...
5197         * tmac/ps.tmac: Here.
5198         * tmac/www.tmac: Remove the title command when generating images
5199         for html.
5200         (NO_AUTO_RULE): New macro.
5201         (HTML_DO_IMAGE): Use revised `\O' escapes.
5202         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
5204 2001-12-02  Werner LEMBERG  <wl@gnu.org>
5206         * tmac/groff_mdoc.man: Fix typo.
5208 2001-12-01  Colin Watson  <cjwatson@debian.org>
5210         * man/roff.man: Fix typo.
5212 2001-11-29  Werner LEMBERG  <wl@gnu.org>
5214         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
5215         stdlib.h.
5217         * src/roff/troff/input.cc (read_draw_node): Emit error message if
5218         more than one argument to \D'f ...'.
5220         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
5222 2001-11-28  Werner LEMBERG  <wl@gnu.org>
5224         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
5225         loaded only once.
5227         * tmac/groff_man.man: Minor cosmetic fix.
5229 2001-11-27  Werner LEMBERG  <wl@gnu.org>
5231         * src/roff/groff/groff.man, tmac/groff_tmac.man,
5232         tmac/groff_www.man: s/mwww/www/.
5234 2001-11-26  Werner LEMBERG  <wl@gnu.org>
5236         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
5237         * configure: Regenerated.
5238         * win32-diffs: Updated.
5240         * tmac/groff_mwww.tmac: Renamed to ...
5241         * tmac/groff_www.tmac: This.
5242         * tmac/mwww.tmac: Removed.
5243         * NEWS, tmac/Makefile.sub: Updated.
5245 2001-11-21  Werner LEMBERG  <wl@gnu.org>
5247         * doc/groff.texinfo: Improve documentation of the `\v' escape.
5248         Fix explanation of `\D' and `rt'.
5250 2001-11-20  Werner LEMBERG  <wl@gnu.org>
5252         * tmac/an-old.tmac (an-header): Set header length equal to page
5253         width.
5254         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
5255         minor fixes.
5256         * NEWS: Small fix.
5258 2001-11-19  Werner LEMBERG  <wl@gnu.org>
5260         * NEWS, man/Makefile.sub: Updated.
5262 2001-11-19  Bernd Warken  <bwarken@mayn.de>
5264         * man/ditroff.man: New file.
5266 2001-11-17  Werner LEMBERG  <wl@gnu.org>
5268         * man/groff_differences.man: Renamed to ...
5269         * man/groff_diff.man: This.  Updated.
5270         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
5272         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
5273         * src/preproc/html/pushback.cc: This.  Updated.
5274         * src/preproc/html/pushbackbuffer.h: Renamed to ...
5275         * src/preproc/html/pushback.h: This.
5276         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
5277         Updated.
5279         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
5280         * src/libs/libgroff/htmlhint.cc: This.
5281         * src/libs/libgroff/Makefile.sub: Updated.
5283         * tmac/an-old.tmac (an-end): Fix page length.
5285 2001-11-16  Werner LEMBERG  <wl@gnu.org>
5287         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
5288         * man/Makefile.sub: Include groff_differences.man.
5289         * VERSION: Set to 1.18.
5290         * REVISION: Set to 0.
5292 2001-11-16  Bernd Warken  <bwarken@mayn.de>
5294         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
5295         the second dot (or ending macro name) to end a macro.
5296         * doc/groff.texinfo: Doc fix.
5298 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
5300         * tmac/doc-common (doc-header): Handle very long document titles
5301         better.
5303 2001-11-16  Werner LEMBERG  <wl@gnu.org>
5305         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
5307 2001-11-15  Werner LEMBERG  <wl@gnu.org>
5309         * src/roff/troff/troff.man: Revised and split into troff.man and...
5310         * man/groff_differences.man: New file.
5311         * NEWS: Updated.
5313 2001-11-13  Werner LEMBERG  <wl@gnu.org>
5315         * tmac/an-old.tmac (TS, TE): New macros for table support.
5317 2001-11-12  Werner LEMBERG  <wl@gnu.org>
5319         * src/include/lib.h: Provide a fix for emx to not include
5320         groff-getopt.h.
5322 2001-10-27  Werner LEMBERG  <wl@gnu.org>
5324         * src/roff/troff/input.cc (substring_macro): Fix computation of
5325         boundary values.
5327 2001-10-20  Werner LEMBERG  <wl@gnu.org>
5329         Undo change from 2001-08-28.
5331         * src/roff/troff/input.cc (have_input): New global variable.
5332         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
5333         in compatibility mode.
5334         (process_input_stack): Use it.
5336 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
5338         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
5339         being handled as end-of-sentence characters,
5341 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
5343         * src/roff/troff/input.cc (file_iterator): New members
5344         `suppress_newline_flag' and `seen_escape'.
5345         (file_iterator::next_file): Updated.
5346         (file_iterator::fill): Use it.
5347         (string_iterator): New member `suppress_newline_flag'.
5348         (string_iterator::fill): Set it.
5349         (get_color_element): Use MAX_COLOR_VAL.
5350         * src/roff/troff/env.cc (environment): Remove `need_eol'.
5351         (no_fill): Don't set `env->ignore_next_eol'.
5352         (environment::newline): Handle `eol' tag properly.
5353         Emit `eol.ce'.
5354         (environment::add_html_tag): Set `env->ignore_next_eol'.
5355         Don't handle `.ce'.
5356         * src/roff/troff/env.h (environment): Updated.
5358         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
5359         member function.
5360         (html_printer::outstanding_eol): New member function.
5361         (html_printer::do_title): Use new functions.
5362         (html_printer::troff_tag): Test `id_eol_ce'.
5364 2001-10-10  Werner LEMBERG  <wl@gnu.org>
5366         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
5367         files work with -C also.
5369 2001-10-05  Werner LEMBERG  <wl@gnu.org>
5371         * doc/pic.ms: Minor fix.
5372         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
5373         as a valid command line switch.
5374         * src/devices/grohtml/post-html.cc (main): Ditto.
5375         (usage): Updated.
5376         * src/devices/grohtml/grohtml.man: Updated.
5377         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
5379 2001-10-04  Werner LEMBERG  <wl@gnu.org>
5381         Implementing color support in troff, pic, grops, and grohtml.  These
5382         changes are based on a major patch provided by Gaius Mulley
5383         <gaius@glam.ac.uk>.
5385         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
5386         definitions with both hex values and fractions.
5388         New escapes: \m and \M for drawing and background color,
5389         respectively.  This corresponds to the troff output commands `m'
5390         and `DF'.
5392         groff and troff accept command line switch `-c' to disable color
5393         output (which is automatically disabled in compatibility mode).
5395         New scaling indicator `f' for fractions (1f = 65536u).
5397         New conditional operator `m' to test for defined colors with `if'
5398         and `ie'.
5400         New keywords `color' (or `colour', `colored', `coloured'), `outline'
5401         (or `outlined'), and `shaded' added to pic.
5403         * src/include/color.h: New file.
5404         * src/include/driver.h: Include it.
5405         * src/include/printer.h: Include color.h.
5406         (environment): New members `col' and `fill'.
5407         (printer): Remove `adjust_arc_center' member function.
5408         * src/include/Makefile.sub: Updated.
5410         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
5411         `env.fill'.
5412         Handle `m' and `DF' troff commands.
5413         * src/libs/libgroff/color.cc: New file.
5414         * src/libs/libgroff/Makefile.sub: Updated.
5416         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
5417         (stop): Removed.
5418         (createImage): Fix computation of `y2'.
5419         Use `pnmcrop' also.
5420         (buffer::write_file_html): Remove calls to `stop'.
5422         * src/preproc/pic/common.h (common_output): New abstract function
5423         members `set_color', `reset_color', `get_last_filled', and
5424         `get_outline_color'.
5425         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
5426         (object_spec): Add members `shaded' and `outlined'.
5427         * src/preproc/pic/output.h (output): `command' is now abstract.
5428         New function members `set_color', `reset_color', `get_last_filled',
5429         and `get_outline_color'.
5430         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
5431         `outline[d]', and `shaded'.
5432         * src/preproc/pic/object.cc (output::command): Removed.
5433         (output::set_location): Moved to output.h.
5434         (graphic_object): Add protected members `outline_color' and
5435         `color_fill'.
5436         Add member functions `set_outline_color', `get_outline_color', and
5437         `set_fill_color'.
5438         (closed_object): Add member function `set_fill_color'.
5439         Add member `color_fill'.
5440         (graphic_object::print_text): Use `out->set_color' and
5441         `out->reset_color'.
5442         (box_object::print, ellipse_object::print, circle_object::print,
5443         line_object::print, spline_object::print, arc_object::print): Ditto.
5444         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
5445         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
5446         `SHADED', making them `%left'.
5447         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
5448         * src/preproc/pic/tex.cc (tex_output): New dummy function members
5449         `set_color', `reset_color', `get_last_filled', and
5450         `get_outline_color'.
5451         * src/preproc/pic/troff.cc (simple_output): New abstract function
5452         members `set_color', `reset_color', and `get_last_filled'.
5453         (simple_output::polygon, simple_output::circle,
5454         simple_output::ellipse): Use `get_last_filled'.
5455         (troff_output): New members `last_filled' and `last_outlined'.
5456         New function members `set_color', `reset_color', `get_last_filled',
5457         and `get_outline_color'.
5458         (troff_output::finish_picture): Use `reset_color'.
5459         (troff_output::set_fill): Test `last_filled'.
5460         * src/preproc/pic/pic.man: Updated.
5462         * src/roff/groff/groff.cc (main): Implement `-c' option.
5463         (synopsis, help): Updated.
5464         src/roff/groff/groff.man: Updated.
5466         * src/roff/troff/troff.h: Include color.h.
5467         (warning_type): Add WARN_COLOR.
5468         * src/roff/troff/env.h (environment): New members
5469         `{cur,prev}_{glyph,fill}_color'.
5470         New member functions `get_{prev_,}{glyph,fill}_color'.
5471         * src/roff/troff/env.cc: Initialize and implement them.
5472         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
5473         Replace `NULL' with `0' everywhere for consistency.
5474         (lookup_color, default_black, do_glyph_color, do_fill_color,
5475         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
5476         define_color): New functions.
5477         (token::next): Implement \M and \m escapes.
5478         (do_if_request): Implement `m' operator.
5479         (usage): Updated.
5480         (main): Implement `-c' option.
5481         (init_markup_requests): Add `defcolor' request.
5482         (warning_table): Add `color' warning.
5483         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
5484         classes.
5485         * src/roff/troff/node.cc (troff_output_file): New members
5486         `current_{page,glyph}color'.  New member functions `put_hex',
5487         `glyph_color', and `fill_color'.
5488         (glyph_color_node::*, fill_color_node::*): Implement it.
5489         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
5490         (parse_term): Add support for `f'.
5491         * src/roff/troff/troff.man: Updated.
5493         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
5494         entry for `F'.
5495         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
5496         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
5498         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
5499         (tag_definition): Use `void *' for arg1.
5500         (html_text): New member functions `do_color' and `done_color'.
5501         Use `void *' for second parameter of `push_para' member function.
5502         New `push_para' member function with a single parameter.
5503         Use `char *' for parameter of `issue_table_begin' member funtion.
5504         New `issue_color_begin' member function.
5505         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
5506         COLOR_TAG.
5507         (html_text::issue_color_begin): New function.
5508         (html_text::issue_table_begin): Use `char *' for parameter.
5509         (html_text::start_tag, html_text::shutdown,
5510         html_text::check_emit_text): Updated.
5511         (html_text::push_para): Use `void *' for second parameter.
5512         Add same function with only one parameter.
5513         (html_text::do_*): Updated.
5514         (html_text::do_color, html_text::done_color): New functions.
5515         * src/devices/grohtml/post-html.cc (style): New member `col'.
5516         Mew member `style' with 6 parameters.
5517         (style::style, style::operator==): Updated.
5518         (html_printer::do_font): Use it.
5519         (html_printer::draw): Add dummy entry for `F'.
5520         (html_printer::set_char): Updated.
5521         * src/devices/grohtml/grohtml.man: Updated.
5523         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
5524         trailing zeroes removed.
5525         (ps_printer): New members `sbuf_color', `fill_color', and
5526         `output_color'.
5527         Removed member `fill'.
5528         New member function `set_color'.
5529         (ps_printer::ps_printer, ps_printer::set_char): Updated.
5530         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
5531         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
5533         * tmac/color-html.tmac, tmac/color.tmac: New files.
5534         * tmac/troffrc: Include them.
5535         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
5536         * tmac/Makefile.sub: Updated.
5538         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
5539         man/groff.man: Updated.
5540         * font/devps/prologue.ps: Define FC and CO functions.
5542 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
5544         Fix incorrect cropping of images and incorrect handling of special
5545         characters.  Fix handling of file names in \O.
5547         * src/include/geometry.h: New file.
5548         * src/libs/libgroff/geometry.cc: New file.
5549         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
5550         to `geometry.cc'.
5551         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
5552         initial spaces.
5553         (do_suppress): Updated.
5554         * src/roff/troff/node.cc: Include geometry.h.
5555         (troff_output_file::flush_tbuf): Fixed parameters to
5556         `check_output_limits'.
5557         (troff_output_file::check_charinfo): Ditto.
5558         (troff_output_file::determine_line_limits): Add support for `Da'
5559         and `Dl' commands.
5561         * src/devices/grohtml/post-html.cc (str_translate_to_html):
5562         Add new parameter `is_special' to decode special characters from
5563         escape sequences.
5564         (html_printer::do_title, html_printer::do_heading,
5565         html_printer::do_indentedparagraph,
5566         html_printer::translate_to_html, html_printer::special): Updated.
5568 2001-10-03  Werner LEMBERG  <wl@gnu.org>
5570         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
5571         Fix entry for config.h.
5572         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
5573         * tmac/troffrc: Translate nonbreakable space character to `\~'.
5574         * src/preproc/eqn/eqn.man: Document -d command line option.
5576 2001-09-27  Werner LEMBERG  <wl@gnu.org>
5578         * man/groff.man: Use
5580           .ev xxx
5581           .na
5582           .nh
5583           <table>
5584           .ev
5586         instead of the old code (`.ad .hy' after the table) to suppress
5587         incorrect hyphenation for grohtml output.
5589 2001-09-22  Werner LEMBERG  <wl@gnu.org>
5591         * man/groff_font.man, man/groff_out.man: Minor fixes.
5593 2001-09-20  Werner LEMBERG  <wl@gnu.org>
5595         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
5596         Arnold Robbins <arnold@skeeve.com>).
5598 2001-09-09  Werner LEMBERG  <wl@gnu.org>
5600         * configure: Regenerated with autoconf 2.52.
5602         * doc/groff.texinfo: Complete revision of indices.
5604 2001-09-07  Werner LEMBERG  <wl@gnu.org>
5606         * doc/Makefile (clean): Updated to delete all indices.
5608 2001-09-05  Werner LEMBERG  <wl@gnu.org>
5610         * src/roff/troff/troff.man: Remove superfluous line.
5612         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
5613         given on the command line (or rather, if only the default warnings
5614         are set).
5616 2001-09-03  Werner LEMBERG  <wl@gnu.org>
5618         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
5619         use .ne for TTY devices.
5621 2001-08-31  Werner LEMBERG  <wl@gnu.org>
5623         * src/roff/troff/token.h, src/roff/troff/input.cc:
5624         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
5626 2001-08-28  Werner LEMBERG  <wl@gnu.org>
5628         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
5629         * src/roff/troff/input.cc (token::next): Return
5630         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
5631         compatibility mode.
5632         (token::description): Updated.
5633         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
5634         (token::add_to_node_list, token::process): Ignore
5635         TOKEN_TRANSPARENT_ESCAPE.
5637 2001-08-27  Werner LEMBERG  <wl@gnu.org>
5639         * tmac/an-old.tmac: Fix `S' string.
5641 2001-08-26  Werner LEMBERG  <wl@gnu.org>
5643         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
5645 2001-08-25  Werner LEMBERG  <wl@gnu.org>
5647         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
5648         backslashes).
5649         Many other minor fixes.
5651         * configure.ac: Add message at end to inform how to compile
5652         xditview.
5653         * configure: Regenerated.
5655 2001-08-24  Werner LEMBERG  <wl@gnu.org>
5657         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
5658         Updated to latest version of libc.
5660 2001-08-23  Werner LEMBERG  <wl@gnu.org>
5662         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
5663         Autoconf 2.50 and newer can handle this.
5664         * configure: Regenerated.
5666 2001-08-21  Werner LEMBERG  <wl@gnu.org>
5668         * doc/pic.ms: Fix typo.
5669         * src/preproc/tbl/tbl.man: Document case of global options.
5671 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
5673         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
5674         handling of `CR' font.
5676 2001-08-20  Werner LEMBERG  <wl@gnu.org>
5678         Use a config.h file.
5680         * src/include/lib.h: Include config.h.
5681         * All C files: Ditto (if necessary).
5682         * All C++ source and header files: Include lib.h first (if
5683         necessary).
5685         * src/include/config.hin: New file (autogenerated by autoheader).
5686         * stamp-h.in: New file.
5687         * configure.ac: Updated.
5688         * aclocal.m4: Add third parameters to AC_DEFINE macros.
5689         (GROFF_ARRAY_DELETE): Simplified.
5690         * Makefile.sub (DISTCLEANFILES): Updated.
5691         Added targets for remaking config.status, config.hin, config.h,
5692         stamp-h.in, and stamp-h.
5693         * configure: Regenerated.
5695 2001-08-19  Werner LEMBERG  <wl@gnu.org>
5697         * NEWS: Updated.
5699 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
5701         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
5702         (do_sprintf): Use snprintf().
5704 2001-08-18  Werner LEMBERG  <wl@gnu.org>
5706         * src/libs/snprintf/*: Added an snprintf module written by Mark
5707         Martinec.
5708         * src/libs/libgroff/Makefile.sub: Updated.
5709         * configure.ac: Add test for snprintf().
5710         * Makefile.in: Updated.
5711         * configure: Regenerated.
5713         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
5714         uses snprintf().
5716 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
5718         * tmac/doc.tmac (Ex): New implementation.
5719         * tmac/doc-common, tmac/groff_tmac.man: Updated.
5721 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
5723         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
5724         argument.
5725         * tmac/groff_tmac.man: Updated.
5727 2001-08-13  Werner LEMBERG  <wl@gnu.org>
5729         * src/preproc/tbl/tbl.man: Minor documentation update.
5731 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5733         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
5734         * configure.ac: Add declaration test for gettimeofday().
5735         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
5736         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
5737         * configure: Regenerated.
5739 2001-08-11  Werner LEMBERG  <wl@gnu.org>
5741         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
5742         * configure.ac: Add declaration test for strcasecmp().
5743         * Makefile.in: Updated.
5744         * configure: Regenerated.
5745         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
5746         this is necessary because groff's mkstemp.cc is C++.
5747         Add declaration conditionally for strcasecmp().
5749 2001-08-10  Werner LEMBERG  <wl@gnu.org>
5751         Integrated pic2graph, contributed by Eric S. Raymond.
5753         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
5754         files.
5755         * Makefile.in, NEWS: Updated.
5757         * src/preproc/tbl/tbl.man: Revised.
5759 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
5761         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
5763 2001-08-09  Werner LEMBERG  <wl@gnu.org>
5765         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
5766         requests.
5768 2001-08-08  Paul Eggert  <eggert@twinsun.com>
5770         * Makefile.sub (configure): Depend on configure.ac, not
5771         configure.in.
5772         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
5774 2001-08-07  Werner LEMBERG  <wl@gnu.org>
5776         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
5777         fixes.
5779 2001-08-06  Werner LEMBERG  <wl@gnu.org>
5781         * src/roff/troff/troff.man: Improve documentation of -E option.
5783 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5785         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
5786         Simplified.
5788 2001-07-27  Werner LEMBERG  <wl@gnu.org>
5790         * src/preproc/refer/refer.cc: Undo last change.
5791         * src/devices/grohtml/post-html.cc: Ditto.
5793 2001-07-26  Werner LEMBERG  <wl@gnu.org>
5795         * src/preproc/refer/refer.cc: Include `lib.h'.
5796         * src/devices/grohtml/post-html.cc: Ditto.
5798 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
5800         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
5801         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
5802         * Makefile.in: Comment updated.
5803         * configure: Regenerated.
5805 2001-07-25  Werner LEMBERG  <wl@gnu.org>
5807         * src/preproc/pic/pic.cc: Removed.
5808         * src/preproc/pic/pic_tab.h: Removed.
5809         * src/preproc/refer/label.cc: Removed.
5811         * doc/Makefile (.ms.html): Don't use a file name extension in
5812         argument to grohtml's -I option.
5813         * Makefile.in (dist): Remove CVS directories.
5814         Call `distfiles' target.
5816         * src/devices/grohtml/grohtml.man: Add information about valid
5817         versions of pnmtopng.
5818         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
5819         name instead of number.
5821 2001-07-24  Werner LEMBERG  <wl@gnu.org>
5823         * doc/groff.texinfo: Minor fixes.
5825 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
5827         * doc/Makefile (.ms.html): Put image files into a subdirectory.
5828         (clean): Updated.
5830 2001-07-20  Werner LEMBERG  <wl@gnu.org>
5832         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
5833         * src/libs/libgroff/mkstemp.cc: New file.
5834         * src/libs/libgroff/mksdir.cc: New file.
5835         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
5836         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
5837         * src/libs/libgroff/Makefile.sub: Updated.
5838         * src/include/lib.h: Add mksdir() prototype.
5839         * src/include/posix.h: Define S_IXUSR if not yet defined.
5841         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
5842         (createAllPages): Use mksdir() instead of current code.
5843         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
5844         (main): [!HAVE_MKSTEMP]: Removed.
5846         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
5847         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
5848         macros.
5849         * configure.ac: Add tests for stdint.h, sys/time.h, and
5850         gettimeofday().
5851         Call new GROFF_xxx macros.
5852         * configure: Regenerated.
5853         * Makefile.in: Comments updated.
5855 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
5857         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
5858         instead of current code.
5859         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
5860         * src/roff/groff/groff.cc (possible_command::insert_args): New
5861         function.
5862         (main): Use it for predriver handling instead of insert_arg().
5864 2001-07-19  Werner LEMBERG  <wl@gnu.org>
5866         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
5867         groff also.
5869         * src/include/posix.h: Define S_IWUSR if not yet defined.
5871 2001-07-18  Werner LEMBERG  <wl@gnu.org>
5873         * NEWS: Updated.
5875 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
5877         * tmac/groff_mdoc.man: Document new -width and -column syntax.
5878         Some other minor fixes.
5879         * tmac/an-old.tmac: Add `AT' and `UC' macros.
5881 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
5883         Replace call to `troff' with `groff -Z' to make it aware of
5884         GROFF_BIN_PATH.
5886         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
5887         (troff_command, command_prefix): Removed.
5888         (alterDeviceTo): Use groff.
5889         (addZ): New function.
5890         (char_buffer::do_html): Use it.
5891         (scanArguments): Use TROFF_COMMAND.
5892         (findPrefix): Removed.
5893         (main): Updated.
5894         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
5896 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
5898         * doc/pic.ms: Documentation fixes.
5900 2001-07-17  Werner LEMBERG  <wl@gnu.org>
5902         Replace atexit() with global destructor.
5904         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
5905         (xtmpfile_list_init): New global structure to deallocate
5906         xtmpfile_list on exit.  Its destructor inherits most code from
5907         remove_tmp_files().
5908         (remove_tmp_files): Deleted.
5909         (add_tmp_file): Simplified.
5911 2001-07-16  Werner LEMBERG  <wl@gnu.org>
5913         Replace strdup() with strsave().
5915         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
5916         (set_papersize): Use strsave() and a_delete.
5917         (main): Use strsave().
5918         * src/preproc/html/pre-html.cc (make_message, createAllPages,
5919         removeAllPages): Use strsave() and a_delete.
5921         * configure.ac: Remove test for strdup.
5922         * Makefile.in: Comment updated.
5923         * configure: Regenerated.
5925 2001-07-15  Werner LEMBERG  <wl@gnu.org>
5927         * win32-diffs: Updated.
5929 2001-07-14  Werner LEMBERG  <wl@gnu.org>
5931         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
5932         removing the old one.
5933         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
5935 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5937         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
5939 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
5941         Merge -xwidth into -width.  Add -xwidth functionality to -column
5942         also.
5944         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
5945         avoid warning.
5946         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
5947         string immediately following a leading dot starts with a valid mdoc
5948         argument.
5949         Add similar code to the -column branch.
5950         (doc-Bl-usage): Updated.
5951         * groff_mdoc.man: s/-xwidth/-width/.
5953 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
5955         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
5956         running into centered or non-formatted text.
5958 2001-07-11  Werner LEMBERG  <wl@gnu.org>
5960         Introduce short and long prefixes to have the selection at run-time
5961         whether there is a 8+3 limit for names of temporary files.
5963         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
5964         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
5965         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
5966         variables.
5967         (temp_init): New global structure to initialize above three
5968         variables.
5969         (xtmptemplate): Use two parameters for long and short prefix.
5970         Simplify code use above three variables.
5971         (xtmpfile): Use long and short prefixes as parameters.
5972         * src/include/lib.h: Updated.
5974         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
5975         with ...
5976         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
5977         (createAllPages, makeTempFiles): Updated.
5979 2001-07-09  Werner LEMBERG  <wl@gnu.org>
5981         * REVISION: Increased to 3.
5983 Version 1.17.2 released
5984 =======================
5986 2001-07-07  Werner LEMBERG  <wl@gnu.org>
5988         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
5989         to size_t.
5991 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
5993         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
5994         Fix synopsis.
5995         * tmac/groff_mdoc.man: Fix synopsis.
5997 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
5999         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
6000         Restore `doc-Pa-font'.
6002 2001-07-04  Werner LEMBERG  <wl@gnu.org>
6004         * src/utils/indxbib/dirnamemax.c: Moved to ...
6005         * src/libs/libgroff/maxfilename.cc: Here.
6006         s/dir_name_max/file_name_max/.
6007         Add copyright.
6008         * src/include/lib.h: Add file_name_max.
6009         * src/utils/indxbib/indxbib.cc: Updated.
6010         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
6011         Updated.
6013         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
6014         as empty.
6015         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
6017         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
6018         REGION_TEMPLATE): New macros.
6019         (createAllPages, makeTempFiles): Use them.
6020         Include `nonposix.h'.
6021         (html_system): New function.
6022         (createAllPages, createImage): Use it.
6023         Use EXE_EXT.
6025         * tmac/www.tmac: Fix typos.
6027 2001-07-03  Werner LEMBERG  <wl@gnu.org>
6029         * tmac/www.tmac: Disable hyphenation in normal text only if output
6030         device is html.
6031         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
6032         * tmac/groff_mwww.man, NEWS: Updated.
6034 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
6036         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
6037         image location.
6039 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
6041         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
6042         doc-display-ps-stack): Implement font and font size stack for
6043         displays.
6045 2001-07-02  Werner LEMBERG  <wl@gnu.org>
6047         * REVISION: Increased to 2.
6048         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
6050         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
6051         beginning of a line.
6052         * src/groff/grog/grog.sh: Ditto.
6054 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
6056         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
6057         make it portable.
6059 2001-06-27  Werner LEMBERG  <wl@gnu.org>
6061         Fix problems with preprocessor string for `man' program.
6063         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
6064         Updated/added copyright.
6065         Moved Emacs's local variable to identify nroff mode to the end of
6066         the file; add local variable if missing.
6068 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
6070         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
6071         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
6072         * configure: Regenerated.
6074 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
6076         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
6077         * configure: Regenerated.
6079 2001-06-24  Werner LEMBERG  <wl@gnu.org>
6081         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
6082         but www.tmac.
6083         * doc/pic.ms: Fix typos.
6085 Version 1.17.1 released
6086 =======================
6088 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
6090         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
6091         * configure: Updated.
6093 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
6095         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
6096         image names.
6097         * src/roff/troff/dic.cc (blank_line): Add html tag.
6099 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
6101         * src/roff/troff/input.cc (do_suppress): Fix typo.
6103 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
6105         Added two new options (-D and -I) to specify image names and a
6106         subdirectory to place the images in.
6108         Change syntax from \\Ox to \\O[x].
6110         * src/devices/grohtml/post-html.cc (main): Add options.
6111         (usage): Updated.
6112         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
6113         Use `NULL' instead of `0' for null string pointers.
6114         (MAX_RETRIES): New macro.
6115         (lengthOfintToStr, intToStr, make_message): New functions.
6116         (makeFileName): Make function static.
6117         Implement -D and -I options.
6118         (checkImageDir): New function.
6119         (write_end_image, write_start_image): Use new syntax of \O.
6120         (createAllPages, removeAllPages): Implement -D and -I options.  Use
6121         make_message().
6122         (createImage): Use make_message().
6123         (addps4html): Add guard for malloc().
6124         (usage, scanArguments): Updated.
6125         (makeTempFiles): Use mkstemp().
6126         (removeTempFiles): Use unlink().
6127         (findPrefix): Add guard for malloc().
6128         (main): Updated.
6129         * src/roff/troff/input.cc (get_delim_file_name): New function to
6130         parse \O.
6131         (do_suppress): Updated to parse new syntax.
6132         * src/devices/grohtml/grohtml.man: Updated.
6133         * tmac/www.tmac: Updated to new syntax.
6135         * NEWS: Updated.
6137 2001-06-15  Werner LEMBERG  <wl@gnu.org>
6139         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
6141         * src/devices/grohtml/grohtml.man: Minor improvements.
6143 2001-06-14  Werner LEMBERG  <wl@gnu.org>
6145         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
6147 2001-06-11  Werner LEMBERG  <wl@gnu.org>
6149         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
6150         line to specify preprocessor options -- mandb 2.3.1 only recognizes
6151         the former.
6152         * src/preproc/grn/grn.man: Add proper '\" string.
6154 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
6156         * test-groff: Don't use PATH but GROFF_BIN_PATH.
6158 2001-06-08  Werner LEMBERG  <wl@gnu.org>
6160         Updated to autoconf 2.50.
6162         * configure.in: Renamed to...
6163         * configure.ac: This.
6164         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
6165         (GROFF_OS390): Updated.
6166         * configure: Regenerated.
6168 2001-05-18  Werner LEMBERG  <wl@gnu.org>
6170         * src/roff/troff/env.c, src/roff/troff/env.h,
6171         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
6172         from 2000-12-21.
6174 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
6176         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
6178 2001-05-16  Werner LEMBERG  <wl@gnu.org>
6180         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
6181         less than or equal zero; set it to 1 then.
6182         * src/roff/troff/node.h (node::node): Initialize `last'.
6184 2001-05-08  Werner LEMBERG  <wl@gnu.org>
6186         * tmac/an-old.tmac: Make predefined strings work in compatibility
6187         mode.
6188         Add troff version guard.
6189         * tmac/doc.tmac: Simplify version guard.
6191 2001-05-07  Werner LEMBERG  <wl@gnu.org>
6193         The .ns and .rs requests are now honoured not only in the top-level
6194         but in all diversions (similar to UNIX troff).
6196         This change is based on a patch from Tadziu Hoffmann
6197         <hoffmann@usm.uni-muenchen.de>.
6199         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
6200         (top_level_diversion): Remove `no_space_mode' member.
6201         * src/roff/troff/div.cc (diversion::diversion,
6202         top_level_diversion::top_level_diversion): Updated.
6203         (macro_diversion::output): Reset `no_space_mode'.
6204         (no_space, restore_spacing): Use `curdiv' unconditionally.
6205         (space_request, blank_line): Check `curdiv->no_space_mode'.
6206         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
6207         `curdiv' unconditionally.
6208         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
6209         Updated.
6211 2001-05-06  Werner LEMBERG  <wl@gnu.org>
6213         Added two new requests `de1' and `am1' which are similar to `de' and
6214         `am' with the difference that compatibility mode is saved on entry,
6215         switched off during macro execution, and restored on exit.
6217         * src/roff/troff/input.h: Added two new special characters
6218         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
6219         * src/roff/troff/input.cc (input_iterator): Added two member
6220         functions `save_compatible_flag' and `get_compatible_flag'.
6221         (input_stack): Ditto.
6222         (string_iterator): Ditto.  Also add private member
6223         `saved_compatible_flag'.
6224         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
6225         (calling_mode): New enumeration.
6226         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
6227         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
6228         (define_macro, define_indirect_macro, append_macro, ignore): Use
6229         `calling_mode'.
6230         (define_nocomp_macro, append_nocomp_macro): New functions.
6231         (init_input_requests): Updated.
6232         (do_request): Rename local variable `saved_compatible_flag' to
6233         `old_compatible_flag'.
6234         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6236         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
6237         public and trap-invoked macros.  As a consequence, the man macros
6238         work in compatibility mode also.
6240 2001-05-06  Solar Designer  <solar@openwall.com>
6242         * Makefile.in: Use $(mandir).
6244 2001-05-06  Alexios Zavras  <zvr@pobox.com>
6246         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
6248 2001-05-05  Werner LEMBERG  <wl@gnu.org>
6250         Added `.ns' number register: Returns 1 in no-space mode (if in
6251         top-level diversion), 0 otherwise.
6253         * src/roff/troff/div.cc (no_space_mode_reg): New class.
6254         (init_div_requests): Updated.
6255         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
6256         Document it.
6258 2001-05-04  Werner LEMBERG  <wl@gnu.org>
6260         * src/roff/nroff/nroff.man: Improved documentation (especially
6261         locales).
6263 2001-05-02  Werner LEMBERG  <wl@gnu.org>
6265         Added `brp' request: This is \p as a request.
6267         * src/roff/troff/env.cc (environment::do_break): Add parameter
6268         `spread'.
6269         (do_break_request): New function (was `break_request').
6270         (break_request): Calls `do_break_request'.
6271         (break_spread_request): New; calls `do_break_request'.
6272         (init_env_requests): Updated.
6273         * src/roff/troff/env.h: Updated.
6274         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6276         * REVISION: Increased to 1.
6277         * win32-diffs: Updated.
6279 2001-05-01  Werner LEMBERG  <wl@gnu.org>
6281         * tmac/an-old.tmac: Fix minor compatibility mode issue.
6282         * tmac/troffrc-end: Make it really work in compatibility mode.
6284 2001-04-27  Werner LEMBERG  <wl@gnu.org>
6286         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
6287         stdlib.h.
6289 2001-04-22  Werner LEMBERG  <wl@gnu.org>
6291         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
6292         latest versions from glibc CVS archive.
6294         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
6295         <c.zeelenberg@hccnet.nl>.
6297 2001-04-21  Werner LEMBERG  <wl@gnu.org>
6299         * configure.in: Move check for mkstemp() to...
6300         * aclocal.m4 (GROFF_MKSTEMP): This new function.
6301         * configure: Regenerated.
6303         * src/include/groff-getopt.h: Don't use variable names in
6304         declarations.
6306         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
6307         * src/devices/grohtml/Makefile.sub,
6308         src/devices/grohtml/post-html.cc: Updated.
6310 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
6312         * configure.in: Add special check for mkstemp().
6313         * src/libs/libgroff/tmpfile.cc: Use it.
6314         * src/utils/indxbib/indxbib.cc: Ditto.
6315         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
6316         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
6317         `const'.
6319 2001-04-20  Bruce Lilly  <blilly@erols.com>
6321         `Version_string' as C++ object was not visible to linker from C
6322         object files.
6323         Add `const' to `Version_string'.
6325         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
6326         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
6327         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
6328         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
6329         (scanArguments), src/preproc/refer/refer.cc (main),
6330         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
6331         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
6332         (main), src/devices/grohtml/post-html.cc (main),
6333         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
6334         (main), src/utils/hpftodit/hpftodit.cc (main),
6335         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
6336         (main), src/utils/lkbib/lkbib.cc (main),
6337         src/utils/addftinfo/addftinfo.cc (main): Implement it.
6339         * src/roff/groff/pipeline.c: Add _UWIN.
6340         * src/include/nonposix.h: Ditto.
6342 2001-04-20  Werner LEMBERG  <wl@gnu.org>
6344         * src/include/lib.h: Use HAVE_STRERROR.
6345         * src/roff/groff/pipeline.c: Ditto.
6346         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
6347         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
6348         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
6349         * win32-diffs: Updated.
6350         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
6352 2001-04-19  Werner LEMBERG  <wl@gnu.org>
6354         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
6355         instead of hardwired `"troff"'.
6356         (char_buffer::read_file): Remove unused variables.
6357         (char_buffer::write_file_troff): Ditto.
6358         (char_buffer::write_file_html): Ditto.
6359         (generateImages): Ditto.
6360         (abs): Removed.
6361         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
6363         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
6365         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
6366         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
6367         index_search_item::search1): Ditto.
6368         * src/roff/troff/node.h (width_list): Reorder members.
6369         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
6370         (lookup_warning): Ditto.
6371         (prepend_string): Commented out.
6372         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
6373         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
6374         * src/preproc/tbl/main.cc (process_format): Ditto.
6375         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
6376         compiler warnings.
6377         * src/preproc/pic/pic.cc: Updated.
6378         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
6379         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
6380         * src/preproc/refer/command.cc (execute_command): Ditto.
6381         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
6382         * src/preproc/refer/token.cc (lookup_token): Ditto.
6383         * src/preproc/soelim/soelim.cc: Ditto.
6384         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
6385         (isHexDigit): Commented out.
6386         (pushBackBuffer::isString): Remove unused variable.
6387         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
6388         warning.
6389         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
6390         resource_manager::read_resource_arg, read_one_of, parse_extensions):
6391         Ditto.
6392         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
6393         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
6394         lookup_paper_size): Ditto.
6395         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
6396         (text_glob, element_list): Reorder members.
6397         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
6398         compiler warning.
6399         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
6400         return value to `void'.
6401         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
6402         of initializers.
6403         * src/devices/grohtml/html.h (simple_output::check_newline,
6404         simple_output::space_or_newline, simple_output::enable_newlines):
6405         Add return value.
6406         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
6407         compiler warnings.
6408         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
6409         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
6410         output_ligatures, output_charset, read_map): Ditto.
6411         * src/utils/lookbib/lookbib.cc (main): Ditto.
6412         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
6413         (do_file): Fix typo (`=' -> `==').
6414         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
6415         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
6417 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
6419         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
6420         Fix usage of GROFF_BIN_PATH.
6421         * src/roff/nroff/nroff.man: Updated.
6423 2001-04-18  Werner LEMBERG  <wl@gnu.org>
6425         * NEWS: Fixing typos.
6426         Updated.
6428 Version 1.17 released
6429 =====================
6431 2001-04-17  Werner LEMBERG  <wl@gnu.org>
6433         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
6434         directory, not in $(srcdir).
6436 2001-04-16  Werner LEMBERG  <wl@gnu.org>
6438         * doc/groff.texinfo: More info on conditionals.
6440 2001-04-15  Werner LEMBERG  <wl@gnu.org>
6442         * doc/groff.texinfo: Added some info about groff internals.
6444         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
6445         about missing special character only if the name is non-null.
6447 2001-04-14  Werner LEMBERG  <wl@gnu.org>
6449         Removing the grohtml-old device driver which is now obsolete.
6451         * src/devices/grohtml-old/*: Removed.
6452         * font/devhtml-old/*: Removed.
6453         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
6454         Remove comments.
6455         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
6456         * test-groff (PATH): Updated.
6457         * tmac/Makefile.sub (NORMALFILES): Updated.
6458         * tmac/an-old.tmac: Remove special code for html-old device.
6459         Replace `html-or-html-old' register with `an-html'.
6460         * tmac/eqnrc: Updated.
6461         * tmac/html-old.tmac: Removed.
6462         * tmac/troffrc, tmac/troffrc-end: Updated.
6463         * tmac/www.tmac: Remove special code for html-old device.
6464         Replace `html-or-html-old' register with `www-html'.
6466         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
6467         src/libs/libgroff/htmlindicate.cc (graphic_end),
6468         include/htmlindicate.h, src/preproc/grn/*.cc,
6469         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
6470         single argument for consistency with rest of source code.
6472         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
6474 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
6476         * src/roff/troff/troff.man: Fixing typos.
6478 2001-04-13  Werner LEMBERG  <wl@gnu.org>
6480         * doc/pic.ms: Fixing many font switches.
6481         * doc/groff.texinfo: Fixes, additions.
6482         * MORE.STUFF: Updated.
6484 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
6486         * src/devices/grohtml/grohtml.man: Updated manual page regarding
6487         simple anchor.
6488         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
6489         cropping of images.
6490         (removeTempFiles): New function to tidy up temporary files.
6491         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
6492         Many fixes to do with the new inline suppress node and image regions
6493         are much tighter.
6494         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
6495         (generate_img_src): New function.
6496         (html_printer::do_auto_image): Utilizes it.
6497         (do_heading, do_title): Include inline images within their contents.
6498         (html_printer::begin_page): Tidied up comments that are issued to
6499         the html output file.
6500         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
6501         than courier.
6502         (text_glob::is_br): New method used by do_heading.
6503         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
6504         equivalent diversion.
6505         * src/include/html-strings.h: Altered image tags to reflect the
6506         inline image node.
6507         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
6508         parameter.
6509         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
6510         it is already inside a pic image.  Only emit tags if the argument
6511         `-Tps:html' is present.
6512         * src/preproc/tbl/main.cc: Changes to reflect additional
6513         `html_end_suppress' parameter.
6514         * src/roff/troff/env.cc: Only emit eol tag if a node has been
6515         emitted since the last eol tag was written.
6516         * src/roff/troff/env.h: New boolean `emitted_node'.
6517         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
6518         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
6519         * src/roff/troff/node.cc (check_charinfo): New method. 
6520         (troff_output_file::determine_line_limits): Alterations to limit
6521         checking.
6522         * tmac/www.tmac: Changes to reflect new suppress nodes.
6523           
6524 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
6526         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
6527         Escape the html_glyph in the buffer.
6528         (str_translate_to_html): Output the unescaped escaped_char.
6529         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
6530         `frame=void', not `frame=none'.  Add `border=0'.
6532 2001-04-12  Werner LEMBERG  <wl@gnu.org>
6534         * PROBLEMS: Add some words on how to avoid wrapper macros.
6536 2001-04-11  Blake McBride  <blake@florida-software.com>
6538         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
6540 2001-04-11  Werner LEMBERG  <wl@gnu.org>
6542         * font/devlbp/Makefile.sub (CLEANADD): Set it.
6543         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
6544         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
6545         * Makefile.sub (DISTCLEANFILES): Here.
6547         * libs/libgroff/new.cc: Include `nonposix.h'.
6548         * win32-diffs: Updated.
6550 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
6552         Added skeleton macro for defunct macros.
6554         Updated documentation.
6556         When inside displays, an empty input line warning should be
6557         suppressed.  If another macro call is put inside a display,
6558         all subsequent empty lines found in that display caused a
6559         warning to be emitted.
6561         * tmac/doc.tmac (doc-defunct-macro): New macro.
6562         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
6563         (doc-restore-global-vars): Fixed typo.
6564         (doc-empty-line): Check the `doc-display-depth' register to
6565         determine whether we are inside display or not.
6567         * tmac/doc-common: Removed `Or' and `Sf' registers.
6568         Moved obsolete `Ds' macro to doc.tmac.
6570         * tmac/groff_mdoc.man: Bump document date.
6571         Document `.Vt' under ``Variable Types''.
6572         Removed documentation for obsolete `.Or' macro.
6574 2001-04-10  Werner LEMBERG  <wl@gnu.org>
6576         * NEWS: Updated.
6577         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
6579 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
6581         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
6582         (usage): Add stream argument. Don't exit.
6583         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
6584         Write --version output to stdout, not stderr.
6585         (usage): Add stream argument. Don't exit.
6586         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
6587         (usage): Add stream argument. Don't exit.
6588         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
6589         constants.
6590         (usage): Add stream argument. Don't exit.
6591         (main): Write --help output to stdout, not stderr.
6592         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
6593         (usage): Add stream argument. Don't exit.
6594         * src/devices/grops/ps.cc (main): Accept --help and --version.
6595         (usage): Add stream argument. Don't exit.
6596         * src/devices/grotty/tty.cc (main): Accept --help and --version.
6597         (usage): Add stream argument. Don't exit.
6598         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
6599         (main): Accept --help and --version.
6600         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
6601         (main): Accept --help and --version.
6602         * src/preproc/html/pre-html.cc (usage): Add stream argument.
6603         (scanArguments): Accept --help and --version.
6604         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
6605         (main): Accept --help and --version.
6606         * src/preproc/refer/refer.cc (main): Accept --help and --version.
6607         (usage): Add stream argument. Don't exit.
6608         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
6609         exit.
6610         (main): Accept --help and --version.
6611         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
6612         (main): Accept --help and --version.
6613         * src/roff/groff/groff.cc (main): Accept --help and --version.
6614         (synopsis): Add stream argument.
6615         (help): Write --help output to stdout, not stderr.
6616         (usage): Add stream argument. Don't exit.
6617         * src/roff/grog/grog.pl: Accept --help and --version.
6618         (help): New sub.
6619         * src/roff/grog/grog.sh: Accept --help and --version.
6620         * src/roff/nroff/nroff.sh: Accept --help and --version.
6621         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
6622         (usage): Add stream argument. Don't exit.
6623         (main): Accept --help and --version.
6624         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
6625         (usage): New function with stream argument, doesn't exit.
6626         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
6627         (usage): New function with stream argument, doesn't exit.
6628         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
6629         (usage): Add stream argument. Don't exit.
6630         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
6631         (main): Accept --help and --version.
6632         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
6633         exit.
6634         (main): Accept --help and --version.
6635         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
6636         (main): Accept --help and --version.
6637         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
6638         (usage): Add stream argument. Don't exit.
6640 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
6642         Fix indentation in SYNOPSIS.
6644         Updated to include changes of latest BSD mdoc version (basically,
6645         the only change is that `.Fn' and `.Fc' put a final semicolon after
6646         a function declaration in the SYNOPSIS section).
6648         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
6649         (doc-in-synopsis-section): New variable.  Updated all related
6650         functions.
6651         (doc-indent-synopsis-active): New register.
6652         (Nd, Fn, Fo): Use it.
6653         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
6654         `.Cd' with long argument line produces indented wrapped lines. 
6655         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
6656         undesirable line break to be output.
6657         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
6658         `.rs'.
6659         (Fn, Fc): Add final `;' to output.
6660         (doc-save-global-vars, doc-restore-global-vars): Updated.
6661         * tmac/doc-common: Remove `Ex' register.
6662         Updated.
6663         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
6664         copyright.
6666 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
6668         * tmac/doc.tmac (Cd): Simplify code.
6669         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
6671 2001-04-06  Werner LEMBERG  <wl@gnu.org>
6673         Implement continuous underlining for nroff mode.  To do that, a new
6674         request in the ditroff language has been added: `x u N' (N is 0
6675         or 1).
6677         \X and \Y are now transparent to end-of-sentence recognition.
6679         * src/include/printer.h (printer): Add `type' parameter to `special'
6680         method.
6681         * src/libs/libdriver/printer.cc (printer::special): Updated.
6682         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
6684         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
6685         specials of type `p'.
6686         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
6687         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
6688         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
6689         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
6690         (glyph::order): New method.
6691         (tty_printer::add_char): Use it.
6692         (tty_printer::special): New method.
6693         (tty_printer::end_page): Implement it.
6695         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
6696         * src/roff/troff/node.cc (special_node::special_node): Add parameter
6697         to set `no_init_string'.
6698         (special_node::tprint_start): Use it.
6699         (special_node::same, special_node::copy): Updated.
6700         (special_node::ends_sentence): New method.
6701         (troff_output_file::start_special): Add parameter to include
6702         inititialization of special conditionally.
6704         * src/roff/troff/env.h (environment): New member `underline_spaces'.
6705         * src/roff/troff/env.cc (do_underline_special): New function.
6706         (environment::set_font): Use it.
6707         (do_underline): Use it.  This was `underline()'.
6708         (underline): Call `do_underline()'.
6709         (continuous_underline): New function which calls `do_underline()'.
6710         (environment::newline): Use `do_underline_special()'.
6711         (init_env_requests): Updated.
6713         * NEWS, man/troff_out.man: Updated.
6715 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
6717         * font/devutf8/R.proto: Fix code of 'shc'.
6719 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
6721         Many fixes.  Diag lists can now be nested also; additionally,
6722         `-compact' and `-offset' are supported.
6724         * tmac/doc.tmac (doc-have-indent): Replaced with ...
6725         (doc-list-have-indent-stackXXX): A new register stack.
6726         (doc-have-diag-list): Removed.
6727         (Bl): Use `doc-list-have-indent-stackXXX'.
6728         (El): Updated.
6729         (doc-diag-list): Use `doc-compact-list-stackXXX'.
6730         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
6731         (doc-set-vertical-and-indent): Ditto.
6732         (doc-next-list-depth): Removed.
6733         (doc-increment-list-stack): Updated.
6734         (doc-decrement-list-stack): Use `doc-list-depth' instead of
6735         `doc-next-list-depth'.
6736         (doc-end-list, doc-end-column-list): Don't use
6737         `doc-increment-list-stack'.
6738         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
6739         (doc-save-global-vars, doc-restore-global-vars): Updated.
6740         * tmac/doc-common: Updated.
6741         * tmac/groff_mdoc.man: Updated.
6742         * NEWS: Fix typo.
6744 2001-04-02  Werner LEMBERG  <wl@gnu.org>
6746         * src/devices/grotty/grotty.man: Fix grammatical error.
6748 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
6750         Remove .Ld from mdoc package; replace it with special handling of
6751         `...'.
6753         * tmac/doc-common: Remove `Ld' register.
6754         Uncomment `doc-volume-ds-*' strings.
6755         Remove `doc-operating-system-default'.
6756         (Os): Updated.
6757         * tmac/doc-syms (Ld): Removed.
6758         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
6759         `...' specially.
6760         * NEWS: Updated.
6762         * tmac/groff_mdoc.man: Many fixes and updates.
6764 2001-03-29  Werner LEMBERG  <wl@gnu.org>
6766         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
6767         Bond <tkb@tkb.mpl.com>.
6768         * tmac/www.tmac: Save compatibility mode.
6770 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
6772         * tmac/groff_mdoc.man: Many fixes.
6774 2001-03-28  Werner LEMBERG  <wl@gnu.org>
6776         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
6777         isn't recognized.
6779 2001-03-27  Werner LEMBERG  <wl@gnu.org>
6781         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
6782         diversion.  This fixes overlong tags.
6784 2001-03-26  Werner LEMBERG  <wl@gnu.org>
6786         * doc/groff.texinfo: Fixed and improved documentation of fonts.
6787         * tmac/doc-syms: Fix error messages.
6788         * tmac/an-old.tmac: Remove incorrect double backslashes.
6790 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
6792         * tmac/Makefile.sub: Strip mdoc.local also
6793         * tmac/strip.sed: Fixed.
6795 2001-03-24  Werner LEMBERG  <wl@gnu.org>
6797         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
6798         selecting the font size.
6799         * tmac/groff_mdoc.man, NEWS: Document it.
6801 2001-03-23  Werner LEMBERG  <wl@gnu.org>
6803         * src/roff/troff/div.cc (save_vertical_space): Add default argument
6804         to `sv' request.
6805         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
6806         argument to restore previous font family.
6807         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
6809         * doc/groff.texinfo: More fixes and additions (mainly for font
6810         manipulating commands).
6812         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
6813         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
6814         * tmac/Makefile.sub, NEWS: Updated.
6816 2001-03-23  Werner LEMBERG  <wl@gnu.org>
6818         Replaced mdoc implementation.  The new version is `state of the
6819         art', using almost all new features of groff 1.17 -- it won't run
6820         with older versions.
6822         * tmac/doc.tmac: Completely rewritten.
6823         * tmac/doc-common: Ditto.
6824         * tmac/doc-nroff: Ditto.
6825         * tmac/doc-ditroff: Ditto.
6826         * tmac/doc-syms: Ditto.
6827         * tmac/mdoc.local: New file.
6828         * tmac/groff_mdoc.samples.man: Replaced with ...
6829         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
6830         * tmac/strip.sed: Updated.
6831         * tmac/Makefile.sub: Updated.
6832         * INSTALL: Updated.
6834         * tmac/groff_man.man: Add `man.local' to the FILES section.
6836 2001-03-22  Werner LEMBERG  <wl@gnu.org>
6838         * doc/groff.texinfo: Added many @noindent.
6839         Replaced @end_Example -> @endExample.
6840         Added info whether registers are r/o.
6841         Many other additions and fixes.
6843 2001-03-21  Werner LEMBERG  <wl@gnu.org>
6845         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
6846         in makeinfo of texinfo 4.0) to be used in @Def* macros.
6847         Improved @Def* macros: Now the exact syntax of request, register,
6848         and escapes is shown.
6849         Added macros for parentheses and brackets to be used in @Def*.
6850         Many fixes and improvements of the documentation.
6852 2001-03-20  Werner LEMBERG  <wl@gnu.org>
6854         * doc/groff.texinfo: Added new index: `st' (for strings).
6855         Added macros @Defstr(x).
6856         Added macro @Example (adding @group).
6857         Other minor improvements.
6859 2001-03-19  Werner LEMBERG  <wl@gnu.org>
6861         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
6862         `rq' for requests.  `fn' is no longer used.
6863         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
6864         Removed @Deffn(x).
6866         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
6867         number with name of man page.
6869 2001-03-19  Larry Kollar  <kollar@alltel.net>
6871         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
6872         consistency.
6874 2001-03-19  Werner LEMBERG  <wl@gnu.org>
6876         * man/groff_font.man: Document `prepro', `postpro', and `print'.
6877         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
6878         * src/devices/grohtml/grohtml.man: Fixing typos.
6880 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
6882         * tmac/s.tmac (@IP): Pass `.ip' html tag.
6883         * tmac/groff_mwww.man: Remove .LINE macro
6884         * tmac/www.tmac (LINE): Add `.ti'.
6886         * src/devices/grohtml/post-html.cc (html_printer): New member
6887         `indent'.
6888         (html_printer::emit_raw): Use it.
6889         (html_printer::do_linelength): Ditto.
6890         (html_printer::do_pageoffset): Ditto.
6891         (html_printer::do_indentation): Ditto.
6892         (html_printer::do_tempindent): Ditto.
6893         (html_printer::do_break): Ditto.
6894         (html_printer::begin_page): Ditto.
6895         (html_printer::do_indentedparagraph): New function.
6896         (html_printer::troff_tag): Handle `.ip'.
6897         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
6898         Add `<td width=...>' handling.
6899         (html_text::do_table): Add parameter.
6900         (html_text::do_indent): Updated.
6901         * src/devices/groohtml/html-text.h: Updated.
6903 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
6905         Introduced simple html tables to implement indentation.
6907         * src/devices/grohtml/html.h (word, word_list): New structures.
6908         (simple_output): Use it.
6909         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
6910         (html_printer): Improve indentation handling.
6911         (html_printer::emit_raw): Set `in_table' element.  Handle
6912         indentation if set.
6913         (html_printer::write_header): Move conditional downwards.
6914         Don't allow whitespace in tags.
6915         (html_printer::do_linelength): Handle line length and indentation
6916         conditionally.
6917         (html_printer::do_pageoffset): Handle indentation conditionally.
6918         (html_printer::do_indentation): Ditto.
6919         (html_printer::do_tempindent): New function member.
6920         (html_printer::do_fill): Take care of indentation.
6921         (html_printer::do_flush): Finish table.
6922         (html_printer::do_links): Ditto.
6923         (html_printer::do_break): New function for handling `.br' and `.ti'.
6924         (html_printer::troff_tag): Use it.
6925         Handle `.ti'.
6926         (html_printer::flush_globs): Fix.
6927         (html_printer::flush_page): Finish table.
6928         (html_printer::html_printer): Fix error message.  Set up
6929         `linelength'.
6930         (html_printer::add_to_sbuf): Remove special handling of character
6931         code 255.
6932         (to_unicode): Remove `stop()'.
6933         (html_printer::write_title): Cleanup.
6934         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
6935         (html_printer::~html_printer): Flush text and end the line.
6936         Use `put_string()'.
6937         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
6938         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
6939         emission of tags.
6940         (html_text::start_tag): Disable newlines.
6941         (html_text::table_is_void): New function.
6942         (html_text::issue_table_begin): Ditto.
6943         (html_text::issue_table_end): Ditto.
6944         (html_text::push_para): Better table handling.
6945         (html_text::do_indent): New function.
6946         (html_text::do_table): Ditto.
6947         (html_text::done_table): Ditto.
6948         (html_text::do_tt): Handle PRE_TAG.
6949         (html_text::is_in_table): New function.
6950         (html_text::check_emit_text): Handle tables.
6951         (html_text::do_emittext): Use `nl()'.
6952         (html_text::do_para): Handle table.
6953         (html_text::remove_def): New function.
6954         * src/devices/grohtml/output.cc (word, word_list): Implement
6955         methods.
6956         (simple_output::end_line): Flush last word.
6957         (simple_output::simple_comment): Ditto.
6958         (simple_output::begin_comment): Recoded.
6959         (simple_output::end_comment): Ditto.
6960         (simple_output::comment_arg): Removed.
6961         (simple_output::check_newline): Improve test and flush last word.
6962         (simple_output::space_or_newline): Improved.
6963         (simple_output::write_newline): Replaced with...
6964         (simple_output::nl): This.
6965         (simple_output::put_raw_char): Flush last word.
6966         (simple_output::check_space): Removed.
6967         (simple_output::put_translated_string): Ditto.
6968         (simple_output::put_string): Simplified.
6969         (simple_output::put_number): Updated.
6970         (simple_output::put_float): Ditto.
6971         (simple_output::put_symbol): Removed.
6972         (simple_output::enable_newlines): Add `check_newline()'.
6973         (simple_output::flush_last_word): New function.
6975         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
6976         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
6978         * tmac/s.tmac (@PP, @IP): Add html conditional code.
6979         * tmac/an-old.tmac (TP): Ditto.
6981 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
6983         * mdate.sh: Make it POSIX compliant.
6985 2001-03-09  Werner LEMBERG  <wl@gnu.org>
6987         Added the `return' request to end a macro immediately.  It simply
6988         pops iterators from the input stack until a macro iterator is found.
6990         * src/roff/troff/input.cc (input_iterator::is_macro,
6991         macro_iterator::is_macro): New member.
6992         (input_return_boundary): New class to signal an immediate return
6993         to while_request().
6994         (input_stack::add_return_boundary, input_stack::is_return_boundary):
6995         New functions.
6996         (input_stack::clear): Use it.
6997         (input_stack::pop_macro): New function.
6998         (while_request): Use `is_return_boundary()'.
6999         (return_macro_request): New function.
7000         (init_input_requests): Use it.
7002         * src/roff/troff/TODO: Updated.
7003         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7005 2001-03-08  Werner LEMBERG  <wl@gnu.org>
7007         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
7008         cleanup.
7010 2001-03-07  Werner LEMBERG  <wl@gnu.org>
7012         Make `\B' more rigid.
7014         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
7015         parameter.
7016         (get_number_rigidly): New function.
7017         * src/roff/troff/input.cc (do_expr_test): Use it.
7018         * src/roff/troff/token.h: Updated.
7020         * src/roff/troff/request.h: Fix typo (init_html_request ->
7021         init_markup_request).
7023 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
7025         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
7026         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
7027         are now `.begin', `.end', `.image'.
7029         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
7030         (html_printer::add_to_sbuf): Changing type of `code' parameter.
7031         Use add_char_to_sbuf().
7032         (to_unicode): New function.
7033         (char_translate_to_html): Changing type of `ch' parameter.
7034         Use `to_unicode()'.
7035         (html_printer::~html_printer): Comment out doctype string.
7036         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
7037         instead of `.html-end'.
7038         (write_start_image): Use `.begin' and `.image' instead of
7039         `.html-begin' and `.html-image'.
7040         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
7041         (html_begin): Renamed to ...
7042         (begin): This.
7043         (html_end): Renamed to ...
7044         (end): This.
7045         (html_image): Renamed to ...
7046         (image): This.
7047         (init_html_requests): Renamed to ...
7048         (init_markup_requests): This.
7049         * tmac/www.tmac: Updated.
7051 2001-02-28  Bram  <bram@avontuur.org>
7053         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
7054         constructor.
7056 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
7058         * doc/meref.me: Fixing some typos.
7060 2001-02-16  Werner LEMBERG  <wl@gnu.org>
7062         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
7063         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
7064         * src/roff/troff/node.h: Updated.
7066 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
7068         * tmac/groff_tmac.man: Fix typo.
7070 2001-02-16  Werner LEMBERG  <wl@gnu.org>
7072         Fixing a bug which prevented proper end-of-sentence recognition
7073         between an `unformatted' box and the following text.  As a
7074         consequence, vertical line distances are no longer preserved in
7075         boxes after a call to `.unformat' -- because boxes aren't
7076         line-oriented (contrary to diversions), this doesn't make sense
7077         anyway.
7079         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
7080         value.
7081         (vertical_size_node::set_unformat_flag): New method.
7082         * src/roff/troff/node.hh: Updated.
7083         * src/roff/troff/input.cc (word_space_node::reread,
7084         hmotion_node::reread): Reset `unformat' flag after usage.
7085         (unformat_macro): Append only if `set_unformat_flag()' returns
7086         non-zero.
7087         * src/roff/troff/troff.man: Updated.
7089 2001-02-15  Werner LEMBERG  <wl@gnu.org>
7091         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
7092         documentation of `asciify' and `unformat' requests.
7094 2001-02-13  Werner LEMBERG  <wl@gnu.org>
7096         Redesigned the `unformat' request.  It is no longer connected with
7097         `asciify' but rather uses new `reread()' methods if the `unformat'
7098         flag is set.  Additionally, the handling of space characters after
7099         unformatting has been fixed so that they retain their width.
7101         * src/roff/troff/node.h (width_list): New structure to store
7102         original widths of spaces.
7103         (node): Added `unformat' member.
7104         Replaced `num_spaces' variable with `orig_width' list.
7105         * src/roff/troff/node.cc (*node::asciify,
7106         asciify_reverse_node_list): Removed `unformat_only' flag and related
7107         code.
7108         (word_space_node::asciify, word_space_node::word_space_node): Use
7109         `orig_width'.
7110         (word_space_node::~word_space_node): New destructor.
7111         (word_space_node::copy): Updated to handle `orig_width'.
7112         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
7113         (*node::merge_space): Update `orig_width' list if necessary.
7114         (*node::set_unformat_flag): New methods to set the `unformat' flag.
7115         * src/roff/troff/enc.cc (environment::space_newline): Use
7116         `width_list'.
7117         (environment::space): Added method to handle space width and
7118         sentence space width as parameters.  Use `width_list'.
7119         (environment::make_tab_node): Updated.
7120         * src/roff/troff/env.h: Updated.
7121         * src/roff/troff/input.cc (word_space_node::reread,
7122         unbreakable_space_node::reread, hmotion_node::reread): New methods
7123         to handle nodes specially if `unformat' flag is set.
7124         (do_asciify_macro): Renamed back to ...
7125         (asciify_macro): This.
7126         (unformat_macro): New implementation to simply set the `unformat'
7127         flag.
7129         * MORE.STUFF: Added more info about deroff.
7131 2001-02-08  Werner LEMBERG  <wl@gnu.org>
7133         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
7134         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
7135         and `add_self()' methods to avoid hyphenation.  For example, the
7136         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
7137         soft hyphen after `foo'.  Now the hyphen list is correctly
7138         `foo<ignore><ignore>bar'.
7140 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
7142         * tmac/groff_tmac.man: Fix `BIR' macro.
7144 2001-02-04  Werner LEMBERG  <wl@gnu.org>
7146         A new escape sequence `\:', inserting a zero-width break point.
7148         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
7149         * src/roff/troff/input.cc (get_copy, token::next, asciify):
7150         Implement it.
7151         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
7152         method.
7153         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
7154         and `asciify()' methods.
7155         * src/roff/troff/node.cc (space_node::space_node): Updated.
7156         (space_node::asciify): Handle `was_escape_colon'.
7157         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7159         Handle `\~' similar to other comparable requests.
7161         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
7162         label.
7163         (token::next): Move creation of an unbreakable_space_node to...
7164         (token::add_to_node_list): Here.
7166         Fix a bug which sometimes prevented hyphenation of words connected
7167         with `\~' or `\ ' (and other escape sequences handled as
7168         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
7169         (after a call to the `unformat' request).
7171         * src/roff/troff/env.h (environment::possibly_break_line,
7172         environment::hyphenate_line): Introducing `start_here' parameter.
7173         * src/roff/troff/env.cc (environment::space_newline,
7174         environment::space): Use it.
7175         (environment::possibly_break_line, environment::hyphenate_line):
7176         Implement it.
7177         * src/roff/troff/input.cc (process_input_stack): Use it.
7178         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
7179         space_char_hmotion_node, overstrike_node): Add
7180         `get_hyphenation_type()' method.
7181         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
7182         if `unformat_only' is active.
7184 2001-01-30  Werner LEMBERG  <wl@gnu.org>
7186         Implemented new read-only number register `.linetabs' which
7187         returns 1 if in line-tabs mode, 0 otherwise.
7189         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
7190         * src/roff/troff/env.cc (get_line_tabs): New function.
7191         (init_env_requests): Use it.
7192         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7194         * VERSION, REVISION: Changing to 1.17.0.
7196 2001-01-28  Werner LEMBERG  <wl@gnu.org>
7198         Fixed a bug which prevented hyphenation of words which are finished
7199         with `\)'.
7201         * src/roff/troff/token.h (token): Add enum type
7202         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
7203         * src/roff/troff/input.cc (token::next, token::description,
7204         get_line_arg, token::add_to_node_list, token::process): Use it.
7206 2001-01-27  Werner LEMBERG  <wl@gnu.org>
7208         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
7209         * src/roff/troff/div.cc (do_divert): Use it.
7211         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
7213 2001-01-25  Werner LEMBERG  <wl@gnu.org>
7215         Adding the `linetabs' request.  If set, tab distances are not
7216         computed relative to the input line but relative to the output line.
7218         * src/roff/troff/env.h (environment): New member `line_tabs'.
7219         * src/roff/troff/env.cc (line_tabs_request): Implement request.
7220         (environment::environment, environment::copy): Updated.
7221         (environment::distance_to_next_tab): Use `line_tabs'.
7222         (init_env_requests): Register request.
7223         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
7224         fixes.
7226 2001-01-24  Werner LEMBERG  <wl@gnu.org>
7228         Introducing a new read-only register `.int' which is set to a
7229         positive value if the last output line is interrupted (i.e., if it
7230         contains `\c').
7232         * src/roff/troff/env.cc (init_env_requests): Add it.
7233         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7235 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
7237         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
7238         * src/preproc/html/pre-html.cc (findPrefix): New function which
7239         generates the troff executable name via the system prefix.
7240         * src/preproc/eqn/main.cc: Modified warning message.
7242 2001-01-23  Werner LEMBERG  <wl@gnu.org>
7244         troff's `box' and `boxa' requests didn't preserve temporary
7245         indentation.
7247         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
7248         `saved_target_text_length' members.
7249         * src/roff/troff/div.cc (do_divert): Use them.
7251         Tabs (but not yet leaders and fields) are now handled correctly by
7252         `asciify' request.
7254         * node.h (hmotion_node): Add field `was_tab'.
7255         * env.cc (environment::make_tab_node): Set it.
7256         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
7258         Added new request `unformat' which will, contrary to `asciify',
7259         preserve font information after unformatting (i.e., only nodes
7260         dealing with horizontal space are converted back to input
7261         characters).
7263         * input.cc (asciify_macro): Renamed to ...
7264         (do_asciify_macro): this, having a new parameter `unformat_only'.
7265         (asciify_macro, unformat_macro): New; using do_asciify_macro.
7266         (init_input_requests): Added `unformat'.
7267         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
7268         parameter to control asciification process.
7269         * node.h (*_node::asciify): Ditto.
7270         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7272 2001-01-20  Werner LEMBERG  <wl@gnu.org>
7274         * doc/groff.texinfo: Minor improvement of `.in' documentation.
7276 2001-01-18  Werner LEMBERG  <wl@gnu.org>
7278         * tmac/ps.tmac: Remove call of psold.tmac.
7279         * tmac/psold.tmac: Comment updated.
7280         * tmac/psnew.tmac: Removed since no longer needed.
7281         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
7283         * font/devutf8/R.proto: Adding `shc' glyph.
7284         * font/devutf8/NOTES: Updated.
7286         * test-groff: Updated.
7288 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
7290         First cut of the new html device driver.  Changes to pre-html and
7291         the new grohtml are too numerous to be documented here.
7293         Stuff related to `html' has been renamed to `html-old' and `html2'
7294         stuff has been renamed to `html' (including directories).  The new
7295         html device driver is therefore invoked as `-Thtml'.
7297         Added new `\O' escape to suppress output (needed by html driver).
7299         Added functions and code to pass info about input-level commands
7300         (`.in', `.fl', etc.) to html driver.
7302         Three new functions (.html-begin, .html-end, and .html-image) for
7303         better html handling: `html-begin' will execute the remaining line
7304         if at the outermost nesting level, increasing an internal counter.
7305         `html-end' does the same but decreases the internal counter.
7306         `html_image' puts its arguments into a special node (suppress_node)
7307         to define an image region.
7309         The `output' request has been removed.
7311         * tmac/html-tags.tmac: Removed.
7312         * tmac/arkup.tmac: Updated and renamed to ...
7313         * tmac/www.tmac: New file.
7314         * tmac/markup.tmac Updated and renamed to ...
7315         * tmac/mwww.tmac: New file.
7316         * tmac/Makefile.sub: Updated.
7317         * tmac/an-old.tmac: Updated.
7318         * tmac/eqnrc: Updated.
7319         * tmac/groff_man.man
7320         * tmac/groff_markup.man: Updated and renamed to ...
7321         * tmac/groff_mwww.man: New file.
7322         * tmac/groff_tmac.man: Updated.
7323         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
7324         * tmac/html.tmac: Updated and renamed from html2.tmac.
7325         * tmac/pspic.tmac: Updated html support.
7326         * tmac/s.tmac: Added html output support.
7327         * tmac/troffrc, tmac/troffrc-end: Updated.
7329         * Makefile.in, doc/Makefile: Updated.
7330         * doc/groff.texinfo: Added info about new `\O' escape.
7331         * doc/homepage.ms: Use `MAILTO' macro.
7333         * font/devhtml/DESC.proto: Add `C' font.
7334         * font/devhtml/Makefile.sub: Updated.
7335         * font/devhtml/R.proto: Minor fixes.
7336         * font/devhtml-old/Makefile.sub: Updated.
7338         * src/devices/grohtml-old/Makefile.sub: Updated.
7340         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
7341         method.
7342         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
7343         graphic_start): Add `inline' parameter.  Update.
7344         (html_end_suppress, graphic_end): Update.
7346         * src/include/html-strings.h: New file.
7347         * src/include/htmlindicate.h: Comments updated.
7348         * src/include/printer.h: Updated.
7350         * src/preproc/eqn/main.cc (do_file, main): Updated.
7351         * src/preproc/pic/troff.cc (troff_output::start_picture,
7352         troff_output::finish_picture): Updated.
7353         * src/preproc/tbl/main.cc (process_input_file): Updated.
7355         * src/roff/groff/groff.cc (main): Updated.
7356         Pass device arguments to predrivers also.
7357         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
7358         * src/roff/troff/env.h (environment): Updated.
7359         New elements `need_eol' and `ignore_next_eol' (for html output).
7360         * src/roff/troff/env.cc (environment::environment): Add initializers
7361         for `need_eol' and `ignore_next_eol'.
7362         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
7363         functions.
7364         (point_size, fill, no_fill, center, right_justify, line_length,
7365         indent, temporary_indent, break_request, handle_tab): Use
7366         `add_html_tag()'.
7367         (set_tabs): Use `add_html_tag_tabs()'.
7368         (environment::add_html_tag): Updated.
7369         (environment::do_break): Updated.
7370         * src/roff/troff/div.cc (space_request, flush_output): Use
7371         `environment::add_html_tag()'.
7372         * src/roff/troff/input.cc: Updated.
7373         New variable `html_level' to indicate nested `html-begin' requests.
7374         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
7375         (non_interpreted_char_node, token_node, non_interpreted_node): Add
7376         `force_tprint()' method.
7377         (token::next): Handle `\O'.
7378         (do_suppress): Implement it.
7379         (html_begin, html_end, html_image): New functions.
7380         (init_output_requests): Renamed to ...
7381         (init_html_requests): this.
7382         (main): Use it.
7383         (macro::append_str, macro::append_unsigned, macro::append_int): New
7384         methods.
7385         New variable `output_low_mark_miny' to limit minimal value of y.
7386         (reset_output_registers): Use it.
7387         (output_request): Removed.
7388         (get_output_registers): New function.
7389         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
7390         (*_node): Added `force_tprint()' if necessary.
7391         (special_node): New elements `tf' and `get_tfont()'.
7392         (suppress_node): New class.
7393         * src/roff/troff/node.cc:
7394         New global variables `image_no' and `suppress_start_page'.
7395         (real_output_file): New method `is_on()'.
7396         (troff_output_file): New method `start_special(tfont)'.
7397         (troff_output_file::really_print_line): Use `tprint' conditionally.
7398         (real_output_file::print_line): Updated.
7399         (real_output_file::on): Updated.
7400         (*_node): Added `force_tprint()'.
7401         (special_node::special_node): Initializer updated.
7402         (special_node::same, special_node::copy, special_node::tprint_start):
7403         Updated.
7404         (get_reg_int, get_reg_str): New functions.
7405         (suppress_node::*): New methods.
7406         New global variables last_position, last_image_filename;
7407         (min): New inline function.
7408         * src/roff/troff/reg.h, src/roff/troff/request.h,
7409         src/roff/troff/troff.h: Updated.
7411 2001-01-13  Werner LEMBERG  <wl@gnu.org>
7413         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
7414         documentation of `asciify' request.
7416 2001-01-12  Werner LEMBERG  <wl@gnu.org>
7418         * src/roff/troff/input.cc: Move definition of special characters
7419         like `ESCAPE_TILDE' to ...
7420         * src/roff/troff/input.h: New file.
7421         * src/roff/troff/Makefile.sub (HDRS): Add it.
7423         Extending the .asciify request to `unformat' space characters also.
7425         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
7426         to count input space characters.
7427         Update constructors to take care of it.
7428         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
7429         `ESCAPE_SPACE' instead of normal space.
7430         (word_space_node::asciify): New method.
7431         (unbreakable_space_node::asciify): New method.
7432         (word_space_node::merge_space): New method.
7433         * src/roff/troff/env.cc (environment::space_newline,
7434         environment::space): Add code to initialize `num_spaces' (using the
7435         constructor of `word_space_node').
7436         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
7437         Document it.
7439 2001-01-09  Werner LEMBERG  <wl@gnu.org>
7441         * man/groff_char.man: Use table header traps only conditionally.
7443 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
7445         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
7447 2001-01-08  Werner LEMBERG  <wl@gnu.org>
7449         Introducing the `box' and `boxa' requests which are similar to
7450         `di' resp. `da' but omitting a partially filled line (which is
7451         restored after ending the diversion).
7453         * src/roff/troff/div.h (diversion): Add elements to save partially
7454         filled line.
7455         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
7456         partially filled line.
7457         (divert, divert_append): Updated.
7458         (box, box_append): New functions.
7459         (init_div_requests): Use them.
7460         * src/roff/troff/env.h (environment): do_divert() is now a friend.
7461         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7463         * doc/groff.texinfo: Fix documentation of `lf' request.
7465 2000-12-25  Werner LEMBERG  <wl@gnu.org>
7467         * src/roff/troff/troff.man, NEWS: Document `writem' request.
7469 2000-12-21  Werner LEMBERG  <wl@gnu.org>
7471         Ignore `ss' request if in compatibility mode.
7473         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
7474         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
7475         * src/roff/troff/env.cc (space_size): Use it.
7477         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
7478         `ss' request in nroff mode.
7480         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
7481         changes.
7483 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
7485         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
7487 2000-12-13  Werner LEMBERG  <wl@gnu.org>
7489         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
7490         * src/preproc/eqn/neqn.man: Small fixes and additions.
7492 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
7494         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
7495         Fixing typo.
7497         * src/preproc/eqn/neqn.man: New file.
7499         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
7500         negative' warning.
7502         * tmac/e.tmac: Add `T&' macro.
7503         Fix `indent cannot be negative' warning.
7504         * tmac/s.tmac: Fix `indent cannot be negative' warning.
7506 2000-12-07  Werner LEMBERG  <wl@gnu.org>
7508         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
7510 2000-12-06  Werner LEMBERG  <wl@gnu.org>
7512         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
7513         `alloca' symbol .
7515         * MORE.STUFF: Added info about deroff for djgpp.
7517         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
7518         documentation of -rcR switch.
7520 2000-12-03  Werner LEMBERG  <wl@gnu.org>
7522         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
7523         if -rcR=1 (which is now the default in nroff mode), a single, very
7524         long page is created instead of multiple pages: All `ne' and `wh'
7525         requests are put into conditionals; a new macro `an-end' is added to
7526         be called with `em'.
7528         Some other minor cleanups.
7530         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
7532 2000-12-02  Werner LEMBERG  <wl@gnu.org>
7534         Fixing a bug which prevented hyphenation in words followed
7535         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
7537         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
7538         Adding possibly_break_line().
7539         * src/roff/troff/env.h (environment): Make possibly_break_line()
7540         public.
7542         Make `\~' usable in .tr request.
7544         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
7545         (token): Add stretchable_space().
7546         * src/roff/troff/input.cc (token::next, token::delimiter,
7547         token::description, process_input_stack, do_translate,
7548         add_to_node_list, token::process): Use it.
7549         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
7550         for adjusting the space.
7551         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
7552         for stretchable space.
7553         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
7554         (make_node): Add code for stretchable space.
7555         * src/roff/troff/env.cc (environment::add_char): Use it.
7556         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
7557         (get_copy, token::next, transparent_translate, asciify): Use it.
7559         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
7560         doc/groff.texinfo: Updated.
7561         * man/groff.man: Small reorderings.
7563 2000-11-23  Werner LEMBERG  <wl@gnu.org>
7565         * NEWS: Fixes.
7566         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
7567         option.
7568         * src/roff/troff/input.cc (main): Add `config_macro_path' and
7569         `safer_macro_path' to -M option.
7570         * src/roff/troff/troff.man: Fixes.
7572 2000-11-22  Werner LEMBERG  <wl@gnu.org>
7574         Use safer path (except for config files) if -U isn't specified.  Add
7575         a special macro path (without home and current directory) for config
7576         files.  Add home directory to unsafe path for consistency.  Don't
7577         include the home directory in the font path.
7579         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
7580         `macro_path'.
7581         * src/include/macropath.h: Add `config_macrp_path'.
7582         * src/libs/libgroff/fontfile.cc: Fix font path.
7583         * src/roff/troff/input.cc (process_startup_file): Use
7584         `config_macro_path'.
7585         (main): Select unsafe path if -U is given.
7587         * src/preproc/eqn/main.cc (main): Fixing search path for
7588         configuration file.
7589         * src/preproc/eqn/eqn.man: Updated.
7591         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
7592         Updated.
7594         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
7595         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
7596         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
7597         src/devices/grotty/grotty.man: Updated.
7599         * Makefile.in: Fix comments.
7601 2000-11-17  Werner LEMBERG  <wl@gnu.org>
7603         * tmac/safer.tmac: Empty file added (again) for compatibility
7604         reasons.
7605         * tmac/Makefile.sub: Updated.
7607 2000-11-16  Werner LEMBERG  <wl@gnu.org>
7609         * src/devices/grodvi/dvi.cc (main),
7610         src/devices/grohtml2/post-html.cc (main),
7611         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
7612         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
7613         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
7614         (main), src/preproc/html2/pre-html.cc (main),
7615         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
7616         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
7617         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
7618         (main), src/utils/hpftodit/hpftodit.cc (main),
7619         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
7620         (main), src/utils/lookbib/lookbib.cc (main),
7621         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
7622         (main): Use stdout for -v.
7623         * src/roff/groff/groff.cc (run_commands),
7624         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
7625         to make direct printing to stdout possible.
7626         * src/roff/groff/pipeline.h: Updated.
7628         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
7629         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
7630         * src/utils/afmtodit/afmtodit.man: Updated.
7632         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
7633         (version): New function.
7634         (usage): Updated.
7635         * src/utils/addftinfo/addftinfo.man: Updated.
7637         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
7638         Fixing copyright dates.
7640         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
7641         replacing it.
7643         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
7644         version_string.
7646         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
7648 2000-11-15  Werner LEMBERG  <wl@gnu.org>
7650         In all programs, make -v return immediately with exit status 0 to
7651         be compliant with the GNU standard.
7653         * src/devices/grodvi/dvi.cc (main),
7654         src/devices/grohtml2/post-html.cc (main),
7655         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
7656         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
7657         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
7658         (main), src/preproc/html2/pre-html.cc (main),
7659         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
7660         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
7661         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
7662         (main): Implement it.
7663         * NEWS: Updated.
7665         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
7666         and postprocessors to the -v option.
7668         * src/roff/grog/grog.pl: Implement -v.
7669         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
7670         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
7672         * src/roff/nroff/nroff.sh: Implement -v.
7673         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
7674         * src/roff/nroff/nroff.man: Updated.
7675         
7676         * src/preproc/eqn/main.cc (main): Fix comment typo.
7678         * MORE.STUFF: Added info about djgpp port of grap.
7680 2000-11-14  Werner LEMBERG  <wl@gnu.org>
7682         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
7683         mode (or rather, implemented non-compatibility mode).
7684         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
7686         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
7687         replacing it -- we don't find gxditview otherwise.
7688         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
7690         * src/preproc/pic/depend: Removed.  Unnecessary.
7692         Implemented dummy keyword `solid' in pic for compatibility with
7693         AT&T pic.
7695         * lex.cc (lookup_keyword): Added `solid'.
7696         * pic.y: Added SOLID with dummy rule.
7697         * pic.cc, pic_tab.h: Regenerated.
7698         * doc/pic.ms: Updated.
7700 2000-11-13  Werner LEMBERG  <wl@gnu.org>
7702         For security reasons, don't use the current directory but the home
7703         directory while searching and scanning troffrc and troffrc-end.
7704         Similarly, replace the current directory with the home directory
7705         in the font path.
7707         * Makefile.in (fontpath, tmacpath): Remove current directory.
7709         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
7710         two parameters `add_home' and `add_current'.
7711         (search_path::~search_path, search_path::command_line_dir,
7712         search_path::open_file): Remove tests for `dirs' being zero.
7713         * src/include/searchpath.h: Adjust.
7714         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
7715         `safer_macro_path'.
7716         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
7718         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
7719         * src/roff/troff/input.cc: Use `mac_path', initialized with
7720         `macro_path'.
7721         (process_startup_file): Set `mac_path' to `safer_macro_path'.
7722         * src/roff/troff/env.cc: Use `mac_path'.
7724         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
7726         * NEWS, man/roff.man, src/roff/troff/troff.man,
7727         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
7728         Updated.
7730 2000-11-12  Werner LEMBERG  <wl@gnu.org>
7732         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
7734         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
7735         * configure.in: Fix typo in comment.
7736         * configure: Regenerated.
7738         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
7739         copyright dates.
7741 2000-11-08  Werner LEMBERG  <wl@gnu.org>
7743         Add system tmac directory (/usr/local/lib/groff/site-tmac).
7745         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
7746         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
7747         $(systemtmacdir).
7748         Use @libdir@.
7749         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
7750         * tmac/Makefile.sub (install_data): Create
7751         $(systemtmacdir) and $(localtmacdir).
7752         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
7753         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
7754         NEWS, doc/groff.texinfo: Updated and minor fixes.
7756         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
7757         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
7758         $(systemtmacdir) since the wrapper files are platform-dependent.
7760 2000-11-01  Werner LEMBERG  <wl@gnu.org>
7762         * doc/groff.texinfo: Fix typo.
7764 2000-10-26  Werner LEMBERG  <wl@gnu.org>
7766         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
7767           tmac.doc.old -> doc-old.tmac
7768           tmac.an.old  -> an-old.tmac
7770         * tmac/tmac.*: Moved to ...
7771         * tmac/*.tmac: this.
7772         * tmac/man.local: Fix comment.
7773         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
7774         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
7775         Added some `FILES' sections.  More use of @...@ directives.  Other
7776         minor updates.
7777         * arch/djgpp/README, font/devutf8/NOTES: Updated.
7778         * doc/homepage.ms, doc/groff.texinfo: Updated.
7779         * man/groff.man, man/roff.man: Updated.
7780         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
7781         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
7782         src/devices/grotty/grotty.man: Updated.
7783         * src/preproc/pic/pic.man: Updated.
7784         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
7785         instead of -mdoc.old.
7786         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
7787         * src/roff/nroff/nroff.man: Updated.
7788         * NEWS: Updated.
7790         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
7792         * tmac/mm.diff: Removed -- it has no use now since the mm package
7793         is part of groff.
7795         * tmac/*: Removed trailing spaces.
7797         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
7798         the tmac subdirectory also).
7800         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
7801         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
7802         stuff since it is no longer needed.
7804         * README, PROBLEMS: Updated.
7806 2000-10-25  Werner LEMBERG  <wl@gnu.org>
7808         Invert current behaviour: Search first FOOBAR.tmac, then
7809         tmac.FOOBAR.
7811         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
7812         (open_mac_file, macro_source): Implement it.
7813         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
7814         doc/groff.texinfo, NEWS: Document it.
7816         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
7817         Small documentation improvements.
7819         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
7820         subdirectory also).
7822         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
7824 2000-10-24  Werner LEMBERG  <wl@gnu.org>
7826         Add local tmac directory (groff/site-tmac).
7828         * Makefile.in: Add $(localtmacdir).
7829         (uninstall_dirs): Add $(localtmacdir).
7830         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
7831         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
7832         in $(localtmacdir).  Create $(localtmacdir).
7833         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
7834         Updated and minor fixes.
7836         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
7838         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
7840 2000-10-23  Werner LEMBERG  <wl@gnu.org>
7842         Move hyphen.us to tmac directory.
7844         * src/roff/troff/hyphen.us: Removed.
7845         * src/tmac/hyphen.us: Added.
7846         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
7848         Change installation structure for data files from .../groff/... to
7849         .../groff/<version><revision>/... to be conform with other GNU
7850         programs.
7852         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
7853         doc/Makefile: Implement it.
7854         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
7855         * configure: Updated.
7856         * arch/djgpp/README, font/devutf8/NOTES: Use it.
7857         * NEWS: Document it.
7858         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
7859         @MACRODIR@ instead of hard-coded directories.
7861 2000-10-22  Werner LEMBERG  <wl@gnu.org>
7863         Implement $GROFF_BIN_PATH environment variable (which defaults to
7864         $bindir) used for child programs of groff and similar wrappers.
7866         * gendefs.sh: Improve documentation.
7867         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
7868         src/preproc/eqn/Makefile.sub (neqn),
7869         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
7870         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
7871         $GROFF_BIN_PATH.
7872         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
7873         $GROFF_PATH__ (the latter for communication with troff).
7874         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
7875         set.
7876         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
7877         doc/groff.texinfo: Document it.
7879         * doc/groff.texinfo: Improve documentation of troff's -a option.
7881 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
7883         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
7884         non-intrusive eol marker.
7885         (troff_output_file::determine_line_limits): New function.
7886         (troff_output_file::draw): Use it.
7887         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
7888         output_pending_lines() instead of output_line().
7889         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
7890         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
7891         createImage): Small fixes.
7892         
7893 2000-10-14  Werner LEMBERG  <wl@gnu.org>
7895         Replace tmac.safer with a real secure solution.
7897         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
7898         system_request, pipe_output): Disable requests if in safer mode.
7899         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
7900         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
7901         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
7902         doc/groff.texinfo, src/roff/groff/groff.man,
7903         src/roff/troff/troff.man, arch/djgpp/README: Updated.
7905         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
7906         (resource_manager::output_prolog): Replace setenv() with putenv().
7908 2000-10-09  Werner LEMBERG  <wl@gnu.org>
7910         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
7911         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
7912         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
7913         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
7914         compilation errors with some compilers.  It seems that this code
7915         is no longer necessary -- if yes, it is easy to add some #ifdef's
7916         for that particular old-fashioned compiler.
7918         * MORE.STUFF: Added info about Meta-tbl.
7920         * doc/groff.texinfo: Added more info about `.if "..."..."'.
7922 2000-10-07  Werner LEMBERG  <wl@gnu.org>
7924         Adding a new escape sequence \B'...': If the string between
7925         the delimiters is a valid numeric expression, return the character
7926         `1', and `0' otherwise.  This is an analogon to \A.
7928         * src/roff/troff/input.cc (do_expr_test): Implement it.
7929         (token::next): Use it.
7930         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
7932         * tmac/tmac.trace: Made independent from escape character.
7934 2000-10-06  Werner LEMBERG  <wl@gnu.org>
7936         Adding a new request .dei: define indirect.  The first and second
7937         parameter of .dei are taken from string registers instead directly;
7938         this very special request is needed to make tmac.trace independent
7939         from the escape character (which might even be disabled).
7941         * src/roff/troff/input.cc (do_define_macro): Implement it.
7942         (define_macro_indirect): New function.
7943         (init_input_requests): Use it.
7945         Adding two requests .ecs and .ecr: Save and restore the escape
7946         character.  These two requests are needed to make tmac.trace
7947         independent from the escape character (which might even be
7948         disabled).
7950         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
7951         Implement it.
7952         (init_input_requests): Use it.
7954         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
7956 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
7958         Adding a new option -P and new environment variable GROPS_PROLOGUE
7959         to grops, selecting a different prologue file (minor modifications
7960         by WL).
7962         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
7963         src/devices/grops/ps.cc (main): Implement it.
7964         * src/devices/grops/grops.man, NEWS: Document it.
7966 2000-09-22  Werner LEMBERG  <wl@gnu.org>
7968         * INSTALL: Add info about selecting paper format.
7970 2000-09-21  Werner LEMBERG  <wl@gnu.org>
7972         * src/roff/troff/input.cc (main): Fixing compiler warning.
7973         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
7974         strings.h from the former to the latter.
7975         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
7976         stuff from the former to the latter.
7978 2000-09-11  Werner LEMBERG  <wl@gnu.org>
7980         Implementing two new requests .tm1 and .tmc: The former is similar
7981         to .tm but can output leading spaces; its syntax is similar to
7982         defining a string, i.e., a `"' can be used to mark the beginning of
7983         the string to be written to stderr: `.tm1 " test'.  The latter is
7984         similar to .tm1 but doesn't write out a final newline character.
7986         * src/roff/troff/input.cc (terminal1, terminal_continue,
7987         do_terminal): New functions.
7988         (init_input_requests): Use them.
7989         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
7991 2000-09-09  Werner LEMBERG  <wl@gnu.org>
7993         * tmac/groff_mdoc.samples.man: Small fixes.
7995 2000-09-08  Werner LEMBERG  <wl@gnu.org>
7997         * tmac/groff_mdoc.man: Fixing typo.
7999 2000-09-02  Werner LEMBERG  <wl@gnu.org>
8001         Implementing a .nop request which does nothing.
8003         * src/roff/troff/input.cc (nop_request): New function.
8004         (init_input_requests): Use it.
8005         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
8007 2000-09-01  Werner LEMBERG  <wl@gnu.org>
8009         * doc/groff.texinfo: Added some comments.
8011 2000-08-30  Werner LEMBERG  <wl@gnu.org>
8013         * src/roff/troff/TODO: Updated.
8015 2000-08-25  Werner LEMBERG  <wl@gnu.org>
8017         * doc/groff.texinfo: Fix comment how to compile the DVI file.
8019 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
8021         * font/devps/generate/Makefile (SHELL): Define explicitly to
8022         "/bin/sh", for non-Unix platforms.
8023         (extraclean): Use a more portable "" quoting instead of a
8024         backslash (which doesn't work on DOS/Windows).
8025         
8026         * font/devlj4/generate/Makefile (extraclean): Ditto.
8028         * font/devdvi/generate/Makefile (extraclean): Ditto.
8030 2000-08-25  Werner LEMBERG  <wl@gnu.org>
8032         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
8033         src/roff/troff/troff.man: Document Eli's latest changes.
8035 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
8037         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
8038         macro file names of the form NAME.tmac as well as tmac.NAME.
8040 2000-08-25  Werner LEMBERG  <wl@gnu.org>
8042         * src/include/posix.h: Remove definition of FILENAME_MAX.
8044         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
8045         `sys_fatal' and `stop' function().
8047         * test-groff: Updated.
8049 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
8051         Added the new troff command .output <arg> to suppress output (while
8052         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
8053         registers (for passing the output dimensions to the output device).
8055         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
8056         parameter.
8057         * src/roff/troff/node.h, src/roff/troff/node.cc
8058         (troff_output_file::really_print_line,
8059         ascii_output_file::really_print_line,
8060         supress_output_file::really_print_line): Use `width' parameter.
8061         (troff_output_file::really_on, troff_output_file::really_off,
8062         output_file::on, output_file::off, real_output_file::on,
8063         real_output_file::off, real_output_file::really_on,
8064         real_output_file::really_off): New functions.
8065         (real_output_file:public output_file): New variable `output_on'.
8066         (real_output_file::begin_page, real_output_file::copy_file,
8067         real_output_file::transparent_char, real_output_file::print_line):
8068         Use it.
8069         (real_output_file::print_line): Use check_output_limits.
8070         * src/roff/troff/reg.h, src/roff/troff/request.h,
8071         src/roff/troff/input.cc (assign_registers): New function to remove
8072         two `goto's.
8073         (do_ps_file): Use it.
8074         (check_output_limits, reset_output_registers, output_request,
8075         init_output_requests): New functions.
8076         (init_input_requests): Updated.
8078         Added new grohtml2 device and html2 preprocessor (coding
8079         not yet finished) which will eventually replace grohtml.
8081         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
8082         Updated.
8083         * src/include/htmlindicate.h, src/include/htmlindicate
8084         (html_begin_suppress, html_end_suppress): New functions.
8085         * src/preproc/tbl/main.cc: Use it.
8086         * src/roff/groff/groff.cc: Add support for html2 device (which will
8087         automatically invoke the html2 preprocessor).
8088         * src/roff/troff/input.cc (is_html2): New variable.
8089         * src/roff/troff/troff.h, src/roff/troff/env.h,
8090         src/roff/troff/env.cc (environment::add_html_tag): New function
8091         (uses `is_html2').
8092         (environment::do_break): Use it.
8093         * font/devhtml2/*: New files.
8094         * src/devices/grohtml2: New device.
8095         * src/preproc/html2: New preprocessor.
8096         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
8098 2000-08-23  Werner LEMBERG  <wl@gnu.org>
8100         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
8102 2000-08-22  Werner LEMBERG  <wl@gnu.org>
8104         * src/include/lib.h: Provide a fix for IRIX to not include
8105         groff-getopt.h.
8107 2000-08-18  Werner LEMBERG  <wl@gnu.org>
8109         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
8110         since some non-GNU sed programs can't handle null regexps.
8111         * configure, src/preproc/eqn/Makefile.sub,
8112         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
8114         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
8115         bug (string.h and strings.h are both needed according to latest
8116         POSIX standard).
8118         * MORE.STUFF: Added info about unroff and troffcvt.
8120 2000-08-08  Werner LEMBERG  <wl@gnu.org>
8122         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
8123         used before -ms.
8125         * tmac/tmac.man.old: Remove unused number register.
8127         * tmac.doc: Minor documentation fix.
8129 2000-08-07  Paul Eggert  <eggert@twinsun.com>
8131         * src/roff/groff/pipeline.c (is_system_shell):
8132         Fix typo: "monocased_shell" no longer exists.
8134 2000-08-07  Paul Eggert  <eggert@twinsun.com>
8136         Remove FILENAME_MAX limits.
8138         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
8139         that the argument length is less than FILENAME_MAX.
8140         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
8141         Use struct hack to allocate and free file name.
8142         (struct xtmpfile_list): fname is now part of the structure,
8143         not a pointer to another string.
8145 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
8147         * src/include/posix.h: Add a default value for FILENAME_MAX.
8149 2000-08-06  Paul Eggert  <eggert@twinsun.com>
8151         Add support for new BSD-style man pages (with ".Dd" instead of
8152         ".TH"), so that "groff -man" understands both styles, even
8153         when running "groff -man" on a host whose system man page
8154         macros don't support ".Dd".
8156         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
8157         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
8158         in case the system man macros don't define Dd or TH.
8160         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
8161         * tmac/tmac.an: New one-line file.
8162         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
8164 2000-08-06  Werner LEMBERG  <wl@gnu.org>
8166         * src/roff/troff/troff.man: Fixing typos.
8168 Version 1.16.1 released
8169 =======================
8171 2000-07-31  Werner LEMBERG  <wl@gnu.org>
8173         Preparing release 1.16.1.
8175         * REVISION: Revision number set to 1.
8176         * MORE.STUFF: Added info about port to DOS.
8177         * NEWS, win32-diffs: Updated.
8179         * src/include/nonposix.h: Remove first line -- this file is used
8180         in C also.
8182         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
8183         link to it.
8185 2000-07-30  Werner LEMBERG  <wl@gnu.org>
8187         * doc/texinfo.tex: Update to latest version.
8189 2000-06-28  Paul Eggert  <eggert@twinsun.com>
8191         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
8192         commands that fail.  Don't assume that "export a=b" is valid shell
8193         syntax.  This is needed for Solaris 2.5.1.
8195         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
8196         comment about missing Solaris headers.
8198         * PROBLEMS: Add section about problems with Sun Make and VPATH.
8200 2000-06-25  Werner LEMBERG  <wl@gnu.org>
8202         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
8203         SET_BINARY().
8205         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
8207         * win32-diffs: Updated.
8208         * README.WIN32: Added CRs to make all Windows editors happy.
8210         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
8211         src/roff/groff/pipeline.c).
8213 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
8215         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
8216         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
8218 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
8220         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
8221         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
8222         are binary files.
8223         (main): Support non-Posix systems with several different styles of
8224         slash characters in file names.
8226         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
8227         (main) [SET_BINARY]: Switch stdin into binary mode.
8229         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
8230         (main): Support file names with several possible slash-type
8231         characters, as given by DIR_SEPS[] in nonposix.h.
8232         (main) [__MSDOS__]: If renaming the temporary index file fails
8233         because it has more than one dot in its trunk, replace the dot
8234         with an underscore and try again.
8235         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
8236         Newline.
8237         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
8239         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
8240         (File::File): Open the input file in binary mode.  Strip CR
8241         characters from each CR-LF pair.
8242         (xbasename): Support file names with several possible slash-type
8243         characters, as given by DIR_SEPS[] in nonposix.h.
8245         * src/include/Makefile.sub (HDRS): Add nonposix.h.
8247         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
8248         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
8249         [!_POSIX_VERSION]: Define for traditional Unix systems.
8250         (real_output_file::real_output_file): Remove the MSVC-specific
8251         call to popen, use instead POPEN_WT, appropriately defined on
8252         nonposix.h.  #include nonposix.h.
8253         (real_output_file::~real_output_file): Remove the MSVC-specific
8254         call to pclose, a suitable macro is now defined on nonposix.h.
8255         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
8256         and WEXITSTATUS instead of assuming traditional Unix
8257         interpretation of the status returned by pclose.
8259         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
8260         call to popen, use POPEN_RT instead (appropriately defined on
8261         nonposix.h).  #include nonposix.h.
8262         (ps_bbox_request): Open the PostScript file in binary mode.
8263         Close the file after processing it.
8264         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
8265         nonposix.h.
8267         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
8268         A version of run_pipeline that doesn't use `fork'.
8269         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
8270         (system_shell_name, system_shell_dash_c)
8271         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
8272         the ugliness of testing DOS/Windows file names for equality, and
8273         support both stock shells and ports of Unix shells.
8275         * src/roff/groff/groff.cc: #include nonposix.h.
8276         (BSHELL): Definition moved to nonposix.h.
8277         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
8278         instead of a literal "-c".
8279         (xbasename): Support file names with several possible slash-type
8280         characters, as given by DIR_SEPS[] in nonposix.h.
8281         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
8282         of literal strings.
8284         * src/preproc/soelim/soelim.cc: #include nonposix.h.
8285         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
8287         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
8288         pic_tab.h.
8290         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
8292         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
8293         eqn_tab.h.
8295         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
8297         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
8298         P_tmpdir is defined, use it instead of the literal "/tmp".
8299         (remove_tmp_files, add_tmp_file): New functions.
8300         (xtmpfile): Record temporary files and register an atexit function
8301         to delete them explicitly, instead of relying on the OS to do
8302         that, which doesn't work on non-Unix systems.
8304         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
8305         (search_path::search_path): Use PATH_SEP instead of a literal
8306         colon.
8307         (search_path::command_line_dir): Ditto.
8308         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
8309         to support non-Posix systems.
8311         * src/libs/libbib/search.cc: #include nonposix.h.
8312         (search_list::add_file): Open the file in binary mode.
8314         * src/libs/libbib/linear.cc: #include nonposix.h.
8315         (file_buffer::load): Remove \r characters preceding \n from the
8316         loaded buffer.
8318         * src/libs/libbib/index.cc: #include nonposix.h.
8319         (make_index_search_item): Open index_filename in O_BINARY mode.
8320         (index_search_item_iterator::get_tag): Ditto.  Remove \r
8321         characters before \n characters.
8322         (index_search_item::check_files): Open files in binary mode.
8323         (index_search_item::munge_filename): Support DOS-style file names
8324         with backslashes and drive letters, use IS_ABSOLUTE.
8326         * src/devices/grops/ps.cc: #include nonposix.h.
8327         (main) [SET_BINARY]: Switch stdout to binary mode.
8329         * src/devices/grolj4/lj4.cc: #include nonposix.h.
8330         (main) [SET_BINARY]: Switch stdout to binary mode.
8332         * src/devices/grolbp/lbp.cc: #include nonposix.h
8333         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
8335         * src/devices/grodvi/dvi.cc: #include nonposix.h.
8336         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
8337         nonposix.h).
8338         (main) [SET_BINARY]: Switch stdout to binary mode.
8339         [_MSC_VER]: Remove an explicit call to _setmode.
8341         * src/include/nonposix.h: New file.
8343         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
8344         operation when building with DJGPP.
8345         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
8346         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
8347         ENVSETUP.
8349         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
8350         MS-DOS.
8351         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
8352         etc. can include a semi-colon on DOS/Windows.
8353         (depend.temp): Use depend1.temp instead of depend.temp1, to
8354         prevent files from overerwiting each other on 8+3 filesystems.
8356         * gendef.sh (t): Change definition to work with DOS/Windows.
8358         doc/groff.texinfo: Apart of some typo corrections, I also changed
8359         some index entris, to make them more non-ambiguous, and also put
8360         @ignore around some parts that are not yet written, to allow the
8361         Info output be readable.
8363 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
8365         Replaced specific checks for function declarations with a generic
8366         routine taken from GNU bfd.
8368         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
8369         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
8370         * configure.in: Use it.
8371         * src/devices/grolbp/lbp.cc, src/include/lib.h,
8372         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
8373         src/roff/groff/groff.cc: Use it.
8374         * Makefile.in, configure: Updated.
8376 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
8378         * src/devides/grolbp/lbp.h: Removed unused variables.
8380 2000-05-31  Keith Thompson  <kst@sdsc.edu>
8382         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
8383         strncasecmp().
8385 2000-05-31  Werner LEMBERG  <wl@gnu.org>
8387         * aclocal.m4 (GROFF_SRAND): New function to test the return value
8388         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
8389         * configure.in: Use it.
8390         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
8391         * configure, Makefile.in: Updated.
8393         * configure.in: Add test for strncasecmp().
8394         * src/include/lib.h: Use it.
8396 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
8398         * src/preproc/grn/Makefile.sub: Add MLIB.
8400 2000-05-29  Nix  <nix@esperi.demon.co.uk>
8402         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
8404 2000-05-29  Werner LEMBERG  <wl@gnu.org>
8406         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
8408         * PROBLEMS: Small update.
8410         * src/devices/grolbp/lbp.cc: Various small fixes.
8412 2000-05-28  Keith Thompson  <kst@sdsc.edu>
8414         * src/roff/nroff/nroff.sh: Fix main loop syntax.
8416         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
8418 2000-05-25  Werner LEMBERG  <wl@gnu.org>
8420         * man/roff.man: Removed unused macro.
8422 2000-05-24  Werner LEMBERG  <wl@gnu.org>
8424         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
8425         This is needed e.g. if you do
8426         `make distclean; ./configure; make dist'.
8428 Version 1.16 released
8429 =====================
8431 2000-05-23  Werner LEMBERG  <wl@gnu.org>
8433         Adding font CWI (constant width italic) to devdvi.
8435         * font/devdvi/CWI: New file.
8436         * font/devdvi/generate/Makefile: Add generating rule.
8437         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
8438         tmac/tmac.dvi: Use it.
8439         * NEWS: Announce it.
8441         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
8442         * font/devlj4/generate/Makefile: Cosmetic changes only.
8444         * man/groff.man: Removed most of the redundant description of
8445         special characters (which is in groff_char.man).  Added font
8446         translation CB->CR for devdvi.  Other minor fixes.
8448         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
8449         (registered) symbols.
8451 2000-05-22  Werner LEMBERG  <wl@gnu.org>
8453         * doc/Makefile: Added rule for creating info files.
8455         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
8456         AMS font metrics.
8457         * font/devdvi/generate/Makefile: Fixed dependencies.
8459         * font/devps/*: Regenerated.  Heavy changes for Bookman and
8460         NewCentury Schoolbook!
8461         * font/devps/generate/afmname: Will now run with GNU awk.
8462         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
8463         * font/devps/generate/Makefile: Cosmetic changes only.
8465 2000-05-21  Werner LEMBERG  <wl@gnu.org>
8467         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
8468         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
8469         `.SS' now produces a heading with a smaller size than `.SH'. 
8470         Completely formatted.
8471         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
8473         * man/groff.man: Improved table appearance.  Use of `eo' request
8474         to reduce number of doubled backslashes in macro definitions.
8475         Replacing `\e' with `\(rs'.  Other minor fixes.
8477         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
8478         to have correct line number.
8480         * INSTALL: Small improvement.
8482 2000-05-20  Bernd Warken  <bwarken@mayn.de>
8484         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
8485         WL).
8487 2000-05-19  Bernd Warken  <bwarken@mayn.de>
8489         * man/groff.man: Complete update (with a lot of corrections by WL).
8491 2000-05-18  Werner LEMBERG  <wl@gnu.org>
8493         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
8495         * font/*/*: Implement it.
8496         * man/groff_char.man, NEWS: Document it.
8498         * src/include/unix.h: Removed.  It isn't used.
8500         * doc/groff.texinfo: Slight improvements.
8502 2000-05-17  Werner LEMBERG  <wl@gnu.org>
8504         * README, win32-diffs: Small fixes and improvements.
8506 2000-05-16  Werner LEMBERG  <wl@gnu.org>
8508         * FDL: New file (the Free Documentation License version 1.1).
8510         * doc/groff.texinfo: Added many start-up values for gtroff.
8511         Some structural improvements of the source code.
8513 2000-05-15  Werner LEMBERG  <wl@gnu.org>
8515         * src/roff/troff/input.cc: Added small comment about troffrc-end.
8516         * src/roff/troff/troff.man: Added info about troffrc-end.
8518 2000-05-14  Werner LEMBERG  <wl@gnu.org>
8520         * Makefile.in (EXTRADIRS): Fix typos.
8521         (dist): Handle deletion of old .tar.gz file correctly.
8522         (DISTDIRS): Include all tty output devices.
8524         * doc/groff.texinfo: Adding more cross references; countless other
8525         fixes.
8527 2000-05-13  Werner LEMBERG  <wl@gnu.org>
8529         * MORE.STUFF: Added Robert Marks's utilities.
8531 2000-05-12  Werner LEMBERG  <wl@gnu.org>
8533         Added win32 port contributed by Blake McBride
8534         <blake@florida-software.com>.
8536         * README.WIN32, win32-diffs: New files.
8537         * NEWS: Updated.
8539         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
8540         (tmove, tmove2): Added parentheses to avoid compiler warnings.
8541         (change): Removed unused variables.
8543         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
8544         (savebounds): Changed return value from `int' to `void'.
8545         * src/preproc/grn/hdb.cc: Ditto.
8547         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
8548         final backslash in comment to avoid compiler warning.
8550         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
8552         * doc/groff.texinfo: More fixes.
8554 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
8556         * tmac/tmac.doc: Documentation fix.
8558 2000-05-11  Werner LEMBERG  <wl@gnu.org>
8560         * doc/groff.texinfo: Reading the source code shows up a lot of
8561         omissions and incorrect data...  More conversion to @Deffn macros.
8563 2000-05-10  Werner LEMBERG  <wl@gnu.org>
8565         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
8566         dependency.
8568         * src/roff/troff/request.h: Removing unused `no_break_flag'.
8570 2000-05-09  Werner LEMBERG  <wl@gnu.org>
8572         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
8573         improvements.
8575         * doc/groff.texinfo: Extended history section.  More conversion to
8576         @Deffn macros.  More .tr documentation.
8578 2000-05-07  Werner LEMBERG  <wl@gnu.org>
8580         * doc/groff.texinfo: Completed tab section.  Added info about
8581         fields.
8583 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
8585         * PROBLEMS: Describe configure script fix for OS/390 Unix.
8587 2000-05-05  Werner LEMBERG  <wl@gnu.org>
8589         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
8590         LaTeX 2e).
8591         * NEWS: Document it.
8593         * man/troff.man: Minor optical improvements.
8595 2000-05-03  Werner LEMBERG  <wl@gnu.org>
8597         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
8599         * font/*/*: Implement it.
8600         * man/groff_char.man, NEWS: Document it.
8602 2000-05-02  Werner LEMBERG  <wl@gnu.org>
8604         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
8605         expansion.
8606         * NEWS: Document the three new man pages.
8608         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
8609         * configure: Updated.
8611         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
8613 2000-05-01  Werner LEMBERG  <wl@gnu.org>
8615         Added grap support to grog.
8617         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
8618         * src/roff/grog/grog.man: Document it.
8620         * doc/groff.texinfo, NEWS: Add info about grap support.
8622         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
8623         (with slight fixes by me).
8625         * tmac/groff_tmac.man: New file documenting tmac mechanism.
8626         * tmac/Makefile.sub: Add groff_tmac.man.
8627         * man/roff.man: New file giving overview of roff system.
8628         * man/troff.man: A short reference of troff.
8629         * man/Makefile.sub: Add roff.man and troff.man.
8631 2000-04-30  Werner LEMBERG  <wl@gnu.org>
8633         Added grap support to groff.
8635         * src/roff/groff/groff.cc: Implement it.
8636         * src/roff/groff/groff.man: Document it.
8638         * src/devices/grotty/grotty.man: Add cp1047 device.
8639         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
8640         Ditto.
8641         * src/roff/groff/groff.man: Ditto.
8642         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
8643         * doc/groff.texinfo: Ditto.
8645         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
8646         for cp1047.
8648 2000-04-29  Werner LEMBERG  <wl@gnu.org>
8650         * man/groff_char.man: Add `pc' glyph.
8651         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
8652         * tmac/tmac.tty: Add `pc' glyph.
8653         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
8654         we use cp1047 output device.
8656         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
8657         there are still hardcoded latin1->unicode values in utf8's font
8658         definition files.
8659         * configure: Updated.
8660         * NEWS: Minor clarification.  Updated.
8662         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
8663         Unix.
8665 2000-04-28  Werner LEMBERG  <wl@gnu.org>
8667         Adding EBCDIC code page 1047.
8669         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
8670         font/devcp1047/DESC.proto: New files.
8672         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
8673         either ascii/latin1 or cp1047.
8674         * Makefile.in: Use it.
8675         * configure: Updated.
8677         Replacing and/or adding `md' (mathdot) glyph with `pc'
8678         (periodcentered) in all text fonts.
8680         * font/*/*: Change it.
8682 2000-04-27  Werner LEMBERG  <wl@gnu.org>
8684         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
8686         * configure.in: Add check for strings.h.
8687         * src/include/driver.h: Use HAVE_STRINGS_H.
8688         * src/devices/grolbp/lpb.cc: Remove string.h.
8690         * src/include/groff-getopt.h: New file.  It will be used instead of
8691         getopt.h (to be included in lib.h) to avoid endless problems with
8692         picky C++ compilers.
8693         * src/include/lib.h: Use groff-getopt.h.
8694         * src/include/Makefile.sub: Updated.
8696         * configure: Updated.
8697         * Makefile.in: Updated.
8699         * NEWS: Mention EBCDIC support.
8701 2000-04-26  Werner LEMBERG  <wl@gnu.org>
8703         * TODO: Some additions.
8705 2000-04-25  Werner LEMBERG  <wl@gnu.org>
8707         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
8708         of mso request.
8710 2000-04-23  Werner LEMBERG  <wl@gnu.org>
8712         * src/roff/troff/troff.man: Minor fixes.
8714 2000-04-22  Werner LEMBERG  <wl@gnu.org>
8716         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
8717         `.T' string register and the incompatible definition of the `.T'
8718         number register (compared to Unix troff).
8720         * man/groff_char.man: Add some missing characters.
8721         * font/devutf8/NOTES: Update.
8723 2000-04-21  Werner LEMBERG  <wl@gnu.org>
8725         * src/include/htmlindicate.h, src/include/lib.h,
8726         src/include/posix.h: Fix copyright.
8728         * src/include/Makefile.sub: Update.
8730 2000-04-20  Werner LEMBERG  <wl@gnu.org>
8732         * src/roff/troff/input.cc (input_char_description): Removing
8733         superfluous space char.
8735         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
8737         * doc/groff.texinfo: Document EBCDIC.
8739 2000-04-19  Werner LEMBERG  <wl@gnu.org>
8741         Introducing `shc' as the glyph name for the soft hyphen character.
8743         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
8744         font/devlatin1/R.proto: Use it.
8746         * NEWS: Updated.
8748 2000-04-18  Werner LEMBERG  <wl@gnu.org>
8750         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
8751         dependency on ASCII order.
8753 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
8755         * src/libs/libgroff/illegal.c: Added EBCDIC table.
8756         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
8758         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
8759         to increase portability.
8761 2000-04-15  Werner LEMBERG  <wl@gnu.org>
8763         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
8764         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
8765         the generic `\n' if under OS/390 Unix.
8767         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
8769         * configure: Regenerated.
8771 2000-04-14  Werner LEMBERG  <wl@gnu.org>
8773         * doc/groff.texinfo: More conversions to @Deffn.
8775 2000-04-12  Werner LEMBERG  <wl@gnu.org>
8777         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
8778         with `:'.
8780         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
8782 2000-04-10  Werner LEMBERG  <wl@gnu.org>
8784         * doc/groff.texinfo: More conversions to @Deffn.
8786 2000-04-08  Werner LEMBERG  <wl@gnu.org>
8788         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
8789         Updated to latest version (glibc 2.1.3).
8791 2000-04-07  Werner LEMBERG  <wl@gnu.org>
8793         * doc/Makefile (clean): Include more index files.
8794         Add rule texinfo->dvi.
8796 2000-04-05  Werner LEMBERG  <wl@gnu.org>
8798         * doc/groff.texinfo: Added new index `op' for operators.  More
8799         info on end of sentence characters.  More use of @Deffn.
8801 2000-03-30  Werner LEMBERG  <wl@gnu.org>
8803         * */*.man: Adding a note that a whitespace can be inserted between
8804         a command line option and its parameter -- we are using GNU getopt.
8806         * src/roff/groff/groff.man: Add example of `-m mandoc'.
8808 2000-03-28  Werner LEMBERG  <wl@gnu.org>
8810         Correct anachronism of calling the man macro file with `-man'
8811         instead of `-m man' etc.
8813         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
8814         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
8815         load tmac.<package>.
8817         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
8819         * NEWS: Updated.
8821         * doc/groff.texinfo: Updated.
8823         * tmac/groff_man.man: Copyright added.
8825 2000-03-27  Werner LEMBERG  <wl@gnu.org>
8827         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
8828         typeset the request resp. escape name with a tt font -- due to a
8829         bug in texinfo.tex it is necessary to use the `-e' switch with
8830         texi2dvi.
8832         Improving info about usage of groff units.
8834         Other minor fixes.
8836 2000-03-20  Werner LEMBERG  <wl@gnu.org>
8838         * doc/groff.texinfo: Added section about man macro package
8839         (I've basically taken groff_man.man).  Introducing new indices `ma'
8840         for macros/strings and `gl' for glyph names.  Other minor fixes.
8842         * tmac/groff_man.man: Fixed some typos.
8844 2000-03-19  Werner LEMBERG  <wl@gnu.org>
8846         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
8847         Other minor fixes.
8849         * doc/texinfo.tex: New file.
8851 2000-03-18  Werner LEMBERG  <wl@gnu.org>
8853         * doc/groff.texinfo: Improved section on number registers.  Other
8854         minor updates.
8856 2000-03-16  Werner LEMBERG  <wl@gnu.org>
8858         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
8859         synopsis.
8861         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
8862         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
8863         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
8864         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
8866         * src/preproc/grn/grn.man: Better synopsis; added copyright.
8868         * src/roff/grog/grog.man: Updated copyright date.
8870 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
8872         * configure.in: Added test for strdup.
8874         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
8875         is available.
8877         Replaced dynamic allocation of arrays `[...]' with `new' operator.
8879         Other minor fixes.
8881 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
8883         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
8885 2000-03-11  Werner LEMBERG  <wl@gnu.org>
8887         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
8888         compilers silent.
8889         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
8890         * src/include/lib.h: Remove some spaces.
8892 2000-03-10  Werner LEMBERG  <wl@gnu.org>
8894         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
8895         initializers from arguments (some compilers don't like this).
8897 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
8899         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
8900         used by pic and eqn to tell grohtml where the graphic regions start
8901         and end.
8902         * src/libs/libgroff/Makefile.sub: Use it.
8903         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
8904         graphic_start() and graphic_end() from htmlindicate.cc.
8906 2000-03-09  Werner LEMBERG  <wl@gnu.org>
8908         * tmac/tmac.safer: Will now work correctly in compatibility mode.
8909         * tmac/groff_man.man: More fixes.
8911 2000-03-08  Werner LEMBERG  <wl@gnu.org>
8913         * doc/Makefile: Added texput.log to the `clean' target.
8914         * doc/groff.texinfo: Added info about delimiters for escapes.
8916 2000-03-08  Bernd Warken  <bwarken@mayn.de>
8918         * src/preproc/pic/pic.man: Add info on conversion of pic images to
8919         other graphic formats.
8921 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
8923         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
8924         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
8925         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
8926         files.
8928 2000-03-07  Werner LEMBERG  <wl@gnu.org>
8930         * doc/groff.texinfo: Spelling fixes.
8932 2000-03-06  Werner LEMBERG  <wl@gnu.org>
8934         * tmac/groff_man.man: Completely revised to cover everything in
8935         tmac.an.
8937         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
8938         Other minor fixings.
8939         * src/roff/troff/env.cc (environment_copy): Improve error message and
8940         fix itoa->i_to_a.
8941         * src/roff/troff/TODO: Updated.
8943         * doc/Makefile: Bug fixes -- this is still provisional, though...
8945         * tmac/eqnrc: Small fixes.
8947 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
8949         Adding a request `evc' to copy environments.
8951         * src/roff/troff/env.cc (environment::copy, environment_copy):
8952         Implement it.
8953         * src/roff/troff/env.h: Add prototype.
8955 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
8957         Adding strsep() -- Solaris 8 doesn't have it.
8959         * configure.in: Test it.
8960         * src/devices/grolbp/lbp.cc: Add code.
8962 2000-03-05  Werner LEMBERG  <wl@gnu.org>
8964         * src/roff/troff/div.cc (macro_diversion::output,
8965         top_level_diversion::output): Fixing an incompatibility with
8966         original troff: \x'0' updates the .a register also.  Thanks to
8967         <Andries.Brouwer@cwi.nl> for pointing this out.
8968         * doc/groff.texinfo: Document it.
8970         * Makefile.in: Create Makefile.dep if necessary before calling the
8971         submake process to avoid warning about nonexistent file.
8973         * NEWS, PROJECTS: Updated.
8975 2000-03-04  Werner LEMBERG  <wl@gnu.org>
8977         * tmac/troffrc: Add tmac.lbp.
8979 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
8981         * tmac/tmac.lbp: New file.
8982         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
8983         command.
8985 2000-03-03  Werner LEMBERG  <wl@gnu.org>
8987         * Makefile.in: Fixing $(subdir).
8989         * README, NEWS: Small fixes.
8991         * test-groff: Adding path to grolbp.
8993         * configure.in: The (new) file src/xditview/Imakefile.in will be
8994         also configured -- it is now possible to build gxditview in a
8995         directory different from $srcdir.
8997 2000-03-02  Blake McBride  <blake@florida-software.com>
8999         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
9001         * MORE.STUFF: Added website of bell labs and info about plot2dev.
9003 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
9005         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
9006         files.
9008 2000-02-29  Werner LEMBERG  <wl@gnu.org>
9010         Adding GNU getopt to the groff distribution.
9012         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
9013         New files.
9014         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
9015         * aclocal.a4: Remove GROFF_GETOPT function.
9016         * configure.in, Makefile.in, PROBLEMS: Update.
9017         * src/include/lib.h: Replace getopt tests with getopt.h.
9018         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
9020         * doc/groff.texinfo: Further checking/updating.  Adding more index
9021         entries.
9023         * man/groff_out.man: Fix nroff mode activation (for emacs).
9024         * man/groff_font.man: Add missing ligature.
9026 2000-02-28  Werner LEMBERG  <wl@gnu.org>
9028         * doc/groff.texinfo: Further checking/updating.  Adding more index
9029         entries.
9031         * src/devices/grolbp/grolbp.man: Added a comment line at the
9032         beginning of the file (similar to shell scripts) which indicates
9033         that `tbl' should be used as a preprocessor.
9035 2000-02-27  Blake McBride  <blake@florida-software.com>
9037         Adapting groff to MS Visual C++ 6.0 compiler (tested with
9038         Windows NT 4.0).  Uses _MSC_VER define where necessary.
9040         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
9041         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
9042         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
9043         src/include/lib.h, src/libs/libgroff/errarg.cc,
9044         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
9045         src/preproc/refer/label.y, src/preproc/refer/label.cc,
9046         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
9047         src/roff/troff/div.cc, src/roff/troff/env.cc,
9048         src/roff/troff/input.cc, src/roff/troff/node.cc,
9049         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
9050         if_to_a() to avoid name clashes.
9051         * src/include/posix.h: Don't use unistd.h.
9052         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
9053         clause for integrating non-Unix xtmpfile() code.
9054         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
9055         structure; use "rt" for popen() in pipe_source(); add getpid()
9056         dummy function.
9057         * src/roff/troff/node.cc: Use special versions of popen() in
9058         real_output_file() and pclose() in ~real_output_file().
9060 2000-02-27  Werner LEMBERG  <wl@gnu.org>
9062         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
9063         LBP-8 series laser printers).  This code has been contributed by
9064         Francisco Andrés Verdú <pandres@dragonet.es>.
9066         * src/devices/grolbp/*: The grolbp output device.
9067         * font/devlpb/*: The font description files.
9068         * Makefile.in: Add grolpb and devlbp subdirectories.
9070         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
9071         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
9072         typographic fixes.
9074         * doc/groff.texinfo: Further checking/updating.  Adding more index
9075         entries.
9077         * NEWS: Updated.
9079         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
9081         * man/groff_font.man: Adding info about obsolete DESC keywords.
9082         * src/devices/grolj4/grolj4.man: Documenting additional DESC
9083         keywords.
9085 2000-02-26  Werner LEMBERG  <wl@gnu.org>
9087         * src/preproc/grn/grn.man: Added info about the gremlin file format
9088         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
9090 2000-02-25  Werner LEMBERG  <wl@gnu.org>
9092         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
9093         friends to be non-integer.
9095         * src/preproc/grn/grn.man: Document it.
9097         * doc/groff.texinfo: Further checking/updating.  Adding more index
9098         entries.
9100 2000-02-24  Werner LEMBERG  <wl@gnu.org>
9102         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
9103         line thicknesses to be integer multiples of this value.
9105         * src/preproc/grn/grn.man: Commenting out the -s option -- the
9106         corresponding code doesn't work (yet).
9108         * doc/groff.texinfo: Further checking/updating.  Adding more index
9109         entries.
9111 2000-02-23  Werner LEMBERG  <wl@gnu.org>
9113         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
9114         specify line thickness instead of base units.  The new default
9115         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
9116         thick lines respectively.
9118         Removed unused variable `prevval'.
9120         * src/preproc/grn/grn.man: Updated.
9122 2000-02-22  Werner LEMBERG  <wl@gnu.org>
9124         * src/preproc/grn/main.cc: Slight formatting.
9126         * src/roff/groff/groff.man: Formatting fix.
9127         * src/preproc/grn/grn.man: Ditto.
9129         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
9131         * doc/groff.texinfo: Further checking/updating.
9133 2000-02-21  Werner LEMBERG  <wl@gnu.org>
9135         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
9137         * test-groff: Added grn subdir to path.
9139         * doc/groff.texinfo: Some restructing and other small improvements.
9141         * src/roff/groff/groff.cc (help): Fixed info string.
9143 2000-02-20  Werner LEMBERG  <wl@gnu.org>
9145         * doc/meref.me: Fix description of .GS request.
9147         * src/roff/troff/troff.man: Fixing typo.
9149         Adding the `grn' preprocessor for gremlin graphic files.
9151         * src/preproc/grn/*: This is the Berkeley distribution written by
9152         David Slattengren and Barry Roitblat, adapted to groff by Daniel
9153         Senderowicz and Werner Lemberg.
9155         * doc/grnexampl.{me,g}: A sample for grn.
9157         * Makefile.in: Added subdirectory entry for grn.
9159         * src/roff/groff/groff.cc: Added support for grn.  It can be now
9160         called with the switch `-g'.
9162         * src/roff/groff/groff.man: Updated.
9164         * src/roff/grog/grog.{man,pl,sh}: Updated.
9166         * NEWS: Updated.
9168 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
9170         * src/include/lib.h: Added xtmptemplate and made xtmpfile
9171         parametrically polymorphic.
9173         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
9174         and the alterations to xtmpfile.
9175         xtmpfile can be requested to return the filename created
9176         and asked not to unlink the temp file.  The default behaviour
9177         if parameters are absent is exactly the same as before.
9179 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
9181         A new request `length' is available which returns the length of a
9182         string in a number register:
9184         * src/roff/troff/input.cc (length_macro): Implement it.
9185         * src/roff/troff/input.cc (init_input_requests): Register it.
9187 2000-02-11  Werner LEMBERG  <wl@gnu.org>
9189         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
9190         of the `substring' request.
9192         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
9193         request.
9195         * src/roff/troff/TODO, NEWS: Updated.
9197 2000-02-09  Werner LEMBERG  <wl@gnu.org>
9199         * src/roff/groff/groff.man: Added an example.
9201 2000-02-06  Werner LEMBERG  <wl@gnu.org>
9203         I've considerably modified the directory structure of the
9204         distribution to get a more vertical layout.  For example, the number
9205         of top level directories has been reduced from 42 to 6.
9207         As a consequence, many changes, especially to the makefiles, were
9208         necessary:
9210         * The makefile variables `top_builddir' and `top_srcdir' have been
9211         introduced.  Virtually all relative paths have been replaced with
9212         absolute ones using these two variables.
9214         * Dependencies (in the files `Makefile.dep') are no longer part of
9215         the distribution.  Instead, they are created during a `make install'
9216         in the build directory.
9218         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
9219         make `top_srcdir' and `top_builddir' absolute.
9221         Some other changes:
9223         * Man pages now depend on the files `VERSION' and `REVISION'.
9225         * The added shell script `mkinstalldirs' will replace `mkdir' in
9226         almost all cases.
9228         * VERSION: Version number increased to 1.16.
9230 2000-02-04  Werner LEMBERG  <wl@gnu.org>
9232         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
9234         * Makefile.in: Removed $(tmac_m) since it is no longer needed
9235         (after an update of the mm stuff).
9237         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
9239 2000-02-03  Werner LEMBERG  <wl@gnu.org>
9241         The .psbb request will now also accept Mac PS images (i.e. using LF
9242         as the EOL character).
9244         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
9245         (with slight modifications).
9246         * troff/input.cc (do_ps_file): Use it.
9248         * test-groff: Add grohtml and grolj4 output devices to PATH.
9250 2000-01-30  Werner LEMBERG  <wl@gnu.org>
9252         * NEWS, MORE.STUFF: Updated.
9254 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
9256         Add the `srand' command to pic.
9258         * pic/lex.cc, pic/pic.y: Implement it.
9259         * pic/pic.man: Document it.
9260         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
9262 2000-01-30  Werner LEMBERG  <wl@gnu.org>
9264         Add a new request `.psbb'.  This does exactly what the external
9265         program psbb did.  It scans a PostScript image file for a
9266         %%BoundingBox comment and extracts the bounding box values (in
9267         PostScript units) which are then stored in the four new (read-only)
9268         number registers `llx', `lly', `urx', and `ury'.
9270         This will allow the usage of the .PSPIC macro without worrying
9271         about unsafe behaviour of groff, i.e., it will work without the
9272         `-U' switch of groff.
9274         * troff/input.cc: Implement it.
9275         * tmac/tmac.pspic: Use it.
9276         * troff/troff.man, grops/grops.man, NEWS: Document it.
9277         * psbb/*, Makefile.in: Remove it since it is no longer needed.
9279         This is bloody C code simply adapted from psbb.c!  Any improvements
9280         welcome.
9282 2000-01-29  Werner LEMBERG  <wl@gnu.org>
9284         * man/groff_font.man: Minor clarifications.
9286         * NEWS: Updated.
9288 2000-01-28  Werner LEMBERG  <wl@gnu.org>
9290         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
9292 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
9294         * man/groff_font.man: Brought up to date regarding tcommand
9295         extensions.
9296         * libgroff/font.cc: Handle everything after `--' as a comment
9297         in the font files.
9298         * devps/*: Added comment delimiter inside devps font files.
9300 2000-01-28  Werner LEMBERG  <wl@gnu.org>
9302         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
9303         \fC...\fP (which now works as expected).
9305         * troff/troff.man: Fix typo.
9307 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
9309         Completed the pass_filenames implementation in troff.
9311         * libdriver/input.cc: Will read the new `F' tcommand.
9312         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
9313         * troff/input.cc: Use it.
9315 2000-01-26  Werner LEMBERG  <wl@gnu.org>
9317         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
9318         font will now be updated even if an invalid font is selected.
9320 2000-01-24  Werner LEMBERG  <wl@gnu.org>
9322         * doc/homepage.ms: Updated for new tmac.arkup.
9324         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
9326         * tmac/tmac.arkup: Cleanup.
9328         Added `\&' to .HTML macro to `leave vertical mode', so to say.
9330         Removed obsolete .LINK macro completely.
9332         The macros .URL, .FTP, and .MAILTO now accept a third argument which
9333         will be immediately appended to the second argument (to be used with
9334         punctuation, for example).
9336         Disabled .CDFTP macro temporarily for security reasons.
9338         * tmac/groff_markup.man: Complete revision for latest changes in
9339         tmac.arkup -- note that it does not yet format correctly with
9340         grohtml :-(
9342 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
9344         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
9345         * devutf8/R.proto: Add mappings for wp, lh, rh.
9346         * devutf8/NOTES: Updated.
9348 2000-01-23  Werner LEMBERG  <wl@gnu.org>
9350         * doc/groff.texinfo: Updated version/copyright info.
9352 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
9354         Added support for two new directives in device descriptions:
9355         `pass_filenames' (to pass the input file name to the output device)
9356         and `use_charnames_in_special' (to support e.g. accented characters
9357         in the `X' request).
9359         * include/font.h, troff/charinfo.h: Declare it.
9361         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
9363         * devhtml/DESC: Use it.
9365         * troff/input.cc: New function encoded_char.
9367         * troff/token.h: Add test for `specialness'.
9369 2000-01-21  Werner LEMBERG  <wl@gnu.org>
9371         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
9372         mistake from the list of files to be installed.
9374 2000-01-18  Werner LEMBERG  <wl@gnu.org>
9376         * README: Added info how to apply patches.
9378 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
9380         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
9382 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
9384         * troff/input.cc: Add support for troffrc-end.
9386         * tbl/main.cc: Altered to issue table-start and table-end special
9387         characters if using the html device.
9389         * devhtml/*: Modified font files to incorporate html encoding of
9390         characters.
9392         * tmac/groff_markup.man: New file documenting tmac.arkup.
9394         * tmac/troffrc-end: New file.  This is invoked after all user
9395         specified macros.  Currently used by the html device to include
9396         tmac.html.  Thus no need for users to specify -mhtml anymore.
9398         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
9399         (MAN7): Add groff_markup.man.
9401         * tmac/tmac.an, tmac/tmac.html: Small html updates.
9403         * tmac/troffrc: tmac.arkup will now be called for the html device.
9405         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
9406         extra device specific information about fonts.
9408         * doc/homepage.ms: New file.  It is an example how an HTML home page
9409         could look like with grohtml.
9411         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
9413 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
9415         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
9416         of Im, Re.
9418         * devutf8/NOTES: Updated.
9420 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
9422         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
9423         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
9424         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
9425         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
9426         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
9427         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
9428         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
9429         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
9430         warnings.
9432         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
9434 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
9436         grolj4: Paper size will be searched case-insensitively.
9438         * include/lib.h: Add check for strcasecmp().
9439         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
9440         * configure.in: Check for strcasecmp().
9442 2000-01-11  Werner LEMBERG  <wl@gnu.org>
9444         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
9445         `REVISION'.
9447 2000-01-10  Werner LEMBERG  <wl@gnu.org>
9449         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
9450         revision scheme.
9452         Add a new read-only register, `.Y', which contains the groff
9453         revision.
9455         * troff/input.cc (init_input_requests): Define it.
9456         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
9457         * doc/groff.texinfo, troff/troff.man: Document it.
9459         * libgroff/Makefile.sub (version.cc): Add definition of
9460         `Version_string[]', consisting of `<major>.<minor>.<revision>'
9461         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
9462         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
9463         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
9464         troff/input.cc, pfbtops/pfbtops.c: Use it.
9466 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
9468         Add a revision scheme to the groff package.
9470         * REVISION: New file.
9471         * libgroff/Makefile.sub (version.cc): Use it to define
9472         `revision_string[]'.
9473         * grops/psrm.cc: Use revision_string (converted to an unsigned
9474         integer) in constructor of resource_manager.
9476 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
9478         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
9479         files.
9480         * Makefile.in (DEVDIRS): Add devutf8.
9481         * grotty/tty.cc: Include device.h.
9482         (glyph): Change type of `code' to `unsigned int'.
9483         (tty_printer): New field is_utf8.  Constructor takes device argument.
9484         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
9485         (tty_printer::add_char): Change type of first arg to `unsigned int'.
9486         (tty_printer::put_char): New function.
9487         (tty_printer::end_page): Use put_char() instead of ::putchar().
9488         (make_printer): Pass device to tty_printer constructor.
9489         * nroff.sh: Determine default device by calling 'locale'.  As a
9490         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
9491         Recognize UTF-8 locales.
9492         * tmac/eqnrc: Recognize utf8 like latin1.
9493         * tmac/troffrc: Device utf8 needs tmac.tty.
9495 2000-01-07  Werner LEMBERG  <wl@gnu.org>
9497         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
9499 2000-01-07  Paul Eggert  <eggert@twinsun.com>
9501         Add a new predefined writeable number register, `year',
9502         which contains the current year.
9504         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
9505         * tmac/tmac.s: Use it.
9506         * troff/input.cc (init_registers): Initialize it.
9508 2000-01-06  Werner LEMBERG  <wl@gnu.org>
9510         * PROBLEMS: Fixed typo.
9512 2000-01-04  Paul Eggert  <eggert@twinsun.com>
9514         * PROBLEMS: Add Y2k advice for the yr number register.
9516 2000-01-03  Paul Eggert  <eggert@twinsun.com>
9518         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
9520 2000-01-02  Werner LEMBERG  <wl@gnu.org>
9522         * tmac/tmac.arkup: Slight modification of macros to provide better
9523         appearance for non-HTML formats.
9525 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
9527         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
9528         does not automatically translate to malloc(n) on all OSes
9529         (e.g., SunOS) so do it explicitly.  Also, check the returned
9530         value.
9532 2000-01-01  Werner LEMBERG  <wl@gnu.org>
9534         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
9536         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
9537         expects this variable
9539 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
9541         * doc/Makefile: Added instructions to create HTML and text
9542         versions of some files.
9544 1999-12-31  Werner LEMBERG  <wl@gnu.org>
9546         * Updated INSTALL.gen.
9548         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
9549         better resp. correctly with non-HTML devices.
9551 Version 1.15 released
9552 =====================
9554 1999-12-28  Werner LEMBERG  <wl@gnu.org>
9556         * NEWS, VERSION: Changed to 1.15
9558 1999-12-27  Paul Eggert  <eggert@twinsun.com>
9560         * nroff/nroff.man: -S is safer, not safe.
9562         * groff/groff.cc (main): Use `safer', not `safe', in variable
9563         names.  This does not change the behavior.
9565         * troff/input.cc (main): Likewise.
9567         * nroff/nroff.sh: Likewise.
9569         * troff/input.cc (prepend_string): New function.
9570         (main): Prepend -msafer, so that we check macro libraries for
9571         safety.
9573         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
9575 Version 1.14 released
9576 =====================
9578 1999-12-26  Werner LEMBERG  <wl@gnu.org>
9580         * NEWS, VERSION: Changed to 1.14.
9582 1999-12-24  Werner LEMBERG  <wl@gnu.org>
9584         * refer/refer.cc: Fixing the last fix.
9586 Version 1.13 released
9587 =====================
9589 1999-12-23  Werner LEMBERG  <wl@gnu.org>
9591         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
9592         number disappear.
9594         * NEWS: Updated.
9596         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
9598         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
9599         document conventions, the version number must be a real.
9601 Version 1.12.1 released
9602 =======================
9604 1999-12-22  Werner LEMBERG  <wl@gnu.org>
9606         * VERSION: Changed to 1.12.1.
9608 1999-12-22  Alan Rooks  <arooks@istar.ca>
9610         * refer/refer.cc (do_file): Slight modification to satisfy the
9611         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
9612         UnixWare 7.1.
9614 1999-12-20  Werner LEMBERG  <wl@gnu.org>
9616         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
9617         notices.
9619         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
9620         list of unsafe requests.
9622         * pic/pic.man: Fixed a typo.
9624         * man/groff_out.man: Fixed a typo.
9626 1999-12-18  Werner LEMBERG  <wl@gnu.org>
9628         * Makefile.in: Doc fixes.
9630 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
9632         * groff/groff.cc: Missing `U' option added to getopt().
9634         * troff/troff.man: Missing `U' option added to synopsis.
9636 Version 1.12 released
9637 =====================
9639 1999-12-14  Werner LEMBERG  <wl@gnu.org>
9641         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
9642         to the synopsis.
9644         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
9645         with the more appropriate terms `safer' and `unsafe'.
9647         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
9648         sys_nerr and sys_errlist[].
9650         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
9652         * pic/pic.y, pic/pic.cc: Added check for fmod().
9654 1999-12-13  Werner LEMBERG  <wl@gnu.org>
9656         * VERSION: Changed to 1.12.
9658         Here some patches from various sources; most of them taken from
9659         the Debian distribution.
9661         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
9662         tmac/Makefile.sub: New files copied directly from the NetBSD
9663         distribution.  Probably, some additional adaptation later on is
9664         necessary...
9666         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
9667         of unsafe requests.
9669         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
9670         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
9671         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
9672         (`-S') is now the default.
9674         * README, NEWS: Updated.
9676 1999-12-09  Werner LEMBERG  <wl@gnu.org>
9678         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
9680         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
9682 1999-12-06  Werner LEMBERG  <wl@gnu.org>
9684         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
9685         grief than relief today.  Additionally, it is against the GNU
9686         coding standards.
9688         * configure: Recreated.
9690 1999-12-05  Werner LEMBERG  <wl@gnu.org>
9692         * configure.in: Added GROFF_LIBM.
9694         * configure: Recreated.
9696         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
9697         necessary.
9699         * Makefile.in: Added definition of $(LIBM).
9701         * Makefile.comm (LIBM): Removed.
9703         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
9705 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
9707         * doc/Makefile: Added rule for generation pic.html.
9709         (clean): Files produced by grohtml will be removed also.
9711         * doc/pic.ms: Small fix.
9713         * tmac/tmac.html: Fixed suppression of headers.
9715 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
9717         * tmac/tmac.html: Fixing horizontal arrows.
9719         Turning off hyphenation.
9721         * tmac/tmac.an: Improved support for grohtml; better indentation,
9722         no footers/headers.
9724 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
9726         * tmac/tmac.arkup: Added CDFTP macro
9728         * tmac/tmac.html: All headers are turned off for ms, me, and mm
9729         macros.
9731         * tmac/troffrc: Some additions for HTML stuff.
9733 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
9735         * tmac/tmac.html: Small changes.
9737 1999-09-26  Werner LEMBERG  <wl@gnu.org>
9739         * doc/groff.texinfo: Minor fixes.
9741 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
9743         * devhtml/TR: Changed spacewidth to 3.
9745         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
9747         * tmac/tmac.html: Moved markup macros to tmap.arkup.
9749         * tmac/tmac.arkup: New file.
9751         * grohtml/ChangeLog: New file.
9753 1999-09-16  Werner LEMBERG  <wl@gnu.org>
9755         * doc/groff.texinfo (Common Features): Added Copying chapter.
9756         Changed format to @smallbook.
9758 1999-09-15  Werner LEMBERG  <wl@gnu.org>
9760         * NEWS: Added info about groff.texinfo.
9762         * doc/groff.texinfo: Will now compile (using texi2dvi) without
9763         warning messages.
9765 1999-09-14  Werner LEMBERG  <wl@gnu.org>
9767         * groff/groff.man: More updates.
9769 1999-09-13  Werner LEMBERG  <wl@gnu.org>
9771         * doc/groff.texinfo: New file.  This manual is still very
9772         rudimentary.  It has been originally contributed by Trent
9773         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
9774         additions by me.
9776         * INSTALL: Added information about the `doc' subdir
9778         * troff/troff.man: Minor fixes.
9780         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
9781         reordered options.
9783         * troff/input.cc (usage): Added missing `-ffam' to usage message.
9785         * Makefile.in (dist): groff-$(version).tar.gz must be removed
9786         also, otherwise it is included itself in another call of `make
9787         dist'.
9789         * groff/groff.cc (synopsis): Removed superfluous space.
9791         * PROJECTS, PROBLEMS, NEWS: Updated.
9793         * VERSION: Updated to 1.12beta.
9795         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
9797         * README: Updated: Included documentation about CVS repository,
9798         mailing lists, and daily snapshots.
9800         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
9802 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
9804         * tmac/tmac.an: If the tag didn't fit into the space that the
9805         macro `TP' specifies, the rest of the tag went into the space for
9806         the next line.
9808 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
9810         * grolj4/lj4.cc: Added duplex printing (option `-d').
9812         * grolj4/grolj4.man: Document duplex printing.
9814 1999-09-12  Werner LEMBERG  <wl@gnu.org>
9816         * doc/Makefile (pic.ps): Fixed rule which caused problems with
9817         non-GNUish sed programs.
9819         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
9820         definition.
9822         * configure.in (LIBS): Added `-lc'
9824         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
9826         * pic/tex.cc (solid_arc): Casting M_PI to double.
9828         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
9830         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
9831         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
9832         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
9834         * groff/groff_man.man: New file.  This manual page was originally
9835         written for the Debian GNU/Linux system by Susan G. Kleinmann
9836         <sgk@debian.org>.
9838         * eqn/list.cc (list_box::compute_metrics,
9839         list_box::compute_sublist_width): Removed variable declaration to
9840         avoid shadowing warnings.
9842         * grops/psrm.cc (resource_manager::process_file): Ditto.
9844         * tfmtodit/tfmtodit.cc (main): Ditto.
9846         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
9847         to avoid shadowing warnings.
9849         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
9850         shadowing loop variable.
9852         * groff/groff.man, troff/troff.man: Added doc about grohtml.
9854 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
9856         New grohtml frontend to convert groff input to html.
9858         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
9860         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
9862         * tmac/eqnrc: Added html device.
9864         * tmac/tmac.html: New file.
9866         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
9867         (troff_output::start_picture, troff_output::finish_picture),
9868         tbl/main.cc (process_input_file):
9869         Surrounded output with `graphics_start' and `graphics_end' so that
9870         the html driver can identify non-text portions.
9872         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
9873         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
9874         grotty/tty.ps (tty_printer::set_char): Additional parameter
9875         `name'.
9877         * include/printer.h: Class printer: New function
9878         set_char_and_width; new variables (is_char_named, is_named_set,
9879         named_command, named_char_s, named_char_n) to hold information
9880         about named characters -- needed by the html driver.
9882         * libdriver/printer.cc (printer::set_ascii_char,
9883         printer::set_special_char): Use set_char_and_width.
9885         * devhtml/*: New device files for html driver.
9887         * grohtml/*: New driver grohtml.
9889 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
9891         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
9892         default strings.
9894 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
9896         * libgroff/string.cc (search): Small fix to test against NULL
9897         pointer.
9899 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
9901         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
9902         \b'abc') were stacked in reverse order when processed in a
9903         diversion.
9905         * troff/node.h: Added `*last' to struct `node' to make the above
9906         fix work.
9908         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
9909         The default scale for the 'f' and 't' graphics functions were 'm'
9910         rather than 'u' (i.e., no scaling).
9912 1999-09-11  Peter Miller  <peterm@jna.com.au>
9914         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
9915         do_file), soelim/soelim.man: Added `-I file' option to soelim,
9916         defining include paths.
9918         * soelim/soelim.cc (include_path_append): New function.
9920 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
9922         * tbl/main.cc (process_options): Unix (at least Documenter's
9923         Workbench) tbl allows arbitrary non-alpha characters between
9924         options.
9926 1999-09-11  Paul Eggert  <eggert@twinsun.com>
9928         Y2k fixes.  Don't assume that the current year precedes 2000.
9930         * doc/meref.me: Add \n(y2, \n(y4.
9932         * tmac/doc-common (Yr): New number register.
9933         (Dd): Don't assume current year precedes 2000.
9935         * tmac/tmac.e (td): Likewise.
9936         (y2, y4): New number registers.
9938         * pic/pic.man: Update reference for pic paper to May, 1991
9939         version.
9941 1999-09-11  Werner LEMBERG  <wl@gnu.org>
9943         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
9944         Removed quotation marks which prevented correct expansion of
9945         $(tmac_wrap).
9947         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
9949 1999-09-10  Werner LEMBERG  <wl@gnu.org>
9951         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
9952         `config.cache'.
9954         * Removed configure.old.
9956 1999-08-31  Werner LEMBERG  <wl@gnu.org>
9958         * VERSION: Updated to 1.11.1
9960 1999-05-27  Werner LEMBERG  <wl@gnu.org>
9962         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
9964         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
9965         added quotations around $(tmac_wrap) to avoid syntax error if
9966         variable is empty.
9968         * configure: Newly generated using autoconf 2.13.
9970         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
9972 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
9974         * README, PROJECTS, NEWS, INSTALL, VERSION, 
9975         doc/Makefile. doc/pic.ms, groff/groff.man:
9976         Prepare for 1.11 release.  No code changes.
9977         Documentation for pic added (doc/pic.ms).
9979 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
9981         * Version 1.10 released.
9983 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
9985         * afmtodit/afmtodit.pl: Avoid comment on first line.
9987 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
9989         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
9990         * configure.in: Call it.
9992         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
9993         (distfiles): Doesn't depend on config.log or config.cache.
9995 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
9997         * grog/grog.sh: Use print "" rather than print in END rule.
9999 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
10001         * tbl/main.cc (process_data): Don't give error for excess data
10002         entries that are comments.
10004 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
10006         * tbl/main.cc (process_data): Fix case where new for-scope rules
10007         silently change meaning of code.
10009 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
10011         * troff/env.cc (hyphenate): Loop over all consecutive sequences
10012         of non-zero hyphenation codes.
10014 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
10016         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
10018 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
10020         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
10022 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
10024         * tmac/tmac.andoc: Make it work in compatibility mode.
10026         * refer/token.h (token_info::is_range_sep): New function.
10027         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
10028         * refer/ref.cc (reference::output): More sophisticated check for
10029         multiple pages.
10031         * devps/prologue.ps (MANUAL): New procedure.
10032         * grops/ps.cc (main): New -m option.
10033         (usage): Include -m.
10034         (ps_printer::~ps_printer): Implement -m.
10036         * aclocal.m4 (GROFF_G): New macro.
10037         * configure.in: Call it.
10038         * Makefile.in (g): Provided by configure.
10040         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
10042         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
10043         translations.
10045         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
10046         (tmac_m, tmac_s): Deleted.
10047         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
10048         tmac_s_prefix): New variables.
10049         (MDEFINES): Change accordingly.
10050         * Makefile.comm (.man.n): Use new TMAC_* variables.
10051         * configure.in (GROFF_TMAC): Call.
10052         * aclocal.m4 (GROFF_TMAC): Define.
10053         * tmac/Makefile.sub (stamp_wrap): New target.
10054         (install_data, uninstall_sub): Handle macro wrapping.
10056 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
10058         * tbl/main.cc (main): Ignore -T option.
10060 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
10062         * devlj4/generate/special.map: Add definition of \(nb.
10064         * tmac/tmac.dvi: Add definition of \(nb.
10066         * troff/dictionary.c (dictionary::dictionary): association::v gets
10067         initialized by association::association.
10069         * tmac/Makefile.sub: Avoid using temporary files when installing.
10071         * troff/env.cc (environment::set_font): Make bad font number a
10072         warning.
10074         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
10076         * Makefile.in (datadir): Use share rather than lib.
10078         * groff/groff.cc (basename): Rename to xbasename.
10080 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
10082         * Makefile (CCLIBS): Don't use.
10083         * Makefile.ccpg: Likewise.
10085         * acgroff.m4: Rename to...
10086         * aclocal.m4: Modify extensively for autoconf 2.
10087         * configure.in: Likewise.
10088         * Makefile.in: Likewise.
10090         * groff/pipeline.c (const): Declare as empty if __STDC__ not
10091         defined.
10092         (xstrsignal): Check for definition of NSIG. Conditionalize
10093         on SYS_SIGLIST_DECLARED.  Make return type const.
10095 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
10097         * troff/input.cc (interpolate_macro): Rephrase missing space
10098         warning.
10100 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
10102         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
10103         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
10104         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
10105         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
10106         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
10107         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
10108         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
10109         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
10110         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
10111         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
10112         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
10113         Fix 'for' scoping.
10115 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
10117         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
10118         string_iterator.
10119         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
10120         file.
10121         (macro_iterator::macro_iterator): Add additional argument.
10123 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
10125         * troff/div.cc (vertical_size::vertical_size): In place of integer
10126         specifying line spacing use cunits specifying post vertical
10127         space.
10128         (macro_diversion::output, top_level_diversion::output): Likewise.
10129         * troff/div.h: Change declarations accordingly.
10130         * troff/env.cc (pending_output_line): Replace ls field by post_vs
10131         field.
10132         (pending_output_line::pending_output_line,
10133         pending_output_line::output, environment::output,
10134         environment::output_line, environment::output_title,
10135         environment::hyphenate_line):  In place of
10136         integer specifying line spacing use cunits specifying post vertical
10137         space.
10138         (environment::environment): Add post_vertical_spacing and
10139         prev_post_vertical_spacing arguments.
10140         (environment::get_post_vertical_spacing): New function.
10141         (environment::total_post_vertical_spacing): New function.
10142         (environment::post_vertical_spacing): New function.
10143         (init_env_requests): Initialize pvs request and .pvs register.
10144         * troff/env.h: Change declarations.
10146 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
10148         * tmac/tmac.pspic: Immediately remove the temporary file.
10150 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
10152         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
10153         height is specified.
10155 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
10157         * tbl/table.c (struct vertical rule, class table_entry): Use int
10158         not short for start_row and end_row.
10160 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
10162         * troff/input.cc (trapping_blank_line, blank_line_macro): New
10163         functions.
10164         (diverted_space_node::reread, process_input_stack): Call
10165         trapping_blank_line() rather than blank_line().
10166         (init_input_requests): Bind "blm" to blank_line_macro().
10168         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
10170 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
10172         * troff/env.cc (environment::possibly_break_line): Require that
10173         width total excluding width of final space node be greater than
10174         the target text length.
10176 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
10178         * troff/node.cc (kern_pair_node::vertical_extent): New function.
10180 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
10182         * troff/node.cc (charinfo_node): New class.
10183         (glyph_node, composite_node): Derive from charinfo_node.  Change
10184         member functions accordingly.
10186 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
10188         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
10190 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
10192         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
10194         * devps/generate/textmap (notsubset): Add.
10196         * tmac/tmac.a4: New file.
10198 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
10200         * pic/main.cc (had_parse_error): New variable.
10201         (do_picture, do_whole_file): Set had_parse_error if yyparse()
10202         returns non-zero.
10203         (main): Return 1 if had_parse_error is true.
10205 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
10207         * grolj4/lj4.cc (main): Avoid use of strtoul.
10209 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
10211         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
10212         iso_8859_1 or $LESSCHARSET is latin1.
10214 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
10216         * hpftodit: New directory.
10217         * Makefile.in (CCPROGDIRS): Add hpftodit.
10218         * devlj4/generate: New directory.
10220 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
10222         * configure.in: Don't use AC_VFORK.
10223         * groff/pipeline.c (run_pipeline): Use fork() always.
10225 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
10227         * grops/ps.cc (main): Use %1 not %s in error message for -w.
10229         * Makefile.in (CCPROGDIRS): Add grolj4.
10230         (DEVDIRS): Add devlj4.
10231         * grolj4, devlj4: New directories.
10232         * tmac/troffrc: Handle lj4.
10233         * tmac/tmac.lj4: New file.
10235 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
10237         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
10239 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
10241         * troff/input.cc (do_if_request): At end of second string, switch
10242         environments before getting next token.
10244 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
10246         * devps/psstrip.sed: Split rule that strips whitespace on either
10247         side of delimiters.
10249 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
10251         * troff/node.h (font_family::make_definition): Add return value to
10252         declaration.  * troff/symbol.h (symbol::operator==,
10253         symbol::operator!=): Likewise.
10255 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
10257         * groff/groff.cc (main, help, synopsis): Handle -S.
10258         (possible_command::insert_arg): New function.
10260         * tmac/tmac.safer: New file.
10261         * tmac/msafer.man: New file.
10262         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
10264 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
10266         * pic/pic.h, pic/main.cc (safer_flag): New variable.
10267         * pic/pic.y (placeless_element): Avoid unsafe operations if
10268         `safer_flag' is set.
10269         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
10271 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
10273         * eqn/lex.cc (get_token): Put call to add_context() in block to
10274         work around Sun C++ 4.0 bug.
10276         * include/stringclass.h (operator +): Use ?: instead of `if' to
10277         work around Sun C++ 4.0 bug.
10279 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
10281         * tbl/main.cc (process_format): Accept - as a synonym for the _
10282         key letter.
10284         * libbib/index.cc (minus_one): Don't declare as const.
10286 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
10288         * troff/input.cc (get_char_for_escape_name): Push back a newline.
10290 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
10292         * troff/input.cc (write_macro_request): New function.
10293         (init_input_requests): Bind write_macro_request to writem.
10295 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
10297         * tmac/tmac.s (@EN): Turn filling back on even if there was no
10298         equation.
10300         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
10302         * tmac/tmac.s (@TS): Renamed from TS.
10303         (TS): Call LP then TS again.
10304         (cov*ab-init): Alias @TS to TS.
10306         * tmac/tmac.s: Allow QP or RS to initialize.
10308         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
10309         Move initializations of PS and LL here.
10310         (par@init): Don't initialize HY.  Avoid changing environment 0.
10311         (par*env-init): Don't all par@reset.
10313 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
10315         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
10317 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
10319         * Makefile.in (MDEFINES): Add LDFLAGS.
10320         (LDFLAGS): Add definition line.
10322 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
10324         * troff/input.cc (get_optional_char): Split off error check into...
10325         (check_missing_character): New function.
10326         * troff/token.h: Declare it.
10327         * troff/env.cc (margin_character): Don't call get_optional_char.
10328         Only call tok.next() after making the node.
10330         * include/lib.h (getopt): Make 2nd argument char *const *.
10332 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
10334         * nroff/conftest.sh: Deleted.
10336 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
10338         * pic/make-dos-dist: Deleted.
10340 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
10342         * devps/psstrip.sed: Strip comments before stripping trailing
10343         white space.
10345 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
10347         * Version 1.09 released.
10349 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
10351         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
10353 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
10355         * libgroff/font.cc (font::load_desc): Fix typo in error message.
10357 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
10359         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
10360         about returning without a value.
10362         * troff/charinfo.h (charinfo::get_special_translation): Cast
10363         TRANSLATE_NONE to int.
10365         * refer/token.cc (lookup_token, store_token): Remove bogus loop
10366         test.  Fix test so that it works with n unsigned.
10368         * pic/pic.y (defaults_table): Fully bracket initializer.
10369         * pic/lex.cc (lookup_keyword): Likewise.
10370         * eqn/lex.cc (token_table, def_table): Likewise.
10371         * eqn/box.cc (param_table): Likewise.
10372         * troff/input.cc (warning_table): Likewise.
10373         * libgroff/font.cc (table): Likewise.
10374         * grops/ps.cc (ps_printer::special): Likewise.
10375         * grops/psrm.cc (resource_manager::process_file): Likewise.
10376         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
10377         * refer/command.cc (command_table): Likewise.
10378         * addftinfo/addftinfo.cc (param_table): Likewise.
10380         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
10381         about temp's being unused.
10382         (unused): New function.
10384         * groff/pipeline.cc: Declare c_fatal.
10386         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
10387         uchar.
10389         * libbib/index.cc (index_search_item::load): Prevent compiler
10390         warnings about fd_closer's being unused.
10391         (unused): New function.
10393 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
10395         * troff/input.cc (copy_mode_error): Make `prefix' static.
10396         Fix typo.
10398         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
10399         defined.
10400         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
10401         HAVE_CC_OSFCN_H and modify accordingly.
10403         * troff/input.cc (init_charset_table): radicalex overlaps
10404         horizontally.
10406         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
10407         udodo!hans@relay.NL.net).
10408         * groff/configure.in: Call it.
10410         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
10411         * groff/configure.in: Call it.
10412         * include/lib.h: Conditionalize declaration of pclose.
10414         * troff/div.cc (last_page_number): New global variable.
10415         (top_level_diversion::begin_page): Exit if we just printed the
10416         last page.
10417         * troff/div.h (last_page_number): Declare it.
10418         * troff/input.cc (parse_output_page_list): Set last_page_number.
10420         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
10421         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
10422         tmac/tmac.X: Likewise.
10423         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
10424         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
10426 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
10428         * tmac/doc-ditroff (hK): Remove groff specific code which
10429         prevented page-breaks between separate manual entries.  If this is
10430         the first page, don't set the page number to 1.
10432         * acgroff.m4 (GROFF_POSIX): New macro.
10433         * configure.in: Use it.
10435         * troff/node.cc (class real_output_file,
10436         real_output_file::real_output_file,
10437         real_output_file::~real_output_file): Conditionalize use of
10438         popen/pclose on POPEN_MISSING.
10439         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
10440         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
10441         (pipe_source): Similarily.
10443         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
10445         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
10446         presence of declarations by trying to compile example with
10447         conflicting declarations.  (gcc only gives a warning for missing
10448         declarations.)
10450 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
10452         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
10453         (from Ulrich Lauther).
10455 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
10457         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
10459 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
10461         * indxbib/indxbib.cc (write_hash_table): Add code for case where
10462         pointers and ints have different sizes.
10464 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
10466         * tmac/tmac.s (par*env-init): Call par@reset.
10468 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
10470         * tmac/tmac.s (@IP): Switch to a new environment when diverting
10471         tag.
10472         (par*push-tag-env, par*pop-tag-env): New macros.
10474 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
10476         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
10477         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
10479         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
10480         comment.  Include <time.h>.
10482 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
10484         * grops/ps.cc (is_small_h, is_small_v): Deleted.
10485         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
10486         lines.
10488 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
10490         * troff/input.cc (read_request): Only print a prompt if reading
10491         from the terminal.  Also clearerr on EOF if reading from the
10492         terminal.  Declare isatty.
10494 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
10496         * refer/label.y: Rename map_t to map_func and extractor_t to
10497         extractor_func.
10499 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
10501         * include/assert.h: Don't use volatile.
10502         * libgroff/assert.cc: Likewise.
10504 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
10506         * troff/input.cc (abort_request): Look at character in tok before
10507         calling get_copy().
10509 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
10511         * troff/troff.h (NO_RETURN): Deleted.
10512         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
10513         * troff/input.cc (exit_troff): Likewise
10515         * Makefile.in: Remove `Making ...' messages since GNU make now
10516         gives these. 
10518         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
10520 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
10522         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
10523         to constant 1 inch.
10525 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
10527         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
10529 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
10531         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
10532         MARK_REG if there was no left delimiter.
10534 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
10536         * pic/troff.cc (troff_output::text): Set line thickness to
10537         relative before outputting text.
10539         * tmac/tmac.e (@k): Don't zero ?T.
10540         ((z): Likewise.
10542 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
10544         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
10546 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
10548         * troff/input.cc (decode_args): Warn about unquoted tabs (from
10549         Paul Eggert).
10551 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
10553         * troff/input.cc (ignoring): New variable.
10554         (ignore): Set ignoring during call to do_define_macro.
10555         (do_define_macro): Clear ignoring before interpolating terminating
10556         macro.
10557         (copy_mode_error): New function.
10558         (get_char_for_escape_name, read_long_escape_name,
10559         interpolate_arg): Use copy_mode_error.
10560         (warning_table): Add WARN_IG.
10561         * troff/troff.h (WARN_IG): Declare.
10562         (WARN_TOTAL): Change accordingly.
10564         * groff/pipeline.c (strsignal): Rename to xstrsignal.
10565         * groff/groff.cc (strsignal): Delete declaration.
10567 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
10569         * troff/div.cc (page_offset): Use 'm' as default scaling.
10571 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
10573         * nroff/nroff.sh: Ignore -u.
10575 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
10577         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
10579 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
10581         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
10582         drawing box.
10583         (B2): With -Tascii, leave additional vertical space before
10584         and after. Ensure that the left and right indent is restored to
10585         what it was even if the point size changes.  Don't call
10586         par@finish. Change the indent, line length and title length
10587         directly.  With -Tascii, make the width of the box 1n less.
10588         (B1): Remember 1n at the current point size.  Don't call
10589         par@reset.  Change the indent, line length and title length
10590         directly.  Ensure that the temporary indent is preserved.
10591         (par*box-mark-top): Turn off no spacing mode.
10593 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
10595         * Makefile.in (dist): Use .gz suffix.
10597 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
10599         * troff/input.cc (main): Add return 0.
10600         * pic/main.cc (main): Use return instead of exit.
10601         * tbl/main.cc (main): Likewise.
10602         * eqn/main.cc (main): Likewise.
10603         * grops/ps.cc (main): Likewise.
10604         * grotty/tty.cc (main): Likewise.
10605         * groff/groff.cc (main): Likewise.
10606         * grodvi/dvi.cc (main): Likewise.
10607         * refer/refer.cc (main): Likewise.
10608         * indxbib/indxbib.cc (main): Likewise.
10609         * lkbib/lkbib.cc (main): Likewise.
10610         * soelim/soelim.cc (main): Likewise.
10611         * addftinfo/addftinfo.cc (main): Likewise.
10612         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
10613         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
10615         * troff/token.h (process_input_stack): Don't declare as static.
10616         * troff/input.cc: Likewise.
10618         * troff/node.c (invalidate_fontno): Make it a static member of
10619         class font_family.  Change callers.
10620         * troff/node.c: Change declaration.
10622         * tbl/main.cc (struct input_entry_format): Add explicit public
10623         specifier.
10624         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
10625         struct double_hline_stuff): Likewise.
10626         * tbl/table.h (struct entry_format): Likewise.
10627         * pic/object.h (struct saved_state): Likewise.
10629         * include/stringclass.h: Add forward declarations of friend
10630         functions that are later declared as inline.  Don't include inline
10631         specifier in friend declaration.
10633         * libgroff/lib.h: Declare popen and pclose.
10634         * acgroff.m4 (GROFF_POPEN): New macro.
10635         * configure.in: Call it.
10637         * include/lib.h (PI): New constant. Undef first if necessary.
10638         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
10639         * grops/ps.cc (degrees, radians): Likewise.
10640         * libgroff/font.cc (font::get_skew): Likewise.
10642         * grops/ps.cc (is_ascii): New function.
10643         (ps_output::put_string): Use is_ascii.  Use csprint rather than
10644         isprint.
10645         (ps_printer::define_encoding): Use csspace.
10646         * libgroff/strtol.c (ISASCII): New macro.
10647         (strtol): Cast arguments to is*() and tolower() to unsigned char.
10648         Use ISASCII rather than isascii.
10649         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
10650         * libgroff/cset.cc: Likewise.
10651         * libdriver/input.cc: Include cset.h.
10652         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
10653         than isdigit().
10655         * refer/refer.cc (main): Use %ld rather than %d for longs.
10657         * libbib/index.cc (index_search_item_iterator::get_tag): Use
10658         S_ISREG macro.
10660         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
10662 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
10664         * troff/input.cc (hyphenation_code): Skip white space between
10665         char/code pairs.
10667 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
10669         * tbl/table.h (table::entry_list_tailp): New member.
10670         (table::table): Initialize it.
10671         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
10672         behaviour.
10674 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
10676         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
10677         with negative horizontal positions. Remove casts of glyph::hpos to
10678         int.
10679         (USHRT_MAX): Delete definition.
10680         (SHRT_MAX, SHRT_MIN): New definitions.
10681         (glyph::hpos): Change type to short.
10682         (tty_printer::end_page): Output multiple backspaces if necessary.
10683          Remove casts of glyph::hpos to int.
10684         
10685 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
10687         * tmac/tmac.s (@RT): New definition.
10689 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
10691         * refer/refer.cc (do_file): Make sure current_filename is set when
10692         filename is "-".
10694         * pic/common.cc (common_output::dot_line): Handle zero length
10695         lines.
10697 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
10699         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
10700         (par@init): Initialize \n[HY].
10702 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
10704         * troff/dictionary.cc (dictionary::remove): Continue when
10705         r < j < i.
10707 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
10709         * Makefile.com (.y.cc): Avoid ending up with two versions of
10710         $(YTABH).
10712 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
10714         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
10715         (\(,C): Likewise.  Also fix typo.
10717 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
10719         * lib.h: Delete extraneous semi-colon.
10721         * Add pso request: `so' from a pipe.
10722         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
10723         (file_iterator::close): New function.
10724         (file_iterator::~file_iterator, file_iterator::next_file): Use
10725         file_iterator::close.
10726         (file_iterator::backtrace): Say `process' rather than `file' when
10727         the stream is popened.
10728         (pipe_source): New function.
10729         (init_input_requests): Bind ".pso" to pipe_source.
10731 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
10733         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
10735         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
10736         digits in lower case.
10738 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
10740         * Version 1.08 released.
10742         * Makefile.in (dist): Insert || true after ln -s commands that
10743         might fail.
10745         * mm: Update to mm 1.16.
10747         * acgroff.m4 (GROFF_CSH_HACK): New macro.
10748         * configure.in: Call GROFF_CSH_HACK.  Substitute for
10749         SH_SCRIPT_SED_CMD.
10750         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
10751         MDEFINES.
10752         * nroff/Makefile.sub (nroff): New target.
10753         (install_data): Install nroff.
10754         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
10755         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
10757 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
10759         * eqn/Makefile.sub (neqn): Add chmod +x.
10761         * grog/Makefile.sub (grog): Remove spurious semi-colon.
10763 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
10765         * troff/input.cc (string_iterator::string_iterator()): Initialize
10766         lineno and count.
10768 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
10770         * troff/div.cc (macro_diversion::space,
10771         top_level_diversion::space): Don't set high_water_mark.
10772         (macro_diversion::output, top_level_diversion::output): Don't
10773         include post line space in high water mark.
10775 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
10777         * eqn/eqn.y: Don't define YYDEBUG.
10778         * pic/pic.y: Likewise.
10780 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
10782         * tmac/tmac.e ([3): Add space after comma following editors.
10783         Change double spaces to single spaces.
10784         ([4): Change double spaces to single spaces.
10786         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
10787         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
10788         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
10789         after %!PS-Adobe- (for Newsprint).
10791         * troff/div.cc (top_level_diversion::begin_page): When
10792         before_first_page is 1, set page_number to 1.
10794 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
10796         * eqn/box.cc (box::top_level): Protect equation with \&.
10798 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
10800         * groff/groff.cc (possible_command::set_name): Delete old name.
10802         * groff/groff.cc (possible_command::~possible_command): Use
10803         a_delete.
10805         * troff/node.cc (troff_output_file::begun_page): New member.
10806         (troff_output_file::troff_output_file): Initialize it.
10807         (troff_output_file::really_begin_page): Only output V command if a
10808         page has been begun.
10810         * pic/pic.y (placeless_element): Delete argument to PRINT after
10811         use.
10813 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
10815         * Make wrapman work.
10816         * troff/div.h (class top_level_diversion): Replace
10817         first_page_begun by before_first_page (with opposite sense).
10818         * Change first_page_begun to before_first_page inverting sense.
10819         * troff/div.cc (class nl_reg): New class.
10820         (init_div_requests): Use class nl_reg for \n(nl.
10821         (top_level_diversion::begin_page): Don't call
10822         output_file::begin_page if before_first_page is 2;
10823         reset before_first_page afterwards.  If have_next_page_number is
10824         false, then always increment page_number.
10825         * tmac/tmac.an: Set traps within TH rather than at the top-level.
10826         Restore compatibility mode after loading, and then disable
10827         compatibility mode in TH.
10829 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
10831         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
10832         past last line.
10833         * troff/node.h (output_file::trailer): Declare.
10834         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
10835         * troff/node.cc (output_file::trailer): New function.
10836         (troff_output_file::~troff_output_file): Move most code into...
10837         (troff_output_file::trailer): New function.
10838         (class troff_output_file): Delete page_length member. Declare
10839         trailer().
10840         (troff_output_file::really_begin_page): Use current page length
10841         for final V command.
10843         * tbl/main.cc (struct options): New decimal_point_char member.
10844         (options::options): Initialize this.
10845         (process_options): Implement decimalpoint option.
10846         (process_data): Pass decimal_point_char option to table::table.
10847         * tbl/table.h (class table): New decimal_point_char member.
10848         (table::table): Add additional argument.
10849         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
10850         second argument specifying decimal point character.  Use this
10851         instead of '.'.
10852         (table::table): Initialize decimal_point_char.
10853         (table::add_entry): Change call to find_dot.
10855         * troff/input.cc (get_copy, token::next): Implement \V.
10856         (interpolate_environment_variable): New function.
10858 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
10860         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
10861         * pic/pic.y: Likewise.
10863         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
10864         Add casts to int.
10865         * refer/ref.cc (reference::insert_field, reference::delete_field):
10866         Likewise.
10867         * troff/number.cc (parse_term): Likewise.
10869         * acgroff.m4 (GROFF_PROG_YACC): New macro.
10870         * configure.in: Use GROFF_PROG_YACC.
10872         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
10873         and g++.
10874         * Makefile.in (OPTIMIZE): New define.
10875         (DEBUG): Empty by default.
10876         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
10878         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
10879         (GROFF_ARRAY_DELETE): Likewise.
10880         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
10882         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
10884         * devps/psstrip.sed: Use different delimiter on last line (so that
10885         it works with BSD 4.4 sed.)
10887 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
10889         * devps/psstrip.sed: Delete comments.
10891         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
10892         optind, opterr, optarg.
10893         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
10894         opterr, optarg.
10896 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
10898         * Makefile.in (check): Dummy target.
10900 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
10902         * Version 1.07 released.
10904         * Integrate mm 1.11.
10906         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
10907         where start_col was meant.
10909 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
10911         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
10913 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
10915         * troff/input.cc (token::next): Make \z\o'...' and similar things
10916         work.
10918         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
10919         constants.
10920         (environment): Add margin_character_flags member.
10921         * env.cc (environment::environment(symbol),
10922         environment::environment(const environment *): Initialize
10923         margin_character_flags.
10924         (margin_character): Rewrite.
10925         (environment::output_line): Add a margin character if
10926         margin_character_flags is non-zero.  Turn off the
10927         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
10928         zero, use margin_character_node without copying and then set
10929         margin_character_node to 0.
10931         * devps/DESC.in: Change minimum size to 1000.
10933 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
10935         * troff/symbol.h (symbol::hash): Change return type to unsigned
10936         long.
10937         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
10938         Add casts to int.
10940         * test-groff: Use -r rather than -x.
10942         * grops/psfig.diff: Include in distribution again.
10944 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
10946         * Makefile.in (dist): Use gzip.
10948 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
10950         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
10951         unistd.h as well as in stdlib.h.
10952         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
10953         defined; otherwise include <sys/types.h> and <unistd.h> if
10954         UNISTD_H_DECLARES_GETOPT is defined.
10956         * configure.in: use builtin(include, ... rather than include(...
10957         * configure: Regenerate with autoconf 1.3.
10959         * libdriver/print.cc (printer::adjust_arc_center): Use new
10960         algorithm suggested by Andy Fyfe.
10962         * libdriver/printer.cc (printer::adjust_arc_center): New function.
10963         * include/printer.h: Declare this.
10964         * grops/ps.cc (ps_printer::draw): Use it.
10965         * grodvi/dvi.cc (dvi_printer::draw): Use it.
10967 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
10969         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
10971 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
10973         * eqn/main.cc (main): Handle "eqn -".
10975 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
10977         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
10979         * mm: Integrate version 1.08.
10981         * pic/troff.cc (troff_output::finish_picture): Set
10982         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
10983         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
10984         if it's not defined. Check whether the register is non-zero rather
10985         than whether it's not defined.
10986         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
10988         * indxbib/indxbib.cc: Move all signal handling into...
10989         * indxbib/signal.c: New file.
10990         * configure.in: Call AC_RETSIGTYPE.
10992         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
10993         * configure.in: Call GROFF_STRUCT_EXCEPTION.
10994         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
10996         * troff/input.cc (token::token, token::operator=): Work round SGI
10997         C++ bug.
10998         * pic/object.cc (position::position): Likewise.
11000 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
11002         * pic/pic.h: Move declaration of hypot().
11004 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
11006         * pic/pic.h: Declare hypot().
11008         * pic/pic.h: Define M_PI if necessary.
11010 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
11012         * tmac/tmac.e (re): Add alternative version that doesn't use groff
11013         `.ta T' feature.
11015         * devps/prologue.ps (RE): Handle the possibility that the old font
11016         doesn't have a FontName entry.
11018 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
11020         * tmac/tmac.e (fam): Redefine to set family in environment 2.
11021         (@C): Use @fam not fam.
11023 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
11025         * lookbib/lookbib.cc (main): Change type of start to const char *.
11026         * lkbib/lkbib.cc (main): Likewise.
11028         * eqn/lex.cc (definition::definition): Don't use member
11029         initializer syntax for members of anonymous unions.
11031         * troff/input.cc (input_stack::backtrace): Change type of to const
11032         char *.
11034 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
11036         * include/stringclass.h (class string): Declare inline friend
11037         functions as inline in class declaration.
11038         * troff/hvunits.h (class hunits, class vunits): Likewise.
11039         * include/refid.h (class reference_id): Likewise
11040         * troff/troff.h (points_to_units(units), scale(units, double)):
11041         Delete declarations.
11042         * libdriver/input.cc (get_char): Delete declaration.
11043         * include/lib.h: Change 2nd argument of getopt from const char **
11044         to char **.
11045         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
11046         char **' before assigning to a `const char **'.
11047         * tbl/table.cc: Delete extra declarations of prints().
11049 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
11051         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
11052         char **' before assigning to a `const char **'.
11054         * libgroff/errarg.cc (errarg::errarg): Don't use member
11055         initializer syntax for members of anonymous unions.
11057 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
11059         * mm: Integrate version 1.07.
11061 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
11063         * troff/input.c (translate2): Rename to
11064         (translate_no_transparent).
11065         (init_input_requests): Rename tr2 to trnt.
11067 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
11069         * troff/charinfo.h (class charinfo): Add transparent_translate field.
11070         (charinfo::set_translation, charinfo::set_special_translation):
11071         Add second argument that specifies value for
11072         transparent_translate.
11073         (charinfo::get_translation, charinfo::get_special_translation):
11074         Add optional second argument that specifies whether translation is
11075         being used for transparent throughput.
11076         * troff/input.cc (charinfo::set_translation,
11077         charinfo::set_special_translation): Handle second argument.
11078         (charinfo::charinfo): Initialize transparent_translate.
11079         (translate): Split main part off into
11080         (do_translate): New function.  Pass argument saying whether
11081         translation applies to transparent throughput.
11082         (translate2): New request.
11083         (init_input_requests): Bind translate2 to `tr2'.
11085 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
11087         * tbl/table.h (class table): Add `nokeep' flag.
11088         * tbl/main.cc (process_options): Handle `nokeep' option.
11089         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
11090         table::do_bottom): Don't output keep/release macro definitions or
11091         calls when `nokeep' option has been specified.
11093 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
11095         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
11097 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
11099         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
11100         block_entry::divert, alphabetic_block_entry::divert): Add extra
11101         argument giving column separation.
11102         (table::compute_widths): Pass column separation to
11103         table_entry::divert().
11104         (block_entry::do_divert): If an entry spans multiple columns and a
11105         minimumum width has been specified for each column, then set the
11106         line length to the sum of the widths (plus possibly the column
11107         separations).
11109         * troff/input.cc (set_escape_char): Don't set the escape_char
11110         until after calling has_arg().
11112 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
11114         * tbl/table.cc (table::do_top): Add missing \s0 for double box
11115         case.
11117         * tbl/table.cc (table::print_double_hline): Avoid extra new line
11118         in case where r > nrows - 1.
11120         * tbl/table.cc (BODY_HEIGHT): Deleted.
11121         (LINE_SEP): New definition.
11122         (table::print_single_hline, table::print_double_hline,
11123         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
11124         table::do_row, table::do_top): Use LINE_SEP space before a line
11125         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
11127         * tbl/table.cc (text_entry::print_contents): New function.
11128         (text_string_name, right_text_string_name): Deleted.
11129         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
11130         (simple_text_entry::do_width, numeric_text_entry::do_width,
11131         alphabetic_text_entry::do_width): Don't store the contents of the
11132         entry in a string.
11133         (left_text_entry::simple_print, right_text_entry::simple_print,
11134         center_text_entry::simple_print,
11135         alphabetic_text_entry::simple_print,
11136         numeric_text_entry::simple_print): Print the entry directly
11137         instead of using the stored string.
11139 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
11141         * devps/Makefile: Strip PostScript files.
11142         * devps/prologue: Rename to...
11143         * devps/prologue.ps.
11144         * devps/psstrip.sed: New file.
11145         * devps/download: Use .pfa rather than .ps for installed versions
11146         of fonts.
11148 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
11150         * troff/env.cc (input_trap): Give a warning if the argument is out
11151         of range.
11153         * troff/env.cc (adjust): Treat negative argument as missing. Round
11154         argument > 5 down to 5.
11156         * troff/env.cc (center, right_justify): Make negative argument zero.
11158         * troff/div.cc (page_offset, vertical_position_traps): Treat
11159         invalid argument as missing.
11160         * troff/env.cc (line_spacing, line_length, title_length, indent,
11161         underline, hyphen_line_max_request, control_char,
11162         no_break_control_char, widow_control_request, adjust, input_trap,
11163         point_size): Likewise.
11164         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
11165         constant_space): Likewise.
11166         * troff/input.cc (compatible, shift, warn_request,
11167         set_escape_char): Likewise.
11169         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
11170         * tbl/table.cc (table::table): Likewise.
11172         * Makefile.dev (install_dev): depends on $(DEVFILES).
11174 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
11176         * devX75, devX75-12, devX100, devX100-12: New directories.
11177         * Makefile.in: Add these to DEVDIRS.
11179         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
11180         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
11181         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
11182         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
11183         targets.
11184         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
11185         (uninstall): New target.
11186         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
11187         uninstall_prog, uninstall_dev): New targets.
11189         * troff/div.cc (return_request): Treat an invalid argument as
11190         missing.
11192 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
11194         * tmac/tmac.e ((f): Set up the environment even when there's a
11195         current diversion.  Transperently throughput a call to @N.
11196         (@N): New macro.
11198 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
11200         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
11201         up to vertical resolution.
11203         * tbl/table.cc (table::do_row): Change row number after printing
11204         stuff list.
11206         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
11208 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
11210         * Rename CHANGES to NEWS.
11212 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
11214         * libgroff/new.cc (operator new): Avoid calling malloc(0).
11216 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
11218         * man.ultrix: Removed.
11220 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
11222         * Makefile.comm (extraclean): Delete files whose names begin with
11223         `='.
11225         * pic/troff.cc (troff_output::text): Fix typo in implementation of
11226         aligned text.
11228 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
11230         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
11231         * troff/div.cc (page_length, need_space, space_request): Treat
11232         invalid optional argument as missing.
11233         * troff/env.cc (number_lines): If the first argument is present
11234         but not a number, turn on line numbering, don't change the next
11235         line number and parse the remaining arguments.
11237         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
11239 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
11241         * eqn/box.h: Change declaration accordingly.
11242         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
11243         the specified size was bad but don't give an error.  Check for
11244         overflow.
11245         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
11246         * eqn/lex (do_size): Likewise.
11248 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
11250         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
11251         compatible headers.
11253 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
11255         * tbl/table.cc (table::init_output): Improve error message when
11256         table won't fit on one page.
11258 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
11260         * pic/troff.cc (troff_output::start_picture): Generate line
11261         containing a horizontal motion equal to the width of the picture.
11263         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
11264         using GROFF_COMMAND_PREFIX environment variable.
11266 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
11268         * mdate.sh: Use $NF rather than $(NF).
11270 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
11272         * pic/main.cc (main):  Use %1 not %c in argument to warning.
11274         * eqn/main.cc (main): Output code to check that geqn was given the
11275         correct -T option.
11277 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
11279         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
11280         `ln -s ../Makefile .; make; rm -f Makefile'.
11282         * troff/hyphen: Rename to...
11283         * troff/hyphen.us:
11284         * troff/input.cc (main): Delete -H option. Don't call
11285         read_hyphen_file().
11286         * troff/env.cc: Include searchpath.h and macropath.h.
11287         (exception_dictionary): Deleted.
11288         (ht): Deleted.
11289         (read_hyphen_file): Deleted.
11290         (hyphenation_language): New struct.
11291         (class trie, class hyphen_trie): Move declarations up.
11292         (trie_node::~trie_node): Deleted.
11293         (trie::delete_trie_node): New function.
11294         (trie::do_delete): New pure virtual function.
11295         (hyphen_trie::do_delete): New function.
11296         (trie::~trie): New function.
11297         (hyphen_trie::~hyphen_trie): New function.
11298         (trie::clear): No need to chcek that tp is not 0.
11299         (current_language, language_dictionary): New variables.
11300         (hyphen_word): Give an error if no current language.  Use
11301         exceptions dictionary in current language.
11302         (hyphen_trie::read_patterns_file): Find file using macro_path.
11303         Allow comments (starting with %) in patterns file.  Don't make it
11304         a fatal error if the file can't be found.
11305         (hyphenate): Return if no current language.  Get the exceptions
11306         dictionary and the hyphenation patterns from the current language.
11307         (set_hyphenation_language): New variable.
11308         (hyphenation_patterns_file): New function.
11309         (hyphenation_language_reg): New class.
11310         (hyphenation_language_reg::get_string): New function.
11311         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
11312         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
11313         register.
11314         * groff/groff.cc (main, help, synopsis): Delete -H option.
11315         * include/Makefile.sub: Don't define HYPHENFILE.
11316         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
11317         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
11318         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
11319         hyphenation patterns.
11321 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
11323         * eqn/neqn.sh: New file.
11324         * eqn/Makefile.sub: Handle neqn.sh.
11326         * eqn/eqn.h: Declare `nroff' variable.
11327         * eqn/box.cc (param_table): Add `nroff' param.
11328         (nroff): Define it.
11329         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
11330         variable.
11331         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
11333         * troff/troff.h (WARN_FONT): New warning.
11334         (WARN_TOTAL): Change accordingly.
11335         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
11336         (warning_table): Add WARN_FONT.
11337         * troff/node.cc (mount_font_no_translate): Pass argument to
11338         font::load_font.  If this is non-zero, give a warning.
11339         Don't give an error message when accessing a font that has already
11340         been found to be invalid.
11341         * include/font.h (font::load, font::load_font): Add additional
11342         optional argument which suppresses error message if the font is
11343         not found.
11344         * libgroff/font.cc (font::load_font): Handle additional argument.
11345         (font::load): Add additional argument. If this is non-null, set it
11346         to 1 and don't give error message.
11348         * include/printer.h (printer::end_page): Add argument giving
11349         length of page.
11350         * libdriver/input.cc (do_file): Pass this.
11351         * grops/ps.cc (ps_printer::end_page): Add argument.
11352         * grodvi/dvi.cc (dvi_printer::end_page,
11353         draw_dvi_printer::end_page): Add argument.
11354         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
11355         columns_per_page members. New member nlines.
11356         (DEFAULT_LINES_PER_PAGE): Deleted.
11357         (tty_printer::tty_printer): Don't compute lines_per_page from
11358         font::paperlength. Don't compute columns_per_page from
11359         font::paperwidth.
11360         (tty_printer::add_char): Don't check horizontal position against
11361         columns_per_page. Grow glyphs vector if neccessary.
11362         (tty_printer::end_page): Add argument giving page_length in units.
11363         Discard lines past end of page.
11365 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
11367         * tmac/tmac.tty-char: Fix definition of \(/l.
11369         * tmac/tmac.X: Define \(en.
11371 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
11373         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
11374         lpq, then use lp rather than lpr.
11376         * tmac/tmac.s (par@reset): Don't call `ad'.
11377         (par*env-init): Call `ad'.
11379 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
11381         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
11382         date.
11384         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
11385         * indxbib/indxbib.cc: Likewise.
11387 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
11389         * libgroff/putenv.c: New file.
11390         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
11391         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
11392         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
11393         stdlib.h with AC_HAVE_HEADERS.
11395 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
11397         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
11398         does not exist.
11400 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
11402         * eqn/box.cc (gsize): Make it an int.
11403         (set_gsize): Parse argument handling increment or decrement.
11404         (box::top_level): Convert gsize to a string.
11406         * troff/input.cc (exit_troff): Make buf unsigned char [].
11407         Call to make_temp_iterator casts buf to char*.
11409         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
11411         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
11412         * Makefile.cpg (depend.temp): Likewise.
11414         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
11416         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
11418 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
11420         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
11422 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
11424         * Version 1.06 released.
11426         * Integrate mm 1.04.
11428 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
11430         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
11432 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
11434         * afmtodit/afmtodit.pl: Add -n option that disables generation of
11435         ligatures command.
11436         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
11437         afmtodit. Regenerate.
11439         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
11440         @f back past the current position.
11442         * tmac/tmac.e: Change calls to @R so that comments are not part of
11443         arguments.
11445 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
11447         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
11449         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
11450         check that we can link a call to a function declared in <stdio.h>.
11451         (GROFF_UNISTD_H): New macro.
11452         * configure.in: Call it.
11453         * Makefile.in: Document it.
11454         * include/posix.h: New file.
11455         * troff/troff.h: Don't include <osfcn.h>
11456         * troff/input.cc: Include posix.h.
11457         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
11458         osfcn.h.
11459         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
11460         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
11461         <fcntl.h>.
11462         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
11463         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
11464         * libbib/search.cc (O_RDONLY): Delete definition.
11465         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
11466         Don't include <osfcn.h>.
11468         * acgroff.m4 (GROFF_TIME_T): New macro.
11469         * configure.in: Call it.
11470         * Makefile.in: Document it.
11472         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
11473         * configure.in: Call it.
11474         * Makefile.in: Document -DTRADITIONAL_CPP.
11475         * include/ptable.h: Don't include generic.h.
11476         (name2): Define it.
11478         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
11479         Afterwards remove [T1 and [T2.
11480         (ref*spec!0, ref*spec!2): Use T1 rather than T.
11481         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
11482         (ref*add-T2): Renamed from ref*add-T.
11483         (ref*add-T1): New macro.
11485 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
11487         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
11489         * libbib/index.cc: Include <fcntl.h>.
11490         (O_RDONLY): Define if necessary.
11491         (make_index_search_item, index_search_item_iterator::get_tag,
11492         index_search_item::check_files): Use O_RDONLY.
11493         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
11494         (O_RDONLY): Define if necessary.
11495         (search_list::add_file): Use O_RDONLY.
11496         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
11497         <sys/stat.h>.
11498         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
11499         (main): Use these.
11501         * libbib/index.cc (S_ISREG): Define it if necessary.
11502         (index_search_item::load): Use S_ISREG.
11504         * include/driver.h: Include <errno.h>.
11506 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
11508         * eqn/box.cc (body_height): Increase default value to 85.
11509         (body_depth): Increase default value to 35.
11511 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
11513         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
11514         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
11515         protected from expansion with \E.
11517         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
11519         * Makefile (Makefile): New target.
11521         * Makefile.sub (configure, distfiles): New targets.
11523         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
11524         construct.
11526 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
11528         * eqn/box.cc (param_table): Add body_height and body_depth.
11530         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
11532 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
11534         * psbb/Makefile.sub: Don't link with libgroff.a.
11536         * acgroff.m4 (GROFF_PUTENV): New macro.
11537         * configure.in: Call GROFF_PUTENV.
11538         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
11539         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
11540         is defined.
11542         * troff/env.cc (distribute_space): Rename force_forward argument
11543         to force_reverse.  Reverse the list if force_reverse is true.
11545 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
11547         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
11549         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
11550         height or depth to be negative.  Guard against SUP_RAISE quantity
11551         being negative.
11553 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
11555         * devps/generate/textmap: Add `an' (arrowhorizex).
11556         * tmac/tmac.ps: \(an overlaps horizontally.
11557         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
11559         * devps/symbolchars: Add arrowverttp, arrowvertbt.
11560         * devps/textmap: Add arrowvertex.
11561         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
11562         updownarrow delimiters.
11563         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
11565         * tbl/table.cc (simple_entry::position_vertically,
11566         block_entry::position_vertically):  For a centered entry, perform
11567         the motion in two stages.
11569         * refer/refer.cc (split_punct): Don't call lookup_token if there
11570         is no token.
11572 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
11574         * troff/input.cc (token::next): Delete token_node after copying
11575         token.
11577         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
11578         cur_point_size.
11580         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
11582         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
11584 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
11586         * grops/ps.cc (usage): -b option takes an argument.
11588         * devps/prologue (PLG): New procedure.
11589         * grops/ps.cc (main, usage): New -g option.
11590         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
11591         length using PLG.
11593 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
11595         * include/cset.h: Include <limits.h> if we have it.
11597         * libgroff/illegal.cc: New file.
11598         * include/lib.h (illegal_input_char): Use table.
11599         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
11600         * pic/lex.cc (ARG1): Renumber to 14.
11601         * eqn/lex.cc (ARG1): Likewise.
11603         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
11604         (eg 1.05.90) correctly.
11606 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
11608         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
11609         Rename $r and $R registers to $v and $V.
11610         ($r, $R): Initialize to 0.
11611         (@v, @V): New macros.
11612         (sz): Call @v.
11613         (@M): Call @V.
11615         * troff/input.cc (main, usage): Add -R option that says not to
11616         load troffrc.
11617         * eqn/main.cc (main, usage): Rename -n to -R.
11619 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
11621         * devps/DESC.in: Leave font positions 5-9 blank.
11622         * devdvi/DESC.in: Likewise.
11624         * grog/grog.pl: Handle `.PS <file' correctly.
11626         * troff/input.cc (input_stack::push): Improve error message when
11627         input stack limit exceeded.
11629 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
11631         * refer/refer.cc (main): Fix typo in handling of `a' option.
11633         * refer/refer.cc (do_bib): In state START after a newline remain
11634         in state START.
11636         * groff/groff.sh: Deleted.
11637         * groff/Makefile.sub: Delete handling of groff.sh.
11639         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
11640         to determine whether to use \X'ps:...'.
11641         * tmac/troffrc: Set 0p register to 0.
11642         * tmac/tmac.ps: Set 0p register to 1.
11644         * groff/groff.cc: Support -X option. Give warning for -TXps and
11645         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
11646         * tmac/troffrc: Support -r.X=1.
11648         * pic/troff.cc (troff_output::dot): Don't test
11649         zero_length_line_flag.
11651 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
11653         * include/lib.h: Declare getopt() and friends unless
11654         STDLIB_H_DECLARES_GETOPT is defined.
11656         * doc/chars.tr: Delete.
11657         * man/groff_char.man: New file.
11659 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
11661         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
11662         user has changed register format.
11664 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
11666         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
11667         `postpro' command in DESC file.  Get spooler command from `print'
11668         command in DESC file.  Execute spooler command with /bin/sh.
11670         * groff/groff.cc: Split Unix-specific parts into...
11671         * groff/pipeline.c: New file.
11673         * LICENSE: Delete.
11674         * COPYING: New file.
11675         * all files: Update copyright notices.
11677         * Rearrange files.  Redo Makefiles.  Use autoconf.
11679 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
11681         * troff/input.c (charinfo_to_node_list): Interpret character
11682         definition with escape_char of `\'.
11684 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
11686         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
11687         Define INT_DIGITS as big enough for 64-bit integer.
11688         * lib/strtol.c: Don't include lib.h.
11689         * lib/lib.h: Delete ifdef __cplusplus stuff.
11691 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
11693         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
11694         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
11695         get DESC from current directory.
11697 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
11699         * tbl/main.c (main): Always reset the line number when reading
11700         from stdin.
11702         * tbl/table.c (table::print_single_hline, table::print_double_hline,
11703         table::define_bottom_macro, table::do_row, table::do_top): Round
11704         vertical spacing up to vertical resolution.
11706 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
11708         * ps/ps.h (enum resource_type): Avoid comma at end of
11709         enumerator-list.
11710         * dvi/dvi.c (class dvi_printer): Likewise.
11711         * dvi/tfmtodit.c (gf::load): Likewise.
11712         * refer/label.y (struct expression): Likewise.
11713         * refer/refer.c (class label_processing_state): Likewise.
11714         * refer/indxbib.c (do_file): Likewise.
11715         * troff/troff.c (enum warning_type): Likewise.
11716         * tbl/main.c (process_data): Likewise.
11717         * troff/charinfo.h (class charinfo):
11719 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
11721         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
11723 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
11725         * groff.c: Move to new groff subdirectory.
11726         * groff/Makefile: New file.
11727         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
11729         * man/mdate.sh: Use ls -L if supported.
11731         * Consolidate all header files produced by gendef into lib/defs.h.
11732         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
11733         Don't include path.h.
11734         * lib/Makefile (path.h): Don't generate.
11735         * troff/input.c: Include defs.h. Don't include config.h.
11736         * troff/Makefile (config.h): Don't generate.
11737         * refer/index.h: Don't include suffix.h.
11738         * refer/index.c: Include defs.h.
11739         * refer/indxbib.c: Include defs.h.
11740         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
11741         defs.h.
11742         * refer/Makefile (suffix.h, path.h): Don't generate.
11743         * groff.c: Don't include config.h. Include defs.h.
11744         * Makefile (config.h): Don't generate.
11745         (lib/defs.h): Generate.
11746         (topclean): Remove lib/defs.h.
11748 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
11750         * lib/malloc.c, lib/getpagesize.h: Deleted.
11751         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
11752         related stuff.
11753         * lib/Makefile: Delete malloc-related stuff.
11754         * lib/new.c: Workaround COOKIE_BUG if necessary.
11756         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
11757         needed header files directly.
11758         * refer/refer.h: Omit definition of DEFAULT_INDEX.
11759         * Makefile: Include definition of DEFAULT_INDEX in path.h.
11761 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
11763         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
11764         argument.
11765         * lib/font (font::load_desc, font::load): Don't split argument of
11766         unknown command.
11767         (font::handle_unknown_font_command): Change type.
11768         * ps/ps.c (ps_font::handle_unknown_font_command,
11769         handle_unknown_desc_command): Change type.
11770         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
11772 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
11774         * lib/font.h (font::handle_unknown_font_command): Add file and
11775         line arguments.
11776         * lib/font.c (font::handle_unknown_font_command):
11777         * ps/ps.c (ps_font::handle_unknown_font_command):
11778         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
11779         lineno arguments.  Use _with_file_and_line functions for error
11780         reporting.
11782         * lib/fontfile.c (font::unknown_desc_command_handler): New static
11783         data member.
11784         * lib/font.c (font::set_unknown_desc_command_handler): New
11785         function.
11786         (font::load_desc): For unknown commands, call
11787         unknown_desc_command_handler if not null.
11788         * lib/font.h (class font): Declare them.
11789         (FONT_COMMAND_HANDLER): New typedef.
11790         * ps/ps.c (handle_unknown_desc_command): New function.
11791         (main): Set bflag if we had a -b option. Call
11792         font::set_unknown_desc_command_handler.
11793         (broken.h): Don't include.
11794         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
11795         submake 
11796         * ps/devps/Makefile: Add `broken' command to DESC file using
11797         BROKEN_SPOOLER_FLAGS.
11799         * macros/tmac.e ([, ]): Add as synonyms for { and }.
11801         * macros/tmac.e ($p): Only exdent if \$3 > 0.
11803         * macros/tmac.e (@R, @S): New macros.
11804         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
11805         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
11806         Declare $H, $[0-9], .. macros with @S.
11807         Declare |0, |1, |2, |3 strings with @S.
11809         * macros/tmac.e (@S): Rename to @U.
11811         * macros/tmac.e (@z): Define @b and bp as empty instead of
11812         deleting them,
11814         * macros/tmac.e (@m): Deleted.
11815         (@h): Don't call @m.
11816         (@z): Don't set @m trap.
11818         * macros/tmac.e ($h, $f): Define |z as empty string.
11820         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
11821         (@q): Likewise.
11823         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
11824         removing them.
11825         ()f): Likewise for * register.
11827         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
11828         argument is missing, don't change $R.  Call sr with three
11829         arguments when initializing.
11831 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
11833         * macros/tmac.e (sr): New macro.
11834         Initialize $r and $R using sr.
11836         * macros/tmac.e (,): Delete \*(#[.
11838         * troff/env.c (set_tabs): Read the tab type even if the position
11839         is bad.  Allow the position of the first tab stop to be negative.
11841 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
11843         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
11844         _POSIX_VERSION.
11845         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
11846         rather than -DPATHCONF_MISSING.
11847         * Makefile: Get rid of PATHCONF_MISSING.
11849         * refer/map.c: New file.
11850         * refer/index.c: Interface to mmap through map.c.  Rename map_size
11851         to map_len.
11852         * refer/Makefile: Handle map.c.
11853         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
11855 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
11857         * Makefile: RANLIB should be `true' if there is no ranlib.
11858         * lib/Makefile (libgroff.a): Simplify.
11859         * driver/Makefile (libdriver.a): Simplify.
11861         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
11862         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
11863         defined.
11865 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
11867         * troff/env.c (compare_ranges): Declare as extern "C".
11869         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
11871         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
11873 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
11875         * pic/troff.c (troff_output::text): Merge in grops_output::text,
11876         but conditionalize use of \X based on \*(.T.
11877         (grops_output::*): Deleted.
11878         * pic/output.h: Delete declaration of make_grops_output.
11879         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
11880         by default. -n sets it to 0.
11881         (usage): Corresponding changes.
11882         * groff.c (main): Don't pass -x or -p to pic.
11883         * groff.sh: Likewise.
11885         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
11886         to be non-zero.
11888         * ps/devps/afmtodit: Change calculation of asc_boundary and
11889         desc_boundary.  Make these bounds inclusive.
11890         * ps/devps: Regenerate font files.
11892 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
11894         * macros/tmac.latin1: New file.
11895         * macros/tmac.tty-char: Use tmac.latin1.
11896         (tmac.tty-tr): Deleted.
11897         * macros/Makefile: Install tmac.latin1.
11898         * macros/tmac.dvi: Use tmac.latin1.
11899         * macros/troffrc: Translate \[char160] onto no-break space here.
11900         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
11902 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
11904         * macros/tmac.Xps: Use `do' request.
11906         * macros/tmac.ps: Use `do' request.
11908         * macros/tmac.e (@C): Use `do' request.
11910         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
11911         * macros/Makefile: Install tmac.X*.
11913         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
11914         * tty/Makefile: Don't install tmac.tty*.
11915         * macros/Makefile: Install tmac.tty*.
11917         * dvi/tmac.dvi: Move to macros.
11918         * dvi/Makefile: Don't install tmac.dvi.
11919         * macros/Makefile: Install tmac.dvi.
11921         * ps/tmac.ps*: Move to macros.
11922         * ps/Makefile: Don't install tmac.ps*.
11923         * macros/Makefile: Install tmac.ps*.
11925         * eqn/box.c: Provide draw_lines parameter corresponding to -D
11926         option.
11927         * macros/eqnrc: Set draw_lines parameter based on device.
11928         * groff.c: Don't pass -D flag to eqn.
11929         * groff.sh: Likewise.
11930         * eqn/main.c: Warn about use of -D.
11932         * troff/input.c (process_startup_file): New function.
11933         (main): Call process_startup_file().
11934         * macros/troffrc: New file.
11935         * macros/Makefile: Install troffrc.
11936         * groff.c (main): Don't pass extra -m option to troff. For a 
11937         pseudo device pass the name of the pseudo device to troff using
11938         -d.
11939         * groff.sh: Likewise.
11940         * groff.c (possible_command::prepend_arg): Deleted.
11942         * troff/input.c (do_request): New function.
11943         (init_input_requests): Bind "do" to do_request.
11945         * eqn/main.c (main): Instead of loading eqnchar from device directory,
11946         load eqnrc from macro directory.
11947         * macros/eqnrc: New file.
11948         * macros/Makefile: Install eqnrc.
11949         * ps/devps/eqnchar: Deleted.
11950         * ps/devps/Makefile: Don't install eqnchar.
11951         * dvi/devdvi/eqnchar: Deleted.
11952         * dvi/devdvi/Makefile: Don't install eqnchar.
11953         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
11954         variable optM.
11956         * lib/device.[ch]: New files.
11957         * lib/font.h (font::set_device_name, font::get_device_name):
11958         Deleted.
11959         * lib/fontfile.c: Use device.h.
11960         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
11961         * troff/input.c: Delete definition of `device'.
11962         (main): Don't initialize device.
11963         * troff/troff.h: Include device.h rather than declaring device.
11964         * troff/Makefile: No need to handle DEVICE.
11965         * driver/input.c: Include device.h. Don't use
11966         font::{set,get}_device_name.
11967         * groff.c, Makefile: Rename device.h to config.h.
11968         * groff.c: Use library device variable.
11969         * eqn/main.c: Use library device variable.
11970         * eqn/Makefile: No need to handle DEVICE.
11972         * lib/searchpath.[ch]: New files.
11973         * lib/Makefile: Handle searchpath.[ch].
11974         * troff/input.c (open_file, init_dirs): Deleted.
11975         (macro_dirs): Deleted.
11976         (open_mac_file, macro_source): Use class search_path.
11977         (add_string, struct string_list): Move definition.
11978         (main): Change -M option to use macro_path. Delete call to
11979         init_dirs().
11980         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
11981         Rewrite to use class search_path.
11982         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
11983         * lib/Makefile: fontfile.c depends on searchpath.h.
11984         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
11985         MACROPATH.
11986         * lib/macropath.[ch]: New files.
11987         * troff/Makefile: No need to handle MACROPATH.
11989         * troff/input.c: Delete DUMP code.
11990         * lib/fontfile.c, lib/font.h: Delete
11991         font::forget_command_line_font_dirs.
11993         * troff/input.c (push_token): New function.
11994         (handle_first_page_transition): Use push_token().
11995         (process_input_stack): Change handling of a space at the beginning
11996         of the line.
11998 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
12000         * troff/input.c (font_dirs): Delete unused variable.
12002         * eqn/lex.c (do_set): Correct error messages.
12004 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
12006         * troff/input.c (do_define_string): Allow the string name to be
12007         followed immediately by a tab.
12008         (define_character): Likewise.
12010 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
12012         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
12013         be negative.
12015         * troff/input.c (input_iterator::is_file): New virtual function.
12016         (file_iterator::is_file): New function.
12017         (input_stack::end_file): New function.
12018         (input_stack::next_file): Handle the situation where there is no
12019         file on the input stack correctly.  Avoid making two passes over
12020         the input stack.
12021         (next_file): Make the filename optional; in this case call
12022         input_stack::end_file().
12024 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
12026         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
12027         produce a real _ charater when the current font is CW and _
12028         otherwise.
12030         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
12031         expression to work around gcc 2.2 bug.
12033 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
12035         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
12037         * troff/env.c (environment::add_padding): New function.
12038         (environment::add_char): Use add_padding().
12039         (environment::space): Likewise.
12040         (environment::wrap_up_field): Add some padding if there is none
12041         and there's no current tab.
12042         * troff/env.h: Declare environment::add_padding.
12044 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
12046         * pic/pic.y: undef fmod and rand before declaring them.
12048 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
12050         * troff/input.c (main): If the DESC file specifies a font name of
12051         0, then leave the corresponding font position empty.
12053         * nroff.sh: New file.
12054         * Makefile (install.nobin): Install nroff.sh.
12056         * tty/devlatin1/R.proto: Add ao as synonym for de.
12057         * tty/tmac.tty-char: Define ao as o.
12059         * tty/dev{ascii,latin1}/R.proto: Add aq.
12060         * tty/tmac.tty-char: Delete definition of aq.
12062 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
12064         * troff/input.c (init_charset_table): Don't translate 0240.
12065         * ps/tmac.ps: Translate char160 to space.
12066         * dvi/tmac.dvi: Likewise.
12067         * tty/tmac.tty: Likewise.
12069 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
12071         * dvi/tmac.dvi: Add support for all Latin-1 characters.
12073         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
12074         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
12075         \(oe, \(r?, \(r!.
12077         * tty/tmac.tty-char: Add \(ah.
12079         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
12080         No need to define \(FM and \(!/. Conditionalize all character
12081         definitions.
12083         * ps/devps/lgreekmap: Add +h, +f, +p.
12085         * ps/tmac.psnew: New file.
12086         * ps/Makefile: Install tmac.psnew.
12088         * troff/input.c (charinfo_to_node_list): Don't ever interpret
12089         character definitions in compatible mode.
12091         * troff/input.c (remove_character): New function.
12092         (init_input_requests): Bind remove_character to "rchar".
12094         * ps/tmac.psold: New file.
12095         * ps/Makefile: Install tmac.psold.
12096         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
12097         characters into tmac.psold.  Make these definitions unconditional.
12099         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
12101         * ps/tmac.ps: Don't define \('c and \('C.
12103         * ps/devps/textmap: Move Greek characters to...
12104         * ps/devps/symbolchars:
12106 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
12108         * ps/devps/text.enc: Add quotesingle.
12109         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
12110         * tty/tmac.tty-char: Likewise.
12111         * dvi/devdvi/texmi.map: Add +h, +f, +p.
12112         * dvi/devdvi/texi.map: Add Fn.
12113         * dvi/devdvi/msam.map: Add lz.
12114         * dvi/tmac.dvi: Handle Bq, bq, aq.
12116         * pic/lex.c (get_token): Recognize 'th.
12117         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
12119 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
12121         * ps/devps/textmap: Move di, mu, +- to...
12122         * ps/devps/symbolchars:
12124         * macros/tmac.s (@XS): Don't call par@reset or fi.
12125         (XA): Call LP. Turn off adjustment. Reduce line length.
12127         * macros/tmac.s: Initially alias XS to LP.
12128         (XS): Rename to @XS.
12129         (cov*ab-init): Alias XS to @XS.
12131 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
12133         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
12134         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
12135         (token::is_size, token::changes_env): Deleted.
12136         * troff/number.c (parse_term): No need to process \s explicitly.
12137         Call tok.next() only after scale indicator has been processed.
12138         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
12139         \f etc explicitly.
12140         (token::next): Handle \s, \f, \S, \H immediately rather than
12141         returning them as tokens.
12142         (token::operator==, token::description, token::add_to_node_list,
12143         token::process): Remove handling of deleted tokens.
12145         * troff/env.c (environment::add_char): When adding padding
12146         indicator character, call start_line() if necessary.
12148 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
12150         * ps/devps/afmtodit: Don't output 0 kerns.
12152         * ps/devps/afmtodit: Remove directory from name of encoding in
12153         font description file.
12155         * ps/devps/afmtodit: Improve error messages.
12157         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
12159         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
12160         * ps/devps/FontMakefile: Deleted.
12161         * ps/devps/afmname: New file.
12163         * ps/devps/symbol.sed: New file.
12164         * ps/devps/symbol.diff: Deleted.
12165         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
12166         Generate zapfdr.afm from zapfd.afm.
12168         * tty/tmac.tty (tty-char): Prefix definition with ".
12170         * macros/tmac.an (TP): Don't start a diversion if one has already
12171         been started.
12173         * tty/tmac.tty-char: Add Latin-1 characters.
12175         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
12177 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
12179         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
12180         Move declaration of struct horizontal_span.
12182         * tbl/table.c (table::table): Initialize span_list.
12183         (table::~table): Delete span_list.
12185         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
12187         * ps/devps/Makefile: Avoid dependency on GNU make.
12189         * ps/tmac.ps: Check that character does not already exist before
12190         defining it.
12192         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
12193         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
12194         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
12195         files.
12197         * tty/tmac.tty-char: New file.
12198         * tty/Makefile: Install tmac.tty-char.
12199         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
12200         tmac.tty-char.
12202         * tty/tmac.tty: Fix definition of \(34.
12204         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
12205         bracket-drawing characters onto |. Add *o.
12207         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
12208         only if current_field.
12210         * troff/dictionary.c (dictionary::lookup): Free old_table after
12211         rehashing. 
12213 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
12215         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
12216         whose glyphs are identical to glyphs of some Roman character.
12218         * tty/devlatin1/R.proto (bu): Deleted.
12219         * tty/devascii/R.proto (bu): Deleted.
12220         * tty/tmac.tty: Add definition of \(bu.
12222         * eqn/main.c (do_file): Pass FILE as argument.
12223         (main): Automatically load eqnchar.  New options -F and -n.
12224         Pass do_file an opened FILE.
12225         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
12226         No need to include font.h.
12227         * groff.sh: Likewise.  Don't need to use - for standard input.
12228         Prefix files with -- if first file starts with -.
12230         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
12232         * troff/env.c (environment::possibly_break_line): Don't set line
12233         to 0 across call to output_line().  Don't call output_line() until
12234         after discarding nodes after break.
12236 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
12238         * request.h (macro::empty): Declare it.
12239         * input.c (macro::empty): New method.
12240         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
12241         macro is empty.
12243 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
12245         * troff/env.c (environment::start_field): Decrement space_total
12246         when a space is frozen.
12248 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
12250         * macros/tmac.an (R): Delete macro.
12252         * troff/input.c (get_copy, token::next): Support \# (like \" but
12253         newline is ignored).
12255         * troff/input.c (token::next): Fix error message in 'Y' case.
12257 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
12259         * eqn/delim.c (define_extensible_string): Recognize any prefix of
12260         a delimiter name.
12262 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
12264         * c++test.c: Include <osfcn.h>.
12266         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
12267         <errno.h> doesn't.
12269 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
12271         * tbl/table.c (table::divide_span): Don't count column separation
12272         if expand was specified.
12274         * tbl/main.c (process_format): Don't ignore width specs in
12275         continued format.  Give warning for changing equal widths or
12276         column separation in continued format.
12277         (process_data): Set column separation, minimum width, equal
12278         columns at end of table.
12280 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
12282         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
12283         node::add_discretionary_hyphen): Use soft_hyphen_char.
12284         (set_soft_hyphen_char): New function.
12285         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
12287         * Makefile (c++tested): Give more helpful message if test fails.
12289 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
12291         * troff/input.c (init_charset_table): Translate 0240 to
12292         an unbreakable space.
12294         * troff/token.h (token::hyphen_indicator): New function.
12295         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
12296         translation.
12297         * troff/input.c (translate): Allow translation to \%.
12298         * troff/node.c (node::add_char): Handle
12299         TRANSLATE_HYPHEN_INDICATOR.     
12300         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
12302         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
12303         for \(hy.
12305         * tty/devlatin1/R.proto: \(hy and - should print as 055.
12307 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
12309         * groff.c (run_commands): If the last command gets a SIGPIPE send
12310         a SIGPIPE to all children than haven't yet terminated.  When
12311         command terminates, set pid field to -1.
12313 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
12315         * groff.c (main): Pass an appropriate -filename option to gxditview.
12317 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
12319         * Makefile.bd (install): Remove existing program before copying.
12321         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
12322         programs which have Unix counterparts to be installed with
12323         user-specified prefix.
12325         * troff/input.c (exit_troff): Don't check if exit_started.
12326         (exit_request): Don't call exit_troff if exit_started.
12328         * Makefile.bd (install.mm): Rename to install.dwbmm.
12330 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
12332         * driver/input.c (do_file): Add missing break for '#' case.
12334 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
12336         * troff/input.c (input_stack::clear):  Clear past any boundaries and
12337         then add the boundaries back.
12339         * troff/input.c (exit_troff): Return immediately if already
12340         exiting.
12342         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
12343         end macro.
12344         (pg*end-page): If the text has ended and there are no more
12345         footnotes or keeps, exit.
12347         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
12349         * troff/input.c (init_charset_table): Make \(rq transparent by
12350         default.
12352         * macros/tmac.an: Define lq and rq strings.
12354         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
12356 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
12358         * troff/env.c (environment::final_break): New function.
12359         (environment::newline): Set prev_line_interrupted to 2 if
12360         exit_started.
12361         * troff/env.h: Declare environment::final_break.
12362         * troff/input.c (exit_troff): Call environment::final_break()
12363         instead of environment::do_break().
12365         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
12366         doesn't already exist.
12367         * macros/man.local: New file.
12368         * macros/tmac.an: Load man.local.
12369         * macros/man.ultrix: New file.
12371 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
12373         * troff/input.c (exit_groff): Rename to...
12374         (exit_troff): New function.
12376         * troff/div.c (exit_started, done_end_macro,
12377         seen_last_page_ejector): New global variables.
12378         (began_page_in_end_macro): New static variable.
12379         (exit_flag): Deleted.
12380         (top_level_diversion::top_level_diversion): Initialize
12381         last_page_count.
12382         (top_level_diversion): More elaborate test for whether
12383         cleanup_and_exit() should be called.
12384         Set began_page_in_end_macro if the end macro isn't yet finished.
12385         * troff/div.h (top_level_diversion::last_page_count): New data
12386         member.
12387         (top_level_diversion::set_last_page): New function.
12388         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
12389         * troff/env.c (do_break): Zero prev_line_interrupted.
12390         * troff/input.c (exit_flag): Delete declaration.
12391         (LAST_PAGE_EJECTOR): New magic cookie.
12392         (token::next): Handle LAST_PAGE_EJECTOR.
12393         (exit_groff): Set exit_started and done_end_macro instead of
12394         exit_flag.  Call top_level_diversion::set_last_page.  Push a
12395         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
12396         another ejection after setting seen_last_page_ejector.
12398 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
12400         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
12402         * macros/tmac.e (TH): Make sure there's room for the initial
12403         header.
12405         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
12406         Set FVS in points rather than units.
12408 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
12410         * troff/div.c (top_level_diversion::add_trap): Don't consider the
12411         position of empty slots.
12413 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
12415         * ps/devps/S: Fix height and depth of parenrightex.
12416         * ps/devps/symbol.diff: Regenerate.
12418 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
12420         * tmac.e (u): Do underlining as in -mgs.
12422 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
12424         * tty/tty.c (tty_printer::end_page): If overstriking is
12425         suppressed, still turn overstruck horizontal and vertical lines
12426         into +.
12428         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
12429         2.1.
12431         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
12433 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
12435         * Version 1.05 released.
12437 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
12439         * tty/tty.c: Instead of keeping an array of glyphs and then
12440         sorting it, keep a ordered linked list of glyphs for each line.
12442         * driver/driver.h: Include stddef.h.
12444         * tty/tty.c (compare_glyph):
12445         * refer/refer.c (rcompare):
12446         * troff/env.c (compare_ranges): Arguments of qsort comparison
12447         function should be const void *.
12449         * troff/number.c (parse_term):
12450         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
12451         switch statement.
12453         * refer/label.y (consider_authors): Don't access variables
12454         constructed under a condition outside that condition: put braces
12455         round for statement containing declaration; redeclare use of same
12456         variable later.
12458         * pic/pic.y (text_expr): Delete production that allows
12459         parenthesised text_expr.
12460         (expr): Allow a conditional_expr to appear in parentheses.
12461         (conditional_expr): Rename to any_expr.
12463         * mm: Install new version 1.01 from jh.
12465         * lib/font.c (font::get_width): Cache scaled widths.
12466         (font::font): Initialize widths_cache.
12467         (font::~font): Destroy widths_cache.
12468         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
12470 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
12472         * c++test.c, c++test.ref: New files.
12473         * Makefile: Check that the C++ compiler works.
12475         * ps/tmac.pspic (PSPIC): Do a break.
12477         * ps/tmac.ps: Move definition of PSPIC into...
12478         * ps/tmac.pspic: New file.
12479         (PSPIC): Draw box around picture, but make it invisible to grops.
12480         * ps/tmac.ps: Load tmac.pspic.
12481         * ps/Makefile: Install tmac.pspic.
12483 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
12485         * lib/font.c (scale_round): If n is negative,
12486         subtract .5 before truncating floating point result.
12488         * lib/fontfile.c: Include <errno.h>.
12490 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
12492         * driver/input.c (get_char): Inline. Don't update current_lineno.
12493         Change callers to up date current_lineno if necessary.
12494         Use get_char() instead of getc(current_file).
12496 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
12498         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
12500 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
12502         * tty/tty.c (tmac.tty): Define \(rg as (R).
12504 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
12506         * lib/lib.h: New define a_delete.
12507         * Use a_delete instead of delete when deleting an array of objects
12508         without destructors.
12510         * lib/lib.h: Rename adelete to ad_delete.
12511         * Change uses of adelete.
12513 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
12515         * eqn/eqn.y: Include lib.h.
12517         * troff/node.c (grow_font_table): Delete old_font_table.
12519         * mm: Install new version from jh.
12521 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
12523         * tbl/table.h (format_type): Make global instead of local to class
12524         entry_format.  Prefix enumerators with FORMAT_.
12525         * tbl/table.c, tbl/main.c: Corresponding changes.
12526         * refer/token.h (token_type): Make global.  Prefix enumerators
12527         with TOKEN_.
12528         * refer/token.[ch]: Corresponding changes.
12529         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
12531         * troff/div.c (node::set_vertical_size): Don't name argument.
12533 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
12535         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
12536         * lib/lib.h: Define adelete accordingly.
12537         * pic/object.c (graphic_object::graphic_object):
12538         * tbl/main.c (format::~format):
12539         * tbl/table.c (table::~table):
12540         * refer/ref.c (reference::~reference, reference::merge,
12541         reference::insert_field, reference::delete_field): Use adelete.
12543         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
12544         * refer/token.h:
12545         * tbl/table.h: Corresponding changes.
12547         * common.c (common_output::dashed_arc, common_output::dotted_arc):
12548         Ensure total_angle is positive.
12550 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
12552         * refer/ref.c (reference::merge, reference::insert_field,
12553         reference::delete_field): Avoid delete[0].
12555         * refer/token.c (init_special_chars): Move calls to cmupper
12556         outside calls to init_two_char_letter to work around bug in gcc
12557         2.0.
12559 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
12561         * lib/new.c (operator new): Use __builtin_new for g++.
12563         * pic/object.c (graphic_object::~graphic_object):  Don't use
12564         delete [] on 0.
12566         * pic/object.c (output::compute_scale): Initialize max_width and
12567         max_height.
12569 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
12571         * troff/input.c (write_request): Call fflush.
12573         * troff/node.h (class composite_node): Move declaration to node.c
12574         * troff/input.c (charinfo_to_node): Rename to ...
12575         (charinfo_to_node_list): Return node list rather than composite
12576         node.
12577         * troff/node.c (make_composite_node): New function.
12578         (make_node, add_char): Call make_composite_node instead of
12579         charinfo_to_node.
12580         (class composite_node): Add a tfont * member.  Delete font_size
12581         member.
12582         (composite_node::composite_node, composite_node::copy,
12583         composite_node::size): Corresponding changes.
12584         (composite_node::tprint): Provide constant spacing, emboldening
12585         and track kerning as specified in tfont.
12586         (composite_node::width): Change width calculation accordingly.
12587         * troff/env.h (environment::composite): New member.
12588         (environment::is_composite, environment::set_composite): New
12589         functions.
12590         * troff/env.c (environment::environment): Initialize composite.
12591         * troff/input.c (charinfo_to_node): Call
12592         environment::set_composite.
12593         * troff/node.c (make_composite_node, make_glyph_node): Use the
12594         plain version of the tfont if the environment is composite.
12596         * troff/node.c (font_info::get_space_width): Additional argument
12597         giving space_size.  Handle constant space correctly. Scale by
12598         space_size unless constant spaced.
12599         (env_sentence_space_width): New function.
12600         * troff/node.h: Declare it.
12601         * troff/env.h (environment::get_space_size,
12602         environment::get_sentence_space_size,
12603         environment::get_narrow_space_width,
12604         environment::get_half_narrow_space_width): Make inline.
12605         (environment::get_space_width): Make inline.  Just call
12606         env_space_width.
12607         * troff/env.c: Delete definitions for funtions made inline.
12608         (environment::space_newline, environment::space): Use
12609         env_sentence_space_width(). Don't scale by space_size.
12610         * troff/node.h: Move declarations of env*space_width() functions
12611         into env.h.
12613 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
12615         * macros/tmac.s (PS): Don't try to set negative indent.
12617 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
12619         * pic/pic.y: Fix min function.
12621 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
12623         * man/mdate.sh: Clear LANGUAGE.
12625 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
12627         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
12628         * pic/lex.c: New COMMAND keyword.
12629         * pic/pic.y (print_args, print_arg): New rules.
12630         (placeless_element): Use print_args for PRINT.
12631         New COMMAND element.
12633 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
12635         * troff/input.c (terminal): Handle missing argument correctly.
12637         * pic/pic.y (text_expr): New rule.
12639         * pic/pic.y: Implement := operator.
12641 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
12643         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
12644         mdoc.
12646 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
12648         * ps/devps/dingbatsrmap: Include this in the distribution.
12650         * macros/tmac.doc: Replace with new version from 2nd Networking
12651         Release. Fix loading of doc-* files.
12652         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
12653         * macros/tmac.doc.old: New file.  Apply fixes that had been
12654         applied to old tmac.doc.
12655         * macros/tmac.andoc: Check that we're running under groff.
12656         * macros/Makefile: Rework.
12658 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
12660         * tbl/table.h (format_type): 
12661         * refer/token.h (token_type): If NESTED_TYPES is defined, use
12662         typedef to make these types visible at file scope.
12663         * Makefile: Add NESTED_TYPES configuration option.
12665         * troff/div.c (mark): At the top level use the value of
12666         nl_reg_contents rather than the current vertical position.
12668 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
12670         * tty/tty.c: Implement \D for horizontal or vertical lines.
12671         (tty_printer::set_char): Use vec_used+2 as serial number.
12672         Don't allow size of vector to exceed USHRT_MAX-2.
12673         Split off part into...
12674         (tty_printer::add_char): New function.
12675         (tty_printer::draw): New function.
12676         (compare_glyph): Handle equal serial numbers.
12677         (tty_printer::end_page): Handle overstruck characters from \D.
12678         (main, usage): Implement -d option.
12680 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
12682         * tbl/main.c (process_format):
12683         * eqn/text.c (split_text):
12684         * troff/input.c (token::next): Use inner block for declarations
12685         with initializers in switch statement.
12687 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
12689         * pic/common.c (common_output::dash_line): Cope with zero-length
12690         lines.
12692 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
12694         * Version 1.04 released.
12696 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
12698         * macros/tmac.an (TH): Define a macro an-init to define variables
12699         based on command line arguments.
12700         (an-header): Call it.
12702 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
12704         * Makefile (install.mm): Rename to install.dwbmm.
12706         * Makefile: Integrate mm.
12707         * mm: New directory.
12709 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
12711         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
12712         <sys/types.h>.
12714         * pic/troff.c (troff_output::simple_spline,
12715         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
12716         shadowing parameter.
12718         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
12720         * lib/ptable.h: Add explicit casts when converting from unsigned
12721         long to unsigned.
12723         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
12724         * dvi/devdvi/Makefile: Install SA, SB.
12726         * refer/indxbib.c: Add declaration of mktemp.
12728         * refer/lookbib.c: Add declaration of isatty.
12730 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
12732         * pic/lex.c (interpolate_macro_with_args):  While collecting
12733         arguments, keep track of whether we're in a string.
12735 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
12737         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
12738         down with \v, so as to avoid problems with top of page trap
12739         setting no space mode.
12741 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
12743         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
12745 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
12747         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
12748         Improve error message.
12750 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
12752         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
12753         printf("%03o");
12755 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
12757         * groff.c (possible_command::execp): Always use _exit() after a
12758         failed exec.
12760         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
12761         NO_SYS_WAIT_H   configuration options.
12762         * groff.c: Use these options.  Use POSIX-style macros to extract
12763         fields from the status returned by wait().
12765 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
12767         * tbl/table.c (table::compute_separation_factor): Allow the
12768         separation factor to drop to 0.
12770 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
12772         * refer/search.c: Include <errno.h>.
12774 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
12776         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
12778         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
12779         C++. 
12781         * pic/lex.c (input_stack::bol): Move definition out of class body.
12783         * pic/main.c: On MSDOS munge argv[0].
12785         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
12787         * lib/ptable.c (hash_string): Use unsigned long rather than
12788         unsigned.
12789         (next_ptable_size): Use unsigned rather than int.  Give an error
12790         message if we've hit the largest table size.
12791         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
12792         table size.
12794         * pic/object.h (object_spec): Make flags unsigned long.  Declare
12795         flags as const unisgned long rather than as enums.
12797         * pic/output.c: Deleted.
12799         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
12801         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
12802         Add additional argument.
12803         (line_entry::note_double_vrule_on_{left,right}): Set value of
12804         douvle_vrule_on_{right,left} flag according to argument.
12805         (simple_line_entry::simple_print,
12806         simple_line_entry::double_line_print): If adjacent to double vrule
12807         on a corner extend rather than shorten the rule by half the double
12808         vrule sep.
12810         * troff/number.c (parse_term): In checking for overflow, handle the
12811         case where the current horizontal position is negative.
12813 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
12815         * pic/object.c (draw_arrow): Check for object having zero length.
12817 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
12819         * eqn/main.c (do_file): Split off inline equation handling into...
12820         (inline_equation): New function.  Search for starting delimiter
12821         using...
12822         (delim_search): New function. Don't recognize a delimiter that
12823         occurs in the name of an escape sequence, number register, string
12824         etc.
12826 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
12828         * eqn/delim.c (delim_box::compute_metrics): Don't call
12829         define_extensible_string if left is 0.
12830         (delim_box::output):  Don't print the left delimiter if left is 0.
12831         (delim_box::debug_print): Check for left == 0 before calling printf.
12833 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
12835         * troff/Makefile (majorminor.c): Include only digits in
12836         minor_version.
12838 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
12840         * refer/dirnamemax.c: new file.
12841         * refer/genlimits.c: Deleted.
12842         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
12843         Don't check path length.
12844         * refer/Makefile: Add dir_name_max.o; delete genlimits.
12845         * Makefile: Add PATHCONF_MISSING option.
12847         * refer/indxbib.c (get_cwd): New function.
12848         (main): Use get_cwd().
12849         * lib/getcwd.c: New file.
12850         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
12851         GETCWD in SUBFLAGS.
12852         * lib/Makefile: Compile getcwd.o.
12854         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
12855         userdict.
12857         * refer/indxbib.c (main): Check success of mktemp.
12859         * lib/tmpfile.c: New file.
12860         * lib/Makefile: Add tmpfile.c.
12861         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
12862         * ps/ps.h: Delete declaration of mktemp().
12863         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
12864         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
12865         * driver/driver.h: No need now to include errno.h.
12867         * everywhere: Set errno to 0 before calling fopen().
12869         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
12870         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
12871         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
12873 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
12875         * troff/env.h (translate_space_to_dummy): Declare it.
12876         * troff/env.c (environment::space_newline, environment::space):
12877         If translate_space_to_dummy is set then make the width of spaces 0.
12878         * troff/input.c (translate): If the second character of a
12879         translation is a space, translate to unbreakable space.  If the
12880         first character is a space, set or clear translate_space_to_dummy
12881         according to whether the second character is \&.  Weird!
12883 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
12885         * groff.c (run_commands): Don't use non-zero exit code because a
12886         command gets SIGPIPE.
12888         * groff.c, groff.sh: Use -mXps with -TXps.
12890         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
12891         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
12892         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
12893         (ps_printer::special): New specials invis and endinvis.
12894         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
12895         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
12896         (ps_printer::end_page): Check that invis_count == 0.
12897         (ps_printer::invis_count): New member.
12898         (ps_printer::ps_printer): Initialize invis_count to 0.
12900         * troff/env.c (environment::hyphenate_line): Hyphenation
12901         indicator at beginning of word inhibits splitting after -, \(em
12902         etc.
12904         * pic/pic.y (element): Allow another element to follow } without
12905         any intervening separator.
12907 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
12909         * pic/lex.c (get_delimited): Allow tabs before delimiter.
12911 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
12913         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
12914         declaration of wait() in header files.
12915         * Makefile: Get rid of -DHAVE_UNION_WAIT.
12917         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
12919         * lib/lib.h: Declare return type of strerror as char *.
12921         * man/Makefile: Add g flag to sed substitutions.
12922         * Makefile (shgroff, bindist): Likewise.
12924 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
12926         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
12927         * ps/devps/prologue (PBEGIN): Define showpage after pushing
12928         userdict.
12930 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
12932         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
12933         userdict.
12935 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
12937         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
12938         group.
12940 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
12942         * troff/input.c (define_number_reg):  If currently undefined,
12943         don't define it if the argument is an invalid expression.
12945         * Makefile: Ignore return value of `if' commands without `else'
12946         parts.
12948         * Makefile: Split up CPPDEFINES into a series of separate
12949         configuration options.
12951         * troff/input.c (init_registers): Use time_t instead of long
12952         unless LONG_FOR_TIME_T is defined.  Use returned result rather
12953         than passing pointer.
12954         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
12956         * lib/Makefile (fontpath.h): Use gendef.
12958 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
12960         * troff/input.c (input_iterator::shift): Delete argument name.
12961         * troff/node.c (suppress_output_file::really_begin_page,
12962         suppress_output_file::really_transparent_char, node::ascii_print,
12963         node::tprint): Delete names of unused arguments.
12965 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
12967         * refer/label.y (string):  Pass $4 to command_error.
12969 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
12971         * Version 1.03 released.
12973 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
12975         * Makefile: Pass definition of SHELL in SUBFLAGS.
12977         * gendef: New file.
12978         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
12979         ps/Makefile: Use gendef to construct header files that are
12980         constructed from the Makefile.
12982         * macros/Makefile: make all should build stripped version of tmac.e.
12984         * refer/Makefile (clean): Remove y.output.
12986 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
12988         * ps/pfbtops.c (main): Add -v option which prints out a version
12989         number.
12990         * ps/Makefile (pfbtops): Link with libgroff.a.
12992 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
12994         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
12995         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
12997         * refer/lkbib.c (main): Always terminate reference with blank
12998         line.
12999         * refer/lookbib.c (main): Likewise.
13001         * refer/linear.c (file_buffer::load): Check that the file is not a
13002         binary file.
13004         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
13005         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
13006         Delete second inclusion of <sys/param.h>.
13008 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
13010         * troff/token.h (token::special): Deleted.
13012         * tbl/main.c (process_format): Rework so that opt->tab_char is
13013         recognized only when appropriate.
13015         * ps/Makefile (clean): Remove pfbtops.
13017 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
13019         * lib/font.c (text_file::next): Don't return if we have got a
13020         blank line.
13022 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
13024         * refer/refer.c (store_reference): Get hash code from old_table[i]
13025         when rehashing the table.
13027 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
13029         * eqn/box.c (box::top_level): Save size and prev size using \R and
13030         restore it afterwards. Set the size to the size at the beginning
13031         of the line.
13032         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
13033         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
13035         * refer/Makefile (limits.h): Use ./genlimits.
13037 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
13039         * refer/index.c: Delete declarations of stat() and fstat().
13041 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
13043         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
13045 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
13047         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
13049 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
13051         * troff/input.c (token::get_char): Handle \e.
13053         * refer/linear.c: Delete declarations of fstat() and stat().
13055 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
13057         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
13058         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
13060 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
13062         * troff/input.c (do_define_macro): Improve error handling for end
13063         of file while defining macro.
13065 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
13067         * eqn/box.h: Fix declaration of set_gsize.
13068         * eqn/box.c (set_gsize): Make argument const char *.
13069         (gsize): Declare as char *.
13070         * eqn/main.c (main): Don't convert gsize to int.
13071         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
13073         * Version 1.02 released.
13075 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
13077         * macros/tmac.andoc: New file.
13078         * macros/Makefile: Install tmac.andoc.
13080         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
13081         operator new and delete on OP_DELETE_BROKEN not being defined.
13082         * Makefile: Mention OP_DELETE_BROKEN.
13084 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
13086         * Makefile (bindist): Pass SUBFLAGS.
13088 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
13090         * Makefile, groff.c: Pass definitions to groff.c via device.h.
13092         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
13093         parameter.
13095         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
13097         * ps/ps.h, ps/psrm.c: Make comment_table and
13098         header_comment_table local to resource_manager::process_file.
13100         * groff.sh: With -TXps pass -printCommand option to gxditview.
13102         * groff.c (possible_command::print): Implement using
13103         append_arg_to_string.
13105         * xditview: Merge in new implementation with own ChangeLog.
13107 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
13109         * groff.c (main): Implement PRINT_OPTION.
13110         (append_arg_to_string): New command.
13111         (device_table): Set PRINT_OPTION flag for Xps.
13113 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
13115         * troff/groff.h: Rename to troff.h.
13117         * pic/lex.c (lookup_keyword, docmp): New functions.
13118         (get_token): Use new lookup_keyword.
13119         Don't include key.h.
13120         * pic/key.[ch], pic/pic.gperf: Deleted.
13121         * pic/Makefile: Remove gperf stuff.
13123         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
13124         into output.h.
13125         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
13127         * troff/Makefile, troff/node.c: Move definition of
13128         STORE_WIDTH into node.c.
13130         * etc/grog.pl, etc/grog.sh: Support -mdoc.
13132 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
13134         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
13135         dvi/devdvi/texb.map: Add lq and rq.
13136         dvi/devdvi: Regenerate fonts.
13137         * ps/devps/textmap: Add lq and rq.
13138         * ps/devps: Regenerate fonts.
13139         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
13140         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
13142         * pic/object.c (position_rectangle): When checking radius
13143         cope with possiblity that width or height is negative.
13144         (box_object::box_object): Have separate xrad and yrad with
13145         signs matching signs of dim components.
13146         (box_object::{north,south}_{east,west}): Use xrad and yrad.
13147         (box_object::print): With rounded boxes use absolute values
13148         for dim and rad arguments.
13150         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
13151         in fontpath.h.
13153         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
13155         * various files: Add explicit destructors to keep Saber CC +d
13156         happy.
13158 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
13160         * eqn/box.c (box::top_level): Restore fonts correctly after
13161         font changes in line containing inline equation.  Also
13162         restore previous font as well as current font.
13163         * eqn/pbox.h: Define necessary string and register names.
13165         * troff/input.c (token::next): Case 'R' calls do_register.
13166         (do_register): New function.
13168 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
13170         * groff.c, groff.sh: Support Xps device.  Allow each device
13171         to have a pseudo_name and a real_name.
13173         * groff.c (run_commands): Don't print `Broken pipe' messages.
13175         * ps/pfbtops.c: New file.
13176         * ps/Makefile: Add pfbtops.
13178         * troff/number.c (parse_term): Improved error message.
13180 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
13182         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
13184         * Makefile: Integrate refer.
13185         * refer: New directory.
13186         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
13187         man/lkbib.man: New files.
13188         * man/Makefile: Support refer man pages.
13190         * lib/lib.h: Declare is_prime.
13191         * lib/prime.c: New file.
13193         * troff/input.c (macro_source): New function.
13194         (init_input_requests): Bind "mso" to macro_source.
13196         * troff/env.c (environment::possibly_break_line): Maintain
13197         pointer to pointer to node to be split in ndp so as to avoid
13198         using address of freed node.
13200         * troff/env.c (environment::hyphenate_line): Maintain pointer to
13201         pointer to first node to be hyphenated in startp so as to
13202         avoid using address of freed node.
13204         * troff/env.c (class trie, class hyphen_trie): Make the
13205         elements of the trie be of type char not unsigned char.
13206         Declare arguments to be const char* instead of unsigned char *.
13207         
13208         * troff/env.c (hyphenate): Initialize hbuf[0].
13210         * troff/input.c (set_string): Declare p to be char * and cast
13211         *p to unsigned char when necessary.
13213         * troff/input.c (do_define_macro): Declare s to be const
13214         char*. Cast element to unisgned char when necessary, Declare
13215         d to be an int.  Handle EOF better.
13217         * troff/Makefile, troff/input.c: Different scheme for passing
13218         definitions of MACROPATH, HYPHENFILE and DEVICE.
13220 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
13222         * tty/devascii/R.proto: Delete entry for em.
13223         * tty/devlatin1/R.proto: Likewise.
13225 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
13227         * troff/input.c (translate): Stop when we get a space. Treat eof
13228         like newline.
13230         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
13232 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
13234         * tbl/main.c (process_format): A font name following a `f'
13235         modifier that starts with a digit can be only one character long.
13236         Also deal with EOF on the second character of the font name.
13238 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
13240         * troff/input.c (token::next): Turn \~ into an
13241         unbreakable_space_node.
13242         * troff/node.c (unbreakable_space_node): New class.
13243         * troff/node.h: Declare it.
13245 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
13247         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
13248         it's >= 0, before outputting it as a single byte.
13250 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
13252         * lib/font.c: Make font_char_metric::code an int.
13253         (font::get_code): Change return type to int.
13254         (font::load): Allow code to be arbitrary integer.
13255         * lib/font.h (font::get_code): Change return type to int.
13256         (font::number_to_index): Change argument type to int.
13257         * troff/input.c (token::next):  In case 'N', allow any value.
13258         Store value in token::val.
13259         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
13260         (token::get_char, token::add_to_node_list, token::process): Get
13261         number from val.
13262         (charinfo::set_number): Change argument to int.
13263         (charinfo::get_number):  Require that NUMBERED flag be set.
13264         (get_charinfo_by_number): Store numbered characters not between 0
13265         and 255 in a dictionary.
13266         * troff/charinfo.h (get_charinfo_by_number): Change argument type
13267         to int.
13268         (charinfo::number): Change type to int.
13269         (charinfo::set_number): Change type of set_number to int.
13270         * troff/node.c (troff_output_file::put_char_width,
13271         troff_output_file::put_char): Test whether character is numbered
13272         using charinfo::numbered().
13273         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
13274         values of num.
13275         * lib/nametoindex.c: New implementation to cope with arbitrary
13276         number characters.
13278         * troff/input.c (token::operator==): Test val for
13279         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
13280         TOKEN_SIZE.
13282         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
13283         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
13285 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
13287         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
13288         variable.
13290         * all Makefiles: rm targets of cp and >.
13292         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
13293         it.
13295         * eqn/lex.c (def_table): Add dollar.
13297 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
13299         * troff/input.c (do_width): Push back newline before closing delim
13300         like do_bracket.
13302 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
13304         * groff.c (possible_command::prepend_arg): New function.
13305         (main): Prepend device -m option.
13306         * groff.sh: Put device -m options before command-line options.
13308 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
13310         * macros/tmac.an (IP): Quote argument to TP.
13312         * ps/ps.c (main): New option -b, which sets...
13313         (broken_flags): New variable.
13314         (ps_printer::~ps_printer): Incorporate the setup section in the
13315         prolog if (broken_flags & NO_SETUP_SECTION).
13316         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
13317         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
13318         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
13319         ps_printer::print_needed_font_comment,
13320         ps_printer::print_supplied_font_comment,
13321         ps_printer::print_include_font_comments,
13322         ps_printer::lookup_doc_font, ps_printer::download_fonts,
13323         ps_printer::read_download_file, read_document_fonts, add_font,
13324         skip_line, parse_fonts_arg, document_font::document_font,
13325         document_font::~document_font, document_font::download,
13326         ps_output::include_file):  Deleted.
13327         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
13328         rather than %!PS-Adobe-2.0.  Make calls to
13329         resource_manager::need_font for each font that we used. Replace
13330         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
13331         print_supplied_font_comment, print_needed_font_comment by call to
13332         resource_manager::print_header_comments. Output %%Orientation
13333         comment. Output %%Requirements: numcopies comment if ncopies > 1.
13334         Don't output the prolog directly.  Instead call
13335         resource_manager::output_prolog.  Only define #copies when ncopies
13336         > 1.  Delete calls to print_include_font_comments  and
13337         download_fonts.  Add call to resource_manager::document_setup.
13338         (ps_printer::do_file): Call resource_manager::import_file instead
13339         of including it ourselves.
13340         (ps_printer::do_import): Likewise.  Also don't call
13341         merge_import_fonts. Push userdict on the dictionary stack before
13342         and pop it afterwards.
13343         Move declaration of ps_output into ps.h.
13344         * ps/psrm.c: New file implementing resource_manager class.
13345         * ps/ps.h: New file declaring ps_output and resource_manager
13346         classes.
13347         * ps/devps/zapfdr.ps:
13348         * ps/devps/symbolsl.ps:
13349         * ps/devps/prologue:  Use 3.0 conventions.
13350         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
13351         Add default definition of BROKEN_SPOOLER_FLAGS.
13352         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
13353         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
13355 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
13357         * etc/grog.pl: New file.
13358         * Makefile (GROG): New variable.
13359         Add GROG to SUBFLAGS.
13360         * etc/Makefile (GROG): New variable.
13361         (install.nobin): Install $(GROG) rather than grog.sh.
13363 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
13365         * eqn/special.c (special_box::compute_metrics): Make the input and
13366         output strings the same.  Get the new height and depth from the
13367         predefined height and depth registers.  Also make subscript kern
13368         and skew available.
13369         (special_box::compute_subscript_kern, special_box::compute_skew):
13370         New functions.
13372         * eqn/box.c (pointer_box::compute_skew,
13373         simple_box::compute_metrics, box::top_level)
13374         * eqn/text.c (prime_box::compute_metrics,
13375         prime_box::comput_subscript_kern)
13376         * eqn/limit.c (limit_box::compute_metrics):
13377         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
13378         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
13379         negative numbers in `nr' requests with a leading 0.
13381 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
13383         * eqn/special.c: New file.
13384         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
13385         Add new rule for simple.
13386         * eqn/lex.c (token_table): Add SPECIAL.
13387         * eqn/box.h: Declare make_special_box.
13388         * eqn/Makefile: Add special.[co].
13390 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
13392         * ps/devps/prologue: Possibly set packing to true while defining.
13393         Create grops dictionary here.  Initialize local variables before
13394         defining procedures.
13395         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
13396         the dictionary stack. Set strokeadjust and overprint to false if
13397         the relevant operators are defined.
13398         (PEND): New procedure.
13399         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
13400         prologue.  Do everything else in the setup section.
13401         (ps_printer::do_import): Just call PBEGIN and PEND around the
13402         picture. Also push userdict before, and pop it afterwards.
13404 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
13406         * troff/node.c (bracket_node::tprint): Brackets were being printed
13407         1m too low.
13409         * macros/tmac.an (SH, SS): Set fill mode.
13411 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
13413         * troff/div.c (top_level_diversion::begin_page): Set
13414         high_water_mark to 0.
13416 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
13418         * man/mdate.sh: New file.
13419         * man/mdate.c: Deleted.
13420         * man/Makefile: Use mdate.sh instead of mdate.
13421         (mdate): Deleted.
13423         * eqn/lex.c (do_gsize): Supply missing argument to error message.
13425 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
13427         * man/mdate.c: New file.
13428         * man/*.man: Replace modification date by @MDATE@.
13429         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
13430         (mdate): New target.
13432         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
13433         Remove illegal input characters.
13435 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
13437         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
13439 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
13441         * troff/div.c (begin_page): Change behaviour when
13442         !first_page_begun and !break_flag.
13444         * troff/input.c (do_name_test): Return 0 if argument is empty.
13446         * troff/input.c (read_long_escape_name): Require closing ] to be
13447         at same input level as opening [.
13449         * troff/input.c (read_increment_and_escape_name): New function.
13450         (get_copy, process_input_stack): Use this for \n.
13452 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
13454         * troff/div.c (top_level_diversion::begin_page): Ignore the
13455         current value of page_number if !first_page_begun.
13457         * groff.c (main): Fix declaration of buf.
13459         * troff/input.c (do_name_test): New function.
13460         (token::next): Implement \A.
13461         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
13462         (token::description, token::add_to_node_list, token::process):
13463         Handle TOKEN_ESCAPE.
13464         * troff/token.h: New token TOKEN_ESCAPE.
13466 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
13468         * pic/main.c (do_picture): Allow space before and after filename
13469         following `<'.  Check that the filename is not empty.
13471 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
13473         * Version 1.01 released. 
13475         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
13477         * dvi/tmac.dvi: ftr HR to H.
13479         * macros/tmac.e: Round up computation of $r.
13481         * xditview/tmac.X:  Don't give up completely in compatibility mode.
13482         Use \n(.s instead of \n[.s].
13484         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
13485         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
13486         Add u to factors inside \s[...]. Rename frac to dvi-frac.
13487         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
13488         short names in the char definitions.
13490         * ps/tmac.ps: Don't give up completely in compatibility mode.
13491         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
13492         quote in front of \n(.s. Add u to factors inside \s[...].
13494 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
13496         * tty/tmac.tty: Call the nroff request.
13498         * macros/tmac.e ((x, )x):  Better definitions that work properly
13499         in a diversion.
13500         (@0, @1): Helper macros for (x.
13502         * macros/tmac.e ($s, hl): Use \l rather than \D.
13504         * tty/tmac.tty: Make it work better in compatibility mode.
13505         (pchar): Rename to tty-char.
13507         * macros/tmac.e (@E): New macro.
13508         (r, i, b, rb, bi): Use @E.
13510         * macros/tmac.e (@F): Don't use (;...) syntax.
13512         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
13513         it was modified for groff.
13515         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
13517         * macros/tmac.e (<., .>): Removed.
13518         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
13520         * macros/tmac.e: Remove check that groff is being used.
13522         * macros/tmac.e (@C): Change families only if using groff; turn
13523         compatibility mode off while changing familes. Save compatibility
13524         mode before changing families and restore it afterwards.
13526         * macros/tmac.e (@h): Remove test for offset + line length.
13528         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
13529         (lo, th, ac): Define to call @S instead of using als.
13531         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
13532         the ratio of the vertical spacing to the point size in units
13533         expressed as a percentage.  Use these instead of $10r and $10R,
13534         Delete $10r and $10R.
13536         * lib/font.c (font::load): In default computation of space_width,
13537         divide by sizescale.  Use scale_round.
13539         * macros/tmac.an (TP): Don't call `nf'.
13540         (an-do-tag): Don't call `fi'.
13542 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
13544         * troff/input.c (process_input_stack): Handle the case where
13545         spaces at the beginning of an input line are followed by a
13546         newline.
13548 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
13550         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
13551         * groff.sh: Use pic -x with the dvi device.
13553         * dvi/devdvi/FontMakefile (H): Don't use -s.
13555         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
13556         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
13557         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
13558         in FONTS.
13560 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
13562         * ps/psfig.diff: New file.
13563         * ps/tmac.psfig: New file.
13565 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
13567         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
13568         (]-): Don't call ref*do-tl.
13570         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
13572         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
13573         (fn@do-FS): Rename to fn*do-FS.
13575         * troff/input.c (transparent_translate): New function.
13576         (process_input_stack): Apply transparent_translate before calling
13577         diversion::transparent_output(unsigned char).
13579 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
13581         * troff/input.c (do_define_macro): Define the macro before calling
13582         skip_line.
13584         * xditview/Makefile: Add DEVICES variable.  Change install target
13585         to use this.
13587 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
13589         * groff.c (run_commands): Handle the possibility that there are
13590         child processes other than those forked by us.
13592 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
13594         * lib/string.c (string::append): New function.
13595         * lib/stringclass.h: Declare it.
13597 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
13599         * eqn/main.c (main): New option -N which sets
13600         no_newline_in_delim_flag. 
13601         (do_file): If no_newline_in_delim_flag is set don't allow newlines
13602         in delimiters.
13603         * groff.c (main): Pass -N on to eqn.
13604         (help, synopsis): Mention -N.
13605         * groff.sh: Implement -N.
13607 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
13609         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
13610         (]-): Call ref*do-tl if ref*need-tl is non-zero.
13611         (XP): Allow as initializer.
13613 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
13615         * troff/env.c (environment::wrap_up_field): If field_spaces are
13616         non-zero and we have a current_tab, subtract padding from
13617         tab_distance.  If this makes tab_distance <= 0, use the next tab
13618         stop instead.  If there isn't any next tab or it's a left tab,
13619         wrap up the current tab.
13620         (environment::start_field): Initialize tab_precedes_field.
13621         (environment::wrap_up_tab): If there's a current field, update
13622         pre_field_width, field_distance and tab_precedes_field.
13623         * troff/env.h (environment::tab_precedes_field): New member.
13625 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
13627         * ps/ps.c (ps_printer::do_file): New function.
13628         (ps_printer::special): Bind to `file' special.
13629         (ps_printer::do_exec): Set ndefined_styles to 0.
13631 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
13633         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
13634         Avoid stripping first character from the start of unrecognized
13635         escapes.  Use lex_error instead of error to report errors.
13636         * eqn/lex.c (get_token): Rework handling of escapes.
13637         (lex_error): Move declaration into...
13638         * eqn/eqn.h.
13640         * xditview/xditview.c (main): Make -page option work.
13642         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
13644 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
13646         * macros/tmac.s (B2): Correct size of box.
13648 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
13650         * macros/tmac.s (B2): Postpone drawing the box until in the
13651         top-level diversion.
13653         * tty/tmac.tty: Add font translations for C, CR, CW.
13655         * groff.c (synopsis, help): Document -i.
13656         * groff.sh: Implement -i.
13658         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
13659         Simplify the construction of SN.
13661         * troff/number.c (parse_term): Give `|' a higher precedence.
13662         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
13663         accordingly.
13665         * macros/tmac.s (B2): Use par@finish instead of par@reset.
13667 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
13669         * lib/string.c (string::move): New function.
13670         * lib/stringclass.h: Declare it.
13672 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
13674         * troff/env.c (distribute_space): Add optional argument
13675         `force_forward'.
13676         (environment::wrap_up_field): Call distribute_space with
13677         `force_forward' argument of 1.
13679 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
13681         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
13682         Inline it.  Move reallocation into...
13683         (string::grow1): New function.
13684         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
13685         dependencies to include library header files.
13686         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
13688 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
13690         * macros/tmac.s (@NH): Use the same number registers than -ms does
13691         for the heading level counters.  Use the same string that -ms does
13692         for the number for this heading.
13694 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
13696         * lib/new.c (operator new): Cast result of malloc to char *.
13698         * troff/input.c (spring_trap, lookup_request): Add assert that nm
13699         is not null.
13701 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
13703         * groff.c (main): Support -i.
13705 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
13707         * pic/pic.h: Include <osfcn.h>.
13709         * ps/ps.c: Add declaration of mktemp.
13711         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
13712         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
13713         argument as union wait *.
13714         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
13715         argument to union wait *.
13717 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
13719         * tty/tmac.tty: Add definition of \(co.
13721         * pic/object.c (make_arc): Only increase radius when radius
13722         strictly less than d.
13723         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
13724         more than once.
13726         * troff/env.c (environment::environment(symbol),
13727         environment::environment(const environment *)):  Initialize
13728         input_trap_count.
13730 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
13732         * tbl/main.c (main): Add exit(0).
13734         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
13736         * pic/main.c (main):
13737         * eqn/main.c (main):
13738         * tbl/main.c (main):
13739         * etc/soelim.c (main):
13740         * driver/printer.c (printer::~printer):
13741         * troff/node.c (real_output_file::~real_output_file,
13742         real_output_file::flush):  Check for errors on stdout.
13744         * most files: Add 1991 to copyright notice.
13746         * macros/tmac.s: Don't test \n(.x and \n(.y.
13748         * troff/input.c (token::next): Rename `escape_char' label to
13749         `handle_escape_char' and `normal_char' label to
13750         `handle_normal_char'.
13752 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
13754         * groff.c (main, synopsis, help): Support -a option.
13755         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
13756         to trflags while parsing options.
13758 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
13760         * troff/number.c (parse_term): With `m', `M' and `n' scale
13761         indicators, convert scale factor to hunits before scaling.
13763 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
13765         * lib/font.c (scale_round): Better test for overflow when n is
13766         negative.
13768 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
13770         * tbl/main.c (process_format): Add second argument of type
13771         options*. Change callers.  Allow opt->tab_char as well as '\t'
13772         between format items.
13774 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
13776         * macros/tmac.an (PD): With no arguments, make sure register PD is
13777         at least \n[.V].
13778         (TH): Call PD with no argument, instead of setting register PD
13779         directly.
13781 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
13783         * Version 1.00 released.
13785 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
13787         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
13789         * dvi/devdvi/DESC: Mount CW instead of CR.
13791         * dvi/tmac.dvi: Add definition of \(tm.
13793         * dvi/devdvi/texsy.map: Add lh, and rh.
13794         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
13795         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
13797         * dvi/devdvi/FontMakefile: Generate H from cmss10.
13798         * dvi/devdvi/Makefile: Install H.
13799         * dvi/devdvi/H: New file.
13801 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
13803         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
13804         be 0.
13806 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
13808         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
13810         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
13812         * macros/tmac.s (@EN): Handle the case where the equation is empty
13813         but the label is not.
13815 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
13817         * troff/groff.h: New warning category WARN_SPACE.
13818         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
13819         WARN_SPACE to warning_table.
13820         (interpolate_macro): Give a warning of type WARN_SPACE if the name
13821         is longer than two characters and is not defined, but the first
13822         two characters do make a defined name.
13824         * PROBLEMS: New file.
13826         * CHANGES: New file.
13827         * README-0.6, README-1.00: Deleted.
13829         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
13830         * xditview/devX75/Makefile: Make devX75-12.
13831         * xditview/devX100/Makefile: Make devX100-12.
13833         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
13834         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
13836 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
13838         * README-0.7: Rename to README-1.00.
13840         * macros/tmac.pic: New file.
13841         * macros/Makefile (install.nobin): Install tmac.pic.
13843 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
13845         * troff/env.c (hyphen_word): Correct the test for whether the
13846         token is a hyphen.  Reset npos to 0.
13848         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
13850 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
13852         * macros/tmac.s (ds*common-end): Call par*reset.
13853         (PE): Likewise.
13854         (par@reset-indent): Deleted.
13856         * macros/tmac.s (@IP): Divert the label.
13858 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
13860         * xditview/draw.c (setGC): Use a line width of .1m rather than
13861         .04m by default; round rather than truncate value.
13863         * tbl/table.c (class empty_entry): New class.
13864         (empty_entry::empty_entry, empty_entry::line_type): New functions.
13865         (table::add_entry): Represent empty entries by objects of type
13866         empty_entry.
13867         (table_entry::line_type): Return -1.
13868         (table::determine_row_type): Ignore entries with line_type 0.
13869         Treat type -1 as non-lines.
13871 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
13873         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
13874         macros/tmac.s: Rename \(-d to \(Sd.
13876 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
13878         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
13879         * xditview/libXdvi/DviChar.c: Likewise.
13880         * dvi/devdvi/texsy.map: Add `<<', `>>'.
13882 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
13884         * troff/div.c (top_level_diversion::begin_page): Call
13885         init_output() if the_output is 0.
13887 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
13889         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
13890         ESCAPE_c.
13891         (get_copy): Turn \E into ESCAPE_E.
13892         (token::process, asciify): Handle ESCAPE_E.
13894         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
13895         (RD): New macro.
13896         (DS): Implement `.DS R'.
13898 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
13900         * macros/tmac.s (FS): New macro.
13902         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
13904         * macros/tmac.s (cov*tl-init): Remove after first execution
13905         instead of aliasing to @nop.  Call top of page macro explicitly
13906         instead of setting trap; call @init first.  Set pg@top as top of
13907         page macro.
13908         (cov*auto-init): Deleted.  Set cov*tl-init instead of
13909         cov*auto-init as top of page trap. 
13910         (TL, LP): Do a break instead of calling cov*tl-init.
13911         (cov*print): With RP format but no TL, alias FS and FE to @FS and
13912         @FE; in this case also give a warning and always start another
13913         page. No need to set pg@top here.
13914         (cov*tl-init): Rename to cov*first-page-init.
13916         * macros/tmac.s (RP): Do `.pn 0'.
13917         (cov*tl-init): With RP format don't do `.pn 0'.
13919         * macros/tmac.s (pg@cs-top): Set no space mode.
13921         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
13922         (cov*ab-init): Alias TL, AU and AI to these.
13924 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
13926         * macros/tmac.s (@EQ): Move the space before the equation into @EN
13927         (@EN): Do nothing unless \n[dl] is > 0.
13929 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
13931         * pic/object.c (ellipse_object::radius): New function.
13933         * VERSION: Change version to 0.7.
13935         * tbl/table.c (block_entry::do_divert): Declare return type as
13936         void.
13937         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
13939 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
13941         * troff/column.c: New file.
13942         * troff/Makefile: Corresponding changes.
13944         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
13945         Friend of vunits.
13947         * troff/div.c (top_level_diversion::space): If the space causes
13948         the first-page transition and springs a trap, truncate the space
13949         to 0.
13951 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
13953         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
13954         the document.
13956         * pic/troff.c (troff_output::line_thickness,
13957         troff_output::set_fill): Do a horizontal motion to compensate for
13958         the width of the \D escape sequence.
13960 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
13962         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
13963         (not X75).
13965         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
13966         to printf.
13968         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
13969         Supply empty definition.
13970         (text_entry::simple_print, simple_text_entry::simple_print):
13971         Delete declarations.
13972         (table::add_entry): Represent empty entries by objects of type
13973         `simple_entry'.
13975 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
13977         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
13979         * tbl/table.c (left_text_entry::add_tab): New function.
13981         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
13982         initialize like LP.
13984 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
13986         * troff/env.c (environment::start_field): Give an error message if
13987         there is no next tab.
13989 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
13991         * troff/env.c (hyphenate): Skip initial elements with zero
13992         hyphenation code.
13994         * macros/tmac.s (par@init): Keep VS in points rather than units.
13996 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
13998         * pic/main.c (main): Implement `-c' option.
13999         * pic/output.h: Declare make_tpic_output().
14000         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
14001         protected.
14002         (tpic_output): New class.
14003         (tpic_output::tpic_output, tpic_output::set_pen_size,
14004         tpic_output::command, make_tpic_output): New functions.
14006 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
14008         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
14009         if they're not already defined.
14010         * tbl/table.c (init_output): Don't test \n(.g.
14012         * troff/input.c (do_if_request): Delete `g' condition. Recognize
14013         `d', `r' and `c' conditions even in compatibility mode.
14015 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
14017         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
14018         box.
14020 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
14022         * troff/env.h (environment::prev_line_interrupted): New member.
14023         (environment::get_prev_line_interrupted): New function.
14024         * troff/env.c (environment::newline): Set prev_line_interrupted.
14025         (environment::environment(const environment *),
14026         environment::environment(symbol)): Initialize
14027         prev_line_interrupted.
14028         * troff/input.c (process_input_stack): Don't give special
14029         treatment to space and newline at the beginning of the line if the
14030         previous line was interrupted.
14032 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
14034         * eqn/eqn.y: Disallow PRIME by itself.
14035         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
14036         PRIME.
14037         (def_table): Remove definition of '.  Define prime to be `.
14039         * eqn/eqn.y: Split off part of rule `script' into a new rule
14040         `nonsup'.
14042 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
14044         * macros/tmac.s ({, }): New string aliases.
14046 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
14048         * README-0.7: New file.
14050 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
14052         * macros/tmac.s: New file.
14053         * man/groff_ms.man: New file.
14054         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
14055         * Makefile.bd: Similarily.
14056         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
14057         definition of TMAC_S.
14058         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
14059         * macros/TODO: New file.
14061 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
14063         * troff/env.c (right_justify): New function.
14064         (init_env_requests): Bind this to request "rj".
14065         (center_lines): Set right_justify_lines to 0. If we get a bad
14066         integer, center 1 line.
14067         (environment::environment(symbol), environment::environment(const
14068         environment *)): Initialize right_justify_lines.
14069         (environment::get_right_justify_lines): New function.
14070         (init_env_requests): Bind this to number_register ".rj".
14072         * troff/env.c (environment::choose_breakpoint): Implement
14073         hyphenation_margin and hyphenation_space.
14074         (environment::get_hyphenation_space,
14075         environment::get_hyphenation_margin): New functions.
14076         (init_env_requests): Bind these to .hys and .hym.
14077         (hyphenation_space_request, hyphenation_margin_request): New
14078         functions
14079         (init_env_requests): Bind these to hys and hym.
14080         (environment::environment(symbol), environment::environment(const
14081         environment *)): Initialize hyphenation_margin and
14082         hyphenation_space.
14083         * troff/env.h: Corresponding changes to class environment.
14085 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
14087         * troff/div.c (blank_line): Always do a break.
14089         * eqn/box.c (do_text): Turn off escapes while appending text to
14090         string.
14092 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
14094         * troff/input.c (while_break_request, while_continue_request): New
14095         functions.
14096         (init_input_requests): Bind these to "break" and "continue".
14097         (while_depth, while_break_flag): New variables.
14098         (while_request): Update while_depth.  Break out of loop if
14099         while_break_flag is set.
14101 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
14103         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
14104         rather than 0.
14106 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
14108         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
14110         * stringify: New file.
14111         * Makefile (groff.o): Use stringify.
14113         * xditview/tmac.X: Remove definition of \(rn.
14114         * xditview/libXdvi/DviChar.c: Remove radicalex from
14115         Adobe_symbol_map.
14117 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
14119         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
14120         (alphabetic_block_entry::alphabetic_block_entry,
14121         alphabetic_block_entry::divert, alphabetic_block_entry::print):
14122         New functions.
14123         (block_entry::divert): Split off body into ...
14124         (block_entry::do_divert): If the block is alphabetic, subtract 2n
14125         from the line length; also update the span width to dl+2n, and the
14126         alphabetic span width to dl.
14128         * driver/input.c (do_file):  While reading argument to D command,
14129         when expanding buffer, multiply szp by sizeof(int) rather than 2
14130         in the argument to memcpy.
14132         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
14133         width of alphabetic columns.
14135 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
14137         * troff/node.c (lookup_family): Supply second argument to lookup.
14139         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
14140         search, return immediately if v is 0.
14142         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
14143         (troff_output::start_picture): Set this reg.
14144         (troff_output::end_picture): Remove this reg
14145         * eqn/box.c (box::extra_space): Don't produce `\x's if
14146         EQN_NO_EXTRA_SPACE_REG is defined.
14148         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
14149         * eqn/text.c (split_text): Map ' to \(fm when it's the first
14150         character.
14152 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
14154         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
14155         requests.
14157         * troff/div.c (top_level_diversion::top_level_diversion):
14158         Initialize page_number to 0.
14160 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
14162         * groff/troff (environment::environment(const environment *)):
14163         Initialize name to e->name, rather than "anonymous".
14165 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
14167         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
14168         requested_page.  Split middle part into ...
14169         (FindPage): New function.
14170         (SetValues): If we don't yet know the last page, and the requested
14171         page is greater than the current page, call FindPage.
14172         Update the font_map_string before doing this.
14174         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
14175         Translate \(lh and \(rh into left and right double arrows.
14177         * troff/node.c (class hyphen_inhibitor_node): New class.
14178         (hyphen_inhibitor_node::hyphen_inhibitor_node,
14179         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
14180         hyphen_inhibitor_node::type,
14181         hyphen_inhibitor_node::get_hyphenation_type): New functions.
14182         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
14183         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
14184         word.
14186 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
14188         * troff/node.h (dummy_node::get_hyphenation_type,
14189         transparent_dummy_node::get_hyphenation_type):  Declare them.
14190         * troff/node.c: (dummy_node::get_hyphenation_type,
14191         transparent_dummy_node::get_hyphenation_type): New functions.
14193 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
14195         * xditview/libXdvi/draw.c: If M_PI not defined after including
14196         math.h, then define it.
14198         * xditview/Makefile: Add definition of AR. Pass it to the submake
14199         in libXdvi.
14200         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
14202 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
14204         * troff/dictionary.h (object_dictionary::alias): Declare return
14205         value as int.
14206         * troff/dictionary.c (object_dictionary::alias): Return non-zero
14207         if the old name was defined.
14208         * troff/input.c (alias_macro): Give a warning if the old name was
14209         not defined.
14210         * troff/reg.c (alias_reg): Likewise.
14212 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
14214         * troff/input.c (token::next): Delete implementation of \R.
14216         * macros/Makefile: Strip comments from tmac.e while installing it.
14218         * troff/input.c: New variable `nroff_mode'.
14219         (troff_request, nroff_request): New functions.
14220         (init_input_requests): Bind `troff' and `nroff' to troff_request
14221         and nroff_request.
14222         (do_if_request): Compute results of t and n conditions from
14223         nroff_mode.
14225         * text/text.c (split_text): Fix typo in >=.
14227         * eqn/lex.c: Add definition of `==' to def_table.
14229 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
14231         * pic/tex.c (tex_output::start_picture): Change the definitions of
14232         \graph and \graphtemp so that they work properly with Plain TeX.
14234         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
14235         argument to `ar' is not less than the first.
14237         * pic/pic.y: Allow a comma between elements of the variable list
14238         in the argument to `reset'.
14240         * pic/object.c (arc_object::arc_object): Fix computation of
14241         radius.
14243         * eqn/main.c (main): Add exit(0).
14245 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
14247         * troff/div.c (begin_page): Test no_space_mode after doing the
14248         break, but still push the page ejector cookie before doing the
14249         break.  Also set the next page number after doing the break.
14250         
14251         * xditview/xditview.c (NewFile): Don't set the title and icon name
14252         if this is the first file and its name is `-'.
14253         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
14254         the X75 and X100 devices.
14255         (main): If a device has the XT_OPTION flag set and there's exactly
14256         one file argument, pass the driver -xrm and -title options to set
14257         the icon name and window title to the name of the file.
14259         * troff/env.c (environment_switch): If there was an argument but
14260         it wasn't a valid number or name, then pop an environment but
14261         don't give an error message on underflow.
14263         * troff/number.c (start_number): Correct spelling in error message.
14265         * troff/input.c (token::delimiter): Don't print an error message
14266         if err is false.
14268         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
14269         ParseDrawFunction if dw->display_enable is true.
14271 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
14273         * pic/pic.y: Parse text positioning like normal attributes, so as
14274         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
14275         positioning attribute.
14277 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
14279         * tbl/main.c (process_data): When in state START while reading a
14280         text block, don't change to state MIDDLE if c is a newline.
14282 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
14284         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
14285         so as to avoid shadowing parameter.
14287 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
14289         * tbl/table.c (trim_space): Deleted.
14290         (table::add_entry): Don't call trim_space.
14292 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
14294         * VERSION: Change version to 0.6.
14296         * troff/number.c (parse_expr): Make == work.
14298 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
14300         * man/grog.man: New file.
14301         * man/Makefile: Add grog.n to MAN1PAGES.
14302         * etc/grog.sh: New file.
14303         * etc/Makefile: Install grog.sh as grog.
14305 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
14307         * troff/input.c (token::next): Implement \E.
14309 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
14311         * xditview/tmac.X: Change font translations to match tmac.ps.
14313         * troff/input.c (non_empty_name_warning): Don't give a warning if
14314         `\{' terminates the name.
14316 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
14318         * ps/devps/symbol.diff: New file.
14319         * ps/devps/FontMakefile: Mention symbol.diff.
14321 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
14323         * troff/node.c (font_position): Use get_long_name to read the
14324         external_name.
14326         * troff/env.c (environment_switch): If we get a number that's < 0
14327         or >= NENVIRONMENTS, treat it like a name.
14328         Change NENVIRONMENTS to 10.
14330         * troff/groff.h: Remove definition of FONTS_MAX.
14331         * troff/node.h (class font_family): Make map a pointer instead of
14332         an array. Add a map_size member. Make it a class. Make nm const
14333         and public. Make invalidate_fontno a friend.
14334         * troff/node.c: Define font_table_size. Make font_info a pointer
14335         rather than an array.
14336         (class troff_output_file): Allocate font_position dynamically. Add
14337         nfont_positions member.
14338         (troff_output_file::set_font): Grow font_position if necessary.
14339         (troff_output_file::~troff_output_file): Delete font_position.
14340         (troff_output_file::troff_output_file): Allocate font_position.
14341         (grow_font_table): New function.
14342         (troff_output_file::really_begin_page,
14343         troff_output_file:really_copy_page): Use nfont_positions rather
14344         than FONTS_MAX.
14345         (mount_font_no_translate, mount_style): Call grow_font_table if
14346         necessary.
14347         (font_family::font_family): Allocate map.
14348         (font_family::make_definite): Grow map if necessary. Use
14349         font_table_size instead of FONTS_MAX.
14350         (font_family::~font_family): New function.
14351         (invalidate_fontno): Use font_family::map_size.
14352         (get_fontno, env_space_width, env_half_narrow_space_width,
14353         env_narrow_space_width, symbol_fotno, is_good_fontno,
14354         get_bold_fontno, make_glyph_node): Use font_table_size rather than
14355         FONTS_MAX.
14356         (next_available_font_position): Never return 0.
14358 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
14360         * ps/tmac.ps: Add font translations for compatibility with dpost.
14362 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
14364         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
14365         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
14366         Move definitions baseline_sep, shift_down, column_sep,
14367         matrix_side_sep into...
14368         * eqn/box.c: Add them to param_table.
14369         * eqn/pbox.h: Add declarations to pbox.h.
14371         * troff/input.c (set_string): Cast value to unsigned char *.
14373         * troff/token.h (process_input_stack): Declare it static before
14374         declaring it a friend.
14376 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
14378         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
14379         and bottom.
14380         * dvi/devdvi/EX: Regenerate.
14382         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
14383         transparent.
14385 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
14387         * eqn/lex.c: In defaults_table, make definition of `dot' call
14388         `dot_def'.  Don't explicitly make it roman.  Similarily for other
14389         accents.
14391         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
14392         argument.
14393         (for_input::get, for_input::peek): Use this.
14394         (do_for): Add by_is_multiplicative argument.
14395         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
14396         Change semantic value of optional_by to be a double plus a flag
14397         saying whethet the by clause is multiplicative.
14399         * eqn/lex.c (get_delimited_text): Remember location of start of
14400         definition.  Improve error handling when EOF is encountered.
14402         * lib/font.h: Rename handle_x_command to
14403         handle_unknown_font_command.
14404         * lib/font.c (font::load): Call handle_unknown_font_command for
14405         any unknown command in the font description file.  Don't call
14406         handle_x_command. Include the name of the command in the argv.
14407         Improve message for unknown command after kernpairs or charset
14408         command.
14409         * ps/ps.c (ps_font::handle_x_command): Rename to
14410         handle_unknown_font_command.  Remove message about `x download'
14411         command.  Give error message for wrong number of arguments.
14412         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
14413         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
14414         handle_unknown_font_command. Give an error message for wrong
14415         number of arguments.  Rename design_size to designsize.
14416         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
14417         checksum', `designsize' instead of `design_size'.
14419 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
14421         * eqn/*.[chy]: Change underaccent to uaccent.
14423         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
14424         give it the same precedence as ACCENT.
14425         * eqn/other.c (make_underaccent_box): New function.
14426         * eqn/box.h: Declare it.
14427         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
14428         def_table.
14430 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
14432         * pic/pic.y (reset_all): New function. Called in rule for RESET.
14433         (parse_init): Call reset_all.
14434         (define_variable): When defining scale reset only those
14435         pre-defined variables that are scaled.
14436         (defaults_table): Add `scale' as non-scaled value.
14438         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
14439         together with the text; allow any number of positioning words;
14440         allow center as a positioning word.
14442         * pic/object.c (output::compute_scale): Get picture maximum height
14443         and width from variables called maxpswid and maxpsht.
14444         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
14446 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
14448         * pic/object.c (object_spec::make_text): Multiply textht by number
14449         of text items.
14451         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
14452         occur.
14453         (do_sprintf): New function.
14454         (pic.gperf): Add sprintf token.
14455         (text, sprintf): New rules.
14457         * pic/pic.y: `rand()' with no arguments returns a random number
14458         in the range [0,1).
14460         * pic/pic.y: Allow a bare expression to be an attribute: change
14461         precedences to support this.  Change optional_ordinal rule to
14462         optional_ordinal_last to avoid reduce/reduce conflict.
14463         * pic/object.c (object_spec::object_spec): Initialize direction.
14465         * pic/pic.y: Implement ^ operator meaning exponentiation.
14467         * troff/node.h: Add default argument to mount_font.
14468         * troff/node.c (font_position): Read an optional third argument
14469         giving the external_name.
14470         (mount_font): Add optional argument giving the external_name.
14471         (mount_font_not_translate): Have additional argument giving
14472         external name.  Use this name to load the font.  Pass both names
14473         to font_info::font_info.
14474         (font_info::font_info): Have additional argument giving
14475         external_name.
14476         (class tfont): New member external_name.
14477         (font_info::get_tfont): Use external name to construct tfont_spec.
14479 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
14481         * eqn/lex.c (init_table): Add argument giving device.  Define
14482         name of device to be "1".
14483         (do_ifdef): Counts as true if the argument has been defined with
14484         `define'.
14485         * eqn/main.c (main): Call init_table with device argument. Make
14486         device local to main.
14487         * eqn/eqn.h: Change declaration of init_table. Remove declaration
14488         of device.
14490         * pic/lex.c (get_delimited): Allow text to be delimited by
14491         matching {}s.  Don't recognize ending delimiter within a string.
14493         * troff/input.c (get_delim_name): New function.
14494         (token::next): Implement \C.
14496         * lib/font.c (font::load): Grok ---.  Add an alias for each
14497         character based on its code.
14498         (font::get_code_width): Deleted.
14499         * lib/font.h (class font): Declare font::number_to_index().
14500         Remove declaration of font::get_code_width.
14501         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
14502         to indices of named characters.
14503         (font::number_to_index): New function.
14504         * troff/input.c (font::number_to_index): New function.
14505         (get_charinfo_by_number, charinfo::get_number,
14506         charinfo::set_number): New functions.
14507         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
14508         (token::process, token::description, token::get_char,
14509         token::add_to_node_list, token::operator==): Handle
14510         TOKEN_NUMBERED_CHAR.
14511         * troff/charinfo.h: Declare get_charinfo_by_number,
14512         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
14513         charinfo class.
14514         (charinfo::numbered): New function.
14515         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
14516         * troff/env.h (class environment): Remove declaration of ...
14517         * troff/env.c (environment::make_numbered_char_node): Deleted.
14518         * troff/node.c (make_numbered_node): Deleted.
14519         (class numbered_glyph_node): Remove.
14520         (troff_output_file::put_char_width, troff_output_file::put_char):
14521         Handle numbered chars.
14522         (troff_output_file::numbered_char): Removed.
14523         (tfont::get_code_width): Removed.
14524         (make_glyph_node): Don't search special fonts for numbered
14525         characters.
14526         * troff/node.h: Remove declaration of make_numbered_node.
14527         * driver/input.c (do_file): Handle N command.
14528         * driver/printer.h: Add declaration of ...
14529         * driver/printer.c (printer::set_numbered_char): New function.
14530         * dvi/tfmtodit.c (main): Generate unnamed entries.
14531         * ps/devps/afmtodit: Likewise.
14532         * xditview/xtotroff.c (MapFont): Likewise.
14533         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
14535         * tbl/main.c (process_format): If multiple widths are specified
14536         for a column but all the widths are the same, don't give an error
14537         message.
14539         * tbl/table.c (table::do_row): If the current row is all lines and
14540         the stuff doesn't contains a line, mark the top of the row after
14541         printing stuff before the row.  If the current row is not all
14542         lines and the stuff doesn't contain a line, don't unnecessarily
14543         mark the top of the row before printing the stuff.
14544         
14545 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
14547         * troff/groff.h: Remove MAX_PATH.
14548         * troff/input.c (open_file): Dynamically allocate space for the
14549         path.
14550         (open_mac_file, process_macro_file): Corresponding changes.
14552 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
14554         * troff/node.h (class output_file): Make copy_file pure.  Add
14555         vspace method ifdef COLUMN. Add is_printing method.
14556         * troff/node.c: Add class printing_reg. Add class
14557         real_output_file. Derive other output_file classes from
14558         real_output_file; in these classes rename begin_page to
14559         really_begin_page, print_line to really_print_line, copy_file to
14560         really_copy_file, transparent_char to really_transparent_char.
14561         Move output_file::flush to real_output_file. Add printing member
14562         to class output_file.
14563         * troff/div.h: Remove printing member from top_level_diversion.
14564         Add vspace member function to class diversion ifdef COLUMN. Add
14565         some declarations ifdef COLUMN.
14566         * troff/div.c (top_level_diversion::copy_file,
14567         top_level_diversion::transparent_output,
14568         top_level_diversion::output): Don't test printing member before
14569         output.
14570         * troff/input.c: Handle initial variable_space_request ifdef
14571         COLUMN.
14572         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
14573         but comment it out.
14575 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
14577         * troff/div.c (diversion::need): Make any space forced.  If we
14578         sprung a trap, set truncated_space to minus the distance to the
14579         trap and set needed_space to the amount that was needed.
14580         (top_level_diversion::space): A forced space turns no_space_mode
14581         off.
14582         (class constant_vunits_reg): New class.
14583         (init_div_requests): Implement number registers .trunc and .ne
14584         using constant_vunits_reg.
14585         (class truncated_space_reg): Deleted.   
14587         * troff/div.h: Don't have a no_space_mode member in diversion.
14588         Instead have it in top_level_diversion.
14589         * troff/div.c (diversion::diversion): Don't initialize
14590         no_space_mode.
14591         (top_level_diversion::top_level_diversion): Initialize
14592         no_space_mode.
14593         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
14594         (macro_diversion::output): Don't clear no_space_mode.
14596         * troff/input.c (diverted_space_node::reread): Don't call
14597         environment::do_break.  In fill mode, act like a blank line.
14598         (diverted_copy_file_node::reread): Don't call
14599         environment::do_break.
14601         * troff/div.c (blank_line): New function.
14602         * troff/div.h: Declare it.
14603         * troff/input.c (process_input_stack): Call it.
14605         * troff/div.c (truncated_space_reg::get_string): New function.
14606         (init_div_requests): Bind to .trunc.
14607         (space_request, top_level_diversion::space,
14608         top_level_diversion::output, macro_diversion::space,
14609         macro_diversion::output): Update truncated_space.
14610         (macro_diversion::output): Redo calculations when trap sprung.
14611         (macro_diversion::output, macro_diversion::space): No need for
14612         trap_flag.
14614         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
14615         after truncating post line spacing.
14617 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
14619         * ps/devps/prologue (MF, SF): Make them work even if setfont is
14620         defined as a procedure rather than as an operator.
14622 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
14624         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
14626 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
14628         * troff/div.c (top_level_diversion::output): Merge
14629         output_file::print_line and output_file::end_of_line member
14630         functions.
14631         * troff/div.h (class output_file):
14632         * troff/node.c (troff_output_file::print_line,
14633         troff_output_file::end_of_line, output_file::end_of_line,
14634         ascii_output_file::print_line, suppress_output_file::print_line):
14635         Corresponding changes.  
14637 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
14639         * troff/input.c (token::next): Don't give a warning for `\.'.
14641         * troff/env.c (environment::get_center_lines): New function.
14642         (init_env_requests): Bind number register .ce to it.
14643         * troff/env.h: Declare it.
14644         * tbl/table.c (table::init_output): Define reset macro to restore
14645         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
14646         Then do .ce 0.
14647         (table::print): If center option not given, then imply center
14648         option if SAVED_CENTER_REG > 0.
14650 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
14652         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
14653         Troff.ps from DOWNLOAD.
14654         
14655         * troff/Makefile: Change comment in DEFINES to avoid confusing
14656         System V make.
14658         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
14659         code.  Don't try to catch errors with stopped.
14660         (check_line_lengths): New function.
14661         * ps/devps/prologue (EXEC): Deleted.
14662         (EBEGIN, EEND): New procedures.
14664 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
14666         * troff/input.c: Include request.h before node.h.
14667         * troff/node.c: Likewise.
14668         * troff/env.c: Likewise.
14669         * troff/div.c: Likewise.
14670         * troff/node.h (class special_node): Store argument as a macro
14671         rather than a char *.
14672         * troff/node.c (special_node::special_node, special_node::copy):
14673         Grok this.
14674         (special_node::~special_node): Deleted.
14675         (special_node::tprint): Deleted.
14676         (special_node::tprint_start, special_node::tprint_end,
14677         special_node::tprint_char): New functions.
14678         (troff_output_file::special): Deleted.
14679         (troff_output_file::start_special, troff_output_file::end_special,
14680         troff_output_file::special_char): New functions.
14681         * troff/input.c (special_node::tprint): New function.
14682         (do_special): Use macro not char *.
14683         (do_transparent_macro): Deleted.
14684         (token::next): Don't call do_transparent_macro.
14686         * troff/input.c (token::next): Add 'Y' case.
14687         (do_transparent_macro): New function.
14688         * troff/node.c (troff_output_file::special): Handle newlines with
14689         argument using new continuation convention.
14690         * driver/input.c (get_string): Cope with continuation convention.
14691         (do_file): Don't call skip_line after calling get_string(1).
14692         * ps/ps.c (ps_printer::special, ps_printer::do_import,
14693         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
14694         arg.
14695         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
14696         with +.
14698 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
14700         * troff/input.c (asciify): By default, illegal input characters
14701         should return empty string.
14703         * troff/input.c (copy_file): Handle first page transition like title.
14704         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
14706         * troff/input.c (token::next): Improve error message for EOF after
14707         escape character.
14708         (input_char_description): New function.
14709         (get_char_for_escape_name): Use input_char_description.
14710         (token::next): Warn about unrecognized escape sequences.
14711         (warning_table): Add WARN_ESCAPE.
14712         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
14713         accordingly.
14715         * troff/token.h: Remove declaration of process_input_stack.
14717         * troff/input.c: Remove declaration of init_hyphen_requests.
14718         * troff/request.h: Correct spelling in declaration of same.
14720         * troff/input.c (token::next): Check whether escape_char is 0.
14722 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
14724         * groff.c (main, usage, help): Implement -P and -L options.
14725         * groff.sh: Likewise.
14727         * troff/input.c (token::next): Use some gotos to avoid code
14728         duplication.
14730         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
14731         Avoid calling symbol::symbol if name empty.
14733 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
14735         * troff/input.c (init_input_requests): Make \n(.x return the major
14736         version number and \n(.y return the minor version number.
14737         * troff/Makefile: Construct file majorminor.c defining
14738         major_version and minor_version automatically from ../VERSION.
14740         * troff/node.c (class glyph_node): Make operator new and operator
14741         delete public.
14742         (class ligature_node): Similarily.
14744         * troff/input.c (operator==(const macro &, const macro &)): New
14745         function.
14746         (non_interpreted_node::same): Use this.
14747         (string_iterator::string_iterator): Make macro& argument const.
14749         * troff/input.c (input_iterator::get): New function. Don't make
14750         asciify_macro or class non_interpreted_node friends of class
14751         input_iterator.
14752         (non_interpreted_node::interpret): Use input_iterator::get.
14753         (asciify_macro): Likewise.
14755         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
14756         ~non_interpreted_node): Deleted.
14757         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
14758         Deleted.
14760         * troff/symbol.h: Make all symbol member functions const.
14762         * lib/strtol.c: New file.
14763         * lib/Makefile: Add strtol.c.
14764         * Makefile: Define STRTOL as strtol.o to include strtol in
14765         libgroff.a.
14767 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
14769         * pic/troff.c (troff_output::simple_circle): Divide by scale.
14771 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
14773         * troff/input.c (do_special): Use input_level.
14775         * troff/token.h (TOKEN_BACKSPACE): New token.
14776         (token::backspace): New function.
14777         * troff/input.c (token::description, token::next, token::process):
14778         Grok TOKEN_BACKSPACE.
14779         (do_special): Turn TOKEN_BACKSPACE back into \b.
14781         * troff/token.h (token::leader): New function.
14782         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
14784         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
14786         * troff/input.c (do_special): Use token::description in error
14787         message.
14789 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
14791         * troff/input.c (decode_args): Combine quoted and
14792         quote_input_level variables. Make it a for (;;) loop.
14794         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
14796         * troff/input.c (read_long_escape_name): The test for whether to
14797         expand buffer was off by 1.
14798         (read_string): Similarily.
14800 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
14802         * troff/input.c: Use `const int' rather than `static const int'.
14804         * troff/div.h (diversion::copy_file): Declare as pure virtual.
14805         (macro_diversion::copy_file): New function.
14806         * troff/node.h: New class diverted_copy_file_node.
14807         * troff/node.c: Implement it.
14808         * troff/input.c (copy_file): Use diversion::copy_file. Handle
14809         first page transition by pushing a diverted_copy_file_node.
14810         * troff/input.c (token::next, process_input_stack): Don't handle
14811         COPY_FILE_REQUEST.
14813 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
14815         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
14816         whether space widths need adjusting.
14818         * troff/charinfo.h: Generalize translated_to_space to
14819         special_translation so as to allow translation to \&.
14820         * troff/input.c (translate): Allow translation to \&.
14821         (charinfo::*): Corresponding changes.
14822         * troff/node.c (make_node, node::add_char): Corresponding changes.
14823         * troff/node.h (dummy_node::dummy_node): Allow optional first
14824         argument.
14826         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
14827         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
14828         TOKEN_REQUEST.
14829         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
14830         TOKEN_REQUEST with an argument of TITLE_REQUEST.
14831         (token::process): Grok that.
14832         * troff/input.c (copy_file): Handle first page transition like
14833         title by pushing a COPY_FILE_REQUEST cookie.
14834         (token::next, process_input_stack): Grok that.
14835         * troff/node.h (output_file::copy_file): Add x and y arguments.
14836         Make it non-pure.
14837         * troff/div.c (top_level_diversion::copy_file): Supply them.
14838         * troff/node.c (troff_output_file::copy_file): Add x and y
14839         arguments; moveto specified position.  Invalidate font_position
14840         array after copying file.
14841         (output_file::copy_file): New function.
14842         (suppressed_output_file::copy_file, ascii_output::copy_file):
14843         Removed.
14844         * troff/input.c (transparent_file): New function.
14845         (init_input_requests): Bind to "trf".
14846         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
14847         (process_input_stack): Likewise.
14849         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
14851         * troff/node.c (init_node_requests): New number registers .kern
14852         pointing to global_kern_mode, and .lg pointing to
14853         global_ligature_mode.
14855         * troff/node.c (ligature): Don't change it if we get a bad
14856         integer.
14858         * troff/input.c (do_define_string): Don't strip tabs.
14860         * troff/input.c (asciify_macro): Make the string_iterator auto.
14862         * troff/node.c (init_font_requests): Rename to...
14863         (init_node_requests):
14864         * troff/node.h: Change declaration.
14865         * troff/input.c (main): Change call.
14867         * troff/input.c (node::reread, diverted_space_node::reread): New
14868         methods.
14869         (process_input_stack): Call reread rather than
14870         get_diverted_space_node.
14871         * troff/node.c (node::get_diverted_space_node,
14872         diverted_space_node::get_diverted_space_node): Removed.
14873         * troff/node.h: Declare reread methods instead of
14874         get_diverted_space_node methods. Make `n' member private.
14875         * troff/input.c: (token::diverted_space): Removed.
14876         * troff/token.h: Removed declaration.
14877         
14879 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
14881         * eqn/script.c (script_box::compute_metrics): Don't let
14882         SUP_RAISE_FORMAT become negative.
14884         * tbl/table.c (table::do_row): Entries that don't end in the
14885         this row shouldn't make the row non-blank.
14886         
14887         * tbl/table.c (table::make_columns_equal): Only set the width of
14888         columns which are marked as equal.
14889         
14890         * tbl/main.c (process_data): Before issuing excess data error,
14891         if last character was a newline unget it; then get it again after
14892         the error.  Also include the contents of the entry in the message.
14894         * groff.c: New file.
14895         * Makefile: Build groff from groff.c.  Make it possible to use
14896         either groff.sh or groff.c as groff.
14897         * Makefile.bd: Similarily.
14899 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
14901         * groff.sh: Don't delay expansion of $@ in assignment to files.
14902         Remove occurrences of \".
14904 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
14906         * all Makefiles: Simplify and rearrange.
14908         * Makefile: Handle fmod like malloc.
14909         * lib/Makefile: Similarily.
14910         * lib/fmod.c: Remove #ifdef NEED_FMOD.
14912         * Makefile: Rename OPTIMISE to OPTIMIZE.
14914         * groff.sh: Remove assignment to PATH.
14915         * Makefile: Remove SHPATH variable.
14916         * Makefile.bd: Similarily.
14918         * groff.sh: Add -V option to print the pipeline instead of
14919         executing it.
14921 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
14923         * lib/font.c: Split off file searching into ...
14924         * lib/fontfile.c: New file.
14926         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
14928 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
14930         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
14931         Also change misleading comment.
14932         (table::do_vspan): Change similarily misleading comment.
14933         * tbl/main.c (process_data): A format row with an explicit `s'
14934         uses up a data line, even if all the other columns are `_' or `='.
14936         * troff/input.c (token::description): Fix description of
14937         TOKEN_DUMMY and TOKEN_EMPTY.
14939 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
14941         * groff.sh: Fix description of -Z in help message.
14943 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
14945         * pic/object.c (object_spec::make_object): Allow negative and zero
14946         line thicknesses.
14947         * pic/pic.y: Give linethick default value of -1.0.
14948         * pic/troff.c (troff_output::troff_output): Initialize
14949         last_line_thickness to BAD_THICKNESS.
14950         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
14951         (troff_output::line_thickness): Canonicalize negative thicknesses
14952         to RELATIVE_THICKNESS.
14953         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
14954         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
14955         to -1.0.
14956         (tex_output::start_picture): Set pen_size to -2.0.
14958         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
14959         0, then use 0 linewidth.
14960         (ps_printer::ps_printer): Initialize line_thickness to -1.
14962         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
14964         * ps/devps/symbolchars: Remove `or'.
14965         * ps/tmac.ps: Implement \(or with .char.
14967         * ps/devps/symbolchars: Move most characters into textmap.
14968         * ps/devps/textmap: Add names for troff bracket characters. Remove
14969         ul, ru, br, bv.
14971         * ps/devps/TSymbol.ps: Removed.
14972         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
14973         * ps/tmac.ps: Do with .char what TSymbol did.
14974         * ps/devps/download: Remove TSymbol.
14976         * ps/devps/T: Removed.
14977         * ps/devps/Troff.ps: Removed.
14978         * ps/devps/Troff.afm: Removed.
14979         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
14980         * ps/devps/download: Remove Troff.
14981         * ps/devps/FontMakefile: Remove T target.
14982         * ps/devps/DESC-A4: Remove T from font list.
14983         * ps/devps/DESC-letter: Likewise.
14985         * troff/input.c (macro_to_node): Rename to ...
14986         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
14987         character's definition while processing it.
14988         * troff/node.c (node::add_char, make_node): Change calls to
14989         macro_to_node accordingly.
14991         * troff/input.c (token::next): Translate \_ to \(ul.
14993         * tty/devascii/R.proto: Add `|'.
14994         * tty/devlatin1/R.proto: Likewise.
14996 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
14998         * man: Put the version number in all the man pages.
15000 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
15002         * Makefile.bd: New file.
15003         * README.bd: New file.
15005         * VERSION: New file.
15006         * lib/version.c: Removed.
15007         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
15008         in clean target.
15010         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
15011         environment variable.
15013         * all Makefiles: Split install target into install.bin for
15014         binaries, and install.nobin for everything else.
15015         * Makefile: Add bindist target.
15017         * man/afmtodit.man: New file.
15018         * man/Makefile: Add afmtodit.n to MAN1PAGES.
15019         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
15020         in BINDIR.
15021         * ps/Makefile: Pass BINDIR to make install in devps.
15023         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
15024         the space character.
15026         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
15028 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
15030         * ps/ps.c: Redo font downloading.
15031         * ps/devps/download: New file.
15032         * ps/devps/Makefile: Add download to DEVICEFILES.
15033         * ps/devps/afmtodit: Remove -d option.
15034         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
15035         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
15036         * ps/devps/zapfdr.ps: Likewise.
15037         * ps/devps/TSymbol.ps: Likewise.
15039 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
15041         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
15043 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
15045         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
15046         then strip the first line if it starts with %.
15047         * Makefile: Add a comment about this.
15049         * man/tfmtodit.man: New file.
15050         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
15051         * dvi/Makefile: Install tfmtodit in BINDIR.
15053         * dvi/tfmtodit.c (usage): Mention -v option.
15055 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
15057         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
15058         * troff/node.c (troff_output_file::transparent_char): Don't call
15059         flush_tbuf.
15061         * eqn: Add check_tabs method to most box classes.
15062         * eqn/box.c (box::top_level): Call check_tabs.
15064         * eqn/script.c (script_box::output): Use \Z.
15065         * eqn/limit.c (limit_box::output): Use \Z.
15067         * eqn/box.c (box::top_level): Use itoa.
15069 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
15071         * dvi/tmac.dvi: Add font translations for CR, C, TT.
15072         * dvi/devdvi/Makefile: Don't make links to CW.
15074         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
15075         HX, HD.
15076         * xditview/tmac.X: Likewise.
15078         * troff/node.c: Add font translation feature.
15079         (get_font_translation): New function.
15080         (symbol_fontno): Translate the font name.
15081         (mount_font_no_translate): Rename to mount_font to this.
15082         (mount_font): New function.
15083         (font_family::make_definite): Call mount_font_no_translate instead
15084         of mount_font.
15085         (mount_style): Translate the font name.
15086         (font_translate): New function.
15087         (init_font_requests): Bind "ftr" to font_translate.
15089         * ps/devps/prologue (SN): New procedure that rounds a position to
15090         the nearest (pixel + (.25,.25)).
15091         (DL): Use SN to round endpoints.
15093         * lib/version.c: Changed version to 0.5.
15095 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
15097         * Makefile: Move definition of PAGE to the very beginning, so that
15098         people are less likely to miss it.
15100 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
15102         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
15104         * troff/env.c (environment::choose_breakpoint): Make `can't find
15105         breakpoint' error a warning of type WARN_BREAK.  Change message to
15106         `can't break line'.
15107         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
15108         code 040000.
15109         * troff/input.c: Add WARN_BREAK to warning_table.  Include
15110         WARN_BREAK in DEFAULT_WARNING_MASK.
15112         * tty/tmac.tty: Add definition of \(+-.
15114         * groff.sh: Remove `--' option to set command.
15116         * dvi/devdvi/texsy.map: Remove duplicate md entry.
15118         * ps/devps/eqnchar: Better definition of cdot using md.
15119         * dvi/devdvi/eqnchar:  Likewise.
15120         * xditview/devX100/eqnchar:  Likewise.
15121         * xditview/devX75/eqnchar: Likewise.
15122         * eqn/lex.c: Add definition of cdot.
15124 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
15126         * troff/input.c (get_optional_char): New function.
15127         * troff/input.c (set_page_character): Use get_optional_char(),
15128         rather than has_arg() and tok.get_char(1).
15129         * troff/env.c (tab_character, leader_character, hyphen_char,
15130         field_characters): Likewise.
15131         (margin_character): Likewise.  Also always delete the
15132         margin_character_node.
15134         * troff/input.c (token::get_char): Use token::description.
15136         * troff/input.c (has_arg): Don't skip over tab and \}.
15137         * troff/number.c (start_number): Give a warning if the number
15138         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
15140 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
15142         * troff/input.c (empty_name_warning, non_empty_name_warning): New
15143         functions.
15144         (get_name, get_long_name): Use these.  Rename `warn' argument to
15145         `required'.
15147         * troff/node.c (get_fontno): Test that the symbol is not null.
15149         * troff/input.c (token::description): New function.
15150         * troff/number.c (parse_term): Use token::description in `numeric
15151         expression expected' message.
15152         * troff/groff.h: Add WARN_MISSING.
15153         * troff/number.c (start_number): New function.
15154         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
15155         get_incr_number): Use start_number().
15156         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
15157         default.
15158         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
15159         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
15160         token::descripion.
15161         * troff/input.c (token::get_char): Use WARN_MISSING.
15162         * troff/input.c (token::delimiter): Use token::description.
15163         * troff/env.c (environment_switch): Back out Aug 3 change.
15164         * troff/input.c (has_arg): Skip over \}s and tabs but give a
15165         warning.
15166         * troff/token.h (token::tab): New function.
15167         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
15168         * troff/reg.c (alter_format): Likewise.
15169         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
15171 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
15173         * troff (most files): Redo warnings. Divide warnings into various
15174         categories; warning() has an additional first argument indicating
15175         the category it falls into.
15176         * troff/input.c (main): -w now takes an argument. New option -W.
15177         (enable_warning, disable_warning): New functions.
15179         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
15180         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
15182 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
15184         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
15185         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
15186         * xditview/devX75/eqnchar: Likewise.
15187         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
15189         * eqn/other.c: When bar or over applies to a single character
15190         don't produce an overline_box or an underline_box. Instead produce
15191         an accent_box or an underaccent_box, with the accent a line
15192         whose width is accent_width.  New classes underaccent_box,
15193         overline_char_box and underline_char_box.
15194         * eqn/box.h: Move overline_box, underline_box, accent_box class
15195         declarations into eqn/other.c. Add declarations of
15196         make_underline_box, make_overline_box, make_accent_box.
15197         * eqn/eqn.y: Call make_overline_box, make_underline_box
15198         make_accent_box instead of constructors.
15199         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
15201         * eqn/other.c: Add accent_box::~accent_box.
15202         * eqn/box.h: Declare it.
15204         * groff.sh: With -Tps, use eqn -D.
15206         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
15207         rather than \l.
15208         (underline_box::output): Similarily.
15209         (accent_box::output): Use \Z.
15211         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
15212         bit smaller.)
15214 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
15216         * troff/div.c (top_level_diversion::transparent_output(unsigned
15217         char)): Use asciify.
15218         * troff/input.c (asciify): Don't make it static.
15219         * troff/token.h (asciify): Declare it.
15220         
15221         * troff/input.c (get_name, get_long_name, token::get_char,
15222         token::delimiter): Add an extra default argument which says
15223         whether a warning should be printed.
15224         * troff: Pass a non-zero argument to one of these rather than
15225         printing a warning directly.
15227 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
15229         * troff: Consistently use symbol::is_null.
15231         * troff/dictionary.h: Move some inline functions into
15232         dictionary.c.
15234         * troff/request.h: Move inline functions into input.c.
15235         (request_or_macro::invoke): Make it pure.
15237         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
15238         * troff/input.c (init_input_requests): Use class constant_int_reg.
15239         (class compatible_reg): Deleted.
15240         * troff/div.c (init_div_requests): Use class constant_int_reg.
15241         (class last_post_line_extra_space_reg): Deleted.
15243         * troff/env.c (tab_character): Don't change the tab character if
15244         we get an invalid argument.
15245         (hyphen_char): Similarily.
15247         * troff/reg.c (alter_format): Check that nm is not null.
15249         * Makefile, groff.sh: Make it possible to customize the commands
15250         used for printing PostScript and dvi files. Also make it possible
15251         to customize the path used by groff.sh.
15253         * eqn/eqn.y: Make `left' right associative.
15255 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
15257         * pic/pic.h: Added definition of M_SQRT2 for those systems that
15258         don't have it.
15260         * pic/pic.h: Removed definition of INT_MAX.
15262         * troff/node.c (italic_corrected_node::vertical_extent): Omit
15263         `return'.
15265         * troff/input.c (token::next):  Handle \R like \n.
15267 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
15269         * ps/tmac.pc (PSPIC): Simplify.
15271         * troff/env.c (tab_stops::to_string):
15272         * pic/pic.y (object_type_name):
15273         * pic/troff.c (simple_output::line):
15274         * pic/tex.c (tex_output::spline):
15275         * pic/object.c (object_spec::make_object):
15276         * tbl/main.c (process_data):  Add cases to switch statements to
15277         avoid cfront warnings. (Some of these are spurious, since the
15278         switch already has a default case.)
15280         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
15281         `ps-'.  Don't test systat; instead check number of arguments to
15282         ps-bb.
15284 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
15286         * macros/tmac.e: Do not decrease the page offset by 0.5i.
15288         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
15289         Unlink the file as soon as we have opened it, so that we don't
15290         have to bother with signal handlers.
15291         (handler): Deleted.
15292         (fatal_error_exit): Deleted.
15293         (main): Don't call signal.
15295         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
15296         can be ignored.
15297         * dvi/devdvi/Makefile: Use the -k option with S and MI.
15299         * pic/pic.y:  If there is a label, or an nth construction before
15300         the first `.' in the argument to `with', ignore it and generate a
15301         warning.
15302         * pic/lex.c (lex_warning): New function.
15304         * tbl/table.c (table::init_output): In section keep and release
15305         macro, use 0 indent when diverting and the correct indent when
15306         rereading.
15308         * troff/input.c (interpolate_number_format): Do not interpolate
15309         anything if the number register is not defined.
15311         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
15313 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
15315         * ps/devps/prologue (PICTURE): Set components of graphics state to
15316         their default values.
15318         * ps/devps/text.enc: Add trademark
15319         * ps/devps/textmap: Add names for club, spade, heart, diamond,
15320         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
15321         * ps/devps/symbolchars: Add names for summation and product.
15323         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
15324         suchthat. Add pp. Add upper-case letters.
15326         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
15327         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
15328         Upsilon.
15330         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
15331         rA (right angle bracket) to ra.  Introduce names for double-headed
15332         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
15333         * ps/devps/textmap: Likewise for ps device.
15334         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
15335         * tty/devascii/R.proto: Rename lA to la and rA to ra.
15336         * tty/devascii/R.proto: Likewise.
15337         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
15338         \(uA, \(dA.
15339         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
15341         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
15343         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
15344         def_table.
15346 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
15348         * troff/div.c (when_request): Use symbol::is_null rather than
15349         has_arg to determine whether we have an argument.
15350         (change_trap): Remove the trap if we get an invalid number. Give
15351         an error if we don't get at least the macro name.
15352         (diversion_trap): Remove trap if we get an invalid name or number.
15354         * troff/env.c (environment_switch): Pop if we get an invalid
15355         symbol or numeric expression.
15357         * troff/input.c (do_define_macro):  If EOF is encoutered while
15358         defining the macro, do tok.next() before returning.
15360         * troff/token.h (has_arg): Move definition from here, to ...
15361         * troff/input.c (has_arg): ... here
15363         * troff/env.c (space_size): Do nothing if we get an invalid argument.
15364         * troff/input.c (shift): Likewise.
15366         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
15367         for `.c'.
15369         * pic/troff.c (troff_output::start_picture):  Comment out calls to
15370         `..'.
15372         * eqn/main.c (do_file): Subtract 1 from current_lineno if
15373         interpret_lf_args succeeds.
15375         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
15376         \\.  This avoids problems with \$N.
15378         * groff.sh: Pass -C to preprocessors.
15380         * lib/lf.c (interpret_lf_args):  Be more flexible.
15382         * tbl/main.c (main): Add -C option.
15383         (table_input::get): Do not recognize TE if followed by character
15384         other than a space or newline unless -C option given.
15385         (process_input_file): Likewise for lf, TS.
15386         (process_data): Likewise for lf in text blocks.
15388         * eqn/main.c (main): Add -C option.
15389         (do_file): Don't recognize EQ, EN or lf if followed by character
15390         other than space or newline unless -C option given.
15391         * eqn/lex.c (file_input::read_line): Similarily.
15392         * eqn/eqn.h: Declare compatible_flag.
15394         * etc/soelim.c (main): Add -C option.
15395         (interpret_lf_args): Use version in libgroff.
15396         (do_file):
15398         * pic/main.c (main): Add -C option, which sets compatible_flag.
15399         (top_input::get), (top_input::peek):  If -C option not given,
15400         do not recognize .PS/.PE/.PF/.lf if followed by a character
15401         other than space or newline.
15402         * pic/lex.c (file_input::read_line): Similarily.
15403         * pic/pic.h: Add declaration of compatible_flag.
15405 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
15407         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
15409         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
15410         derived from node.  New class space_char_hmotion_node.
15411         * troff/input.c (asciify_macro): New function.
15412         * troff/input.c (init_input_requests): New request `asciify' bound
15413         to asciify_macro.
15414         * macros/mm.diff: New file.
15415         * Makefile:  In install.mm target use `patch' to apply
15416         macros/mm.diff.
15418         * troff/input.c (macro::print_size): Just print the size in bytes.
15420         * troff/div.c (return_request): Correct the argument
15421         interpretation.
15423 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
15425         * troff/node.h (class composite_node): Add sz member.
15426         * troff/node.c (composite_node::size): Return sz.
15427         * troff/input.c (macro_to_node):  Use the initial size in the
15428         environment as the size of the composite_node.
15430         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
15431         default.
15433 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
15435         * troff/div.c (change_trap): If we get a bad number expression,
15436         do nothing.
15438 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
15440         * lib/matherr.c (matherr): Define this only if math.h defines
15441         TLOSS.
15443 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
15445         * troff/div.c (macro_diversion::distance_to_next_trap): If there
15446         no diversion trap return vunits(INT_MAX - vresolution).
15448 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
15450         * troff/input.c (do_zero_width): New implementation that doesn't
15451         use a temporary environment. Use instead:
15452         (token::add_to_node_list): New function.
15453         * troff/env.c (environment::get_prev_char_height),
15454         (environment::get_prev_char_height),
15455         (environment::get_prev_char_skew): New functions.
15456         (environment::get_prev_char): New function.
15457         (environment::get_prev_char_width): Change to use get_prev_char.
15458         (init_env_request): Implement new registers .cht, .cdp, .csk.
15459         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
15460         \Z being processed in a separate environment.
15462 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
15464         * tbl/table.c: Removed TABLE_BOTTOM_REG.
15466         * tbl/table.c (table::init_output): In the section release macro,
15467         give a warning message if the section won't fit on one page.
15469         * tbl/table.c (table::do_top): Emit table keep only if table is
15470         boxed.
15471         (table::do_bottom): Likewise for table release.
15472         (table::table), (table::add_vertical_rule):  Remove reference to
15473         keep member.
15474         * tbl/table.h: Remove keep member.
15476         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
15477         SECTION_RELEASE_MACRO, if there's not enough space before the next
15478         trap to output the diversion, call T# ourselves, set
15479         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
15480         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
15481         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
15482         vertical position and return to it before turning traps on again.
15483         
15484 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
15486         * troff/node.c, troff/node.h: In classes derived from node,
15487         replace prev_char_width method by last_char_node method.
15488         * troff/env.c (environment::get_prev_char_width): Use
15489         node::last_char_node rather than node::get_prev_char_width.
15491         * Makefile: Added comment about -fno-inline on 68030-based
15492         Apollos.
15494         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
15495         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
15496         expressions using sizeof to int.
15497         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
15499         * macros/tmac.e (TS):  Don't move @f back past the current
15500         position.
15502 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
15504         * ps/ps.c (main): Buffer stderr.
15505         * dvi/dvi.c (main): Likewise.
15506         * tty/tty.c (main): Likewise.
15508         * ps/ps.c (ps_printer::do_import): Improve error handling.
15510         * troff/input.c (abort_request): Use asciify.
15512         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
15513         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
15514         type of first argument int rather than char.  This works around a
15515         bug on the 68030 based Apollo using g++ 1.37.1.
15517         * tbl/table.h (class table): Add `keep' member.
15518         * tbl/table.c (table::table): Initialize `keep'.
15519         (table::add_vertical_rule): Set `keep' to 1.
15520         (table::do_top): Only emit table keep macro is `keep' is non-zero.
15521         (table::do_bottom): Likewise for table release macro.
15522         (table::do_row): Emit section keep macro even if the row is 0.
15524 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
15526         * macros/tmac.e (@C): Preserve the font family across the change
15527         in environments.
15529 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
15531         * lib/font.c: Initialize font::hor and font::vert to 1.
15532         (font::load_desc): Check the values of font::hor and font::vert.
15534         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
15535         be included in a C compilation.
15536         (iftoa): Use INT_DIGITS. Include lib.h.
15537         (itoa): Likewise.
15538         (as_string): Likewise.
15539         * tbl/table.c: Removed definition of INT_DIGITS.
15540         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
15541         * troff/input.c (input_input_requests): Likewise.
15542         * ps/ps.c (make_encoding_name): Likewise.
15543         (ps_printer::set_style): Likewise.
15544         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
15546         * tty/devascii/R.proto: Map fm onto '.
15547         * tty/devlatin1/R.proto: Likewise.
15549 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
15551         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
15552         argument to \w is at a different input level.
15554         * tbl/table.c (table::init_output): Define a new macro
15555         REPEATED_VPT_MACRO, like vpt but if in a diversion also
15556         transparently outputs itself.
15557         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
15558         vpt.
15559         (table::do_row): Likewise.
15561         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
15562         TRANSPARENT_STRING_NAME.
15564         * tbl/table.c (table::init_output): In the table release macro
15565         print an error message and don't produce any output if after
15566         issuing the need request the table still will not fit.  Also
15567         remove the diversion after bringing it back.
15569         * tbl/table.c (table::init_output): Define a new macro
15570         REPEATED_MARK_MACRO, like mk but if in a diversion also
15571         transparently outputs itself.
15572         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
15573         is necessary because .TH might not call .T#.
15574         (table::do_top): Likewise TOP_REG.
15575         (table::define_bottom_macro): If TOP_REG is no longer valid, use
15576         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
15577         table header might contain just the two top rules.
15579 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
15581         * troff/div.c: Implement new request `ptr' to print all traps.
15583         * troff/env.c (init_env_requests): Implement `.tabs' reg with
15584         init_string_env_reg.
15585         * troff/env.c (class tab_reg): Deleted.
15587 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
15589         * troff/div.c: New number register .pn returns the number of the
15590         next page as set by the pn request.
15592         * macros/tmac.an: Redid headers and footers.  Number each manual
15593         entry starting from 1 unless \nC is > 0, like Sun.  Added an
15594         optional 5th argument to .TH which specifies the manual name and
15595         appears in the center of the header.  Understand the X, P and D
15596         registers like Sun.
15598 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
15600         * troff/env.c (init_env_requests): New number register `.lt' to
15601         return the title length.
15603         * troff/node.h (class transparent_dummy_node): New class.
15604         * troff/node.c (class transparent_dummy_node): Provide member
15605         functions. 
15606         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
15607         than a dummy_node.
15609         * troff/input.c (token::next): New escape sequence \).
15610         * troff/input.c (get_copy): Recognize \) in copy mode.
15612         * troff/input.c (input_stack::clear): New function.
15613         * troff/input.c (exit_request): Use input_stack::clear.
15615         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
15616         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
15618         * troff/env.c: Move set_page_character to input.c.  Move
15619         page_character to input.c also.
15620         * troff/env.c (title): Split off the reading of the parts of the
15621         title into read_title_parts.
15622         * troff/input.c (read_title_parts): New function.  Check the
15623         input_level when testing whether a token matches the delimiter.
15625         * troff/input.c (exit_request): New function.
15626         * troff/input.c (init_input_requests): Bind ex request to
15627         exit_request rather than exit_groff.
15629         * troff/input.c (exit_groff): Call tok.next() before
15630         process_input_stack().
15632 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
15634         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
15635         * troff/env.h: ditto.
15636         * troff/input.c: ditto.
15638         * troff/env.c (environment::is_empty): Test pending_lines.
15640         * troff/env.c (environment::have_pending_lines): Removed.
15642         * troff/input.c: Add request to flush pending lines from the
15643         environment.
15645         * troff/env.c, troff/env.h: Add automatic widow control feature.
15647         * troff/input.c (exit_groff):  Do process_input_stack() after
15648         do_break() but before setting exit_flag to 2.
15650         * troff/input.c: Remove FLUSH_PENDING_LINES and
15651         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
15652         environment after END_TRAP token seen, but only if there aren't
15653         any more traps still unfinished.
15654         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
15656 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
15658         * troff/env.c: Rename the `retain_size' member of class
15659         pending_output_line to `no_fill'.
15661         * troff/env.c (title): When the line is output, make the
15662         retain_size argument !fill.
15664         * troff/node.h: Add `hyphenated' member to struct breakpoint.
15665         * troff/node.c (space_node::get_breakpoints),
15666         (dbreak_node::get_breakpoints):  Fill this in.
15667         * troff/env.c:  Allow specification of maximum number of
15668         consecutive hyphenated lines.
15670         * troff/env.c (environment::is_empty): Add test for !current_tab.
15672 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
15674         * troff/env.c (environment::hyphenate_line): Don't completely give
15675         up if the word is not to be hyphenated; continue so that breaks
15676         can be made at break_char_node's.
15678         * lib/lib.h: Only define INT_MAX if it's not already defined;
15679         undef INT_MIN if it's already defined.
15681         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
15683         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
15684         This works around a bug in AT&T C++ 2.0 used with an ANSI C
15685         compiler.
15686         
15687         * macros/tmac.an (an-header): Set no-space mode.
15689         * macros/tmac.an (TH): Start a new page if necessary.
15691         * Started using ChangeLog at version 0.4.
15693 Local Variables:
15694 version-control: never
15695 coding: latin-1
15696 End: