* doc/Makefile.sub: Not all shells expand wildcards in the `for'
[s-roff.git] / ChangeLog
blob5eac35e7c9dc649a08e57767ee764ba5de159822
1 2003-08-07  Werner LEMBERG  <wl@gnu.org>
3         * doc/Makefile.sub: Not all shells expand wildcards in the `for'
4         argument list.  Use `ls' to expand, similar to autoconf.
6         * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
7         empty argument lists.
9         * doc/groff.texinfo: Improve documentation how vertical spacing
10         and line breaks interact.
11         Other minor fixes.
13         * tmac/www.tmac: Initialize `www-htmlimage-gap'.
15 2003-08-03  Werner LEMBERG  <wl@gnu.org>
17         * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
18         EPS (using eps2eps or similar programs to compute the bounding box).
20 2003-07-24  Werner LEMBERG  <wl@gnu.org>
22         * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
23         * doc/texinfo.tex: Updated from texinfo 4.6.
24         * README.CVS: From now on we need texinfo 4.6.
26 2003-07-23  Werner LEMBERG  <wl@gnu.org>
28         Add requests `dei1' and `ami1' for completeness.
30         * src/roff/troff/input.cc (calling_mode): Remove
31         CALLING_DISABLE_COMP.
32         (comp_mode): New enumeration.
33         (do_define_string, define_string, define_nocomp_string,
34         append_string, append_nocomp_string): Updated.
35         (do_define_macro): Add third parameter.
36         (define_macro, define_nocomp_macro, define_indirect_macro,
37         append_macro, append_nocomp_macro, append_indirect_macro): Updated.
38         (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
39         functions.
40         (ignore): Updated.
41         (init_input_requests): Add `dei1' and `ami1'.
43         * tmac/trace.tmac: Handle de1 and am1.
44         (de): Improve tracing message.
45         (am): Add missing `do'.
46         (return): Use de1.
48         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
49         Document new requests.
51 2003-07-22  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
53         Add option -G to .MPIMG to insert a gap between text and the image.
55         * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
56         www-finish-left-ll): Updated.
57         (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
58         (MPIMG): Make option -L and -R optional.
59         Implement option -G.
61 2003-07-22  Gaius Mulley  <gaius@glam.ac.uk>
63         * src/devices/grohtml/post-html.cpp
64         (html_printer::do_file_components): Don't use `stdout' as lvalue
65         since it can be a macro.
67 2003-07-22  Werner LEMBERG  <wl@gnu.org>
69         * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
70         the corresponding test in aclocal.m4.
72 2003-07-21  Werner LEMBERG  <wl@gnu.org>
74         * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
75         names but RGB values directly.  Otherwise pnmtopng depends on
76         an external file `rgb.txt' which maps colour names to values.
78 2003-07-20  Werner LEMBERG  <wl@gnu.org>
80         * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
81         * configure, src/include/config.hin: Regenerated.
83         * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
85 2003-07-19  Werner LEMBERG  <wl@gnu.org>
87         * PROBLEMS: Add solution for UTF-8 problem with hyphens.
89 2003-07-18  Werner LEMBERG  <wl@gnu.org>
91         * *.man: Switch to non-compatibility mode temporarily if GNU
92         syntax extensions are used in the particular man page.
94         * PROBLEMS: Add solutions for SGR problems.
96 2003-07-17  Werner LEMBERG  <wl@gnu.org>
98         Don't ignore grotty's command line options if \X'tty: sgr ...' is
99         used to change the drawing scheme.
101         * src/devives/grotty/tty.cpp (bold_flag_option,
102         underline_flag_option, italic_flag_option, reverse_flag_option,
103         bold_underline_mode_option): New global variables.
104         (update_options): New function.
105         (tty_printer::special): Call update_options.
106         (main): Don't set xxx_flag but xxx_flag_option, then call
107         update_options.
109 2003-07-14  Werner LEMBERG  <wl@gnu.org>
111         Make grotty emit proper Unicode box drawing characters for -Tutf8.
113         * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
114         values.
115         (hline_char, vline_char): New global variables.
116         (tty_printer::tty_printer): Initialize them.
117         (tty_printer::draw): Emit START_LINE and END_LINE flags for both
118         horizontal and vertical lines.
119         (crossings): New global array.
120         (tty_printer::end_page): Use it to determine the proper crossing
121         character for -Tutf8.
123 2003-07-12  Werner LEMBERG  <wl@gnu.org>
125         * doc/Makefilesub (HTMLDOCFILESALL): New macro.
126         (HTMLDOCFILES): Revert to `pic.html'.
127         (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
129 2003-07-11  Werner LEMBERG  <wl@gnu.org>
131         * doc/pic.ms: Improve documentation of absolute coordinates.
132         Document absolute positioning of pictures.
134         * NEWS: Add new pic capability.
136 2003-07-09  Hartmut Henkel  <hartmut_henkel@gmx.de>
138         * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
139         Rewritten.
141 2003-07-07  Werner LEMBERG  <wl@gnu.org>
143         Implement support for dashed and dotted ellipses in pic.  Based on
144         a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
146         * src/preproc/pic/common.cpp (common_output::ellipse_arc,
147         common_output::dashed_ellipse, common_output::dotted_ellipse): New
148         functions.  Ellipse arcs are approximated with circle arcs.
149         * src/preproc/pic/common.h (common_output): Updated.
150         * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
151         functions.
152         * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
154         * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
156 2003-07-06  Werner LEMBERG  <wl@gnu.org>
158         Make grotty work on platforms which have unsigned char as the
159         default for char.  Based on a patch by Thomas Klausner
160         <wiz@netbsd.org>.
162         * src/devices/grotty/tty.cpp (schar): New typedef.
163         Updated calls to declare_ptable and implement_ptable.
164         (glyph): Use schar for back_color_idx and fore_color_idx.
165         (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
166         (tty_printer::tty_color, tty_printer::tty_printer,
167         tty_printer::color_to_idx, tty_printer::put_color): Updated.
169 2003-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
171         * src/roff/nroff/nroff.sh: Add option -d for completeness.
172         * src/roff/nroff/nroff.man: Updated.
174 2003-07-05  Werner LEMBERG  <wl@gnu.org>
176         * NEWS, tmac/groff_www.man: Updated.
177         * doc/Makefile.sub: Updated.
179 2003-07-05  Gaius Mulley  <gaius@glam.ac.uk>
181         Implement support for multiple HTML output files.
183         * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
184         -j command line option.
186         * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
187         global variables.
188         (file): New fields `new_output_file', `require_links',
189         `output_file_name'.
190         (file::file): Updated.
191         (files::set_file_name, files::set_links_required,
192         files::are_links_required, files::is_new_output_file,
193         files::file_name, files::next_file_name): New functions.
194         (header_desc): New fields `no_of_level_one_headings',
195         `header_filename'.
196         (header_desc::header_desc): Updated.
197         (header_desc::write_headings): Handle multiple files.
198         (html_printer::write_header): Save file name in which header occurs.
199         (html_printer::determine_header_level): Possibly split files on
200         level one headings.
201         (html_printer::do_links, html_printer::troff_tag): Updated.
202         (html_printer::insert_split_file, html_printer::do_job_name,
203         html_printer::emit_link, html_printer::write_navigation,
204         html_printer::do_file_components): New functions.
205         (html_printer::~html_printer): Handle multiple files.
206         (main): Handle command line option `-j'.
208         * src/devices/grohtml/grohtml.man: Updated.
210         * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
211         which splits file.
213         * tmac/www.tmac (JOBNAME): New macro.
214         * tmac/s.tmac (SH-NO-TAG): New macro.
215         (@SH): Call SH-NO-TAG.
216         (@NH): Updated.
218 2003-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
220         * tmac/groff_mdoc.man: Improve documentation of punctuation
221         characters.
223 2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>
225         * tmac/doc.tmac (Bd): Change to doc-Li-font later.
227 2003-07-03  Werner LEMBERG  <wl@gnu.org>
229         * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
231 2003-07-01  Ruslan Ermilov  <ru@FreeBSD.org>
233         * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
234         after `/*' and `*/'.
235         Fix spacing.
236         (Fn, Fo): Reduce indentation in synopsis.
238         * tmac/doc-common (doc-check-depth): New macro.
239         (doc-end-macro, Sh, Ss): Use it.
240         (Cd): Fix behaviour in synopsis.
241         (In): Make it parsed and callable.
242         If not in the synopsis, represent the C header file enclosed in
243         angle brackets.
244         (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
245         Use minus, not hyphen.
247         * tmc/groff_mdoc.man: Updated.
249 2003-07-01  Werner LEMBERG  <wl@gnu.org>
251         Integrated grap2graph, contributed by Eric S. Raymond.
253         * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
254         New files.
255         * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
256         contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
258 2003-07-01  Colin Watson  <cjwatson@debian.org>
260         * src/xditview/*.c: Add prototypes, fix return types, add includes.
261         Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
263 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
265         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
267 2003-06-31  Werner LEMBERG  <wl@gnu.org>
269         * doc/Makefile.sub (CLEANADD): Remove all files created by
270         running `make groff.{pdf,dvi}'.
272         * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
273         src/xditview also.
275 2003-06-30  Werner LEMBERG  <wl@gnu.org>
277         * Makefile.in (SHELL): Define as @SHELL@.
278         (mkinstalldirs): Use $(SHELL).
279         (MDEFINES): Add $(SHELL).
280         * Makefile.comm (SHELL): Removed.
282 2003-06-29  Werner LEMBERG  <wl@gnu.org>
284         * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
285         The X11 documentation files use them.
286         * tmac/groff_ms.man, doc/groff.texinfo: Document them.
288 2003-06-15  Robert Goulding  <goulding@Princeton.EDU>
290         * tmac/e.tmac (@C): Handle .ad also.
292 2003-06-12  Werner LEMBERG  <wl@gnu.org>
294         * src/preproc/tbl/tbl.man: Document formatting of text blocks.
296         * src/roff/troff/input.cc (token::next) <handle_escape_char>:
297         Assign `n' even here.  It is possible to construct a node
298         immediately following an escape character:
300           .di xx
301           \?\\\?a
302           .br
303           .di
304           .xx
306 2003-06-10  Werner LEMBERG  <wl@gnu.org>
308         * README.WIN32: Removed.
309         * MANIFEST: Updated.
311 2003-06-07  Werner LEMBERG  <wl@gnu.org>
313         * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
315 2003-06-05  Werner LEMBERG  <wl@gnu.org>
317         * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
318         in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
320 2003-06-03  Werner LEMBERG  <wl@gnu.org>
322         * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
323         is done by the calling function.
325 2003-05-22  Ruslan Ermilov  <ru@FreeBSD.org>
327         * tmac/X.tmac: Fix definition of `em'.
329 2003-05-22  Werner LEMBERG  <wl@gnu.org>
331         * src/roff/troff/input.cc (return_macro_request): Fix detection of
332         argument.
334 2003-05-18  Werner LEMBERG  <wl@gnu.org>
336         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
337         to make items work which consist only of a tag.
339 2003-05-17  Werner LEMBERG  <wl@gnu.org>
341         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
342         aren't stretched in a tag (this can fail with unformatted boxes).
343         Instead, insert a break and go back one line.
345 2003-05-16  Werner LEMBERG  <wl@gnu.org>
347         * src/roff/troff/input.cc (return_macro_request): If called with
348         argument pop macro twice.  We need this to trace `return'.
350         * tmac/trace.tmac: Handle `return'.
351         Fix typos.
353         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
354         Document.
356 2003-05-15  Larry Kollar  <kollar@alltel.net>
358         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
359         registers `FPS', `FVS', and `FPD'.
361 2003-05-15  Werner LEMBERG  <wl@gnu.org>
363         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
364         correctly.
366 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
368         * tmac/groff_mdoc.man: Slight improvements.
370 2003-05-03  Werner LEMBERG  <wl@gnu.org>
372         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
373         `doc-header-space' after header line if register `cR' is set.
375 2003-05-02  Werner LEMBERG  <wl@gnu.org>
377         * TODO: Updated.
379 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
381         * tmac/doc-common (Nd): Use \[em].
383 2003-05-01  Werner LEMBERG  <wl@gnu.org>
385         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
386         doc-footer-space): Initialize to 0.5i.
387         (doc-setup-page-layout): Don't set doc-header-space and
388         doc-footer-space.
390 2003-04-30  Werner LEMBERG  <wl@gnu.org>
392         * REVISION: Set to 1.
394         * doc/pic.ms: Document possible problems with `figname'.
396 2003-04-29  Werner LEMBERG  <wl@gnu.org>
398 Version 1.19 released
399 =====================
401         * VERSION: Set to 1.19.
402         * REVISION: Set to 0.
403         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
405         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
406         Define charset as `US-ASCII' in html output.
408         * tmac/www.tmac (ULE): Add missing scaling indicator.
410         * win32-diffs: Removed.
412 2003-04-28  Werner LEMBERG  <wl@gnu.org>
414         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
415         `.da' and `.boxa'.
416         Document how to insert discardable whitespace with `.ss'.
418 2003-04-27  Werner LEMBERG  <wl@gnu.org>
420         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
421         work with plain TeX also.
423         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
425 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
427         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
428         Use a loose DTD.
430 2003-04-24  Werner LEMBERG  <wl@gnu.org>
432         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
433         vbox with positive height and zero depth if in TeX mode.
435         * NEWS: Document glyph name changes for grodvi and grolj4.
437 2003-04-23  Werner LEMBERG  <wl@gnu.org>
439         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
440         * doc/pic.ms: Fixed.
442 2003-04-21  Werner LEMBERG  <wl@gnu.org>
444         HP-UX 10.20 has `snprintf' but it isn't declared.
446         * configure.ac: Add declaration test for snprintf.
447         * configure: Regenerated.
448         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
449         * src/include/config.hin: Regenerated.
451 2003-04-19  Werner LEMBERG  <wl@gnu.org>
453         Add keyword `figname' to pic, specifying the name of the picture
454         box in TeX mode.  Based on a patch from William J Poser
455         <wjposer@unagi.cis.upenn.edu>.
457         * src/preproc/pic/pic.y: New token `FIGNAME'.
458         (macro_name): New rule of type <str>.
459         (placeless_element): Handle `FIGNAME'.
460         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
461         * src/preproc/pic/main.cpp (graphname): New global variable.
462         (do_picture): Initialize `graphname'.
463         * src/preproc/pic/pic.h: Updated.
464         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
465         `graphname'.
466         Simplify TeX code.
467         (tex_output::text): Beautify output.
468         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
469         `shaded' and `outlined' unconditionally.
470         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
471         Minor improvements.
473         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
474         greater is necessary.
476 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
478         Add option -r to soelim to avoid emission of `.lf' lines.
479         Add option -t to produces TeX comment lines instead of `.lf' lines.
481         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
482         and `tex_flag'.
483         (usage): Updated.
484         (main): Handle `-r' and `-t'.
485         (set_location): Handle `raw_flag' and `tex_flag'.
486         * src/preproc/soelim/soelim.man, NEWS: Updated.
488 2003-04-17  Werner LEMBERG  <wl@gnu.org>
490         * tmac/hyphenex.sh: Replaced with...
491         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
492         nightmares.
494         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
495         if --quiet is used for the configure script.
496         * configure: Regenerated.
498 2003-04-16  Werner LEMBERG  <wl@gnu.org>
500         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
501         Add `const' to second argument.
502         (html_printer::add_table_end): Add `const' to argument.
503         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
504         `const' to arguments.
505         * src/devices/grohtml/html-text.h: Updated.
507         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
508         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
509         argument.
511         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
512         cast for integer constant.
514         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
515         (writeNbytes): Add `const' to first argument.
516         (writeString): Add `const' to argument.
517         (char_buffer::can_see): Add `const' to third argument.
518         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
519         `const' to argument.
520         * src/preproc/html/pushback.h: Updated.
522         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
523         (include_path_append): Add `const' to argument.
524         (do_file): Updated.
526         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
527         for `value'.
528         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
529         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
530         for `value'.
531         (unicode_decompose_init::unicode_decompose_init): Updated.
532         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
533         for `value'.
534         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
535         * src/roff/troff/input.cc (process_startup_file): Add `const' to
536         argument.
538         * tmac/hyphenex.sh: Make script more portable by using a here
539         document.
541 2003-04-15  Werner LEMBERG  <wl@gnu.org>
543         Renamed all `*.cc' files to `*.cpp'.
544         Updated all configuration files, makefiles, and documentation.
546 2003-04-14  Werner LEMBERG  <wl@gnu.org>
548         * tmac/hyphenex.sh: Slight improvements.
550 2003-04-13  Werner LEMBERG  <wl@gnu.org>
552         * font/devascii/R.proto, font/devcp1037/R.proto,
553         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
554         character slots with unnamed glyphs.
556         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
557         (an-first): New global variable.
558         (an-header): Emit vertical space between multiple man pages.
560 2003-04-11  Werner LEMBERG  <wl@gnu.org>
562         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
563         values.
565 2003-04-10  Werner LEMBERG  <wl@gnu.org>
567         * PROBLEMS: Revised.
569 2003-04-10  Bernd Warken  <bwarken@mayn.de>
571         * doc/webpage.ms: Improved.
573 2003-04-09  Werner LEMBERG  <wl@gnu.org>
575         Add register \n[.height] which returns the value of \H.
576         Add register \n[.slant] which returns the value of \S.
578         * src/roff/troff/env.cc (init_env_requests): Implement.
579         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
580         Document.
582 2003-04-08  Werner LEMBERG  <wl@gnu.org>
584         * tmac/html.tmac: Move some of the data into html-end.tmac.
585         Remove most of the character translations for eqn since html fonts
586         now cover those characters.
587         Load www.tmac.
588         * tmac/html-end.tmac: New file.
589         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
590         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
591         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
593 2003-04-07  Werner LEMBERG  <wl@gnu.org>
595         * man/groff_out.man: Document negative values of `N' if -Thtml is
596         used.
598 2003-04-06  Werner LEMBERG  <wl@gnu.org>
600         * Makefile.comm (depend.temp): Check location of YTABC.
602 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
604         * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
605         binary path.
606         (groff_bin_path): Rename to GROFF_BIN_PATH.
607         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
608         * doc/Makefile.in (TROFFBIN): New variable for troff
609         binary path.
610         (GROFFBIN): New variable for groff binary path.
611         (groff_bin_path): Rename to GROFF_BIN_PATH.
612         (TROFF): Use TROFFBIN.
613         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
614         * doc/Makefile.sub (GROFFBIN): New variable for groff
615         binary path.
616         (groff_bin_path): Rename to GROFF_BIN_PATH.
617         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
619         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
620         with INSTALL_SCRIPT.
621         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
622         * Makefile.dev (all): Depend on DEVSCRIPTS.
623         (install_dev): Likewise.
624         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
625         scripts.
626         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
627         (DEVGENSCRIPTS): New variable to hold generated scripts.
629 2003-04-05  Werner LEMBERG  <wl@gnu.org>
631         * src/libs/libdriver/input.cc (IntArray::operator[],
632         IntArray::get_data): Remove meaningless `const' in return value.
634         * README.CVS: New file.
636 2003-04-04  Werner LEMBERG  <wl@gnu.org>
638         Check for stdint.h in C++, not in C.
640         * aclocal.m4 (GROFF_STDINT_H): New function,
641         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
642         AC_CHECK_HEADERS.
643         * configure, src/include/config.hin: Regenerated.
644         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
647         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
648         with a negative value, representing the width of the unbreakable
649         space (only for -Thtml).  grohtml then converts this back to
650         &nbsp; and uses the value of N as its width.
652         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
653         unbreakable_space_node::tprint): Emit `N-<width>'.
654         * src/include/printer.h (printer::set_numbered_char): Make it
655         virtual.
656         Make members `font_table' and `nfonts' protected instead of private.
657         * src/devices/grohtml/post-html.cc
658         (html_printer::set_numbered_char): New member function.
661         * src/libs/libgroff/maxfilename.cc:
662         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
664         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
665         emit word marker.
667 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
669         * man/roff.man: Small fixes.
671 2003-04-03  Werner LEMBERG  <wl@gnu.org>
673         Make groff independent from locale's numeric settings.
675         * configure.ac: Check for `setlocale'.
676         * configure, src/include/config.hin: Regenerated.
678         * src/include/lib.h: Handle HAVE_SETLOCALE.
680         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
681         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
682         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
685         * doc/groff.texinfo: Change dir category to `Typesetting'.
686         (Man font macros): Mention that there is no space between arguments
687         of .BI and friends.
689         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
690         (*printer::change_color, *printer::change_fill_color): Add missing
691         `const'.
693 2003-04-02  Werner LEMBERG  <wl@gnu.org>
695         * src/devices/grohtml/html-table.cc (html_table::emit_col,
696         html_table::is_gap): Compute table widths after converting border
697         positions to avoid rounding errors.
699 2003-04-01  Werner LEMBERG  <wl@gnu.org>
701         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
702         `space_emitted' properly.
704 2003-03-31  Werner LEMBERG  <wl@gnu.org>
706         * src/devices/grohtml/html-table.cc: Fix column width calculation.
707         (html_table::set_linelength): Don't add 1.
708         (html_table::add_indent): Don't subtract 1.
710         * tmac/html.tmac: Set default page offset to zero.
712 2003-03-30  Werner LEMBERG  <wl@gnu.org>
714         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
716         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
717         unbreakable_space_node::tprint): New functions.
718         (troff_output_file): Make space_char_hmotion_mode::tprint and
719         unbreakable_space_node::tprint to friends.
720         * src/roff/troff/node.h: Updated.
722         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
723         in the HTML standard).
725 2003-03-29  Werner LEMBERG  <wl@gnu.org>
727         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
728         Otherwise, the following code
730           .di xxx
731           .ps 10
732           a
733           .br
734           .di
735           x\*[xxx]
737         produces `x a' instead of `xa'.  This is a temporary fix, disabling
738         font changes in diversions for -Thtml.
740         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
741         `HTML-TAG'.
742         (an-do-tag-html): Merge with ...
743         (an-do-tag): This macro.
744         Change code slightly to circumvent grohtml bug.
745         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
747         * src/devices/grohtml/html-table.cc (html_table::emit_col,
748         html_table::is_gap): Round `width' properly.
750         * tmac/html.tmac: Provide some default layout parameters for
751         grohtml.
753         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
754         command.
756 2003-03-28  Werner LEMBERG  <wl@gnu.org>
758         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
760 2003-03-27  Werner LEMBERG  <wl@gnu.org>
762         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
763         defined.
765 2003-03-20  Werner LEMBERG  <wl@gnu.org>
767         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
768         `.vs'.
769         * doc/groff.texinfo: Updated.
771 2003-03-19  Werner LEMBERG  <wl@gnu.org>
773         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
774         TOKEN_END_TRAP>: Reset `have_input'.
776 2003-03-18  Werner LEMBERG  <wl@gnu.org>
778         * src/roff/groff/groff.man: Mention groff_trace man page.
780 2003-03-16  Werner LEMBERG  <wl@gnu.org>
782         * Makefile.in (LIBEXT): New variable to indicate the file extension
783         of library files.  Computed heuristically from $(OBJEXT).
784         (MDEFINES): Add $(LIBEXT).
785         * Makefile.lib, Makefile.comm: Use it.
787         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
788         overlong lines into smaller chunks.
789         (get_binary): New function.
790         (main): Use them.
791         * src/utils/pfbtops/pfbtops.man: Updated.
793 2003-03-15  Colin Watson  <cjwatson@debian.org>
795         * src/roff/groff/groff.man: Minor syntax fix.
797 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
799         * src/devices/grops/ps.cc (ps_printer::media_set,
800         ps_printer::~ps_printer): Handle zero paper width and length.
802 2003-03-13  Werner LEMBERG  <wl@gnu.org>
804         Add options -p and -l to grodvi.
806         * src/devices/grodvi/dvi.cc: Include paper.h.
807         (landscape_flag, user_paper_length, user_paper_width): New global
808         variables.
809         (dvi_printer::begin_page): Emit `papersize' special.
810         Set color after initialization of `cur_h' and `cur_v'.
811         (main): Add options `-l' and `-p'.
812         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
813         * src/devices/grodvi/grodvi.man, NEWS: Updated.
815         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
817 2003-03-12  Werner LEMBERG  <wl@gnu.org>
819         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
820         * man/groff_tmac.man: This man page.
821         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
822         deprecated.
824         * tmac/X.tmac: Don't load pspic.tmac.
826 2003-03-11  Werner LEMBERG  <wl@gnu.org>
828         Make variable `pr' local to libdriver/input.cc.  Based on a patch
829         by Bernd Warken <bwarken@mayn.de>.
831         * src/include/driver.h (pr): Removed.
833         * src/libs/libdriver/input.cc (pr): New global variable.
834         (do_file): Deallocate `pr'.
835         * src/libs/libdriver/printer.cc (pr): Removed.
837         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
838         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
839         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
840         (main): Don't delete `pr'.
842 2003-03-10  Werner LEMBERG  <wl@gnu.org>
844         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
845         * tmac/papersize.tmac: New file.
846         * tmac/troffrc: Include `papersize.tmac'.
847         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
848         * tmac/an-old.tmac: Set LT to LL by default.
850         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
851         doc/groff.texinfo: Updated.
853         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
854         bug which caused all odd iso papers to have wrong dimensions.
856         * src/devices/grops/ps.cc (user_paper_width): New global variable.
857         (main) <'p'>: Set `user_paper_width' also.
858         (ps_printer::media_width, ps_printer::media_height): Use values
859         given with option `-p'.
861 2003-03-09  Werner LEMBERG  <wl@gnu.org>
863         * src/include/nonposix.h: Provide default for SET_BINARY.
865         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
866         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
867         unconditionally.
869         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
870         (main): Treat \r\n as \n.
872 2003-03-08  Werner LEMBERG  <wl@gnu.org>
874         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
875         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
877 2003-03-07  Werner LEMBERG  <wl@gnu.org>
879         Added support to access more than 256 glyphs in Type 1 fonts.
881         * src/devices/grops/ps.cc (subencoding): New structure.
882         (style): Add `sub' field.
883         Updated all users.
884         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
885         Add `set_subencoding', `get_subfont' and `encode_subfont' member
886         functions.
887         Updated all users.
888         (ps_printer::set_char): Use `set_subencoding'.
889         (make_subencoding_name): New function.
890         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
891         (ps_printer::~ps_printer): Emit subencoding definitions.
893         * src/devices/grops/psrm.cc (valid_input_table): New array to
894         properly support EBCDIC.
895         (white_space): Add `\f'.
896         (ps_get_line): Change first argument to be of type `string &'.
897         Updated all callers.
898         This allows to get lines of arbitrary length.
899         Use `valid_input_table'.
900         Remove warning about non-conforming PS line length.  This seems
901         not to be of great importance -- for example, dvips don't emit
902         a warning either.
903         (PS_LINE_MAX): Removed.
904         (matches_comment): Change first argument to be of type `string &'.
906         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
908         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
909         %AGL_to_unicode, %default_ligatures): New hash tables.
910         Read all map entries.
911         Add unencoded characters.
912         Check for default ligatures if there are no `L' entries.
913         Print all kern entries.
914         Print all characters in charset.
915         * src/utils/afmtodit/afmtodit.man: Updated.
917         * font/devps/*: Regerated all fonts.
919         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
920         of characters, just use `.trin'.  Otherwise the mapping depends
921         on the font encoding.
922         * tmac/ps.tmac: Add `fi' and `fl'.
923         Improve `Fi' and `Fl'.
924         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
925         * tmac/Xps.tmac: Fix `em'.
927         * NEWS: Updated.
929 2003-03-04  Werner LEMBERG  <wl@gnu.org>
931         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
932         `have_input'.
934 2003-03-03  Werner LEMBERG  <wl@gnu.org>
936         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
938         * font/devps/generate/textmap: Remove entry `similarequal'.
939         * font/devps/symbolmap: Updated.
941 2003-03-02  Werner LEMBERG  <wl@gnu.org>
943         * src/libs/libgroff/font.cc (font::load): Fix error message for
944         bad character type.
946         * src/devices/grops/grops.man: Improve documentation of the -b
947         flag.
949         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
950         `ascii' and `cp1047'.
952 2003-03-01  Werner LEMBERG  <wl@gnu.org>
954         Document composite glyphs and the `composite' request.
956         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
958 2003-02-28  Werner LEMBERG  <wl@gnu.org>
960         * font/devdvi/generate/ec.map: Add some more Unicode entities.
961         * font/devdvi/*EC: Updated.
963         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
964         * tmac/latin1 (latin1-tr): Undo any previous mapping.
965         * tmac/troffrc: Load `composite.tmac'.
966         * tmac/Makefile.sub (NORMALFILES): Updated.
968         * doc/groff.texinfo (Input Encodings): New section.
969         * NEWS: Updated.
971 2003-02-27  Werner LEMBERG  <wl@gnu.org>
973         * doc/texinfo.tex: New version 2003-02-11.06.
975         * tmac/doc-common (Dt): Don't emit warning for unknown section.
976         * tmac/groff_mdoc.man: Fix description of `Dt'.
978 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
980         * font/devps/prologue.ps: Fix for included Postscript that does
981         a setpagedevice -- which is now safely ignored.
983         * NEWS: Updated.
985         * src/devices/grops/ps.cc: Now sets the page size in the generated
986         document.  This is done in two ways: Via a %%-comment for gv and
987         the like, and via a PageSize and setpagedevice for programs that
988         understands Postscript proper, like ps2pdf.
990         * src/devices/grops/ps.h: New broken-flag to avoid page size
991         definition, if required.
993         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
995         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
996         Not really necessary due to the fix in prologue.ps, but cleaner:
997         Such information does not belong in an .eps file.
999         * doc/Makefile.sub: See doc/Makefile.in.
1001 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
1003         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
1004         instead of P1 since the latter is broken in some versions of netpbm.
1005         * configure: Updated.
1007 2003-02-26  Larry Kollar  <kollar@alltel.net>
1009         Make man pages more customizable.
1011         * tmac/an-old.tmac (FT): New register holding footer distance from
1012         bottom.
1013         (HF): New string holding the default heading font.
1014         (TH): Handle registers `IN' and `SN' set on the command line.
1015         Use `FT'.
1016         (PT, BT): New strings to customize header and footer lines.
1017         (an-header, an-footer): Use them.
1018         (SH, SS): Use `HF'.
1019         * tmac/groff_man.man: Document changes.
1021         * doc/groff.texinfo: Document man changes.
1022         Document Ultrix extensions of man.
1024 2003-02-26  Werner LEMBERG  <wl@gnu.org>
1026         * src/roff/troff/input.cc (do_width, do_if_request): Reset
1027         `have_input' after changing back to old environment.
1029         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
1030         function up to be defined before first call.  This is necessary to
1031         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
1033         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
1034         the default font directory also.  Based on a patch from James
1035         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
1036         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
1037         * src/utils/afmtodit/afmtodit.man: Document it.
1039         * NEWS: Updated.
1041         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
1043 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
1045         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
1046         (GROFF_PNMTOPS_NOSETPAGE): New macro.
1047         * configure.ac: Use it.
1048         * configure: Regenerated.
1049         * Makefile.in: Updated.
1051         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
1052         (CLEANADD): Add www.tmac-sed.
1053         (pnmtops_nosetpage): Define default.
1054         (install_data): Handle www.tmac-sed and substitute
1055         @PNMTOPS_NOSETPAGE@.
1056         (stamp-sed): Add www.tmac.
1057         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
1058         It now breaks URLs at suitable places.
1059         (www:substring_ok): New register set by...
1060         (www:@test_substring): New macro.
1061         (www:error): New alias to www-error.
1062         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
1063         New macros.
1064         (URL): Use www:url_breaks.
1065         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
1066         (CDS, CDE): New macros.
1068 2003-02-25  Werner LEMBERG  <wl@gnu.org>
1070         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
1071         buffer overflow.
1073 2003-02-24  Werner LEMBERG  <wl@gnu.org>
1075         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
1076         can be negative also.
1078         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
1079         `int16'.
1080         (read_char_table): Avoid negative ascenders.
1081         (output_charset): Add cast.
1082         * font/devlj4/*: Regenerated.
1084         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
1085         possible.
1087         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
1088         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
1089         of `<>'.
1090         * font/devdvi/*: Regenerated.
1092         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
1093         normal width, while the previously used characters (U+2329 and
1094         U+232A) are classified as wide due to canonical equivalence with the
1095         CJK punctuation characters U+3008 and U+3009.
1097         * font/devutf8/R.proto: Updated.
1098         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
1100         * man/groff_char.man: Simplify handling of table traps by
1101         introducing `start block' and `end block' macros.
1102         (Ns, Ne, 2s, 2e, Ds, De): New macros.
1103         (DL): Make it work with Unix troff also.
1104         Fix code values of `la' and `ra'.
1106         * tmac/dvi.tmac: Define `<>' for CW and CWI.
1108 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
1110         * src/devices/grohtml/post-html.cc (element_list::~element_list):
1111         New destructor, fixing a major memory leak.
1113 2003-02-22  Werner LEMBERG  <wl@gnu.org>
1115         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
1116         to be in conformance with Unicode 3.0 and newer.
1118         * font/devlj4/generate/text.map: Add `Eu'.
1119         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
1120         * font/devlj4/S: Regenerated.
1122         * man/groff_char.man: Completely rewritten.
1124         * doc/groff.texinfo: Fix description of request and macro arguments.
1126 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
1128         Valgrind fixes.
1130         * src/devices/grohtml/html-table.cc (html_table::~html_table):
1131         Deallocate `columns' list.
1132         * src/devices/grohtml/post-html.cc (char_block::~char_block):
1133         New destructor.
1134         (text_glob::text_glob_html, text_glob::text_glob_special,
1135         text_glob::text_glob_line, text_glob::text_glob_auto_image,
1136         text_glob::text_glob_tag): Avoid memory leaks.
1137         (text_glob::remember_table): Free memory before reassigning.
1139 2003-02-19  Werner LEMBERG  <wl@gnu.org>
1141         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
1142         alias `hbar'), the Planck constant over two pi.
1144         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
1145         `+e' for position 34.
1146         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
1147         `u2662' and `u2661'.
1148         * font/devdvi/{MI,S}: Regenerated.
1149         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
1150         * font/devlbp/*: Add `hbar' alias.
1151         * font/devlj4/generate/special.map: Ditto.
1152         * font/devlj4/S: Regenerated.
1153         * font/devps/generate/symbolchars: Add `+e'.
1154         * font/devps/generate/textmap: Fix PS name for `-h'.
1155         Add `hbar' alias.
1156         * font/devps/symbolmap: Regenerated.
1158         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
1160         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
1161         `-h', `hbar'.
1162         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
1163         `-h'.
1165         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
1166         `hbar'.
1167         * tmac/tty-char.tmac: Add `+e'.
1169 2003-02-17  Werner LEMBERG  <wl@gnu.org>
1171         Another round trying to really fix problems with `have_input'.
1173         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
1174         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
1176         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
1177         handling if both foreground and background colors are default.
1179         * doc/groff.texinfo (Debugging): Document .lf differences to
1180         AT&T troff.
1182 2003-02-16  Werner LEMBERG  <wl@gnu.org>
1184         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
1185         null-bytes in created string.
1187         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
1188         alias_macro, lookup_request): Improve warning messages.
1190         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
1191         not `strdup'.
1192         Free `last_image_filename'.
1194         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
1195         `buffer'.
1196         (imageList::createPage, imageList::createImage): Use `free', not
1197         `a_delete'.
1198         (imageItem::~imageItem): Free `imageName'.
1199         (addRegDef): Use `strsave', not `strdup'.
1200         (get_resolution): Free `pathp'.
1202 2003-02-15  Werner LEMBERG  <wl@gnu.org>
1204         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
1205         to `dummy'.
1207 2003-02-14  Werner LEMBERG  <wl@gnu.org>
1209         Add memory management for colors to deallocate unnamed colors
1210         properly.
1212         * src/include/color.h (color): New members `free_list' and `next'.
1213         New member functions `new' and `delete'.
1214         Add destructor.
1215         * src/libs/libgroff/color.cc: Implement it.
1217         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
1218         for array size of new operator.
1220         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
1221         redundant comparison.
1223         * src/roff/troff/input.cc (word_space_node::reread,
1224         hmotion_node::reread): Avoid warning about unused parameter.
1225         (reset_output_registers): Remove redundant parameter.
1226         (define_color): Undo change 2003-02-12.
1228         * src/roff/troff/reg.h: Updated.
1230         * src/roff/troff/node.cc (troff_output_file::really_print_line,
1231         output_file::put_filename, real_output_file::really_put_filename,
1232         ascii_output_file::really_print_line,
1233         break_char_node::get_hyphen_list): Avoid warning about unused
1234         parameter.
1235         (suppress_node::tprint): Updated.
1237         * configure.ac: Check declaration for rand() and srand().
1238         * configure: Regenerated.
1240         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
1241         conditionally.
1242         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
1243         and srand().
1245         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
1246         to avoid compiler warnings.
1248         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
1249         unused.
1251         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
1252         is unused.
1253         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
1254         (unused) parameter.
1255         Updated all callers.
1257         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
1258         is unused.
1259         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
1260         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
1262         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
1263         Parameter is unused.
1264         (html_printer::add_table_end): Define parameter conditionally.
1265         * src/devices/grohtml/output.cc (simple_output::special): Parameter
1266         is unused.
1268         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
1269         (lbp_printer::set_char): Last parameter is unused.
1271         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
1273 2003-02-13  Werner LEMBERG  <wl@gnu.org>
1275         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
1276         Make \D'f ...' move horizontally again for backwards compatibility.
1277         Replace it with \D'Fg ...' where appropriate to avoid dependency
1278         on horizontal resolution.
1280         * src/roff/troff/input.cc (do_get_long_name): New function.
1281         (get_long_name): Call it.
1283         (read_draw_node): Handle `\D'Fx ...' by calling ...
1284         (read_color_draw_node): New function.
1286         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
1287         `end'.
1288         Pass it to `do_get_long_name' which is used instead of
1289         `get_long_name'.
1291         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
1292         unnecessary value guard.
1293         (parse_D_command) <'f'>: Add horizontal shift.
1295         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
1296         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
1297         (FILL_MAX): Removed.
1299         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1300         Updated.
1302 2003-02-12  Werner LEMBERG  <wl@gnu.org>
1304         * src/roff/troff/input.cc (do_name_test, do_expr_test,
1305         do_zero_width): Push `\n' if closing delimiter is missing.
1307         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
1308         <'F'>: Make \F non-transparent at the beginning of line.
1309         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
1310         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
1311         `have_input'.
1313         (define_color): Free color in case of reassignment.
1315         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
1316         @DefescListEnd): Use @Var, not @var.
1317         Fix all calls.
1319         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
1321         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
1322         `shaded' and `outlined' arrays.
1323         (object_spec::object_spec): Initialize `shaded' and `outlined'.
1324         (graphic_object::set_fill_color, graphic_object::set_outline_color):
1325         Use strsave.
1326         (closed_object::set_fill_color): Ditto.
1327         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
1328         instead of strdup.
1329         (troff_output::reset_color): Use a_delete instead of free.
1330         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
1332 2003-02-11  Werner LEMBERG  <wl@gnu.org>
1334         * doc/groff.texinfo: Improve documentation of `ad'.
1335         Document that \D'f...' is dependent on the horizontal resolution.
1336         * man/groff_diff.man: Improve documentation of \D'f...'.
1338         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
1339         compensating \h'...' for \D'f ...' since the latter no longer moves
1340         current position.
1341         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
1343 2003-02-10  Werner LEMBERG  <wl@gnu.org>
1345         Improve error messages for `x F' (and `F') commands.
1347         * src/include/error.h: Add declaration for
1348         `current_source_filename'.
1349         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
1350         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
1351         parameter for source file string.
1352         Updated all callers.
1354         * src/libs/libdriver/input.cc: Add `current_source_filename'.
1355         (remember_source_filename): New function.
1356         (parse_x_command <'F'>, do_file <'F'>): Use it.
1358 2003-02-09  Werner LEMBERG  <wl@gnu.org>
1360         Make grotty not emit warnings about unknown colors more than
1361         necessary.
1363         * src/devices/grotty/tty.cc: Include `ptable.h'.
1364         (TTY_MAX_COLORS): Removed.
1365         (DEFAULT_COLOR_IDX): Defined to -1.
1366         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
1367         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
1368         Change `tty_colors' to be a ptable.
1369         First arg of `put_color' is now `char'.
1370         New functions `make_rgb_string' and `tty_color'.
1371         (tty_printer::tty_printer): Use `tty_color'.
1372         (tty_printer::color_to_idx): Return value is now `char'.
1373         Use `tty_color'.
1375         * src/include/color.h (color): Add `print_color' member function.
1376         * src/libs/libgroff/color.cc (color::print_color): Implement it.
1378 2003-02-08  Werner LEMBERG  <wl@gnu.org>
1380         Valgrind fixes.
1382         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
1383         encoding file.
1385         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
1386         assume that value has been allocated with `new[]', thus use
1387         `a_delete' for deallocation.
1389         * src/libs/libdriver/input.cc (get_integer_arg,
1390         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
1391         where appropriate.
1393         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
1394         * src/libs/libgroff/nametoindex.cc
1395         (character_indexer::named_char_index): Use `new <type>[1]'.
1397         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
1398         <type>[1]'.
1399         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
1400         (split_text): Use `a_delete'.
1402         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
1403         <type>[1]'.
1405         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
1406         harmless memory leak.
1407         (hyphen_trie::read_patterns_file): Initialize `buf'.
1408         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
1409         Initialize `current_fill_color'and `current_glyph_color'.
1410         * src/roff/troff/glyphuni.cc
1411         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
1412         * src/roff/troff/uniuni.cc
1413         (unicode_decompose_init::unicode_decompose_init): Ditto.
1414         * src/roff/troff/uniglyph.cc
1415         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
1417 2003-01-26  Werner LEMBERG  <wl@gnu.org>
1419         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
1420         `access' before calling `unlink'.
1421         (do_file): Handle __EMX__.
1423         * src/include/nonposix.h: Handle __EMX__.
1425         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
1426         (fontpath,tmacpath): Use it.
1427         (MDEFINES): Add it.
1428         Sorted alphabetically.
1430         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
1431         @SEP@.
1432         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
1433         @SEP@.
1435 2003-01-27  Werner LEMBERG  <wl@gnu.org>
1437         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
1438         New files, copied from gnulib.
1439         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
1440         * configure.ac: Updated.
1441         * configure: Regenerated.
1443         * src/include/config.hin: Regenerated.
1444         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
1445         Don't define `strcasecmp' as `strcmp'.
1446         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
1447         Dont define `strncasecmp' as `strncmp'.
1449         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
1450         Removed.
1452 2003-01-26  Werner LEMBERG  <wl@gnu.org>
1454         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
1455         s/unline/unlink/.
1457 2003-01-25  Werner LEMBERG  <wl@gnu.org>
1459         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
1461 2003-01-24  Werner LEMBERG  <wl@gnu.org>
1463         Add US-english hyphenation exceptions (converted from Barbara
1464         Beeton's hyphenation exception log reports which appear irregularly
1465         in TUGBoat).
1467         * tmac/hyphen.us: Updated to latest version.
1468         * tmac/README: Updated.
1469         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
1470         * tmac/troffrc: Load `hyphenex.us'.
1471         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
1472         * doc/groff.texinfo: Updated.
1474 2003-01-23  Werner LEMBERG  <wl@gnu.org>
1476         Improve hyphenation slightly.  This is a first step in redesigning
1477         the hyphenation algorithm to make it more flexible (e.g. allowing
1478         kerns and ligatures between the hyphenation character and the
1479         following character -- while not used normally in English, other
1480         languages like German would benefit).
1482         * src/roff/troff/env.cc (environment::hyphenate_line): Use
1483         assertion instead of if-clause.
1484         Let `get_hyphen_list' return the number of involved characters in
1485         the hyphenation pattern instead of computing it directly (which
1486         often yields too small values).
1487         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
1488         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
1489         parameter.
1491 2003-01-22  Werner LEMBERG  <wl@gnu.org>
1493         Fixing a bug which caused groff to hang if the hyphenation exception
1494         dictionary tried to grow.
1496         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
1497         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
1498         pointer to dictionary.
1500 2003-01-20  Werner LEMBERG  <wl@gnu.org>
1502         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
1503         negative left italic correction.
1504         * src/utils/afmtodit/afmtodit.man: Document it.
1506         * font/devps/generate/Makefile (RFLAG): Add `-m'.
1507         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
1508         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
1510         * NEWS: Updated.
1512 2003-01-16  Werner LEMBERG  <wl@gnu.org>
1514         * NEWS: Updated.
1516 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
1518         * src/preproc/refer/refer.man: Mention REFER environment variable.
1520 2003-01-05  Werner LEMBERG  <wl@gnu.org>
1522         Similar to \[is], the square root glyph (\[sr]) and the square root
1523         extension glyph (\[radicalex]) are now text symbols.  The new
1524         mathematical versions are called \[sqrt] and \[sqrtex],
1525         respectively.
1527         * font/devX*/S: Regenerated.
1528         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
1529         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
1530         * font/devdvi/EX, font/devdvi/S: Regenerated.
1531         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
1532         * font/devlj4/generate/special.map: Add `sqrt'.
1533         * font/devlj4/S: Regenerated.
1534         * font/devps/generate/textmap: Add `sqrt'.
1535         * font/devps/S, font/devps/symbolmap: Regenerated.
1537         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
1538         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
1539         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
1540         overlap horizontally.
1542         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
1543         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
1544         Fix `radicalex'.
1546         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
1547         and `sqrtex' are overlapping glyphs.
1549 2003-01-04  Werner LEMBERG  <wl@gnu.org>
1551         * font/devdvi/generate/texsy.map: Add `is'.
1552         * font/devps/symbolmap: Regenerated.
1553         * font/devdvi/*TC, MI, S: Regenerated.
1555         * tmac/dvi.tmac: Remove `is'.
1557 2003-01-03  Werner LEMBERG  <wl@gnu.org>
1559         `is' is now a text symbol (only relevant for dvi).  The math variant
1560         can be accessed with `integral'.
1562         * font/devX*/S: Regenerated.
1563         * font/devdvi/generate/texex.map: Remove `is'.
1564         * font/devdvi/EX: Updated.
1565         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
1566         * font/devlj4/generate/special.map: Ditto.
1567         * font/devlj4/S: Regenerated.
1568         * font/devps/generate/textmap: Add `integral'.
1569         * font/devps/S: Regenerated.
1571         * tmac/dvi.tmac: Define `is'.
1573         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
1575         * src/preproc/tbl/main.cc (process_format): Fix error message.
1577 2003-01-02  Werner LEMBERG  <wl@gnu.org>
1579         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
1580         * font/devps/textmap: Fix entries for `ne' and `nc'.
1581         * font/devps/symbolmap: Regenerated.
1583         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
1584         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
1585         `38', `58', `78', `-+', `|=', `nc', `ne'.
1587         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
1588         Use `schar' for `aq'.
1589         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
1590         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
1591         * tmac/tty.tmac: Add `ne'.
1593         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
1594         for fallback glyphs.
1596 2002-12-29  Werner LEMBERG  <wl@gnu.org>
1598         Add glyph `|='.
1600         * font/devX*/*: Regenerated.
1601         * font/devdvi/generate/ec.map: Remove `eq'.
1602         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
1603         Assign `|=' to position 39.
1604         * font/devdvi/*EC, S: Regenerated.
1605         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
1606         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
1607         Assign `|=' to position 549.
1608         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
1609         `equalmath'.
1610         Add `uni2243' for `|='.
1612         * tmac/ec.tmac: Add `eq'.
1613         * tmac/dvi.tmac: Add `=~'.
1614         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
1615         `|='.
1617 2002-12-21  Werner LEMBERG  <wl@gnu.org>
1619         * font/devdvi/generate/tc.map: Remove `**'.
1620         * font/devdvi/*TC: Regenerated.
1621         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
1622         `78', `<<', `>>'.
1623         * font/devutf8/NOTES: Updated.
1625         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
1626         Don't give default parameter to `set_macro'.
1627         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
1628         instead of `set_macro'.
1629         (charinfo::setx_macro): Implement it.
1630         (charinfo::set_macro): Don't change `mode'.
1632         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
1633         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
1634         * tmac/dvi.tmac: Define `!=' with `.schar'.
1636 2002-12-20  Werner LEMBERG  <wl@gnu.org>
1638         * font/devX*/S: Regenerated.
1639         * font/devdvi/generate/ec.map: Remove `pl'.
1640         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
1641         * font/devdvi/*{TC,EC}: Regenerated.
1642         * font/devhtml/R.proto: Add `-+'.
1643         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
1644         * font/devlbp/*: Remove `or'.
1645         * font/devlj4/generate/special.map: Remove `or'.
1646         * font/devlj4/S: Regenerated.
1647         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
1648         `seveneighths', `threeeighths'.
1649         Remove `plusmath'.
1650         Replace `minusplus' with `uni2213'.
1651         * font/devps/symbolmap: Regenerated.
1652         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
1653         Add `-+'.
1655         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
1656         function.
1657         * src/roff/troff/node.cc (troff_output_file::put_char_width):
1658         Call glyph_color and fill_color even if tcommand_flag isn't set.
1659         (make_node, node::add_char): Check not ci->is_fallback but
1660         ci->is_normal.
1662         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
1663         * tmac/ec.tmac: Add .rchar entry for `f/'.
1664         Don't remove `12', `14', `34'.
1665         Define `pl' to be always roman.
1666         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
1667         Define `18', `38', `58', `78'.
1668         * tmac/tty.tmac: Add `-+'.
1669         * tmac/dvi.tmac: Define `f/'.
1670         (dvi-frac): Use `f/'.
1671         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
1672         Define `18', `38', `58', `78'.
1674 2002-12-15  Colin Watson  <cjwatson@debian.org>
1676         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
1678 2002-12-10  Werner LEMBERG  <wl@gnu.org>
1680         Add glyph `tno', a textual variant of `no'.
1682         * font/devX*/*: Regenerated.
1683         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
1684         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
1685         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
1686         * font/devdvi/*: Regenerated.
1687         * font/devlbp/*: Add `tno'.
1688         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
1689         * font/devlj4/*: Regenerated.
1690         * font/devps/generate/textmap: Replace `no' with `tno'.
1691         * font/devps/generate/symbolchars: Add `no'.
1692         * font/devps/*: Regenerated.
1694         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
1696         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
1697         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
1699         * NEWS: Updated.
1701         * tmac/dvi.tmac: Replace most `\\' with `\E'.
1702         Add definition for `sd'.
1703         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
1705         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
1707 2002-12-08  Werner LEMBERG  <wl@gnu.org>
1709         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
1710         mode to avoid rounding errors.
1711         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
1713         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
1714         src/roff/troff/troff.man: Improve documentation of -T.
1716 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
1718         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
1719         (run_pipeline) [_WIN32]: Provide working function without `fork'.
1721 2002-12-06  Werner LEMBERG  <wl@gnu.org>
1723         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
1724         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
1725         Scaling Euro.sansserif glyphs down to have the same height as
1726         digits.
1727         Removed unnecessary points; added some extrema.
1729         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
1730         Regenerated.
1732 2002-12-04  Werner LEMBERG  <wl@gnu.org>
1734         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
1735         and `Euro.symbol.bold.slanted'.
1736         Improve some glyph offsets and widths.
1737         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
1738         Regenerated.
1739         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
1740         typo.
1741         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
1742         direcory.
1744         * tmac/europs.tmac: Updated to new glyph indices.
1745         Use Euro.symbol for font familiy `A'.
1747         * doc/groff.texinfo: Minor improvements.
1749 2002-12-02  Werner LEMBERG  <wl@gnu.org>
1751         * font/devdvi/generate.tc.map: s/%O/%0/.
1752         * font/devdvi/*TC: Regenerated.
1754         * src/roff/troff/div.cc (init_div_requests): Sorted.
1756         * tmac/dvi.tmac: Remove `Ye'.
1757         * tmac/ec.tmac: Remove `Ye'.
1758         Add .rchar entry for `de'.
1760         * man/groff.man, man/groff_diff.man: Document register `.pe'.
1761         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
1762         * NEWS: Updated.
1764 2002-11-30  Werner LEMBERG  <wl@gnu.org>
1766         Add PS font for various Euro glyphs.
1768         * font/devps/generate/freeeuro.sfd: New master font file for
1769         pfaedit.
1770         * font/devps/generate/sfdtopfa.pe: New conversion script for
1771         pfaedit.
1772         * font/devps/generate/Makefile (FONTS): Add `EURO'.
1773         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
1774         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
1775         `freeeuro.sfd'.
1776         * font/devps/EURO: Generated from `freeeuro.afm'.
1777         * font/devps/download: Add `freeuro.pfa'.
1778         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
1779         `freeeuro.pfa'.
1781         * tmac/europs.tmac: New file.
1782         * tmac/ps.tmac: Include `europs.tmac'.
1783         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
1785 2002-11-29  Werner LEMBERG  <wl@gnu.org>
1787         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
1788         * font/devdvi/S: Regenerated.
1789         * font/devhtml/R.proto: Fix `CR' and `ci'.
1790         Add `OK'.
1791         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
1792         Remove `bs'.
1793         * font/devps/symbolmap: Regenerated.
1794         * font/devutf8/R.proto: Fix `CR' and `ci'.
1795         Add `OK'.
1796         * font/devutf8/NOTES: Updated.
1798         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
1799         `ci'.
1800         Add `OK'.
1801         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
1803         * tmac/dvi.tmac: Add `lh' and `rh'.
1804         * tmac/Xps.tmac: Fix `lh' and `rh'.
1805         * tmac/X.tmac: Add `OK'.
1806         * tmac/lj4.tmac: Ditto.
1808 2002-11-24  Werner LEMBERG  <wl@gnu.org>
1810         * font/devX*/S: Regenerated.
1811         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
1812         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
1813         * font/devdvi/generate/texsy.map: Remove `or' glyph.
1814         * font/devdvi/S: Regenerated.
1815         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
1816         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
1817         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
1818         `bracketleftbt', `bracketrighttp', `bracketrightex',
1819         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
1820         `braceex', `braceleftex', `bracerightex', `bracerighttp',
1821         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
1822         `rb', and `bv'.
1823         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
1824         * font/devutf8/NOTES: Updated.
1825         * font/devlj4/generate/special.map: Add glyph `braceex'.
1826         * font/devlj4/S: Regenerated.
1828         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
1830 2002-11-14  Werner LEMBERG  <wl@gnu.org>
1832         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
1833         and `vA'.
1834         Fix code for `an'.
1835         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
1837         * doc/texinfo.tex: New version from texinfo 4.3.
1838         * doc/groff.texinfo: Updated for texinfo 4.3.
1839         Use @tie{} where appropriate.
1840         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
1841         * font/devdvi/generate/tc.map: Remove `rn'.
1842         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
1843         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
1844         Fix code for `an'.
1845         * font/devX100/*, font/devX100-12/*, font/devX75/*,
1846         font/devX75-12/*: Regenerated.
1848         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
1849         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
1850         Improve definition of `an'.
1851         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
1852         `ru'.
1853         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
1854         * tmac/X.tmac: Add definition for `or'.
1855         * tmac/Xps.tmac: Undo change 2002-11-05.
1856         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
1858 2002-11-11  Werner LEMBERG  <wl@gnu.org>
1860         * src/roff/troff/node.cc (troff_output_file::put_char): Always
1861         call flush_tbuf.
1863 2002-11-10  Werner LEMBERG  <wl@gnu.org>
1865         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
1866         defines a glyph which is searched after the check for fonts declared
1867         with `.special' (and before the check for all mounted special
1868         fonts).  `fschar' defines a glyph for a particular font which is
1869         searched after the check for fonts declared with `.fspecial' (and
1870         before the check for fonts declared with `.special').  `rfschar'
1871         removes glyphs defined with `fschar'.
1873         * src/roff/troff/token.h (char_mode): New enum.
1874         Declare do_define_character.
1875         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
1876         `mode'.
1877         (charinfo::is_fallback): Updated.
1878         (charinfo::is_special): New method.
1879         * src/roff/troff/input.cc (do_define_character): Add and use
1880         optional second parameter used as a prefix for font-specific glyph
1881         names.
1882         (define_character, define_fallback_character): Updated.
1883         (define_special_character): New function.
1884         (init_input_requests): Add `schar'.
1885         (charinfo::charinfo, charinfo::set_macro): Updated.
1886         * src/roff/troff/node.cc: Include `stringclass.h'.
1887         (make_glyph_node): Handle special glyphs defined with `.schar' and
1888         `.fschar'.
1889         (define_font_special_character, remove_font_special_character): New
1890         functions.
1891         (init_node_requests): Sorted.
1892         Add `fschar' and `rfschar'.
1893         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1894         Document new requests.
1896         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
1897         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
1899 2002-11-08  Werner LEMBERG  <wl@gnu.org>
1901         Added new font `SC' (cmtex10) to devdvi.
1903         * devdvi/generate/Makefile (FONTS): Add `SC'.
1904         (SC): New rule.
1905         * devdvi/generate/textex.map: New map file for cmtex.
1906         * devdvi/SC: New.
1907         * devdvi/Makefile.sub (DEVFILES): Updated.
1908         * tmac/dvi.tmac: Add fspecial entries for SC.
1909         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
1910         found before `S' since the font position of `SC' is lower due to the
1911         gaps in DESC's `font' line.
1912         * tmac/ec.tmac: Add a `special' call.
1913         * NEWS: Updated.
1915         * font/devhtml/R.proto: Remove double entry for `ti'.
1916         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
1917         * tmac/tty-char.tmac: Remove entry for `bq'.
1918         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
1919         * tmac/ec.tmac: Don't remove `aq' glyph.
1920         * tmac/X.tmac: Fix entry for `em'.
1921         Add entries for `fo' and `fc'.
1922         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
1924         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
1925         documentation of `special' and `fspecial' requests.
1927 2002-11-05  Werner LEMBERG  <wl@gnu.org>
1929         * font/devascii/R.proto, font/devcp1047/R.proto,
1930         font/devlatin1/R.proto: Remove entry for `.i'.
1931         * font/devdvi/generate/textt.map: Add entry for `ad'.
1932         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
1933         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
1934         We need this for getting kerning values to compose `/l' and `/L'.
1935         * font/devdvi: Regenerated font definition files for CM fonts.
1936         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
1937         * font/devutf8/R.proto: Ditto.
1938         Remove double entry for `ti'.
1940         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
1941         for (groff) ligatures, `la', and `ra'.
1942         Add "'C", "'c", `IJ', and `ij'.
1943         Remove double entry for `ti'.
1944         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
1945         double entries.
1946         Add "'C", "'c", `IJ', and `ij'.
1947         Fix entries for (groff) ligatures, `la', and `ra'.
1949         * tmac/ps.tmac (ps-achar): New macro.
1950         Define "'c" and "'C".
1951         * tmac/tty.tmac: Add entry for `.i'.
1952         * tmac/X.tmac (X-achar): New macro.
1953         Define "'c", "'C", and `:Y'.
1954         Add entries for `IJ' and `ij'.
1955         * tmac/Xps.tmac (Xps-achar): New macro.
1956         Define "'c" and "'C".
1957         Add entries for `IJ' and `ij'.
1958         * tmac/lbp.tmac (lbp-achar): New macro.
1959         Add fallback characters for all groff ligatures and many other
1960         glyphs.
1961         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
1962         Add entries for `/l' and `/L'.
1963         Define "'c" and "'C".
1964         Add entries for `IJ' and `ij'.
1966 2002-11-02  Larry Kollar  <kollar@alltel.net>
1968         * PROBLEMS: Document how to solve Mac OS X compilation problems.
1970 2002-11-02  Werner LEMBERG  <wl@gnu.org>
1972         Adding support for composite glyphs: \[xxx yyy ...] and the
1973         `composite' request.
1975         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
1976         to Unicode-based glyph names.
1977         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
1978         glyph names to groff glyph names.
1979         * src/roff/troff/uniuni.cc: New file for canonically decomposing
1980         Unicode-based glyph names.
1981         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
1982         for handling Unicode glyph names.
1983         * src/roff/troff/input.cc: Include unicode.h.
1984         (composite_glyph_name): New function.
1985         (token::next) <'['>: Handle Unicode glyph names and composite
1986         glyphs.
1987         (composite_dictionary): New dictionary for the `composite' request.
1988         (composite_request): Implement `composite' request.
1989         (init_input_requests): Add `composite'.
1990         Alphabetically sorted.
1991         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
1992         commented out).
1993         (init_env_requests): Alphabetically sorted.
1994         Removed `tas' and `tar' (already commented out).
1995         * src/roff/troff/Makefile.sub: Updated.
1997 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
1999         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
2000         of options.
2002 2002-10-29  Werner LEMBERG  <wl@gnu.org>
2004         Fix computation of .trunc register.  Additionally, its value (and
2005         the value of the .ne register) is now always set before entering the
2006         trap.
2008         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
2009         `needed_space' before calling `space'.
2010         (top_level_diversion::space): Remove special code for 'sp before the
2011         first page.
2012         Call `begin_page' with the discarded space as a parameter.
2013         (top_level_diversion::begin_page): Add optional parameter to set
2014         `truncated_space'.
2015         * src/roff/troff/div.h: Updated.
2017         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
2018         \n[.ne].
2020         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
2021         (LP): Remove superfluous call to `br'.
2022         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
2023         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
2025 2002-10-26  Werner LEMBERG  <wl@gnu.org>
2027         * tmac/doc-ditroff: Remove useless switch/variable -rC.
2028         (doc-setup-header): Don't set page register `%'.
2029         * tmac/doc-nroff: Remove variable `C'.
2030         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
2031         (doc-setup-header): Don't set page register `%'.
2032         Don't call `bp'.
2033         * tmac/doc-common (doc-header): Call `ns'.
2034         (doc-paragraph): Protect .sp with .br so that it survives traps
2035         possibly set by the user.
2036         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
2038         * tmac/doc*: Replace ' with . for consistency if no effect.
2040 2002-10-26  Werner LEMBERG  <wl@gnu.org>
2042         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
2043         so that it survives traps possibly set by the user.
2045         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
2046         (troff_output_file::set_font): Call flush_tbuf if necessary.
2047         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
2048         flush_tbuf and do_motion only if necessary.
2049         (troff_output_file::start_special,
2050         troff_output_file::put_char_width, troff_output_file::put_char,
2051         troff_output_file::draw): Updated.
2052         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2053         vmotion_node::tprint): Undo change 2002-10-23.
2055 2002-10-25  Werner LEMBERG  <wl@gnu.org>
2057         * tmac/www.tmac (DC): Fix case of overlapping images.
2059 2002-10-23  Werner LEMBERG  <wl@gnu.org>
2061         * src/roff/troff/node.cc (troff_output_file::fill_color,
2062         troff_output_file::glyph_color): Set current color before testing
2063         color_flag.
2064         (troff_output_file::put_char_width, troff_output_file::put_char,
2065         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
2066         before glyph_color.
2067         (troff_output_file::file_color, troff_output_file::glyph_color):
2068         Call do_motion.
2069         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2070         vmotion_node::tprint): Move first, then call fill_color.
2072 2002-10-20  Werner LEMBERG  <wl@gnu.org>
2074         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
2075         possible to use multiple main macro packages.
2077 2002-10-19  Werner LEMBERG  <wl@gnu.org>
2079         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
2080         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
2081         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
2082         is set.
2083         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
2084         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
2086 2002-10-16  Werner LEMBERG  <wl@gnu.org>
2088         * NEWS, doc/webpage.ms: Updated.
2090 2002-10-14  Werner LEMBERG  <wl@gnu.org>
2092         * src/roff/troff/node.cc (troff_output_file::put_char_width,
2093         troff_output_file::put_char, troff_output_file::fill_color,
2094         troff_output_file::glyph_color): Handle case where color pointer
2095         is null.
2097 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
2099         Add the new -r option to grotty.  It is similar to the -i option
2100         except it tells grotty(1) to use the "reverse video" attribute to
2101         render italic fonts.
2103         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
2104         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
2105         (tty_printer::make_underline, tty_printer::put_color,
2106         tty_printer::end_page): Use it.
2107         (main): Add -r switch.
2108         (usage): Updated.
2109         * src/devices/grotty/grotty.man: Document it.
2111 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
2113         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
2114         cast to `unsigned char' to properly read patterns with 8bit
2115         characters.
2117 2002-10-08  Werner LEMBERG  <wl@gnu.org>
2119         * REVISION: Increased to 2.
2121 Version 1.18.1 released
2122 =======================
2124 2002-10-08  Werner LEMBERG  <wl@gnu.org>
2126         * doc/webpage.ms, NEWS: Updated.
2128 2002-10-07  Werner LEMBERG  <wl@gnu.org>
2130         * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
2131         suppress additional whitespace after the header.
2133         * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
2134         with NetBSD.
2136         * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
2138 2002-10-07  Ruslan Ermilov  <ru@FreeBSD.org>
2140         * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
2141         (Dt): Use it to improve language localization (especially Russian
2142         and French).
2144 2002-10-07  Daniel Senderowicz  <daniel@synchrods.com>
2146         * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
2147         * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
2148         drawing commands.
2149         * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
2150         curve type.
2151         Call `picurve' for BSPLINE.
2152         (HGPrintElt): Handle BSPLINE.
2153         * src/preproc/grn/README: Document it.
2155 2002-10-03  Werner LEMBERG  <wl@gnu.org>
2157         * src/roff/troff/node.cc (break_char_node::col): New variable.
2158         Updated constructor.
2159         (space_node::tprint, word_space_node::tprint): Call `fill_color'
2160         unconditionally.
2161         (space_node::space_node): Remove assertion.
2162         (break_char_node::add_self): Pass color argument to space node.
2163         * src/roff/troff/input.cc (token::add_to_node_list, token::process):
2164         Ditto.
2165         * src/roff/troff/env.cc (environment::do_break,
2166         environment::add_padding): Ditto.
2168 2002-10-02  Werner LEMBERG  <wl@gnu.org>
2170         Redesigning color support in troff.  Colors are no longer
2171         represented as separate nodes but are now part of glyph nodes and
2172         friends.  This fixes the current formatting misbehaviour due to the
2173         changes introduced on 2002-09-20.  Some extra code is necessary for
2174         proper grotty support: Without adding color variables to
2175         space-related nodes, the background color would be changed too late.
2177         * src/roff/troff/node.h, src/roff/troff/node.cc:
2178         s/current_pagecolor/current_fill_color/.
2179         s/current_glyphcolor/current_glyph_color/.
2180         (glyph_color_node, fill_color_node): Removed.
2181         (node::get_glyph_color, node::get_fill_color): New virtual member
2182         functions.
2183         (space_node::col): New variable.
2184         Updated constructors of space_node and derived classes accordingly.
2185         (hmotion_node::col): New variable.
2186         Updated constructors of hmotion_node and space_char_hmotion_node
2187         accordingly.
2188         (vmotion_node::col): New variable.
2189         Updated constructor accordingly.
2190         (draw_node::gcol, draw_node::fcol): New variables.
2191         Updated constructor accordingly.
2192         (special_node::gcol, special_node::fcol): New variables.
2193         Updated constructors accordingly.
2194         (troff_output_file::put_char, troff_output_file::put_charwidth,
2195         troff_output_file::draw): Set glyph and fill color.
2196         (troff_output_file::start_special): Set glyph and fill color.
2197         Always set current font.
2198         (troff_output_file::fill_color, troff_output_file::glyph_color):
2199         Don't call `do_motion'.
2200         (glyph_node::gcol, glyph_node::fcol): New variables.
2201         Updated constructors of glyph_node and ligature_node accordingly.
2202         (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
2203         member functions.
2204         (glyph_node::merge_glyph_node,
2205         kern_pair_node::add_discretionary_hyphen,
2206         node::add_discretionary_hyphen): Updated.
2207         (break_char_node::merge_self): Updated.
2208         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2209         vmotion_node::tprint): Handle color.
2210         (make_glyph_node, make_node, node::add_char): Updated.
2212         * src/roff/troff/env.cc (environment::space_newline,
2213         environment::space, environment::output_line, environment::do_break,
2214         environment::make_tab_node, environment::add_padding, title):
2215         Updated.
2216         (environment_switch, environment_copy): Don't add color nodes.
2218         * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
2219         nothing.
2220         (token::next): Updated.
2221         \m and \M now are as transparent as \s.
2222         (process_input_stack, token::add_to_node_list, token::process,
2223         read_draw_node): Updated.
2224         (charinfo_to_node_list): Don't add color nodes.
2226         * doc/groff.texinfo: Updated.
2228 2002-09-27  Ruslan Ermilov  <ru@FreeBSD.org>
2230         * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
2231         strings.
2233 2002-09-27  Colin Watson  <cjwatson@debian.org>
2235         * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
2237 2002-09-23  Werner LEMBERG  <wl@gnu.org>
2239         * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
2240         appropriate.
2241         (DEFAULT_LINEWIDTH_FACTOR): New macro.
2242         (linewidth_factor): New global variable.
2243         (lbp_printer::set_line_thickness): Fix case for size < 0, using
2244         linewidth_factor.
2245         (long_options): Add -w/--linewidth option.
2246         (usage): Updated.
2247         (main): Handle -w option to set linewidth_factor.
2248         (lbp_printer::lbp_printer): Initialize req_linethickness, not
2249         line_thickness.
2251         * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
2253 2002-09-22  Paco Andrés Verdú  <pandres@dragonet.es>
2255         Fixed a bug in the line thickness setting code.
2257         * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
2258         variable.
2259         (lbp_printer::set_line_thickness): Pass environment as second
2260         parameter.
2261         Implement it actually.
2262         (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
2263         and `set_line_thickness, depending on the current font size.
2265 2002-09-21  Werner LEMBERG  <wl@gnu.org>
2267         Some Debian patches.
2269         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
2270         * src/roff/troff/node.cc (bracket_node::copy): Initialize
2271         `list->last'.
2273 2002-09-20  Werner LEMBERG  <wl@gnu.org>
2275         * configure: Regenerated with autoconf 2.54.
2277 2002-09-20  Werner LEMBERG  <wl@gnu.org>
2279         * src/roff/troff/env.h (environment): Rename cur_glyph_color to
2280         glyph_color.
2281         Rename cur_fill_color to fill_color.
2282         * src/roff/troff/env.cc: Updated.
2284 2002-09-20  Werner LEMBERG  <wl@gnu.org>
2286         * src/roff/troff/env.cc (title): Copy color status after processing
2287         title.
2288         * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
2289         fill color nodes to reset colors properly.
2291         * tmac/www.tmac (DC): Fix color handling.
2293         * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
2294         * doc/groff.texinfo: Fixing documentation of `tl' request.
2295         * doc/webpage.ms: Updated.
2297 2002-09-19  Werner LEMBERG  <wl@gnu.org>
2299         * src/roff/troff/env.cc (environent_switch, environment_copy):
2300         Emit glyph and fill color nodes to initialize colors properly.
2302 2002-09-17  Colin Watson  <cjwatson@debian.org>
2304         * src/roff/troff/env.cc (environment::set_glyph_color,
2305         environment::set_fill_color): Fix typo which prevented \m[] work
2306         correctly.
2308 2002-09-17  Werner LEMBERG  <wl@gnu.org>
2310         Add left and right italic correction to non-slanted PS fonts.  This
2311         is an experimental feature to improve image rendering of grohtml.
2313         * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
2314         ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
2315         * font/devps/*: All non-slanted fonts regenerated.
2316         * NEWS: Updated.
2318 2002-09-16  Werner LEMBERG  <wl@gnu.org>
2320         Add a site-specific font directory.
2322         * Makefile.in (localfontdir, legacyfontdir): New variables.
2323         (fontpath): Use them.
2324         (MDEFINES, uninstall_dirs): Updated.
2325         * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
2326         Remove `FONTPATH' and `MACROPATH'.
2328         * src/roff/troff/troff.man, NEWS: Updated.
2329         * doc/groff.texinfo (Font Directories): New section.
2330         Other minor fixes.
2332         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
2333         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
2334         src/preproc/grn/grn.man: Minor fixes.
2336         * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
2337         Remove unused variable.
2339 2002-09-11  Werner LEMBERG  <wl@gnu.org>
2341         * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
2342         * man/groff_out.man: Fix documentation of 'N'.
2344 2002-09-09  Gaius Mulley  <gaius@glam.ac.uk>
2346         * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
2347         * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
2348         set.
2349         * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
2350         (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
2351         (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
2352         * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
2353         PRE_TAG>: Call `begin' with `FALSE'.
2355 2002-09-09  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2357         * src/libs/libgroff/string.cc (string::extract): Fix position of
2358         terminating null byte.
2360 2002-09-08  Werner LEMBERG  <wl@gnu.org>
2362         Add global option `nospaces' to tbl so that leading and trailing
2363         spaces in data items are ignored.
2365         * src/libs/libgroff/string.cc (string::remove_spaces): New member
2366         function to remove leading and trailing spaces.
2367         * src/include/stringclass.h: Updated.
2369         * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
2371         * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
2372         option.
2373         Fix typo in error messages.
2374         (process_data): Implement `nospaces' option.
2375         * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
2377 2002-09-07  Werner LEMBERG  <wl@gnu.org>
2379         * src/include/config.hin: Add `HAVE_ISATTY'.
2380         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
2381         `fname' member.
2382         * src/libs/libgroff/tmpname.cc: Include `time.h'.
2383         * src/libs/libdriver/input.cc (Char): Add `operator==' and
2384         `operator!=' for `char'.
2385         * doc/groff.texinfo: Replace @ifnottex block for top node with
2386         @ifhtml block.
2388 2002-09-06  Werner LEMBERG  <wl@gnu.org>
2390         * doc/Makefile.in (.texinfo.html): Add -I switch.
2391         * doc/groff.texinfo: Add @ifnottex block for top node to make
2392         translation to HTML work.
2394 2002-09-05  Gaius Mulley  <gaius@glam.ac.uk>
2396         * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
2397         (get_papersize, determine_vertical_offset): Removed.
2398         (char_buffer::do_image): Always specify letter size.
2399         (main): Updated.
2400         (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
2401         -sPAPERSIZE.
2403 2002-09-05  Werner LEMBERG  <wl@gnu.org>
2405         * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
2406         default indentation.
2408 2002-09-04  Gaius Mulley  <gaius@glam.ac.uk>
2410         * src/preproc/html/pre-html.cc (imageList::createPage): Use
2411         -sPAPERSIZE for gs.
2412         (generateImages): Clean up push-back buffer.
2414 2002-09-04  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2416         * doc/groff.texinfo: Minor fixes.
2418 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
2420         * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
2421         (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
2422         (gsPaper): Removed.
2423         (determine_vertical_offset): Use LETTER_LENGTH.
2424         (createPage): Moved to ...
2425         (imageList::createPage): This.
2426         Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
2427         (imageList::getMaxX): New function.
2428         (createImage): Moved to ...
2429         (imageList::createImage): This.
2430         (imageList::createImages): New function.
2431         (generateImages): Read `maxx' directly.
2432         Updated.
2433         (scanArguments): Don't specify `gsPaper' for `-o'.
2434         (makeTempFiles): Call `xtmpfile' with the last argument set to
2435         `TRUE'.
2437 2002-08-24  Werner LEMBERG  <wl@gnu.org>
2439         * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
2440         (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
2441         * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
2442         * src/preproc/html/pushback.cc: Include nonposix.h.
2443         * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
2444         conditionally.
2446 2002-08-23  Werner LEMBERG  <wl@gnu.org>
2448         Use $(OBJEXT) for the object file extension.
2450         * Makefile.comm (.SUFFIXES): Add .obj.
2451         (.cc.obj, .c.obj): New implicit rules.
2452         * Makefile.in (OBJEXT): New variable, initialized from autoconf.
2453         (MDEFINES): Add EXEEXT and OBJEXT.
2454         * */Makefile.sub: s/.o/.$(OBJEXT)/.
2456 2002-08-22  Werner LEMBERG  <wl@gnu.org>
2458         * INSTALL: Mention texinfo 4.2 as a prerequisite.
2460 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
2462         * src/devices/grohtml/post-html.cc (colType): Make enum global to
2463         the file.
2464         (html_printer::update_min_max, html_printer::add_table_end): New
2465         methods.
2466         (html_printer::lookahead_for_tables): Use them.
2467         Reset page offset correctly.
2468         (html_printer::~html_printer): Add creation of creator comment up.
2470 2002-08-20  Werner LEMBERG  <wl@gnu.org>
2472         * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
2473         * man/groff_tmac.man: Fix typos.
2474         * man/groff_font.man: Minor reordering.
2475         * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
2476         * contrib/groffer/groffer.man: Fix typos.
2478 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
2480         Avoid endless loops while scanning for tables.
2482         * src/devices/grohtml/post-html.cc (list::insert): Set
2483         ptr->right->left.
2484         (html_printer::next_horiz_pos): Add `text_glob' argument; update
2485         all callers.
2486         Return immediately if that argument is NULL.
2487         (html_printer::calc_nf): Don't test if `g' is NULL.
2488         (html_printer::lookahead_for_tables): Use
2489         `glyphs.move_right_get_data'.
2490         Don't test if `g' is NULL.
2492 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
2494         A better fix, replacing fix 2002-08-15, for increasing SIZE.
2496         * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
2497         a pointer.
2498         (char_block::char_block): Allocate `buffer'.
2499         (char_buffer::add_string): Use it.
2501 2002-08-15  Werner LEMBERG  <wl@gnu.org>
2503         * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
2504         src/devices/grodvi/grodvi.man: Document default line thickness.
2506 2002-08-15  Gaius Mulley  <gaius@glam.ac.uk>
2508         * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
2509         8192.
2511 2002-08-14  Werner LEMBERG  <wl@gnu.org>
2513         * doc/webpage.ms: Updated.
2515 2002-08-09  Werner LEMBERG  <wl@gnu.org>
2517         * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
2518         unbreakable space.
2520 2002-08-08  Aaron Campbell  <aaron@monkey.org>
2522         * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
2523         (&& -> &).
2525 2002-08-08  Werner LEMBERG  <wl@gnu.org>
2527         * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
2528         tok.next().
2529         (read_gray): Ditto.
2530         Don't push back a space but a newline onto the stack.
2532 2002-08-07  Gaius Mulley  <gaius@glam.ac.uk>
2534         Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
2535         inadvertently.
2537         * src/devices/grohtml/post-html.cc (html_printer::end_font,
2538         html_printer::start_font): Handle them.
2539         * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
2540         reset bold and tt.
2541         (html_text::do_bold): Don't reset italic and tt.
2542         (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
2543         * font/devhtml/DESC.proto: Add those fonts.
2544         * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
2546 2002-08-07  Werner LEMBERG  <wl@gnu.org>
2548         * MORE.STUFF: Added gpresent.
2550         * tmac/trace.tmac: Show nesting level by a corresponding amount of
2551         whitespace before printing the logging message.
2553 2002-07-31  Colin Watson  <cjwatson@debian.org>
2555         * src/devices/grohtml/html-table.cc (html_table::finish_row):
2556         Initialize `n' to zero.  This fixes a segfault on ARM.
2558 2002-07-30  Werner LEMBERG  <wl@gnu.org>
2560         * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
2562 2002-07-29  Werner LEMBERG  <wl@gnu.org>
2564         * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
2565         final semicolon.
2567 2002-07-28  Colin Watson  <cjwatson@debian.org>
2569         * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
2570         `.ps'.
2571         (html_printer::html_printer): Initialize `pointsize'.
2573 2002-07-26  Werner LEMBERG  <wl@gnu.org>
2575         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
2576         gnu.png.
2577         (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
2578         (gnu.eps): Add -rle switch to pnmtops.
2579         (distfiles): Add gnu.eps and gnu.png.
2581 2002-07-25  Petter Reinholdtsen  <pere@hungry.com>
2583         * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
2584         Add `operator!='.
2586 2002-07-24  Werner LEMBERG  <wl@gnu.org>
2588         * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
2589         ' \+' but '  *' for sed.
2590         (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
2592 2002-07-23  Werner LEMBERG  <wl@gnu.org>
2594         * doc/groff.texinfo: Document `papersize' keyword.
2595         * NEWS, man/groff_font.man: Updated.
2597 2002-07-23  Colin Watson  <cjwatson@debian.org>
2599         Extend papersize keyword to accept more than a single entry.  The
2600         first valid will be used.
2602         * src/libs/libgroff/font.cc (font::load_desc): Implement it.
2603         (font::scan_papersize): Really skip final newline.
2604         * src/preproc/html/pre-html.cc (get_papersize): Ditto.
2606 2002-07-23  Werner LEMBERG  <wl@gnu.org>
2608         * configure.ac: Test for isatty.
2609         * configure: Regenerated.
2610         * src/include/posix.h: Check HAVE_ISATTY.
2611         * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
2612         * src/utils/lookbib/lookbib.cc: Include posix.h.
2613         Don't declare isatty.
2615 2002-07-21  Werner LEMBERG  <wl@gnu.org>
2617         * NEWS: Add `output' request.
2619         * REVISION: Increased to 1.
2621 Version 1.18.0 released
2622 =======================
2624 2002-07-19  Gaius Mulley  <gaius@glam.ac.uk>
2626         Allow internal glyph indices > 0xFF in grohtml for input characters.
2628         * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
2629         as parameter.
2630         (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
2631         Updated all callers.
2632         (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
2633         (html_printer): Updated.
2635 2002-07-19  Werner LEMBERG  <wl@gnu.org>
2637         * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
2638         * font/devutf8/R.proto: Adding some missing glyphs.
2639         * font/devutf8/NOTES: Updated.
2641         * tmac/dvi.tmac: Add more composite glyphs.
2642         * tmac/html.tmac: Updated.
2644         * man/groff_char.man: Add `sum' and `product' entities.
2646         * NEWS: Updated.
2648 2002-07-18  Gaius Mulley  <gaius@glam.ac.uk>
2650         Improved table, tab, and indenting support.
2652         * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
2653         string_iterator::suppress_newline_flag): Removed.  Updated all
2654         function which have used it.
2656         * src/roff/troff/env.cc: Include `input.h'.
2657         (environment::add_node): Accept 0 as parameter.
2658         (environment::add_html_tag): Add `force' parameter.
2659         Updated all callers.
2660         (environment::add_html_tag_tabs): Ditto.
2661         For the moment, support left-aligned tabs only.
2662         (environment::make_html_tag): New function.
2663         (fill, no_fill): Set .br html tag additionally.
2664         (environment::newline): Emit `eol.ce' or `eol' tag for html.
2665         (environment::add_html_tag_eol): Removed.
2666         (tab_stops::distance_to_next_tab): Add variant for handling 
2667         nextpos'.
2668         (environment::distance_to_next_tab): Ditto.
2669         Updated all callers.
2670         (environment::handle_tab): Handle tabs for html.
2671         
2672         * src/roff/troff/env.h: Updated.
2674         * src/roff/troff/div.cc: Updated all callers of
2675         `environment::add_html_tag'.
2677         * src/devices/grohtml/html-table.cc,
2678         src/devices/grohtml/html-table.h: New files.
2680         * src/devices/grohtml/html-text.cc (html_text): New members
2681         `blank_para' and `start_space'.
2682         (html_text::issue_tag): Don't emit TABLE_TAG.
2683         Handle indentation for PRE_TAG and P_TAG.
2684         (html_text::end_tag): Updated.
2685         (html_text::table_is_void, html_text::issue_table_begin,
2686         html_text::issue_table_end): Removed.
2687         (html_text::do_push): Simplified.
2688         [DEBUGGING]: Small fix.
2689         (html_text::push_para): Add new parameter for indentation; updated
2690         all callers.
2691         Handle PRE_TAG.
2692         (html_text::do_indent, html_text::do_table, html_text::done_table,
2693         html_text::is_in_table): Removed.
2694         (html_text::do_pre): Handle P_TAG also.
2695         (html_text::shutdown): Handle p->indent.
2696         (html_text::check_emit_text): Simplified.
2697         (html_text::do_emittext): Reset `blank_para'.
2698         (html_text::do_para): Add new parameter for indentation; updated
2699         all callers.
2700         (html_text::remove_indent): New function.
2701         (html_text::do_space): Handle verbatim text properly.
2702         (html_text::ever_emitted_text, html_text::starts_with_space,
2703         html_text::remove_para_align): New functions.
2704         (html_text::dump_stack_element, html_text::dump_stack): Updated.
2706         * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
2707         Updated.
2709         * src/devices/grohtml/post-html.cc: Include html-table.h.
2710         (INDENTATION): Removed.
2711         (text_glob): Added many `is_<foo>' functions.
2712         Added table description `tab'.
2713         Added `get_arg',`get_tab_args', `remember_table', and `get_table'
2714         member functions.
2715         (list): Add `insert' and `move_to' member functions.
2716         (page): Add `insert_tag' member function.
2717         (page::dump_page) [DEBUG_TABLES]: Improved.
2718         (html_printer): Add `table' and `max_linelength' elements.
2719         Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
2720         `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
2721         `remove_tabs', `remove_courier_tabs'.
2722         (html_printer::emit_raw): Handle indentation.
2723         (html_printer::do_center, html_printer::write_header): Updated.
2724         (html_printer::is_courier_until_eol): Check for tag.
2725         (html_printer::do_linelength): Handle max_linelength.
2726         (html_printer::do_page_offset, html_printer::do_indentation): Handle
2727         fill_on.
2728         (html_printer::do_tempindent): Updated.
2729         (html_printer::do_indentedparagraph): Removed.
2730         (html_printer::do_indent): Simplified.
2731         (html_printer::do_eol): Use `ever_emitted_text'.
2732         (html_printer::do_flush, html_printer::do_links): Don't call
2733         done_table.
2734         (html_printer::do_break): Handle end_tempindent.
2735         (html_printer::troff_tag): Get argument.
2736         Don't handle `.ip'.
2737         Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
2738         (html_printer::flush_page): Call `lookahead_for_tables'.
2739         Don't call `done_table'.
2740         (html_printer::add_to_sbuf): Always call do_indent.
2742         * src/devices/grohtml/Makefile.sub: Updated.
2744         * tmac/an-old.tmac (TP): Don't handle html device specially.
2745         (an-do-tag-html): New function which will be used instead of
2746         `an-do-tag' if html device is used.
2748         * tmac/html.tmac: Call .po to pass default page offset to grohtml.
2750         * tmac/s.tmac (@IP): Don't handle html device specially.
2751         (@IP-html): New function which will be used instead of `@IP' if
2752         html device is used.
2754         * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
2755         is a hack which will eventually vanish again.
2756         (PIMG): Handle `-C' option correctly if not html.
2757         (HR): Use HTML-NS.
2759 2002-07-17  Werner LEMBERG  <wl@gnu.org>
2761         * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
2763 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
2765         * contrib/pic2graph/pic2graph.*: Use convert(1).
2766         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
2768 2002-07-14  Bernd Warken  <bwarken@mayn.de>
2770         * tmac/groff_trace.man: New file.
2771         * tmac/Makefile.sub: Updated.
2772         * NEWS: Updated.
2774 2002-07-13  Werner LEMBERG  <wl@gnu.org>
2776         * src/roff/groff/groff.man: Add some cross references.
2778 2002-07-12  Werner LEMBERG  <wl@gnu.org>
2780         * src/roff/troff/input.cc (substring_request): Add warnings for
2781         string indices out of range.
2783 2002-07-11  Werner LEMBERG  <wl@gnu.org>
2785         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
2786         * font/devdvi/*EC: Regenerated.
2788 2002-07-10  Bernd Warken  <bwarken@mayn.de>
2790         * man/groff_char.man: Updated and extended.
2792 2002-07-10  Werner LEMBERG  <wl@gnu.org>
2794         * src/roff/troff/input.cc (length_macro): Renamed to...
2795         (length_request): This.
2796         Move call of `tok.next()' to the very end, otherwise the register
2797         value hasn't been updated yet.
2798         (init_input_requests): Updated.
2800 2002-07-09  Werner LEMBERG  <wl@gnu.org>
2802         * src/roff/troff/input.cc (substring_macro): Renamed to...
2803         (substring_request): This.
2804         (init_input_requests): Updated.
2805         * src/roff/troff/request.h: Updated.
2807 2002-07-08  Robert D. Goulding  <goulding@Princeton.EDU>
2809         * src/roff/grog/grog.sh: Fix typo.
2811 2002-07-08  Werner LEMBERG  <wl@gnu.org>
2813         * win32-diffs: Updated.
2815         Handle `papersize' keyword properly in DESC.
2817         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
2818         type.
2819         Updated all callers.
2820         * src/libs/libgroff/paper.cc: Add four more paper formats used by
2821         grolj4.
2822         * src/include/paper.h: Updated.
2824         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
2825         Other minor C syntax fixes.
2826         (papersize, paperlength, paperwidth): Renamed to `user_*'.
2827         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
2828         members.
2829         (lbp_printer::lbp_printer): Pass three arguments.
2830         Set paper dimensions properly.
2831         (make_printer, main): Updated.
2832         (handle_unknown_desc_command): Fix error messages.
2833         (main): Handle papersize keyword in DESC properly.
2835         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
2836         `user_paper_size'.
2837         (lbp_printer::lbp_printer): Pass an argument.
2838         Set paper_size properly.
2839         (handle_unknown_desc_command): Removed.
2840         (make_printer, main): Updated.
2841         * src/devices/grolj4/grolj4.man: Minor documentation fix.
2843         * man/groff_font.man, NEWS: Updated.
2845 2002-07-07  Werner LEMBERG  <wl@gnu.org>
2847         Integrated eqn2graph, contributed by Eric S. Raymond.
2849         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
2850         files.
2851         * Makefile.in, NEWS: Updated.
2853 2002-06-04  Werner LEMBERG  <wl@gnu.org>
2855         Changing the substring request to make it fit better with other
2856         string manipulation functions in other programming languages:
2857         Index 0 is now the first character in the string, and index -1
2858         indicates the last character.  Since this request didn't work
2859         properly anyway in the last release, it doesn't harm too much to
2860         change the syntax.
2862         * src/roff/troff/input.cc (substring_macro): Use loops to get
2863         the real string length (ignoring COMPATIBLE_SAVE and
2864         COMPATIBLE_RESTORE) and offsets.
2865         Implement change described above.
2867         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
2868         (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
2870         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
2872 2002-06-03  Werner LEMBERG  <wl@gnu.org>
2874         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
2875         COMPATIBLE_RESTORE are completely ignored.
2877         * src/roff/troff/input.cc (char_list::set, char_list::get): New
2878         functions.
2879         (macro): `length' field renamed to `len'.
2880         Added new field `empty_macro' (1 if macro is empty), to be used
2881         instead of checking `len'.
2882         Updated all callers.
2883         (macro::empty): Updated.
2884         (macro::length, macro::set, macro::get): New functions.
2885         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
2886         Set `empty_macro'.
2887         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
2888         COMPATIBLE_RESTORE pairs.
2889         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
2890         * src/roff/troff/request.h: Updated.
2892         * doc/groff.texinfo: Document .chop's behaviour better.
2894 2002-06-02  Werner LEMBERG  <wl@gnu.org>
2896         * doc/pic.ms: Fix documentation for the addition of positions.
2898         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
2900 2002-06-29  Werner LEMBERG  <wl@gnu.org>
2902         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
2904         * src/roff/troff/input.cc (have_string_arg): New global variable.
2905         (read_mode): New enumeration.
2906         (read_escape_name): Use it.  Update all calls.
2907         (read_long_escape_name): Use it.  Update all calls.
2908         Set have_string_arg if appropriate.
2909         (get_char_for_escape_name): Add parameter for handling space
2910         character.
2911         (interpolate_string_with_args, decode_string_args): New functions.
2912         (get_copy, token::next): Call it if necessary.
2913         (interpolate_string): Fix error message.
2915         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
2916         Document it.
2918 2002-06-24  Bernd Warken  <bwarken@mayn.de>
2920         * man/groff_tmac.man: Updated and extended.
2922 2002-06-24  Werner LEMBERG  <wl@gnu.org>
2924         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
2926 2002-06-23  Werner LEMBERG  <wl@gnu.org>
2928         * doc/pic.ms: Improve documentation of composite block objects.
2930 2002-06-22  Werner LEMBERG  <wl@gnu.org>
2932         * src/roff/troff/input.cc (init_registers): Add three registers
2933         `seconds', `minutes', and `hours' to hold the current time.
2935         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
2936         Updated.
2938 2002-06-20  Werner LEMBERG  <wl@gnu.org>
2940         Make \X accept both `\ ' and `\~', converting them to single space
2941         characters.
2943         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
2944         (token::unstretchable_space): New inline function.
2945         * src/roff/troff/input.cc (token::next, token::delimiter,
2946         token::description, token::add_to_node_list, token::process): Handle
2947         TOKEN_UNSTRETCHABLE_NODE.
2948         (encode_char): Handle tok.stretchable_space and
2949         tok.unstretchable_space.
2951         * NEWS, doc/groff.texinfo: Document it..
2953 2002-06-19  Werner LEMBERG  <wl@gnu.org>
2955         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
2957         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
2958         keyword to enable/disable SGR output.
2959         (tty_printer::change_fill_color): New function.
2960         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
2962         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
2963         call.
2965 2002-06-18  Werner LEMBERG  <wl@gnu.org>
2967         Add a `color' request and a `.color' register to control usage of
2968         colours.
2970         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
2971         (color_flag): This (which is the inverse).
2972         (activate_color): New function.
2973         (main, init_input_requests): Updated.
2974         * src/roff/troff/troff.h, src/roff/troff/node.cc
2975         (troff_output_file::fill_color, troff_output_file::glyph_color):
2976         Updated.
2978         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
2979         Document the changes.
2981 2002-06-17  Colin Watson  <cjwatson@debian.org>
2983         Circumvent bug in autoconf 2.53 regarding top_builddir.
2985         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
2986         * Makefile.in, doc/Makefile.in:
2987         s/@top_builddir@/@groff_top_builddir@/.
2988         * configure: Regenerated (with autoconf 2.53).
2990 2002-06-17  Werner LEMBERG  <wl@gnu.org>
2992         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
2993         `paperwidth' and `paperlength' for the `papersize' keyword.
2995 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
2997         * src/devices/grops/grops.man: Add info about Type 42 fonts.
2999 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
3001         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
3002         html_printer::do_linelength, html_printer::do_pageoffset,
3003         html_printer::do_indentation, html_printer::do_tempindent,
3004         html_printer::do_break, html_printer::begin_page): Clear indented
3005         text.
3006         * tmac/html.tmac: Disable hyphenation.
3008 2002-06-15  Werner LEMBERG  <wl@gnu.org>
3010         Don't produce HTML files if utility programs are missing.
3012         * Makefile.in (make_html, make_install_html): New variables.
3013         (MDEFINES): Updated.
3015         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
3016         utility programs.
3017         * configure.ac: Use it.
3018         * configure: Regenerated.
3020         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
3021         (HTMLEXAMPLESFILES): This new variable.
3022         (EXAMPLESIMAGEFILES): Renamed to...
3023         (HTMLEXAMPLEIMAGEFILES): This.
3024         (CLEANADD): Add HTMLEXAMPLEFILES.
3025         (all): Use `make_html'.
3026         (html): New target.
3027         (install_data): Use `make_install_html'.
3028         Move html stuff to...
3029         (install_html): This new target.
3030         (uninstall_sub): Updated.
3032 2002-06-14  Bernd Warken  <bwarken@mayn.de>
3034         * src/roff/grog/Makefile.sub (grog): Renamed to...
3035         (grog.old): This.
3036         (grog): New rule to always install grog.sh as grog.
3038 2002-06-08  Bernd Warken  <bwarken@mayn.de>
3040         * src/roff/grog/grog.pl: Fix typo.
3042 2002-06-07  Werner LEMBERG  <wl@gnu.org>
3044         * doc/groff.texinfo: Add more info on .tr arguments.
3046 2002-06-05  Werner LEMBERG  <wl@gnu.org>
3048         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
3050         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
3051         * configure: Regenerated.
3053 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
3055         * src/roff/troff/symbol.cc (table_sizes): Add more values.
3057         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
3059 2002-06-04  Werner LEMBERG  <wl@gnu.org>
3061         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
3062         is not initialized at the time we need it in case `--prefix' hasn't
3063         been set.  Check for `ac_default_prefix' also.
3064         Test for `papersize' keyword also and generalize allowed whitespace.
3065         * configure: Regenerated.
3067         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
3068         `paperlength'.
3070         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
3071         with...
3072         (src_version, src_revision): New variables to avoid overwriting
3073         from parent make process.
3074         (version.cc): Updated.
3076         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
3077         (linebuf, linebufsize): New global variables.
3078         (sys_fatal): Use `fatal' to abort properly.
3079         (get_line): New function.
3080         (get_resolution): Use it.
3081         Improve error messages.
3082         (get_papersize): Check `papersize' also.
3083         Use `get_line'.
3084         Improve error messages.
3086 2002-06-03  Werner LEMBERG  <wl@gnu.org>
3088         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
3089         should be removed only if builddir is not srcdir.
3090         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
3091         (clean): Depend on `mostlyclean'.
3092         (distclean): Depend on `clean'.
3093         (realclean, extraclean): Depend on `distclean'.
3094         (.y.cc, .y.o): Simplified.  The output files are no longer written
3095         to srcdir but to builddir.
3096         * Makefile.in (MDEFINES): Add `version' and `revision'.
3097         (uninstall_dirs): Fix order of directories.
3098         * doc/Makefile.sub (version, revision): Removed.
3099         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
3100         Added `HTMLDOCFILES'.
3101         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
3102         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
3103         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
3104         as prefix.
3106         * doc/texinfo.tex (\authortt): New macro.
3107         (\shortcontt): Define.
3108         (\titlepage): Set \tt to \authortt while defining \authorfont.
3109         (\appendixbox): New macro.
3110         (\chapmacro, \appendixentry): Use \appendixbox to get even
3111         indentation for letters.
3112         (\summarycontents): Set \tt.
3113         (\internalpagesize): Add two arguments for real paper width and
3114         height as needed by pdfTeX.
3115         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
3116         Updated.
3117         (\tempdima, \tempdimb): New temporary dimensions.
3118         (\pagesizesyyy): Updated.
3120 2002-06-02  Werner LEMBERG  <wl@gnu.org>
3122         Adding a new keyword `papersize' to the DESC file format (similar
3123         but not completely identical to grolbp's extension).  grops now has
3124         a -p command line option to override `papersize'.  Finally, grolbp
3125         has been adapted to the new syntax.
3127         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
3128         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
3129         elements.
3130         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
3131         (CCSRCS): Add `paper.cc'.
3133         * src/include/font.h (font): Add `papersize' element.
3134         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
3135         (font::scan_papersize): New function.
3136         (font::load_desc): Use it for handling `papersize' keyword.
3137         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
3139         * src/devices/grops/ps.cc: Include paper.h.
3140         (user_paper_length): New global variable.
3141         (ps_printer): Use paper length as initializer.
3142         (make_printer): Updated.
3143         (main): Handle new `-p' option.
3144         * src/devices/grops/grops.man: Updated.
3146         * src/devices/grolbp/lbp.cc: Include paper.h.
3147         s/papersizes/lbp_papersizes/.
3148         (set_papersize): Use new `papersizes' array.
3149         (handle_unknown_desc_command): Don't handle `papersize'.
3150         (main): Use `font::scan_papersize' for handling `-p' option.
3151         * src/devices/grolbp/grolbp.man: Updated.
3153         * man/groff_font.man: Document `papersize'.
3154         * NEWS: Updated.
3156 2002-05-30  Werner LEMBERG  <wl@gnu.org>
3158         * src/devices/grops/TODO: Updated.
3159         * src/devices/grops/grops.man: More info on paper formats.
3160         * man/groff_font.man: Document `paperheight' and `paperwidth'.
3162 2002-05-29  Werner LEMBERG  <wl@gnu.org>
3164         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
3165         to list only if srcdir != currdir.
3166         (distfiles): New target.
3168         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
3169         (NOMAKEDIRS): New variable.
3170         (DISTDIRS): Use it.
3172 2002-05-26  Werner LEMBERG  <wl@gnu.org>
3174         Add .output request, similar to \! at top-level.
3176         * src/roff/troff/input.cc (transparent): Remove unused declaration.
3177         (output_request): New function.
3178         (init_input_requests): Add it.
3179         Sorted.
3180         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3181         Document it.
3183         * Makefile.in (MDEFINES): Add INSTALL_INFO.
3184         (prepare_examples): Fix typo.
3185         * doc/groff.texinfo (@direntry): Fix it.
3187 2002-05-25  Werner LEMBERG  <wl@gnu.org>
3189         Including the doc subdir into groff's Makefile system.
3191         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
3192         * configure.ac: Use it.
3193         Generate `doc/Makefile'.
3194         * configure: Regenerated.
3196         * Makefile.in (infodir, INSTALL_INFO): New variables.
3197         (MDEFINES, uninstall_dirs): Updated.
3198         (OTHERDIRS): Add `doc'.
3199         * Makefile.comm (CLEANDIRADD): New variable.
3200         (mostlyclean): Use it.
3202         * doc/Makefile.sub, doc/Makefile.in: New files.
3203         * doc/Makefile: Removed.
3205         * NEWS, INSTALL: Updated.
3207 2002-05-24  Werner LEMBERG  <wl@gnu.org>
3209         * doc/homepage.ms: Renamed to ...
3210         * doc/webpage.ms: This.
3211         Use `.NHR'.
3213 2002-05-23  Werner LEMBERG  <wl@gnu.org>
3215         Integrating the `mom' macro package, contributed by Peter Schaffter
3216         <df191@ncf.ca>.
3218         * contrib/mom/*: New subdirectory tree.
3219         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
3220         be used for documentation files.
3221         (MDEFINES, uninstall_dirs): Use them.
3222         (OTHERDIRS): Add contrib/mom.
3223         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
3224         @HTMLDOCDIR@.
3225         * MANIFEST, NEWS: Updated.
3227 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
3229         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
3230         if at outer level; at start-up we are at outer level.
3232         * src/roff/troff/input.cc (do_suppress): Implement it.
3233         Simplify \O[3].
3235         Add option -p to show progress information.
3236         pre-grohtml will now render only one page at a time, reducing the
3237         size of needed disk resources enormously.
3239         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
3240         (imagePageName): New global variable.
3241         (psPageName, show_progress, currentPageNo): New global variables.
3242         (html_system): Close saved stderr and stdout handles.
3243         (write_end_image): Accept a parameter to control \O escape.
3244         (write_start_image): Adapted to new \O meaning.
3245         (char_buffer::write_upto_newline): Updated.
3246         (createAllPages): Replaced with...
3247         (createPage): This new function to create a single page for images.
3248         It uses `psselect' from the psutils package.
3249         (removeAllPages): Removed.
3250         (createImage): Updated.
3251         Handle progress display.
3252         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
3253         (scanArguments): Add option -p.
3254         (makeTempFiles): Updated to create temp files for psPageName and
3255         imagePageName.
3256         (removeTempFiles): Removed.
3257         (main): Updated.
3259         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
3260         html_printer::write_header): Append `\0' to `buffer'.
3261         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
3262         (main): Handle -p.
3263         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
3264         Handle `text_emitted'.
3265         (html_text::table_is_void): Slightly rewritten.
3266         (stop): New external symbol.
3267         (html_text::do_push) [DEBUGGING]: Use it and simplify.
3268         (html_text::shutdown): Call `dump_stack'.
3269         (html_text::do_space): Rewritten.
3270         * src/devices/grohtml/grohtml.man: Document -p and the need of
3271         `psselect'.
3273         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
3274         new \O syntax.
3275         Call \O[0] if `ps4html' is active.
3276         * tmac/s.tmac (@EQ, @EN): Handle html better.
3277         (@TS, TE): Ditto.
3278         * tmac/html.tmac: Don't use black for background colour.
3280         * src/roff/troff/node.cc: Include `div.h'.
3281         (troff_output_file::really_print_line): Don't use `is_on'. 
3282         (troff_output_file::word_marker, troff_output_file::flush_tbuf
3283         troff_output_file::check_charinfo,
3284         troff_output_file::put_char_width, troff_output_file::put_char,
3285         troff_output_file::determine_line_limits, troff_output_file::draw,
3286         real_output_file::begin_page, glyph_color_node::tprintf,
3287         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
3288         Use `is_on'.
3289         (troff_output_file::really_on): Call `do_motion'.
3290         (suppress_node::tprint): Use `get_page_number' instead of `%'
3291         register.
3292         Call `reset_output_registers' conditionally on `is_on'.
3294         * doc/groff.texinfo: Document new syntax of \O.
3295         * NEWS, man/groff_diff.man: Updated.
3297 2002-05-22  Werner LEMBERG  <wl@gnu.org>
3299         * MORE.STUFF: Add info about David Frey's deroff implementation.
3300         Mention troff.org.
3302 2002-05-16  Werner LEMBERG  <wl@gnu.org>
3304         Pic's `with' attribute now accepts positions.
3306         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
3307         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
3308         conflicts.
3309         (object_spec): Add rule for `WITH' and `position'.
3310         (relative_path): Give `corner' the precedence of `CHOP'.
3311         * src/preproc/pic/object.h (path): New members `pos' and
3312         `is_position'.
3313         * src/preproc/pic/object.cc: Updated initializers of `path'.
3314         (path::follow): Handle `is_position'.
3316         * doc/pic.ms: Completely updated grammar description.
3317         Many typographical improvements.
3319 2002-05-15  Werner LEMBERG  <wl@gnu.org>
3321         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
3322         code of x in range 0-127) also.
3323         * doc/groff.texinfo, man/groff_diff.man: Updated.
3325         Added keywords `north', `south', `east', and `west' for corners
3326         in pic.
3328         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
3329         and WEST.
3330         (yylex): Handle them.
3331         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
3332         (corner): Handle them.
3334 2002-05-14  Werner LEMBERG  <wl@gnu.org>
3336         * src/devices/grops/grops.man: Clarify handling of `download' file.
3338 2002-05-11  Werner LEMBERG  <wl@gnu.org>
3340         Adding `warnscale' and `spreadwarn' requests, based on a patch from
3341         Jeffrey Friedl <jfriedl@yahoo.com>.
3343         * src/roff/troff/input.cc (spread_limit, warn_scale,
3344         warn_scaling_indicator): New global variables.
3345         (warnscale_request, spreadwarn_requests): New functions.
3346         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
3347         (init_input_requests): Updated.
3348         (error_type): Add `OUTPUT_WARNING'.
3349         (do_error): Handle it.
3350         (output_warning): New warning function which shows output location.
3351         * src/roff/troff/env.h (spread_limit): New external variable.
3352         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
3353         `output_warning'.
3354         (distribute_space): Emit warning if added space is larger than
3355         `spread_limit'.
3356         (environment::possibly_break_line): Emit warning if a line can't
3357         be adjusted on both sides.
3359         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
3361 2002-05-08  Werner LEMBERG  <wl@gnu.org>
3363         * src/roff/troff/node.cc (special_node::special_node): Use
3364         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
3365         \X''\% crashes, for example.
3367         * doc/groff.texinfo: Document \! and \? used at top-level.
3369 2002-05-06  Werner LEMBERG  <wl@gnu.org>
3371         * src/preproc/pic/pic.man: Fix some keyword syntax.
3372         Other minor typographical fixes.
3374         * src/roff/groff/groff.man: Fix typos.
3376 2002-05-04  Werner LEMBERG  <wl@gnu.org>
3378         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
3379         (ShortOpt[]): This to avoid problems with refer.
3381         * doc/pic.ms: Fix typo.
3382         Fix pic grammar description.
3384         * tmac/an-old.tmac (ne): Use de1, not de.
3386 2002-05-03  Werner LEMBERG  <wl@gnu.org>
3388         * doc/groff.texinfo: Finished separation of glyphs and characters.
3389         Don't use the string `Appendix' for appendix headers (both in
3390         the text and the table of contents).
3391         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
3392         directories.
3394         Use registers LL and LT (similar to -ms) for controlling the
3395         length of title and line, respectively, in the -man and -mdoc
3396         macro packages.
3398         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
3399         (doc-setup-page-layout): Use \n[LL] and \n[LT].
3400         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
3401         (TH): Use \n[LL].
3402         (an-header, an-p-footer): Use \n[LT].
3403         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
3404         doc/groff.texinfo: Document it.
3406 2002-05-02  Werner LEMBERG  <wl@gnu.org>
3408         * doc/fdl.texi: New file.
3409         * doc/groff.texinfo: Include it.
3410         Define and use @copying.
3411         Starting with separating glyph, symbol, and character.
3413 2002-04-27  Werner LEMBERG  <wl@gnu.org>
3415         * Makefile.in (EXEEXT): Set it.
3416         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
3417         programs.
3419         * src/include/nonposix.h: Define GS_NAME.
3420         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
3422         Some preliminary changes for EMX support under OS/2.
3424         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
3425         __EMX__ similar to __MSDOS__.
3426         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
3428 2002-04-25  Werner LEMBERG  <wl@gnu.org>
3430         * doc/groff.texinfo: Integrated groff_out.man.
3431         Some macro fixes.
3433 2002-04-23  Werner LEMBERG  <wl@gnu.org>
3435         * man/groff_out.man: Minor fixes.
3437 2002-04-23  Werner LEMBERG  <wl@gnu.org>
3439         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
3440         correct page references.
3441         Fixed many index entries.
3443 2002-04-23  Bernd Warken  <bwarken@mayn.de>
3445         * man/roff.man: Enlarged.
3447 2002-04-22  Werner LEMBERG  <wl@gnu.org>
3449         * doc/groff.texinfo: More examples, other fixes.
3451 2002-04-20  Werner LEMBERG  <wl@gnu.org>
3453         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
3454         will now form a chain, e.g.
3456           .pi foo
3457           .pi bar
3459         is now the same as
3461           .pi foo | bar
3463         This is for compatibility with plan 9's troff.
3465         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
3466         with UNIX troff.
3467         * NEWS: Updated.
3469         * doc/groff.texinfo: Add documentation of remaining requests and
3470         registers.
3472 2002-04-19  Werner LEMBERG  <wl@gnu.org>
3474         * doc/groff.texinfo: Add documentation of remaining escapes.
3476         * font/devdvi/generate/tc.map: Remove entry for `sr'.
3477         * font/devdvi/*TC: Regenerated.
3479 2002-04-18  Werner LEMBERG  <wl@gnu.org>
3481         * src/roff/troff/input.cc (token::next): Make \H behave consistently
3482         if not in compatibility mode, i.e., increment relative to the
3483         previous height.
3484         * doc/groff.texinfo: Updated accordingly.
3486 2002-04-17  Werner LEMBERG  <wl@gnu.org>
3488         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
3490 2002-04-16  Bernd Warken  <bwarken@mayn.de>
3492         * src/roff/groff/groff.man: Improve documentation of -P option.
3493         Other minor fixes.
3495 2002-04-15  Werner LEMBERG  <wl@gnu.org>
3497         Add new escape \F to switch font family.
3499         * src/roff/troff/input.cc (token::next): Handle \F.
3500         * src/roff/troff/env.cc (environment::set_family): Handle
3501         `interrupted' flag.
3502         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3503         Document it.
3505 2002-04-14  Werner LEMBERG  <wl@gnu.org>
3507         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
3508         spaces in tags.
3510 2002-04-13  Werner LEMBERG  <wl@gnu.org>
3512         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
3513         \m[] and \M[], respectively.
3515         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
3516         (symbol::symbol): Handle NULL string and empty string differently.
3517         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
3518         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
3519         Add optional parameter.
3520         Updated calling functions.
3521         (get_copy, do_glyph_color, do_fill_color, token::next): Use
3522         `symbol::is_empty'.
3523         * src/roff/troff/env.cc (environment::set_font): Ditto.
3525         * src/preproc/pic/troff.cc (troff_output::set_fill,
3526         troff_output::reset_color: Updated.
3528         * tmac/www.tmac: Updated.
3530         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
3531         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
3532         Updated.
3534         * tmac/Xps.tmac: Remove some redundant code.
3536         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
3537         tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
3538         man/groff_out.man, man/groff.man, man/groff_diff.man,
3539         src/roff/groff/groff.man: Replace \f[P] with \f[].
3541 2002-04-13  Bernd Warken  <bwarken@mayn.de>
3543         * src/include/printer.h, src/libs/libdriver/printer.cc
3544         (printer::change_fill_color): New member function.
3545         * src/libs/libdriver/input.cc (parse_D_command): Use it.
3547 2002-04-12  Werner LEMBERG  <wl@gnu.org>
3549         * doc/groff.texinfo: Completed pass on gtroff reference.
3551 2002-04-11  Werner LEMBERG  <wl@gnu.org>
3553         * doc/groff.texinfo: More fixes.
3555 2002-04-11  Bernd Warken  <bwarken@mayn.de>
3557         * src/include/color.h: Decorate with `const'.
3558         Use `size_t'.
3559         Include `stddef.h'.
3560         * src/libs/libgroff.color.cc: Decorate with `const'.
3561         Use `size_t'.
3562         (color::color): Initialize members.
3563         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
3564         command according to the documentation.
3566         * man/groff_out.man: Updated.
3567         Minor fixes.
3569 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
3571         * src/preproc/html/pre-html.cc (write_start_image): Remove
3572         redundant output.
3573         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
3575         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
3576         \C'hy' caused an assertion failure.
3578         * src/roff/troff/env.cc (environment::environment): Initialize
3579         `emitted_node'.
3580         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
3582 2002-04-10  Werner LEMBERG  <wl@gnu.org>
3584         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
3585         Document pvs request and .pvs register.
3587 2002-04-09  Werner LEMBERG  <wl@gnu.org>
3589         * doc/groff.texinfo: Improve and fix documentation of diversions
3590         and environments.
3592 2002-04-08  Werner LEMBERG  <wl@gnu.org>
3594         * doc/groff.texinfo: Fix documentation of drawing functions.
3595         Other minor fixes.
3597 2002-04-07  Werner LEMBERG  <wl@gnu.org>
3599         * doc/groff.texinfo: Better documentation of double quotes as
3600         arguments.
3601         Other minor fixes.
3603 2002-04-06  Werner LEMBERG  <wl@gnu.org>
3605         * man/groff_font.man: Document names of special characters better.
3606         * doc/groff.texinfo: Minor improvements.
3608         * tmac/lbp.tmac: Load latin1.tmac.
3609         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
3611         * font/devX*/*: Regenerated (all chars > 0x80 removed).
3613 2002-04-05  Werner LEMBERG  <wl@gnu.org>
3615         * tmac/tty.tmac: Don't use shc request.
3616         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
3617         * NEWS: Updated.
3619         * man/groff_diff.man: Minor fixes.
3621         * font/devlbp/*: Remove all `charXXX' entities.
3623         * src/libs/libgroff/font.cc (font::~font): Deallocate
3624         `special_device_coding'.
3625         (font::load): Use `new' for allocating `special_device_coding'.
3626         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
3627         Removed unused member.
3629 2002-04-05  Werner LEMBERG  <wl@gnu.org>
3631         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
3632         (resource_manager::do_begin_binary,
3633         resource_manager::do_begin_data): Use it.
3635         * doc/texinfo.tex: Updated to version 4.2.
3637         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
3638         (token::zero_width_break): New inline function.
3639         * src/roff/troff/input.cc (token::next): Use it.
3640         (token::description): Updated.
3641         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
3642         (token::add_to_node_list, token::process): Use it.
3643         * NEWS, doc/groff.texinfo: Updated.
3645         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
3646         * tmac/tty.tmac: Add missing backslash.
3648 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
3650         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
3651         `.ps' register instead of `.s' to handle fractional point sizes.
3652         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
3653         limit_box::output): Ditto.
3654         * src/preproc/eqn/other.cc (size_box::compute_metrics,
3655         size_box::output): Ditto.
3656         * src/preproc/eqn/over.cc (over_box::compute_metrics,
3657         over_box::output): Ditto.
3658         * src/preproc/eqn/script.cc (script_box::compute_metrics,
3659         script_box::output): Ditto.
3660         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
3661         sqrt_box::output): Ditto.
3663 2002-04-03  Michael Selway  <mas@ssl.co.uk>
3665         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
3666         Fix typo.
3668 2002-04-03  Werner LEMBERG  <wl@gnu.org>
3670         * doc/homepage.ms: Reduce title size.
3671         * doc/groff.texinfo: Fix documentation of .t register.
3672         Fix handling of colon.
3673         Fix `\' vs. `\\'.
3675         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
3676         only if page length is positive to avoid a loop.
3678         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
3679         tbl.
3681 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
3683         * src/include/nonposix.h, src/roff/groff/pipeline.c:
3684         s/__CYGWIN32__/__CYGWIN__/.
3686 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
3688         * doc/gnu.xpm: New image contributed by Emily Mulley.
3689         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
3690         (homepage.html): Be dependent on gnu.eps.
3691         * doc/homepage.ms: Updated to new image.
3693         * src/devices/grohtml/post-html.cc (html_printer): New member
3694         `sbuf_prev_hpos'.
3695         (html_printer::flush_sbuf, html_printer::set_char): Set it.
3696         (html_printer::sbuf_continuation): Use it.
3698 2002-03-28  Werner LEMBERG  <wl@gnu.org>
3700         * src/libs/libgroff/getopt.c: Updated to latest version.
3702         * tmac/README: More on hyphen.tex license.
3704 2002-03-26  Larry Kollar  <kollar@alltel.net>
3706         * doc/groff.texinfo: Add documentation of most missing requests.
3708 2002-03-25  Werner LEMBERG  <wl@gnu.org>
3710         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
3711         of `+-', `mu', and `di', respectively.
3713         * font/devascii/R.proto, font/devutf8/R.proto,
3714         font/devlatin1/R.proto, font/devhtml/R.proto,
3715         font/devcp1047/R.proto, font/devlpb/*: Add them.
3716         * font/devps/generate/textmap: Ditto.
3717         * font/devps/*: Regenerated.
3718         * font/devlj4/generate/text.map: Add them.
3719         * font/devlj4/*: Regenerated.
3720         * font/devdvi/generate/tc.map: Use them.
3721         * font/devdvi/generate/texsy.map: Add them.
3722         * font/devdvi/*: Regenerated.
3723         * font/devX*/*: Regenerated.
3725         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
3726         tmac/tty-char.tmac: Updated.
3728         * NEWS, man/groff_char.man: Updated.
3730 2002-03-24  Werner LEMBERG  <wl@gnu.org>
3732         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
3733         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
3734         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
3735         we use `.fchar' in dvi.tmac.
3736         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
3737         * tmac/Xps.tmac: Simplify some char definitions.
3738         Add definition for \[f/].
3739         * man/groff_char.man: Updated for new X.tmac.
3741         * tmac/README: New file.
3743 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
3745         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
3746         internal .y.o rule took precendence over the .y.cc rule, compiling
3747         the yacc files with gcc instead of g++.
3749 2002-03-23  Werner LEMBERG  <wl@gnu.org>
3751         * tmac/dvi.tmac: Add replacement font for `CB'.
3753         * tmac/doc.tmac: s/request/macro/ in messages.
3754         (doc-generic-macro): Improve error message.
3755         * tmac/groff_mdoc.man: Minor improvements.
3757 2002-03-22  Werner LEMBERG  <wl@gnu.org>
3759         * doc/groff.texinfo: Document possible conflict between `tr' and
3760         `char' requests.
3762 2002-03-21  Werner LEMBERG  <wl@gnu.org>
3764         Improve handling of hyphenation patterns.  It is now possible to
3765         use most of TeX's pattern files unmodified.  To make the process
3766         more flexible, a new request `hpfcode' has been added which
3767         provides a character code mapping for the `hpf' request.  See
3768         comment before hpf_getc() for more details.
3770         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
3771         functions.
3772         (read_patterns_file): Additional parameter for exception dictionary.
3773         Extended to recognize \pattern, \hyphenation, and \endinput.
3774         (do_hyphenation_patterns_file): Updated.
3775         * src/roff/troff/env.h (hpf_code_table): New extern.
3777         * src/roff/troff/input.cc (hpf_code_table): New array.
3778         (init_hpf_code_table, hyphenation_patterns_file_code): New
3779         functions.
3780         (hyphenation_code): Handle translation from `trin' correctly.
3781         (main, init_input_requests): Updated.
3782         (charinfo::set_translation): Handle hyphenation code also.
3784         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
3785         inline function.
3787         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
3788         char' is used for offsets in hyphenation exceptions.
3790         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
3792         * NEWS, man/groff_diff.man, man/groff.man: Document it.
3794 2002-03-20  Larry Kollar  <kollar@alltel.net>
3796         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
3797         requests.
3799 2002-03-18  Werner LEMBERG  <wl@gnu.org>
3801         * tmac/html.tmac: Fix serious typo.
3803 2002-03-17  Larry Kollar  <kollar@alltel.net>
3805         * doc/groff.texinfo: Add documentation for `writec' request.
3807 2002-03-17  Werner LEMBERG  <wl@gnu.org>
3809         Added request `hpfa' to append hyphenation patterns.
3811         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
3812         parameter `append'.
3813         (hyphenation_patterns_file): Renamed to...
3814         (do_hyphenation_patterns_file): This.
3815         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
3816         functions.
3817         (init_hyphen_requests): Updated.
3818         * NEWS, man/groff.man, man/groff_diff.man: Document it.
3820 2002-03-16  Werner LEMBERG  <wl@gnu.org>
3822         Added request `writec' in analogy to `tmc'.
3824         * src/roff/troff/input.cc (write_request): Renamed to...
3825         (do_write_request): This.
3826         Added one parameter.
3827         (write_request, write_request_continue): New functions.
3828         (init_input_requests): Updated.
3829         * NEWS, man/groff.man, man/groff_diff.man: Document it.
3831         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
3832         5-10000pt.
3833         * NEWS: Document it.
3835 2002-03-15  Werner LEMBERG  <wl@gnu.org>
3837         * man/groff.man: Add writem request.
3839         Add request `trin' (translate input) to make `.asciify' work
3840         correctly.  This is necessary since `charXXX' entity names are no
3841         longer hardcoded in font definition files.
3843         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
3844         `translate_input' members.
3845         (charinfo::set_asciify_code, charinfo::get_asciify_code,
3846         charinfo::set_translation_input): New methods.
3847         (charinfo::set_translation): Add third argument.
3848         * src/roff/troff/input.cc (charinfo:set_translation): Set
3849         `asciify_code'.
3850         (do_translate): Add second argument.
3851         (translate_input): New function.
3852         (init_input_requests): Updated.
3853         * src/roff/troff/node.cc (glyph_node::asciify,
3854         composite_node::asciify): Use `get_asciify_code'.
3856         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
3858         * NEWS, man/groff.man, man/groff_diff.man: Updated.
3860 2002-03-14  Larry Kollar  <kollar@alltel.net>
3862         * doc/groff.texinfo: Improve documentation of .RS and .RE.
3864 2002-03-14  Werner LEMBERG  <wl@gnu.org>
3866         Add a new request `sizes' similar to the `sizes' command in DESC
3867         files.
3869         * src/roff/troff/env.cc (override_sizes): New function.
3870         (init_env_requests): Use it.
3871         * src/roff/troff/token.h: Export `read_string'.
3872         * NEWS, man/groff_diff.man, man/groff.man: Document it.
3874 2002-03-12  Werner LEMBERG  <wl@gnu.org>
3876         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
3878 2002-03-10  Werner LEMBERG  <wl@gnu.org>
3880         * tmac/pspic.tmac: Add support for -Tdvi.
3881         * tmac/dvi.tmac: Include pspic.tmac.
3882         * src/devices/grodvi/grodvi.man: Document it.
3883         * NEWS: Updated.
3885         * font/devlj4/generate/Makefile: Fix URL of metric files.
3887 2002-03-09  Werner LEMBERG  <wl@gnu.org>
3889         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
3891 2002-03-09  Larry Kollar  <kollar@alltel.net>
3893         * tmac/groff_ms.man: Add documentation for RS and RE macros.
3895 2002-03-08  Werner LEMBERG  <wl@gnu.org>
3897         * doc/groff.texinfo: Fixes for texinfo 4.1.
3899 2002-03-07  Werner LEMBERG  <wl@gnu.org>
3901         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
3902         included.
3903         Handle CYGWIN properly.
3905 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
3907         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
3908         * tmac/lbp.tmac: Add some font translations.
3910 2002-03-02  Werner LEMBERG  <wl@gnu.org>
3912         * font/devcp1047/R.proto, font/devlatin1/R.proto,
3913         font/devhtml/R.proto: Remove `charXXX'  entries.
3914         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
3915         where appropriate.
3917         * font/devlj4/generate/text.map: Remove `charXXX' entries.
3918         * font/devlj4/*: Regenerated all font definition files.
3919         * tmac/lj4.tmac: Load latin1.tmac.
3921         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
3922         from 2000-06-17: LJ4 metric files are *not* text files.
3924         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
3925         register to test for EBCDIC.
3927 2002-03-01  Werner LEMBERG  <wl@gnu.org>
3929         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
3930         files (as grops already does).
3931         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
3932         files.
3933         * src/devices/grops/grops.man: Document comment lines in encoding
3934         files.
3936         * tmac/cp1047.tmac: New file.
3937         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
3938         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
3939         * tmac/Makefile.sub (NORMALFILES): Updated.
3941         * tmac/ec.tmac: Don't load latin1.tmac again.
3943         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
3944         font/devps/generate/dingbats.map,
3945         font/devps/generate/dingbats.rmap, font/devps/text.enc,
3946         font/devps/generate/Makefile (symbolmap): Add header comment.
3947         * font/devps/generate/textmap: Ditto.
3948         Remove `charXXX' entries.
3949         * font/devps/symbolmap: Regenerated.
3950         * font/devps/*: Regenerated all font definition files.
3952 2002-02-28  Werner LEMBERG  <wl@gnu.org>
3954         Add color support to grodvi (for drawing colors are currently
3955         translated to gray values).
3957         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
3958         (dvi_printer): Add `cur_color' member.
3959         (dvi_printer::set_color): New function.
3960         (draw_dvi_printer): Remove `fill'.
3961         (draw_dvi_printer::fill_next): Pass environment as parameter.
3962         Update code for new color support translated to gray.
3963         (dvi_printer::set_char): Updated.
3964         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
3965         changes crossing the page border.
3966         (dvi_printer::draw): Updated.
3967         Remove cases `f' and `F'.
3968         * tmac/dvi.tmac: Add color definitions.
3969         * NEWS, src/devices/grodvi/grodvi.man: Updated.
3971         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
3972         used incorrectly.
3974         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
3975         versions of autoconf.
3976         * configure: Updated.
3978         * doc/homepage.ms: Use `.blm'.
3979         * tmac/www.tmac (www-depth): New auxiliary variable.
3980         (www-pop-level): Don't issue HTML tag.
3981         (ULS, ULE, LI): Use absolute indentation.
3983         * src/devices/grops/ps.cc (ps_printer::begin_page,
3984         ps_printer::end_page): Switch forth and back to default color while
3985         starting a new page.
3987 2002-02-27  Werner LEMBERG  <wl@gnu.org>
3989         Add EC and TC fonts to devdvi.
3991         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
3992         * font/devdvi/generate/cork.map: Renamed to...
3993         * font/devdvi/generate/ec.map: This.
3994         Remove entry for `aq'.
3995         * font/devdvi/generate/tc.map: New file.
3996         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
3997         EC and TC fonts.
3998         (FONTS): Updated.
3999         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
4000         * font/devdvi/Makefile.sub (DEVFILES): Updated.
4001         * tmac/ec.tmac: New file.
4002         * tmac/Makefile.sub (NORMALFILES): Updated.
4003         * NEWS, src/devices/grodvi/grodvi.man: Updated.
4004         * man/groff_char.man: Check `ECFONTS' register.
4006         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
4008 2002-02-26  Werner LEMBERG  <wl@gnu.org>
4010         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
4011         * font/devdvi/generate/cork.map: Add 'y and 'Y.
4012         * font/devdvi/*: Updated.
4013         * tmac/dvi.tmac: Formatting.
4015         Add font `HBI' for the dvi output.
4016         Add support for font families `T' and `H'.
4018         * font/devdvi/HBI: New file.
4019         * font/devdvi/B: Renamed to ...
4020         * font/devdvi/TB: This.
4021         * font/devdvi/BI: Renamed to ...
4022         * font/devdvi/TBI: This.
4023         * font/devdvi/I: Renamed to ...
4024         * font/devdvi/TI: This.
4025         * font/devdvi/R: Renamed to ...
4026         * font/devdvi/TR: This.
4027         * font/devdvi/H: Renamed to ...
4028         * font/devdvi/HR: This.
4029         * font/devdvi/Makefile.sub (DEVFILES): Updated.
4030         * font/devdvi/generate/Makefile (HBI): New rule.
4031         (FONTS): Updated.
4032         (R, I, B, BI, H): Renamed to ...
4033         (TR, TI, TB, TBI, HR): This, respectively.
4034         (srcdir): Fixed.
4035         * NEWS, src/devices/grodvi/grodvi.man: Updated.
4036         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
4037         Add `styles' and `family' keywords.
4038         * tmac/dvi.tmac: Alias `H' to `HR'.
4039         Add some fspecial requests for italic fonts.
4040         Add TR and TI as special.
4041         Add support for `_' with font CWI.
4043         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
4044         operator `:'.  Until now, the expression `0:1' would return 2
4045         instead of 1.
4047 2002-02-25  Werner LEMBERG  <wl@gnu.org>
4049         * man/groff_char.man: Added some missing PS glyph names (from the
4050         Adobe Glyph List).
4051         * font/devps/generate/textmap, font/devps/symbolmap: Add
4052         `arrowupdn'.
4054         * doc/groff.texinfo: Minor additions and fixes.
4055         * man/groff_diff.man: Remove documentation of fp request.  This
4056         is already covered in the original troff manual.
4057         Updated to be consistent with other doc files.
4058         * NEWS: Updated.
4060 2002-02-24  Werner LEMBERG  <wl@gnu.org>
4062         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
4063         TTYDEVDIRS.
4064         Define new variable OTHERDEVDIRS (containing `font/devlj4
4065         font/devlbp' if not EBCDIC).
4066         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
4067         (OTHERDEVDIRS): New variable.
4068         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
4069         * configure: Regenerated.
4071         * NEWS, src/devices/grotty/grotty.man: Updated.
4073 2002-02-23  Werner LEMBERG  <wl@gnu.org>
4075         * src/roff/troff/input.cc (do_overstrike, do_bracket,
4076         get_line_arg): Honour input level.
4078         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
4080         * font/*/*: Implement it in all font files.
4081         * font/devps/generate/textmap, font/devps/generate/symbolchars,
4082         * font/devps/symbolmap: Updated.
4083         * font/devlj4/generate/text.map: Updated.
4084         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
4085         * font/devdvi/generate/texmi.map: Updated.
4087         * font/devutf8/R.proto: Remove all `charXXX' entries.
4088         * font/devutf8/NOTES: Updated.
4090         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
4091         version 4.1.0.
4093         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
4095         * NEWS, man/groff_char.man: Updated.
4097 2002-02-21  Phil Lobbes  <phil@perkpartners.com>
4099         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
4101 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4103         * src/roff/grog/grog.pl: Fix computation of $refer.
4105 2002-02-19  Werner LEMBERG  <wl@gnu.org>
4107         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
4108         `snprintf' and `vsnprintf'.
4110         * src/include/htmlindicate.h: Renamed to...
4111         * src/include/htmlhint.h: This.
4112         * src/include/Makefile.sub: Updated.
4113         * src/preproc/eqn/main.cc: Updated.
4115 2002-02-18  Werner LEMBERG  <wl@gnu.org>
4117         * man/roff.man, man/groff_out.man, man/groff.man,
4118         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
4119         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
4121         * win32-diffs: Updated.
4123 2002-02-17  Werner LEMBERG  <wl@gnu.org>
4125         * doc/Makefile (clean): Add *.eps.
4126         (MEMACROS): Removed.
4127         (TFLAG): New variable.
4128         (TROFF): Use it.
4129         Add -ww.
4130         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
4131         (.me.dit): Fixed.
4132         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
4134         * tmac/www.tmac: Use dummy diversion while resetting and disabling
4135         `.tl'.
4136         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
4137         unstripped.
4138         * src/roff/troff/troff.man: Fix order of parameter description.
4140         * NEWS: Updated.
4142 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
4144         Simplify image handling for grohtml.
4145         Fix <p> bug.
4147         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
4148         comment out.
4149         (html_text::dump_stack): Don't emit newline while debugging.
4150         (html_text::do_push) [DEBUGGING]: Print more info.
4151         (html_text::check_emit_text): Fix handling of <p>.
4152         * src/devices/grohtml/html.h: Updated.
4153         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
4154         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
4155         send its data to stderr also.
4156         Update all callers.
4157         (simple_output::space_or_newline) [DEBUGGING]: Removed.
4158         * src/devices/grohtml/post-html.cc (html_printer::do_links,
4159         html_printer::html_printer): Remove `DEBUGGING' conditionals.
4161         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
4162         Removed.
4163         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
4164         is_inline_image): Removed.
4165         (html_begin_suppress, html_end_suppress): Don't take a parameter.
4166         (graphic_start, graphic_end): Removed.
4167         * src/include/htmlindicate.h: Updated.
4168         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
4169         (macroset_template): New global variable.
4170         (makeFileName): Use `macroset_template'.
4171         (write_end_image): Don't take a parameter.
4172         Don't emit newline.
4173         (write_start_image: Don't emit newline.
4174         (char_buffer::write_upto_newline): Updated.
4175         (char_buffer::skip_to_newline): Renamed to ...
4176         (char_buffer::skip_until_newline): This.
4177         Fix code.
4178         (char_buffer::write_file_troff, char_buffer::write_file_html):
4179         Simplified.
4180         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
4181         (removeAllPages): Remove `DEBUGGING' conditionals.
4182         (addRegDef, dump_args): New functions.
4183         (char_buffer::do_html, char_buffer::do_image): Handle
4184         `www-image-template' command line variable.
4185         Add more debugging code.
4186         (addps4html): Removed.
4187         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
4189         * src/preproc/eqn/main.cc: Include `ctype.h'.
4190         (suppress_html): Removed.
4191         (do_file): Updated.
4192         (inline_equation): Use `html_begin_suppress' and
4193         `html_end_suppress'.
4194         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
4195         (troff_output::start_picture, troff_output::finish_picture):
4196         Updated.
4197         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
4198         (process_input_file): Updated.
4200         * src/roff/troff/div.cc (page_number): Set page number only if the
4201         `ps4html' register isn't defined.
4202         * src/roff/troff/input.cc (image_no): New external variable.
4203         (do_suppress): Use it.
4204         * src/roff/troff/node.h (suppress_node::image_id): New member.
4205         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
4206         (suppress_node::suppress_node): Initialize `image_id' member.
4207         (suppress_node::same): Handle `image_id' also.
4208         (suppress_node::copy): Updated.
4209         (last_image_id): New global variable.
4210         (suppress_node::tprint): Use it.
4212         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
4213         HTML-IMAGE-END.
4214         * tmac/pspic.mac (PSPIC): Fix html support.
4215         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
4216         * tmac/www.tmac (www-image-template): Set up.
4217         (HTMLINDEX): Renamed to...
4218         (HX): This.
4219         (BODYCOLOR): Renamed to...
4220         (BCL): This.
4221         (BACKGROUND): Renamed to...
4222         (BGIMG): This.
4223         (URL): Change order of parameters for consistency.
4224         (MAILTO): Renamed to...
4225         (MTO): This.
4226         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
4227         (IMG, PIMG, MPIMG): This.
4228         (HTML-H-BEGIN, HTML-H-END): Renamed to...
4229         (HnS, HnE): This.
4230         (LINKS): Renamed to...
4231         (LK): This.
4232         (LINE): Renamed to...
4233         (HR): This.
4234         (NO-AUTO-RULE): Renamed to...
4235         (NHR): This.
4236         (HTML-TL): Renamed to...
4237         (HTL): This.
4238         (UL-BEGIN, UL-END): Renamed to...
4239         (ULS, ULE): This.
4240         (DROPCAP): Renamed to...
4241         (DC): This.
4242         (TS, TE, EQ, EN): Provide default definitions.
4243         (www-make-unique-name): Updated.
4244         (HTML-IMAGE-INLINE): Fix typo.
4245         * tmac/groff_www.man: Updated.
4247         * doc/Makefile (homepage.html): Add option -r to grohtml.
4248         Use shortened image name.
4249         * doc/groff.texinfo: Updated info on grohtml strings and macros.
4250         * doc/homepage.ms: Updated and extended.
4252 2002-02-14  Werner LEMBERG  <wl@gnu.org>
4254         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
4256         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
4257         SGR_BACK_DEFAULT_COLOR): Replaced with ...
4258         (tty_printer::put_color): Use it.
4259         (ttr_printer::end_page): Simplify.
4261 2002-02-13  Werner LEMBERG  <wl@gnu.org>
4263         * tmac/groff_tmac.man: Moved to...
4264         * man/groff_tmac.man: This place.
4265         * tmac/Makefile.sub, man/Makefile.sub: Updated.
4267 2002-02-12  Werner LEMBERG  <wl@gnu.org>
4269         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
4270         $(COMPILE.c) to not include groff's assert.h.
4272         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
4273         variable.
4274         * NEWS, src/drivers/grotty/grotty.man: Document it.
4276 2002-02-11  Werner LEMBERG  <wl@gnu.org>
4278         * src/libs/snprintf/snprintf.c: Updated to latest version
4279         (2002-02-11).
4281         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
4282         test whether there is `.]' also.
4283         Don't check for spaces after `.['.
4284         * src/roff/grog/grog.sh: Do the same.
4286 2002-02-10  Werner LEMBERG  <wl@gnu.org>
4288         Illegal -> Invalid.
4290         * src/libs/libgroff/illegal.cc: Renamed to ...
4291         * src/libs/libgroff/invalid.cc: This.
4292         (illegal_char_table): Renamed to ...
4293         (invalid_char_table): This.
4294         * src/libs/libgroff/Makefile.sub: Updated.
4295         * win32-diffs: Updated.
4297         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
4298         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
4299         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
4300         font::load), src/preproc/eqn/main.cc (read_line, main),
4301         src/preproc/eqn/lex.cc (file_input::read_line),
4302         src/preproc/pic/lex.cc (file_input::read_line,
4303         simple_file_input::get, simple_file_input::peek),
4304         src/preproc/pic/main.cc (top_input::get, top_input::peek),
4305         src/preproc/pic/pic.man, src/preproc/refer/main.cc
4306         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
4307         do_bib), src/preproc/tbl/main.cc (table_input::get),
4308         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
4309         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
4310         do_zero_width, read_request, encode_char, ps_get_line,
4311         transparent_file, get_char_for_escape_name, transparent_translate,
4312         asciify, input_char_description, read_string, set_string),
4313         src/roff/troff/env.cc (environment::add_html_tag),
4314         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
4316         * src/include/lib.h: Updated.
4318         * src/preproc/eqn/eqn.cc: Removed.
4320         * NEWS: Updated.
4322         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
4324 2002-02-09  Werner LEMBERG  <wl@gnu.org>
4326         * doc/gnu.xpm: New image.
4327         * doc/Makefile (DOCS): Add homepage.ps.
4328         Add rules for converting xpm->png and xpm->eps.
4329         Use `gnu.{xpm,eps}' as image names.
4330         * doc/homepage.ms: Updated.
4332 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
4334         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
4335         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
4336         Remove calls to `B1' and `B2'
4337         (PNG-IMAGE): New macro for inclusion of images in PNG format.
4338         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
4339         auxiliary variables for MARGIN-PNG-IMAGE.
4340         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
4341         auxiliary macros for MARGIN-PNG-IMAGE.
4342         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
4343         the margin.
4344         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
4345         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
4346         (DROPCAP): New macro to produce dropcap characters.
4347         (www-do-image): Renamed back to...
4348         (HTML-DO-IMAGE): This.
4349         Updated all callers.
4351         * doc/Makefile (gnubw.eps): Updated.
4352         * doc/homepage.ms: Updated.
4354 2002-02-08  Werner LEMBERG  <wl@gnu.org>
4356         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
4357         Added `linethick' to table in section `Style Variables'.
4359 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
4361         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
4363 2002-02-07  Werner LEMBERG  <wl@gnu.org>
4365         Adding options -C (compatibility mode) and -c (grotty's old output
4366         scheme) to nroff.
4368         * src/roff/nroff/nroff.sh: Implement it.
4369         Remove `-Wall'.
4370         * NEWS, src/roff/nroff/nroff.man: Updated.
4372         * PROBLEMS: Document bison 1.32 bug.
4374         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
4376         * src/roff/troff/node.cc (make_tfont): Define it earlier.
4377         * src/roff/troff/div.h: Add prototype for `end_diversions'.
4378         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
4379         * src/roff/troff/env.h: Add prototype for `title'.
4381         Adding EBCDIC support to grotty.
4383         * src/devices/grotty/tty.cc (CSI): New macro.
4384         (SGR_*, tty_printer::put_color): Use it.
4386 2002-02-06  Werner LEMBERG  <wl@gnu.org>
4388         Implementing color support in grotty.  The new switch -c activates
4389         the old drawing scheme, disabling color at the same time.  The new
4390         switch `-i' selects italic instead of underlining (SGR only).
4392         * src/devices/grotty/tty.cc (putstring): New define instead of
4393         `fputs'.  Updated all callers.
4394         (old_drawing_scheme): New global variable.
4395         (COLOR_CHANGE): New enum value.
4396         (SGR_*): New defines containing color handling escape sequences.
4397         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
4398         (glyph): New members `back_color_idx' and `fore_color_idx'.
4399         (glyph::order): Add COLOR_CHANGE.
4400         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
4401         `is_underline', `is_bold', `cu_flag', `tty_colors'.
4402         New methods `make_underline', `make_bold', `color_to_idx',
4403         `change_color', `put_color'.
4404         (cu_flag): Moved into `tty_printer' class.
4405         (tty_printer::tty_printer): Initialize colors.
4406         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
4407         tty_printer::draw, tty_printer::end_page): Handle colors also.
4408         (main): Add options `-c' and `-i'.
4409         (usage): Updated.
4410         * NEWS, src/devices/grotty/grotty.man: Updated.
4412         * src/include/errarg.h (errarg): Add support for `unsigned int'.
4413         * src/libs/libgroff/errarg.c: Implement it.
4415         * src/include/printer.h (printer): Add `change_color' method
4416         (currently used by grotty only).
4417         * src/libs/libdriver/printer.cc: Implement it.
4418         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
4419         call to `pr->change_color'.
4421         * src/roff/troff/node.cc (troff_output_file::fill_color,
4422         troff_output_file::glyph_color): Call `do_motion'.
4424         * tmac/tty.tmac: Add color definitions.
4426         * src/roff/groff/groff.man: Minor fixes.
4428 2002-02-05  Bernd Warken  <bwarken@mayn.de>
4430         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
4431         it.  This is a preparation for future changes.
4433 2002-02-05  Werner LEMBERG  <wl@gnu.org>
4435         * src/roff/troff/input.cc (process_input_stack): Fix the case
4436         where leading spaces are followed by \f or \s; previously, an
4437         incorrect space width has been used.
4439         * doc/roff.man (quoted_char): Fix argument.
4440         (comment): Define string.
4442 2002-02-04  Larry Kollar  <kollar@alltel.net>
4444         * doc/groff.texinfo: More fixes.
4446 2002-02-04  Werner LEMBERG  <wl@gnu.org>
4448         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
4449         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
4450         `restore_compatibility' before `output_string' -- the LINE_STRING
4451         register now already contains proper switches from and to
4452         compatibility mode.
4454         * man/groff_char.man: Add Euro symbol.
4455         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
4456         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
4457         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
4458         Other minor fixes.
4460         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
4461         texinfo->pdf.
4462         (.texinfo.html): Add support for texinfo->html.
4464 2002-02-03  Werner LEMBERG  <wl@gnu.org>
4466         Added three new requests `ds1', `as1', and `ami'.  The former two
4467         are equivalent to `ds' and `as' with the difference that
4468         compatibility mode is saved on entry, switched off during string
4469         expansion, and restored on exit.  The latter is the pendant to `dei'
4470         for `am'.
4472         (do_define_string): Use `define_mode' and `calling mode'.
4473         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
4474         end of string, respectively.
4475         (define_string, append_string): Use `calling_mode'.
4476         (define_nocomp_string, append_nocomp_string,
4477         define_string_indirect): New functions.
4478         (init_input_requests): Updated.
4479         * NEWS, man/groff_diff.man, man/groff.man: Document it.
4481         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
4482         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
4483         mm macro package accesses this string register directly.
4484         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
4486         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
4487         compatibility mode.
4489 2002-02-02  Larry Kollar  <kollar@alltel.net>
4491         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
4493 2002-01-31  Werner LEMBERG  <wl@gnu.org>
4495         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
4497 2002-01-31  Bernd Warken  <bwarken@mayn.de>
4499         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
4500         * man/groff_out.man: Revised and updated.
4502 2002-01-30  Bernd Warken  <bwarken@mayn.de>
4504         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
4505         out the unused `{' and `}' commands.  Undefined by default.
4506         (IntArray): Make `data' private.
4507         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
4508         new methods instead.
4509         (skip_line_D, skip_to_end_of_line): New functions.
4510         (get_D_fixed_args): Use `skip_line_D'.
4511         Changed to handle dummy odd arguments by ...
4512         (get_D_fixed_args_odd_dummy): This new function.
4513         (get_D_variable_args): Split some code into ...
4514         (get_possibly_integer_args): This new function.
4515         (send_draw): Use more `const'.
4516         (delete_current_env): New function.
4517         (position_to_end_of_args): Use `size_t'.
4518         Updated.
4519         (send_draw): Updated.
4520         (parse_D_command): Handle `c', `C', and `t' better.
4521         Updated.
4522         (do_file): Updated.
4524 2002-01-29  Werner LEMBERG  <wl@gnu.org>
4526         * NEWS: Revised.
4527         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
4528         @Def...ListEnd which replaces @Def...x.  This is necessary to get
4529         proper HTML output -- see the comment in the file for more
4530         information.
4531         Updated all calls.
4533 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
4535         Fixes to make color changes of 2002-01-21 work with grohtml.
4537         * src/devices/grohtml/post-html.cc (style): Updated.
4538         (html_printer): Remove unused methods.
4539         (html_printer::do_font, html_printer::draw, html_printer::set_char,
4540         html_printer::special): Updated.
4541         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
4542         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
4543         Added some debugging code.
4544         (html_text::start_tag): Updated.
4545         (html_text::do_push): New method.
4546         (html_text::push_para): Call it.
4547         Add method for handling color.
4548         (html_text::do_color): Updated.
4549         (html_text::shutdown): Handle color.
4550         * src/devices/grohtml/html-text.h (tag_definition): New member
4551         `col'.
4552         Updated.
4554 2002-01-28  Werner LEMBERG  <wl@gnu.org>
4556         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
4558 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
4560         Add two switches -a and -g to control the antialiasing bits for
4561         text and graphics, respectively.
4563         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
4564         `-g'.
4565         * src/devices/grohtml/grohtml.man: Document them.
4566         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
4567         New macros.
4568         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
4569         (setupAntiAlias): New function.
4570         (createAllPages): Updated.
4571         (scanArguments): Handle `-a' and `-g'.
4572         (main): Call `setupAntiAlias'.
4573         * NEWS: Updated.
4575 2002-01-27  Werner LEMBERG  <wl@gnu.org>
4577         * doc/groff.texinfo (Def*): Call index function after deffn.
4579         * tmac/html.tmac: Call `nroff' request.
4581 2002-01-26  Larry Kollar  <kollar@alltel.net>
4583         * tmac/groff_ms.man: Add some omissions.
4585 2002-01-25  Larry Kollar  <kollar@alltel.net>
4587         * tmac/groff_ms.man: Typographical improvements.
4589 2002-01-25  Werner LEMBERG  <wl@gnu.org>
4591         * doc/groff.texinfo: Updated version and copyright.
4592         * src/devices/grops/grops.man: Updated.
4594         * tmac/groff_tmac.man: Fix `ig' macro.
4596         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
4597         nroff mode.
4598         Use `.ne' unconditionally everywhere.
4599         (TS): Only insert some vertical space.  Doing a page break is no
4600         longer necessary due to the redefinition of the `ne' request.
4602         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
4603         warning for unknown subcommands but parse and pass them to the
4604         device driver.
4606 2002-01-24  Werner LEMBERG  <wl@gnu.org>
4608         * tmac/groff_www.man, NEWS: Fix typos.
4610 2002-01-21  Werner LEMBERG  <wl@gnu.org>
4612         Complete revision of color support:
4614           Adapt programs to the new libdriver/input.cc.
4616           Color spaces are no longer converted to RGB but transferred as-is
4617           in the troff intermediate output format.
4619           Handle default color gracefully.  troff now supports a `default'
4620           color (which can't be changed).
4622           grops will now use the proper color space functions if available.
4624           Update pic.
4626         Note that currently grohtml doesn't handle colors properly.  This
4627         has to be fixed.
4629         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
4630         (ui_to_a): New function.
4631         * src/include/lib.h: Updated.
4633         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
4634         (color): Simplified; removed all `double' members and methods.
4635         A new array `components' now holds the color parameters.
4636         (color::is_default, color::get_components): New methods.
4637         (color::operator==, color:operator!=): New.
4638         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
4639         to make access to the `components' array more comprehensible.
4640         * src/libs/libgroff/color.cc: Implement new color support.
4641         (atoh): Small fixes.
4642         (color::read_encoding): Simplified for new troff intermediate color
4643         output format.
4644         (default_color): New global variable.
4646         * src/roff/troff/input.cc (default_symbol): New global variable.
4647         (lookup_color): Use it.
4648         (default_black): Removed.
4649         (do_glyph_color, do_fill_color): Simplified.
4650         (define_color): Handle default color.
4651         Improve warnings.
4652         (do_if_request): Handle default color.
4653         * src/roff/troff/env.cc (environment::environment): Initialize
4654         colors with `default_color'.
4655         * src/roff/troff/node.cc (troff_output_file::put): Add method
4656         for `unsigned int'.
4657         (troff_output_file::hex): Removed.
4658         (troff_output_file::fill_color, troff_output_file::glyph_color):
4659         Updated to include/color.h and libdriver/input.cc.
4661         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
4662         fill color properly (identically to the outline color).  \D'f...'
4663         doesn't work any more.
4664         All function calls to it updated.
4666         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
4667         Updated.
4668         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
4669         Updated.
4671         * src/devices/grops/ps.cc (ps_output::put_color): New method.
4672         (ps_printer::sbuf_color): Make a real member instead of pointer.
4673         (ps_printer::fill_color, ps_printer::output_color): Removed.
4674         (ps_printer::ps_printer): Updated.
4675         (ps_printer::set_char): Ditto.
4676         (ps_printer::set_color): Use various color schemes.
4677         Use `put_color' method.
4678         (ps_printer::flush_sbuf): Don't set color.
4679         (ps_printer::fill_path): Take `environment' as parameter.
4680         Simplify color handling.
4681         (ps_printer::set_line_thickness): Renamed to ...
4682         (ps_printer::set_line_thickness_and_color): This (and updated).
4683         (ps_printer::set_color): Change second parameter from `complete'
4684         to `fill' which better describes what it does.
4685         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
4686         and text in the right order.
4687         Updated.
4688         Remove branches for `f' and `F'; this is handled by
4689         libdriver/input.cc.
4690         * src/devices/grops/ps.h: Updated.
4691         * font/devps/prologue (FL): Redefined.
4692         ({F,C}r,k,g: New color functions (with and without filling).
4694         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
4695         * man/groff_diff.man, man/groff.man, man/groff_out.man,
4696         doc/groff.texinfo, NEWS: Updated.
4698 2002-01-20  Bernd Warken  <bwarken@mayn.de>
4700         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
4701         in this file for what has been changed.
4703 2002-01-19  Werner LEMBERG  <wl@gnu.org>
4705         * test-groff: Fix GROFF_FONT_PATH.
4706         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
4707         is read before .TH or .Dd is parsed.
4709 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
4711         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
4712         quadrant boundaries.
4714 2002-01-18  Werner LEMBERG  <wl@gnu.org>
4716         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
4717         applied last patch.
4719 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
4721         * tmac/doc.common: Initialize %I register for the %I macro to
4722         avoid (harmless) warning.
4723         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
4724         when in the SYNOPSIS section.
4726 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
4728         * src/preproc/pic/lex.cc (get_token): Fix typo.
4730 2002-01-17  Werner LEMBERG  <wl@gnu.org>
4732         * devices/grops/ps.cc: Fix incorrectly applied last patch.
4734 2002-01-17  Larry Kollar  <kollar@alltel.net>
4736         * tmac/groff_ms.man: Completely rewritten.
4738 2002-01-16  Werner LEMBERG  <wl@gnu.org>
4740         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
4742 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
4744         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
4745         fill colors.
4746         (ps_printer::draw): Ditto.
4748 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
4750         * tmac/groff_mdoc.man: Minor fixes.
4752 2002-01-13  Werner LEMBERG  <wl@gnu.org>
4754         * man/groff_out.man: Some fixes.
4756 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
4758         * doc/pic.ms: Fix typos.
4760 2002-01-12  Werner LEMBERG  <wl@gnu.org>
4762         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
4764 2002-01-10  Werner LEMBERG  <wl@gnu.org>
4766         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
4767         symbols.
4768         * NEWS: Updated.
4770 2002-01-09  Bernd Warken  <bwarken@mayn.de>
4772         * man/groff_out.man: Revised.
4773         * man/roff.man: Minor fixes.
4774         * src/roff/troff/troff.man: Some reordering.
4776 2002-01-09  Werner LEMBERG  <wl@gnu.org>
4778         * tmac/an-old.tmac: Add dummy macros for equation support.
4780 2002-01-07  Werner LEMBERG  <wl@gnu.org>
4782         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
4784         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
4785         man pages.
4786         * tmac/groff_man.man: Small improvements.
4788 2002-01-07  Bernd Warken  <bwarken@mayn.de>
4790         * man/groff_diff.man: Revised.
4792 2002-01-06  Werner LEMBERG  <wl@gnu.org>
4794         * tmac/www.tmac: Remove extraneous backslash.
4796 2002-01-06  Bernd Warken  <bwarken@mayn.de>
4798         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
4800 2002-01-05  Werner LEMBERG  <wl@gnu.org>
4802         Integrated groffer, contributed by Bernd Warken.
4804         * contrib/groffer/*: New.       
4805         * Makefile.in, NEWS: Updated.
4807 2002-01-04  Werner LEMBERG  <wl@gnu.org>
4809         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
4810         registers defined in macro packages.
4811         Revising the ms part.
4813 2002-01-04  Larry Kollar  <kollar@alltel.net>
4815         * doc/groff.texinfo: Add documentation for ms macros.
4817 2002-01-02  Werner LEMBERG  <wl@gnu.org>
4819         First step in adding PS support for the Euro symbol.  `eu' is the
4820         official Euro logo, `Eu' is a font-specific glyph variant.
4822         * font/devps/text.enc: Add `Euro' at position 9.
4823         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
4824         * font/devps/symbolmap: Regenerated.
4826         * NEWS: Updated.
4828 2002-01-02  Bernd Warken  <bwarken@mayn.de>
4830         * man/roff.man: Revised.
4832 2002-01-01  Bernd Warken  <bwarken@mayn.de>
4834         * src/roff/groff/groff.man: Completely rewritten.
4836 2001-12-31  Werner LEMBERG  <wl@gnu.org>
4838         * doc/Makefile: Updated.
4840 2001-12-30  Werner LEMBERG  <wl@gnu.org>
4842         * tmac/www.tmac: Make all names of internal macros/registers/strings
4843         lowercase, and prepend `www-'.
4844         Other minor changes.
4845         * src/roff/troff/troff.man: Add preprocessor string at BOF.
4847 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
4849         Implement option `-b' in grohtml to set the HTML background colour.
4851         * src/devices/grohtml/post-html.cc (default_background): New global
4852         variable.
4853         (html_printer::html_printer): Initialize `background' to
4854         `default_background'.
4855         (main): Implement option `-b'.
4856         (usage): Updated.
4857         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
4858         of `-b' option.
4859         * src/devices/grohtml/grohtml.man: Updated.
4860         * doc/Makefile (.ms.html): Use `-b'.
4861         * tmac/html.tmac: Don't set background color.
4863         Add new grohtml tag `.html-tl'.
4865         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
4866         member variable.
4867         (title_desc::title_desc): Updated.
4868         (html_printer::troff_tag): Handle `.html-tl'.
4869         (html_printer::write_title): Use `with_h1'.
4870         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
4871         (HTML-TL): New macro.
4873         Add support for unordered lists in HTML.
4875         * tmac/www.tmac (www-level): New auxiliary register.
4876         (www-level1, www-level2, www-level3): New auxiliary strings.
4877         (www-push-level, www-pop-level): New auxiliary macros
4878         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
4880         Miscellaneous.
4882         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
4883         (DEFAULT_VERTICAL_OFFSET): Removed.
4884         (IMAGE_BOARDER_PIXELS): Set to 0.
4885         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
4886         (vertical_offset): Initialize with 0.
4887         (gsPaper): New global variable.
4888         (get_resolution): Scan for and return unsigned int.
4889         (get_papersize): New function to get paper length from devps/DESC.
4890         (determine_vertical_offset): New function.
4891         (createAllPages): Produce gray-level images and use proper page
4892         length.
4893         (createImage): Use `-quiet' option of pnmcrop.
4894         (addZ): Fix passing of `-Z'.
4895         (scanArguments): Fix handling of `-o'.
4896         (main): Call `determine_vertical_offset'.
4897         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
4898         code for `l'.
4900         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
4901         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
4902         glyph descenders properly.
4904         * doc/homepage.ms: Include `gnubw.eps'.
4905         * doc/Makefile (gnubw.eps): New rule.
4906         (homepage.html): Depend on `gnubw.eps'.
4908 2001-12-25  Werner LEMBERG  <wl@gnu.org>
4910         * src/roff/troff/input.cc (default_black): Fix return value.
4912 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
4914         * tmac/doc-common (Dt): Change output of architecture strings.
4915         Do some syntax cleanup.
4916         * tmac/groff_mdoc.man: Updated.
4918 2001-12-23  Werner LEMBERG  <wl@gnu.org>
4920         Adding an `itc' request (input line trap accepting \c).
4922         * src/roff/troff/env.h (environment): New member
4923         `continued_input_trap'.
4924         Make `do_input_trap' a friend function instead of `input_trap'.
4925         * src/roff/troff/env.cc (environment::environment,
4926         environment::copy): Updated.
4927         (environment::newline): Implement it.
4928         (do_input_trap): New function.
4929         (input_trap): Call `do_input_trap'.
4930         (input_trap_continued): New function.
4931         (init_env_requests): Updated.
4932         * src/roff/troff/TODO: Updated.
4934         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
4935         `.it'.
4937         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
4939 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
4941         * tmac/doc-common, tmac/doc-syms: Small updates.
4943 2001-12-22  Colin Watson  <cjwatson@debian.org>
4945         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
4947 2001-12-22  Bernd Warken  <bwarken@mayn.de>
4949         * MANIFEST: New file.
4951 2001-12-22  Werner LEMBERG  <wl@gnu.org>
4953         * src/preproc/grn/grn.man: Updated.
4955 2001-12-22  Solar Designer  <solar@openwall.com>
4957         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
4958         (DBRead): Use it.
4960 2001-12-19  Werner LEMBERG  <wl@gnu.org>
4962         Implement a fallback character request `.fchar'.
4964         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
4965         (is_fallback): New inline function.
4966         * src/roff/troff/input.cc (do_define_character): New function.
4967         (define_character): Call `do_define_character'.
4968         (define_fallback_character): New function.
4969         (init_input_requests): Add `fchar'.
4970         (charinfo::charinfo): Updated.
4971         (charinfo::set_macro): New argument to set `fallback' flag.
4972         * src/roff/troff/node.cc (make_glyph_node, make_node,
4973         node::add_char): Check `fallback' flag.
4974         * NEWS, man/groff_diff.man, man/groff_man: Updated.
4976 2001-12-16  Werner LEMBERG  <wl@gnu.org>
4978         * groff.texinfo: Document exact search algorithm for glyphs.
4980 2001-12-15  Werner LEMBERG  <wl@gnu.org>
4982         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
4983         the left side of $(MANPAGES) rule to make it always non-empty.
4985 2001-12-14  Werner LEMBERG  <wl@gnu.org>
4987         * src/roff/troff/input.cc (default_black): Define default color
4988         `black' if not yet defined.
4990 2001-12-13  Werner LEMBERG  <wl@gnu.org>
4992         Implement new string-valued register `.fn' to return the current
4993         real (internal) font name.
4995         * env.cc (environment::get_font_name_string): New function.
4996         (init_env_requests): Add `.fn' register.
4997         * env.h (environment): Updated.
4998         * node.cc (font_info): Make `get_font_name' a friend.
4999         (get_font_name): New function.
5000         * node.h: Updated.
5002         * man/groff_diff.man, man/groff.man, NEWS: Updated.
5004 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5006         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
5008 2001-12-12  Werner LEMBERG  <wl@gnu.org>
5010         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
5012 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
5014         * man/groff_diff.man: Adding documentation for \O.
5016 2001-12-10  Werner LEMBERG  <wl@gnu.org>
5018         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
5019         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
5021 2001-12-09  Werner LEMBERG  <wl@gnu.org>
5023         * man/roff.man: Revised.
5024         * src/roff/groff/groff.man: Replace man page references with a
5025         pointer to roff.man.
5027 2001-12-09  Bernd Warken  <bwarken@mayn.de>
5029         * man/roff.man: Completely rewritten.
5031 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5033         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
5035 2001-12-05  Werner LEMBERG  <wl@gnu.org>
5037         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
5038         longer used.
5039         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
5040         order of initializers.
5041         * NEWS: Updated.
5043 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
5045         * doc/groff.texinfo: Fix documentation of \O.
5047         * src/devices/grohtml/html-text.cc (html_text::do_indent,
5048         html_text::do_table, html_text::do_emittext, html_text::do_para):
5049         Use `const' for first argument.
5050         (html_text::do_table): Use cast.
5051         * src/devices/grohtml/html-text.h: Updated.
5052         * src/devices/grohtml/output.cc (simple_output::put_string): Add
5053         method for `const string &s'.
5054         * src/devices/grohtml/html.h: Updated.
5055         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
5056         (ANCHOR_TEMPLATE): Modified.
5057         (manufacture_headings): New global variable to handle `-h' option.
5058         (is_subsection): Removed.
5059         (char_buffer::add_string): Add `const' to first argument.
5060         Protect against invalid string argument.
5061         Add method for `const string &s'.
5062         (text_glob): Completely redesigned.
5063         (page): Use `const' for strings and remove string length variable.
5064         (page::add_html): Removed.
5065         (page::add_end_encode): New member function.
5066         (to_unicode): Moved upwards.
5067         (title_desc, header_desc): Updated.
5068         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
5069         definition.
5070         (html_printer::is_bold, html_printer::make_bold): New member
5071         functions.
5072         (html_printer::end_of_line): Updated.
5073         (generate_img_src, html_printer::do_auto_image,
5074         html_printer::do_title, html_printer::write_header,
5075         html_printer::determine_header_level, html_printer::do_heading,
5076         html_printer::do_linelength, html_printer::do_pageoffset,
5077         html_printer::do_indentation, html_printer::do_tempindent,
5078         html_printer::do_indentedparagraph, html_printer::do_break,
5079         html_printer::flush_sbuf, get_html_translation,
5080         html_printer::begin_page, html_printer::special): Rewritten to get
5081         rid of static string length limit.
5082         (html_printer::troff_tag): Added `.no-auto-rule'.
5083         (html_printer::flush_globs): Small fix.
5084         (html_printer::determine_space): Don't compute `space_width'.
5085         (html_printer::translate_to_html): Renamed to ...
5086         (html_printer::emit_html): This (with updates).
5087         (html_printer::write_header): Implement `-h' option.
5088         (html_printer::draw): Remove commented-out code.  Handle `F'
5089         command.
5090         (html_printer::add_char_to_sbuf): Removed.
5091         (html_printer::add_to_sbuf): Rewritten.
5092         (html_printer::sbuf_continuation): Fixed.
5093         (html_printer::seen_backwards_escape, reverse,
5094         html_printer::remove_last_char_from_sbuf): Removed.
5095         (char_translate_to_html, str_translate_to_html): Removed.
5096         (html_printer::overstrike): New function member.
5097         (html_printer::set_char): Use it.
5098         (html_printer::do_body): New function member.
5099         (html_printer::~html_printer): Use it.
5100         (main): Handle `-h' option.
5101         (usage): Updated.
5102         * src/devices/grohtml/grohtml.man: Document -h switch.
5104         * src/preproc/html/pre-html.cc: Include searchpath.h
5105         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
5106         (get_resolution): New function.
5107         (checkImageDir): Use `0777' permissions in mkdir()
5108         (write_start_image): Rewritten to use `\O[5...]'.
5109         (createImage, generateImages): Updated.
5110         (main): Handle `F' and `h' options.
5111         Use `get_resolution'.
5113         * src/roff/troff/input.cc (begin, end, image): Removed.
5114         (do_suppress): Take parameter.
5115         Handle modified syntax of `\O'.
5116         (token::next): Updated.
5117         (init_markup_requests): Removed.
5118         (main): Updated.
5120         * src/roff/troff/div.h: Add declaration for begin_page().
5122         * tmac/color-html.tmac: Removed.  Contents moved to...
5123         * tmac/html.tmac: Here.  Set background color.
5124         * tmac/color.tmac: Removed.  Contents moved to...
5125         * tmac/ps.tmac: Here.
5126         * tmac/www.tmac: Remove the title command when generating images
5127         for html.
5128         (NO_AUTO_RULE): New macro.
5129         (HTML_DO_IMAGE): Use revised `\O' escapes.
5130         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
5132 2001-12-02  Werner LEMBERG  <wl@gnu.org>
5134         * tmac/groff_mdoc.man: Fix typo.
5136 2001-12-01  Colin Watson  <cjwatson@debian.org>
5138         * man/roff.man: Fix typo.
5140 2001-11-29  Werner LEMBERG  <wl@gnu.org>
5142         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
5143         stdlib.h.
5145         * src/roff/troff/input.cc (read_draw_node): Emit error message if
5146         more than one argument to \D'f ...'.
5148         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
5150 2001-11-28  Werner LEMBERG  <wl@gnu.org>
5152         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
5153         loaded only once.
5155         * tmac/groff_man.man: Minor cosmetic fix.
5157 2001-11-27  Werner LEMBERG  <wl@gnu.org>
5159         * src/roff/groff/groff.man, tmac/groff_tmac.man,
5160         tmac/groff_www.man: s/mwww/www/.
5162 2001-11-26  Werner LEMBERG  <wl@gnu.org>
5164         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
5165         * configure: Regenerated.
5166         * win32-diffs: Updated.
5168         * tmac/groff_mwww.tmac: Renamed to ...
5169         * tmac/groff_www.tmac: This.
5170         * tmac/mwww.tmac: Removed.
5171         * NEWS, tmac/Makefile.sub: Updated.
5173 2001-11-21  Werner LEMBERG  <wl@gnu.org>
5175         * doc/groff.texinfo: Improve documentation of the `\v' escape.
5176         Fix explanation of `\D' and `rt'.
5178 2001-11-20  Werner LEMBERG  <wl@gnu.org>
5180         * tmac/an-old.tmac (an-header): Set header length equal to page
5181         width.
5182         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
5183         minor fixes.
5184         * NEWS: Small fix.
5186 2001-11-19  Werner LEMBERG  <wl@gnu.org>
5188         * NEWS, man/Makefile.sub: Updated.
5190 2001-11-19  Bernd Warken  <bwarken@mayn.de>
5192         * man/ditroff.man: New file.
5194 2001-11-17  Werner LEMBERG  <wl@gnu.org>
5196         * man/groff_differences.man: Renamed to ...
5197         * man/groff_diff.man: This.  Updated.
5198         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
5200         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
5201         * src/preproc/html/pushback.cc: This.  Updated.
5202         * src/preproc/html/pushbackbuffer.h: Renamed to ...
5203         * src/preproc/html/pushback.h: This.
5204         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
5205         Updated.
5207         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
5208         * src/libs/libgroff/htmlhint.cc: This.
5209         * src/libs/libgroff/Makefile.sub: Updated.
5211         * tmac/an-old.tmac (an-end): Fix page length.
5213 2001-11-16  Werner LEMBERG  <wl@gnu.org>
5215         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
5216         * man/Makefile.sub: Include groff_differences.man.
5217         * VERSION: Set to 1.18.
5218         * REVISION: Set to 0.
5220 2001-11-16  Bernd Warken  <bwarken@mayn.de>
5222         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
5223         the second dot (or ending macro name) to end a macro.
5224         * doc/groff.texinfo: Doc fix.
5226 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
5228         * tmac/doc-common (doc-header): Handle very long document titles
5229         better.
5231 2001-11-16  Werner LEMBERG  <wl@gnu.org>
5233         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
5235 2001-11-15  Werner LEMBERG  <wl@gnu.org>
5237         * src/roff/troff/troff.man: Revised and split into troff.man and...
5238         * man/groff_differences.man: New file.
5239         * NEWS: Updated.
5241 2001-11-13  Werner LEMBERG  <wl@gnu.org>
5243         * tmac/an-old.tmac (TS, TE): New macros for table support.
5245 2001-11-12  Werner LEMBERG  <wl@gnu.org>
5247         * src/include/lib.h: Provide a fix for emx to not include
5248         groff-getopt.h.
5250 2001-10-27  Werner LEMBERG  <wl@gnu.org>
5252         * src/roff/troff/input.cc (substring_macro): Fix computation of
5253         boundary values.
5255 2001-10-20  Werner LEMBERG  <wl@gnu.org>
5257         Undo change from 2001-08-28.
5259         * src/roff/troff/input.cc (have_input): New global variable.
5260         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
5261         in compatibility mode.
5262         (process_input_stack): Use it.
5264 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
5266         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
5267         being handled as end-of-sentence characters,
5269 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
5271         * src/roff/troff/input.cc (file_iterator): New members
5272         `suppress_newline_flag' and `seen_escape'.
5273         (file_iterator::next_file): Updated.
5274         (file_iterator::fill): Use it.
5275         (string_iterator): New member `suppress_newline_flag'.
5276         (string_iterator::fill): Set it.
5277         (get_color_element): Use MAX_COLOR_VAL.
5278         * src/roff/troff/env.cc (environment): Remove `need_eol'.
5279         (no_fill): Don't set `env->ignore_next_eol'.
5280         (environment::newline): Handle `eol' tag properly.
5281         Emit `eol.ce'.
5282         (environment::add_html_tag): Set `env->ignore_next_eol'.
5283         Don't handle `.ce'.
5284         * src/roff/troff/env.h (environment): Updated.
5286         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
5287         member function.
5288         (html_printer::outstanding_eol): New member function.
5289         (html_printer::do_title): Use new functions.
5290         (html_printer::troff_tag): Test `id_eol_ce'.
5292 2001-10-10  Werner LEMBERG  <wl@gnu.org>
5294         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
5295         files work with -C also.
5297 2001-10-05  Werner LEMBERG  <wl@gnu.org>
5299         * doc/pic.ms: Minor fix.
5300         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
5301         as a valid command line switch.
5302         * src/devices/grohtml/post-html.cc (main): Ditto.
5303         (usage): Updated.
5304         * src/devices/grohtml/grohtml.man: Updated.
5305         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
5307 2001-10-04  Werner LEMBERG  <wl@gnu.org>
5309         Implementing color support in troff, pic, grops, and grohtml.  These
5310         changes are based on a major patch provided by Gaius Mulley
5311         <gaius@glam.ac.uk>.
5313         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
5314         definitions with both hex values and fractions.
5316         New escapes: \m and \M for drawing and background color,
5317         respectively.  This corresponds to the troff output commands `m'
5318         and `DF'.
5320         groff and troff accept command line switch `-c' to disable color
5321         output (which is automatically disabled in compatibility mode).
5323         New scaling indicator `f' for fractions (1f = 65536u).
5325         New conditional operator `m' to test for defined colors with `if'
5326         and `ie'.
5328         New keywords `color' (or `colour', `colored', `coloured'), `outline'
5329         (or `outlined'), and `shaded' added to pic.
5331         * src/include/color.h: New file.
5332         * src/include/driver.h: Include it.
5333         * src/include/printer.h: Include color.h.
5334         (environment): New members `col' and `fill'.
5335         (printer): Remove `adjust_arc_center' member function.
5336         * src/include/Makefile.sub: Updated.
5338         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
5339         `env.fill'.
5340         Handle `m' and `DF' troff commands.
5341         * src/libs/libgroff/color.cc: New file.
5342         * src/libs/libgroff/Makefile.sub: Updated.
5344         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
5345         (stop): Removed.
5346         (createImage): Fix computation of `y2'.
5347         Use `pnmcrop' also.
5348         (buffer::write_file_html): Remove calls to `stop'.
5350         * src/preproc/pic/common.h (common_output): New abstract function
5351         members `set_color', `reset_color', `get_last_filled', and
5352         `get_outline_color'.
5353         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
5354         (object_spec): Add members `shaded' and `outlined'.
5355         * src/preproc/pic/output.h (output): `command' is now abstract.
5356         New function members `set_color', `reset_color', `get_last_filled',
5357         and `get_outline_color'.
5358         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
5359         `outline[d]', and `shaded'.
5360         * src/preproc/pic/object.cc (output::command): Removed.
5361         (output::set_location): Moved to output.h.
5362         (graphic_object): Add protected members `outline_color' and
5363         `color_fill'.
5364         Add member functions `set_outline_color', `get_outline_color', and
5365         `set_fill_color'.
5366         (closed_object): Add member function `set_fill_color'.
5367         Add member `color_fill'.
5368         (graphic_object::print_text): Use `out->set_color' and
5369         `out->reset_color'.
5370         (box_object::print, ellipse_object::print, circle_object::print,
5371         line_object::print, spline_object::print, arc_object::print): Ditto.
5372         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
5373         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
5374         `SHADED', making them `%left'.
5375         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
5376         * src/preproc/pic/tex.cc (tex_output): New dummy function members
5377         `set_color', `reset_color', `get_last_filled', and
5378         `get_outline_color'.
5379         * src/preproc/pic/troff.cc (simple_output): New abstract function
5380         members `set_color', `reset_color', and `get_last_filled'.
5381         (simple_output::polygon, simple_output::circle,
5382         simple_output::ellipse): Use `get_last_filled'.
5383         (troff_output): New members `last_filled' and `last_outlined'.
5384         New function members `set_color', `reset_color', `get_last_filled',
5385         and `get_outline_color'.
5386         (troff_output::finish_picture): Use `reset_color'.
5387         (troff_output::set_fill): Test `last_filled'.
5388         * src/preproc/pic/pic.man: Updated.
5390         * src/roff/groff/groff.cc (main): Implement `-c' option.
5391         (synopsis, help): Updated.
5392         src/roff/groff/groff.man: Updated.
5394         * src/roff/troff/troff.h: Include color.h.
5395         (warning_type): Add WARN_COLOR.
5396         * src/roff/troff/env.h (environment): New members
5397         `{cur,prev}_{glyph,fill}_color'.
5398         New member functions `get_{prev_,}{glyph,fill}_color'.
5399         * src/roff/troff/env.cc: Initialize and implement them.
5400         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
5401         Replace `NULL' with `0' everywhere for consistency.
5402         (lookup_color, default_black, do_glyph_color, do_fill_color,
5403         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
5404         define_color): New functions.
5405         (token::next): Implement \M and \m escapes.
5406         (do_if_request): Implement `m' operator.
5407         (usage): Updated.
5408         (main): Implement `-c' option.
5409         (init_markup_requests): Add `defcolor' request.
5410         (warning_table): Add `color' warning.
5411         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
5412         classes.
5413         * src/roff/troff/node.cc (troff_output_file): New members
5414         `current_{page,glyph}color'.  New member functions `put_hex',
5415         `glyph_color', and `fill_color'.
5416         (glyph_color_node::*, fill_color_node::*): Implement it.
5417         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
5418         (parse_term): Add support for `f'.
5419         * src/roff/troff/troff.man: Updated.
5421         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
5422         entry for `F'.
5423         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
5424         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
5426         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
5427         (tag_definition): Use `void *' for arg1.
5428         (html_text): New member functions `do_color' and `done_color'.
5429         Use `void *' for second parameter of `push_para' member function.
5430         New `push_para' member function with a single parameter.
5431         Use `char *' for parameter of `issue_table_begin' member funtion.
5432         New `issue_color_begin' member function.
5433         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
5434         COLOR_TAG.
5435         (html_text::issue_color_begin): New function.
5436         (html_text::issue_table_begin): Use `char *' for parameter.
5437         (html_text::start_tag, html_text::shutdown,
5438         html_text::check_emit_text): Updated.
5439         (html_text::push_para): Use `void *' for second parameter.
5440         Add same function with only one parameter.
5441         (html_text::do_*): Updated.
5442         (html_text::do_color, html_text::done_color): New functions.
5443         * src/devices/grohtml/post-html.cc (style): New member `col'.
5444         Mew member `style' with 6 parameters.
5445         (style::style, style::operator==): Updated.
5446         (html_printer::do_font): Use it.
5447         (html_printer::draw): Add dummy entry for `F'.
5448         (html_printer::set_char): Updated.
5449         * src/devices/grohtml/grohtml.man: Updated.
5451         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
5452         trailing zeroes removed.
5453         (ps_printer): New members `sbuf_color', `fill_color', and
5454         `output_color'.
5455         Removed member `fill'.
5456         New member function `set_color'.
5457         (ps_printer::ps_printer, ps_printer::set_char): Updated.
5458         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
5459         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
5461         * tmac/color-html.tmac, tmac/color.tmac: New files.
5462         * tmac/troffrc: Include them.
5463         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
5464         * tmac/Makefile.sub: Updated.
5466         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
5467         man/groff.man: Updated.
5468         * font/devps/prologue.ps: Define FC and CO functions.
5470 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
5472         Fix incorrect cropping of images and incorrect handling of special
5473         characters.  Fix handling of file names in \O.
5475         * src/include/geometry.h: New file.
5476         * src/libs/libgroff/geometry.cc: New file.
5477         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
5478         to `geometry.cc'.
5479         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
5480         initial spaces.
5481         (do_suppress): Updated.
5482         * src/roff/troff/node.cc: Include geometry.h.
5483         (troff_output_file::flush_tbuf): Fixed parameters to
5484         `check_output_limits'.
5485         (troff_output_file::check_charinfo): Ditto.
5486         (troff_output_file::determine_line_limits): Add support for `Da'
5487         and `Dl' commands.
5489         * src/devices/grohtml/post-html.cc (str_translate_to_html):
5490         Add new parameter `is_special' to decode special characters from
5491         escape sequences.
5492         (html_printer::do_title, html_printer::do_heading,
5493         html_printer::do_indentedparagraph,
5494         html_printer::translate_to_html, html_printer::special): Updated.
5496 2001-10-03  Werner LEMBERG  <wl@gnu.org>
5498         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
5499         Fix entry for config.h.
5500         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
5501         * tmac/troffrc: Translate nonbreakable space character to `\~'.
5502         * src/preproc/eqn/eqn.man: Document -d command line option.
5504 2001-09-27  Werner LEMBERG  <wl@gnu.org>
5506         * man/groff.man: Use
5508           .ev xxx
5509           .na
5510           .nh
5511           <table>
5512           .ev
5514         instead of the old code (`.ad .hy' after the table) to suppress
5515         incorrect hyphenation for grohtml output.
5517 2001-09-22  Werner LEMBERG  <wl@gnu.org>
5519         * man/groff_font.man, man/groff_out.man: Minor fixes.
5521 2001-09-20  Werner LEMBERG  <wl@gnu.org>
5523         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
5524         Arnold Robbins <arnold@skeeve.com>).
5526 2001-09-09  Werner LEMBERG  <wl@gnu.org>
5528         * configure: Regenerated with autoconf 2.52.
5530         * doc/groff.texinfo: Complete revision of indices.
5532 2001-09-07  Werner LEMBERG  <wl@gnu.org>
5534         * doc/Makefile (clean): Updated to delete all indices.
5536 2001-09-05  Werner LEMBERG  <wl@gnu.org>
5538         * src/roff/troff/troff.man: Remove superfluous line.
5540         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
5541         given on the command line (or rather, if only the default warnings
5542         are set).
5544 2001-09-03  Werner LEMBERG  <wl@gnu.org>
5546         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
5547         use .ne for TTY devices.
5549 2001-08-31  Werner LEMBERG  <wl@gnu.org>
5551         * src/roff/troff/token.h, src/roff/troff/input.cc:
5552         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
5554 2001-08-28  Werner LEMBERG  <wl@gnu.org>
5556         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
5557         * src/roff/troff/input.cc (token::next): Return
5558         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
5559         compatibility mode.
5560         (token::description): Updated.
5561         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
5562         (token::add_to_node_list, token::process): Ignore
5563         TOKEN_TRANSPARENT_ESCAPE.
5565 2001-08-27  Werner LEMBERG  <wl@gnu.org>
5567         * tmac/an-old.tmac: Fix `S' string.
5569 2001-08-26  Werner LEMBERG  <wl@gnu.org>
5571         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
5573 2001-08-25  Werner LEMBERG  <wl@gnu.org>
5575         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
5576         backslashes).
5577         Many other minor fixes.
5579         * configure.ac: Add message at end to inform how to compile
5580         xditview.
5581         * configure: Regenerated.
5583 2001-08-24  Werner LEMBERG  <wl@gnu.org>
5585         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
5586         Updated to latest version of libc.
5588 2001-08-23  Werner LEMBERG  <wl@gnu.org>
5590         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
5591         Autoconf 2.50 and newer can handle this.
5592         * configure: Regenerated.
5594 2001-08-21  Werner LEMBERG  <wl@gnu.org>
5596         * doc/pic.ms: Fix typo.
5597         * src/preproc/tbl/tbl.man: Document case of global options.
5599 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
5601         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
5602         handling of `CR' font.
5604 2001-08-20  Werner LEMBERG  <wl@gnu.org>
5606         Use a config.h file.
5608         * src/include/lib.h: Include config.h.
5609         * All C files: Ditto (if necessary).
5610         * All C++ source and header files: Include lib.h first (if
5611         necessary).
5613         * src/include/config.hin: New file (autogenerated by autoheader).
5614         * stamp-h.in: New file.
5615         * configure.ac: Updated.
5616         * aclocal.m4: Add third parameters to AC_DEFINE macros.
5617         (GROFF_ARRAY_DELETE): Simplified.
5618         * Makefile.sub (DISTCLEANFILES): Updated.
5619         Added targets for remaking config.status, config.hin, config.h,
5620         stamp-h.in, and stamp-h.
5621         * configure: Regenerated.
5623 2001-08-19  Werner LEMBERG  <wl@gnu.org>
5625         * NEWS: Updated.
5627 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
5629         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
5630         (do_sprintf): Use snprintf().
5632 2001-08-18  Werner LEMBERG  <wl@gnu.org>
5634         * src/libs/snprintf/*: Added an snprintf module written by Mark
5635         Martinec.
5636         * src/libs/libgroff/Makefile.sub: Updated.
5637         * configure.ac: Add test for snprintf().
5638         * Makefile.in: Updated.
5639         * configure: Regenerated.
5641         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
5642         uses snprintf().
5644 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
5646         * tmac/doc.tmac (Ex): New implementation.
5647         * tmac/doc-common, tmac/groff_tmac.man: Updated.
5649 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
5651         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
5652         argument.
5653         * tmac/groff_tmac.man: Updated.
5655 2001-08-13  Werner LEMBERG  <wl@gnu.org>
5657         * src/preproc/tbl/tbl.man: Minor documentation update.
5659 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5661         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
5662         * configure.ac: Add declaration test for gettimeofday().
5663         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
5664         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
5665         * configure: Regenerated.
5667 2001-08-11  Werner LEMBERG  <wl@gnu.org>
5669         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
5670         * configure.ac: Add declaration test for strcasecmp().
5671         * Makefile.in: Updated.
5672         * configure: Regenerated.
5673         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
5674         this is necessary because groff's mkstemp.cc is C++.
5675         Add declaration conditionally for strcasecmp().
5677 2001-08-10  Werner LEMBERG  <wl@gnu.org>
5679         Integrated pic2graph, contributed by Eric S. Raymond.
5681         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
5682         files.
5683         * Makefile.in, NEWS: Updated.
5685         * src/preproc/tbl/tbl.man: Revised.
5687 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
5689         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
5691 2001-08-09  Werner LEMBERG  <wl@gnu.org>
5693         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
5694         requests.
5696 2001-08-08  Paul Eggert  <eggert@twinsun.com>
5698         * Makefile.sub (configure): Depend on configure.ac, not
5699         configure.in.
5700         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
5702 2001-08-07  Werner LEMBERG  <wl@gnu.org>
5704         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
5705         fixes.
5707 2001-08-06  Werner LEMBERG  <wl@gnu.org>
5709         * src/roff/troff/troff.man: Improve documentation of -E option.
5711 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5713         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
5714         Simplified.
5716 2001-07-27  Werner LEMBERG  <wl@gnu.org>
5718         * src/preproc/refer/refer.cc: Undo last change.
5719         * src/devices/grohtml/post-html.cc: Ditto.
5721 2001-07-26  Werner LEMBERG  <wl@gnu.org>
5723         * src/preproc/refer/refer.cc: Include `lib.h'.
5724         * src/devices/grohtml/post-html.cc: Ditto.
5726 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
5728         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
5729         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
5730         * Makefile.in: Comment updated.
5731         * configure: Regenerated.
5733 2001-07-25  Werner LEMBERG  <wl@gnu.org>
5735         * src/preproc/pic/pic.cc: Removed.
5736         * src/preproc/pic/pic_tab.h: Removed.
5737         * src/preproc/refer/label.cc: Removed.
5739         * doc/Makefile (.ms.html): Don't use a file name extension in
5740         argument to grohtml's -I option.
5741         * Makefile.in (dist): Remove CVS directories.
5742         Call `distfiles' target.
5744         * src/devices/grohtml/grohtml.man: Add information about valid
5745         versions of pnmtopng.
5746         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
5747         name instead of number.
5749 2001-07-24  Werner LEMBERG  <wl@gnu.org>
5751         * doc/groff.texinfo: Minor fixes.
5753 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
5755         * doc/Makefile (.ms.html): Put image files into a subdirectory.
5756         (clean): Updated.
5758 2001-07-20  Werner LEMBERG  <wl@gnu.org>
5760         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
5761         * src/libs/libgroff/mkstemp.cc: New file.
5762         * src/libs/libgroff/mksdir.cc: New file.
5763         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
5764         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
5765         * src/libs/libgroff/Makefile.sub: Updated.
5766         * src/include/lib.h: Add mksdir() prototype.
5767         * src/include/posix.h: Define S_IXUSR if not yet defined.
5769         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
5770         (createAllPages): Use mksdir() instead of current code.
5771         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
5772         (main): [!HAVE_MKSTEMP]: Removed.
5774         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
5775         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
5776         macros.
5777         * configure.ac: Add tests for stdint.h, sys/time.h, and
5778         gettimeofday().
5779         Call new GROFF_xxx macros.
5780         * configure: Regenerated.
5781         * Makefile.in: Comments updated.
5783 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
5785         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
5786         instead of current code.
5787         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
5788         * src/roff/groff/groff.cc (possible_command::insert_args): New
5789         function.
5790         (main): Use it for predriver handling instead of insert_arg().
5792 2001-07-19  Werner LEMBERG  <wl@gnu.org>
5794         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
5795         groff also.
5797         * src/include/posix.h: Define S_IWUSR if not yet defined.
5799 2001-07-18  Werner LEMBERG  <wl@gnu.org>
5801         * NEWS: Updated.
5803 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
5805         * tmac/groff_mdoc.man: Document new -width and -column syntax.
5806         Some other minor fixes.
5807         * tmac/an-old.tmac: Add `AT' and `UC' macros.
5809 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
5811         Replace call to `troff' with `groff -Z' to make it aware of
5812         GROFF_BIN_PATH.
5814         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
5815         (troff_command, command_prefix): Removed.
5816         (alterDeviceTo): Use groff.
5817         (addZ): New function.
5818         (char_buffer::do_html): Use it.
5819         (scanArguments): Use TROFF_COMMAND.
5820         (findPrefix): Removed.
5821         (main): Updated.
5822         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
5824 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
5826         * doc/pic.ms: Documentation fixes.
5828 2001-07-17  Werner LEMBERG  <wl@gnu.org>
5830         Replace atexit() with global destructor.
5832         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
5833         (xtmpfile_list_init): New global structure to deallocate
5834         xtmpfile_list on exit.  Its destructor inherits most code from
5835         remove_tmp_files().
5836         (remove_tmp_files): Deleted.
5837         (add_tmp_file): Simplified.
5839 2001-07-16  Werner LEMBERG  <wl@gnu.org>
5841         Replace strdup() with strsave().
5843         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
5844         (set_papersize): Use strsave() and a_delete.
5845         (main): Use strsave().
5846         * src/preproc/html/pre-html.cc (make_message, createAllPages,
5847         removeAllPages): Use strsave() and a_delete.
5849         * configure.ac: Remove test for strdup.
5850         * Makefile.in: Comment updated.
5851         * configure: Regenerated.
5853 2001-07-15  Werner LEMBERG  <wl@gnu.org>
5855         * win32-diffs: Updated.
5857 2001-07-14  Werner LEMBERG  <wl@gnu.org>
5859         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
5860         removing the old one.
5861         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
5863 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5865         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
5867 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
5869         Merge -xwidth into -width.  Add -xwidth functionality to -column
5870         also.
5872         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
5873         avoid warning.
5874         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
5875         string immediately following a leading dot starts with a valid mdoc
5876         argument.
5877         Add similar code to the -column branch.
5878         (doc-Bl-usage): Updated.
5879         * groff_mdoc.man: s/-xwidth/-width/.
5881 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
5883         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
5884         running into centered or non-formatted text.
5886 2001-07-11  Werner LEMBERG  <wl@gnu.org>
5888         Introduce short and long prefixes to have the selection at run-time
5889         whether there is a 8+3 limit for names of temporary files.
5891         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
5892         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
5893         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
5894         variables.
5895         (temp_init): New global structure to initialize above three
5896         variables.
5897         (xtmptemplate): Use two parameters for long and short prefix.
5898         Simplify code use above three variables.
5899         (xtmpfile): Use long and short prefixes as parameters.
5900         * src/include/lib.h: Updated.
5902         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
5903         with ...
5904         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
5905         (createAllPages, makeTempFiles): Updated.
5907 2001-07-09  Werner LEMBERG  <wl@gnu.org>
5909         * REVISION: Increased to 3.
5911 Version 1.17.2 released
5912 =======================
5914 2001-07-07  Werner LEMBERG  <wl@gnu.org>
5916         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
5917         to size_t.
5919 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
5921         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
5922         Fix synopsis.
5923         * tmac/groff_mdoc.man: Fix synopsis.
5925 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
5927         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
5928         Restore `doc-Pa-font'.
5930 2001-07-04  Werner LEMBERG  <wl@gnu.org>
5932         * src/utils/indxbib/dirnamemax.c: Moved to ...
5933         * src/libs/libgroff/maxfilename.cc: Here.
5934         s/dir_name_max/file_name_max/.
5935         Add copyright.
5936         * src/include/lib.h: Add file_name_max.
5937         * src/utils/indxbib/indxbib.cc: Updated.
5938         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
5939         Updated.
5941         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
5942         as empty.
5943         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
5945         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
5946         REGION_TEMPLATE): New macros.
5947         (createAllPages, makeTempFiles): Use them.
5948         Include `nonposix.h'.
5949         (html_system): New function.
5950         (createAllPages, createImage): Use it.
5951         Use EXE_EXT.
5953         * tmac/www.tmac: Fix typos.
5955 2001-07-03  Werner LEMBERG  <wl@gnu.org>
5957         * tmac/www.tmac: Disable hyphenation in normal text only if output
5958         device is html.
5959         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
5960         * tmac/groff_mwww.man, NEWS: Updated.
5962 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
5964         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
5965         image location.
5967 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
5969         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
5970         doc-display-ps-stack): Implement font and font size stack for
5971         displays.
5973 2001-07-02  Werner LEMBERG  <wl@gnu.org>
5975         * REVISION: Increased to 2.
5976         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
5978         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
5979         beginning of a line.
5980         * src/groff/grog/grog.sh: Ditto.
5982 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
5984         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
5985         make it portable.
5987 2001-06-27  Werner LEMBERG  <wl@gnu.org>
5989         Fix problems with preprocessor string for `man' program.
5991         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
5992         Updated/added copyright.
5993         Moved Emacs's local variable to identify nroff mode to the end of
5994         the file; add local variable if missing.
5996 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
5998         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
5999         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
6000         * configure: Regenerated.
6002 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
6004         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
6005         * configure: Regenerated.
6007 2001-06-24  Werner LEMBERG  <wl@gnu.org>
6009         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
6010         but www.tmac.
6011         * doc/pic.ms: Fix typos.
6013 Version 1.17.1 released
6014 =======================
6016 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
6018         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
6019         * configure: Updated.
6021 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
6023         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
6024         image names.
6025         * src/roff/troff/dic.cc (blank_line): Add html tag.
6027 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
6029         * src/roff/troff/input.cc (do_suppress): Fix typo.
6031 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
6033         Added two new options (-D and -I) to specify image names and a
6034         subdirectory to place the images in.
6036         Change syntax from \\Ox to \\O[x].
6038         * src/devices/grohtml/post-html.cc (main): Add options.
6039         (usage): Updated.
6040         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
6041         Use `NULL' instead of `0' for null string pointers.
6042         (MAX_RETRIES): New macro.
6043         (lengthOfintToStr, intToStr, make_message): New functions.
6044         (makeFileName): Make function static.
6045         Implement -D and -I options.
6046         (checkImageDir): New function.
6047         (write_end_image, write_start_image): Use new syntax of \O.
6048         (createAllPages, removeAllPages): Implement -D and -I options.  Use
6049         make_message().
6050         (createImage): Use make_message().
6051         (addps4html): Add guard for malloc().
6052         (usage, scanArguments): Updated.
6053         (makeTempFiles): Use mkstemp().
6054         (removeTempFiles): Use unlink().
6055         (findPrefix): Add guard for malloc().
6056         (main): Updated.
6057         * src/roff/troff/input.cc (get_delim_file_name): New function to
6058         parse \O.
6059         (do_suppress): Updated to parse new syntax.
6060         * src/devices/grohtml/grohtml.man: Updated.
6061         * tmac/www.tmac: Updated to new syntax.
6063         * NEWS: Updated.
6065 2001-06-15  Werner LEMBERG  <wl@gnu.org>
6067         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
6069         * src/devices/grohtml/grohtml.man: Minor improvements.
6071 2001-06-14  Werner LEMBERG  <wl@gnu.org>
6073         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
6075 2001-06-11  Werner LEMBERG  <wl@gnu.org>
6077         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
6078         line to specify preprocessor options -- mandb 2.3.1 only recognizes
6079         the former.
6080         * src/preproc/grn/grn.man: Add proper '\" string.
6082 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
6084         * test-groff: Don't use PATH but GROFF_BIN_PATH.
6086 2001-06-08  Werner LEMBERG  <wl@gnu.org>
6088         Updated to autoconf 2.50.
6090         * configure.in: Renamed to...
6091         * configure.ac: This.
6092         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
6093         (GROFF_OS390): Updated.
6094         * configure: Regenerated.
6096 2001-05-18  Werner LEMBERG  <wl@gnu.org>
6098         * src/roff/troff/env.c, src/roff/troff/env.h,
6099         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
6100         from 2000-12-21.
6102 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
6104         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
6106 2001-05-16  Werner LEMBERG  <wl@gnu.org>
6108         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
6109         less than or equal zero; set it to 1 then.
6110         * src/roff/troff/node.h (node::node): Initialize `last'.
6112 2001-05-08  Werner LEMBERG  <wl@gnu.org>
6114         * tmac/an-old.tmac: Make predefined strings work in compatibility
6115         mode.
6116         Add troff version guard.
6117         * tmac/doc.tmac: Simplify version guard.
6119 2001-05-07  Werner LEMBERG  <wl@gnu.org>
6121         The .ns and .rs requests are now honoured not only in the top-level
6122         but in all diversions (similar to UNIX troff).
6124         This change is based on a patch from Tadziu Hoffmann
6125         <hoffmann@usm.uni-muenchen.de>.
6127         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
6128         (top_level_diversion): Remove `no_space_mode' member.
6129         * src/roff/troff/div.cc (diversion::diversion,
6130         top_level_diversion::top_level_diversion): Updated.
6131         (macro_diversion::output): Reset `no_space_mode'.
6132         (no_space, restore_spacing): Use `curdiv' unconditionally.
6133         (space_request, blank_line): Check `curdiv->no_space_mode'.
6134         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
6135         `curdiv' unconditionally.
6136         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
6137         Updated.
6139 2001-05-06  Werner LEMBERG  <wl@gnu.org>
6141         Added two new requests `de1' and `am1' which are similar to `de' and
6142         `am' with the difference that compatibility mode is saved on entry,
6143         switched off during macro execution, and restored on exit.
6145         * src/roff/troff/input.h: Added two new special characters
6146         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
6147         * src/roff/troff/input.cc (input_iterator): Added two member
6148         functions `save_compatible_flag' and `get_compatible_flag'.
6149         (input_stack): Ditto.
6150         (string_iterator): Ditto.  Also add private member
6151         `saved_compatible_flag'.
6152         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
6153         (calling_mode): New enumeration.
6154         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
6155         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
6156         (define_macro, define_indirect_macro, append_macro, ignore): Use
6157         `calling_mode'.
6158         (define_nocomp_macro, append_nocomp_macro): New functions.
6159         (init_input_requests): Updated.
6160         (do_request): Rename local variable `saved_compatible_flag' to
6161         `old_compatible_flag'.
6162         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6164         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
6165         public and trap-invoked macros.  As a consequence, the man macros
6166         work in compatibility mode also.
6168 2001-05-06  Solar Designer  <solar@openwall.com>
6170         * Makefile.in: Use $(mandir).
6172 2001-05-06  Alexios Zavras  <zvr@pobox.com>
6174         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
6176 2001-05-05  Werner LEMBERG  <wl@gnu.org>
6178         Added `.ns' number register: Returns 1 in no-space mode (if in
6179         top-level diversion), 0 otherwise.
6181         * src/roff/troff/div.cc (no_space_mode_reg): New class.
6182         (init_div_requests): Updated.
6183         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
6184         Document it.
6186 2001-05-04  Werner LEMBERG  <wl@gnu.org>
6188         * src/roff/nroff/nroff.man: Improved documentation (especially
6189         locales).
6191 2001-05-02  Werner LEMBERG  <wl@gnu.org>
6193         Added `brp' request: This is \p as a request.
6195         * src/roff/troff/env.cc (environment::do_break): Add parameter
6196         `spread'.
6197         (do_break_request): New function (was `break_request').
6198         (break_request): Calls `do_break_request'.
6199         (break_spread_request): New; calls `do_break_request'.
6200         (init_env_requests): Updated.
6201         * src/roff/troff/env.h: Updated.
6202         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6204         * REVISION: Increased to 1.
6205         * win32-diffs: Updated.
6207 2001-05-01  Werner LEMBERG  <wl@gnu.org>
6209         * tmac/an-old.tmac: Fix minor compatibility mode issue.
6210         * tmac/troffrc-end: Make it really work in compatibility mode.
6212 2001-04-27  Werner LEMBERG  <wl@gnu.org>
6214         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
6215         stdlib.h.
6217 2001-04-22  Werner LEMBERG  <wl@gnu.org>
6219         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
6220         latest versions from glibc CVS archive.
6222         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
6223         <c.zeelenberg@hccnet.nl>.
6225 2001-04-21  Werner LEMBERG  <wl@gnu.org>
6227         * configure.in: Move check for mkstemp() to...
6228         * aclocal.m4 (GROFF_MKSTEMP): This new function.
6229         * configure: Regenerated.
6231         * src/include/groff-getopt.h: Don't use variable names in
6232         declarations.
6234         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
6235         * src/devices/grohtml/Makefile.sub,
6236         src/devices/grohtml/post-html.cc: Updated.
6238 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
6240         * configure.in: Add special check for mkstemp().
6241         * src/libs/libgroff/tmpfile.cc: Use it.
6242         * src/utils/indxbib/indxbib.cc: Ditto.
6243         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
6244         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
6245         `const'.
6247 2001-04-20  Bruce Lilly  <blilly@erols.com>
6249         `Version_string' as C++ object was not visible to linker from C
6250         object files.
6251         Add `const' to `Version_string'.
6253         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
6254         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
6255         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
6256         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
6257         (scanArguments), src/preproc/refer/refer.cc (main),
6258         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
6259         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
6260         (main), src/devices/grohtml/post-html.cc (main),
6261         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
6262         (main), src/utils/hpftodit/hpftodit.cc (main),
6263         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
6264         (main), src/utils/lkbib/lkbib.cc (main),
6265         src/utils/addftinfo/addftinfo.cc (main): Implement it.
6267         * src/roff/groff/pipeline.c: Add _UWIN.
6268         * src/include/nonposix.h: Ditto.
6270 2001-04-20  Werner LEMBERG  <wl@gnu.org>
6272         * src/include/lib.h: Use HAVE_STRERROR.
6273         * src/roff/groff/pipeline.c: Ditto.
6274         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
6275         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
6276         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
6277         * win32-diffs: Updated.
6278         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
6280 2001-04-19  Werner LEMBERG  <wl@gnu.org>
6282         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
6283         instead of hardwired `"troff"'.
6284         (char_buffer::read_file): Remove unused variables.
6285         (char_buffer::write_file_troff): Ditto.
6286         (char_buffer::write_file_html): Ditto.
6287         (generateImages): Ditto.
6288         (abs): Removed.
6289         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
6291         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
6293         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
6294         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
6295         index_search_item::search1): Ditto.
6296         * src/roff/troff/node.h (width_list): Reorder members.
6297         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
6298         (lookup_warning): Ditto.
6299         (prepend_string): Commented out.
6300         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
6301         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
6302         * src/preproc/tbl/main.cc (process_format): Ditto.
6303         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
6304         compiler warnings.
6305         * src/preproc/pic/pic.cc: Updated.
6306         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
6307         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
6308         * src/preproc/refer/command.cc (execute_command): Ditto.
6309         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
6310         * src/preproc/refer/token.cc (lookup_token): Ditto.
6311         * src/preproc/soelim/soelim.cc: Ditto.
6312         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
6313         (isHexDigit): Commented out.
6314         (pushBackBuffer::isString): Remove unused variable.
6315         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
6316         warning.
6317         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
6318         resource_manager::read_resource_arg, read_one_of, parse_extensions):
6319         Ditto.
6320         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
6321         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
6322         lookup_paper_size): Ditto.
6323         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
6324         (text_glob, element_list): Reorder members.
6325         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
6326         compiler warning.
6327         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
6328         return value to `void'.
6329         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
6330         of initializers.
6331         * src/devices/grohtml/html.h (simple_output::check_newline,
6332         simple_output::space_or_newline, simple_output::enable_newlines):
6333         Add return value.
6334         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
6335         compiler warnings.
6336         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
6337         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
6338         output_ligatures, output_charset, read_map): Ditto.
6339         * src/utils/lookbib/lookbib.cc (main): Ditto.
6340         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
6341         (do_file): Fix typo (`=' -> `==').
6342         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
6343         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
6345 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
6347         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
6348         Fix usage of GROFF_BIN_PATH.
6349         * src/roff/nroff/nroff.man: Updated.
6351 2001-04-18  Werner LEMBERG  <wl@gnu.org>
6353         * NEWS: Fixing typos.
6354         Updated.
6356 Version 1.17 released
6357 =====================
6359 2001-04-17  Werner LEMBERG  <wl@gnu.org>
6361         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
6362         directory, not in $(srcdir).
6364 2001-04-16  Werner LEMBERG  <wl@gnu.org>
6366         * doc/groff.texinfo: More info on conditionals.
6368 2001-04-15  Werner LEMBERG  <wl@gnu.org>
6370         * doc/groff.texinfo: Added some info about groff internals.
6372         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
6373         about missing special character only if the name is non-null.
6375 2001-04-14  Werner LEMBERG  <wl@gnu.org>
6377         Removing the grohtml-old device driver which is now obsolete.
6379         * src/devices/grohtml-old/*: Removed.
6380         * font/devhtml-old/*: Removed.
6381         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
6382         Remove comments.
6383         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
6384         * test-groff (PATH): Updated.
6385         * tmac/Makefile.sub (NORMALFILES): Updated.
6386         * tmac/an-old.tmac: Remove special code for html-old device.
6387         Replace `html-or-html-old' register with `an-html'.
6388         * tmac/eqnrc: Updated.
6389         * tmac/html-old.tmac: Removed.
6390         * tmac/troffrc, tmac/troffrc-end: Updated.
6391         * tmac/www.tmac: Remove special code for html-old device.
6392         Replace `html-or-html-old' register with `www-html'.
6394         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
6395         src/libs/libgroff/htmlindicate.cc (graphic_end),
6396         include/htmlindicate.h, src/preproc/grn/*.cc,
6397         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
6398         single argument for consistency with rest of source code.
6400         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
6402 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
6404         * src/roff/troff/troff.man: Fixing typos.
6406 2001-04-13  Werner LEMBERG  <wl@gnu.org>
6408         * doc/pic.ms: Fixing many font switches.
6409         * doc/groff.texinfo: Fixes, additions.
6410         * MORE.STUFF: Updated.
6412 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
6414         * src/devices/grohtml/grohtml.man: Updated manual page regarding
6415         simple anchor.
6416         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
6417         cropping of images.
6418         (removeTempFiles): New function to tidy up temporary files.
6419         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
6420         Many fixes to do with the new inline suppress node and image regions
6421         are much tighter.
6422         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
6423         (generate_img_src): New function.
6424         (html_printer::do_auto_image): Utilizes it.
6425         (do_heading, do_title): Include inline images within their contents.
6426         (html_printer::begin_page): Tidied up comments that are issued to
6427         the html output file.
6428         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
6429         than courier.
6430         (text_glob::is_br): New method used by do_heading.
6431         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
6432         equivalent diversion.
6433         * src/include/html-strings.h: Altered image tags to reflect the
6434         inline image node.
6435         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
6436         parameter.
6437         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
6438         it is already inside a pic image.  Only emit tags if the argument
6439         `-Tps:html' is present.
6440         * src/preproc/tbl/main.cc: Changes to reflect additional
6441         `html_end_suppress' parameter.
6442         * src/roff/troff/env.cc: Only emit eol tag if a node has been
6443         emitted since the last eol tag was written.
6444         * src/roff/troff/env.h: New boolean `emitted_node'.
6445         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
6446         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
6447         * src/roff/troff/node.cc (check_charinfo): New method. 
6448         (troff_output_file::determine_line_limits): Alterations to limit
6449         checking.
6450         * tmac/www.tmac: Changes to reflect new suppress nodes.
6451           
6452 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
6454         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
6455         Escape the html_glyph in the buffer.
6456         (str_translate_to_html): Output the unescaped escaped_char.
6457         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
6458         `frame=void', not `frame=none'.  Add `border=0'.
6460 2001-04-12  Werner LEMBERG  <wl@gnu.org>
6462         * PROBLEMS: Add some words on how to avoid wrapper macros.
6464 2001-04-11  Blake McBride  <blake@florida-software.com>
6466         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
6468 2001-04-11  Werner LEMBERG  <wl@gnu.org>
6470         * font/devlbp/Makefile.sub (CLEANADD): Set it.
6471         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
6472         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
6473         * Makefile.sub (DISTCLEANFILES): Here.
6475         * libs/libgroff/new.cc: Include `nonposix.h'.
6476         * win32-diffs: Updated.
6478 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
6480         Added skeleton macro for defunct macros.
6482         Updated documentation.
6484         When inside displays, an empty input line warning should be
6485         suppressed.  If another macro call is put inside a display,
6486         all subsequent empty lines found in that display caused a
6487         warning to be emitted.
6489         * tmac/doc.tmac (doc-defunct-macro): New macro.
6490         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
6491         (doc-restore-global-vars): Fixed typo.
6492         (doc-empty-line): Check the `doc-display-depth' register to
6493         determine whether we are inside display or not.
6495         * tmac/doc-common: Removed `Or' and `Sf' registers.
6496         Moved obsolete `Ds' macro to doc.tmac.
6498         * tmac/groff_mdoc.man: Bump document date.
6499         Document `.Vt' under ``Variable Types''.
6500         Removed documentation for obsolete `.Or' macro.
6502 2001-04-10  Werner LEMBERG  <wl@gnu.org>
6504         * NEWS: Updated.
6505         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
6507 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
6509         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
6510         (usage): Add stream argument. Don't exit.
6511         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
6512         Write --version output to stdout, not stderr.
6513         (usage): Add stream argument. Don't exit.
6514         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
6515         (usage): Add stream argument. Don't exit.
6516         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
6517         constants.
6518         (usage): Add stream argument. Don't exit.
6519         (main): Write --help output to stdout, not stderr.
6520         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
6521         (usage): Add stream argument. Don't exit.
6522         * src/devices/grops/ps.cc (main): Accept --help and --version.
6523         (usage): Add stream argument. Don't exit.
6524         * src/devices/grotty/tty.cc (main): Accept --help and --version.
6525         (usage): Add stream argument. Don't exit.
6526         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
6527         (main): Accept --help and --version.
6528         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
6529         (main): Accept --help and --version.
6530         * src/preproc/html/pre-html.cc (usage): Add stream argument.
6531         (scanArguments): Accept --help and --version.
6532         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
6533         (main): Accept --help and --version.
6534         * src/preproc/refer/refer.cc (main): Accept --help and --version.
6535         (usage): Add stream argument. Don't exit.
6536         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
6537         exit.
6538         (main): Accept --help and --version.
6539         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
6540         (main): Accept --help and --version.
6541         * src/roff/groff/groff.cc (main): Accept --help and --version.
6542         (synopsis): Add stream argument.
6543         (help): Write --help output to stdout, not stderr.
6544         (usage): Add stream argument. Don't exit.
6545         * src/roff/grog/grog.pl: Accept --help and --version.
6546         (help): New sub.
6547         * src/roff/grog/grog.sh: Accept --help and --version.
6548         * src/roff/nroff/nroff.sh: Accept --help and --version.
6549         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
6550         (usage): Add stream argument. Don't exit.
6551         (main): Accept --help and --version.
6552         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
6553         (usage): New function with stream argument, doesn't exit.
6554         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
6555         (usage): New function with stream argument, doesn't exit.
6556         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
6557         (usage): Add stream argument. Don't exit.
6558         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
6559         (main): Accept --help and --version.
6560         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
6561         exit.
6562         (main): Accept --help and --version.
6563         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
6564         (main): Accept --help and --version.
6565         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
6566         (usage): Add stream argument. Don't exit.
6568 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
6570         Fix indentation in SYNOPSIS.
6572         Updated to include changes of latest BSD mdoc version (basically,
6573         the only change is that `.Fn' and `.Fc' put a final semicolon after
6574         a function declaration in the SYNOPSIS section).
6576         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
6577         (doc-in-synopsis-section): New variable.  Updated all related
6578         functions.
6579         (doc-indent-synopsis-active): New register.
6580         (Nd, Fn, Fo): Use it.
6581         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
6582         `.Cd' with long argument line produces indented wrapped lines. 
6583         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
6584         undesirable line break to be output.
6585         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
6586         `.rs'.
6587         (Fn, Fc): Add final `;' to output.
6588         (doc-save-global-vars, doc-restore-global-vars): Updated.
6589         * tmac/doc-common: Remove `Ex' register.
6590         Updated.
6591         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
6592         copyright.
6594 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
6596         * tmac/doc.tmac (Cd): Simplify code.
6597         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
6599 2001-04-06  Werner LEMBERG  <wl@gnu.org>
6601         Implement continuous underlining for nroff mode.  To do that, a new
6602         request in the ditroff language has been added: `x u N' (N is 0
6603         or 1).
6605         \X and \Y are now transparent to end-of-sentence recognition.
6607         * src/include/printer.h (printer): Add `type' parameter to `special'
6608         method.
6609         * src/libs/libdriver/printer.cc (printer::special): Updated.
6610         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
6612         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
6613         specials of type `p'.
6614         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
6615         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
6616         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
6617         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
6618         (glyph::order): New method.
6619         (tty_printer::add_char): Use it.
6620         (tty_printer::special): New method.
6621         (tty_printer::end_page): Implement it.
6623         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
6624         * src/roff/troff/node.cc (special_node::special_node): Add parameter
6625         to set `no_init_string'.
6626         (special_node::tprint_start): Use it.
6627         (special_node::same, special_node::copy): Updated.
6628         (special_node::ends_sentence): New method.
6629         (troff_output_file::start_special): Add parameter to include
6630         inititialization of special conditionally.
6632         * src/roff/troff/env.h (environment): New member `underline_spaces'.
6633         * src/roff/troff/env.cc (do_underline_special): New function.
6634         (environment::set_font): Use it.
6635         (do_underline): Use it.  This was `underline()'.
6636         (underline): Call `do_underline()'.
6637         (continuous_underline): New function which calls `do_underline()'.
6638         (environment::newline): Use `do_underline_special()'.
6639         (init_env_requests): Updated.
6641         * NEWS, man/troff_out.man: Updated.
6643 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
6645         * font/devutf8/R.proto: Fix code of 'shc'.
6647 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
6649         Many fixes.  Diag lists can now be nested also; additionally,
6650         `-compact' and `-offset' are supported.
6652         * tmac/doc.tmac (doc-have-indent): Replaced with ...
6653         (doc-list-have-indent-stackXXX): A new register stack.
6654         (doc-have-diag-list): Removed.
6655         (Bl): Use `doc-list-have-indent-stackXXX'.
6656         (El): Updated.
6657         (doc-diag-list): Use `doc-compact-list-stackXXX'.
6658         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
6659         (doc-set-vertical-and-indent): Ditto.
6660         (doc-next-list-depth): Removed.
6661         (doc-increment-list-stack): Updated.
6662         (doc-decrement-list-stack): Use `doc-list-depth' instead of
6663         `doc-next-list-depth'.
6664         (doc-end-list, doc-end-column-list): Don't use
6665         `doc-increment-list-stack'.
6666         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
6667         (doc-save-global-vars, doc-restore-global-vars): Updated.
6668         * tmac/doc-common: Updated.
6669         * tmac/groff_mdoc.man: Updated.
6670         * NEWS: Fix typo.
6672 2001-04-02  Werner LEMBERG  <wl@gnu.org>
6674         * src/devices/grotty/grotty.man: Fix grammatical error.
6676 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
6678         Remove .Ld from mdoc package; replace it with special handling of
6679         `...'.
6681         * tmac/doc-common: Remove `Ld' register.
6682         Uncomment `doc-volume-ds-*' strings.
6683         Remove `doc-operating-system-default'.
6684         (Os): Updated.
6685         * tmac/doc-syms (Ld): Removed.
6686         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
6687         `...' specially.
6688         * NEWS: Updated.
6690         * tmac/groff_mdoc.man: Many fixes and updates.
6692 2001-03-29  Werner LEMBERG  <wl@gnu.org>
6694         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
6695         Bond <tkb@tkb.mpl.com>.
6696         * tmac/www.tmac: Save compatibility mode.
6698 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
6700         * tmac/groff_mdoc.man: Many fixes.
6702 2001-03-28  Werner LEMBERG  <wl@gnu.org>
6704         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
6705         isn't recognized.
6707 2001-03-27  Werner LEMBERG  <wl@gnu.org>
6709         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
6710         diversion.  This fixes overlong tags.
6712 2001-03-26  Werner LEMBERG  <wl@gnu.org>
6714         * doc/groff.texinfo: Fixed and improved documentation of fonts.
6715         * tmac/doc-syms: Fix error messages.
6716         * tmac/an-old.tmac: Remove incorrect double backslashes.
6718 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
6720         * tmac/Makefile.sub: Strip mdoc.local also
6721         * tmac/strip.sed: Fixed.
6723 2001-03-24  Werner LEMBERG  <wl@gnu.org>
6725         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
6726         selecting the font size.
6727         * tmac/groff_mdoc.man, NEWS: Document it.
6729 2001-03-23  Werner LEMBERG  <wl@gnu.org>
6731         * src/roff/troff/div.cc (save_vertical_space): Add default argument
6732         to `sv' request.
6733         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
6734         argument to restore previous font family.
6735         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
6737         * doc/groff.texinfo: More fixes and additions (mainly for font
6738         manipulating commands).
6740         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
6741         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
6742         * tmac/Makefile.sub, NEWS: Updated.
6744 2001-03-23  Werner LEMBERG  <wl@gnu.org>
6746         Replaced mdoc implementation.  The new version is `state of the
6747         art', using almost all new features of groff 1.17 -- it won't run
6748         with older versions.
6750         * tmac/doc.tmac: Completely rewritten.
6751         * tmac/doc-common: Ditto.
6752         * tmac/doc-nroff: Ditto.
6753         * tmac/doc-ditroff: Ditto.
6754         * tmac/doc-syms: Ditto.
6755         * tmac/mdoc.local: New file.
6756         * tmac/groff_mdoc.samples.man: Replaced with ...
6757         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
6758         * tmac/strip.sed: Updated.
6759         * tmac/Makefile.sub: Updated.
6760         * INSTALL: Updated.
6762         * tmac/groff_man.man: Add `man.local' to the FILES section.
6764 2001-03-22  Werner LEMBERG  <wl@gnu.org>
6766         * doc/groff.texinfo: Added many @noindent.
6767         Replaced @end_Example -> @endExample.
6768         Added info whether registers are r/o.
6769         Many other additions and fixes.
6771 2001-03-21  Werner LEMBERG  <wl@gnu.org>
6773         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
6774         in makeinfo of texinfo 4.0) to be used in @Def* macros.
6775         Improved @Def* macros: Now the exact syntax of request, register,
6776         and escapes is shown.
6777         Added macros for parentheses and brackets to be used in @Def*.
6778         Many fixes and improvements of the documentation.
6780 2001-03-20  Werner LEMBERG  <wl@gnu.org>
6782         * doc/groff.texinfo: Added new index: `st' (for strings).
6783         Added macros @Defstr(x).
6784         Added macro @Example (adding @group).
6785         Other minor improvements.
6787 2001-03-19  Werner LEMBERG  <wl@gnu.org>
6789         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
6790         `rq' for requests.  `fn' is no longer used.
6791         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
6792         Removed @Deffn(x).
6794         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
6795         number with name of man page.
6797 2001-03-19  Larry Kollar  <kollar@alltel.net>
6799         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
6800         consistency.
6802 2001-03-19  Werner LEMBERG  <wl@gnu.org>
6804         * man/groff_font.man: Document `prepro', `postpro', and `print'.
6805         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
6806         * src/devices/grohtml/grohtml.man: Fixing typos.
6808 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
6810         * tmac/s.tmac (@IP): Pass `.ip' html tag.
6811         * tmac/groff_mwww.man: Remove .LINE macro
6812         * tmac/www.tmac (LINE): Add `.ti'.
6814         * src/devices/grohtml/post-html.cc (html_printer): New member
6815         `indent'.
6816         (html_printer::emit_raw): Use it.
6817         (html_printer::do_linelength): Ditto.
6818         (html_printer::do_pageoffset): Ditto.
6819         (html_printer::do_indentation): Ditto.
6820         (html_printer::do_tempindent): Ditto.
6821         (html_printer::do_break): Ditto.
6822         (html_printer::begin_page): Ditto.
6823         (html_printer::do_indentedparagraph): New function.
6824         (html_printer::troff_tag): Handle `.ip'.
6825         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
6826         Add `<td width=...>' handling.
6827         (html_text::do_table): Add parameter.
6828         (html_text::do_indent): Updated.
6829         * src/devices/groohtml/html-text.h: Updated.
6831 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
6833         Introduced simple html tables to implement indentation.
6835         * src/devices/grohtml/html.h (word, word_list): New structures.
6836         (simple_output): Use it.
6837         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
6838         (html_printer): Improve indentation handling.
6839         (html_printer::emit_raw): Set `in_table' element.  Handle
6840         indentation if set.
6841         (html_printer::write_header): Move conditional downwards.
6842         Don't allow whitespace in tags.
6843         (html_printer::do_linelength): Handle line length and indentation
6844         conditionally.
6845         (html_printer::do_pageoffset): Handle indentation conditionally.
6846         (html_printer::do_indentation): Ditto.
6847         (html_printer::do_tempindent): New function member.
6848         (html_printer::do_fill): Take care of indentation.
6849         (html_printer::do_flush): Finish table.
6850         (html_printer::do_links): Ditto.
6851         (html_printer::do_break): New function for handling `.br' and `.ti'.
6852         (html_printer::troff_tag): Use it.
6853         Handle `.ti'.
6854         (html_printer::flush_globs): Fix.
6855         (html_printer::flush_page): Finish table.
6856         (html_printer::html_printer): Fix error message.  Set up
6857         `linelength'.
6858         (html_printer::add_to_sbuf): Remove special handling of character
6859         code 255.
6860         (to_unicode): Remove `stop()'.
6861         (html_printer::write_title): Cleanup.
6862         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
6863         (html_printer::~html_printer): Flush text and end the line.
6864         Use `put_string()'.
6865         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
6866         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
6867         emission of tags.
6868         (html_text::start_tag): Disable newlines.
6869         (html_text::table_is_void): New function.
6870         (html_text::issue_table_begin): Ditto.
6871         (html_text::issue_table_end): Ditto.
6872         (html_text::push_para): Better table handling.
6873         (html_text::do_indent): New function.
6874         (html_text::do_table): Ditto.
6875         (html_text::done_table): Ditto.
6876         (html_text::do_tt): Handle PRE_TAG.
6877         (html_text::is_in_table): New function.
6878         (html_text::check_emit_text): Handle tables.
6879         (html_text::do_emittext): Use `nl()'.
6880         (html_text::do_para): Handle table.
6881         (html_text::remove_def): New function.
6882         * src/devices/grohtml/output.cc (word, word_list): Implement
6883         methods.
6884         (simple_output::end_line): Flush last word.
6885         (simple_output::simple_comment): Ditto.
6886         (simple_output::begin_comment): Recoded.
6887         (simple_output::end_comment): Ditto.
6888         (simple_output::comment_arg): Removed.
6889         (simple_output::check_newline): Improve test and flush last word.
6890         (simple_output::space_or_newline): Improved.
6891         (simple_output::write_newline): Replaced with...
6892         (simple_output::nl): This.
6893         (simple_output::put_raw_char): Flush last word.
6894         (simple_output::check_space): Removed.
6895         (simple_output::put_translated_string): Ditto.
6896         (simple_output::put_string): Simplified.
6897         (simple_output::put_number): Updated.
6898         (simple_output::put_float): Ditto.
6899         (simple_output::put_symbol): Removed.
6900         (simple_output::enable_newlines): Add `check_newline()'.
6901         (simple_output::flush_last_word): New function.
6903         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
6904         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
6906         * tmac/s.tmac (@PP, @IP): Add html conditional code.
6907         * tmac/an-old.tmac (TP): Ditto.
6909 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
6911         * mdate.sh: Make it POSIX compliant.
6913 2001-03-09  Werner LEMBERG  <wl@gnu.org>
6915         Added the `return' request to end a macro immediately.  It simply
6916         pops iterators from the input stack until a macro iterator is found.
6918         * src/roff/troff/input.cc (input_iterator::is_macro,
6919         macro_iterator::is_macro): New member.
6920         (input_return_boundary): New class to signal an immediate return
6921         to while_request().
6922         (input_stack::add_return_boundary, input_stack::is_return_boundary):
6923         New functions.
6924         (input_stack::clear): Use it.
6925         (input_stack::pop_macro): New function.
6926         (while_request): Use `is_return_boundary()'.
6927         (return_macro_request): New function.
6928         (init_input_requests): Use it.
6930         * src/roff/troff/TODO: Updated.
6931         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6933 2001-03-08  Werner LEMBERG  <wl@gnu.org>
6935         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
6936         cleanup.
6938 2001-03-07  Werner LEMBERG  <wl@gnu.org>
6940         Make `\B' more rigid.
6942         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
6943         parameter.
6944         (get_number_rigidly): New function.
6945         * src/roff/troff/input.cc (do_expr_test): Use it.
6946         * src/roff/troff/token.h: Updated.
6948         * src/roff/troff/request.h: Fix typo (init_html_request ->
6949         init_markup_request).
6951 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
6953         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
6954         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
6955         are now `.begin', `.end', `.image'.
6957         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
6958         (html_printer::add_to_sbuf): Changing type of `code' parameter.
6959         Use add_char_to_sbuf().
6960         (to_unicode): New function.
6961         (char_translate_to_html): Changing type of `ch' parameter.
6962         Use `to_unicode()'.
6963         (html_printer::~html_printer): Comment out doctype string.
6964         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
6965         instead of `.html-end'.
6966         (write_start_image): Use `.begin' and `.image' instead of
6967         `.html-begin' and `.html-image'.
6968         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
6969         (html_begin): Renamed to ...
6970         (begin): This.
6971         (html_end): Renamed to ...
6972         (end): This.
6973         (html_image): Renamed to ...
6974         (image): This.
6975         (init_html_requests): Renamed to ...
6976         (init_markup_requests): This.
6977         * tmac/www.tmac: Updated.
6979 2001-02-28  Bram  <bram@avontuur.org>
6981         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
6982         constructor.
6984 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
6986         * doc/meref.me: Fixing some typos.
6988 2001-02-16  Werner LEMBERG  <wl@gnu.org>
6990         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
6991         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
6992         * src/roff/troff/node.h: Updated.
6994 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
6996         * tmac/groff_tmac.man: Fix typo.
6998 2001-02-16  Werner LEMBERG  <wl@gnu.org>
7000         Fixing a bug which prevented proper end-of-sentence recognition
7001         between an `unformatted' box and the following text.  As a
7002         consequence, vertical line distances are no longer preserved in
7003         boxes after a call to `.unformat' -- because boxes aren't
7004         line-oriented (contrary to diversions), this doesn't make sense
7005         anyway.
7007         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
7008         value.
7009         (vertical_size_node::set_unformat_flag): New method.
7010         * src/roff/troff/node.hh: Updated.
7011         * src/roff/troff/input.cc (word_space_node::reread,
7012         hmotion_node::reread): Reset `unformat' flag after usage.
7013         (unformat_macro): Append only if `set_unformat_flag()' returns
7014         non-zero.
7015         * src/roff/troff/troff.man: Updated.
7017 2001-02-15  Werner LEMBERG  <wl@gnu.org>
7019         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
7020         documentation of `asciify' and `unformat' requests.
7022 2001-02-13  Werner LEMBERG  <wl@gnu.org>
7024         Redesigned the `unformat' request.  It is no longer connected with
7025         `asciify' but rather uses new `reread()' methods if the `unformat'
7026         flag is set.  Additionally, the handling of space characters after
7027         unformatting has been fixed so that they retain their width.
7029         * src/roff/troff/node.h (width_list): New structure to store
7030         original widths of spaces.
7031         (node): Added `unformat' member.
7032         Replaced `num_spaces' variable with `orig_width' list.
7033         * src/roff/troff/node.cc (*node::asciify,
7034         asciify_reverse_node_list): Removed `unformat_only' flag and related
7035         code.
7036         (word_space_node::asciify, word_space_node::word_space_node): Use
7037         `orig_width'.
7038         (word_space_node::~word_space_node): New destructor.
7039         (word_space_node::copy): Updated to handle `orig_width'.
7040         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
7041         (*node::merge_space): Update `orig_width' list if necessary.
7042         (*node::set_unformat_flag): New methods to set the `unformat' flag.
7043         * src/roff/troff/enc.cc (environment::space_newline): Use
7044         `width_list'.
7045         (environment::space): Added method to handle space width and
7046         sentence space width as parameters.  Use `width_list'.
7047         (environment::make_tab_node): Updated.
7048         * src/roff/troff/env.h: Updated.
7049         * src/roff/troff/input.cc (word_space_node::reread,
7050         unbreakable_space_node::reread, hmotion_node::reread): New methods
7051         to handle nodes specially if `unformat' flag is set.
7052         (do_asciify_macro): Renamed back to ...
7053         (asciify_macro): This.
7054         (unformat_macro): New implementation to simply set the `unformat'
7055         flag.
7057         * MORE.STUFF: Added more info about deroff.
7059 2001-02-08  Werner LEMBERG  <wl@gnu.org>
7061         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
7062         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
7063         and `add_self()' methods to avoid hyphenation.  For example, the
7064         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
7065         soft hyphen after `foo'.  Now the hyphen list is correctly
7066         `foo<ignore><ignore>bar'.
7068 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
7070         * tmac/groff_tmac.man: Fix `BIR' macro.
7072 2001-02-04  Werner LEMBERG  <wl@gnu.org>
7074         A new escape sequence `\:', inserting a zero-width break point.
7076         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
7077         * src/roff/troff/input.cc (get_copy, token::next, asciify):
7078         Implement it.
7079         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
7080         method.
7081         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
7082         and `asciify()' methods.
7083         * src/roff/troff/node.cc (space_node::space_node): Updated.
7084         (space_node::asciify): Handle `was_escape_colon'.
7085         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7087         Handle `\~' similar to other comparable requests.
7089         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
7090         label.
7091         (token::next): Move creation of an unbreakable_space_node to...
7092         (token::add_to_node_list): Here.
7094         Fix a bug which sometimes prevented hyphenation of words connected
7095         with `\~' or `\ ' (and other escape sequences handled as
7096         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
7097         (after a call to the `unformat' request).
7099         * src/roff/troff/env.h (environment::possibly_break_line,
7100         environment::hyphenate_line): Introducing `start_here' parameter.
7101         * src/roff/troff/env.cc (environment::space_newline,
7102         environment::space): Use it.
7103         (environment::possibly_break_line, environment::hyphenate_line):
7104         Implement it.
7105         * src/roff/troff/input.cc (process_input_stack): Use it.
7106         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
7107         space_char_hmotion_node, overstrike_node): Add
7108         `get_hyphenation_type()' method.
7109         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
7110         if `unformat_only' is active.
7112 2001-01-30  Werner LEMBERG  <wl@gnu.org>
7114         Implemented new read-only number register `.linetabs' which
7115         returns 1 if in line-tabs mode, 0 otherwise.
7117         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
7118         * src/roff/troff/env.cc (get_line_tabs): New function.
7119         (init_env_requests): Use it.
7120         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7122         * VERSION, REVISION: Changing to 1.17.0.
7124 2001-01-28  Werner LEMBERG  <wl@gnu.org>
7126         Fixed a bug which prevented hyphenation of words which are finished
7127         with `\)'.
7129         * src/roff/troff/token.h (token): Add enum type
7130         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
7131         * src/roff/troff/input.cc (token::next, token::description,
7132         get_line_arg, token::add_to_node_list, token::process): Use it.
7134 2001-01-27  Werner LEMBERG  <wl@gnu.org>
7136         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
7137         * src/roff/troff/div.cc (do_divert): Use it.
7139         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
7141 2001-01-25  Werner LEMBERG  <wl@gnu.org>
7143         Adding the `linetabs' request.  If set, tab distances are not
7144         computed relative to the input line but relative to the output line.
7146         * src/roff/troff/env.h (environment): New member `line_tabs'.
7147         * src/roff/troff/env.cc (line_tabs_request): Implement request.
7148         (environment::environment, environment::copy): Updated.
7149         (environment::distance_to_next_tab): Use `line_tabs'.
7150         (init_env_requests): Register request.
7151         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
7152         fixes.
7154 2001-01-24  Werner LEMBERG  <wl@gnu.org>
7156         Introducing a new read-only register `.int' which is set to a
7157         positive value if the last output line is interrupted (i.e., if it
7158         contains `\c').
7160         * src/roff/troff/env.cc (init_env_requests): Add it.
7161         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7163 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
7165         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
7166         * src/preproc/html/pre-html.cc (findPrefix): New function which
7167         generates the troff executable name via the system prefix.
7168         * src/preproc/eqn/main.cc: Modified warning message.
7170 2001-01-23  Werner LEMBERG  <wl@gnu.org>
7172         troff's `box' and `boxa' requests didn't preserve temporary
7173         indentation.
7175         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
7176         `saved_target_text_length' members.
7177         * src/roff/troff/div.cc (do_divert): Use them.
7179         Tabs (but not yet leaders and fields) are now handled correctly by
7180         `asciify' request.
7182         * node.h (hmotion_node): Add field `was_tab'.
7183         * env.cc (environment::make_tab_node): Set it.
7184         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
7186         Added new request `unformat' which will, contrary to `asciify',
7187         preserve font information after unformatting (i.e., only nodes
7188         dealing with horizontal space are converted back to input
7189         characters).
7191         * input.cc (asciify_macro): Renamed to ...
7192         (do_asciify_macro): this, having a new parameter `unformat_only'.
7193         (asciify_macro, unformat_macro): New; using do_asciify_macro.
7194         (init_input_requests): Added `unformat'.
7195         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
7196         parameter to control asciification process.
7197         * node.h (*_node::asciify): Ditto.
7198         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7200 2001-01-20  Werner LEMBERG  <wl@gnu.org>
7202         * doc/groff.texinfo: Minor improvement of `.in' documentation.
7204 2001-01-18  Werner LEMBERG  <wl@gnu.org>
7206         * tmac/ps.tmac: Remove call of psold.tmac.
7207         * tmac/psold.tmac: Comment updated.
7208         * tmac/psnew.tmac: Removed since no longer needed.
7209         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
7211         * font/devutf8/R.proto: Adding `shc' glyph.
7212         * font/devutf8/NOTES: Updated.
7214         * test-groff: Updated.
7216 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
7218         First cut of the new html device driver.  Changes to pre-html and
7219         the new grohtml are too numerous to be documented here.
7221         Stuff related to `html' has been renamed to `html-old' and `html2'
7222         stuff has been renamed to `html' (including directories).  The new
7223         html device driver is therefore invoked as `-Thtml'.
7225         Added new `\O' escape to suppress output (needed by html driver).
7227         Added functions and code to pass info about input-level commands
7228         (`.in', `.fl', etc.) to html driver.
7230         Three new functions (.html-begin, .html-end, and .html-image) for
7231         better html handling: `html-begin' will execute the remaining line
7232         if at the outermost nesting level, increasing an internal counter.
7233         `html-end' does the same but decreases the internal counter.
7234         `html_image' puts its arguments into a special node (suppress_node)
7235         to define an image region.
7237         The `output' request has been removed.
7239         * tmac/html-tags.tmac: Removed.
7240         * tmac/arkup.tmac: Updated and renamed to ...
7241         * tmac/www.tmac: New file.
7242         * tmac/markup.tmac Updated and renamed to ...
7243         * tmac/mwww.tmac: New file.
7244         * tmac/Makefile.sub: Updated.
7245         * tmac/an-old.tmac: Updated.
7246         * tmac/eqnrc: Updated.
7247         * tmac/groff_man.man
7248         * tmac/groff_markup.man: Updated and renamed to ...
7249         * tmac/groff_mwww.man: New file.
7250         * tmac/groff_tmac.man: Updated.
7251         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
7252         * tmac/html.tmac: Updated and renamed from html2.tmac.
7253         * tmac/pspic.tmac: Updated html support.
7254         * tmac/s.tmac: Added html output support.
7255         * tmac/troffrc, tmac/troffrc-end: Updated.
7257         * Makefile.in, doc/Makefile: Updated.
7258         * doc/groff.texinfo: Added info about new `\O' escape.
7259         * doc/homepage.ms: Use `MAILTO' macro.
7261         * font/devhtml/DESC.proto: Add `C' font.
7262         * font/devhtml/Makefile.sub: Updated.
7263         * font/devhtml/R.proto: Minor fixes.
7264         * font/devhtml-old/Makefile.sub: Updated.
7266         * src/devices/grohtml-old/Makefile.sub: Updated.
7268         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
7269         method.
7270         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
7271         graphic_start): Add `inline' parameter.  Update.
7272         (html_end_suppress, graphic_end): Update.
7274         * src/include/html-strings.h: New file.
7275         * src/include/htmlindicate.h: Comments updated.
7276         * src/include/printer.h: Updated.
7278         * src/preproc/eqn/main.cc (do_file, main): Updated.
7279         * src/preproc/pic/troff.cc (troff_output::start_picture,
7280         troff_output::finish_picture): Updated.
7281         * src/preproc/tbl/main.cc (process_input_file): Updated.
7283         * src/roff/groff/groff.cc (main): Updated.
7284         Pass device arguments to predrivers also.
7285         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
7286         * src/roff/troff/env.h (environment): Updated.
7287         New elements `need_eol' and `ignore_next_eol' (for html output).
7288         * src/roff/troff/env.cc (environment::environment): Add initializers
7289         for `need_eol' and `ignore_next_eol'.
7290         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
7291         functions.
7292         (point_size, fill, no_fill, center, right_justify, line_length,
7293         indent, temporary_indent, break_request, handle_tab): Use
7294         `add_html_tag()'.
7295         (set_tabs): Use `add_html_tag_tabs()'.
7296         (environment::add_html_tag): Updated.
7297         (environment::do_break): Updated.
7298         * src/roff/troff/div.cc (space_request, flush_output): Use
7299         `environment::add_html_tag()'.
7300         * src/roff/troff/input.cc: Updated.
7301         New variable `html_level' to indicate nested `html-begin' requests.
7302         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
7303         (non_interpreted_char_node, token_node, non_interpreted_node): Add
7304         `force_tprint()' method.
7305         (token::next): Handle `\O'.
7306         (do_suppress): Implement it.
7307         (html_begin, html_end, html_image): New functions.
7308         (init_output_requests): Renamed to ...
7309         (init_html_requests): this.
7310         (main): Use it.
7311         (macro::append_str, macro::append_unsigned, macro::append_int): New
7312         methods.
7313         New variable `output_low_mark_miny' to limit minimal value of y.
7314         (reset_output_registers): Use it.
7315         (output_request): Removed.
7316         (get_output_registers): New function.
7317         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
7318         (*_node): Added `force_tprint()' if necessary.
7319         (special_node): New elements `tf' and `get_tfont()'.
7320         (suppress_node): New class.
7321         * src/roff/troff/node.cc:
7322         New global variables `image_no' and `suppress_start_page'.
7323         (real_output_file): New method `is_on()'.
7324         (troff_output_file): New method `start_special(tfont)'.
7325         (troff_output_file::really_print_line): Use `tprint' conditionally.
7326         (real_output_file::print_line): Updated.
7327         (real_output_file::on): Updated.
7328         (*_node): Added `force_tprint()'.
7329         (special_node::special_node): Initializer updated.
7330         (special_node::same, special_node::copy, special_node::tprint_start):
7331         Updated.
7332         (get_reg_int, get_reg_str): New functions.
7333         (suppress_node::*): New methods.
7334         New global variables last_position, last_image_filename;
7335         (min): New inline function.
7336         * src/roff/troff/reg.h, src/roff/troff/request.h,
7337         src/roff/troff/troff.h: Updated.
7339 2001-01-13  Werner LEMBERG  <wl@gnu.org>
7341         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
7342         documentation of `asciify' request.
7344 2001-01-12  Werner LEMBERG  <wl@gnu.org>
7346         * src/roff/troff/input.cc: Move definition of special characters
7347         like `ESCAPE_TILDE' to ...
7348         * src/roff/troff/input.h: New file.
7349         * src/roff/troff/Makefile.sub (HDRS): Add it.
7351         Extending the .asciify request to `unformat' space characters also.
7353         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
7354         to count input space characters.
7355         Update constructors to take care of it.
7356         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
7357         `ESCAPE_SPACE' instead of normal space.
7358         (word_space_node::asciify): New method.
7359         (unbreakable_space_node::asciify): New method.
7360         (word_space_node::merge_space): New method.
7361         * src/roff/troff/env.cc (environment::space_newline,
7362         environment::space): Add code to initialize `num_spaces' (using the
7363         constructor of `word_space_node').
7364         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
7365         Document it.
7367 2001-01-09  Werner LEMBERG  <wl@gnu.org>
7369         * man/groff_char.man: Use table header traps only conditionally.
7371 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
7373         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
7375 2001-01-08  Werner LEMBERG  <wl@gnu.org>
7377         Introducing the `box' and `boxa' requests which are similar to
7378         `di' resp. `da' but omitting a partially filled line (which is
7379         restored after ending the diversion).
7381         * src/roff/troff/div.h (diversion): Add elements to save partially
7382         filled line.
7383         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
7384         partially filled line.
7385         (divert, divert_append): Updated.
7386         (box, box_append): New functions.
7387         (init_div_requests): Use them.
7388         * src/roff/troff/env.h (environment): do_divert() is now a friend.
7389         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7391         * doc/groff.texinfo: Fix documentation of `lf' request.
7393 2000-12-25  Werner LEMBERG  <wl@gnu.org>
7395         * src/roff/troff/troff.man, NEWS: Document `writem' request.
7397 2000-12-21  Werner LEMBERG  <wl@gnu.org>
7399         Ignore `ss' request if in compatibility mode.
7401         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
7402         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
7403         * src/roff/troff/env.cc (space_size): Use it.
7405         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
7406         `ss' request in nroff mode.
7408         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
7409         changes.
7411 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
7413         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
7415 2000-12-13  Werner LEMBERG  <wl@gnu.org>
7417         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
7418         * src/preproc/eqn/neqn.man: Small fixes and additions.
7420 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
7422         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
7423         Fixing typo.
7425         * src/preproc/eqn/neqn.man: New file.
7427         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
7428         negative' warning.
7430         * tmac/e.tmac: Add `T&' macro.
7431         Fix `indent cannot be negative' warning.
7432         * tmac/s.tmac: Fix `indent cannot be negative' warning.
7434 2000-12-07  Werner LEMBERG  <wl@gnu.org>
7436         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
7438 2000-12-06  Werner LEMBERG  <wl@gnu.org>
7440         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
7441         `alloca' symbol .
7443         * MORE.STUFF: Added info about deroff for djgpp.
7445         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
7446         documentation of -rcR switch.
7448 2000-12-03  Werner LEMBERG  <wl@gnu.org>
7450         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
7451         if -rcR=1 (which is now the default in nroff mode), a single, very
7452         long page is created instead of multiple pages: All `ne' and `wh'
7453         requests are put into conditionals; a new macro `an-end' is added to
7454         be called with `em'.
7456         Some other minor cleanups.
7458         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
7460 2000-12-02  Werner LEMBERG  <wl@gnu.org>
7462         Fixing a bug which prevented hyphenation in words followed
7463         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
7465         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
7466         Adding possibly_break_line().
7467         * src/roff/troff/env.h (environment): Make possibly_break_line()
7468         public.
7470         Make `\~' usable in .tr request.
7472         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
7473         (token): Add stretchable_space().
7474         * src/roff/troff/input.cc (token::next, token::delimiter,
7475         token::description, process_input_stack, do_translate,
7476         add_to_node_list, token::process): Use it.
7477         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
7478         for adjusting the space.
7479         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
7480         for stretchable space.
7481         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
7482         (make_node): Add code for stretchable space.
7483         * src/roff/troff/env.cc (environment::add_char): Use it.
7484         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
7485         (get_copy, token::next, transparent_translate, asciify): Use it.
7487         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
7488         doc/groff.texinfo: Updated.
7489         * man/groff.man: Small reorderings.
7491 2000-11-23  Werner LEMBERG  <wl@gnu.org>
7493         * NEWS: Fixes.
7494         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
7495         option.
7496         * src/roff/troff/input.cc (main): Add `config_macro_path' and
7497         `safer_macro_path' to -M option.
7498         * src/roff/troff/troff.man: Fixes.
7500 2000-11-22  Werner LEMBERG  <wl@gnu.org>
7502         Use safer path (except for config files) if -U isn't specified.  Add
7503         a special macro path (without home and current directory) for config
7504         files.  Add home directory to unsafe path for consistency.  Don't
7505         include the home directory in the font path.
7507         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
7508         `macro_path'.
7509         * src/include/macropath.h: Add `config_macrp_path'.
7510         * src/libs/libgroff/fontfile.cc: Fix font path.
7511         * src/roff/troff/input.cc (process_startup_file): Use
7512         `config_macro_path'.
7513         (main): Select unsafe path if -U is given.
7515         * src/preproc/eqn/main.cc (main): Fixing search path for
7516         configuration file.
7517         * src/preproc/eqn/eqn.man: Updated.
7519         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
7520         Updated.
7522         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
7523         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
7524         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
7525         src/devices/grotty/grotty.man: Updated.
7527         * Makefile.in: Fix comments.
7529 2000-11-17  Werner LEMBERG  <wl@gnu.org>
7531         * tmac/safer.tmac: Empty file added (again) for compatibility
7532         reasons.
7533         * tmac/Makefile.sub: Updated.
7535 2000-11-16  Werner LEMBERG  <wl@gnu.org>
7537         * src/devices/grodvi/dvi.cc (main),
7538         src/devices/grohtml2/post-html.cc (main),
7539         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
7540         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
7541         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
7542         (main), src/preproc/html2/pre-html.cc (main),
7543         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
7544         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
7545         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
7546         (main), src/utils/hpftodit/hpftodit.cc (main),
7547         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
7548         (main), src/utils/lookbib/lookbib.cc (main),
7549         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
7550         (main): Use stdout for -v.
7551         * src/roff/groff/groff.cc (run_commands),
7552         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
7553         to make direct printing to stdout possible.
7554         * src/roff/groff/pipeline.h: Updated.
7556         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
7557         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
7558         * src/utils/afmtodit/afmtodit.man: Updated.
7560         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
7561         (version): New function.
7562         (usage): Updated.
7563         * src/utils/addftinfo/addftinfo.man: Updated.
7565         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
7566         Fixing copyright dates.
7568         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
7569         replacing it.
7571         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
7572         version_string.
7574         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
7576 2000-11-15  Werner LEMBERG  <wl@gnu.org>
7578         In all programs, make -v return immediately with exit status 0 to
7579         be compliant with the GNU standard.
7581         * src/devices/grodvi/dvi.cc (main),
7582         src/devices/grohtml2/post-html.cc (main),
7583         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
7584         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
7585         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
7586         (main), src/preproc/html2/pre-html.cc (main),
7587         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
7588         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
7589         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
7590         (main): Implement it.
7591         * NEWS: Updated.
7593         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
7594         and postprocessors to the -v option.
7596         * src/roff/grog/grog.pl: Implement -v.
7597         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
7598         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
7600         * src/roff/nroff/nroff.sh: Implement -v.
7601         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
7602         * src/roff/nroff/nroff.man: Updated.
7603         
7604         * src/preproc/eqn/main.cc (main): Fix comment typo.
7606         * MORE.STUFF: Added info about djgpp port of grap.
7608 2000-11-14  Werner LEMBERG  <wl@gnu.org>
7610         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
7611         mode (or rather, implemented non-compatibility mode).
7612         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
7614         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
7615         replacing it -- we don't find gxditview otherwise.
7616         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
7618         * src/preproc/pic/depend: Removed.  Unnecessary.
7620         Implemented dummy keyword `solid' in pic for compatibility with
7621         AT&T pic.
7623         * lex.cc (lookup_keyword): Added `solid'.
7624         * pic.y: Added SOLID with dummy rule.
7625         * pic.cc, pic_tab.h: Regenerated.
7626         * doc/pic.ms: Updated.
7628 2000-11-13  Werner LEMBERG  <wl@gnu.org>
7630         For security reasons, don't use the current directory but the home
7631         directory while searching and scanning troffrc and troffrc-end.
7632         Similarly, replace the current directory with the home directory
7633         in the font path.
7635         * Makefile.in (fontpath, tmacpath): Remove current directory.
7637         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
7638         two parameters `add_home' and `add_current'.
7639         (search_path::~search_path, search_path::command_line_dir,
7640         search_path::open_file): Remove tests for `dirs' being zero.
7641         * src/include/searchpath.h: Adjust.
7642         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
7643         `safer_macro_path'.
7644         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
7646         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
7647         * src/roff/troff/input.cc: Use `mac_path', initialized with
7648         `macro_path'.
7649         (process_startup_file): Set `mac_path' to `safer_macro_path'.
7650         * src/roff/troff/env.cc: Use `mac_path'.
7652         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
7654         * NEWS, man/roff.man, src/roff/troff/troff.man,
7655         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
7656         Updated.
7658 2000-11-12  Werner LEMBERG  <wl@gnu.org>
7660         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
7662         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
7663         * configure.in: Fix typo in comment.
7664         * configure: Regenerated.
7666         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
7667         copyright dates.
7669 2000-11-08  Werner LEMBERG  <wl@gnu.org>
7671         Add system tmac directory (/usr/local/lib/groff/site-tmac).
7673         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
7674         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
7675         $(systemtmacdir).
7676         Use @libdir@.
7677         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
7678         * tmac/Makefile.sub (install_data): Create
7679         $(systemtmacdir) and $(localtmacdir).
7680         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
7681         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
7682         NEWS, doc/groff.texinfo: Updated and minor fixes.
7684         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
7685         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
7686         $(systemtmacdir) since the wrapper files are platform-dependent.
7688 2000-11-01  Werner LEMBERG  <wl@gnu.org>
7690         * doc/groff.texinfo: Fix typo.
7692 2000-10-26  Werner LEMBERG  <wl@gnu.org>
7694         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
7695           tmac.doc.old -> doc-old.tmac
7696           tmac.an.old  -> an-old.tmac
7698         * tmac/tmac.*: Moved to ...
7699         * tmac/*.tmac: this.
7700         * tmac/man.local: Fix comment.
7701         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
7702         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
7703         Added some `FILES' sections.  More use of @...@ directives.  Other
7704         minor updates.
7705         * arch/djgpp/README, font/devutf8/NOTES: Updated.
7706         * doc/homepage.ms, doc/groff.texinfo: Updated.
7707         * man/groff.man, man/roff.man: Updated.
7708         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
7709         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
7710         src/devices/grotty/grotty.man: Updated.
7711         * src/preproc/pic/pic.man: Updated.
7712         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
7713         instead of -mdoc.old.
7714         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
7715         * src/roff/nroff/nroff.man: Updated.
7716         * NEWS: Updated.
7718         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
7720         * tmac/mm.diff: Removed -- it has no use now since the mm package
7721         is part of groff.
7723         * tmac/*: Removed trailing spaces.
7725         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
7726         the tmac subdirectory also).
7728         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
7729         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
7730         stuff since it is no longer needed.
7732         * README, PROBLEMS: Updated.
7734 2000-10-25  Werner LEMBERG  <wl@gnu.org>
7736         Invert current behaviour: Search first FOOBAR.tmac, then
7737         tmac.FOOBAR.
7739         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
7740         (open_mac_file, macro_source): Implement it.
7741         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
7742         doc/groff.texinfo, NEWS: Document it.
7744         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
7745         Small documentation improvements.
7747         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
7748         subdirectory also).
7750         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
7752 2000-10-24  Werner LEMBERG  <wl@gnu.org>
7754         Add local tmac directory (groff/site-tmac).
7756         * Makefile.in: Add $(localtmacdir).
7757         (uninstall_dirs): Add $(localtmacdir).
7758         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
7759         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
7760         in $(localtmacdir).  Create $(localtmacdir).
7761         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
7762         Updated and minor fixes.
7764         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
7766         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
7768 2000-10-23  Werner LEMBERG  <wl@gnu.org>
7770         Move hyphen.us to tmac directory.
7772         * src/roff/troff/hyphen.us: Removed.
7773         * src/tmac/hyphen.us: Added.
7774         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
7776         Change installation structure for data files from .../groff/... to
7777         .../groff/<version><revision>/... to be conform with other GNU
7778         programs.
7780         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
7781         doc/Makefile: Implement it.
7782         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
7783         * configure: Updated.
7784         * arch/djgpp/README, font/devutf8/NOTES: Use it.
7785         * NEWS: Document it.
7786         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
7787         @MACRODIR@ instead of hard-coded directories.
7789 2000-10-22  Werner LEMBERG  <wl@gnu.org>
7791         Implement $GROFF_BIN_PATH environment variable (which defaults to
7792         $bindir) used for child programs of groff and similar wrappers.
7794         * gendefs.sh: Improve documentation.
7795         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
7796         src/preproc/eqn/Makefile.sub (neqn),
7797         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
7798         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
7799         $GROFF_BIN_PATH.
7800         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
7801         $GROFF_PATH__ (the latter for communication with troff).
7802         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
7803         set.
7804         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
7805         doc/groff.texinfo: Document it.
7807         * doc/groff.texinfo: Improve documentation of troff's -a option.
7809 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
7811         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
7812         non-intrusive eol marker.
7813         (troff_output_file::determine_line_limits): New function.
7814         (troff_output_file::draw): Use it.
7815         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
7816         output_pending_lines() instead of output_line().
7817         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
7818         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
7819         createImage): Small fixes.
7820         
7821 2000-10-14  Werner LEMBERG  <wl@gnu.org>
7823         Replace tmac.safer with a real secure solution.
7825         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
7826         system_request, pipe_output): Disable requests if in safer mode.
7827         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
7828         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
7829         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
7830         doc/groff.texinfo, src/roff/groff/groff.man,
7831         src/roff/troff/troff.man, arch/djgpp/README: Updated.
7833         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
7834         (resource_manager::output_prolog): Replace setenv() with putenv().
7836 2000-10-09  Werner LEMBERG  <wl@gnu.org>
7838         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
7839         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
7840         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
7841         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
7842         compilation errors with some compilers.  It seems that this code
7843         is no longer necessary -- if yes, it is easy to add some #ifdef's
7844         for that particular old-fashioned compiler.
7846         * MORE.STUFF: Added info about Meta-tbl.
7848         * doc/groff.texinfo: Added more info about `.if "..."..."'.
7850 2000-10-07  Werner LEMBERG  <wl@gnu.org>
7852         Adding a new escape sequence \B'...': If the string between
7853         the delimiters is a valid numeric expression, return the character
7854         `1', and `0' otherwise.  This is an analogon to \A.
7856         * src/roff/troff/input.cc (do_expr_test): Implement it.
7857         (token::next): Use it.
7858         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
7860         * tmac/tmac.trace: Made independent from escape character.
7862 2000-10-06  Werner LEMBERG  <wl@gnu.org>
7864         Adding a new request .dei: define indirect.  The first and second
7865         parameter of .dei are taken from string registers instead directly;
7866         this very special request is needed to make tmac.trace independent
7867         from the escape character (which might even be disabled).
7869         * src/roff/troff/input.cc (do_define_macro): Implement it.
7870         (define_macro_indirect): New function.
7871         (init_input_requests): Use it.
7873         Adding two requests .ecs and .ecr: Save and restore the escape
7874         character.  These two requests are needed to make tmac.trace
7875         independent from the escape character (which might even be
7876         disabled).
7878         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
7879         Implement it.
7880         (init_input_requests): Use it.
7882         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
7884 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
7886         Adding a new option -P and new environment variable GROPS_PROLOGUE
7887         to grops, selecting a different prologue file (minor modifications
7888         by WL).
7890         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
7891         src/devices/grops/ps.cc (main): Implement it.
7892         * src/devices/grops/grops.man, NEWS: Document it.
7894 2000-09-22  Werner LEMBERG  <wl@gnu.org>
7896         * INSTALL: Add info about selecting paper format.
7898 2000-09-21  Werner LEMBERG  <wl@gnu.org>
7900         * src/roff/troff/input.cc (main): Fixing compiler warning.
7901         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
7902         strings.h from the former to the latter.
7903         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
7904         stuff from the former to the latter.
7906 2000-09-11  Werner LEMBERG  <wl@gnu.org>
7908         Implementing two new requests .tm1 and .tmc: The former is similar
7909         to .tm but can output leading spaces; its syntax is similar to
7910         defining a string, i.e., a `"' can be used to mark the beginning of
7911         the string to be written to stderr: `.tm1 " test'.  The latter is
7912         similar to .tm1 but doesn't write out a final newline character.
7914         * src/roff/troff/input.cc (terminal1, terminal_continue,
7915         do_terminal): New functions.
7916         (init_input_requests): Use them.
7917         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
7919 2000-09-09  Werner LEMBERG  <wl@gnu.org>
7921         * tmac/groff_mdoc.samples.man: Small fixes.
7923 2000-09-08  Werner LEMBERG  <wl@gnu.org>
7925         * tmac/groff_mdoc.man: Fixing typo.
7927 2000-09-02  Werner LEMBERG  <wl@gnu.org>
7929         Implementing a .nop request which does nothing.
7931         * src/roff/troff/input.cc (nop_request): New function.
7932         (init_input_requests): Use it.
7933         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
7935 2000-09-01  Werner LEMBERG  <wl@gnu.org>
7937         * doc/groff.texinfo: Added some comments.
7939 2000-08-30  Werner LEMBERG  <wl@gnu.org>
7941         * src/roff/troff/TODO: Updated.
7943 2000-08-25  Werner LEMBERG  <wl@gnu.org>
7945         * doc/groff.texinfo: Fix comment how to compile the DVI file.
7947 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
7949         * font/devps/generate/Makefile (SHELL): Define explicitly to
7950         "/bin/sh", for non-Unix platforms.
7951         (extraclean): Use a more portable "" quoting instead of a
7952         backslash (which doesn't work on DOS/Windows).
7953         
7954         * font/devlj4/generate/Makefile (extraclean): Ditto.
7956         * font/devdvi/generate/Makefile (extraclean): Ditto.
7958 2000-08-25  Werner LEMBERG  <wl@gnu.org>
7960         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
7961         src/roff/troff/troff.man: Document Eli's latest changes.
7963 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
7965         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
7966         macro file names of the form NAME.tmac as well as tmac.NAME.
7968 2000-08-25  Werner LEMBERG  <wl@gnu.org>
7970         * src/include/posix.h: Remove definition of FILENAME_MAX.
7972         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
7973         `sys_fatal' and `stop' function().
7975         * test-groff: Updated.
7977 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
7979         Added the new troff command .output <arg> to suppress output (while
7980         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
7981         registers (for passing the output dimensions to the output device).
7983         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
7984         parameter.
7985         * src/roff/troff/node.h, src/roff/troff/node.cc
7986         (troff_output_file::really_print_line,
7987         ascii_output_file::really_print_line,
7988         supress_output_file::really_print_line): Use `width' parameter.
7989         (troff_output_file::really_on, troff_output_file::really_off,
7990         output_file::on, output_file::off, real_output_file::on,
7991         real_output_file::off, real_output_file::really_on,
7992         real_output_file::really_off): New functions.
7993         (real_output_file:public output_file): New variable `output_on'.
7994         (real_output_file::begin_page, real_output_file::copy_file,
7995         real_output_file::transparent_char, real_output_file::print_line):
7996         Use it.
7997         (real_output_file::print_line): Use check_output_limits.
7998         * src/roff/troff/reg.h, src/roff/troff/request.h,
7999         src/roff/troff/input.cc (assign_registers): New function to remove
8000         two `goto's.
8001         (do_ps_file): Use it.
8002         (check_output_limits, reset_output_registers, output_request,
8003         init_output_requests): New functions.
8004         (init_input_requests): Updated.
8006         Added new grohtml2 device and html2 preprocessor (coding
8007         not yet finished) which will eventually replace grohtml.
8009         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
8010         Updated.
8011         * src/include/htmlindicate.h, src/include/htmlindicate
8012         (html_begin_suppress, html_end_suppress): New functions.
8013         * src/preproc/tbl/main.cc: Use it.
8014         * src/roff/groff/groff.cc: Add support for html2 device (which will
8015         automatically invoke the html2 preprocessor).
8016         * src/roff/troff/input.cc (is_html2): New variable.
8017         * src/roff/troff/troff.h, src/roff/troff/env.h,
8018         src/roff/troff/env.cc (environment::add_html_tag): New function
8019         (uses `is_html2').
8020         (environment::do_break): Use it.
8021         * font/devhtml2/*: New files.
8022         * src/devices/grohtml2: New device.
8023         * src/preproc/html2: New preprocessor.
8024         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
8026 2000-08-23  Werner LEMBERG  <wl@gnu.org>
8028         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
8030 2000-08-22  Werner LEMBERG  <wl@gnu.org>
8032         * src/include/lib.h: Provide a fix for IRIX to not include
8033         groff-getopt.h.
8035 2000-08-18  Werner LEMBERG  <wl@gnu.org>
8037         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
8038         since some non-GNU sed programs can't handle null regexps.
8039         * configure, src/preproc/eqn/Makefile.sub,
8040         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
8042         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
8043         bug (string.h and strings.h are both needed according to latest
8044         POSIX standard).
8046         * MORE.STUFF: Added info about unroff and troffcvt.
8048 2000-08-08  Werner LEMBERG  <wl@gnu.org>
8050         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
8051         used before -ms.
8053         * tmac/tmac.man.old: Remove unused number register.
8055         * tmac.doc: Minor documentation fix.
8057 2000-08-07  Paul Eggert  <eggert@twinsun.com>
8059         * src/roff/groff/pipeline.c (is_system_shell):
8060         Fix typo: "monocased_shell" no longer exists.
8062 2000-08-07  Paul Eggert  <eggert@twinsun.com>
8064         Remove FILENAME_MAX limits.
8066         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
8067         that the argument length is less than FILENAME_MAX.
8068         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
8069         Use struct hack to allocate and free file name.
8070         (struct xtmpfile_list): fname is now part of the structure,
8071         not a pointer to another string.
8073 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
8075         * src/include/posix.h: Add a default value for FILENAME_MAX.
8077 2000-08-06  Paul Eggert  <eggert@twinsun.com>
8079         Add support for new BSD-style man pages (with ".Dd" instead of
8080         ".TH"), so that "groff -man" understands both styles, even
8081         when running "groff -man" on a host whose system man page
8082         macros don't support ".Dd".
8084         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
8085         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
8086         in case the system man macros don't define Dd or TH.
8088         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
8089         * tmac/tmac.an: New one-line file.
8090         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
8092 2000-08-06  Werner LEMBERG  <wl@gnu.org>
8094         * src/roff/troff/troff.man: Fixing typos.
8096 Version 1.16.1 released
8097 =======================
8099 2000-07-31  Werner LEMBERG  <wl@gnu.org>
8101         Preparing release 1.16.1.
8103         * REVISION: Revision number set to 1.
8104         * MORE.STUFF: Added info about port to DOS.
8105         * NEWS, win32-diffs: Updated.
8107         * src/include/nonposix.h: Remove first line -- this file is used
8108         in C also.
8110         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
8111         link to it.
8113 2000-07-30  Werner LEMBERG  <wl@gnu.org>
8115         * doc/texinfo.tex: Update to latest version.
8117 2000-06-28  Paul Eggert  <eggert@twinsun.com>
8119         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
8120         commands that fail.  Don't assume that "export a=b" is valid shell
8121         syntax.  This is needed for Solaris 2.5.1.
8123         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
8124         comment about missing Solaris headers.
8126         * PROBLEMS: Add section about problems with Sun Make and VPATH.
8128 2000-06-25  Werner LEMBERG  <wl@gnu.org>
8130         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
8131         SET_BINARY().
8133         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
8135         * win32-diffs: Updated.
8136         * README.WIN32: Added CRs to make all Windows editors happy.
8138         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
8139         src/roff/groff/pipeline.c).
8141 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
8143         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
8144         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
8146 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
8148         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
8149         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
8150         are binary files.
8151         (main): Support non-Posix systems with several different styles of
8152         slash characters in file names.
8154         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
8155         (main) [SET_BINARY]: Switch stdin into binary mode.
8157         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
8158         (main): Support file names with several possible slash-type
8159         characters, as given by DIR_SEPS[] in nonposix.h.
8160         (main) [__MSDOS__]: If renaming the temporary index file fails
8161         because it has more than one dot in its trunk, replace the dot
8162         with an underscore and try again.
8163         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
8164         Newline.
8165         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
8167         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
8168         (File::File): Open the input file in binary mode.  Strip CR
8169         characters from each CR-LF pair.
8170         (xbasename): Support file names with several possible slash-type
8171         characters, as given by DIR_SEPS[] in nonposix.h.
8173         * src/include/Makefile.sub (HDRS): Add nonposix.h.
8175         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
8176         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
8177         [!_POSIX_VERSION]: Define for traditional Unix systems.
8178         (real_output_file::real_output_file): Remove the MSVC-specific
8179         call to popen, use instead POPEN_WT, appropriately defined on
8180         nonposix.h.  #include nonposix.h.
8181         (real_output_file::~real_output_file): Remove the MSVC-specific
8182         call to pclose, a suitable macro is now defined on nonposix.h.
8183         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
8184         and WEXITSTATUS instead of assuming traditional Unix
8185         interpretation of the status returned by pclose.
8187         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
8188         call to popen, use POPEN_RT instead (appropriately defined on
8189         nonposix.h).  #include nonposix.h.
8190         (ps_bbox_request): Open the PostScript file in binary mode.
8191         Close the file after processing it.
8192         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
8193         nonposix.h.
8195         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
8196         A version of run_pipeline that doesn't use `fork'.
8197         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
8198         (system_shell_name, system_shell_dash_c)
8199         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
8200         the ugliness of testing DOS/Windows file names for equality, and
8201         support both stock shells and ports of Unix shells.
8203         * src/roff/groff/groff.cc: #include nonposix.h.
8204         (BSHELL): Definition moved to nonposix.h.
8205         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
8206         instead of a literal "-c".
8207         (xbasename): Support file names with several possible slash-type
8208         characters, as given by DIR_SEPS[] in nonposix.h.
8209         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
8210         of literal strings.
8212         * src/preproc/soelim/soelim.cc: #include nonposix.h.
8213         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
8215         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
8216         pic_tab.h.
8218         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
8220         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
8221         eqn_tab.h.
8223         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
8225         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
8226         P_tmpdir is defined, use it instead of the literal "/tmp".
8227         (remove_tmp_files, add_tmp_file): New functions.
8228         (xtmpfile): Record temporary files and register an atexit function
8229         to delete them explicitly, instead of relying on the OS to do
8230         that, which doesn't work on non-Unix systems.
8232         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
8233         (search_path::search_path): Use PATH_SEP instead of a literal
8234         colon.
8235         (search_path::command_line_dir): Ditto.
8236         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
8237         to support non-Posix systems.
8239         * src/libs/libbib/search.cc: #include nonposix.h.
8240         (search_list::add_file): Open the file in binary mode.
8242         * src/libs/libbib/linear.cc: #include nonposix.h.
8243         (file_buffer::load): Remove \r characters preceding \n from the
8244         loaded buffer.
8246         * src/libs/libbib/index.cc: #include nonposix.h.
8247         (make_index_search_item): Open index_filename in O_BINARY mode.
8248         (index_search_item_iterator::get_tag): Ditto.  Remove \r
8249         characters before \n characters.
8250         (index_search_item::check_files): Open files in binary mode.
8251         (index_search_item::munge_filename): Support DOS-style file names
8252         with backslashes and drive letters, use IS_ABSOLUTE.
8254         * src/devices/grops/ps.cc: #include nonposix.h.
8255         (main) [SET_BINARY]: Switch stdout to binary mode.
8257         * src/devices/grolj4/lj4.cc: #include nonposix.h.
8258         (main) [SET_BINARY]: Switch stdout to binary mode.
8260         * src/devices/grolbp/lbp.cc: #include nonposix.h
8261         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
8263         * src/devices/grodvi/dvi.cc: #include nonposix.h.
8264         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
8265         nonposix.h).
8266         (main) [SET_BINARY]: Switch stdout to binary mode.
8267         [_MSC_VER]: Remove an explicit call to _setmode.
8269         * src/include/nonposix.h: New file.
8271         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
8272         operation when building with DJGPP.
8273         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
8274         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
8275         ENVSETUP.
8277         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
8278         MS-DOS.
8279         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
8280         etc. can include a semi-colon on DOS/Windows.
8281         (depend.temp): Use depend1.temp instead of depend.temp1, to
8282         prevent files from overerwiting each other on 8+3 filesystems.
8284         * gendef.sh (t): Change definition to work with DOS/Windows.
8286         doc/groff.texinfo: Apart of some typo corrections, I also changed
8287         some index entris, to make them more non-ambiguous, and also put
8288         @ignore around some parts that are not yet written, to allow the
8289         Info output be readable.
8291 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
8293         Replaced specific checks for function declarations with a generic
8294         routine taken from GNU bfd.
8296         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
8297         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
8298         * configure.in: Use it.
8299         * src/devices/grolbp/lbp.cc, src/include/lib.h,
8300         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
8301         src/roff/groff/groff.cc: Use it.
8302         * Makefile.in, configure: Updated.
8304 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
8306         * src/devides/grolbp/lbp.h: Removed unused variables.
8308 2000-05-31  Keith Thompson  <kst@sdsc.edu>
8310         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
8311         strncasecmp().
8313 2000-05-31  Werner LEMBERG  <wl@gnu.org>
8315         * aclocal.m4 (GROFF_SRAND): New function to test the return value
8316         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
8317         * configure.in: Use it.
8318         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
8319         * configure, Makefile.in: Updated.
8321         * configure.in: Add test for strncasecmp().
8322         * src/include/lib.h: Use it.
8324 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
8326         * src/preproc/grn/Makefile.sub: Add MLIB.
8328 2000-05-29  Nix  <nix@esperi.demon.co.uk>
8330         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
8332 2000-05-29  Werner LEMBERG  <wl@gnu.org>
8334         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
8336         * PROBLEMS: Small update.
8338         * src/devices/grolbp/lbp.cc: Various small fixes.
8340 2000-05-28  Keith Thompson  <kst@sdsc.edu>
8342         * src/roff/nroff/nroff.sh: Fix main loop syntax.
8344         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
8346 2000-05-25  Werner LEMBERG  <wl@gnu.org>
8348         * man/roff.man: Removed unused macro.
8350 2000-05-24  Werner LEMBERG  <wl@gnu.org>
8352         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
8353         This is needed e.g. if you do
8354         `make distclean; ./configure; make dist'.
8356 Version 1.16 released
8357 =====================
8359 2000-05-23  Werner LEMBERG  <wl@gnu.org>
8361         Adding font CWI (constant width italic) to devdvi.
8363         * font/devdvi/CWI: New file.
8364         * font/devdvi/generate/Makefile: Add generating rule.
8365         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
8366         tmac/tmac.dvi: Use it.
8367         * NEWS: Announce it.
8369         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
8370         * font/devlj4/generate/Makefile: Cosmetic changes only.
8372         * man/groff.man: Removed most of the redundant description of
8373         special characters (which is in groff_char.man).  Added font
8374         translation CB->CR for devdvi.  Other minor fixes.
8376         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
8377         (registered) symbols.
8379 2000-05-22  Werner LEMBERG  <wl@gnu.org>
8381         * doc/Makefile: Added rule for creating info files.
8383         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
8384         AMS font metrics.
8385         * font/devdvi/generate/Makefile: Fixed dependencies.
8387         * font/devps/*: Regenerated.  Heavy changes for Bookman and
8388         NewCentury Schoolbook!
8389         * font/devps/generate/afmname: Will now run with GNU awk.
8390         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
8391         * font/devps/generate/Makefile: Cosmetic changes only.
8393 2000-05-21  Werner LEMBERG  <wl@gnu.org>
8395         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
8396         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
8397         `.SS' now produces a heading with a smaller size than `.SH'. 
8398         Completely formatted.
8399         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
8401         * man/groff.man: Improved table appearance.  Use of `eo' request
8402         to reduce number of doubled backslashes in macro definitions.
8403         Replacing `\e' with `\(rs'.  Other minor fixes.
8405         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
8406         to have correct line number.
8408         * INSTALL: Small improvement.
8410 2000-05-20  Bernd Warken  <bwarken@mayn.de>
8412         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
8413         WL).
8415 2000-05-19  Bernd Warken  <bwarken@mayn.de>
8417         * man/groff.man: Complete update (with a lot of corrections by WL).
8419 2000-05-18  Werner LEMBERG  <wl@gnu.org>
8421         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
8423         * font/*/*: Implement it.
8424         * man/groff_char.man, NEWS: Document it.
8426         * src/include/unix.h: Removed.  It isn't used.
8428         * doc/groff.texinfo: Slight improvements.
8430 2000-05-17  Werner LEMBERG  <wl@gnu.org>
8432         * README, win32-diffs: Small fixes and improvements.
8434 2000-05-16  Werner LEMBERG  <wl@gnu.org>
8436         * FDL: New file (the Free Documentation License version 1.1).
8438         * doc/groff.texinfo: Added many start-up values for gtroff.
8439         Some structural improvements of the source code.
8441 2000-05-15  Werner LEMBERG  <wl@gnu.org>
8443         * src/roff/troff/input.cc: Added small comment about troffrc-end.
8444         * src/roff/troff/troff.man: Added info about troffrc-end.
8446 2000-05-14  Werner LEMBERG  <wl@gnu.org>
8448         * Makefile.in (EXTRADIRS): Fix typos.
8449         (dist): Handle deletion of old .tar.gz file correctly.
8450         (DISTDIRS): Include all tty output devices.
8452         * doc/groff.texinfo: Adding more cross references; countless other
8453         fixes.
8455 2000-05-13  Werner LEMBERG  <wl@gnu.org>
8457         * MORE.STUFF: Added Robert Marks's utilities.
8459 2000-05-12  Werner LEMBERG  <wl@gnu.org>
8461         Added win32 port contributed by Blake McBride
8462         <blake@florida-software.com>.
8464         * README.WIN32, win32-diffs: New files.
8465         * NEWS: Updated.
8467         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
8468         (tmove, tmove2): Added parentheses to avoid compiler warnings.
8469         (change): Removed unused variables.
8471         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
8472         (savebounds): Changed return value from `int' to `void'.
8473         * src/preproc/grn/hdb.cc: Ditto.
8475         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
8476         final backslash in comment to avoid compiler warning.
8478         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
8480         * doc/groff.texinfo: More fixes.
8482 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
8484         * tmac/tmac.doc: Documentation fix.
8486 2000-05-11  Werner LEMBERG  <wl@gnu.org>
8488         * doc/groff.texinfo: Reading the source code shows up a lot of
8489         omissions and incorrect data...  More conversion to @Deffn macros.
8491 2000-05-10  Werner LEMBERG  <wl@gnu.org>
8493         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
8494         dependency.
8496         * src/roff/troff/request.h: Removing unused `no_break_flag'.
8498 2000-05-09  Werner LEMBERG  <wl@gnu.org>
8500         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
8501         improvements.
8503         * doc/groff.texinfo: Extended history section.  More conversion to
8504         @Deffn macros.  More .tr documentation.
8506 2000-05-07  Werner LEMBERG  <wl@gnu.org>
8508         * doc/groff.texinfo: Completed tab section.  Added info about
8509         fields.
8511 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
8513         * PROBLEMS: Describe configure script fix for OS/390 Unix.
8515 2000-05-05  Werner LEMBERG  <wl@gnu.org>
8517         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
8518         LaTeX 2e).
8519         * NEWS: Document it.
8521         * man/troff.man: Minor optical improvements.
8523 2000-05-03  Werner LEMBERG  <wl@gnu.org>
8525         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
8527         * font/*/*: Implement it.
8528         * man/groff_char.man, NEWS: Document it.
8530 2000-05-02  Werner LEMBERG  <wl@gnu.org>
8532         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
8533         expansion.
8534         * NEWS: Document the three new man pages.
8536         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
8537         * configure: Updated.
8539         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
8541 2000-05-01  Werner LEMBERG  <wl@gnu.org>
8543         Added grap support to grog.
8545         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
8546         * src/roff/grog/grog.man: Document it.
8548         * doc/groff.texinfo, NEWS: Add info about grap support.
8550         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
8551         (with slight fixes by me).
8553         * tmac/groff_tmac.man: New file documenting tmac mechanism.
8554         * tmac/Makefile.sub: Add groff_tmac.man.
8555         * man/roff.man: New file giving overview of roff system.
8556         * man/troff.man: A short reference of troff.
8557         * man/Makefile.sub: Add roff.man and troff.man.
8559 2000-04-30  Werner LEMBERG  <wl@gnu.org>
8561         Added grap support to groff.
8563         * src/roff/groff/groff.cc: Implement it.
8564         * src/roff/groff/groff.man: Document it.
8566         * src/devices/grotty/grotty.man: Add cp1047 device.
8567         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
8568         Ditto.
8569         * src/roff/groff/groff.man: Ditto.
8570         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
8571         * doc/groff.texinfo: Ditto.
8573         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
8574         for cp1047.
8576 2000-04-29  Werner LEMBERG  <wl@gnu.org>
8578         * man/groff_char.man: Add `pc' glyph.
8579         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
8580         * tmac/tmac.tty: Add `pc' glyph.
8581         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
8582         we use cp1047 output device.
8584         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
8585         there are still hardcoded latin1->unicode values in utf8's font
8586         definition files.
8587         * configure: Updated.
8588         * NEWS: Minor clarification.  Updated.
8590         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
8591         Unix.
8593 2000-04-28  Werner LEMBERG  <wl@gnu.org>
8595         Adding EBCDIC code page 1047.
8597         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
8598         font/devcp1047/DESC.proto: New files.
8600         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
8601         either ascii/latin1 or cp1047.
8602         * Makefile.in: Use it.
8603         * configure: Updated.
8605         Replacing and/or adding `md' (mathdot) glyph with `pc'
8606         (periodcentered) in all text fonts.
8608         * font/*/*: Change it.
8610 2000-04-27  Werner LEMBERG  <wl@gnu.org>
8612         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
8614         * configure.in: Add check for strings.h.
8615         * src/include/driver.h: Use HAVE_STRINGS_H.
8616         * src/devices/grolbp/lpb.cc: Remove string.h.
8618         * src/include/groff-getopt.h: New file.  It will be used instead of
8619         getopt.h (to be included in lib.h) to avoid endless problems with
8620         picky C++ compilers.
8621         * src/include/lib.h: Use groff-getopt.h.
8622         * src/include/Makefile.sub: Updated.
8624         * configure: Updated.
8625         * Makefile.in: Updated.
8627         * NEWS: Mention EBCDIC support.
8629 2000-04-26  Werner LEMBERG  <wl@gnu.org>
8631         * TODO: Some additions.
8633 2000-04-25  Werner LEMBERG  <wl@gnu.org>
8635         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
8636         of mso request.
8638 2000-04-23  Werner LEMBERG  <wl@gnu.org>
8640         * src/roff/troff/troff.man: Minor fixes.
8642 2000-04-22  Werner LEMBERG  <wl@gnu.org>
8644         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
8645         `.T' string register and the incompatible definition of the `.T'
8646         number register (compared to Unix troff).
8648         * man/groff_char.man: Add some missing characters.
8649         * font/devutf8/NOTES: Update.
8651 2000-04-21  Werner LEMBERG  <wl@gnu.org>
8653         * src/include/htmlindicate.h, src/include/lib.h,
8654         src/include/posix.h: Fix copyright.
8656         * src/include/Makefile.sub: Update.
8658 2000-04-20  Werner LEMBERG  <wl@gnu.org>
8660         * src/roff/troff/input.cc (input_char_description): Removing
8661         superfluous space char.
8663         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
8665         * doc/groff.texinfo: Document EBCDIC.
8667 2000-04-19  Werner LEMBERG  <wl@gnu.org>
8669         Introducing `shc' as the glyph name for the soft hyphen character.
8671         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
8672         font/devlatin1/R.proto: Use it.
8674         * NEWS: Updated.
8676 2000-04-18  Werner LEMBERG  <wl@gnu.org>
8678         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
8679         dependency on ASCII order.
8681 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
8683         * src/libs/libgroff/illegal.c: Added EBCDIC table.
8684         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
8686         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
8687         to increase portability.
8689 2000-04-15  Werner LEMBERG  <wl@gnu.org>
8691         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
8692         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
8693         the generic `\n' if under OS/390 Unix.
8695         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
8697         * configure: Regenerated.
8699 2000-04-14  Werner LEMBERG  <wl@gnu.org>
8701         * doc/groff.texinfo: More conversions to @Deffn.
8703 2000-04-12  Werner LEMBERG  <wl@gnu.org>
8705         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
8706         with `:'.
8708         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
8710 2000-04-10  Werner LEMBERG  <wl@gnu.org>
8712         * doc/groff.texinfo: More conversions to @Deffn.
8714 2000-04-08  Werner LEMBERG  <wl@gnu.org>
8716         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
8717         Updated to latest version (glibc 2.1.3).
8719 2000-04-07  Werner LEMBERG  <wl@gnu.org>
8721         * doc/Makefile (clean): Include more index files.
8722         Add rule texinfo->dvi.
8724 2000-04-05  Werner LEMBERG  <wl@gnu.org>
8726         * doc/groff.texinfo: Added new index `op' for operators.  More
8727         info on end of sentence characters.  More use of @Deffn.
8729 2000-03-30  Werner LEMBERG  <wl@gnu.org>
8731         * */*.man: Adding a note that a whitespace can be inserted between
8732         a command line option and its parameter -- we are using GNU getopt.
8734         * src/roff/groff/groff.man: Add example of `-m mandoc'.
8736 2000-03-28  Werner LEMBERG  <wl@gnu.org>
8738         Correct anachronism of calling the man macro file with `-man'
8739         instead of `-m man' etc.
8741         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
8742         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
8743         load tmac.<package>.
8745         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
8747         * NEWS: Updated.
8749         * doc/groff.texinfo: Updated.
8751         * tmac/groff_man.man: Copyright added.
8753 2000-03-27  Werner LEMBERG  <wl@gnu.org>
8755         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
8756         typeset the request resp. escape name with a tt font -- due to a
8757         bug in texinfo.tex it is necessary to use the `-e' switch with
8758         texi2dvi.
8760         Improving info about usage of groff units.
8762         Other minor fixes.
8764 2000-03-20  Werner LEMBERG  <wl@gnu.org>
8766         * doc/groff.texinfo: Added section about man macro package
8767         (I've basically taken groff_man.man).  Introducing new indices `ma'
8768         for macros/strings and `gl' for glyph names.  Other minor fixes.
8770         * tmac/groff_man.man: Fixed some typos.
8772 2000-03-19  Werner LEMBERG  <wl@gnu.org>
8774         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
8775         Other minor fixes.
8777         * doc/texinfo.tex: New file.
8779 2000-03-18  Werner LEMBERG  <wl@gnu.org>
8781         * doc/groff.texinfo: Improved section on number registers.  Other
8782         minor updates.
8784 2000-03-16  Werner LEMBERG  <wl@gnu.org>
8786         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
8787         synopsis.
8789         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
8790         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
8791         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
8792         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
8794         * src/preproc/grn/grn.man: Better synopsis; added copyright.
8796         * src/roff/grog/grog.man: Updated copyright date.
8798 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
8800         * configure.in: Added test for strdup.
8802         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
8803         is available.
8805         Replaced dynamic allocation of arrays `[...]' with `new' operator.
8807         Other minor fixes.
8809 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
8811         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
8813 2000-03-11  Werner LEMBERG  <wl@gnu.org>
8815         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
8816         compilers silent.
8817         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
8818         * src/include/lib.h: Remove some spaces.
8820 2000-03-10  Werner LEMBERG  <wl@gnu.org>
8822         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
8823         initializers from arguments (some compilers don't like this).
8825 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
8827         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
8828         used by pic and eqn to tell grohtml where the graphic regions start
8829         and end.
8830         * src/libs/libgroff/Makefile.sub: Use it.
8831         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
8832         graphic_start() and graphic_end() from htmlindicate.cc.
8834 2000-03-09  Werner LEMBERG  <wl@gnu.org>
8836         * tmac/tmac.safer: Will now work correctly in compatibility mode.
8837         * tmac/groff_man.man: More fixes.
8839 2000-03-08  Werner LEMBERG  <wl@gnu.org>
8841         * doc/Makefile: Added texput.log to the `clean' target.
8842         * doc/groff.texinfo: Added info about delimiters for escapes.
8844 2000-03-08  Bernd Warken  <bwarken@mayn.de>
8846         * src/preproc/pic/pic.man: Add info on conversion of pic images to
8847         other graphic formats.
8849 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
8851         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
8852         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
8853         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
8854         files.
8856 2000-03-07  Werner LEMBERG  <wl@gnu.org>
8858         * doc/groff.texinfo: Spelling fixes.
8860 2000-03-06  Werner LEMBERG  <wl@gnu.org>
8862         * tmac/groff_man.man: Completely revised to cover everything in
8863         tmac.an.
8865         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
8866         Other minor fixings.
8867         * src/roff/troff/env.cc (environment_copy): Improve error message and
8868         fix itoa->i_to_a.
8869         * src/roff/troff/TODO: Updated.
8871         * doc/Makefile: Bug fixes -- this is still provisional, though...
8873         * tmac/eqnrc: Small fixes.
8875 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
8877         Adding a request `evc' to copy environments.
8879         * src/roff/troff/env.cc (environment::copy, environment_copy):
8880         Implement it.
8881         * src/roff/troff/env.h: Add prototype.
8883 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
8885         Adding strsep() -- Solaris 8 doesn't have it.
8887         * configure.in: Test it.
8888         * src/devices/grolbp/lbp.cc: Add code.
8890 2000-03-05  Werner LEMBERG  <wl@gnu.org>
8892         * src/roff/troff/div.cc (macro_diversion::output,
8893         top_level_diversion::output): Fixing an incompatibility with
8894         original troff: \x'0' updates the .a register also.  Thanks to
8895         <Andries.Brouwer@cwi.nl> for pointing this out.
8896         * doc/groff.texinfo: Document it.
8898         * Makefile.in: Create Makefile.dep if necessary before calling the
8899         submake process to avoid warning about nonexistent file.
8901         * NEWS, PROJECTS: Updated.
8903 2000-03-04  Werner LEMBERG  <wl@gnu.org>
8905         * tmac/troffrc: Add tmac.lbp.
8907 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
8909         * tmac/tmac.lbp: New file.
8910         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
8911         command.
8913 2000-03-03  Werner LEMBERG  <wl@gnu.org>
8915         * Makefile.in: Fixing $(subdir).
8917         * README, NEWS: Small fixes.
8919         * test-groff: Adding path to grolbp.
8921         * configure.in: The (new) file src/xditview/Imakefile.in will be
8922         also configured -- it is now possible to build gxditview in a
8923         directory different from $srcdir.
8925 2000-03-02  Blake McBride  <blake@florida-software.com>
8927         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
8929         * MORE.STUFF: Added website of bell labs and info about plot2dev.
8931 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
8933         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
8934         files.
8936 2000-02-29  Werner LEMBERG  <wl@gnu.org>
8938         Adding GNU getopt to the groff distribution.
8940         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
8941         New files.
8942         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
8943         * aclocal.a4: Remove GROFF_GETOPT function.
8944         * configure.in, Makefile.in, PROBLEMS: Update.
8945         * src/include/lib.h: Replace getopt tests with getopt.h.
8946         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
8948         * doc/groff.texinfo: Further checking/updating.  Adding more index
8949         entries.
8951         * man/groff_out.man: Fix nroff mode activation (for emacs).
8952         * man/groff_font.man: Add missing ligature.
8954 2000-02-28  Werner LEMBERG  <wl@gnu.org>
8956         * doc/groff.texinfo: Further checking/updating.  Adding more index
8957         entries.
8959         * src/devices/grolbp/grolbp.man: Added a comment line at the
8960         beginning of the file (similar to shell scripts) which indicates
8961         that `tbl' should be used as a preprocessor.
8963 2000-02-27  Blake McBride  <blake@florida-software.com>
8965         Adapting groff to MS Visual C++ 6.0 compiler (tested with
8966         Windows NT 4.0).  Uses _MSC_VER define where necessary.
8968         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
8969         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
8970         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
8971         src/include/lib.h, src/libs/libgroff/errarg.cc,
8972         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
8973         src/preproc/refer/label.y, src/preproc/refer/label.cc,
8974         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
8975         src/roff/troff/div.cc, src/roff/troff/env.cc,
8976         src/roff/troff/input.cc, src/roff/troff/node.cc,
8977         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
8978         if_to_a() to avoid name clashes.
8979         * src/include/posix.h: Don't use unistd.h.
8980         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
8981         clause for integrating non-Unix xtmpfile() code.
8982         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
8983         structure; use "rt" for popen() in pipe_source(); add getpid()
8984         dummy function.
8985         * src/roff/troff/node.cc: Use special versions of popen() in
8986         real_output_file() and pclose() in ~real_output_file().
8988 2000-02-27  Werner LEMBERG  <wl@gnu.org>
8990         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
8991         LBP-8 series laser printers).  This code has been contributed by
8992         Francisco Andrés Verdú <pandres@dragonet.es>.
8994         * src/devices/grolbp/*: The grolbp output device.
8995         * font/devlpb/*: The font description files.
8996         * Makefile.in: Add grolpb and devlbp subdirectories.
8998         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
8999         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
9000         typographic fixes.
9002         * doc/groff.texinfo: Further checking/updating.  Adding more index
9003         entries.
9005         * NEWS: Updated.
9007         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
9009         * man/groff_font.man: Adding info about obsolete DESC keywords.
9010         * src/devices/grolj4/grolj4.man: Documenting additional DESC
9011         keywords.
9013 2000-02-26  Werner LEMBERG  <wl@gnu.org>
9015         * src/preproc/grn/grn.man: Added info about the gremlin file format
9016         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
9018 2000-02-25  Werner LEMBERG  <wl@gnu.org>
9020         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
9021         friends to be non-integer.
9023         * src/preproc/grn/grn.man: Document it.
9025         * doc/groff.texinfo: Further checking/updating.  Adding more index
9026         entries.
9028 2000-02-24  Werner LEMBERG  <wl@gnu.org>
9030         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
9031         line thicknesses to be integer multiples of this value.
9033         * src/preproc/grn/grn.man: Commenting out the -s option -- the
9034         corresponding code doesn't work (yet).
9036         * doc/groff.texinfo: Further checking/updating.  Adding more index
9037         entries.
9039 2000-02-23  Werner LEMBERG  <wl@gnu.org>
9041         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
9042         specify line thickness instead of base units.  The new default
9043         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
9044         thick lines respectively.
9046         Removed unused variable `prevval'.
9048         * src/preproc/grn/grn.man: Updated.
9050 2000-02-22  Werner LEMBERG  <wl@gnu.org>
9052         * src/preproc/grn/main.cc: Slight formatting.
9054         * src/roff/groff/groff.man: Formatting fix.
9055         * src/preproc/grn/grn.man: Ditto.
9057         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
9059         * doc/groff.texinfo: Further checking/updating.
9061 2000-02-21  Werner LEMBERG  <wl@gnu.org>
9063         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
9065         * test-groff: Added grn subdir to path.
9067         * doc/groff.texinfo: Some restructing and other small improvements.
9069         * src/roff/groff/groff.cc (help): Fixed info string.
9071 2000-02-20  Werner LEMBERG  <wl@gnu.org>
9073         * doc/meref.me: Fix description of .GS request.
9075         * src/roff/troff/troff.man: Fixing typo.
9077         Adding the `grn' preprocessor for gremlin graphic files.
9079         * src/preproc/grn/*: This is the Berkeley distribution written by
9080         David Slattengren and Barry Roitblat, adapted to groff by Daniel
9081         Senderowicz and Werner Lemberg.
9083         * doc/grnexampl.{me,g}: A sample for grn.
9085         * Makefile.in: Added subdirectory entry for grn.
9087         * src/roff/groff/groff.cc: Added support for grn.  It can be now
9088         called with the switch `-g'.
9090         * src/roff/groff/groff.man: Updated.
9092         * src/roff/grog/grog.{man,pl,sh}: Updated.
9094         * NEWS: Updated.
9096 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
9098         * src/include/lib.h: Added xtmptemplate and made xtmpfile
9099         parametrically polymorphic.
9101         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
9102         and the alterations to xtmpfile.
9103         xtmpfile can be requested to return the filename created
9104         and asked not to unlink the temp file.  The default behaviour
9105         if parameters are absent is exactly the same as before.
9107 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
9109         A new request `length' is available which returns the length of a
9110         string in a number register:
9112         * src/roff/troff/input.cc (length_macro): Implement it.
9113         * src/roff/troff/input.cc (init_input_requests): Register it.
9115 2000-02-11  Werner LEMBERG  <wl@gnu.org>
9117         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
9118         of the `substring' request.
9120         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
9121         request.
9123         * src/roff/troff/TODO, NEWS: Updated.
9125 2000-02-09  Werner LEMBERG  <wl@gnu.org>
9127         * src/roff/groff/groff.man: Added an example.
9129 2000-02-06  Werner LEMBERG  <wl@gnu.org>
9131         I've considerably modified the directory structure of the
9132         distribution to get a more vertical layout.  For example, the number
9133         of top level directories has been reduced from 42 to 6.
9135         As a consequence, many changes, especially to the makefiles, were
9136         necessary:
9138         * The makefile variables `top_builddir' and `top_srcdir' have been
9139         introduced.  Virtually all relative paths have been replaced with
9140         absolute ones using these two variables.
9142         * Dependencies (in the files `Makefile.dep') are no longer part of
9143         the distribution.  Instead, they are created during a `make install'
9144         in the build directory.
9146         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
9147         make `top_srcdir' and `top_builddir' absolute.
9149         Some other changes:
9151         * Man pages now depend on the files `VERSION' and `REVISION'.
9153         * The added shell script `mkinstalldirs' will replace `mkdir' in
9154         almost all cases.
9156         * VERSION: Version number increased to 1.16.
9158 2000-02-04  Werner LEMBERG  <wl@gnu.org>
9160         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
9162         * Makefile.in: Removed $(tmac_m) since it is no longer needed
9163         (after an update of the mm stuff).
9165         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
9167 2000-02-03  Werner LEMBERG  <wl@gnu.org>
9169         The .psbb request will now also accept Mac PS images (i.e. using LF
9170         as the EOL character).
9172         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
9173         (with slight modifications).
9174         * troff/input.cc (do_ps_file): Use it.
9176         * test-groff: Add grohtml and grolj4 output devices to PATH.
9178 2000-01-30  Werner LEMBERG  <wl@gnu.org>
9180         * NEWS, MORE.STUFF: Updated.
9182 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
9184         Add the `srand' command to pic.
9186         * pic/lex.cc, pic/pic.y: Implement it.
9187         * pic/pic.man: Document it.
9188         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
9190 2000-01-30  Werner LEMBERG  <wl@gnu.org>
9192         Add a new request `.psbb'.  This does exactly what the external
9193         program psbb did.  It scans a PostScript image file for a
9194         %%BoundingBox comment and extracts the bounding box values (in
9195         PostScript units) which are then stored in the four new (read-only)
9196         number registers `llx', `lly', `urx', and `ury'.
9198         This will allow the usage of the .PSPIC macro without worrying
9199         about unsafe behaviour of groff, i.e., it will work without the
9200         `-U' switch of groff.
9202         * troff/input.cc: Implement it.
9203         * tmac/tmac.pspic: Use it.
9204         * troff/troff.man, grops/grops.man, NEWS: Document it.
9205         * psbb/*, Makefile.in: Remove it since it is no longer needed.
9207         This is bloody C code simply adapted from psbb.c!  Any improvements
9208         welcome.
9210 2000-01-29  Werner LEMBERG  <wl@gnu.org>
9212         * man/groff_font.man: Minor clarifications.
9214         * NEWS: Updated.
9216 2000-01-28  Werner LEMBERG  <wl@gnu.org>
9218         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
9220 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
9222         * man/groff_font.man: Brought up to date regarding tcommand
9223         extensions.
9224         * libgroff/font.cc: Handle everything after `--' as a comment
9225         in the font files.
9226         * devps/*: Added comment delimiter inside devps font files.
9228 2000-01-28  Werner LEMBERG  <wl@gnu.org>
9230         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
9231         \fC...\fP (which now works as expected).
9233         * troff/troff.man: Fix typo.
9235 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
9237         Completed the pass_filenames implementation in troff.
9239         * libdriver/input.cc: Will read the new `F' tcommand.
9240         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
9241         * troff/input.cc: Use it.
9243 2000-01-26  Werner LEMBERG  <wl@gnu.org>
9245         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
9246         font will now be updated even if an invalid font is selected.
9248 2000-01-24  Werner LEMBERG  <wl@gnu.org>
9250         * doc/homepage.ms: Updated for new tmac.arkup.
9252         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
9254         * tmac/tmac.arkup: Cleanup.
9256         Added `\&' to .HTML macro to `leave vertical mode', so to say.
9258         Removed obsolete .LINK macro completely.
9260         The macros .URL, .FTP, and .MAILTO now accept a third argument which
9261         will be immediately appended to the second argument (to be used with
9262         punctuation, for example).
9264         Disabled .CDFTP macro temporarily for security reasons.
9266         * tmac/groff_markup.man: Complete revision for latest changes in
9267         tmac.arkup -- note that it does not yet format correctly with
9268         grohtml :-(
9270 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
9272         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
9273         * devutf8/R.proto: Add mappings for wp, lh, rh.
9274         * devutf8/NOTES: Updated.
9276 2000-01-23  Werner LEMBERG  <wl@gnu.org>
9278         * doc/groff.texinfo: Updated version/copyright info.
9280 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
9282         Added support for two new directives in device descriptions:
9283         `pass_filenames' (to pass the input file name to the output device)
9284         and `use_charnames_in_special' (to support e.g. accented characters
9285         in the `X' request).
9287         * include/font.h, troff/charinfo.h: Declare it.
9289         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
9291         * devhtml/DESC: Use it.
9293         * troff/input.cc: New function encoded_char.
9295         * troff/token.h: Add test for `specialness'.
9297 2000-01-21  Werner LEMBERG  <wl@gnu.org>
9299         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
9300         mistake from the list of files to be installed.
9302 2000-01-18  Werner LEMBERG  <wl@gnu.org>
9304         * README: Added info how to apply patches.
9306 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
9308         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
9310 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
9312         * troff/input.cc: Add support for troffrc-end.
9314         * tbl/main.cc: Altered to issue table-start and table-end special
9315         characters if using the html device.
9317         * devhtml/*: Modified font files to incorporate html encoding of
9318         characters.
9320         * tmac/groff_markup.man: New file documenting tmac.arkup.
9322         * tmac/troffrc-end: New file.  This is invoked after all user
9323         specified macros.  Currently used by the html device to include
9324         tmac.html.  Thus no need for users to specify -mhtml anymore.
9326         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
9327         (MAN7): Add groff_markup.man.
9329         * tmac/tmac.an, tmac/tmac.html: Small html updates.
9331         * tmac/troffrc: tmac.arkup will now be called for the html device.
9333         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
9334         extra device specific information about fonts.
9336         * doc/homepage.ms: New file.  It is an example how an HTML home page
9337         could look like with grohtml.
9339         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
9341 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
9343         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
9344         of Im, Re.
9346         * devutf8/NOTES: Updated.
9348 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
9350         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
9351         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
9352         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
9353         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
9354         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
9355         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
9356         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
9357         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
9358         warnings.
9360         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
9362 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
9364         grolj4: Paper size will be searched case-insensitively.
9366         * include/lib.h: Add check for strcasecmp().
9367         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
9368         * configure.in: Check for strcasecmp().
9370 2000-01-11  Werner LEMBERG  <wl@gnu.org>
9372         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
9373         `REVISION'.
9375 2000-01-10  Werner LEMBERG  <wl@gnu.org>
9377         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
9378         revision scheme.
9380         Add a new read-only register, `.Y', which contains the groff
9381         revision.
9383         * troff/input.cc (init_input_requests): Define it.
9384         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
9385         * doc/groff.texinfo, troff/troff.man: Document it.
9387         * libgroff/Makefile.sub (version.cc): Add definition of
9388         `Version_string[]', consisting of `<major>.<minor>.<revision>'
9389         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
9390         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
9391         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
9392         troff/input.cc, pfbtops/pfbtops.c: Use it.
9394 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
9396         Add a revision scheme to the groff package.
9398         * REVISION: New file.
9399         * libgroff/Makefile.sub (version.cc): Use it to define
9400         `revision_string[]'.
9401         * grops/psrm.cc: Use revision_string (converted to an unsigned
9402         integer) in constructor of resource_manager.
9404 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
9406         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
9407         files.
9408         * Makefile.in (DEVDIRS): Add devutf8.
9409         * grotty/tty.cc: Include device.h.
9410         (glyph): Change type of `code' to `unsigned int'.
9411         (tty_printer): New field is_utf8.  Constructor takes device argument.
9412         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
9413         (tty_printer::add_char): Change type of first arg to `unsigned int'.
9414         (tty_printer::put_char): New function.
9415         (tty_printer::end_page): Use put_char() instead of ::putchar().
9416         (make_printer): Pass device to tty_printer constructor.
9417         * nroff.sh: Determine default device by calling 'locale'.  As a
9418         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
9419         Recognize UTF-8 locales.
9420         * tmac/eqnrc: Recognize utf8 like latin1.
9421         * tmac/troffrc: Device utf8 needs tmac.tty.
9423 2000-01-07  Werner LEMBERG  <wl@gnu.org>
9425         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
9427 2000-01-07  Paul Eggert  <eggert@twinsun.com>
9429         Add a new predefined writeable number register, `year',
9430         which contains the current year.
9432         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
9433         * tmac/tmac.s: Use it.
9434         * troff/input.cc (init_registers): Initialize it.
9436 2000-01-06  Werner LEMBERG  <wl@gnu.org>
9438         * PROBLEMS: Fixed typo.
9440 2000-01-04  Paul Eggert  <eggert@twinsun.com>
9442         * PROBLEMS: Add Y2k advice for the yr number register.
9444 2000-01-03  Paul Eggert  <eggert@twinsun.com>
9446         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
9448 2000-01-02  Werner LEMBERG  <wl@gnu.org>
9450         * tmac/tmac.arkup: Slight modification of macros to provide better
9451         appearance for non-HTML formats.
9453 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
9455         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
9456         does not automatically translate to malloc(n) on all OSes
9457         (e.g., SunOS) so do it explicitly.  Also, check the returned
9458         value.
9460 2000-01-01  Werner LEMBERG  <wl@gnu.org>
9462         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
9464         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
9465         expects this variable
9467 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
9469         * doc/Makefile: Added instructions to create HTML and text
9470         versions of some files.
9472 1999-12-31  Werner LEMBERG  <wl@gnu.org>
9474         * Updated INSTALL.gen.
9476         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
9477         better resp. correctly with non-HTML devices.
9479 Version 1.15 released
9480 =====================
9482 1999-12-28  Werner LEMBERG  <wl@gnu.org>
9484         * NEWS, VERSION: Changed to 1.15
9486 1999-12-27  Paul Eggert  <eggert@twinsun.com>
9488         * nroff/nroff.man: -S is safer, not safe.
9490         * groff/groff.cc (main): Use `safer', not `safe', in variable
9491         names.  This does not change the behavior.
9493         * troff/input.cc (main): Likewise.
9495         * nroff/nroff.sh: Likewise.
9497         * troff/input.cc (prepend_string): New function.
9498         (main): Prepend -msafer, so that we check macro libraries for
9499         safety.
9501         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
9503 Version 1.14 released
9504 =====================
9506 1999-12-26  Werner LEMBERG  <wl@gnu.org>
9508         * NEWS, VERSION: Changed to 1.14.
9510 1999-12-24  Werner LEMBERG  <wl@gnu.org>
9512         * refer/refer.cc: Fixing the last fix.
9514 Version 1.13 released
9515 =====================
9517 1999-12-23  Werner LEMBERG  <wl@gnu.org>
9519         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
9520         number disappear.
9522         * NEWS: Updated.
9524         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
9526         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
9527         document conventions, the version number must be a real.
9529 Version 1.12.1 released
9530 =======================
9532 1999-12-22  Werner LEMBERG  <wl@gnu.org>
9534         * VERSION: Changed to 1.12.1.
9536 1999-12-22  Alan Rooks  <arooks@istar.ca>
9538         * refer/refer.cc (do_file): Slight modification to satisfy the
9539         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
9540         UnixWare 7.1.
9542 1999-12-20  Werner LEMBERG  <wl@gnu.org>
9544         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
9545         notices.
9547         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
9548         list of unsafe requests.
9550         * pic/pic.man: Fixed a typo.
9552         * man/groff_out.man: Fixed a typo.
9554 1999-12-18  Werner LEMBERG  <wl@gnu.org>
9556         * Makefile.in: Doc fixes.
9558 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
9560         * groff/groff.cc: Missing `U' option added to getopt().
9562         * troff/troff.man: Missing `U' option added to synopsis.
9564 Version 1.12 released
9565 =====================
9567 1999-12-14  Werner LEMBERG  <wl@gnu.org>
9569         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
9570         to the synopsis.
9572         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
9573         with the more appropriate terms `safer' and `unsafe'.
9575         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
9576         sys_nerr and sys_errlist[].
9578         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
9580         * pic/pic.y, pic/pic.cc: Added check for fmod().
9582 1999-12-13  Werner LEMBERG  <wl@gnu.org>
9584         * VERSION: Changed to 1.12.
9586         Here some patches from various sources; most of them taken from
9587         the Debian distribution.
9589         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
9590         tmac/Makefile.sub: New files copied directly from the NetBSD
9591         distribution.  Probably, some additional adaptation later on is
9592         necessary...
9594         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
9595         of unsafe requests.
9597         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
9598         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
9599         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
9600         (`-S') is now the default.
9602         * README, NEWS: Updated.
9604 1999-12-09  Werner LEMBERG  <wl@gnu.org>
9606         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
9608         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
9610 1999-12-06  Werner LEMBERG  <wl@gnu.org>
9612         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
9613         grief than relief today.  Additionally, it is against the GNU
9614         coding standards.
9616         * configure: Recreated.
9618 1999-12-05  Werner LEMBERG  <wl@gnu.org>
9620         * configure.in: Added GROFF_LIBM.
9622         * configure: Recreated.
9624         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
9625         necessary.
9627         * Makefile.in: Added definition of $(LIBM).
9629         * Makefile.comm (LIBM): Removed.
9631         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
9633 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
9635         * doc/Makefile: Added rule for generation pic.html.
9637         (clean): Files produced by grohtml will be removed also.
9639         * doc/pic.ms: Small fix.
9641         * tmac/tmac.html: Fixed suppression of headers.
9643 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
9645         * tmac/tmac.html: Fixing horizontal arrows.
9647         Turning off hyphenation.
9649         * tmac/tmac.an: Improved support for grohtml; better indentation,
9650         no footers/headers.
9652 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
9654         * tmac/tmac.arkup: Added CDFTP macro
9656         * tmac/tmac.html: All headers are turned off for ms, me, and mm
9657         macros.
9659         * tmac/troffrc: Some additions for HTML stuff.
9661 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
9663         * tmac/tmac.html: Small changes.
9665 1999-09-26  Werner LEMBERG  <wl@gnu.org>
9667         * doc/groff.texinfo: Minor fixes.
9669 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
9671         * devhtml/TR: Changed spacewidth to 3.
9673         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
9675         * tmac/tmac.html: Moved markup macros to tmap.arkup.
9677         * tmac/tmac.arkup: New file.
9679         * grohtml/ChangeLog: New file.
9681 1999-09-16  Werner LEMBERG  <wl@gnu.org>
9683         * doc/groff.texinfo (Common Features): Added Copying chapter.
9684         Changed format to @smallbook.
9686 1999-09-15  Werner LEMBERG  <wl@gnu.org>
9688         * NEWS: Added info about groff.texinfo.
9690         * doc/groff.texinfo: Will now compile (using texi2dvi) without
9691         warning messages.
9693 1999-09-14  Werner LEMBERG  <wl@gnu.org>
9695         * groff/groff.man: More updates.
9697 1999-09-13  Werner LEMBERG  <wl@gnu.org>
9699         * doc/groff.texinfo: New file.  This manual is still very
9700         rudimentary.  It has been originally contributed by Trent
9701         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
9702         additions by me.
9704         * INSTALL: Added information about the `doc' subdir
9706         * troff/troff.man: Minor fixes.
9708         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
9709         reordered options.
9711         * troff/input.cc (usage): Added missing `-ffam' to usage message.
9713         * Makefile.in (dist): groff-$(version).tar.gz must be removed
9714         also, otherwise it is included itself in another call of `make
9715         dist'.
9717         * groff/groff.cc (synopsis): Removed superfluous space.
9719         * PROJECTS, PROBLEMS, NEWS: Updated.
9721         * VERSION: Updated to 1.12beta.
9723         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
9725         * README: Updated: Included documentation about CVS repository,
9726         mailing lists, and daily snapshots.
9728         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
9730 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
9732         * tmac/tmac.an: If the tag didn't fit into the space that the
9733         macro `TP' specifies, the rest of the tag went into the space for
9734         the next line.
9736 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
9738         * grolj4/lj4.cc: Added duplex printing (option `-d').
9740         * grolj4/grolj4.man: Document duplex printing.
9742 1999-09-12  Werner LEMBERG  <wl@gnu.org>
9744         * doc/Makefile (pic.ps): Fixed rule which caused problems with
9745         non-GNUish sed programs.
9747         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
9748         definition.
9750         * configure.in (LIBS): Added `-lc'
9752         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
9754         * pic/tex.cc (solid_arc): Casting M_PI to double.
9756         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
9758         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
9759         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
9760         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
9762         * groff/groff_man.man: New file.  This manual page was originally
9763         written for the Debian GNU/Linux system by Susan G. Kleinmann
9764         <sgk@debian.org>.
9766         * eqn/list.cc (list_box::compute_metrics,
9767         list_box::compute_sublist_width): Removed variable declaration to
9768         avoid shadowing warnings.
9770         * grops/psrm.cc (resource_manager::process_file): Ditto.
9772         * tfmtodit/tfmtodit.cc (main): Ditto.
9774         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
9775         to avoid shadowing warnings.
9777         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
9778         shadowing loop variable.
9780         * groff/groff.man, troff/troff.man: Added doc about grohtml.
9782 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
9784         New grohtml frontend to convert groff input to html.
9786         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
9788         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
9790         * tmac/eqnrc: Added html device.
9792         * tmac/tmac.html: New file.
9794         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
9795         (troff_output::start_picture, troff_output::finish_picture),
9796         tbl/main.cc (process_input_file):
9797         Surrounded output with `graphics_start' and `graphics_end' so that
9798         the html driver can identify non-text portions.
9800         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
9801         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
9802         grotty/tty.ps (tty_printer::set_char): Additional parameter
9803         `name'.
9805         * include/printer.h: Class printer: New function
9806         set_char_and_width; new variables (is_char_named, is_named_set,
9807         named_command, named_char_s, named_char_n) to hold information
9808         about named characters -- needed by the html driver.
9810         * libdriver/printer.cc (printer::set_ascii_char,
9811         printer::set_special_char): Use set_char_and_width.
9813         * devhtml/*: New device files for html driver.
9815         * grohtml/*: New driver grohtml.
9817 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
9819         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
9820         default strings.
9822 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
9824         * libgroff/string.cc (search): Small fix to test against NULL
9825         pointer.
9827 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
9829         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
9830         \b'abc') were stacked in reverse order when processed in a
9831         diversion.
9833         * troff/node.h: Added `*last' to struct `node' to make the above
9834         fix work.
9836         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
9837         The default scale for the 'f' and 't' graphics functions were 'm'
9838         rather than 'u' (i.e., no scaling).
9840 1999-09-11  Peter Miller  <peterm@jna.com.au>
9842         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
9843         do_file), soelim/soelim.man: Added `-I file' option to soelim,
9844         defining include paths.
9846         * soelim/soelim.cc (include_path_append): New function.
9848 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
9850         * tbl/main.cc (process_options): Unix (at least Documenter's
9851         Workbench) tbl allows arbitrary non-alpha characters between
9852         options.
9854 1999-09-11  Paul Eggert  <eggert@twinsun.com>
9856         Y2k fixes.  Don't assume that the current year precedes 2000.
9858         * doc/meref.me: Add \n(y2, \n(y4.
9860         * tmac/doc-common (Yr): New number register.
9861         (Dd): Don't assume current year precedes 2000.
9863         * tmac/tmac.e (td): Likewise.
9864         (y2, y4): New number registers.
9866         * pic/pic.man: Update reference for pic paper to May, 1991
9867         version.
9869 1999-09-11  Werner LEMBERG  <wl@gnu.org>
9871         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
9872         Removed quotation marks which prevented correct expansion of
9873         $(tmac_wrap).
9875         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
9877 1999-09-10  Werner LEMBERG  <wl@gnu.org>
9879         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
9880         `config.cache'.
9882         * Removed configure.old.
9884 1999-08-31  Werner LEMBERG  <wl@gnu.org>
9886         * VERSION: Updated to 1.11.1
9888 1999-05-27  Werner LEMBERG  <wl@gnu.org>
9890         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
9892         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
9893         added quotations around $(tmac_wrap) to avoid syntax error if
9894         variable is empty.
9896         * configure: Newly generated using autoconf 2.13.
9898         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
9900 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
9902         * README, PROJECTS, NEWS, INSTALL, VERSION, 
9903         doc/Makefile. doc/pic.ms, groff/groff.man:
9904         Prepare for 1.11 release.  No code changes.
9905         Documentation for pic added (doc/pic.ms).
9907 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
9909         * Version 1.10 released.
9911 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
9913         * afmtodit/afmtodit.pl: Avoid comment on first line.
9915 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
9917         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
9918         * configure.in: Call it.
9920         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
9921         (distfiles): Doesn't depend on config.log or config.cache.
9923 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
9925         * grog/grog.sh: Use print "" rather than print in END rule.
9927 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
9929         * tbl/main.cc (process_data): Don't give error for excess data
9930         entries that are comments.
9932 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
9934         * tbl/main.cc (process_data): Fix case where new for-scope rules
9935         silently change meaning of code.
9937 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
9939         * troff/env.cc (hyphenate): Loop over all consecutive sequences
9940         of non-zero hyphenation codes.
9942 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
9944         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
9946 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
9948         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
9950 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
9952         * tmac/tmac.andoc: Make it work in compatibility mode.
9954         * refer/token.h (token_info::is_range_sep): New function.
9955         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
9956         * refer/ref.cc (reference::output): More sophisticated check for
9957         multiple pages.
9959         * devps/prologue.ps (MANUAL): New procedure.
9960         * grops/ps.cc (main): New -m option.
9961         (usage): Include -m.
9962         (ps_printer::~ps_printer): Implement -m.
9964         * aclocal.m4 (GROFF_G): New macro.
9965         * configure.in: Call it.
9966         * Makefile.in (g): Provided by configure.
9968         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
9970         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
9971         translations.
9973         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
9974         (tmac_m, tmac_s): Deleted.
9975         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
9976         tmac_s_prefix): New variables.
9977         (MDEFINES): Change accordingly.
9978         * Makefile.comm (.man.n): Use new TMAC_* variables.
9979         * configure.in (GROFF_TMAC): Call.
9980         * aclocal.m4 (GROFF_TMAC): Define.
9981         * tmac/Makefile.sub (stamp_wrap): New target.
9982         (install_data, uninstall_sub): Handle macro wrapping.
9984 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
9986         * tbl/main.cc (main): Ignore -T option.
9988 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
9990         * devlj4/generate/special.map: Add definition of \(nb.
9992         * tmac/tmac.dvi: Add definition of \(nb.
9994         * troff/dictionary.c (dictionary::dictionary): association::v gets
9995         initialized by association::association.
9997         * tmac/Makefile.sub: Avoid using temporary files when installing.
9999         * troff/env.cc (environment::set_font): Make bad font number a
10000         warning.
10002         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
10004         * Makefile.in (datadir): Use share rather than lib.
10006         * groff/groff.cc (basename): Rename to xbasename.
10008 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
10010         * Makefile (CCLIBS): Don't use.
10011         * Makefile.ccpg: Likewise.
10013         * acgroff.m4: Rename to...
10014         * aclocal.m4: Modify extensively for autoconf 2.
10015         * configure.in: Likewise.
10016         * Makefile.in: Likewise.
10018         * groff/pipeline.c (const): Declare as empty if __STDC__ not
10019         defined.
10020         (xstrsignal): Check for definition of NSIG. Conditionalize
10021         on SYS_SIGLIST_DECLARED.  Make return type const.
10023 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
10025         * troff/input.cc (interpolate_macro): Rephrase missing space
10026         warning.
10028 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
10030         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
10031         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
10032         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
10033         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
10034         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
10035         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
10036         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
10037         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
10038         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
10039         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
10040         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
10041         Fix 'for' scoping.
10043 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
10045         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
10046         string_iterator.
10047         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
10048         file.
10049         (macro_iterator::macro_iterator): Add additional argument.
10051 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
10053         * troff/div.cc (vertical_size::vertical_size): In place of integer
10054         specifying line spacing use cunits specifying post vertical
10055         space.
10056         (macro_diversion::output, top_level_diversion::output): Likewise.
10057         * troff/div.h: Change declarations accordingly.
10058         * troff/env.cc (pending_output_line): Replace ls field by post_vs
10059         field.
10060         (pending_output_line::pending_output_line,
10061         pending_output_line::output, environment::output,
10062         environment::output_line, environment::output_title,
10063         environment::hyphenate_line):  In place of
10064         integer specifying line spacing use cunits specifying post vertical
10065         space.
10066         (environment::environment): Add post_vertical_spacing and
10067         prev_post_vertical_spacing arguments.
10068         (environment::get_post_vertical_spacing): New function.
10069         (environment::total_post_vertical_spacing): New function.
10070         (environment::post_vertical_spacing): New function.
10071         (init_env_requests): Initialize pvs request and .pvs register.
10072         * troff/env.h: Change declarations.
10074 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
10076         * tmac/tmac.pspic: Immediately remove the temporary file.
10078 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
10080         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
10081         height is specified.
10083 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
10085         * tbl/table.c (struct vertical rule, class table_entry): Use int
10086         not short for start_row and end_row.
10088 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
10090         * troff/input.cc (trapping_blank_line, blank_line_macro): New
10091         functions.
10092         (diverted_space_node::reread, process_input_stack): Call
10093         trapping_blank_line() rather than blank_line().
10094         (init_input_requests): Bind "blm" to blank_line_macro().
10096         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
10098 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
10100         * troff/env.cc (environment::possibly_break_line): Require that
10101         width total excluding width of final space node be greater than
10102         the target text length.
10104 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
10106         * troff/node.cc (kern_pair_node::vertical_extent): New function.
10108 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
10110         * troff/node.cc (charinfo_node): New class.
10111         (glyph_node, composite_node): Derive from charinfo_node.  Change
10112         member functions accordingly.
10114 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
10116         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
10118 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
10120         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
10122         * devps/generate/textmap (notsubset): Add.
10124         * tmac/tmac.a4: New file.
10126 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
10128         * pic/main.cc (had_parse_error): New variable.
10129         (do_picture, do_whole_file): Set had_parse_error if yyparse()
10130         returns non-zero.
10131         (main): Return 1 if had_parse_error is true.
10133 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
10135         * grolj4/lj4.cc (main): Avoid use of strtoul.
10137 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
10139         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
10140         iso_8859_1 or $LESSCHARSET is latin1.
10142 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
10144         * hpftodit: New directory.
10145         * Makefile.in (CCPROGDIRS): Add hpftodit.
10146         * devlj4/generate: New directory.
10148 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
10150         * configure.in: Don't use AC_VFORK.
10151         * groff/pipeline.c (run_pipeline): Use fork() always.
10153 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
10155         * grops/ps.cc (main): Use %1 not %s in error message for -w.
10157         * Makefile.in (CCPROGDIRS): Add grolj4.
10158         (DEVDIRS): Add devlj4.
10159         * grolj4, devlj4: New directories.
10160         * tmac/troffrc: Handle lj4.
10161         * tmac/tmac.lj4: New file.
10163 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
10165         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
10167 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
10169         * troff/input.cc (do_if_request): At end of second string, switch
10170         environments before getting next token.
10172 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
10174         * devps/psstrip.sed: Split rule that strips whitespace on either
10175         side of delimiters.
10177 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
10179         * troff/node.h (font_family::make_definition): Add return value to
10180         declaration.  * troff/symbol.h (symbol::operator==,
10181         symbol::operator!=): Likewise.
10183 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
10185         * groff/groff.cc (main, help, synopsis): Handle -S.
10186         (possible_command::insert_arg): New function.
10188         * tmac/tmac.safer: New file.
10189         * tmac/msafer.man: New file.
10190         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
10192 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
10194         * pic/pic.h, pic/main.cc (safer_flag): New variable.
10195         * pic/pic.y (placeless_element): Avoid unsafe operations if
10196         `safer_flag' is set.
10197         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
10199 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
10201         * eqn/lex.cc (get_token): Put call to add_context() in block to
10202         work around Sun C++ 4.0 bug.
10204         * include/stringclass.h (operator +): Use ?: instead of `if' to
10205         work around Sun C++ 4.0 bug.
10207 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
10209         * tbl/main.cc (process_format): Accept - as a synonym for the _
10210         key letter.
10212         * libbib/index.cc (minus_one): Don't declare as const.
10214 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
10216         * troff/input.cc (get_char_for_escape_name): Push back a newline.
10218 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
10220         * troff/input.cc (write_macro_request): New function.
10221         (init_input_requests): Bind write_macro_request to writem.
10223 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
10225         * tmac/tmac.s (@EN): Turn filling back on even if there was no
10226         equation.
10228         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
10230         * tmac/tmac.s (@TS): Renamed from TS.
10231         (TS): Call LP then TS again.
10232         (cov*ab-init): Alias @TS to TS.
10234         * tmac/tmac.s: Allow QP or RS to initialize.
10236         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
10237         Move initializations of PS and LL here.
10238         (par@init): Don't initialize HY.  Avoid changing environment 0.
10239         (par*env-init): Don't all par@reset.
10241 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
10243         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
10245 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
10247         * Makefile.in (MDEFINES): Add LDFLAGS.
10248         (LDFLAGS): Add definition line.
10250 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
10252         * troff/input.cc (get_optional_char): Split off error check into...
10253         (check_missing_character): New function.
10254         * troff/token.h: Declare it.
10255         * troff/env.cc (margin_character): Don't call get_optional_char.
10256         Only call tok.next() after making the node.
10258         * include/lib.h (getopt): Make 2nd argument char *const *.
10260 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
10262         * nroff/conftest.sh: Deleted.
10264 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
10266         * pic/make-dos-dist: Deleted.
10268 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
10270         * devps/psstrip.sed: Strip comments before stripping trailing
10271         white space.
10273 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
10275         * Version 1.09 released.
10277 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
10279         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
10281 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
10283         * libgroff/font.cc (font::load_desc): Fix typo in error message.
10285 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
10287         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
10288         about returning without a value.
10290         * troff/charinfo.h (charinfo::get_special_translation): Cast
10291         TRANSLATE_NONE to int.
10293         * refer/token.cc (lookup_token, store_token): Remove bogus loop
10294         test.  Fix test so that it works with n unsigned.
10296         * pic/pic.y (defaults_table): Fully bracket initializer.
10297         * pic/lex.cc (lookup_keyword): Likewise.
10298         * eqn/lex.cc (token_table, def_table): Likewise.
10299         * eqn/box.cc (param_table): Likewise.
10300         * troff/input.cc (warning_table): Likewise.
10301         * libgroff/font.cc (table): Likewise.
10302         * grops/ps.cc (ps_printer::special): Likewise.
10303         * grops/psrm.cc (resource_manager::process_file): Likewise.
10304         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
10305         * refer/command.cc (command_table): Likewise.
10306         * addftinfo/addftinfo.cc (param_table): Likewise.
10308         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
10309         about temp's being unused.
10310         (unused): New function.
10312         * groff/pipeline.cc: Declare c_fatal.
10314         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
10315         uchar.
10317         * libbib/index.cc (index_search_item::load): Prevent compiler
10318         warnings about fd_closer's being unused.
10319         (unused): New function.
10321 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
10323         * troff/input.cc (copy_mode_error): Make `prefix' static.
10324         Fix typo.
10326         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
10327         defined.
10328         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
10329         HAVE_CC_OSFCN_H and modify accordingly.
10331         * troff/input.cc (init_charset_table): radicalex overlaps
10332         horizontally.
10334         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
10335         udodo!hans@relay.NL.net).
10336         * groff/configure.in: Call it.
10338         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
10339         * groff/configure.in: Call it.
10340         * include/lib.h: Conditionalize declaration of pclose.
10342         * troff/div.cc (last_page_number): New global variable.
10343         (top_level_diversion::begin_page): Exit if we just printed the
10344         last page.
10345         * troff/div.h (last_page_number): Declare it.
10346         * troff/input.cc (parse_output_page_list): Set last_page_number.
10348         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
10349         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
10350         tmac/tmac.X: Likewise.
10351         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
10352         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
10354 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
10356         * tmac/doc-ditroff (hK): Remove groff specific code which
10357         prevented page-breaks between separate manual entries.  If this is
10358         the first page, don't set the page number to 1.
10360         * acgroff.m4 (GROFF_POSIX): New macro.
10361         * configure.in: Use it.
10363         * troff/node.cc (class real_output_file,
10364         real_output_file::real_output_file,
10365         real_output_file::~real_output_file): Conditionalize use of
10366         popen/pclose on POPEN_MISSING.
10367         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
10368         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
10369         (pipe_source): Similarily.
10371         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
10373         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
10374         presence of declarations by trying to compile example with
10375         conflicting declarations.  (gcc only gives a warning for missing
10376         declarations.)
10378 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
10380         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
10381         (from Ulrich Lauther).
10383 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
10385         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
10387 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
10389         * indxbib/indxbib.cc (write_hash_table): Add code for case where
10390         pointers and ints have different sizes.
10392 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
10394         * tmac/tmac.s (par*env-init): Call par@reset.
10396 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
10398         * tmac/tmac.s (@IP): Switch to a new environment when diverting
10399         tag.
10400         (par*push-tag-env, par*pop-tag-env): New macros.
10402 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
10404         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
10405         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
10407         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
10408         comment.  Include <time.h>.
10410 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
10412         * grops/ps.cc (is_small_h, is_small_v): Deleted.
10413         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
10414         lines.
10416 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
10418         * troff/input.cc (read_request): Only print a prompt if reading
10419         from the terminal.  Also clearerr on EOF if reading from the
10420         terminal.  Declare isatty.
10422 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
10424         * refer/label.y: Rename map_t to map_func and extractor_t to
10425         extractor_func.
10427 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
10429         * include/assert.h: Don't use volatile.
10430         * libgroff/assert.cc: Likewise.
10432 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
10434         * troff/input.cc (abort_request): Look at character in tok before
10435         calling get_copy().
10437 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
10439         * troff/troff.h (NO_RETURN): Deleted.
10440         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
10441         * troff/input.cc (exit_troff): Likewise
10443         * Makefile.in: Remove `Making ...' messages since GNU make now
10444         gives these. 
10446         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
10448 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
10450         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
10451         to constant 1 inch.
10453 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
10455         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
10457 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
10459         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
10460         MARK_REG if there was no left delimiter.
10462 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
10464         * pic/troff.cc (troff_output::text): Set line thickness to
10465         relative before outputting text.
10467         * tmac/tmac.e (@k): Don't zero ?T.
10468         ((z): Likewise.
10470 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
10472         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
10474 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
10476         * troff/input.cc (decode_args): Warn about unquoted tabs (from
10477         Paul Eggert).
10479 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
10481         * troff/input.cc (ignoring): New variable.
10482         (ignore): Set ignoring during call to do_define_macro.
10483         (do_define_macro): Clear ignoring before interpolating terminating
10484         macro.
10485         (copy_mode_error): New function.
10486         (get_char_for_escape_name, read_long_escape_name,
10487         interpolate_arg): Use copy_mode_error.
10488         (warning_table): Add WARN_IG.
10489         * troff/troff.h (WARN_IG): Declare.
10490         (WARN_TOTAL): Change accordingly.
10492         * groff/pipeline.c (strsignal): Rename to xstrsignal.
10493         * groff/groff.cc (strsignal): Delete declaration.
10495 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
10497         * troff/div.cc (page_offset): Use 'm' as default scaling.
10499 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
10501         * nroff/nroff.sh: Ignore -u.
10503 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
10505         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
10507 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
10509         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
10510         drawing box.
10511         (B2): With -Tascii, leave additional vertical space before
10512         and after. Ensure that the left and right indent is restored to
10513         what it was even if the point size changes.  Don't call
10514         par@finish. Change the indent, line length and title length
10515         directly.  With -Tascii, make the width of the box 1n less.
10516         (B1): Remember 1n at the current point size.  Don't call
10517         par@reset.  Change the indent, line length and title length
10518         directly.  Ensure that the temporary indent is preserved.
10519         (par*box-mark-top): Turn off no spacing mode.
10521 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
10523         * Makefile.in (dist): Use .gz suffix.
10525 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
10527         * troff/input.cc (main): Add return 0.
10528         * pic/main.cc (main): Use return instead of exit.
10529         * tbl/main.cc (main): Likewise.
10530         * eqn/main.cc (main): Likewise.
10531         * grops/ps.cc (main): Likewise.
10532         * grotty/tty.cc (main): Likewise.
10533         * groff/groff.cc (main): Likewise.
10534         * grodvi/dvi.cc (main): Likewise.
10535         * refer/refer.cc (main): Likewise.
10536         * indxbib/indxbib.cc (main): Likewise.
10537         * lkbib/lkbib.cc (main): Likewise.
10538         * soelim/soelim.cc (main): Likewise.
10539         * addftinfo/addftinfo.cc (main): Likewise.
10540         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
10541         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
10543         * troff/token.h (process_input_stack): Don't declare as static.
10544         * troff/input.cc: Likewise.
10546         * troff/node.c (invalidate_fontno): Make it a static member of
10547         class font_family.  Change callers.
10548         * troff/node.c: Change declaration.
10550         * tbl/main.cc (struct input_entry_format): Add explicit public
10551         specifier.
10552         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
10553         struct double_hline_stuff): Likewise.
10554         * tbl/table.h (struct entry_format): Likewise.
10555         * pic/object.h (struct saved_state): Likewise.
10557         * include/stringclass.h: Add forward declarations of friend
10558         functions that are later declared as inline.  Don't include inline
10559         specifier in friend declaration.
10561         * libgroff/lib.h: Declare popen and pclose.
10562         * acgroff.m4 (GROFF_POPEN): New macro.
10563         * configure.in: Call it.
10565         * include/lib.h (PI): New constant. Undef first if necessary.
10566         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
10567         * grops/ps.cc (degrees, radians): Likewise.
10568         * libgroff/font.cc (font::get_skew): Likewise.
10570         * grops/ps.cc (is_ascii): New function.
10571         (ps_output::put_string): Use is_ascii.  Use csprint rather than
10572         isprint.
10573         (ps_printer::define_encoding): Use csspace.
10574         * libgroff/strtol.c (ISASCII): New macro.
10575         (strtol): Cast arguments to is*() and tolower() to unsigned char.
10576         Use ISASCII rather than isascii.
10577         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
10578         * libgroff/cset.cc: Likewise.
10579         * libdriver/input.cc: Include cset.h.
10580         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
10581         than isdigit().
10583         * refer/refer.cc (main): Use %ld rather than %d for longs.
10585         * libbib/index.cc (index_search_item_iterator::get_tag): Use
10586         S_ISREG macro.
10588         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
10590 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
10592         * troff/input.cc (hyphenation_code): Skip white space between
10593         char/code pairs.
10595 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
10597         * tbl/table.h (table::entry_list_tailp): New member.
10598         (table::table): Initialize it.
10599         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
10600         behaviour.
10602 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
10604         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
10605         with negative horizontal positions. Remove casts of glyph::hpos to
10606         int.
10607         (USHRT_MAX): Delete definition.
10608         (SHRT_MAX, SHRT_MIN): New definitions.
10609         (glyph::hpos): Change type to short.
10610         (tty_printer::end_page): Output multiple backspaces if necessary.
10611          Remove casts of glyph::hpos to int.
10612         
10613 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
10615         * tmac/tmac.s (@RT): New definition.
10617 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
10619         * refer/refer.cc (do_file): Make sure current_filename is set when
10620         filename is "-".
10622         * pic/common.cc (common_output::dot_line): Handle zero length
10623         lines.
10625 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
10627         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
10628         (par@init): Initialize \n[HY].
10630 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
10632         * troff/dictionary.cc (dictionary::remove): Continue when
10633         r < j < i.
10635 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
10637         * Makefile.com (.y.cc): Avoid ending up with two versions of
10638         $(YTABH).
10640 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
10642         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
10643         (\(,C): Likewise.  Also fix typo.
10645 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
10647         * lib.h: Delete extraneous semi-colon.
10649         * Add pso request: `so' from a pipe.
10650         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
10651         (file_iterator::close): New function.
10652         (file_iterator::~file_iterator, file_iterator::next_file): Use
10653         file_iterator::close.
10654         (file_iterator::backtrace): Say `process' rather than `file' when
10655         the stream is popened.
10656         (pipe_source): New function.
10657         (init_input_requests): Bind ".pso" to pipe_source.
10659 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
10661         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
10663         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
10664         digits in lower case.
10666 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
10668         * Version 1.08 released.
10670         * Makefile.in (dist): Insert || true after ln -s commands that
10671         might fail.
10673         * mm: Update to mm 1.16.
10675         * acgroff.m4 (GROFF_CSH_HACK): New macro.
10676         * configure.in: Call GROFF_CSH_HACK.  Substitute for
10677         SH_SCRIPT_SED_CMD.
10678         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
10679         MDEFINES.
10680         * nroff/Makefile.sub (nroff): New target.
10681         (install_data): Install nroff.
10682         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
10683         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
10685 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
10687         * eqn/Makefile.sub (neqn): Add chmod +x.
10689         * grog/Makefile.sub (grog): Remove spurious semi-colon.
10691 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
10693         * troff/input.cc (string_iterator::string_iterator()): Initialize
10694         lineno and count.
10696 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
10698         * troff/div.cc (macro_diversion::space,
10699         top_level_diversion::space): Don't set high_water_mark.
10700         (macro_diversion::output, top_level_diversion::output): Don't
10701         include post line space in high water mark.
10703 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
10705         * eqn/eqn.y: Don't define YYDEBUG.
10706         * pic/pic.y: Likewise.
10708 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
10710         * tmac/tmac.e ([3): Add space after comma following editors.
10711         Change double spaces to single spaces.
10712         ([4): Change double spaces to single spaces.
10714         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
10715         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
10716         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
10717         after %!PS-Adobe- (for Newsprint).
10719         * troff/div.cc (top_level_diversion::begin_page): When
10720         before_first_page is 1, set page_number to 1.
10722 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
10724         * eqn/box.cc (box::top_level): Protect equation with \&.
10726 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
10728         * groff/groff.cc (possible_command::set_name): Delete old name.
10730         * groff/groff.cc (possible_command::~possible_command): Use
10731         a_delete.
10733         * troff/node.cc (troff_output_file::begun_page): New member.
10734         (troff_output_file::troff_output_file): Initialize it.
10735         (troff_output_file::really_begin_page): Only output V command if a
10736         page has been begun.
10738         * pic/pic.y (placeless_element): Delete argument to PRINT after
10739         use.
10741 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
10743         * Make wrapman work.
10744         * troff/div.h (class top_level_diversion): Replace
10745         first_page_begun by before_first_page (with opposite sense).
10746         * Change first_page_begun to before_first_page inverting sense.
10747         * troff/div.cc (class nl_reg): New class.
10748         (init_div_requests): Use class nl_reg for \n(nl.
10749         (top_level_diversion::begin_page): Don't call
10750         output_file::begin_page if before_first_page is 2;
10751         reset before_first_page afterwards.  If have_next_page_number is
10752         false, then always increment page_number.
10753         * tmac/tmac.an: Set traps within TH rather than at the top-level.
10754         Restore compatibility mode after loading, and then disable
10755         compatibility mode in TH.
10757 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
10759         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
10760         past last line.
10761         * troff/node.h (output_file::trailer): Declare.
10762         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
10763         * troff/node.cc (output_file::trailer): New function.
10764         (troff_output_file::~troff_output_file): Move most code into...
10765         (troff_output_file::trailer): New function.
10766         (class troff_output_file): Delete page_length member. Declare
10767         trailer().
10768         (troff_output_file::really_begin_page): Use current page length
10769         for final V command.
10771         * tbl/main.cc (struct options): New decimal_point_char member.
10772         (options::options): Initialize this.
10773         (process_options): Implement decimalpoint option.
10774         (process_data): Pass decimal_point_char option to table::table.
10775         * tbl/table.h (class table): New decimal_point_char member.
10776         (table::table): Add additional argument.
10777         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
10778         second argument specifying decimal point character.  Use this
10779         instead of '.'.
10780         (table::table): Initialize decimal_point_char.
10781         (table::add_entry): Change call to find_dot.
10783         * troff/input.cc (get_copy, token::next): Implement \V.
10784         (interpolate_environment_variable): New function.
10786 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
10788         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
10789         * pic/pic.y: Likewise.
10791         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
10792         Add casts to int.
10793         * refer/ref.cc (reference::insert_field, reference::delete_field):
10794         Likewise.
10795         * troff/number.cc (parse_term): Likewise.
10797         * acgroff.m4 (GROFF_PROG_YACC): New macro.
10798         * configure.in: Use GROFF_PROG_YACC.
10800         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
10801         and g++.
10802         * Makefile.in (OPTIMIZE): New define.
10803         (DEBUG): Empty by default.
10804         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
10806         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
10807         (GROFF_ARRAY_DELETE): Likewise.
10808         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
10810         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
10812         * devps/psstrip.sed: Use different delimiter on last line (so that
10813         it works with BSD 4.4 sed.)
10815 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
10817         * devps/psstrip.sed: Delete comments.
10819         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
10820         optind, opterr, optarg.
10821         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
10822         opterr, optarg.
10824 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
10826         * Makefile.in (check): Dummy target.
10828 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
10830         * Version 1.07 released.
10832         * Integrate mm 1.11.
10834         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
10835         where start_col was meant.
10837 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
10839         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
10841 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
10843         * troff/input.cc (token::next): Make \z\o'...' and similar things
10844         work.
10846         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
10847         constants.
10848         (environment): Add margin_character_flags member.
10849         * env.cc (environment::environment(symbol),
10850         environment::environment(const environment *): Initialize
10851         margin_character_flags.
10852         (margin_character): Rewrite.
10853         (environment::output_line): Add a margin character if
10854         margin_character_flags is non-zero.  Turn off the
10855         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
10856         zero, use margin_character_node without copying and then set
10857         margin_character_node to 0.
10859         * devps/DESC.in: Change minimum size to 1000.
10861 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
10863         * troff/symbol.h (symbol::hash): Change return type to unsigned
10864         long.
10865         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
10866         Add casts to int.
10868         * test-groff: Use -r rather than -x.
10870         * grops/psfig.diff: Include in distribution again.
10872 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
10874         * Makefile.in (dist): Use gzip.
10876 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
10878         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
10879         unistd.h as well as in stdlib.h.
10880         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
10881         defined; otherwise include <sys/types.h> and <unistd.h> if
10882         UNISTD_H_DECLARES_GETOPT is defined.
10884         * configure.in: use builtin(include, ... rather than include(...
10885         * configure: Regenerate with autoconf 1.3.
10887         * libdriver/print.cc (printer::adjust_arc_center): Use new
10888         algorithm suggested by Andy Fyfe.
10890         * libdriver/printer.cc (printer::adjust_arc_center): New function.
10891         * include/printer.h: Declare this.
10892         * grops/ps.cc (ps_printer::draw): Use it.
10893         * grodvi/dvi.cc (dvi_printer::draw): Use it.
10895 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
10897         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
10899 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
10901         * eqn/main.cc (main): Handle "eqn -".
10903 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
10905         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
10907         * mm: Integrate version 1.08.
10909         * pic/troff.cc (troff_output::finish_picture): Set
10910         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
10911         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
10912         if it's not defined. Check whether the register is non-zero rather
10913         than whether it's not defined.
10914         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
10916         * indxbib/indxbib.cc: Move all signal handling into...
10917         * indxbib/signal.c: New file.
10918         * configure.in: Call AC_RETSIGTYPE.
10920         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
10921         * configure.in: Call GROFF_STRUCT_EXCEPTION.
10922         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
10924         * troff/input.cc (token::token, token::operator=): Work round SGI
10925         C++ bug.
10926         * pic/object.cc (position::position): Likewise.
10928 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
10930         * pic/pic.h: Move declaration of hypot().
10932 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
10934         * pic/pic.h: Declare hypot().
10936         * pic/pic.h: Define M_PI if necessary.
10938 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
10940         * tmac/tmac.e (re): Add alternative version that doesn't use groff
10941         `.ta T' feature.
10943         * devps/prologue.ps (RE): Handle the possibility that the old font
10944         doesn't have a FontName entry.
10946 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
10948         * tmac/tmac.e (fam): Redefine to set family in environment 2.
10949         (@C): Use @fam not fam.
10951 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
10953         * lookbib/lookbib.cc (main): Change type of start to const char *.
10954         * lkbib/lkbib.cc (main): Likewise.
10956         * eqn/lex.cc (definition::definition): Don't use member
10957         initializer syntax for members of anonymous unions.
10959         * troff/input.cc (input_stack::backtrace): Change type of to const
10960         char *.
10962 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
10964         * include/stringclass.h (class string): Declare inline friend
10965         functions as inline in class declaration.
10966         * troff/hvunits.h (class hunits, class vunits): Likewise.
10967         * include/refid.h (class reference_id): Likewise
10968         * troff/troff.h (points_to_units(units), scale(units, double)):
10969         Delete declarations.
10970         * libdriver/input.cc (get_char): Delete declaration.
10971         * include/lib.h: Change 2nd argument of getopt from const char **
10972         to char **.
10973         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
10974         char **' before assigning to a `const char **'.
10975         * tbl/table.cc: Delete extra declarations of prints().
10977 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
10979         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
10980         char **' before assigning to a `const char **'.
10982         * libgroff/errarg.cc (errarg::errarg): Don't use member
10983         initializer syntax for members of anonymous unions.
10985 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
10987         * mm: Integrate version 1.07.
10989 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
10991         * troff/input.c (translate2): Rename to
10992         (translate_no_transparent).
10993         (init_input_requests): Rename tr2 to trnt.
10995 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
10997         * troff/charinfo.h (class charinfo): Add transparent_translate field.
10998         (charinfo::set_translation, charinfo::set_special_translation):
10999         Add second argument that specifies value for
11000         transparent_translate.
11001         (charinfo::get_translation, charinfo::get_special_translation):
11002         Add optional second argument that specifies whether translation is
11003         being used for transparent throughput.
11004         * troff/input.cc (charinfo::set_translation,
11005         charinfo::set_special_translation): Handle second argument.
11006         (charinfo::charinfo): Initialize transparent_translate.
11007         (translate): Split main part off into
11008         (do_translate): New function.  Pass argument saying whether
11009         translation applies to transparent throughput.
11010         (translate2): New request.
11011         (init_input_requests): Bind translate2 to `tr2'.
11013 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
11015         * tbl/table.h (class table): Add `nokeep' flag.
11016         * tbl/main.cc (process_options): Handle `nokeep' option.
11017         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
11018         table::do_bottom): Don't output keep/release macro definitions or
11019         calls when `nokeep' option has been specified.
11021 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
11023         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
11025 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
11027         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
11028         block_entry::divert, alphabetic_block_entry::divert): Add extra
11029         argument giving column separation.
11030         (table::compute_widths): Pass column separation to
11031         table_entry::divert().
11032         (block_entry::do_divert): If an entry spans multiple columns and a
11033         minimumum width has been specified for each column, then set the
11034         line length to the sum of the widths (plus possibly the column
11035         separations).
11037         * troff/input.cc (set_escape_char): Don't set the escape_char
11038         until after calling has_arg().
11040 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
11042         * tbl/table.cc (table::do_top): Add missing \s0 for double box
11043         case.
11045         * tbl/table.cc (table::print_double_hline): Avoid extra new line
11046         in case where r > nrows - 1.
11048         * tbl/table.cc (BODY_HEIGHT): Deleted.
11049         (LINE_SEP): New definition.
11050         (table::print_single_hline, table::print_double_hline,
11051         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
11052         table::do_row, table::do_top): Use LINE_SEP space before a line
11053         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
11055         * tbl/table.cc (text_entry::print_contents): New function.
11056         (text_string_name, right_text_string_name): Deleted.
11057         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
11058         (simple_text_entry::do_width, numeric_text_entry::do_width,
11059         alphabetic_text_entry::do_width): Don't store the contents of the
11060         entry in a string.
11061         (left_text_entry::simple_print, right_text_entry::simple_print,
11062         center_text_entry::simple_print,
11063         alphabetic_text_entry::simple_print,
11064         numeric_text_entry::simple_print): Print the entry directly
11065         instead of using the stored string.
11067 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
11069         * devps/Makefile: Strip PostScript files.
11070         * devps/prologue: Rename to...
11071         * devps/prologue.ps.
11072         * devps/psstrip.sed: New file.
11073         * devps/download: Use .pfa rather than .ps for installed versions
11074         of fonts.
11076 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
11078         * troff/env.cc (input_trap): Give a warning if the argument is out
11079         of range.
11081         * troff/env.cc (adjust): Treat negative argument as missing. Round
11082         argument > 5 down to 5.
11084         * troff/env.cc (center, right_justify): Make negative argument zero.
11086         * troff/div.cc (page_offset, vertical_position_traps): Treat
11087         invalid argument as missing.
11088         * troff/env.cc (line_spacing, line_length, title_length, indent,
11089         underline, hyphen_line_max_request, control_char,
11090         no_break_control_char, widow_control_request, adjust, input_trap,
11091         point_size): Likewise.
11092         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
11093         constant_space): Likewise.
11094         * troff/input.cc (compatible, shift, warn_request,
11095         set_escape_char): Likewise.
11097         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
11098         * tbl/table.cc (table::table): Likewise.
11100         * Makefile.dev (install_dev): depends on $(DEVFILES).
11102 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
11104         * devX75, devX75-12, devX100, devX100-12: New directories.
11105         * Makefile.in: Add these to DEVDIRS.
11107         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
11108         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
11109         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
11110         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
11111         targets.
11112         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
11113         (uninstall): New target.
11114         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
11115         uninstall_prog, uninstall_dev): New targets.
11117         * troff/div.cc (return_request): Treat an invalid argument as
11118         missing.
11120 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
11122         * tmac/tmac.e ((f): Set up the environment even when there's a
11123         current diversion.  Transperently throughput a call to @N.
11124         (@N): New macro.
11126 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
11128         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
11129         up to vertical resolution.
11131         * tbl/table.cc (table::do_row): Change row number after printing
11132         stuff list.
11134         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
11136 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
11138         * Rename CHANGES to NEWS.
11140 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
11142         * libgroff/new.cc (operator new): Avoid calling malloc(0).
11144 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
11146         * man.ultrix: Removed.
11148 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
11150         * Makefile.comm (extraclean): Delete files whose names begin with
11151         `='.
11153         * pic/troff.cc (troff_output::text): Fix typo in implementation of
11154         aligned text.
11156 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
11158         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
11159         * troff/div.cc (page_length, need_space, space_request): Treat
11160         invalid optional argument as missing.
11161         * troff/env.cc (number_lines): If the first argument is present
11162         but not a number, turn on line numbering, don't change the next
11163         line number and parse the remaining arguments.
11165         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
11167 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
11169         * eqn/box.h: Change declaration accordingly.
11170         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
11171         the specified size was bad but don't give an error.  Check for
11172         overflow.
11173         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
11174         * eqn/lex (do_size): Likewise.
11176 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
11178         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
11179         compatible headers.
11181 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
11183         * tbl/table.cc (table::init_output): Improve error message when
11184         table won't fit on one page.
11186 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
11188         * pic/troff.cc (troff_output::start_picture): Generate line
11189         containing a horizontal motion equal to the width of the picture.
11191         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
11192         using GROFF_COMMAND_PREFIX environment variable.
11194 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
11196         * mdate.sh: Use $NF rather than $(NF).
11198 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
11200         * pic/main.cc (main):  Use %1 not %c in argument to warning.
11202         * eqn/main.cc (main): Output code to check that geqn was given the
11203         correct -T option.
11205 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
11207         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
11208         `ln -s ../Makefile .; make; rm -f Makefile'.
11210         * troff/hyphen: Rename to...
11211         * troff/hyphen.us:
11212         * troff/input.cc (main): Delete -H option. Don't call
11213         read_hyphen_file().
11214         * troff/env.cc: Include searchpath.h and macropath.h.
11215         (exception_dictionary): Deleted.
11216         (ht): Deleted.
11217         (read_hyphen_file): Deleted.
11218         (hyphenation_language): New struct.
11219         (class trie, class hyphen_trie): Move declarations up.
11220         (trie_node::~trie_node): Deleted.
11221         (trie::delete_trie_node): New function.
11222         (trie::do_delete): New pure virtual function.
11223         (hyphen_trie::do_delete): New function.
11224         (trie::~trie): New function.
11225         (hyphen_trie::~hyphen_trie): New function.
11226         (trie::clear): No need to chcek that tp is not 0.
11227         (current_language, language_dictionary): New variables.
11228         (hyphen_word): Give an error if no current language.  Use
11229         exceptions dictionary in current language.
11230         (hyphen_trie::read_patterns_file): Find file using macro_path.
11231         Allow comments (starting with %) in patterns file.  Don't make it
11232         a fatal error if the file can't be found.
11233         (hyphenate): Return if no current language.  Get the exceptions
11234         dictionary and the hyphenation patterns from the current language.
11235         (set_hyphenation_language): New variable.
11236         (hyphenation_patterns_file): New function.
11237         (hyphenation_language_reg): New class.
11238         (hyphenation_language_reg::get_string): New function.
11239         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
11240         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
11241         register.
11242         * groff/groff.cc (main, help, synopsis): Delete -H option.
11243         * include/Makefile.sub: Don't define HYPHENFILE.
11244         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
11245         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
11246         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
11247         hyphenation patterns.
11249 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
11251         * eqn/neqn.sh: New file.
11252         * eqn/Makefile.sub: Handle neqn.sh.
11254         * eqn/eqn.h: Declare `nroff' variable.
11255         * eqn/box.cc (param_table): Add `nroff' param.
11256         (nroff): Define it.
11257         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
11258         variable.
11259         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
11261         * troff/troff.h (WARN_FONT): New warning.
11262         (WARN_TOTAL): Change accordingly.
11263         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
11264         (warning_table): Add WARN_FONT.
11265         * troff/node.cc (mount_font_no_translate): Pass argument to
11266         font::load_font.  If this is non-zero, give a warning.
11267         Don't give an error message when accessing a font that has already
11268         been found to be invalid.
11269         * include/font.h (font::load, font::load_font): Add additional
11270         optional argument which suppresses error message if the font is
11271         not found.
11272         * libgroff/font.cc (font::load_font): Handle additional argument.
11273         (font::load): Add additional argument. If this is non-null, set it
11274         to 1 and don't give error message.
11276         * include/printer.h (printer::end_page): Add argument giving
11277         length of page.
11278         * libdriver/input.cc (do_file): Pass this.
11279         * grops/ps.cc (ps_printer::end_page): Add argument.
11280         * grodvi/dvi.cc (dvi_printer::end_page,
11281         draw_dvi_printer::end_page): Add argument.
11282         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
11283         columns_per_page members. New member nlines.
11284         (DEFAULT_LINES_PER_PAGE): Deleted.
11285         (tty_printer::tty_printer): Don't compute lines_per_page from
11286         font::paperlength. Don't compute columns_per_page from
11287         font::paperwidth.
11288         (tty_printer::add_char): Don't check horizontal position against
11289         columns_per_page. Grow glyphs vector if neccessary.
11290         (tty_printer::end_page): Add argument giving page_length in units.
11291         Discard lines past end of page.
11293 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
11295         * tmac/tmac.tty-char: Fix definition of \(/l.
11297         * tmac/tmac.X: Define \(en.
11299 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
11301         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
11302         lpq, then use lp rather than lpr.
11304         * tmac/tmac.s (par@reset): Don't call `ad'.
11305         (par*env-init): Call `ad'.
11307 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
11309         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
11310         date.
11312         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
11313         * indxbib/indxbib.cc: Likewise.
11315 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
11317         * libgroff/putenv.c: New file.
11318         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
11319         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
11320         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
11321         stdlib.h with AC_HAVE_HEADERS.
11323 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
11325         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
11326         does not exist.
11328 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
11330         * eqn/box.cc (gsize): Make it an int.
11331         (set_gsize): Parse argument handling increment or decrement.
11332         (box::top_level): Convert gsize to a string.
11334         * troff/input.cc (exit_troff): Make buf unsigned char [].
11335         Call to make_temp_iterator casts buf to char*.
11337         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
11339         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
11340         * Makefile.cpg (depend.temp): Likewise.
11342         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
11344         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
11346 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
11348         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
11350 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
11352         * Version 1.06 released.
11354         * Integrate mm 1.04.
11356 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
11358         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
11360 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
11362         * afmtodit/afmtodit.pl: Add -n option that disables generation of
11363         ligatures command.
11364         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
11365         afmtodit. Regenerate.
11367         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
11368         @f back past the current position.
11370         * tmac/tmac.e: Change calls to @R so that comments are not part of
11371         arguments.
11373 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
11375         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
11377         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
11378         check that we can link a call to a function declared in <stdio.h>.
11379         (GROFF_UNISTD_H): New macro.
11380         * configure.in: Call it.
11381         * Makefile.in: Document it.
11382         * include/posix.h: New file.
11383         * troff/troff.h: Don't include <osfcn.h>
11384         * troff/input.cc: Include posix.h.
11385         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
11386         osfcn.h.
11387         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
11388         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
11389         <fcntl.h>.
11390         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
11391         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
11392         * libbib/search.cc (O_RDONLY): Delete definition.
11393         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
11394         Don't include <osfcn.h>.
11396         * acgroff.m4 (GROFF_TIME_T): New macro.
11397         * configure.in: Call it.
11398         * Makefile.in: Document it.
11400         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
11401         * configure.in: Call it.
11402         * Makefile.in: Document -DTRADITIONAL_CPP.
11403         * include/ptable.h: Don't include generic.h.
11404         (name2): Define it.
11406         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
11407         Afterwards remove [T1 and [T2.
11408         (ref*spec!0, ref*spec!2): Use T1 rather than T.
11409         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
11410         (ref*add-T2): Renamed from ref*add-T.
11411         (ref*add-T1): New macro.
11413 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
11415         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
11417         * libbib/index.cc: Include <fcntl.h>.
11418         (O_RDONLY): Define if necessary.
11419         (make_index_search_item, index_search_item_iterator::get_tag,
11420         index_search_item::check_files): Use O_RDONLY.
11421         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
11422         (O_RDONLY): Define if necessary.
11423         (search_list::add_file): Use O_RDONLY.
11424         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
11425         <sys/stat.h>.
11426         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
11427         (main): Use these.
11429         * libbib/index.cc (S_ISREG): Define it if necessary.
11430         (index_search_item::load): Use S_ISREG.
11432         * include/driver.h: Include <errno.h>.
11434 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
11436         * eqn/box.cc (body_height): Increase default value to 85.
11437         (body_depth): Increase default value to 35.
11439 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
11441         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
11442         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
11443         protected from expansion with \E.
11445         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
11447         * Makefile (Makefile): New target.
11449         * Makefile.sub (configure, distfiles): New targets.
11451         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
11452         construct.
11454 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
11456         * eqn/box.cc (param_table): Add body_height and body_depth.
11458         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
11460 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
11462         * psbb/Makefile.sub: Don't link with libgroff.a.
11464         * acgroff.m4 (GROFF_PUTENV): New macro.
11465         * configure.in: Call GROFF_PUTENV.
11466         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
11467         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
11468         is defined.
11470         * troff/env.cc (distribute_space): Rename force_forward argument
11471         to force_reverse.  Reverse the list if force_reverse is true.
11473 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
11475         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
11477         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
11478         height or depth to be negative.  Guard against SUP_RAISE quantity
11479         being negative.
11481 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
11483         * devps/generate/textmap: Add `an' (arrowhorizex).
11484         * tmac/tmac.ps: \(an overlaps horizontally.
11485         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
11487         * devps/symbolchars: Add arrowverttp, arrowvertbt.
11488         * devps/textmap: Add arrowvertex.
11489         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
11490         updownarrow delimiters.
11491         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
11493         * tbl/table.cc (simple_entry::position_vertically,
11494         block_entry::position_vertically):  For a centered entry, perform
11495         the motion in two stages.
11497         * refer/refer.cc (split_punct): Don't call lookup_token if there
11498         is no token.
11500 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
11502         * troff/input.cc (token::next): Delete token_node after copying
11503         token.
11505         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
11506         cur_point_size.
11508         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
11510         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
11512 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
11514         * grops/ps.cc (usage): -b option takes an argument.
11516         * devps/prologue (PLG): New procedure.
11517         * grops/ps.cc (main, usage): New -g option.
11518         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
11519         length using PLG.
11521 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
11523         * include/cset.h: Include <limits.h> if we have it.
11525         * libgroff/illegal.cc: New file.
11526         * include/lib.h (illegal_input_char): Use table.
11527         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
11528         * pic/lex.cc (ARG1): Renumber to 14.
11529         * eqn/lex.cc (ARG1): Likewise.
11531         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
11532         (eg 1.05.90) correctly.
11534 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
11536         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
11537         Rename $r and $R registers to $v and $V.
11538         ($r, $R): Initialize to 0.
11539         (@v, @V): New macros.
11540         (sz): Call @v.
11541         (@M): Call @V.
11543         * troff/input.cc (main, usage): Add -R option that says not to
11544         load troffrc.
11545         * eqn/main.cc (main, usage): Rename -n to -R.
11547 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
11549         * devps/DESC.in: Leave font positions 5-9 blank.
11550         * devdvi/DESC.in: Likewise.
11552         * grog/grog.pl: Handle `.PS <file' correctly.
11554         * troff/input.cc (input_stack::push): Improve error message when
11555         input stack limit exceeded.
11557 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
11559         * refer/refer.cc (main): Fix typo in handling of `a' option.
11561         * refer/refer.cc (do_bib): In state START after a newline remain
11562         in state START.
11564         * groff/groff.sh: Deleted.
11565         * groff/Makefile.sub: Delete handling of groff.sh.
11567         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
11568         to determine whether to use \X'ps:...'.
11569         * tmac/troffrc: Set 0p register to 0.
11570         * tmac/tmac.ps: Set 0p register to 1.
11572         * groff/groff.cc: Support -X option. Give warning for -TXps and
11573         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
11574         * tmac/troffrc: Support -r.X=1.
11576         * pic/troff.cc (troff_output::dot): Don't test
11577         zero_length_line_flag.
11579 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
11581         * include/lib.h: Declare getopt() and friends unless
11582         STDLIB_H_DECLARES_GETOPT is defined.
11584         * doc/chars.tr: Delete.
11585         * man/groff_char.man: New file.
11587 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
11589         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
11590         user has changed register format.
11592 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
11594         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
11595         `postpro' command in DESC file.  Get spooler command from `print'
11596         command in DESC file.  Execute spooler command with /bin/sh.
11598         * groff/groff.cc: Split Unix-specific parts into...
11599         * groff/pipeline.c: New file.
11601         * LICENSE: Delete.
11602         * COPYING: New file.
11603         * all files: Update copyright notices.
11605         * Rearrange files.  Redo Makefiles.  Use autoconf.
11607 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
11609         * troff/input.c (charinfo_to_node_list): Interpret character
11610         definition with escape_char of `\'.
11612 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
11614         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
11615         Define INT_DIGITS as big enough for 64-bit integer.
11616         * lib/strtol.c: Don't include lib.h.
11617         * lib/lib.h: Delete ifdef __cplusplus stuff.
11619 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
11621         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
11622         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
11623         get DESC from current directory.
11625 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
11627         * tbl/main.c (main): Always reset the line number when reading
11628         from stdin.
11630         * tbl/table.c (table::print_single_hline, table::print_double_hline,
11631         table::define_bottom_macro, table::do_row, table::do_top): Round
11632         vertical spacing up to vertical resolution.
11634 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
11636         * ps/ps.h (enum resource_type): Avoid comma at end of
11637         enumerator-list.
11638         * dvi/dvi.c (class dvi_printer): Likewise.
11639         * dvi/tfmtodit.c (gf::load): Likewise.
11640         * refer/label.y (struct expression): Likewise.
11641         * refer/refer.c (class label_processing_state): Likewise.
11642         * refer/indxbib.c (do_file): Likewise.
11643         * troff/troff.c (enum warning_type): Likewise.
11644         * tbl/main.c (process_data): Likewise.
11645         * troff/charinfo.h (class charinfo):
11647 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
11649         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
11651 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
11653         * groff.c: Move to new groff subdirectory.
11654         * groff/Makefile: New file.
11655         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
11657         * man/mdate.sh: Use ls -L if supported.
11659         * Consolidate all header files produced by gendef into lib/defs.h.
11660         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
11661         Don't include path.h.
11662         * lib/Makefile (path.h): Don't generate.
11663         * troff/input.c: Include defs.h. Don't include config.h.
11664         * troff/Makefile (config.h): Don't generate.
11665         * refer/index.h: Don't include suffix.h.
11666         * refer/index.c: Include defs.h.
11667         * refer/indxbib.c: Include defs.h.
11668         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
11669         defs.h.
11670         * refer/Makefile (suffix.h, path.h): Don't generate.
11671         * groff.c: Don't include config.h. Include defs.h.
11672         * Makefile (config.h): Don't generate.
11673         (lib/defs.h): Generate.
11674         (topclean): Remove lib/defs.h.
11676 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
11678         * lib/malloc.c, lib/getpagesize.h: Deleted.
11679         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
11680         related stuff.
11681         * lib/Makefile: Delete malloc-related stuff.
11682         * lib/new.c: Workaround COOKIE_BUG if necessary.
11684         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
11685         needed header files directly.
11686         * refer/refer.h: Omit definition of DEFAULT_INDEX.
11687         * Makefile: Include definition of DEFAULT_INDEX in path.h.
11689 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
11691         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
11692         argument.
11693         * lib/font (font::load_desc, font::load): Don't split argument of
11694         unknown command.
11695         (font::handle_unknown_font_command): Change type.
11696         * ps/ps.c (ps_font::handle_unknown_font_command,
11697         handle_unknown_desc_command): Change type.
11698         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
11700 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
11702         * lib/font.h (font::handle_unknown_font_command): Add file and
11703         line arguments.
11704         * lib/font.c (font::handle_unknown_font_command):
11705         * ps/ps.c (ps_font::handle_unknown_font_command):
11706         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
11707         lineno arguments.  Use _with_file_and_line functions for error
11708         reporting.
11710         * lib/fontfile.c (font::unknown_desc_command_handler): New static
11711         data member.
11712         * lib/font.c (font::set_unknown_desc_command_handler): New
11713         function.
11714         (font::load_desc): For unknown commands, call
11715         unknown_desc_command_handler if not null.
11716         * lib/font.h (class font): Declare them.
11717         (FONT_COMMAND_HANDLER): New typedef.
11718         * ps/ps.c (handle_unknown_desc_command): New function.
11719         (main): Set bflag if we had a -b option. Call
11720         font::set_unknown_desc_command_handler.
11721         (broken.h): Don't include.
11722         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
11723         submake 
11724         * ps/devps/Makefile: Add `broken' command to DESC file using
11725         BROKEN_SPOOLER_FLAGS.
11727         * macros/tmac.e ([, ]): Add as synonyms for { and }.
11729         * macros/tmac.e ($p): Only exdent if \$3 > 0.
11731         * macros/tmac.e (@R, @S): New macros.
11732         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
11733         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
11734         Declare $H, $[0-9], .. macros with @S.
11735         Declare |0, |1, |2, |3 strings with @S.
11737         * macros/tmac.e (@S): Rename to @U.
11739         * macros/tmac.e (@z): Define @b and bp as empty instead of
11740         deleting them,
11742         * macros/tmac.e (@m): Deleted.
11743         (@h): Don't call @m.
11744         (@z): Don't set @m trap.
11746         * macros/tmac.e ($h, $f): Define |z as empty string.
11748         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
11749         (@q): Likewise.
11751         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
11752         removing them.
11753         ()f): Likewise for * register.
11755         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
11756         argument is missing, don't change $R.  Call sr with three
11757         arguments when initializing.
11759 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
11761         * macros/tmac.e (sr): New macro.
11762         Initialize $r and $R using sr.
11764         * macros/tmac.e (,): Delete \*(#[.
11766         * troff/env.c (set_tabs): Read the tab type even if the position
11767         is bad.  Allow the position of the first tab stop to be negative.
11769 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
11771         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
11772         _POSIX_VERSION.
11773         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
11774         rather than -DPATHCONF_MISSING.
11775         * Makefile: Get rid of PATHCONF_MISSING.
11777         * refer/map.c: New file.
11778         * refer/index.c: Interface to mmap through map.c.  Rename map_size
11779         to map_len.
11780         * refer/Makefile: Handle map.c.
11781         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
11783 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
11785         * Makefile: RANLIB should be `true' if there is no ranlib.
11786         * lib/Makefile (libgroff.a): Simplify.
11787         * driver/Makefile (libdriver.a): Simplify.
11789         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
11790         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
11791         defined.
11793 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
11795         * troff/env.c (compare_ranges): Declare as extern "C".
11797         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
11799         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
11801 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
11803         * pic/troff.c (troff_output::text): Merge in grops_output::text,
11804         but conditionalize use of \X based on \*(.T.
11805         (grops_output::*): Deleted.
11806         * pic/output.h: Delete declaration of make_grops_output.
11807         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
11808         by default. -n sets it to 0.
11809         (usage): Corresponding changes.
11810         * groff.c (main): Don't pass -x or -p to pic.
11811         * groff.sh: Likewise.
11813         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
11814         to be non-zero.
11816         * ps/devps/afmtodit: Change calculation of asc_boundary and
11817         desc_boundary.  Make these bounds inclusive.
11818         * ps/devps: Regenerate font files.
11820 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
11822         * macros/tmac.latin1: New file.
11823         * macros/tmac.tty-char: Use tmac.latin1.
11824         (tmac.tty-tr): Deleted.
11825         * macros/Makefile: Install tmac.latin1.
11826         * macros/tmac.dvi: Use tmac.latin1.
11827         * macros/troffrc: Translate \[char160] onto no-break space here.
11828         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
11830 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
11832         * macros/tmac.Xps: Use `do' request.
11834         * macros/tmac.ps: Use `do' request.
11836         * macros/tmac.e (@C): Use `do' request.
11838         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
11839         * macros/Makefile: Install tmac.X*.
11841         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
11842         * tty/Makefile: Don't install tmac.tty*.
11843         * macros/Makefile: Install tmac.tty*.
11845         * dvi/tmac.dvi: Move to macros.
11846         * dvi/Makefile: Don't install tmac.dvi.
11847         * macros/Makefile: Install tmac.dvi.
11849         * ps/tmac.ps*: Move to macros.
11850         * ps/Makefile: Don't install tmac.ps*.
11851         * macros/Makefile: Install tmac.ps*.
11853         * eqn/box.c: Provide draw_lines parameter corresponding to -D
11854         option.
11855         * macros/eqnrc: Set draw_lines parameter based on device.
11856         * groff.c: Don't pass -D flag to eqn.
11857         * groff.sh: Likewise.
11858         * eqn/main.c: Warn about use of -D.
11860         * troff/input.c (process_startup_file): New function.
11861         (main): Call process_startup_file().
11862         * macros/troffrc: New file.
11863         * macros/Makefile: Install troffrc.
11864         * groff.c (main): Don't pass extra -m option to troff. For a 
11865         pseudo device pass the name of the pseudo device to troff using
11866         -d.
11867         * groff.sh: Likewise.
11868         * groff.c (possible_command::prepend_arg): Deleted.
11870         * troff/input.c (do_request): New function.
11871         (init_input_requests): Bind "do" to do_request.
11873         * eqn/main.c (main): Instead of loading eqnchar from device directory,
11874         load eqnrc from macro directory.
11875         * macros/eqnrc: New file.
11876         * macros/Makefile: Install eqnrc.
11877         * ps/devps/eqnchar: Deleted.
11878         * ps/devps/Makefile: Don't install eqnchar.
11879         * dvi/devdvi/eqnchar: Deleted.
11880         * dvi/devdvi/Makefile: Don't install eqnchar.
11881         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
11882         variable optM.
11884         * lib/device.[ch]: New files.
11885         * lib/font.h (font::set_device_name, font::get_device_name):
11886         Deleted.
11887         * lib/fontfile.c: Use device.h.
11888         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
11889         * troff/input.c: Delete definition of `device'.
11890         (main): Don't initialize device.
11891         * troff/troff.h: Include device.h rather than declaring device.
11892         * troff/Makefile: No need to handle DEVICE.
11893         * driver/input.c: Include device.h. Don't use
11894         font::{set,get}_device_name.
11895         * groff.c, Makefile: Rename device.h to config.h.
11896         * groff.c: Use library device variable.
11897         * eqn/main.c: Use library device variable.
11898         * eqn/Makefile: No need to handle DEVICE.
11900         * lib/searchpath.[ch]: New files.
11901         * lib/Makefile: Handle searchpath.[ch].
11902         * troff/input.c (open_file, init_dirs): Deleted.
11903         (macro_dirs): Deleted.
11904         (open_mac_file, macro_source): Use class search_path.
11905         (add_string, struct string_list): Move definition.
11906         (main): Change -M option to use macro_path. Delete call to
11907         init_dirs().
11908         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
11909         Rewrite to use class search_path.
11910         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
11911         * lib/Makefile: fontfile.c depends on searchpath.h.
11912         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
11913         MACROPATH.
11914         * lib/macropath.[ch]: New files.
11915         * troff/Makefile: No need to handle MACROPATH.
11917         * troff/input.c: Delete DUMP code.
11918         * lib/fontfile.c, lib/font.h: Delete
11919         font::forget_command_line_font_dirs.
11921         * troff/input.c (push_token): New function.
11922         (handle_first_page_transition): Use push_token().
11923         (process_input_stack): Change handling of a space at the beginning
11924         of the line.
11926 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
11928         * troff/input.c (font_dirs): Delete unused variable.
11930         * eqn/lex.c (do_set): Correct error messages.
11932 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
11934         * troff/input.c (do_define_string): Allow the string name to be
11935         followed immediately by a tab.
11936         (define_character): Likewise.
11938 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
11940         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
11941         be negative.
11943         * troff/input.c (input_iterator::is_file): New virtual function.
11944         (file_iterator::is_file): New function.
11945         (input_stack::end_file): New function.
11946         (input_stack::next_file): Handle the situation where there is no
11947         file on the input stack correctly.  Avoid making two passes over
11948         the input stack.
11949         (next_file): Make the filename optional; in this case call
11950         input_stack::end_file().
11952 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
11954         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
11955         produce a real _ charater when the current font is CW and _
11956         otherwise.
11958         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
11959         expression to work around gcc 2.2 bug.
11961 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
11963         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
11965         * troff/env.c (environment::add_padding): New function.
11966         (environment::add_char): Use add_padding().
11967         (environment::space): Likewise.
11968         (environment::wrap_up_field): Add some padding if there is none
11969         and there's no current tab.
11970         * troff/env.h: Declare environment::add_padding.
11972 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
11974         * pic/pic.y: undef fmod and rand before declaring them.
11976 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
11978         * troff/input.c (main): If the DESC file specifies a font name of
11979         0, then leave the corresponding font position empty.
11981         * nroff.sh: New file.
11982         * Makefile (install.nobin): Install nroff.sh.
11984         * tty/devlatin1/R.proto: Add ao as synonym for de.
11985         * tty/tmac.tty-char: Define ao as o.
11987         * tty/dev{ascii,latin1}/R.proto: Add aq.
11988         * tty/tmac.tty-char: Delete definition of aq.
11990 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
11992         * troff/input.c (init_charset_table): Don't translate 0240.
11993         * ps/tmac.ps: Translate char160 to space.
11994         * dvi/tmac.dvi: Likewise.
11995         * tty/tmac.tty: Likewise.
11997 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
11999         * dvi/tmac.dvi: Add support for all Latin-1 characters.
12001         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
12002         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
12003         \(oe, \(r?, \(r!.
12005         * tty/tmac.tty-char: Add \(ah.
12007         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
12008         No need to define \(FM and \(!/. Conditionalize all character
12009         definitions.
12011         * ps/devps/lgreekmap: Add +h, +f, +p.
12013         * ps/tmac.psnew: New file.
12014         * ps/Makefile: Install tmac.psnew.
12016         * troff/input.c (charinfo_to_node_list): Don't ever interpret
12017         character definitions in compatible mode.
12019         * troff/input.c (remove_character): New function.
12020         (init_input_requests): Bind remove_character to "rchar".
12022         * ps/tmac.psold: New file.
12023         * ps/Makefile: Install tmac.psold.
12024         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
12025         characters into tmac.psold.  Make these definitions unconditional.
12027         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
12029         * ps/tmac.ps: Don't define \('c and \('C.
12031         * ps/devps/textmap: Move Greek characters to...
12032         * ps/devps/symbolchars:
12034 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
12036         * ps/devps/text.enc: Add quotesingle.
12037         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
12038         * tty/tmac.tty-char: Likewise.
12039         * dvi/devdvi/texmi.map: Add +h, +f, +p.
12040         * dvi/devdvi/texi.map: Add Fn.
12041         * dvi/devdvi/msam.map: Add lz.
12042         * dvi/tmac.dvi: Handle Bq, bq, aq.
12044         * pic/lex.c (get_token): Recognize 'th.
12045         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
12047 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
12049         * ps/devps/textmap: Move di, mu, +- to...
12050         * ps/devps/symbolchars:
12052         * macros/tmac.s (@XS): Don't call par@reset or fi.
12053         (XA): Call LP. Turn off adjustment. Reduce line length.
12055         * macros/tmac.s: Initially alias XS to LP.
12056         (XS): Rename to @XS.
12057         (cov*ab-init): Alias XS to @XS.
12059 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
12061         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
12062         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
12063         (token::is_size, token::changes_env): Deleted.
12064         * troff/number.c (parse_term): No need to process \s explicitly.
12065         Call tok.next() only after scale indicator has been processed.
12066         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
12067         \f etc explicitly.
12068         (token::next): Handle \s, \f, \S, \H immediately rather than
12069         returning them as tokens.
12070         (token::operator==, token::description, token::add_to_node_list,
12071         token::process): Remove handling of deleted tokens.
12073         * troff/env.c (environment::add_char): When adding padding
12074         indicator character, call start_line() if necessary.
12076 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
12078         * ps/devps/afmtodit: Don't output 0 kerns.
12080         * ps/devps/afmtodit: Remove directory from name of encoding in
12081         font description file.
12083         * ps/devps/afmtodit: Improve error messages.
12085         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
12087         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
12088         * ps/devps/FontMakefile: Deleted.
12089         * ps/devps/afmname: New file.
12091         * ps/devps/symbol.sed: New file.
12092         * ps/devps/symbol.diff: Deleted.
12093         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
12094         Generate zapfdr.afm from zapfd.afm.
12096         * tty/tmac.tty (tty-char): Prefix definition with ".
12098         * macros/tmac.an (TP): Don't start a diversion if one has already
12099         been started.
12101         * tty/tmac.tty-char: Add Latin-1 characters.
12103         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
12105 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
12107         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
12108         Move declaration of struct horizontal_span.
12110         * tbl/table.c (table::table): Initialize span_list.
12111         (table::~table): Delete span_list.
12113         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
12115         * ps/devps/Makefile: Avoid dependency on GNU make.
12117         * ps/tmac.ps: Check that character does not already exist before
12118         defining it.
12120         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
12121         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
12122         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
12123         files.
12125         * tty/tmac.tty-char: New file.
12126         * tty/Makefile: Install tmac.tty-char.
12127         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
12128         tmac.tty-char.
12130         * tty/tmac.tty: Fix definition of \(34.
12132         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
12133         bracket-drawing characters onto |. Add *o.
12135         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
12136         only if current_field.
12138         * troff/dictionary.c (dictionary::lookup): Free old_table after
12139         rehashing. 
12141 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
12143         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
12144         whose glyphs are identical to glyphs of some Roman character.
12146         * tty/devlatin1/R.proto (bu): Deleted.
12147         * tty/devascii/R.proto (bu): Deleted.
12148         * tty/tmac.tty: Add definition of \(bu.
12150         * eqn/main.c (do_file): Pass FILE as argument.
12151         (main): Automatically load eqnchar.  New options -F and -n.
12152         Pass do_file an opened FILE.
12153         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
12154         No need to include font.h.
12155         * groff.sh: Likewise.  Don't need to use - for standard input.
12156         Prefix files with -- if first file starts with -.
12158         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
12160         * troff/env.c (environment::possibly_break_line): Don't set line
12161         to 0 across call to output_line().  Don't call output_line() until
12162         after discarding nodes after break.
12164 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
12166         * request.h (macro::empty): Declare it.
12167         * input.c (macro::empty): New method.
12168         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
12169         macro is empty.
12171 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
12173         * troff/env.c (environment::start_field): Decrement space_total
12174         when a space is frozen.
12176 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
12178         * macros/tmac.an (R): Delete macro.
12180         * troff/input.c (get_copy, token::next): Support \# (like \" but
12181         newline is ignored).
12183         * troff/input.c (token::next): Fix error message in 'Y' case.
12185 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
12187         * eqn/delim.c (define_extensible_string): Recognize any prefix of
12188         a delimiter name.
12190 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
12192         * c++test.c: Include <osfcn.h>.
12194         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
12195         <errno.h> doesn't.
12197 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
12199         * tbl/table.c (table::divide_span): Don't count column separation
12200         if expand was specified.
12202         * tbl/main.c (process_format): Don't ignore width specs in
12203         continued format.  Give warning for changing equal widths or
12204         column separation in continued format.
12205         (process_data): Set column separation, minimum width, equal
12206         columns at end of table.
12208 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
12210         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
12211         node::add_discretionary_hyphen): Use soft_hyphen_char.
12212         (set_soft_hyphen_char): New function.
12213         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
12215         * Makefile (c++tested): Give more helpful message if test fails.
12217 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
12219         * troff/input.c (init_charset_table): Translate 0240 to
12220         an unbreakable space.
12222         * troff/token.h (token::hyphen_indicator): New function.
12223         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
12224         translation.
12225         * troff/input.c (translate): Allow translation to \%.
12226         * troff/node.c (node::add_char): Handle
12227         TRANSLATE_HYPHEN_INDICATOR.     
12228         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
12230         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
12231         for \(hy.
12233         * tty/devlatin1/R.proto: \(hy and - should print as 055.
12235 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
12237         * groff.c (run_commands): If the last command gets a SIGPIPE send
12238         a SIGPIPE to all children than haven't yet terminated.  When
12239         command terminates, set pid field to -1.
12241 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
12243         * groff.c (main): Pass an appropriate -filename option to gxditview.
12245 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
12247         * Makefile.bd (install): Remove existing program before copying.
12249         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
12250         programs which have Unix counterparts to be installed with
12251         user-specified prefix.
12253         * troff/input.c (exit_troff): Don't check if exit_started.
12254         (exit_request): Don't call exit_troff if exit_started.
12256         * Makefile.bd (install.mm): Rename to install.dwbmm.
12258 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
12260         * driver/input.c (do_file): Add missing break for '#' case.
12262 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
12264         * troff/input.c (input_stack::clear):  Clear past any boundaries and
12265         then add the boundaries back.
12267         * troff/input.c (exit_troff): Return immediately if already
12268         exiting.
12270         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
12271         end macro.
12272         (pg*end-page): If the text has ended and there are no more
12273         footnotes or keeps, exit.
12275         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
12277         * troff/input.c (init_charset_table): Make \(rq transparent by
12278         default.
12280         * macros/tmac.an: Define lq and rq strings.
12282         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
12284 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
12286         * troff/env.c (environment::final_break): New function.
12287         (environment::newline): Set prev_line_interrupted to 2 if
12288         exit_started.
12289         * troff/env.h: Declare environment::final_break.
12290         * troff/input.c (exit_troff): Call environment::final_break()
12291         instead of environment::do_break().
12293         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
12294         doesn't already exist.
12295         * macros/man.local: New file.
12296         * macros/tmac.an: Load man.local.
12297         * macros/man.ultrix: New file.
12299 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
12301         * troff/input.c (exit_groff): Rename to...
12302         (exit_troff): New function.
12304         * troff/div.c (exit_started, done_end_macro,
12305         seen_last_page_ejector): New global variables.
12306         (began_page_in_end_macro): New static variable.
12307         (exit_flag): Deleted.
12308         (top_level_diversion::top_level_diversion): Initialize
12309         last_page_count.
12310         (top_level_diversion): More elaborate test for whether
12311         cleanup_and_exit() should be called.
12312         Set began_page_in_end_macro if the end macro isn't yet finished.
12313         * troff/div.h (top_level_diversion::last_page_count): New data
12314         member.
12315         (top_level_diversion::set_last_page): New function.
12316         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
12317         * troff/env.c (do_break): Zero prev_line_interrupted.
12318         * troff/input.c (exit_flag): Delete declaration.
12319         (LAST_PAGE_EJECTOR): New magic cookie.
12320         (token::next): Handle LAST_PAGE_EJECTOR.
12321         (exit_groff): Set exit_started and done_end_macro instead of
12322         exit_flag.  Call top_level_diversion::set_last_page.  Push a
12323         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
12324         another ejection after setting seen_last_page_ejector.
12326 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
12328         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
12330         * macros/tmac.e (TH): Make sure there's room for the initial
12331         header.
12333         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
12334         Set FVS in points rather than units.
12336 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
12338         * troff/div.c (top_level_diversion::add_trap): Don't consider the
12339         position of empty slots.
12341 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
12343         * ps/devps/S: Fix height and depth of parenrightex.
12344         * ps/devps/symbol.diff: Regenerate.
12346 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
12348         * tmac.e (u): Do underlining as in -mgs.
12350 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
12352         * tty/tty.c (tty_printer::end_page): If overstriking is
12353         suppressed, still turn overstruck horizontal and vertical lines
12354         into +.
12356         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
12357         2.1.
12359         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
12361 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
12363         * Version 1.05 released.
12365 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
12367         * tty/tty.c: Instead of keeping an array of glyphs and then
12368         sorting it, keep a ordered linked list of glyphs for each line.
12370         * driver/driver.h: Include stddef.h.
12372         * tty/tty.c (compare_glyph):
12373         * refer/refer.c (rcompare):
12374         * troff/env.c (compare_ranges): Arguments of qsort comparison
12375         function should be const void *.
12377         * troff/number.c (parse_term):
12378         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
12379         switch statement.
12381         * refer/label.y (consider_authors): Don't access variables
12382         constructed under a condition outside that condition: put braces
12383         round for statement containing declaration; redeclare use of same
12384         variable later.
12386         * pic/pic.y (text_expr): Delete production that allows
12387         parenthesised text_expr.
12388         (expr): Allow a conditional_expr to appear in parentheses.
12389         (conditional_expr): Rename to any_expr.
12391         * mm: Install new version 1.01 from jh.
12393         * lib/font.c (font::get_width): Cache scaled widths.
12394         (font::font): Initialize widths_cache.
12395         (font::~font): Destroy widths_cache.
12396         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
12398 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
12400         * c++test.c, c++test.ref: New files.
12401         * Makefile: Check that the C++ compiler works.
12403         * ps/tmac.pspic (PSPIC): Do a break.
12405         * ps/tmac.ps: Move definition of PSPIC into...
12406         * ps/tmac.pspic: New file.
12407         (PSPIC): Draw box around picture, but make it invisible to grops.
12408         * ps/tmac.ps: Load tmac.pspic.
12409         * ps/Makefile: Install tmac.pspic.
12411 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
12413         * lib/font.c (scale_round): If n is negative,
12414         subtract .5 before truncating floating point result.
12416         * lib/fontfile.c: Include <errno.h>.
12418 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
12420         * driver/input.c (get_char): Inline. Don't update current_lineno.
12421         Change callers to up date current_lineno if necessary.
12422         Use get_char() instead of getc(current_file).
12424 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
12426         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
12428 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
12430         * tty/tty.c (tmac.tty): Define \(rg as (R).
12432 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
12434         * lib/lib.h: New define a_delete.
12435         * Use a_delete instead of delete when deleting an array of objects
12436         without destructors.
12438         * lib/lib.h: Rename adelete to ad_delete.
12439         * Change uses of adelete.
12441 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
12443         * eqn/eqn.y: Include lib.h.
12445         * troff/node.c (grow_font_table): Delete old_font_table.
12447         * mm: Install new version from jh.
12449 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
12451         * tbl/table.h (format_type): Make global instead of local to class
12452         entry_format.  Prefix enumerators with FORMAT_.
12453         * tbl/table.c, tbl/main.c: Corresponding changes.
12454         * refer/token.h (token_type): Make global.  Prefix enumerators
12455         with TOKEN_.
12456         * refer/token.[ch]: Corresponding changes.
12457         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
12459         * troff/div.c (node::set_vertical_size): Don't name argument.
12461 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
12463         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
12464         * lib/lib.h: Define adelete accordingly.
12465         * pic/object.c (graphic_object::graphic_object):
12466         * tbl/main.c (format::~format):
12467         * tbl/table.c (table::~table):
12468         * refer/ref.c (reference::~reference, reference::merge,
12469         reference::insert_field, reference::delete_field): Use adelete.
12471         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
12472         * refer/token.h:
12473         * tbl/table.h: Corresponding changes.
12475         * common.c (common_output::dashed_arc, common_output::dotted_arc):
12476         Ensure total_angle is positive.
12478 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
12480         * refer/ref.c (reference::merge, reference::insert_field,
12481         reference::delete_field): Avoid delete[0].
12483         * refer/token.c (init_special_chars): Move calls to cmupper
12484         outside calls to init_two_char_letter to work around bug in gcc
12485         2.0.
12487 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
12489         * lib/new.c (operator new): Use __builtin_new for g++.
12491         * pic/object.c (graphic_object::~graphic_object):  Don't use
12492         delete [] on 0.
12494         * pic/object.c (output::compute_scale): Initialize max_width and
12495         max_height.
12497 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
12499         * troff/input.c (write_request): Call fflush.
12501         * troff/node.h (class composite_node): Move declaration to node.c
12502         * troff/input.c (charinfo_to_node): Rename to ...
12503         (charinfo_to_node_list): Return node list rather than composite
12504         node.
12505         * troff/node.c (make_composite_node): New function.
12506         (make_node, add_char): Call make_composite_node instead of
12507         charinfo_to_node.
12508         (class composite_node): Add a tfont * member.  Delete font_size
12509         member.
12510         (composite_node::composite_node, composite_node::copy,
12511         composite_node::size): Corresponding changes.
12512         (composite_node::tprint): Provide constant spacing, emboldening
12513         and track kerning as specified in tfont.
12514         (composite_node::width): Change width calculation accordingly.
12515         * troff/env.h (environment::composite): New member.
12516         (environment::is_composite, environment::set_composite): New
12517         functions.
12518         * troff/env.c (environment::environment): Initialize composite.
12519         * troff/input.c (charinfo_to_node): Call
12520         environment::set_composite.
12521         * troff/node.c (make_composite_node, make_glyph_node): Use the
12522         plain version of the tfont if the environment is composite.
12524         * troff/node.c (font_info::get_space_width): Additional argument
12525         giving space_size.  Handle constant space correctly. Scale by
12526         space_size unless constant spaced.
12527         (env_sentence_space_width): New function.
12528         * troff/node.h: Declare it.
12529         * troff/env.h (environment::get_space_size,
12530         environment::get_sentence_space_size,
12531         environment::get_narrow_space_width,
12532         environment::get_half_narrow_space_width): Make inline.
12533         (environment::get_space_width): Make inline.  Just call
12534         env_space_width.
12535         * troff/env.c: Delete definitions for funtions made inline.
12536         (environment::space_newline, environment::space): Use
12537         env_sentence_space_width(). Don't scale by space_size.
12538         * troff/node.h: Move declarations of env*space_width() functions
12539         into env.h.
12541 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
12543         * macros/tmac.s (PS): Don't try to set negative indent.
12545 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
12547         * pic/pic.y: Fix min function.
12549 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
12551         * man/mdate.sh: Clear LANGUAGE.
12553 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
12555         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
12556         * pic/lex.c: New COMMAND keyword.
12557         * pic/pic.y (print_args, print_arg): New rules.
12558         (placeless_element): Use print_args for PRINT.
12559         New COMMAND element.
12561 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
12563         * troff/input.c (terminal): Handle missing argument correctly.
12565         * pic/pic.y (text_expr): New rule.
12567         * pic/pic.y: Implement := operator.
12569 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
12571         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
12572         mdoc.
12574 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
12576         * ps/devps/dingbatsrmap: Include this in the distribution.
12578         * macros/tmac.doc: Replace with new version from 2nd Networking
12579         Release. Fix loading of doc-* files.
12580         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
12581         * macros/tmac.doc.old: New file.  Apply fixes that had been
12582         applied to old tmac.doc.
12583         * macros/tmac.andoc: Check that we're running under groff.
12584         * macros/Makefile: Rework.
12586 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
12588         * tbl/table.h (format_type): 
12589         * refer/token.h (token_type): If NESTED_TYPES is defined, use
12590         typedef to make these types visible at file scope.
12591         * Makefile: Add NESTED_TYPES configuration option.
12593         * troff/div.c (mark): At the top level use the value of
12594         nl_reg_contents rather than the current vertical position.
12596 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
12598         * tty/tty.c: Implement \D for horizontal or vertical lines.
12599         (tty_printer::set_char): Use vec_used+2 as serial number.
12600         Don't allow size of vector to exceed USHRT_MAX-2.
12601         Split off part into...
12602         (tty_printer::add_char): New function.
12603         (tty_printer::draw): New function.
12604         (compare_glyph): Handle equal serial numbers.
12605         (tty_printer::end_page): Handle overstruck characters from \D.
12606         (main, usage): Implement -d option.
12608 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
12610         * tbl/main.c (process_format):
12611         * eqn/text.c (split_text):
12612         * troff/input.c (token::next): Use inner block for declarations
12613         with initializers in switch statement.
12615 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
12617         * pic/common.c (common_output::dash_line): Cope with zero-length
12618         lines.
12620 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
12622         * Version 1.04 released.
12624 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
12626         * macros/tmac.an (TH): Define a macro an-init to define variables
12627         based on command line arguments.
12628         (an-header): Call it.
12630 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
12632         * Makefile (install.mm): Rename to install.dwbmm.
12634         * Makefile: Integrate mm.
12635         * mm: New directory.
12637 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
12639         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
12640         <sys/types.h>.
12642         * pic/troff.c (troff_output::simple_spline,
12643         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
12644         shadowing parameter.
12646         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
12648         * lib/ptable.h: Add explicit casts when converting from unsigned
12649         long to unsigned.
12651         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
12652         * dvi/devdvi/Makefile: Install SA, SB.
12654         * refer/indxbib.c: Add declaration of mktemp.
12656         * refer/lookbib.c: Add declaration of isatty.
12658 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
12660         * pic/lex.c (interpolate_macro_with_args):  While collecting
12661         arguments, keep track of whether we're in a string.
12663 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
12665         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
12666         down with \v, so as to avoid problems with top of page trap
12667         setting no space mode.
12669 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
12671         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
12673 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
12675         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
12676         Improve error message.
12678 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
12680         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
12681         printf("%03o");
12683 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
12685         * groff.c (possible_command::execp): Always use _exit() after a
12686         failed exec.
12688         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
12689         NO_SYS_WAIT_H   configuration options.
12690         * groff.c: Use these options.  Use POSIX-style macros to extract
12691         fields from the status returned by wait().
12693 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
12695         * tbl/table.c (table::compute_separation_factor): Allow the
12696         separation factor to drop to 0.
12698 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
12700         * refer/search.c: Include <errno.h>.
12702 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
12704         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
12706         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
12707         C++. 
12709         * pic/lex.c (input_stack::bol): Move definition out of class body.
12711         * pic/main.c: On MSDOS munge argv[0].
12713         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
12715         * lib/ptable.c (hash_string): Use unsigned long rather than
12716         unsigned.
12717         (next_ptable_size): Use unsigned rather than int.  Give an error
12718         message if we've hit the largest table size.
12719         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
12720         table size.
12722         * pic/object.h (object_spec): Make flags unsigned long.  Declare
12723         flags as const unisgned long rather than as enums.
12725         * pic/output.c: Deleted.
12727         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
12729         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
12730         Add additional argument.
12731         (line_entry::note_double_vrule_on_{left,right}): Set value of
12732         douvle_vrule_on_{right,left} flag according to argument.
12733         (simple_line_entry::simple_print,
12734         simple_line_entry::double_line_print): If adjacent to double vrule
12735         on a corner extend rather than shorten the rule by half the double
12736         vrule sep.
12738         * troff/number.c (parse_term): In checking for overflow, handle the
12739         case where the current horizontal position is negative.
12741 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
12743         * pic/object.c (draw_arrow): Check for object having zero length.
12745 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
12747         * eqn/main.c (do_file): Split off inline equation handling into...
12748         (inline_equation): New function.  Search for starting delimiter
12749         using...
12750         (delim_search): New function. Don't recognize a delimiter that
12751         occurs in the name of an escape sequence, number register, string
12752         etc.
12754 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
12756         * eqn/delim.c (delim_box::compute_metrics): Don't call
12757         define_extensible_string if left is 0.
12758         (delim_box::output):  Don't print the left delimiter if left is 0.
12759         (delim_box::debug_print): Check for left == 0 before calling printf.
12761 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
12763         * troff/Makefile (majorminor.c): Include only digits in
12764         minor_version.
12766 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
12768         * refer/dirnamemax.c: new file.
12769         * refer/genlimits.c: Deleted.
12770         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
12771         Don't check path length.
12772         * refer/Makefile: Add dir_name_max.o; delete genlimits.
12773         * Makefile: Add PATHCONF_MISSING option.
12775         * refer/indxbib.c (get_cwd): New function.
12776         (main): Use get_cwd().
12777         * lib/getcwd.c: New file.
12778         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
12779         GETCWD in SUBFLAGS.
12780         * lib/Makefile: Compile getcwd.o.
12782         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
12783         userdict.
12785         * refer/indxbib.c (main): Check success of mktemp.
12787         * lib/tmpfile.c: New file.
12788         * lib/Makefile: Add tmpfile.c.
12789         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
12790         * ps/ps.h: Delete declaration of mktemp().
12791         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
12792         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
12793         * driver/driver.h: No need now to include errno.h.
12795         * everywhere: Set errno to 0 before calling fopen().
12797         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
12798         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
12799         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
12801 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
12803         * troff/env.h (translate_space_to_dummy): Declare it.
12804         * troff/env.c (environment::space_newline, environment::space):
12805         If translate_space_to_dummy is set then make the width of spaces 0.
12806         * troff/input.c (translate): If the second character of a
12807         translation is a space, translate to unbreakable space.  If the
12808         first character is a space, set or clear translate_space_to_dummy
12809         according to whether the second character is \&.  Weird!
12811 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
12813         * groff.c (run_commands): Don't use non-zero exit code because a
12814         command gets SIGPIPE.
12816         * groff.c, groff.sh: Use -mXps with -TXps.
12818         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
12819         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
12820         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
12821         (ps_printer::special): New specials invis and endinvis.
12822         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
12823         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
12824         (ps_printer::end_page): Check that invis_count == 0.
12825         (ps_printer::invis_count): New member.
12826         (ps_printer::ps_printer): Initialize invis_count to 0.
12828         * troff/env.c (environment::hyphenate_line): Hyphenation
12829         indicator at beginning of word inhibits splitting after -, \(em
12830         etc.
12832         * pic/pic.y (element): Allow another element to follow } without
12833         any intervening separator.
12835 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
12837         * pic/lex.c (get_delimited): Allow tabs before delimiter.
12839 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
12841         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
12842         declaration of wait() in header files.
12843         * Makefile: Get rid of -DHAVE_UNION_WAIT.
12845         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
12847         * lib/lib.h: Declare return type of strerror as char *.
12849         * man/Makefile: Add g flag to sed substitutions.
12850         * Makefile (shgroff, bindist): Likewise.
12852 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
12854         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
12855         * ps/devps/prologue (PBEGIN): Define showpage after pushing
12856         userdict.
12858 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
12860         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
12861         userdict.
12863 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
12865         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
12866         group.
12868 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
12870         * troff/input.c (define_number_reg):  If currently undefined,
12871         don't define it if the argument is an invalid expression.
12873         * Makefile: Ignore return value of `if' commands without `else'
12874         parts.
12876         * Makefile: Split up CPPDEFINES into a series of separate
12877         configuration options.
12879         * troff/input.c (init_registers): Use time_t instead of long
12880         unless LONG_FOR_TIME_T is defined.  Use returned result rather
12881         than passing pointer.
12882         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
12884         * lib/Makefile (fontpath.h): Use gendef.
12886 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
12888         * troff/input.c (input_iterator::shift): Delete argument name.
12889         * troff/node.c (suppress_output_file::really_begin_page,
12890         suppress_output_file::really_transparent_char, node::ascii_print,
12891         node::tprint): Delete names of unused arguments.
12893 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
12895         * refer/label.y (string):  Pass $4 to command_error.
12897 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
12899         * Version 1.03 released.
12901 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
12903         * Makefile: Pass definition of SHELL in SUBFLAGS.
12905         * gendef: New file.
12906         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
12907         ps/Makefile: Use gendef to construct header files that are
12908         constructed from the Makefile.
12910         * macros/Makefile: make all should build stripped version of tmac.e.
12912         * refer/Makefile (clean): Remove y.output.
12914 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
12916         * ps/pfbtops.c (main): Add -v option which prints out a version
12917         number.
12918         * ps/Makefile (pfbtops): Link with libgroff.a.
12920 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
12922         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
12923         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
12925         * refer/lkbib.c (main): Always terminate reference with blank
12926         line.
12927         * refer/lookbib.c (main): Likewise.
12929         * refer/linear.c (file_buffer::load): Check that the file is not a
12930         binary file.
12932         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
12933         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
12934         Delete second inclusion of <sys/param.h>.
12936 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
12938         * troff/token.h (token::special): Deleted.
12940         * tbl/main.c (process_format): Rework so that opt->tab_char is
12941         recognized only when appropriate.
12943         * ps/Makefile (clean): Remove pfbtops.
12945 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
12947         * lib/font.c (text_file::next): Don't return if we have got a
12948         blank line.
12950 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
12952         * refer/refer.c (store_reference): Get hash code from old_table[i]
12953         when rehashing the table.
12955 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
12957         * eqn/box.c (box::top_level): Save size and prev size using \R and
12958         restore it afterwards. Set the size to the size at the beginning
12959         of the line.
12960         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
12961         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
12963         * refer/Makefile (limits.h): Use ./genlimits.
12965 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
12967         * refer/index.c: Delete declarations of stat() and fstat().
12969 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
12971         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
12973 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
12975         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
12977 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
12979         * troff/input.c (token::get_char): Handle \e.
12981         * refer/linear.c: Delete declarations of fstat() and stat().
12983 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
12985         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
12986         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
12988 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
12990         * troff/input.c (do_define_macro): Improve error handling for end
12991         of file while defining macro.
12993 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
12995         * eqn/box.h: Fix declaration of set_gsize.
12996         * eqn/box.c (set_gsize): Make argument const char *.
12997         (gsize): Declare as char *.
12998         * eqn/main.c (main): Don't convert gsize to int.
12999         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
13001         * Version 1.02 released.
13003 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
13005         * macros/tmac.andoc: New file.
13006         * macros/Makefile: Install tmac.andoc.
13008         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
13009         operator new and delete on OP_DELETE_BROKEN not being defined.
13010         * Makefile: Mention OP_DELETE_BROKEN.
13012 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
13014         * Makefile (bindist): Pass SUBFLAGS.
13016 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
13018         * Makefile, groff.c: Pass definitions to groff.c via device.h.
13020         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
13021         parameter.
13023         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
13025         * ps/ps.h, ps/psrm.c: Make comment_table and
13026         header_comment_table local to resource_manager::process_file.
13028         * groff.sh: With -TXps pass -printCommand option to gxditview.
13030         * groff.c (possible_command::print): Implement using
13031         append_arg_to_string.
13033         * xditview: Merge in new implementation with own ChangeLog.
13035 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
13037         * groff.c (main): Implement PRINT_OPTION.
13038         (append_arg_to_string): New command.
13039         (device_table): Set PRINT_OPTION flag for Xps.
13041 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
13043         * troff/groff.h: Rename to troff.h.
13045         * pic/lex.c (lookup_keyword, docmp): New functions.
13046         (get_token): Use new lookup_keyword.
13047         Don't include key.h.
13048         * pic/key.[ch], pic/pic.gperf: Deleted.
13049         * pic/Makefile: Remove gperf stuff.
13051         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
13052         into output.h.
13053         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
13055         * troff/Makefile, troff/node.c: Move definition of
13056         STORE_WIDTH into node.c.
13058         * etc/grog.pl, etc/grog.sh: Support -mdoc.
13060 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
13062         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
13063         dvi/devdvi/texb.map: Add lq and rq.
13064         dvi/devdvi: Regenerate fonts.
13065         * ps/devps/textmap: Add lq and rq.
13066         * ps/devps: Regenerate fonts.
13067         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
13068         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
13070         * pic/object.c (position_rectangle): When checking radius
13071         cope with possiblity that width or height is negative.
13072         (box_object::box_object): Have separate xrad and yrad with
13073         signs matching signs of dim components.
13074         (box_object::{north,south}_{east,west}): Use xrad and yrad.
13075         (box_object::print): With rounded boxes use absolute values
13076         for dim and rad arguments.
13078         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
13079         in fontpath.h.
13081         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
13083         * various files: Add explicit destructors to keep Saber CC +d
13084         happy.
13086 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
13088         * eqn/box.c (box::top_level): Restore fonts correctly after
13089         font changes in line containing inline equation.  Also
13090         restore previous font as well as current font.
13091         * eqn/pbox.h: Define necessary string and register names.
13093         * troff/input.c (token::next): Case 'R' calls do_register.
13094         (do_register): New function.
13096 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
13098         * groff.c, groff.sh: Support Xps device.  Allow each device
13099         to have a pseudo_name and a real_name.
13101         * groff.c (run_commands): Don't print `Broken pipe' messages.
13103         * ps/pfbtops.c: New file.
13104         * ps/Makefile: Add pfbtops.
13106         * troff/number.c (parse_term): Improved error message.
13108 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
13110         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
13112         * Makefile: Integrate refer.
13113         * refer: New directory.
13114         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
13115         man/lkbib.man: New files.
13116         * man/Makefile: Support refer man pages.
13118         * lib/lib.h: Declare is_prime.
13119         * lib/prime.c: New file.
13121         * troff/input.c (macro_source): New function.
13122         (init_input_requests): Bind "mso" to macro_source.
13124         * troff/env.c (environment::possibly_break_line): Maintain
13125         pointer to pointer to node to be split in ndp so as to avoid
13126         using address of freed node.
13128         * troff/env.c (environment::hyphenate_line): Maintain pointer to
13129         pointer to first node to be hyphenated in startp so as to
13130         avoid using address of freed node.
13132         * troff/env.c (class trie, class hyphen_trie): Make the
13133         elements of the trie be of type char not unsigned char.
13134         Declare arguments to be const char* instead of unsigned char *.
13135         
13136         * troff/env.c (hyphenate): Initialize hbuf[0].
13138         * troff/input.c (set_string): Declare p to be char * and cast
13139         *p to unsigned char when necessary.
13141         * troff/input.c (do_define_macro): Declare s to be const
13142         char*. Cast element to unisgned char when necessary, Declare
13143         d to be an int.  Handle EOF better.
13145         * troff/Makefile, troff/input.c: Different scheme for passing
13146         definitions of MACROPATH, HYPHENFILE and DEVICE.
13148 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
13150         * tty/devascii/R.proto: Delete entry for em.
13151         * tty/devlatin1/R.proto: Likewise.
13153 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
13155         * troff/input.c (translate): Stop when we get a space. Treat eof
13156         like newline.
13158         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
13160 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
13162         * tbl/main.c (process_format): A font name following a `f'
13163         modifier that starts with a digit can be only one character long.
13164         Also deal with EOF on the second character of the font name.
13166 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
13168         * troff/input.c (token::next): Turn \~ into an
13169         unbreakable_space_node.
13170         * troff/node.c (unbreakable_space_node): New class.
13171         * troff/node.h: Declare it.
13173 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
13175         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
13176         it's >= 0, before outputting it as a single byte.
13178 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
13180         * lib/font.c: Make font_char_metric::code an int.
13181         (font::get_code): Change return type to int.
13182         (font::load): Allow code to be arbitrary integer.
13183         * lib/font.h (font::get_code): Change return type to int.
13184         (font::number_to_index): Change argument type to int.
13185         * troff/input.c (token::next):  In case 'N', allow any value.
13186         Store value in token::val.
13187         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
13188         (token::get_char, token::add_to_node_list, token::process): Get
13189         number from val.
13190         (charinfo::set_number): Change argument to int.
13191         (charinfo::get_number):  Require that NUMBERED flag be set.
13192         (get_charinfo_by_number): Store numbered characters not between 0
13193         and 255 in a dictionary.
13194         * troff/charinfo.h (get_charinfo_by_number): Change argument type
13195         to int.
13196         (charinfo::number): Change type to int.
13197         (charinfo::set_number): Change type of set_number to int.
13198         * troff/node.c (troff_output_file::put_char_width,
13199         troff_output_file::put_char): Test whether character is numbered
13200         using charinfo::numbered().
13201         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
13202         values of num.
13203         * lib/nametoindex.c: New implementation to cope with arbitrary
13204         number characters.
13206         * troff/input.c (token::operator==): Test val for
13207         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
13208         TOKEN_SIZE.
13210         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
13211         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
13213 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
13215         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
13216         variable.
13218         * all Makefiles: rm targets of cp and >.
13220         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
13221         it.
13223         * eqn/lex.c (def_table): Add dollar.
13225 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
13227         * troff/input.c (do_width): Push back newline before closing delim
13228         like do_bracket.
13230 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
13232         * groff.c (possible_command::prepend_arg): New function.
13233         (main): Prepend device -m option.
13234         * groff.sh: Put device -m options before command-line options.
13236 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
13238         * macros/tmac.an (IP): Quote argument to TP.
13240         * ps/ps.c (main): New option -b, which sets...
13241         (broken_flags): New variable.
13242         (ps_printer::~ps_printer): Incorporate the setup section in the
13243         prolog if (broken_flags & NO_SETUP_SECTION).
13244         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
13245         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
13246         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
13247         ps_printer::print_needed_font_comment,
13248         ps_printer::print_supplied_font_comment,
13249         ps_printer::print_include_font_comments,
13250         ps_printer::lookup_doc_font, ps_printer::download_fonts,
13251         ps_printer::read_download_file, read_document_fonts, add_font,
13252         skip_line, parse_fonts_arg, document_font::document_font,
13253         document_font::~document_font, document_font::download,
13254         ps_output::include_file):  Deleted.
13255         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
13256         rather than %!PS-Adobe-2.0.  Make calls to
13257         resource_manager::need_font for each font that we used. Replace
13258         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
13259         print_supplied_font_comment, print_needed_font_comment by call to
13260         resource_manager::print_header_comments. Output %%Orientation
13261         comment. Output %%Requirements: numcopies comment if ncopies > 1.
13262         Don't output the prolog directly.  Instead call
13263         resource_manager::output_prolog.  Only define #copies when ncopies
13264         > 1.  Delete calls to print_include_font_comments  and
13265         download_fonts.  Add call to resource_manager::document_setup.
13266         (ps_printer::do_file): Call resource_manager::import_file instead
13267         of including it ourselves.
13268         (ps_printer::do_import): Likewise.  Also don't call
13269         merge_import_fonts. Push userdict on the dictionary stack before
13270         and pop it afterwards.
13271         Move declaration of ps_output into ps.h.
13272         * ps/psrm.c: New file implementing resource_manager class.
13273         * ps/ps.h: New file declaring ps_output and resource_manager
13274         classes.
13275         * ps/devps/zapfdr.ps:
13276         * ps/devps/symbolsl.ps:
13277         * ps/devps/prologue:  Use 3.0 conventions.
13278         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
13279         Add default definition of BROKEN_SPOOLER_FLAGS.
13280         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
13281         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
13283 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
13285         * etc/grog.pl: New file.
13286         * Makefile (GROG): New variable.
13287         Add GROG to SUBFLAGS.
13288         * etc/Makefile (GROG): New variable.
13289         (install.nobin): Install $(GROG) rather than grog.sh.
13291 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
13293         * eqn/special.c (special_box::compute_metrics): Make the input and
13294         output strings the same.  Get the new height and depth from the
13295         predefined height and depth registers.  Also make subscript kern
13296         and skew available.
13297         (special_box::compute_subscript_kern, special_box::compute_skew):
13298         New functions.
13300         * eqn/box.c (pointer_box::compute_skew,
13301         simple_box::compute_metrics, box::top_level)
13302         * eqn/text.c (prime_box::compute_metrics,
13303         prime_box::comput_subscript_kern)
13304         * eqn/limit.c (limit_box::compute_metrics):
13305         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
13306         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
13307         negative numbers in `nr' requests with a leading 0.
13309 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
13311         * eqn/special.c: New file.
13312         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
13313         Add new rule for simple.
13314         * eqn/lex.c (token_table): Add SPECIAL.
13315         * eqn/box.h: Declare make_special_box.
13316         * eqn/Makefile: Add special.[co].
13318 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
13320         * ps/devps/prologue: Possibly set packing to true while defining.
13321         Create grops dictionary here.  Initialize local variables before
13322         defining procedures.
13323         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
13324         the dictionary stack. Set strokeadjust and overprint to false if
13325         the relevant operators are defined.
13326         (PEND): New procedure.
13327         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
13328         prologue.  Do everything else in the setup section.
13329         (ps_printer::do_import): Just call PBEGIN and PEND around the
13330         picture. Also push userdict before, and pop it afterwards.
13332 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
13334         * troff/node.c (bracket_node::tprint): Brackets were being printed
13335         1m too low.
13337         * macros/tmac.an (SH, SS): Set fill mode.
13339 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
13341         * troff/div.c (top_level_diversion::begin_page): Set
13342         high_water_mark to 0.
13344 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
13346         * man/mdate.sh: New file.
13347         * man/mdate.c: Deleted.
13348         * man/Makefile: Use mdate.sh instead of mdate.
13349         (mdate): Deleted.
13351         * eqn/lex.c (do_gsize): Supply missing argument to error message.
13353 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
13355         * man/mdate.c: New file.
13356         * man/*.man: Replace modification date by @MDATE@.
13357         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
13358         (mdate): New target.
13360         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
13361         Remove illegal input characters.
13363 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
13365         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
13367 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
13369         * troff/div.c (begin_page): Change behaviour when
13370         !first_page_begun and !break_flag.
13372         * troff/input.c (do_name_test): Return 0 if argument is empty.
13374         * troff/input.c (read_long_escape_name): Require closing ] to be
13375         at same input level as opening [.
13377         * troff/input.c (read_increment_and_escape_name): New function.
13378         (get_copy, process_input_stack): Use this for \n.
13380 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
13382         * troff/div.c (top_level_diversion::begin_page): Ignore the
13383         current value of page_number if !first_page_begun.
13385         * groff.c (main): Fix declaration of buf.
13387         * troff/input.c (do_name_test): New function.
13388         (token::next): Implement \A.
13389         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
13390         (token::description, token::add_to_node_list, token::process):
13391         Handle TOKEN_ESCAPE.
13392         * troff/token.h: New token TOKEN_ESCAPE.
13394 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
13396         * pic/main.c (do_picture): Allow space before and after filename
13397         following `<'.  Check that the filename is not empty.
13399 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
13401         * Version 1.01 released. 
13403         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
13405         * dvi/tmac.dvi: ftr HR to H.
13407         * macros/tmac.e: Round up computation of $r.
13409         * xditview/tmac.X:  Don't give up completely in compatibility mode.
13410         Use \n(.s instead of \n[.s].
13412         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
13413         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
13414         Add u to factors inside \s[...]. Rename frac to dvi-frac.
13415         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
13416         short names in the char definitions.
13418         * ps/tmac.ps: Don't give up completely in compatibility mode.
13419         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
13420         quote in front of \n(.s. Add u to factors inside \s[...].
13422 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
13424         * tty/tmac.tty: Call the nroff request.
13426         * macros/tmac.e ((x, )x):  Better definitions that work properly
13427         in a diversion.
13428         (@0, @1): Helper macros for (x.
13430         * macros/tmac.e ($s, hl): Use \l rather than \D.
13432         * tty/tmac.tty: Make it work better in compatibility mode.
13433         (pchar): Rename to tty-char.
13435         * macros/tmac.e (@E): New macro.
13436         (r, i, b, rb, bi): Use @E.
13438         * macros/tmac.e (@F): Don't use (;...) syntax.
13440         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
13441         it was modified for groff.
13443         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
13445         * macros/tmac.e (<., .>): Removed.
13446         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
13448         * macros/tmac.e: Remove check that groff is being used.
13450         * macros/tmac.e (@C): Change families only if using groff; turn
13451         compatibility mode off while changing familes. Save compatibility
13452         mode before changing families and restore it afterwards.
13454         * macros/tmac.e (@h): Remove test for offset + line length.
13456         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
13457         (lo, th, ac): Define to call @S instead of using als.
13459         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
13460         the ratio of the vertical spacing to the point size in units
13461         expressed as a percentage.  Use these instead of $10r and $10R,
13462         Delete $10r and $10R.
13464         * lib/font.c (font::load): In default computation of space_width,
13465         divide by sizescale.  Use scale_round.
13467         * macros/tmac.an (TP): Don't call `nf'.
13468         (an-do-tag): Don't call `fi'.
13470 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
13472         * troff/input.c (process_input_stack): Handle the case where
13473         spaces at the beginning of an input line are followed by a
13474         newline.
13476 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
13478         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
13479         * groff.sh: Use pic -x with the dvi device.
13481         * dvi/devdvi/FontMakefile (H): Don't use -s.
13483         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
13484         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
13485         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
13486         in FONTS.
13488 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
13490         * ps/psfig.diff: New file.
13491         * ps/tmac.psfig: New file.
13493 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
13495         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
13496         (]-): Don't call ref*do-tl.
13498         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
13500         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
13501         (fn@do-FS): Rename to fn*do-FS.
13503         * troff/input.c (transparent_translate): New function.
13504         (process_input_stack): Apply transparent_translate before calling
13505         diversion::transparent_output(unsigned char).
13507 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
13509         * troff/input.c (do_define_macro): Define the macro before calling
13510         skip_line.
13512         * xditview/Makefile: Add DEVICES variable.  Change install target
13513         to use this.
13515 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
13517         * groff.c (run_commands): Handle the possibility that there are
13518         child processes other than those forked by us.
13520 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
13522         * lib/string.c (string::append): New function.
13523         * lib/stringclass.h: Declare it.
13525 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
13527         * eqn/main.c (main): New option -N which sets
13528         no_newline_in_delim_flag. 
13529         (do_file): If no_newline_in_delim_flag is set don't allow newlines
13530         in delimiters.
13531         * groff.c (main): Pass -N on to eqn.
13532         (help, synopsis): Mention -N.
13533         * groff.sh: Implement -N.
13535 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
13537         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
13538         (]-): Call ref*do-tl if ref*need-tl is non-zero.
13539         (XP): Allow as initializer.
13541 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
13543         * troff/env.c (environment::wrap_up_field): If field_spaces are
13544         non-zero and we have a current_tab, subtract padding from
13545         tab_distance.  If this makes tab_distance <= 0, use the next tab
13546         stop instead.  If there isn't any next tab or it's a left tab,
13547         wrap up the current tab.
13548         (environment::start_field): Initialize tab_precedes_field.
13549         (environment::wrap_up_tab): If there's a current field, update
13550         pre_field_width, field_distance and tab_precedes_field.
13551         * troff/env.h (environment::tab_precedes_field): New member.
13553 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
13555         * ps/ps.c (ps_printer::do_file): New function.
13556         (ps_printer::special): Bind to `file' special.
13557         (ps_printer::do_exec): Set ndefined_styles to 0.
13559 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
13561         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
13562         Avoid stripping first character from the start of unrecognized
13563         escapes.  Use lex_error instead of error to report errors.
13564         * eqn/lex.c (get_token): Rework handling of escapes.
13565         (lex_error): Move declaration into...
13566         * eqn/eqn.h.
13568         * xditview/xditview.c (main): Make -page option work.
13570         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
13572 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
13574         * macros/tmac.s (B2): Correct size of box.
13576 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
13578         * macros/tmac.s (B2): Postpone drawing the box until in the
13579         top-level diversion.
13581         * tty/tmac.tty: Add font translations for C, CR, CW.
13583         * groff.c (synopsis, help): Document -i.
13584         * groff.sh: Implement -i.
13586         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
13587         Simplify the construction of SN.
13589         * troff/number.c (parse_term): Give `|' a higher precedence.
13590         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
13591         accordingly.
13593         * macros/tmac.s (B2): Use par@finish instead of par@reset.
13595 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
13597         * lib/string.c (string::move): New function.
13598         * lib/stringclass.h: Declare it.
13600 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
13602         * troff/env.c (distribute_space): Add optional argument
13603         `force_forward'.
13604         (environment::wrap_up_field): Call distribute_space with
13605         `force_forward' argument of 1.
13607 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
13609         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
13610         Inline it.  Move reallocation into...
13611         (string::grow1): New function.
13612         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
13613         dependencies to include library header files.
13614         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
13616 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
13618         * macros/tmac.s (@NH): Use the same number registers than -ms does
13619         for the heading level counters.  Use the same string that -ms does
13620         for the number for this heading.
13622 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
13624         * lib/new.c (operator new): Cast result of malloc to char *.
13626         * troff/input.c (spring_trap, lookup_request): Add assert that nm
13627         is not null.
13629 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
13631         * groff.c (main): Support -i.
13633 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
13635         * pic/pic.h: Include <osfcn.h>.
13637         * ps/ps.c: Add declaration of mktemp.
13639         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
13640         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
13641         argument as union wait *.
13642         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
13643         argument to union wait *.
13645 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
13647         * tty/tmac.tty: Add definition of \(co.
13649         * pic/object.c (make_arc): Only increase radius when radius
13650         strictly less than d.
13651         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
13652         more than once.
13654         * troff/env.c (environment::environment(symbol),
13655         environment::environment(const environment *)):  Initialize
13656         input_trap_count.
13658 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
13660         * tbl/main.c (main): Add exit(0).
13662         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
13664         * pic/main.c (main):
13665         * eqn/main.c (main):
13666         * tbl/main.c (main):
13667         * etc/soelim.c (main):
13668         * driver/printer.c (printer::~printer):
13669         * troff/node.c (real_output_file::~real_output_file,
13670         real_output_file::flush):  Check for errors on stdout.
13672         * most files: Add 1991 to copyright notice.
13674         * macros/tmac.s: Don't test \n(.x and \n(.y.
13676         * troff/input.c (token::next): Rename `escape_char' label to
13677         `handle_escape_char' and `normal_char' label to
13678         `handle_normal_char'.
13680 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
13682         * groff.c (main, synopsis, help): Support -a option.
13683         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
13684         to trflags while parsing options.
13686 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
13688         * troff/number.c (parse_term): With `m', `M' and `n' scale
13689         indicators, convert scale factor to hunits before scaling.
13691 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
13693         * lib/font.c (scale_round): Better test for overflow when n is
13694         negative.
13696 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
13698         * tbl/main.c (process_format): Add second argument of type
13699         options*. Change callers.  Allow opt->tab_char as well as '\t'
13700         between format items.
13702 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
13704         * macros/tmac.an (PD): With no arguments, make sure register PD is
13705         at least \n[.V].
13706         (TH): Call PD with no argument, instead of setting register PD
13707         directly.
13709 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
13711         * Version 1.00 released.
13713 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
13715         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
13717         * dvi/devdvi/DESC: Mount CW instead of CR.
13719         * dvi/tmac.dvi: Add definition of \(tm.
13721         * dvi/devdvi/texsy.map: Add lh, and rh.
13722         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
13723         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
13725         * dvi/devdvi/FontMakefile: Generate H from cmss10.
13726         * dvi/devdvi/Makefile: Install H.
13727         * dvi/devdvi/H: New file.
13729 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
13731         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
13732         be 0.
13734 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
13736         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
13738         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
13740         * macros/tmac.s (@EN): Handle the case where the equation is empty
13741         but the label is not.
13743 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
13745         * troff/groff.h: New warning category WARN_SPACE.
13746         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
13747         WARN_SPACE to warning_table.
13748         (interpolate_macro): Give a warning of type WARN_SPACE if the name
13749         is longer than two characters and is not defined, but the first
13750         two characters do make a defined name.
13752         * PROBLEMS: New file.
13754         * CHANGES: New file.
13755         * README-0.6, README-1.00: Deleted.
13757         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
13758         * xditview/devX75/Makefile: Make devX75-12.
13759         * xditview/devX100/Makefile: Make devX100-12.
13761         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
13762         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
13764 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
13766         * README-0.7: Rename to README-1.00.
13768         * macros/tmac.pic: New file.
13769         * macros/Makefile (install.nobin): Install tmac.pic.
13771 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
13773         * troff/env.c (hyphen_word): Correct the test for whether the
13774         token is a hyphen.  Reset npos to 0.
13776         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
13778 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
13780         * macros/tmac.s (ds*common-end): Call par*reset.
13781         (PE): Likewise.
13782         (par@reset-indent): Deleted.
13784         * macros/tmac.s (@IP): Divert the label.
13786 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
13788         * xditview/draw.c (setGC): Use a line width of .1m rather than
13789         .04m by default; round rather than truncate value.
13791         * tbl/table.c (class empty_entry): New class.
13792         (empty_entry::empty_entry, empty_entry::line_type): New functions.
13793         (table::add_entry): Represent empty entries by objects of type
13794         empty_entry.
13795         (table_entry::line_type): Return -1.
13796         (table::determine_row_type): Ignore entries with line_type 0.
13797         Treat type -1 as non-lines.
13799 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
13801         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
13802         macros/tmac.s: Rename \(-d to \(Sd.
13804 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
13806         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
13807         * xditview/libXdvi/DviChar.c: Likewise.
13808         * dvi/devdvi/texsy.map: Add `<<', `>>'.
13810 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
13812         * troff/div.c (top_level_diversion::begin_page): Call
13813         init_output() if the_output is 0.
13815 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
13817         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
13818         ESCAPE_c.
13819         (get_copy): Turn \E into ESCAPE_E.
13820         (token::process, asciify): Handle ESCAPE_E.
13822         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
13823         (RD): New macro.
13824         (DS): Implement `.DS R'.
13826 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
13828         * macros/tmac.s (FS): New macro.
13830         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
13832         * macros/tmac.s (cov*tl-init): Remove after first execution
13833         instead of aliasing to @nop.  Call top of page macro explicitly
13834         instead of setting trap; call @init first.  Set pg@top as top of
13835         page macro.
13836         (cov*auto-init): Deleted.  Set cov*tl-init instead of
13837         cov*auto-init as top of page trap. 
13838         (TL, LP): Do a break instead of calling cov*tl-init.
13839         (cov*print): With RP format but no TL, alias FS and FE to @FS and
13840         @FE; in this case also give a warning and always start another
13841         page. No need to set pg@top here.
13842         (cov*tl-init): Rename to cov*first-page-init.
13844         * macros/tmac.s (RP): Do `.pn 0'.
13845         (cov*tl-init): With RP format don't do `.pn 0'.
13847         * macros/tmac.s (pg@cs-top): Set no space mode.
13849         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
13850         (cov*ab-init): Alias TL, AU and AI to these.
13852 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
13854         * macros/tmac.s (@EQ): Move the space before the equation into @EN
13855         (@EN): Do nothing unless \n[dl] is > 0.
13857 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
13859         * pic/object.c (ellipse_object::radius): New function.
13861         * VERSION: Change version to 0.7.
13863         * tbl/table.c (block_entry::do_divert): Declare return type as
13864         void.
13865         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
13867 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
13869         * troff/column.c: New file.
13870         * troff/Makefile: Corresponding changes.
13872         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
13873         Friend of vunits.
13875         * troff/div.c (top_level_diversion::space): If the space causes
13876         the first-page transition and springs a trap, truncate the space
13877         to 0.
13879 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
13881         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
13882         the document.
13884         * pic/troff.c (troff_output::line_thickness,
13885         troff_output::set_fill): Do a horizontal motion to compensate for
13886         the width of the \D escape sequence.
13888 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
13890         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
13891         (not X75).
13893         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
13894         to printf.
13896         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
13897         Supply empty definition.
13898         (text_entry::simple_print, simple_text_entry::simple_print):
13899         Delete declarations.
13900         (table::add_entry): Represent empty entries by objects of type
13901         `simple_entry'.
13903 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
13905         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
13907         * tbl/table.c (left_text_entry::add_tab): New function.
13909         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
13910         initialize like LP.
13912 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
13914         * troff/env.c (environment::start_field): Give an error message if
13915         there is no next tab.
13917 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
13919         * troff/env.c (hyphenate): Skip initial elements with zero
13920         hyphenation code.
13922         * macros/tmac.s (par@init): Keep VS in points rather than units.
13924 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
13926         * pic/main.c (main): Implement `-c' option.
13927         * pic/output.h: Declare make_tpic_output().
13928         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
13929         protected.
13930         (tpic_output): New class.
13931         (tpic_output::tpic_output, tpic_output::set_pen_size,
13932         tpic_output::command, make_tpic_output): New functions.
13934 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
13936         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
13937         if they're not already defined.
13938         * tbl/table.c (init_output): Don't test \n(.g.
13940         * troff/input.c (do_if_request): Delete `g' condition. Recognize
13941         `d', `r' and `c' conditions even in compatibility mode.
13943 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
13945         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
13946         box.
13948 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
13950         * troff/env.h (environment::prev_line_interrupted): New member.
13951         (environment::get_prev_line_interrupted): New function.
13952         * troff/env.c (environment::newline): Set prev_line_interrupted.
13953         (environment::environment(const environment *),
13954         environment::environment(symbol)): Initialize
13955         prev_line_interrupted.
13956         * troff/input.c (process_input_stack): Don't give special
13957         treatment to space and newline at the beginning of the line if the
13958         previous line was interrupted.
13960 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
13962         * eqn/eqn.y: Disallow PRIME by itself.
13963         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
13964         PRIME.
13965         (def_table): Remove definition of '.  Define prime to be `.
13967         * eqn/eqn.y: Split off part of rule `script' into a new rule
13968         `nonsup'.
13970 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
13972         * macros/tmac.s ({, }): New string aliases.
13974 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
13976         * README-0.7: New file.
13978 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
13980         * macros/tmac.s: New file.
13981         * man/groff_ms.man: New file.
13982         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
13983         * Makefile.bd: Similarily.
13984         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
13985         definition of TMAC_S.
13986         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
13987         * macros/TODO: New file.
13989 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
13991         * troff/env.c (right_justify): New function.
13992         (init_env_requests): Bind this to request "rj".
13993         (center_lines): Set right_justify_lines to 0. If we get a bad
13994         integer, center 1 line.
13995         (environment::environment(symbol), environment::environment(const
13996         environment *)): Initialize right_justify_lines.
13997         (environment::get_right_justify_lines): New function.
13998         (init_env_requests): Bind this to number_register ".rj".
14000         * troff/env.c (environment::choose_breakpoint): Implement
14001         hyphenation_margin and hyphenation_space.
14002         (environment::get_hyphenation_space,
14003         environment::get_hyphenation_margin): New functions.
14004         (init_env_requests): Bind these to .hys and .hym.
14005         (hyphenation_space_request, hyphenation_margin_request): New
14006         functions
14007         (init_env_requests): Bind these to hys and hym.
14008         (environment::environment(symbol), environment::environment(const
14009         environment *)): Initialize hyphenation_margin and
14010         hyphenation_space.
14011         * troff/env.h: Corresponding changes to class environment.
14013 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
14015         * troff/div.c (blank_line): Always do a break.
14017         * eqn/box.c (do_text): Turn off escapes while appending text to
14018         string.
14020 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
14022         * troff/input.c (while_break_request, while_continue_request): New
14023         functions.
14024         (init_input_requests): Bind these to "break" and "continue".
14025         (while_depth, while_break_flag): New variables.
14026         (while_request): Update while_depth.  Break out of loop if
14027         while_break_flag is set.
14029 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
14031         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
14032         rather than 0.
14034 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
14036         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
14038         * stringify: New file.
14039         * Makefile (groff.o): Use stringify.
14041         * xditview/tmac.X: Remove definition of \(rn.
14042         * xditview/libXdvi/DviChar.c: Remove radicalex from
14043         Adobe_symbol_map.
14045 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
14047         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
14048         (alphabetic_block_entry::alphabetic_block_entry,
14049         alphabetic_block_entry::divert, alphabetic_block_entry::print):
14050         New functions.
14051         (block_entry::divert): Split off body into ...
14052         (block_entry::do_divert): If the block is alphabetic, subtract 2n
14053         from the line length; also update the span width to dl+2n, and the
14054         alphabetic span width to dl.
14056         * driver/input.c (do_file):  While reading argument to D command,
14057         when expanding buffer, multiply szp by sizeof(int) rather than 2
14058         in the argument to memcpy.
14060         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
14061         width of alphabetic columns.
14063 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
14065         * troff/node.c (lookup_family): Supply second argument to lookup.
14067         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
14068         search, return immediately if v is 0.
14070         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
14071         (troff_output::start_picture): Set this reg.
14072         (troff_output::end_picture): Remove this reg
14073         * eqn/box.c (box::extra_space): Don't produce `\x's if
14074         EQN_NO_EXTRA_SPACE_REG is defined.
14076         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
14077         * eqn/text.c (split_text): Map ' to \(fm when it's the first
14078         character.
14080 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
14082         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
14083         requests.
14085         * troff/div.c (top_level_diversion::top_level_diversion):
14086         Initialize page_number to 0.
14088 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
14090         * groff/troff (environment::environment(const environment *)):
14091         Initialize name to e->name, rather than "anonymous".
14093 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
14095         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
14096         requested_page.  Split middle part into ...
14097         (FindPage): New function.
14098         (SetValues): If we don't yet know the last page, and the requested
14099         page is greater than the current page, call FindPage.
14100         Update the font_map_string before doing this.
14102         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
14103         Translate \(lh and \(rh into left and right double arrows.
14105         * troff/node.c (class hyphen_inhibitor_node): New class.
14106         (hyphen_inhibitor_node::hyphen_inhibitor_node,
14107         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
14108         hyphen_inhibitor_node::type,
14109         hyphen_inhibitor_node::get_hyphenation_type): New functions.
14110         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
14111         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
14112         word.
14114 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
14116         * troff/node.h (dummy_node::get_hyphenation_type,
14117         transparent_dummy_node::get_hyphenation_type):  Declare them.
14118         * troff/node.c: (dummy_node::get_hyphenation_type,
14119         transparent_dummy_node::get_hyphenation_type): New functions.
14121 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
14123         * xditview/libXdvi/draw.c: If M_PI not defined after including
14124         math.h, then define it.
14126         * xditview/Makefile: Add definition of AR. Pass it to the submake
14127         in libXdvi.
14128         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
14130 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
14132         * troff/dictionary.h (object_dictionary::alias): Declare return
14133         value as int.
14134         * troff/dictionary.c (object_dictionary::alias): Return non-zero
14135         if the old name was defined.
14136         * troff/input.c (alias_macro): Give a warning if the old name was
14137         not defined.
14138         * troff/reg.c (alias_reg): Likewise.
14140 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
14142         * troff/input.c (token::next): Delete implementation of \R.
14144         * macros/Makefile: Strip comments from tmac.e while installing it.
14146         * troff/input.c: New variable `nroff_mode'.
14147         (troff_request, nroff_request): New functions.
14148         (init_input_requests): Bind `troff' and `nroff' to troff_request
14149         and nroff_request.
14150         (do_if_request): Compute results of t and n conditions from
14151         nroff_mode.
14153         * text/text.c (split_text): Fix typo in >=.
14155         * eqn/lex.c: Add definition of `==' to def_table.
14157 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
14159         * pic/tex.c (tex_output::start_picture): Change the definitions of
14160         \graph and \graphtemp so that they work properly with Plain TeX.
14162         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
14163         argument to `ar' is not less than the first.
14165         * pic/pic.y: Allow a comma between elements of the variable list
14166         in the argument to `reset'.
14168         * pic/object.c (arc_object::arc_object): Fix computation of
14169         radius.
14171         * eqn/main.c (main): Add exit(0).
14173 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
14175         * troff/div.c (begin_page): Test no_space_mode after doing the
14176         break, but still push the page ejector cookie before doing the
14177         break.  Also set the next page number after doing the break.
14178         
14179         * xditview/xditview.c (NewFile): Don't set the title and icon name
14180         if this is the first file and its name is `-'.
14181         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
14182         the X75 and X100 devices.
14183         (main): If a device has the XT_OPTION flag set and there's exactly
14184         one file argument, pass the driver -xrm and -title options to set
14185         the icon name and window title to the name of the file.
14187         * troff/env.c (environment_switch): If there was an argument but
14188         it wasn't a valid number or name, then pop an environment but
14189         don't give an error message on underflow.
14191         * troff/number.c (start_number): Correct spelling in error message.
14193         * troff/input.c (token::delimiter): Don't print an error message
14194         if err is false.
14196         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
14197         ParseDrawFunction if dw->display_enable is true.
14199 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
14201         * pic/pic.y: Parse text positioning like normal attributes, so as
14202         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
14203         positioning attribute.
14205 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
14207         * tbl/main.c (process_data): When in state START while reading a
14208         text block, don't change to state MIDDLE if c is a newline.
14210 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
14212         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
14213         so as to avoid shadowing parameter.
14215 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
14217         * tbl/table.c (trim_space): Deleted.
14218         (table::add_entry): Don't call trim_space.
14220 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
14222         * VERSION: Change version to 0.6.
14224         * troff/number.c (parse_expr): Make == work.
14226 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
14228         * man/grog.man: New file.
14229         * man/Makefile: Add grog.n to MAN1PAGES.
14230         * etc/grog.sh: New file.
14231         * etc/Makefile: Install grog.sh as grog.
14233 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
14235         * troff/input.c (token::next): Implement \E.
14237 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
14239         * xditview/tmac.X: Change font translations to match tmac.ps.
14241         * troff/input.c (non_empty_name_warning): Don't give a warning if
14242         `\{' terminates the name.
14244 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
14246         * ps/devps/symbol.diff: New file.
14247         * ps/devps/FontMakefile: Mention symbol.diff.
14249 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
14251         * troff/node.c (font_position): Use get_long_name to read the
14252         external_name.
14254         * troff/env.c (environment_switch): If we get a number that's < 0
14255         or >= NENVIRONMENTS, treat it like a name.
14256         Change NENVIRONMENTS to 10.
14258         * troff/groff.h: Remove definition of FONTS_MAX.
14259         * troff/node.h (class font_family): Make map a pointer instead of
14260         an array. Add a map_size member. Make it a class. Make nm const
14261         and public. Make invalidate_fontno a friend.
14262         * troff/node.c: Define font_table_size. Make font_info a pointer
14263         rather than an array.
14264         (class troff_output_file): Allocate font_position dynamically. Add
14265         nfont_positions member.
14266         (troff_output_file::set_font): Grow font_position if necessary.
14267         (troff_output_file::~troff_output_file): Delete font_position.
14268         (troff_output_file::troff_output_file): Allocate font_position.
14269         (grow_font_table): New function.
14270         (troff_output_file::really_begin_page,
14271         troff_output_file:really_copy_page): Use nfont_positions rather
14272         than FONTS_MAX.
14273         (mount_font_no_translate, mount_style): Call grow_font_table if
14274         necessary.
14275         (font_family::font_family): Allocate map.
14276         (font_family::make_definite): Grow map if necessary. Use
14277         font_table_size instead of FONTS_MAX.
14278         (font_family::~font_family): New function.
14279         (invalidate_fontno): Use font_family::map_size.
14280         (get_fontno, env_space_width, env_half_narrow_space_width,
14281         env_narrow_space_width, symbol_fotno, is_good_fontno,
14282         get_bold_fontno, make_glyph_node): Use font_table_size rather than
14283         FONTS_MAX.
14284         (next_available_font_position): Never return 0.
14286 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
14288         * ps/tmac.ps: Add font translations for compatibility with dpost.
14290 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
14292         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
14293         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
14294         Move definitions baseline_sep, shift_down, column_sep,
14295         matrix_side_sep into...
14296         * eqn/box.c: Add them to param_table.
14297         * eqn/pbox.h: Add declarations to pbox.h.
14299         * troff/input.c (set_string): Cast value to unsigned char *.
14301         * troff/token.h (process_input_stack): Declare it static before
14302         declaring it a friend.
14304 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
14306         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
14307         and bottom.
14308         * dvi/devdvi/EX: Regenerate.
14310         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
14311         transparent.
14313 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
14315         * eqn/lex.c: In defaults_table, make definition of `dot' call
14316         `dot_def'.  Don't explicitly make it roman.  Similarily for other
14317         accents.
14319         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
14320         argument.
14321         (for_input::get, for_input::peek): Use this.
14322         (do_for): Add by_is_multiplicative argument.
14323         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
14324         Change semantic value of optional_by to be a double plus a flag
14325         saying whethet the by clause is multiplicative.
14327         * eqn/lex.c (get_delimited_text): Remember location of start of
14328         definition.  Improve error handling when EOF is encountered.
14330         * lib/font.h: Rename handle_x_command to
14331         handle_unknown_font_command.
14332         * lib/font.c (font::load): Call handle_unknown_font_command for
14333         any unknown command in the font description file.  Don't call
14334         handle_x_command. Include the name of the command in the argv.
14335         Improve message for unknown command after kernpairs or charset
14336         command.
14337         * ps/ps.c (ps_font::handle_x_command): Rename to
14338         handle_unknown_font_command.  Remove message about `x download'
14339         command.  Give error message for wrong number of arguments.
14340         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
14341         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
14342         handle_unknown_font_command. Give an error message for wrong
14343         number of arguments.  Rename design_size to designsize.
14344         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
14345         checksum', `designsize' instead of `design_size'.
14347 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
14349         * eqn/*.[chy]: Change underaccent to uaccent.
14351         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
14352         give it the same precedence as ACCENT.
14353         * eqn/other.c (make_underaccent_box): New function.
14354         * eqn/box.h: Declare it.
14355         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
14356         def_table.
14358 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
14360         * pic/pic.y (reset_all): New function. Called in rule for RESET.
14361         (parse_init): Call reset_all.
14362         (define_variable): When defining scale reset only those
14363         pre-defined variables that are scaled.
14364         (defaults_table): Add `scale' as non-scaled value.
14366         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
14367         together with the text; allow any number of positioning words;
14368         allow center as a positioning word.
14370         * pic/object.c (output::compute_scale): Get picture maximum height
14371         and width from variables called maxpswid and maxpsht.
14372         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
14374 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
14376         * pic/object.c (object_spec::make_text): Multiply textht by number
14377         of text items.
14379         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
14380         occur.
14381         (do_sprintf): New function.
14382         (pic.gperf): Add sprintf token.
14383         (text, sprintf): New rules.
14385         * pic/pic.y: `rand()' with no arguments returns a random number
14386         in the range [0,1).
14388         * pic/pic.y: Allow a bare expression to be an attribute: change
14389         precedences to support this.  Change optional_ordinal rule to
14390         optional_ordinal_last to avoid reduce/reduce conflict.
14391         * pic/object.c (object_spec::object_spec): Initialize direction.
14393         * pic/pic.y: Implement ^ operator meaning exponentiation.
14395         * troff/node.h: Add default argument to mount_font.
14396         * troff/node.c (font_position): Read an optional third argument
14397         giving the external_name.
14398         (mount_font): Add optional argument giving the external_name.
14399         (mount_font_not_translate): Have additional argument giving
14400         external name.  Use this name to load the font.  Pass both names
14401         to font_info::font_info.
14402         (font_info::font_info): Have additional argument giving
14403         external_name.
14404         (class tfont): New member external_name.
14405         (font_info::get_tfont): Use external name to construct tfont_spec.
14407 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
14409         * eqn/lex.c (init_table): Add argument giving device.  Define
14410         name of device to be "1".
14411         (do_ifdef): Counts as true if the argument has been defined with
14412         `define'.
14413         * eqn/main.c (main): Call init_table with device argument. Make
14414         device local to main.
14415         * eqn/eqn.h: Change declaration of init_table. Remove declaration
14416         of device.
14418         * pic/lex.c (get_delimited): Allow text to be delimited by
14419         matching {}s.  Don't recognize ending delimiter within a string.
14421         * troff/input.c (get_delim_name): New function.
14422         (token::next): Implement \C.
14424         * lib/font.c (font::load): Grok ---.  Add an alias for each
14425         character based on its code.
14426         (font::get_code_width): Deleted.
14427         * lib/font.h (class font): Declare font::number_to_index().
14428         Remove declaration of font::get_code_width.
14429         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
14430         to indices of named characters.
14431         (font::number_to_index): New function.
14432         * troff/input.c (font::number_to_index): New function.
14433         (get_charinfo_by_number, charinfo::get_number,
14434         charinfo::set_number): New functions.
14435         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
14436         (token::process, token::description, token::get_char,
14437         token::add_to_node_list, token::operator==): Handle
14438         TOKEN_NUMBERED_CHAR.
14439         * troff/charinfo.h: Declare get_charinfo_by_number,
14440         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
14441         charinfo class.
14442         (charinfo::numbered): New function.
14443         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
14444         * troff/env.h (class environment): Remove declaration of ...
14445         * troff/env.c (environment::make_numbered_char_node): Deleted.
14446         * troff/node.c (make_numbered_node): Deleted.
14447         (class numbered_glyph_node): Remove.
14448         (troff_output_file::put_char_width, troff_output_file::put_char):
14449         Handle numbered chars.
14450         (troff_output_file::numbered_char): Removed.
14451         (tfont::get_code_width): Removed.
14452         (make_glyph_node): Don't search special fonts for numbered
14453         characters.
14454         * troff/node.h: Remove declaration of make_numbered_node.
14455         * driver/input.c (do_file): Handle N command.
14456         * driver/printer.h: Add declaration of ...
14457         * driver/printer.c (printer::set_numbered_char): New function.
14458         * dvi/tfmtodit.c (main): Generate unnamed entries.
14459         * ps/devps/afmtodit: Likewise.
14460         * xditview/xtotroff.c (MapFont): Likewise.
14461         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
14463         * tbl/main.c (process_format): If multiple widths are specified
14464         for a column but all the widths are the same, don't give an error
14465         message.
14467         * tbl/table.c (table::do_row): If the current row is all lines and
14468         the stuff doesn't contains a line, mark the top of the row after
14469         printing stuff before the row.  If the current row is not all
14470         lines and the stuff doesn't contain a line, don't unnecessarily
14471         mark the top of the row before printing the stuff.
14472         
14473 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
14475         * troff/groff.h: Remove MAX_PATH.
14476         * troff/input.c (open_file): Dynamically allocate space for the
14477         path.
14478         (open_mac_file, process_macro_file): Corresponding changes.
14480 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
14482         * troff/node.h (class output_file): Make copy_file pure.  Add
14483         vspace method ifdef COLUMN. Add is_printing method.
14484         * troff/node.c: Add class printing_reg. Add class
14485         real_output_file. Derive other output_file classes from
14486         real_output_file; in these classes rename begin_page to
14487         really_begin_page, print_line to really_print_line, copy_file to
14488         really_copy_file, transparent_char to really_transparent_char.
14489         Move output_file::flush to real_output_file. Add printing member
14490         to class output_file.
14491         * troff/div.h: Remove printing member from top_level_diversion.
14492         Add vspace member function to class diversion ifdef COLUMN. Add
14493         some declarations ifdef COLUMN.
14494         * troff/div.c (top_level_diversion::copy_file,
14495         top_level_diversion::transparent_output,
14496         top_level_diversion::output): Don't test printing member before
14497         output.
14498         * troff/input.c: Handle initial variable_space_request ifdef
14499         COLUMN.
14500         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
14501         but comment it out.
14503 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
14505         * troff/div.c (diversion::need): Make any space forced.  If we
14506         sprung a trap, set truncated_space to minus the distance to the
14507         trap and set needed_space to the amount that was needed.
14508         (top_level_diversion::space): A forced space turns no_space_mode
14509         off.
14510         (class constant_vunits_reg): New class.
14511         (init_div_requests): Implement number registers .trunc and .ne
14512         using constant_vunits_reg.
14513         (class truncated_space_reg): Deleted.   
14515         * troff/div.h: Don't have a no_space_mode member in diversion.
14516         Instead have it in top_level_diversion.
14517         * troff/div.c (diversion::diversion): Don't initialize
14518         no_space_mode.
14519         (top_level_diversion::top_level_diversion): Initialize
14520         no_space_mode.
14521         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
14522         (macro_diversion::output): Don't clear no_space_mode.
14524         * troff/input.c (diverted_space_node::reread): Don't call
14525         environment::do_break.  In fill mode, act like a blank line.
14526         (diverted_copy_file_node::reread): Don't call
14527         environment::do_break.
14529         * troff/div.c (blank_line): New function.
14530         * troff/div.h: Declare it.
14531         * troff/input.c (process_input_stack): Call it.
14533         * troff/div.c (truncated_space_reg::get_string): New function.
14534         (init_div_requests): Bind to .trunc.
14535         (space_request, top_level_diversion::space,
14536         top_level_diversion::output, macro_diversion::space,
14537         macro_diversion::output): Update truncated_space.
14538         (macro_diversion::output): Redo calculations when trap sprung.
14539         (macro_diversion::output, macro_diversion::space): No need for
14540         trap_flag.
14542         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
14543         after truncating post line spacing.
14545 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
14547         * ps/devps/prologue (MF, SF): Make them work even if setfont is
14548         defined as a procedure rather than as an operator.
14550 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
14552         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
14554 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
14556         * troff/div.c (top_level_diversion::output): Merge
14557         output_file::print_line and output_file::end_of_line member
14558         functions.
14559         * troff/div.h (class output_file):
14560         * troff/node.c (troff_output_file::print_line,
14561         troff_output_file::end_of_line, output_file::end_of_line,
14562         ascii_output_file::print_line, suppress_output_file::print_line):
14563         Corresponding changes.  
14565 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
14567         * troff/input.c (token::next): Don't give a warning for `\.'.
14569         * troff/env.c (environment::get_center_lines): New function.
14570         (init_env_requests): Bind number register .ce to it.
14571         * troff/env.h: Declare it.
14572         * tbl/table.c (table::init_output): Define reset macro to restore
14573         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
14574         Then do .ce 0.
14575         (table::print): If center option not given, then imply center
14576         option if SAVED_CENTER_REG > 0.
14578 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
14580         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
14581         Troff.ps from DOWNLOAD.
14582         
14583         * troff/Makefile: Change comment in DEFINES to avoid confusing
14584         System V make.
14586         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
14587         code.  Don't try to catch errors with stopped.
14588         (check_line_lengths): New function.
14589         * ps/devps/prologue (EXEC): Deleted.
14590         (EBEGIN, EEND): New procedures.
14592 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
14594         * troff/input.c: Include request.h before node.h.
14595         * troff/node.c: Likewise.
14596         * troff/env.c: Likewise.
14597         * troff/div.c: Likewise.
14598         * troff/node.h (class special_node): Store argument as a macro
14599         rather than a char *.
14600         * troff/node.c (special_node::special_node, special_node::copy):
14601         Grok this.
14602         (special_node::~special_node): Deleted.
14603         (special_node::tprint): Deleted.
14604         (special_node::tprint_start, special_node::tprint_end,
14605         special_node::tprint_char): New functions.
14606         (troff_output_file::special): Deleted.
14607         (troff_output_file::start_special, troff_output_file::end_special,
14608         troff_output_file::special_char): New functions.
14609         * troff/input.c (special_node::tprint): New function.
14610         (do_special): Use macro not char *.
14611         (do_transparent_macro): Deleted.
14612         (token::next): Don't call do_transparent_macro.
14614         * troff/input.c (token::next): Add 'Y' case.
14615         (do_transparent_macro): New function.
14616         * troff/node.c (troff_output_file::special): Handle newlines with
14617         argument using new continuation convention.
14618         * driver/input.c (get_string): Cope with continuation convention.
14619         (do_file): Don't call skip_line after calling get_string(1).
14620         * ps/ps.c (ps_printer::special, ps_printer::do_import,
14621         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
14622         arg.
14623         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
14624         with +.
14626 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
14628         * troff/input.c (asciify): By default, illegal input characters
14629         should return empty string.
14631         * troff/input.c (copy_file): Handle first page transition like title.
14632         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
14634         * troff/input.c (token::next): Improve error message for EOF after
14635         escape character.
14636         (input_char_description): New function.
14637         (get_char_for_escape_name): Use input_char_description.
14638         (token::next): Warn about unrecognized escape sequences.
14639         (warning_table): Add WARN_ESCAPE.
14640         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
14641         accordingly.
14643         * troff/token.h: Remove declaration of process_input_stack.
14645         * troff/input.c: Remove declaration of init_hyphen_requests.
14646         * troff/request.h: Correct spelling in declaration of same.
14648         * troff/input.c (token::next): Check whether escape_char is 0.
14650 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
14652         * groff.c (main, usage, help): Implement -P and -L options.
14653         * groff.sh: Likewise.
14655         * troff/input.c (token::next): Use some gotos to avoid code
14656         duplication.
14658         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
14659         Avoid calling symbol::symbol if name empty.
14661 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
14663         * troff/input.c (init_input_requests): Make \n(.x return the major
14664         version number and \n(.y return the minor version number.
14665         * troff/Makefile: Construct file majorminor.c defining
14666         major_version and minor_version automatically from ../VERSION.
14668         * troff/node.c (class glyph_node): Make operator new and operator
14669         delete public.
14670         (class ligature_node): Similarily.
14672         * troff/input.c (operator==(const macro &, const macro &)): New
14673         function.
14674         (non_interpreted_node::same): Use this.
14675         (string_iterator::string_iterator): Make macro& argument const.
14677         * troff/input.c (input_iterator::get): New function. Don't make
14678         asciify_macro or class non_interpreted_node friends of class
14679         input_iterator.
14680         (non_interpreted_node::interpret): Use input_iterator::get.
14681         (asciify_macro): Likewise.
14683         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
14684         ~non_interpreted_node): Deleted.
14685         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
14686         Deleted.
14688         * troff/symbol.h: Make all symbol member functions const.
14690         * lib/strtol.c: New file.
14691         * lib/Makefile: Add strtol.c.
14692         * Makefile: Define STRTOL as strtol.o to include strtol in
14693         libgroff.a.
14695 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
14697         * pic/troff.c (troff_output::simple_circle): Divide by scale.
14699 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
14701         * troff/input.c (do_special): Use input_level.
14703         * troff/token.h (TOKEN_BACKSPACE): New token.
14704         (token::backspace): New function.
14705         * troff/input.c (token::description, token::next, token::process):
14706         Grok TOKEN_BACKSPACE.
14707         (do_special): Turn TOKEN_BACKSPACE back into \b.
14709         * troff/token.h (token::leader): New function.
14710         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
14712         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
14714         * troff/input.c (do_special): Use token::description in error
14715         message.
14717 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
14719         * troff/input.c (decode_args): Combine quoted and
14720         quote_input_level variables. Make it a for (;;) loop.
14722         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
14724         * troff/input.c (read_long_escape_name): The test for whether to
14725         expand buffer was off by 1.
14726         (read_string): Similarily.
14728 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
14730         * troff/input.c: Use `const int' rather than `static const int'.
14732         * troff/div.h (diversion::copy_file): Declare as pure virtual.
14733         (macro_diversion::copy_file): New function.
14734         * troff/node.h: New class diverted_copy_file_node.
14735         * troff/node.c: Implement it.
14736         * troff/input.c (copy_file): Use diversion::copy_file. Handle
14737         first page transition by pushing a diverted_copy_file_node.
14738         * troff/input.c (token::next, process_input_stack): Don't handle
14739         COPY_FILE_REQUEST.
14741 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
14743         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
14744         whether space widths need adjusting.
14746         * troff/charinfo.h: Generalize translated_to_space to
14747         special_translation so as to allow translation to \&.
14748         * troff/input.c (translate): Allow translation to \&.
14749         (charinfo::*): Corresponding changes.
14750         * troff/node.c (make_node, node::add_char): Corresponding changes.
14751         * troff/node.h (dummy_node::dummy_node): Allow optional first
14752         argument.
14754         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
14755         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
14756         TOKEN_REQUEST.
14757         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
14758         TOKEN_REQUEST with an argument of TITLE_REQUEST.
14759         (token::process): Grok that.
14760         * troff/input.c (copy_file): Handle first page transition like
14761         title by pushing a COPY_FILE_REQUEST cookie.
14762         (token::next, process_input_stack): Grok that.
14763         * troff/node.h (output_file::copy_file): Add x and y arguments.
14764         Make it non-pure.
14765         * troff/div.c (top_level_diversion::copy_file): Supply them.
14766         * troff/node.c (troff_output_file::copy_file): Add x and y
14767         arguments; moveto specified position.  Invalidate font_position
14768         array after copying file.
14769         (output_file::copy_file): New function.
14770         (suppressed_output_file::copy_file, ascii_output::copy_file):
14771         Removed.
14772         * troff/input.c (transparent_file): New function.
14773         (init_input_requests): Bind to "trf".
14774         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
14775         (process_input_stack): Likewise.
14777         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
14779         * troff/node.c (init_node_requests): New number registers .kern
14780         pointing to global_kern_mode, and .lg pointing to
14781         global_ligature_mode.
14783         * troff/node.c (ligature): Don't change it if we get a bad
14784         integer.
14786         * troff/input.c (do_define_string): Don't strip tabs.
14788         * troff/input.c (asciify_macro): Make the string_iterator auto.
14790         * troff/node.c (init_font_requests): Rename to...
14791         (init_node_requests):
14792         * troff/node.h: Change declaration.
14793         * troff/input.c (main): Change call.
14795         * troff/input.c (node::reread, diverted_space_node::reread): New
14796         methods.
14797         (process_input_stack): Call reread rather than
14798         get_diverted_space_node.
14799         * troff/node.c (node::get_diverted_space_node,
14800         diverted_space_node::get_diverted_space_node): Removed.
14801         * troff/node.h: Declare reread methods instead of
14802         get_diverted_space_node methods. Make `n' member private.
14803         * troff/input.c: (token::diverted_space): Removed.
14804         * troff/token.h: Removed declaration.
14805         
14807 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
14809         * eqn/script.c (script_box::compute_metrics): Don't let
14810         SUP_RAISE_FORMAT become negative.
14812         * tbl/table.c (table::do_row): Entries that don't end in the
14813         this row shouldn't make the row non-blank.
14814         
14815         * tbl/table.c (table::make_columns_equal): Only set the width of
14816         columns which are marked as equal.
14817         
14818         * tbl/main.c (process_data): Before issuing excess data error,
14819         if last character was a newline unget it; then get it again after
14820         the error.  Also include the contents of the entry in the message.
14822         * groff.c: New file.
14823         * Makefile: Build groff from groff.c.  Make it possible to use
14824         either groff.sh or groff.c as groff.
14825         * Makefile.bd: Similarily.
14827 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
14829         * groff.sh: Don't delay expansion of $@ in assignment to files.
14830         Remove occurrences of \".
14832 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
14834         * all Makefiles: Simplify and rearrange.
14836         * Makefile: Handle fmod like malloc.
14837         * lib/Makefile: Similarily.
14838         * lib/fmod.c: Remove #ifdef NEED_FMOD.
14840         * Makefile: Rename OPTIMISE to OPTIMIZE.
14842         * groff.sh: Remove assignment to PATH.
14843         * Makefile: Remove SHPATH variable.
14844         * Makefile.bd: Similarily.
14846         * groff.sh: Add -V option to print the pipeline instead of
14847         executing it.
14849 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
14851         * lib/font.c: Split off file searching into ...
14852         * lib/fontfile.c: New file.
14854         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
14856 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
14858         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
14859         Also change misleading comment.
14860         (table::do_vspan): Change similarily misleading comment.
14861         * tbl/main.c (process_data): A format row with an explicit `s'
14862         uses up a data line, even if all the other columns are `_' or `='.
14864         * troff/input.c (token::description): Fix description of
14865         TOKEN_DUMMY and TOKEN_EMPTY.
14867 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
14869         * groff.sh: Fix description of -Z in help message.
14871 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
14873         * pic/object.c (object_spec::make_object): Allow negative and zero
14874         line thicknesses.
14875         * pic/pic.y: Give linethick default value of -1.0.
14876         * pic/troff.c (troff_output::troff_output): Initialize
14877         last_line_thickness to BAD_THICKNESS.
14878         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
14879         (troff_output::line_thickness): Canonicalize negative thicknesses
14880         to RELATIVE_THICKNESS.
14881         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
14882         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
14883         to -1.0.
14884         (tex_output::start_picture): Set pen_size to -2.0.
14886         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
14887         0, then use 0 linewidth.
14888         (ps_printer::ps_printer): Initialize line_thickness to -1.
14890         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
14892         * ps/devps/symbolchars: Remove `or'.
14893         * ps/tmac.ps: Implement \(or with .char.
14895         * ps/devps/symbolchars: Move most characters into textmap.
14896         * ps/devps/textmap: Add names for troff bracket characters. Remove
14897         ul, ru, br, bv.
14899         * ps/devps/TSymbol.ps: Removed.
14900         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
14901         * ps/tmac.ps: Do with .char what TSymbol did.
14902         * ps/devps/download: Remove TSymbol.
14904         * ps/devps/T: Removed.
14905         * ps/devps/Troff.ps: Removed.
14906         * ps/devps/Troff.afm: Removed.
14907         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
14908         * ps/devps/download: Remove Troff.
14909         * ps/devps/FontMakefile: Remove T target.
14910         * ps/devps/DESC-A4: Remove T from font list.
14911         * ps/devps/DESC-letter: Likewise.
14913         * troff/input.c (macro_to_node): Rename to ...
14914         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
14915         character's definition while processing it.
14916         * troff/node.c (node::add_char, make_node): Change calls to
14917         macro_to_node accordingly.
14919         * troff/input.c (token::next): Translate \_ to \(ul.
14921         * tty/devascii/R.proto: Add `|'.
14922         * tty/devlatin1/R.proto: Likewise.
14924 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
14926         * man: Put the version number in all the man pages.
14928 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
14930         * Makefile.bd: New file.
14931         * README.bd: New file.
14933         * VERSION: New file.
14934         * lib/version.c: Removed.
14935         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
14936         in clean target.
14938         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
14939         environment variable.
14941         * all Makefiles: Split install target into install.bin for
14942         binaries, and install.nobin for everything else.
14943         * Makefile: Add bindist target.
14945         * man/afmtodit.man: New file.
14946         * man/Makefile: Add afmtodit.n to MAN1PAGES.
14947         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
14948         in BINDIR.
14949         * ps/Makefile: Pass BINDIR to make install in devps.
14951         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
14952         the space character.
14954         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
14956 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
14958         * ps/ps.c: Redo font downloading.
14959         * ps/devps/download: New file.
14960         * ps/devps/Makefile: Add download to DEVICEFILES.
14961         * ps/devps/afmtodit: Remove -d option.
14962         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
14963         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
14964         * ps/devps/zapfdr.ps: Likewise.
14965         * ps/devps/TSymbol.ps: Likewise.
14967 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
14969         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
14971 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
14973         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
14974         then strip the first line if it starts with %.
14975         * Makefile: Add a comment about this.
14977         * man/tfmtodit.man: New file.
14978         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
14979         * dvi/Makefile: Install tfmtodit in BINDIR.
14981         * dvi/tfmtodit.c (usage): Mention -v option.
14983 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
14985         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
14986         * troff/node.c (troff_output_file::transparent_char): Don't call
14987         flush_tbuf.
14989         * eqn: Add check_tabs method to most box classes.
14990         * eqn/box.c (box::top_level): Call check_tabs.
14992         * eqn/script.c (script_box::output): Use \Z.
14993         * eqn/limit.c (limit_box::output): Use \Z.
14995         * eqn/box.c (box::top_level): Use itoa.
14997 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
14999         * dvi/tmac.dvi: Add font translations for CR, C, TT.
15000         * dvi/devdvi/Makefile: Don't make links to CW.
15002         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
15003         HX, HD.
15004         * xditview/tmac.X: Likewise.
15006         * troff/node.c: Add font translation feature.
15007         (get_font_translation): New function.
15008         (symbol_fontno): Translate the font name.
15009         (mount_font_no_translate): Rename to mount_font to this.
15010         (mount_font): New function.
15011         (font_family::make_definite): Call mount_font_no_translate instead
15012         of mount_font.
15013         (mount_style): Translate the font name.
15014         (font_translate): New function.
15015         (init_font_requests): Bind "ftr" to font_translate.
15017         * ps/devps/prologue (SN): New procedure that rounds a position to
15018         the nearest (pixel + (.25,.25)).
15019         (DL): Use SN to round endpoints.
15021         * lib/version.c: Changed version to 0.5.
15023 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
15025         * Makefile: Move definition of PAGE to the very beginning, so that
15026         people are less likely to miss it.
15028 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
15030         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
15032         * troff/env.c (environment::choose_breakpoint): Make `can't find
15033         breakpoint' error a warning of type WARN_BREAK.  Change message to
15034         `can't break line'.
15035         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
15036         code 040000.
15037         * troff/input.c: Add WARN_BREAK to warning_table.  Include
15038         WARN_BREAK in DEFAULT_WARNING_MASK.
15040         * tty/tmac.tty: Add definition of \(+-.
15042         * groff.sh: Remove `--' option to set command.
15044         * dvi/devdvi/texsy.map: Remove duplicate md entry.
15046         * ps/devps/eqnchar: Better definition of cdot using md.
15047         * dvi/devdvi/eqnchar:  Likewise.
15048         * xditview/devX100/eqnchar:  Likewise.
15049         * xditview/devX75/eqnchar: Likewise.
15050         * eqn/lex.c: Add definition of cdot.
15052 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
15054         * troff/input.c (get_optional_char): New function.
15055         * troff/input.c (set_page_character): Use get_optional_char(),
15056         rather than has_arg() and tok.get_char(1).
15057         * troff/env.c (tab_character, leader_character, hyphen_char,
15058         field_characters): Likewise.
15059         (margin_character): Likewise.  Also always delete the
15060         margin_character_node.
15062         * troff/input.c (token::get_char): Use token::description.
15064         * troff/input.c (has_arg): Don't skip over tab and \}.
15065         * troff/number.c (start_number): Give a warning if the number
15066         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
15068 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
15070         * troff/input.c (empty_name_warning, non_empty_name_warning): New
15071         functions.
15072         (get_name, get_long_name): Use these.  Rename `warn' argument to
15073         `required'.
15075         * troff/node.c (get_fontno): Test that the symbol is not null.
15077         * troff/input.c (token::description): New function.
15078         * troff/number.c (parse_term): Use token::description in `numeric
15079         expression expected' message.
15080         * troff/groff.h: Add WARN_MISSING.
15081         * troff/number.c (start_number): New function.
15082         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
15083         get_incr_number): Use start_number().
15084         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
15085         default.
15086         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
15087         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
15088         token::descripion.
15089         * troff/input.c (token::get_char): Use WARN_MISSING.
15090         * troff/input.c (token::delimiter): Use token::description.
15091         * troff/env.c (environment_switch): Back out Aug 3 change.
15092         * troff/input.c (has_arg): Skip over \}s and tabs but give a
15093         warning.
15094         * troff/token.h (token::tab): New function.
15095         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
15096         * troff/reg.c (alter_format): Likewise.
15097         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
15099 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
15101         * troff (most files): Redo warnings. Divide warnings into various
15102         categories; warning() has an additional first argument indicating
15103         the category it falls into.
15104         * troff/input.c (main): -w now takes an argument. New option -W.
15105         (enable_warning, disable_warning): New functions.
15107         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
15108         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
15110 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
15112         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
15113         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
15114         * xditview/devX75/eqnchar: Likewise.
15115         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
15117         * eqn/other.c: When bar or over applies to a single character
15118         don't produce an overline_box or an underline_box. Instead produce
15119         an accent_box or an underaccent_box, with the accent a line
15120         whose width is accent_width.  New classes underaccent_box,
15121         overline_char_box and underline_char_box.
15122         * eqn/box.h: Move overline_box, underline_box, accent_box class
15123         declarations into eqn/other.c. Add declarations of
15124         make_underline_box, make_overline_box, make_accent_box.
15125         * eqn/eqn.y: Call make_overline_box, make_underline_box
15126         make_accent_box instead of constructors.
15127         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
15129         * eqn/other.c: Add accent_box::~accent_box.
15130         * eqn/box.h: Declare it.
15132         * groff.sh: With -Tps, use eqn -D.
15134         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
15135         rather than \l.
15136         (underline_box::output): Similarily.
15137         (accent_box::output): Use \Z.
15139         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
15140         bit smaller.)
15142 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
15144         * troff/div.c (top_level_diversion::transparent_output(unsigned
15145         char)): Use asciify.
15146         * troff/input.c (asciify): Don't make it static.
15147         * troff/token.h (asciify): Declare it.
15148         
15149         * troff/input.c (get_name, get_long_name, token::get_char,
15150         token::delimiter): Add an extra default argument which says
15151         whether a warning should be printed.
15152         * troff: Pass a non-zero argument to one of these rather than
15153         printing a warning directly.
15155 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
15157         * troff: Consistently use symbol::is_null.
15159         * troff/dictionary.h: Move some inline functions into
15160         dictionary.c.
15162         * troff/request.h: Move inline functions into input.c.
15163         (request_or_macro::invoke): Make it pure.
15165         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
15166         * troff/input.c (init_input_requests): Use class constant_int_reg.
15167         (class compatible_reg): Deleted.
15168         * troff/div.c (init_div_requests): Use class constant_int_reg.
15169         (class last_post_line_extra_space_reg): Deleted.
15171         * troff/env.c (tab_character): Don't change the tab character if
15172         we get an invalid argument.
15173         (hyphen_char): Similarily.
15175         * troff/reg.c (alter_format): Check that nm is not null.
15177         * Makefile, groff.sh: Make it possible to customize the commands
15178         used for printing PostScript and dvi files. Also make it possible
15179         to customize the path used by groff.sh.
15181         * eqn/eqn.y: Make `left' right associative.
15183 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
15185         * pic/pic.h: Added definition of M_SQRT2 for those systems that
15186         don't have it.
15188         * pic/pic.h: Removed definition of INT_MAX.
15190         * troff/node.c (italic_corrected_node::vertical_extent): Omit
15191         `return'.
15193         * troff/input.c (token::next):  Handle \R like \n.
15195 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
15197         * ps/tmac.pc (PSPIC): Simplify.
15199         * troff/env.c (tab_stops::to_string):
15200         * pic/pic.y (object_type_name):
15201         * pic/troff.c (simple_output::line):
15202         * pic/tex.c (tex_output::spline):
15203         * pic/object.c (object_spec::make_object):
15204         * tbl/main.c (process_data):  Add cases to switch statements to
15205         avoid cfront warnings. (Some of these are spurious, since the
15206         switch already has a default case.)
15208         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
15209         `ps-'.  Don't test systat; instead check number of arguments to
15210         ps-bb.
15212 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
15214         * macros/tmac.e: Do not decrease the page offset by 0.5i.
15216         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
15217         Unlink the file as soon as we have opened it, so that we don't
15218         have to bother with signal handlers.
15219         (handler): Deleted.
15220         (fatal_error_exit): Deleted.
15221         (main): Don't call signal.
15223         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
15224         can be ignored.
15225         * dvi/devdvi/Makefile: Use the -k option with S and MI.
15227         * pic/pic.y:  If there is a label, or an nth construction before
15228         the first `.' in the argument to `with', ignore it and generate a
15229         warning.
15230         * pic/lex.c (lex_warning): New function.
15232         * tbl/table.c (table::init_output): In section keep and release
15233         macro, use 0 indent when diverting and the correct indent when
15234         rereading.
15236         * troff/input.c (interpolate_number_format): Do not interpolate
15237         anything if the number register is not defined.
15239         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
15241 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
15243         * ps/devps/prologue (PICTURE): Set components of graphics state to
15244         their default values.
15246         * ps/devps/text.enc: Add trademark
15247         * ps/devps/textmap: Add names for club, spade, heart, diamond,
15248         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
15249         * ps/devps/symbolchars: Add names for summation and product.
15251         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
15252         suchthat. Add pp. Add upper-case letters.
15254         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
15255         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
15256         Upsilon.
15258         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
15259         rA (right angle bracket) to ra.  Introduce names for double-headed
15260         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
15261         * ps/devps/textmap: Likewise for ps device.
15262         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
15263         * tty/devascii/R.proto: Rename lA to la and rA to ra.
15264         * tty/devascii/R.proto: Likewise.
15265         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
15266         \(uA, \(dA.
15267         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
15269         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
15271         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
15272         def_table.
15274 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
15276         * troff/div.c (when_request): Use symbol::is_null rather than
15277         has_arg to determine whether we have an argument.
15278         (change_trap): Remove the trap if we get an invalid number. Give
15279         an error if we don't get at least the macro name.
15280         (diversion_trap): Remove trap if we get an invalid name or number.
15282         * troff/env.c (environment_switch): Pop if we get an invalid
15283         symbol or numeric expression.
15285         * troff/input.c (do_define_macro):  If EOF is encoutered while
15286         defining the macro, do tok.next() before returning.
15288         * troff/token.h (has_arg): Move definition from here, to ...
15289         * troff/input.c (has_arg): ... here
15291         * troff/env.c (space_size): Do nothing if we get an invalid argument.
15292         * troff/input.c (shift): Likewise.
15294         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
15295         for `.c'.
15297         * pic/troff.c (troff_output::start_picture):  Comment out calls to
15298         `..'.
15300         * eqn/main.c (do_file): Subtract 1 from current_lineno if
15301         interpret_lf_args succeeds.
15303         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
15304         \\.  This avoids problems with \$N.
15306         * groff.sh: Pass -C to preprocessors.
15308         * lib/lf.c (interpret_lf_args):  Be more flexible.
15310         * tbl/main.c (main): Add -C option.
15311         (table_input::get): Do not recognize TE if followed by character
15312         other than a space or newline unless -C option given.
15313         (process_input_file): Likewise for lf, TS.
15314         (process_data): Likewise for lf in text blocks.
15316         * eqn/main.c (main): Add -C option.
15317         (do_file): Don't recognize EQ, EN or lf if followed by character
15318         other than space or newline unless -C option given.
15319         * eqn/lex.c (file_input::read_line): Similarily.
15320         * eqn/eqn.h: Declare compatible_flag.
15322         * etc/soelim.c (main): Add -C option.
15323         (interpret_lf_args): Use version in libgroff.
15324         (do_file):
15326         * pic/main.c (main): Add -C option, which sets compatible_flag.
15327         (top_input::get), (top_input::peek):  If -C option not given,
15328         do not recognize .PS/.PE/.PF/.lf if followed by a character
15329         other than space or newline.
15330         * pic/lex.c (file_input::read_line): Similarily.
15331         * pic/pic.h: Add declaration of compatible_flag.
15333 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
15335         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
15337         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
15338         derived from node.  New class space_char_hmotion_node.
15339         * troff/input.c (asciify_macro): New function.
15340         * troff/input.c (init_input_requests): New request `asciify' bound
15341         to asciify_macro.
15342         * macros/mm.diff: New file.
15343         * Makefile:  In install.mm target use `patch' to apply
15344         macros/mm.diff.
15346         * troff/input.c (macro::print_size): Just print the size in bytes.
15348         * troff/div.c (return_request): Correct the argument
15349         interpretation.
15351 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
15353         * troff/node.h (class composite_node): Add sz member.
15354         * troff/node.c (composite_node::size): Return sz.
15355         * troff/input.c (macro_to_node):  Use the initial size in the
15356         environment as the size of the composite_node.
15358         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
15359         default.
15361 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
15363         * troff/div.c (change_trap): If we get a bad number expression,
15364         do nothing.
15366 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
15368         * lib/matherr.c (matherr): Define this only if math.h defines
15369         TLOSS.
15371 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
15373         * troff/div.c (macro_diversion::distance_to_next_trap): If there
15374         no diversion trap return vunits(INT_MAX - vresolution).
15376 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
15378         * troff/input.c (do_zero_width): New implementation that doesn't
15379         use a temporary environment. Use instead:
15380         (token::add_to_node_list): New function.
15381         * troff/env.c (environment::get_prev_char_height),
15382         (environment::get_prev_char_height),
15383         (environment::get_prev_char_skew): New functions.
15384         (environment::get_prev_char): New function.
15385         (environment::get_prev_char_width): Change to use get_prev_char.
15386         (init_env_request): Implement new registers .cht, .cdp, .csk.
15387         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
15388         \Z being processed in a separate environment.
15390 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
15392         * tbl/table.c: Removed TABLE_BOTTOM_REG.
15394         * tbl/table.c (table::init_output): In the section release macro,
15395         give a warning message if the section won't fit on one page.
15397         * tbl/table.c (table::do_top): Emit table keep only if table is
15398         boxed.
15399         (table::do_bottom): Likewise for table release.
15400         (table::table), (table::add_vertical_rule):  Remove reference to
15401         keep member.
15402         * tbl/table.h: Remove keep member.
15404         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
15405         SECTION_RELEASE_MACRO, if there's not enough space before the next
15406         trap to output the diversion, call T# ourselves, set
15407         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
15408         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
15409         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
15410         vertical position and return to it before turning traps on again.
15411         
15412 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
15414         * troff/node.c, troff/node.h: In classes derived from node,
15415         replace prev_char_width method by last_char_node method.
15416         * troff/env.c (environment::get_prev_char_width): Use
15417         node::last_char_node rather than node::get_prev_char_width.
15419         * Makefile: Added comment about -fno-inline on 68030-based
15420         Apollos.
15422         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
15423         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
15424         expressions using sizeof to int.
15425         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
15427         * macros/tmac.e (TS):  Don't move @f back past the current
15428         position.
15430 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
15432         * ps/ps.c (main): Buffer stderr.
15433         * dvi/dvi.c (main): Likewise.
15434         * tty/tty.c (main): Likewise.
15436         * ps/ps.c (ps_printer::do_import): Improve error handling.
15438         * troff/input.c (abort_request): Use asciify.
15440         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
15441         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
15442         type of first argument int rather than char.  This works around a
15443         bug on the 68030 based Apollo using g++ 1.37.1.
15445         * tbl/table.h (class table): Add `keep' member.
15446         * tbl/table.c (table::table): Initialize `keep'.
15447         (table::add_vertical_rule): Set `keep' to 1.
15448         (table::do_top): Only emit table keep macro is `keep' is non-zero.
15449         (table::do_bottom): Likewise for table release macro.
15450         (table::do_row): Emit section keep macro even if the row is 0.
15452 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
15454         * macros/tmac.e (@C): Preserve the font family across the change
15455         in environments.
15457 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
15459         * lib/font.c: Initialize font::hor and font::vert to 1.
15460         (font::load_desc): Check the values of font::hor and font::vert.
15462         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
15463         be included in a C compilation.
15464         (iftoa): Use INT_DIGITS. Include lib.h.
15465         (itoa): Likewise.
15466         (as_string): Likewise.
15467         * tbl/table.c: Removed definition of INT_DIGITS.
15468         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
15469         * troff/input.c (input_input_requests): Likewise.
15470         * ps/ps.c (make_encoding_name): Likewise.
15471         (ps_printer::set_style): Likewise.
15472         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
15474         * tty/devascii/R.proto: Map fm onto '.
15475         * tty/devlatin1/R.proto: Likewise.
15477 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
15479         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
15480         argument to \w is at a different input level.
15482         * tbl/table.c (table::init_output): Define a new macro
15483         REPEATED_VPT_MACRO, like vpt but if in a diversion also
15484         transparently outputs itself.
15485         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
15486         vpt.
15487         (table::do_row): Likewise.
15489         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
15490         TRANSPARENT_STRING_NAME.
15492         * tbl/table.c (table::init_output): In the table release macro
15493         print an error message and don't produce any output if after
15494         issuing the need request the table still will not fit.  Also
15495         remove the diversion after bringing it back.
15497         * tbl/table.c (table::init_output): Define a new macro
15498         REPEATED_MARK_MACRO, like mk but if in a diversion also
15499         transparently outputs itself.
15500         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
15501         is necessary because .TH might not call .T#.
15502         (table::do_top): Likewise TOP_REG.
15503         (table::define_bottom_macro): If TOP_REG is no longer valid, use
15504         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
15505         table header might contain just the two top rules.
15507 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
15509         * troff/div.c: Implement new request `ptr' to print all traps.
15511         * troff/env.c (init_env_requests): Implement `.tabs' reg with
15512         init_string_env_reg.
15513         * troff/env.c (class tab_reg): Deleted.
15515 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
15517         * troff/div.c: New number register .pn returns the number of the
15518         next page as set by the pn request.
15520         * macros/tmac.an: Redid headers and footers.  Number each manual
15521         entry starting from 1 unless \nC is > 0, like Sun.  Added an
15522         optional 5th argument to .TH which specifies the manual name and
15523         appears in the center of the header.  Understand the X, P and D
15524         registers like Sun.
15526 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
15528         * troff/env.c (init_env_requests): New number register `.lt' to
15529         return the title length.
15531         * troff/node.h (class transparent_dummy_node): New class.
15532         * troff/node.c (class transparent_dummy_node): Provide member
15533         functions. 
15534         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
15535         than a dummy_node.
15537         * troff/input.c (token::next): New escape sequence \).
15538         * troff/input.c (get_copy): Recognize \) in copy mode.
15540         * troff/input.c (input_stack::clear): New function.
15541         * troff/input.c (exit_request): Use input_stack::clear.
15543         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
15544         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
15546         * troff/env.c: Move set_page_character to input.c.  Move
15547         page_character to input.c also.
15548         * troff/env.c (title): Split off the reading of the parts of the
15549         title into read_title_parts.
15550         * troff/input.c (read_title_parts): New function.  Check the
15551         input_level when testing whether a token matches the delimiter.
15553         * troff/input.c (exit_request): New function.
15554         * troff/input.c (init_input_requests): Bind ex request to
15555         exit_request rather than exit_groff.
15557         * troff/input.c (exit_groff): Call tok.next() before
15558         process_input_stack().
15560 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
15562         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
15563         * troff/env.h: ditto.
15564         * troff/input.c: ditto.
15566         * troff/env.c (environment::is_empty): Test pending_lines.
15568         * troff/env.c (environment::have_pending_lines): Removed.
15570         * troff/input.c: Add request to flush pending lines from the
15571         environment.
15573         * troff/env.c, troff/env.h: Add automatic widow control feature.
15575         * troff/input.c (exit_groff):  Do process_input_stack() after
15576         do_break() but before setting exit_flag to 2.
15578         * troff/input.c: Remove FLUSH_PENDING_LINES and
15579         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
15580         environment after END_TRAP token seen, but only if there aren't
15581         any more traps still unfinished.
15582         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
15584 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
15586         * troff/env.c: Rename the `retain_size' member of class
15587         pending_output_line to `no_fill'.
15589         * troff/env.c (title): When the line is output, make the
15590         retain_size argument !fill.
15592         * troff/node.h: Add `hyphenated' member to struct breakpoint.
15593         * troff/node.c (space_node::get_breakpoints),
15594         (dbreak_node::get_breakpoints):  Fill this in.
15595         * troff/env.c:  Allow specification of maximum number of
15596         consecutive hyphenated lines.
15598         * troff/env.c (environment::is_empty): Add test for !current_tab.
15600 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
15602         * troff/env.c (environment::hyphenate_line): Don't completely give
15603         up if the word is not to be hyphenated; continue so that breaks
15604         can be made at break_char_node's.
15606         * lib/lib.h: Only define INT_MAX if it's not already defined;
15607         undef INT_MIN if it's already defined.
15609         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
15611         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
15612         This works around a bug in AT&T C++ 2.0 used with an ANSI C
15613         compiler.
15614         
15615         * macros/tmac.an (an-header): Set no-space mode.
15617         * macros/tmac.an (TH): Start a new page if necessary.
15619         * Started using ChangeLog at version 0.4.
15621 Local Variables:
15622 version-control: never
15623 coding: latin-1
15624 End: