* src/libs/libgroff/maxpathname.cpp: Include stdlib.h.
[s-roff.git] / ChangeLog
blob5b40a1bb5b66e4affbd5994ade654d6d1cbb51fc
1 2004-05-03  Werner LEMBERG  <wl@gnu.org>
3         * src/libs/libgroff/maxpathname.cpp: Include stdlib.h.
4         src/libs/libgroff/relocate.cpp: Use path_name_max everywhere.
6 2004-05-03  Jeff Conrad  <jeff_conrad@msn.com>
8         * src/devices/grohtml/post-html.cpp: Use casts to `char *' if using
9         `a_delete' for `const char *'.
11 2004-05-03  Werner LEMBERG  <wl@gnu.org>
13         * src/devices/grohtml/post-html.cpp,
14         src/devices/grohtml/html-table.cpp,
15         src/devices/grohtml/html-text.cpp, src/devices/grohtml/output.cpp:
16         Replace malloc/free with new/delete/a_delete.
18         * src/devices/grolbp/lbp.h: Remove superfluous semicolons which
19         are prohibited with ANSI C++.
20         (lbpprintf, vdmprintf): Remove useless `inline' keyword (since the
21         function has a variable number of arguments).
23         * src/preproc/grn/main.cpp (doinput): Change return type to `int'.
24         Simplify function and update all callers.
26 2004-05-02  Werner LEMBERG  <wl@gnu.org>
28         Undo getopt changes from 2004-04-30.  We don't want a dependency
29         on gettext.
31         * src/include/getopt_int.h: Removed.
33         * src/include/getopt.h, src/include/groff-getopt.h,
34         src/include/Makefile.sub, src/libs/libgroff/getopt.c,
35         src/libs/libgroff/getopt1.c: Revert to previous version.
38         * src/include/nonposix.h (access) [_MSC_VER]: New macro.
40         * src/include/posix.h (F_OK): Define conditionally.
42         * src/devices/grotty/tty.cpp (tty_printer::make_underline): Use
43         different variable name in second `for' loop to avoid MSVC compiler
44         problem.
46 2004-04-30  Werner LEMBERG  <wl@gnu.org>
48         AC_TYPE_SIGNAL from current autoconf can fail if CC=g++.
50         * aclocal.m4 (GROFF_TYPE_SIGNAL): New function.
51         * configure.ac: Use GROFF_TYPE_SIGNAL, not AC_TYPE_SIGNAL.
52         * configure, src/include/config.hin: Regenerated.
54         * PROBLEMS: Updated.
57         Update getopt files.
59         * src/include/getopt.h, src/libs/libgroff/getopt.c,
60         src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
62         * src/include/getopt_int.h: New file (from GNU libc CVS).
64         * src/include/groff-getopt.h: Updated.
66         * src/include/Makefile.sub (HDRS): Add getopt_int.h.
69         * font/devutf8/NOTES: Updated.
71 2004-04-28  Werner LEMBERG  <wl@gnu.org>
73         Bug fix for Win32 relocatable code.  Based on a patch from Keith
74         Marshall.
76         * src/libs/libgroff/maxpathname.cpp (PATH_MAX): Test for `_MAX_PATH'
77         also.
79         * src/libs/libgroff/relocate.c (DEBUG): Define it conditionally.
80         (searchpath) [_WIN32]: Use `_fullpath', not `realpath'.
82 2005-04-28  Keith Marshall  <keith.d.marshall@ntlworld.com>
84         Correct `gnu.eps' handling for build from distribution tarball, with
85         separate source and build directories.
87         * doc/Makefile.sub: (examples.stamp): New target; forces copy of
88         grnexmpl.g, groff.css and gnu.eps from source to build directory;
89         generate gnu.eps from gnu.xpm if required; touch examples.stamp.
90         (prepare_examples): Make it depend on examples.stamp.
91         (CLEANADD): Add examples.stamp.
93 2005-04-27  Werner LEMBERG  <wl@gnu.org>
95         Implement the rule
97           position: '(' position ')'
99         in pic.
101         * src/preproc/pic/pic.y (position, position_not_place): Handle
102         additional parentheses.
104         * doc/pic.ms: Updated.
106 2005-04-23  Larry Jones  <lawrence.jones@ugs.com>
108         * src/utils/xtotroff/xtotroff.c (MapFont): Fix variable declaration.
110 2005-04-18  Werner LEMBERG  <wl@gnu.org>
112         * src/roff/groff/pipeline.c: Don't include ctype.h.
114 2005-04-13  Werner LEMBERG  <wl@gnu.org>
116         * src/roff/nroff/nroff.man: Document option `-M'.
118 2005-04-13  Bruce Lilly  <blilly@erols.com>
120         * src/roff/nroff/nroff.sh: Make the script accept option `-M'.
122 2005-04-01  Kees Zeelenberg  <kzlg@users.sourceforge.net>
123             Werner LEMBERG  <wl@gnu.org>
125         Add binary relocation support for Windows platforms.
127         * src/include/Makefile.sub (defs.h): Add `INSTALLPATH'.
129         * src/include/relocate.h, src/libs/libgroff/relocate.cpp: New files.
131         * src/libs/libgroff/searchpath.cpp: Handle `relocate'.
132         (search_path::search_path, search_path::open_file_cautious): Use
133         `relocate'.
135         * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
136         src/include/Makefile.sub (HDRS): Updated.
138 2005-04-01  Werner LEMBERG  <wl@gnu.org>
140         * src/devices/grohtml/post-html.cpp: Don't use strdup/free but
141         strsave/a_delete.
143         * src/libs/libgroff/font.cpp: Replace strdup with strsave.
145         * src/libs/libgroff/maxfilename.cpp: Don't include limits.h since
146         lib.h already does it.
148         * src/libs/libgroff/maxpathname.cpp: New file, defining
149         path_name_max.
151         * src/include/lib.h: Add prototype for path_name_max.
153         * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS): Updated.
155         * src/include/nonposix.h (PATH_EXT): New macro.
157 2005-03-28  Werner LEMBERG  <wl@gnu.org>
159         Add support for double- and zero-width characters in grotty.
161         * src/devices/grotty/tty.cpp (glyph): Add width. 
162         (tty_printer::make_underline, tty_printer::make_bold,
163         tty_printer::add_character): Add parameter to pass character width.
164         Update all callers.
165         (tty_printer::end_page): Increase hpos by actual character width.
167         * font/devutf8/R.proto: Specify zero width for non-spacing
168         characters.
170         * tmac/unicode.tmac: Remove definitions for non-spacing entities.
172         * Makefile.comm (extraclean): Remove more junk files.
174 2005-03-25  Werner LEMBERG  <wl@gnu.org>
176         * configure.ac: Undo change from 2005-03-24.
177         * configure: Regenerated.
179 2005-03-24  Werner LEMBERG  <wl@gnu.org>
181         * Makefile.in (NOMAKEDIRS): Add contrib/gdiffmk/tests.
182         (dist): Search Makefile while descending into $(EXTRADIRS).
184         * doc/Makefile.in (.PHONY): Add.
185         (clean): Don't remove *.png and *.eps.
186         Don't handle *.gif.
187         (realclean): Remove *.png and *.eps.
188         (extraclean): Depend on distclean.
190         * configure.ac: Add copyright.
191         Handle contrib/pdfmark/Makefile.
193         * configure: Regenerated.
195 2005-03-18  Larry Kollar  <kollar@alltel.net>
197         Add numbered and definition lists to www.tmac.
199         * tmac/www.tmac (www-ul-level1, www-ul-level2, www-ul-level3,
200         www-ol-level1, www-ol-level2, www-ol-level3, www-ol-tmp): New
201         auxiliary string registers.
202         (www-ul-level, www-ol-level, www-dl-level, www-ol-ctr1, www-ol-ctr2,
203         www-ol-ctr3, www-dl-shift): New auxiliary number registers.
204         (www-level): Removed.
205         (www-level1, www-level2, www-level3): Initialize to empty.
206         (www-level0, www-level4, www-level5, www-level6, www-level7,
207         www-level8, www-level9): New string registers.
208         (www-push-li, www-pop-li): New macros.
209         (www-push-level, www-pop-level): Renamed to...
210         (www-push-ul-level, www-pop-ul-level): This.
211         Updated.
212         (www-push-ol-level, www-pop-ol-level): New macros.
213         (ULS, ULE): Updated.
214         (OLS, OLE, DLS, DLE): New user macros.
215         (LI): Removed.  It is aliased to one of...
216         (www-li-ul, www-li-ol, www-li-dl): New macros.
218         * tmac/groff_www.man: Document new macros.
220         * NEWS: Updated.
222 2005-03-18  Werner LEMBERG  <wl@gnu.org>
224         * tmac/doc-common (doc-operating-system-NetBSD-2.0.1,
225         doc-operating-system-NetBSD-2.0.2): New strings.
227         * tmac/groff_mdoc.man: Updated.
229 2005-03-17  Werner LEMBERG  <wl@gnu.org>
231         * doc/Makefile.sub (CLEANADD): Add `groff.html'.
233 2005-03-17  Werner LEMBERG  <wl@gnu.org>
235         * src/libs/libgroff/hypot.c: Renamed to...
236         * src/libs/libgroff/hypot.cpp: This.  Updated to C++.
238         * src/libs/libgroff/Makefile.sub (CCSRCS, CSRCS): Updated.
240         * src/include/lib.h: Updated.
242 2005-03-16  Werner LEMBERG  <wl@gnu.org>
244         Add workaround for broken hypot() on Interix.
246         * src/libs/libgroff/hypot.c: New wrapper file for `hypot'.
248         * src/libs/libgroff/Makefile.sub (OBJS): Add `hypot.o'.
249         (CSRCS): Add `hypot.c'.
251         * src/include/lib.h: Declare `groff_hypot'.
253         * src/preproc/grn/hgraph.cpp: Don't declare `hypot'.
254         Use `groff_hypot'.
256         * src/preproc/pic/pic.h: Don't declare `hypot'.
258         * src/preproc/pic/object.cpp (hypot): Use `groff_hypot'.
260 2005-03-15  Gaius Mulley  <gaius@glam.ac.uk>
262         * src/devices/grohtml/post-html.cpp
263         (html_printer::lookahead_for_tables): End .ce properly to avoid a
264         segfault.
266 2005-03-15  Werner LEMBERG  <wl@gnu.org>
268         makeinfo 4.8 doesn't produce good HTML output from groff.texinfo.
270         * doc/fixinfo.sh: New script to postprocess makeinfo's HTML output.
272         * doc/Makefile.in (.texinfo.html): Call fixinfo.sh.
274 2005-03-14  Werner LEMBERG  <wl@gnu.org>
276         Add Cyrillic support to devutf8 and devhtml.
278         * font/devutf8/R.proto, font/devhtml/R.proto: Add Cyrillic blocks.
280         * tmac/unicode.tmac: New file.
282         * tmac/tty.tmac: Include unicode.tmac if device is utf8.
284         * tmac/Makefile.sub (NORMALFILES): Add unicode.tmac.
286         * NEWS: Updated.
288 2005-03-02  Keith Marshall  <keith.d.marshall@ntlworld.com>
290         * src/libs/libdriver/printer.cpp (check_for_output_error): New
291         function.  It has been introduced to catch peculiar error contexts
292         on MS-Windows platforms.
294 2005-02-28  Werner LEMBERG  <wl@gnu.org>
296         * src/roff/troff/input.cpp (string_iterator::fill): Protect against
297         null pointer.
299         * tmac/papersize.tmac: Convert `paper' string contents to lowercase.
301         * configure: Regenerated.
303         * NEWS: Updated.
305 2005-02-28  Keith Marshall  <keith.d.marshall@ntlworld.com>
307         Integrate `pdfmark' into normal groff build system;
308         install macro `pdfmark' packages, build and install `pdfroff',
309         and PDF format documentation.
311         * Makefile.comm: Add PDFDOCDIR.
313         * Makefile.in: (MDEFINES) ALT_AWK_PROGS, ALT_GHOSTSCRIPT_PROGS,
314         pdfdocdir, make_pdfdoc, make_install_pdfdoc: New variables.
315         (unstall_dirs): Add pdfdocdir.
317         * aclocal.m4: (GROFF_GHOSTSCRIPT_PREFS): New function; support
318         `--with-alt-gs' option, set ALT_GHOSTSCRIPT_PROGS.
319         (GROFF_GHOSTSCRIPT_PATH): Support `--with-gs' option, force use of
320         GROFF_GHOSTSCRIPT_PREFS, set GHOSTSCRIPT.
321         (GROFF_HTML_PROGRAMS): Force use of GROFF_GHOSTSCRIPT_PATH; tidy up.
322         (GROFF_AWK_PREFS): New function; support `--with-alt-awk' option,
323         set ALT_AWK_PROGS.
324         (GROFF_AWK_PATH): New function; support `--with-awk' option, force
325         use of GROFF_AWK_PREFS.
326         (GROFF_PDFDOC_PROGRAMS): New function; force use of GROFF_AWK_PATH
327         and GROFF_GHOSTSCRIPT_PATH, set make_pdfdoc and make_install_pdfdoc.
329         * configure.ac: Add AC_PREREQ(2.59), GROFF_PDFDOC_PROGRAMS.
330         Remove GROFF_GHOSTSCRIPT_PATH, (forced by GROFF_PDFDOC_PROGRAMS, and
331         also by modified GROFF_HTML_PROGRAMS).
333 2005-02-27  Gaius Mulley  <gaius@glam.ac.uk>
335         * src/devices/grohtml/html-text.cpp (html_text::do_pre): Preserve
336         paragraph spacing.
337         (html_text::done_para): Unset `start_space'.
338         (html_text::remove_para_align): Call `retrieve_para_space' for the
339         spacing.
341         * src/devices/grohtml/post-html.cpp (html_printer::emit_raw): Unset
342         `seen_space'.
343         (html_printer::do_check_center): Emit vertical space if necessary.
345         * src/roff/troff/env.cpp (environment_switch): Preserve
346         `seen_space', `seen_eol', and `suppress_next_eol' while switching
347         environments.
349         * src/roff/troff/node.cpp (suppress_node::suppress_node): Set
350         `is_special'.
352 2005-02-20  Werner LEMBERG  <wl@gnu.org>
354         * src/preproc/eqn/eqn.man, NEWS: Document various extensions of
355         eqn.
357 2005-02-17  Werner LEMBERG  <wl@gnu.org>
359         * doc/pic.ms, man/groff.man: Fix typos.
361         * doc/groff.texinfo: Fix typos.
362         (\LEmacro): Get proper mathematical spacing.
364 2005-02-16  Werner LEMBERG  <wl@gnu.org>
366         * aclocal.m4 (GROFF_APPRESDIR_CHECK): Improve warning message.
367         * configure: Regenerated with autoconf 2.59b.
369 2005-02-16  Gaius Mulley  <gaius@glam.ac.uk>
371         * src/devices/grohtml/post-html.cpp (html_printer::is_line_start,
372         html_printer::start_font): Fix handling of preformatted text.
374 2005-02-15  Gaius Mulley  <gaius@glam.ac.uk>
376         These patches modify the indentation implementation to use `<p
377         style=margin-left: n%>'.  Many thanks to Peter and Larry for
378         suggesting this solution.  Grohtml only uses tables for `.IP' and
379         related tags when the first operand has a short width.
381         Similarly, they modify all vertical space code.  By default, grohtml
382         sets up a style sheet which uses no vertical space between `table',
383         `pre', and `p' tags.  It forces spaces when it needs them using
384         `style="margin-top: 1em"'.
386         * src/devices/grohtml/html-table.cpp: Include `html-text.h'.
387         (html_table::emit_table_header, html_table::emit_new_row):
388         Rewritten.
389         (html_table::set_space): New function.
390         (html_indent::html_indent): Don't set `is_used'.
391         (html_indent::begin): Rewritten.
392         (html_indent::end): Remove code in function.
394         * src/devices/grohtml/html-table.h: Updated.
395         (html_table): Make `out' public.
397         * src/devices/grohtml/html-text.cpp (html_text::html_text):
398         Initialize `start_space' with FALSE.
399         (html_text::end_tag) <P_TAG, PRE_TAG>: Updated.
400         (html_text::issue_tag): Add argument to handle space style.
401         (html_text::start_tag) <P_TAG, PRE_TAG>: Updated.
402         (html_text::flush_text): Don't set `start_space'.
403         (html_text::push_para): Don't set `p->really_issued'.
404         (html_text::do_emittext): Updated.
405         (html_text::do_para): Add paremeter to handle space.
406         Update all callers.
407         (html_text::retrieve_para_space): New function.
409         * src/devices/grohtml/html-text.h (STYLE_VERTICAL_SPACE): New macro.
410         (tag_definition): Remove `really_issued'.
411         (html_text): Updated.
413         * src/devices/grohtml/post-html.cpp (html_printer): Add variables
414         `current_column' and `row_space'.
415         Update constructor.
416         (html_printer::emit_raw, html_printer::write_header,
417         html_printer::do_indent, html_printer::do_check_center,
418         html_printer::do_tab_ts): Handle vertical space.
419         (html_printer:do_tab_te, html_printer::do_end_para): Call
420         `remove_para_space'.
421         (html_printer::do_col): Rewritten.
422         (html_printer::flush_globs): Remove debugging code.
423         (html_printer::is_line_start): New function.
424         (html_printer::start_font): Use `is_line_start'.
425         (html_printer::writeHeadMetaStyle): New function.
426         (html_printer::do_file_components, html_printer::~html_printer):
427         Call `writeHeadMetaStyle'.
429         * tmac/www.tmac (www-handle-percent): New macro.
430         (MPIMG): Handle percent values for width and height parameters.
431         (DC): Updated.
433         * tmac/groff_www.man: Updated.
435 2005-02-14  Werner LEMBERG  <wl@gnu.org>
437         * src/utils/afmtodit/afmtodit.pl: Remove an incorrect `my' from
438         $psname and $italic_angle.
439         Immediately restart file input loops if `split' returns an empty
440         array.
442 2005-02-13  Michail Vidiassov  <master@iaas.msu.ru>
443             Werner LEMBERG  <wl@gnu.org>
445         Update afmtodit to better support Unicode (Michail).
446         Update afmtodit to use Perl 5 syntax (Werner).
448         * src/utils/afmtodit/afmtodit.pl: Don't use `getopts.pl' but
449         `Getopts::Std'.
450         Decorate variables with `my' where necessary.
451         Use `defined' where necessary to avoid warnings.
452         Don't use `do' for subroutine calls.
453         Other minor syntax updates.
454         Check for both `uXXXX[X[X]]' and `uniXXXX'.
455         Handle glyph variants properly.
456         (%unicode_decomposed, %AGL_to_unicode): Don't use `u' prefix in
457         strings.
459         * src/utils/afmtodit/afmtodit.man: Updated.
461 2005-02-13  Werner LEMBERG  <wl@gnu.org>
463         Make groff.texinfo work with texinfo 4.8.
465         * doc/groff.texinfo (@Var): Use @r and @slanted.
466         (@defdummy, @Def*): Use @c to avoid empty lines.
467         (\angles): Replaced with...
468         (\Langlemacro, \Ranglemacro): New TeX macros.
469         (@Langlemacro, @Ranglemacro): New variables defined with @set.
470         (@angles): Use @Langlemacro and @Ranglemacro.
471         (\LE): Replaced with...
472         (\LEmacro): New TeX macro.
473         (@LEmacro): New variable defined with @set.
474         (@LE): Use @LEmacro.
475         (@Lparenmacro, @Rparenmacro, @Lbrackmacro, @Rbrackmacro): New
476         variables defined with @set.
477         (@lparen, @rparen, @lbrack, @rbrack): Replaced with...
478         (@Lparen, @Rparen, @Lbrack, @Rbrack): New macros.
479         Update all callers.
481         Other minor updates.
483         * doc/texinfo.tex: Update to texinfo version 4.8.
485         * README.CVS: Updated.
487 2005-02-09  Alejandro López-Valencia <palopez@etb.net.co> (tiny change)
489         * doc/groff.texinfo (ms Document Control Registers): Document `HY'
490         and `FAM' registers.
492 2005-02-05  Werner LEMBERG  <wl@gnu.org>
494         * tmac/groff_mdoc.man, tmac/doc-common, tmac/doc-ditroff,
495         tmac/doc-nroff, tmac/doc-old.tmac, tmac/doc-syms, tmac/doc.tmac:
496         Update BSD license.
498 2005-02-01  Werner LEMBERG  <wl@gnu.org>
500         * src/roff/groff/groff.man: Add information about paper size.
502 2005-01-25  Werner LEMBERG  <wl@gnu.org>
504         * src/roff/nroff/nroff.sh: Handle `*.ISO8859-1' in locale.  From
505         NetBSD bin/29114.
507 2005-01-22  Ruslan Ermilov  <ru@FreeBSD.org>
509         * tmac/doc.tmac (Sm): Improved.  It didn't work properly in many
510         cases.
511         (Re): Emit a warning if called without `.Rs'.
512         (doc-finish-reference): Use parameter for decreasing
513         `doc-reference-count'.
514         (doc-print-reference): Pass specific count parameters to
515         `doc-finish-reference'.
517 2005-01-21  Werner LEMBERG  <wl@gnu.org>
519         * src/libs/libdriver/input.cpp (delete_current_env, do_file):
520         Reset pointers to zero after deallocation.  This fixes a crash
521         if a driver is called with multiple input files.  Reported by
522         Ken Chilton <ken@chiltonfamily.org>.
524         * src/devices/grops/grops.man: Add more info on DSC.
526 2005-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
528         * tmac/doc-common (Dd), tmac/doc-ditroff (gX, doc-setup-header):
529         Remove dead code.
531 2005-01-17  Werner LEMBERG  <wl@gnu.org>
533         * src/roff/troff/div.cpp (top_level_diversion::space): Protect
534         against division by zero.
536 2005-01-13  Ruslan Ermilov  <ru@FreeBSD.org>
538         * tmac/doc.tmac (Ef): Restore doc-curr-font and doc-curr-size.
540 2004-12-19  Werner LEMBERG  <wl@gnu.org>
542         * install-sh: New version; taken from texinfo CVS.
544 2004-12-17  Werner LEMBERG  <wl@gnu.org>
546         * tmac/devtag.tmac: Protect against loading twice.
547         Protect agains compatibility mode.
548         * tmac/www.tmac: Protect against loading twice.
549         Load `devtag.tmac' before switching off compatibility mode.
550         * tmac/an-old.tmac, tmac/s.tmac: Load `devtag.tmac'.
552 2004-12-16  Mike Bianchi  <mbianchi@Foveal.com>
554         * configure.ac: Produce `contrib/gdiffmk/tests/runtests'.
555         * configure: Updated.
557 2004-12-15  Thomas Klausner  <wiz@netbsd.org>
559         * tmac/doc-syms, tmac/groff_mdoc.man: Add `libpam' library.
561 2004-12-15  Werner LEMBERG  <wl@gnu.org>
563         Make `test-groff' work again -- previously, wrong paths have been
564         used.  Additionally, it can now be called from anywhere.
566         * test-groff.in: Don't test for groff binary.  This is no longer
567         necessary since the proper paths are determined by `configure'.
568         (EXEEXT): Removed.  No longer used.
569         (srcdir, builddir): Use values provided by the configure script.
570         (XENVIRONMENT): Updated.
572         * INSTALL: Updated.
574 2004-12-14  Gaius Mulley  <gaius@glam.ac.uk>
576         Make .tag and .taga work for all devices (but only grohtml actually
577         handles them).
579         * src/devices/grohtml/post-html.cpp: s/html-tag/devtag/.
580         (text_glob::is_br, page::add_tag, html_printer::troff_tag,
581         html_printer::handle_assertion): Don't use hard-coded string
582         lengths.
583         (html_printer::lookahead_for_table): Reset `tbl' properly if
584         necessary.
585         (html_printer::devtag): New function, handling `devtag'.
586         (html_printer::special): Don't handle `html-tag'.
588         * src/include/printer.h, src/libs/libdriver/printer.cpp
589         (printer::devtag): New virtual function.
591         * src/libs/libdriver/input.cpp (parse_x_command) <'X'>: Handle
592         `devtag'.
594         * src/roff/troff/env.cpp, src/roff/troff/mtsm.cpp,
595         src/roff/troff/node.cpp: s/html-tag/devtag/.
597         * src/roff/troff/input.cpp (tag, taga): Always call
598         curenv->add_node.
600         * tmac/an-old.tmac, tmac/s.tmac, tmac/troffrc-end: Use DEVTAG*
601         macros instead of HTML-TAG*.
603         * tmac/devtag.tmac: New file, defining the DEVTAG-* macros.
605         * tmac/www.tmac: Load devtag.tmac.
606         Replace HTML-TAG* macros with DEVTAG* macros.
607         (HTML, HTML-NS): Changed definitions.
608         (URL): Use HTML-NS.
609         (HTML-TAG, HTML-TAG-NS, HTML-TAG-NEXT): Removed.
611         * tmac/Makefile.sub (NORMALFILES): Add devtag.tmac.
613 2004-12-10  Werner LEMBERG  <wl@gnu.org>
615         Import Mike's `gdiffmk' package.
617         * contrib/gdiffmk/*: New files.
618         * Makefile.in (OTHERDIRS): Add contrib/gdiffmk.
619         * NEWS: Updated.
621 2004-12-08  Werner LEMBERG  <wl@gnu.org>
623         Import Keith's `pdfmark' package.  Integration is very preliminary.
625         * contrib/pdfmark/*: New files.
626         * Makefile.in (OTHERDIRS): Add contrib/pdfmark.
627         * NEWS: Updated.
629 2004-12-07  Gaius Mulley  <gaius@glam.ac.uk>
631         Fix a bug with title handling in HTML.
633         * src/devices/grohtml/post-html.cpp (text_glob::is_nf,
634         text_glob::is_fi, text_glob::is_ce): Use strlen to compute string
635         length.
636         (html_printer::handle_tag_within_title): New function.
637         (html_printer::do_title): Use it.
639         * tmac/s.tmac (TL): Don't set `need_eo_tl'.
640         (cov*tl-au-print): Emit `.eo.tl' tag.
642 2004-12-05  Alejandro López-Valencia  <dradul@etb.net.co>
644         * man/groff_char.man: Minor imrovements.
646 2004-12-04  Werner LEMBERG  <wl@gnu.org>
648         * src/preproc/eqn/eqn.man: Revised.
650 2004-11-25  Werner LEMBERG  <wl@gnu.org>
652         * src/utils/xtotroff/xtotroff.c: Reformat to be similar to other
653         groff source files.
654         Include config.h.
655         Include limits.h.
656         Remove X_NOT_STDC_ENV conditional.
657         (Version_string, program_name): New global variables.
658         (groff_flag): Removed.
659         (MapFont): Updated.
660         (usage): Take a stream as argument.
661         Use `program_name'.
662         Update all callers.
663         (main): Add `long_options' array for `--help' and `--version'.
664         Make `-g' a dummy option.
665         Handle `-v' and unknown options.
666         Remove unused `position' variable.
668         * src/utils/xtotroff/Makefile.sub (MAN1): Define.
669         (XLIBS): Add LIBGROFF.
671         * src/utils/xtotroff/xtotroff.man, src/utils/xtotroff/Makefile.in:
672         New files.
674         * src/devices/xditview/Dvi.c (default_font_map): Split into three
675         parts to avoid compiler warning.
676         (resources): Don't initialize with `default_font_map'.
677         (ClassInitialize): Initialize first element of `resources'.
679         * src/devices/xditview/Makefile.sub (devdir, xtotroff, DPIS, fonts):
680         Removed.
682         * src/utils/lkbib/lkbib.man, src/utils/lookbib/lookbib.man,
683         src/utils/pfbtops/pfbtops.man: Revised, updated.
685         * configure.ac: Generate src/utils/xtotroff/Makefile.
686         * configure: Regenerated.
688 2004-11-24  Werner LEMBERG  <wl@gnu.org>
690         First fixes to get produce HTML.
692         * src/devices/grohtml/post-html.cpp (generate_img_src): Add `alt'
693         attribute.
695         * tmac/www.tmac (IMG, PIMG, MPIMG): Add `alt' attribute.
696         (HR, LI): Use `HTML</p>', not `HTML'.
698         * doc/webpage.ms: Minor updates.
700 2004-11-23  Larry Kollar  <kollar@alltel.net>
702         Add option -S grohtml to determine the file split level.
704         * src/devices/grohtml/post-html.cpp (split_level): New global
705         variable.
706         (html_header::determine_header_level): Use split_level.
707         (main): Handle `-S' command line option.
708         Sort options.
710         * src/preproc/html/pre-html.cpp (scanArguments): Updated.
712         * src/devices/grohtml/grohtml.man: Document it.
713         Sort options.
715         * NEWS: Document it.
717 2004-11-23  Y T  <doarhop@hotmail.com>
719         * tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
720         the volume and number refer entries.
722 2004-11-22  Werner LEMBERG  <wl@gnu.org>
724         * src/devices/grohtml/html-table.cpp
725         (html_table::emit_table_header): Don't emit `cols' attribute which
726         doesn't exist in HTML 4.0 and is thus invalid.
728         * NEWS: More minor fixes and updates.
730 2004-11-18  Werner LEMBERG  <wl@gnu.org>
732         * tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
733         (HTML</p>): Minor clean-up.
735         * tmac/groff_www.man: Updated.
737         * src/devices/grohtml/grohtml.man: Revised and updated.
739         * NEWS: Updated.
741 2004-11-18  Gaius Mulley  <gaius@glam.ac.uk>
743         * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
744         Fix space insertion.
745         (html_printer::do_links): Fix rules generation around automatic
746         heading links.
748         * tmac/www.tmac (LK): Use HTML-TAG-NS.
749         (HR): Simplify.
750         No longer emit empty line for non-HTML devices.
752 2004-11-17  Werner LEMBERG  <wl@gnu.org>
754         * doc/Makefile.in (prepare_examples, webpage.html): Handle
755         `groff.css'.
757         * doc/Makefile.sub (EXAMPLEFILES, CLEANNOTSRCDIRADD,
758         prepare_examples, webpage.html): Handle `groff.css'.
760 2004-11-15  Werner LEMBERG  <wl@gnu.org>
762         * NEWS, README, doc/webpage.ms: Updated.
764         * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
766 2004-10-30  Gaius Mulley  <gaius@glam.ac.uk>
768         * src/include/printer.h (printer): Remove virtual function
769         `round_width'.
770         Update all source files.
772         * src/devices/grohtml/post-html.cpp (html_printer): New member
773         function `round_width'.
775 2004-10-20  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
777         * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
778         column key letter suffix.
780 2004-10-14  Werner LEMBERG  <wl@gnu.org>
782         * Makefile.in (check): Depend on `site.exp' and `docheck'.
783         (docheck): Run dejagnu's `runtest' if it exists.
784         (site.exp): Create dejagnu configuration file.
786         * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
788 2004-10-13  Werner LEMBERG  <wl@gnu.org>
790         * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
791         src/devices/grohtml/post-html.cpp (make_val,
792         html_printer::handle_state_assertion): Fix compiler warnings.
794         * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
795         (diversion::diversion): Fix order of initializers.
797         * src/roff/troff/div.h: Don't include `mtsm.h'.
799         * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
800         (environment::environment): Fix order of initializers.
801         (environment::make_tag, environment::construct_format_state): Fix
802         compiler warnings.
804         * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
805         (input_iterator::input_iterator, macro::macro): Fix order of
806         initializers.
808         * src/roff/troff/mtsm.cpp: Include only necessary header files.
809         (state_set::add, state_set::val): Fix compiler warnings.
811         * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
812         (bool_value_state, int_value_state, units_value_state,
813         string_value_state): Remove comma after last element which causes
814         an error with g++ 3.3.3.
816         * src/roff/troff/node.cpp: Include `stringclass.h'.
817         (hline_node::hline_node, vline_node::vline_node,
818         space_char_hmotion_node, left_italic_corrected_node): Fix compiler
819         warnings.
820         (zero_width_node::zero_width_node): Fix order of initializers.
822         * src/roff/troff/node.h: Don't include `mtsm.h'.
823         (hmotion_node): Fix compiler warnings.
825         * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
827 2004-10-12  Gaius Mulley  <gaius@glam.ac.uk>
829         * doc/groff.css: New file.
831         * doc/webpage.ms: Use `groff.css'.
832         Other small fixes.
834         * tmac/an-old.tmac (need_eo_h): New number register.
835         (TH): Emit `.eo.tl' tag after title.
836         (SH): Set `need_eo_h'.
837         (an-trap): Handle `need_eo_h'.
838         (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
840         * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
841         (TL): Always start diversion.
842         Updated.
843         (@AI): Always call `par@reset'.
844         (@AB): Update code for -Thtml.
845         (cov*tl-au-print): Handle -Thtml.
846         (par@reset): Handle `need_eo_tl', `need_eo_h'.
847         (@IP): Simplified.
848         (@IT-html): Removed.
849         (@SH): Set `need_eo_h' for -Thtml.
850         (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
851         Set `need_eo_tl'.
852         (@NH): s/HTML-TAG/HTMl-TAG-NS/.
853         Set `need_eo_h' for -Thtml.
854         (@EQ, @EN): Don't handle -Thtml specially.
855         (par@load-init): Don't handle -Thtml specially.
857         * tmac/www.tmac (www:paraspace): New macro.
858         (HTML-NS, HTML-TAG-NS): Use new `tag' request.
859         (HTML</p>, HTML-TAG-NEXT): New macros.
860         (HnE): Emit tag `.eo.h' instead of break.
861         (HR): s/HTML-NS/HTML/.
862         (www-end-nowhere): End diversion only if `www-html' not set.
863         Emit `.eo.tl' tag.
864         (ULS, ULE): s|HTML|HTML</p>|.
865         (LI): Call `www:paraspace'.
866         (HEAD): New macro.
868 2004-10-11  Gaius Mulley  <gaius@glam.ac.uk>
870         * src/roff/troff/request.h (macro): Make `p' public.
871         New variable `is_a_diversion'.
872         New member function `is_diversion'.
875         * src/devices/grohtml/html.h (simple_output): New member function
876         `force_nl'.
878         * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
879         computation of `total'.
880         (tabs::check_init): New function.
881         (html_table::emit_table_header): Emit style data.
882         (html_table::insert_column): Improved.
884         * src/devices/grohtml/html-table.h: Updated.
886         * src/devices/grohtml/html-text.cpp (html_text::html_text):
887         Initialize `start_space' with TRUE.
888         (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
889         cases.
890         (html_text::flush_text): Set `start_space' flag.
891         (html_text::uses_indent, html_text::remove_para_space,
892         html_text::get_alignment): New functions.
893         (html_text::push_para): Updated.
894         (html_text::do_para): Check for empty argument.
895         Don't set `space_emitted'.
896         (html_text::do_space, html_text::emit_space): Updated.
898         * src/devices/grohtml/html-text.h (tag_definition): New variable
899         `really_issued'.
900         (html_text): New member function `uses_indent', `remove_para_space',
901         `get_alignment'.
903         * src/devices/grohtml/output.cpp (simple_output::force_nl): New
904         function.
905         (simple_output:nl): Always emit `\n'.
907         * src/devices/grohtml/post-html.cpp: Include `string.h'.
908         (BASE_POINT_SIZE): Removed.
909         (base_point_size, head_info): New global variables.
910         (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
911         `is_eo_h'.
912         (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
913         tags, respectively.
914         (page::add_and_encode): Pass additional parameter for tag flag.
915         (assert_pos): New structure.
916         (assert_state): New class.
917         (html_printer): Remove `indentation', `prev_indent'.
918         Add variables `troff_indent', `device_indent', `temp_indent'.
919         Add variables `seen_indent', `next_indent', `seen_pageoffset',
920         `next_pageoffset', `seen_linelenght', `next_linelength',
921         `seen_center', `next_center', `seen_space', `seen_break', `as'.
922         Add member functions `do_check_center', `do_space', `do_head',
923         `get_troff_indent', `restore_troff_indent', `handle_assertion',
924         `handle_state_assertion', `do_end_para', `set_char_and_width'.
925         Change argument to `do_fill' to `char *'.
926         Update constructor.
927         (html_printer::emit_raw): Call `shutdown_table'.
928         Use new functions.
929         (html_printer::do_center): Simplified.
930         (html_printer::do_title): Improved.
931         (html_printer::write_header): Emit one more newline.
932         Use new functions.
933         (html_printer::do_heading, html_printer::do_indent,
934         html_printer::do_eol, html_printer::do_tab_ts,
935         html_printer::do_tab, html_printer::do_tab0,
936         html_printer::calc_po_in, html_printer::next_horiz_pos,
937         html_printer::remove_courier_tabs,
938         html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
939         Updated.
940         (html_printer::do_linelength, html_printer::do_pageoffset,
941         html_printer::do_indentation, html_printer::do_tempindent,
942         html_printer::do_tab_te): Simplified.
943         (html_printer::do_pointsize): Check whether point size is really
944         associated a `.tl' tag.
945         (html_printer::do_break): Rewritten.
946         (html_printer::troff_tag): Improved.
947         (html_printer::flush_globs): Updated.
948         (html_printer::lookahead_for_tables): Handle `is_br'.
949         Use new functions.
950         (html_printer::set_char): Check `sbuf_style.f'.
951         (html_printer::write_navigation): Use string comparison.
952         (html_printer::~html_printer): Emit `head_info'.
953         (html_printer::special): Rewritten.
954         (get_str, make_val): New functions.
955         (main): New option `s' to set the base point size.
957         * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
959 2004-10-10  Gaius Mulley  <gaius@glam.ac.uk>
961         * src/roff/troff/node.cpp: New extern `debug_state'.
962         Include `stringclass.h' and `mtsm.h'.
963         Implement new classes and class members from `node.h'.
964         (real_output_file): Make `fp' public.
965         (troff_output_file): New variables `cur_div_level' and `tag_list'.
966         Update constructors.
967         (troff_output_file::really_print_line): Check whether we should push
968         the current troff state and use the state at the start of the
969         invocation of this diversion.
970         (troff_output_file::add_to_tag_list): New member function.
971         (node::add_char): Handle `glyph_comp_np'.
973         * src/roff/troff/node.h: Include `mtsm.h'.
974         (node): New variables `state', `push_state', `div_nest_level',
975         `is_special'.  Update constructors, all descendants.
976         Pass additional argument to `add_char' member function.
977         New virtual member functions `is_tag', `debug_node',
978         `debug_node_list'.  Update all descendants.
979         (tag_node): New class for handling tags.
980         (output_file): Add variable `state'.
982 2004-10-09  Gaius Mulley  <gaius@glam.ac.uk>
984         * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
985         providing a minimal troff state machine to emit meta tags for the
986         post-grohtml device driver.
988         * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
989         files.
991 2004-10-09  Werner LEMBERG  <wl@gnu.org>
993         * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
995 2004-10-06  Gaius Mulley  <gaius@glam.ac.uk>
997         * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
999         * src/roff/troff/div.h: Include `mtsm.h'.
1000         (diversion): New variables `any_chars_added', `needs_push',
1001         `saved_seen_break', `saved_seen_space', `saved_seen_eol',
1002         `saved_suppress_next_eol', `modified_tag'.
1003         New virtual member function `is_diversion'.  Update all descendants.
1005         * src/roff/troff/div.cpp (diversion::diversion,
1006         macro_diversion::macro_diversion): Updated.
1007         (do_divert): Handle `seen_break', `seen_space', `seen_eol',
1008         `suppress_next_eol'.
1009         (top_level_diversion::space): Handle `curenv->seen_space'.
1010         (page_offset): Update tag handling.
1011         (space_request, blank_line, flush_output): Don't call `add_html_tag'.
1013         * src/roff/troff/env.h (environment): Make `tabs' public.
1014         Remove `ignore_next_eol', `emitted_node'.
1015         Update `output_line', `output'.
1016         New variables `seen_space', `seen_eol', `suppress_next_eol',
1017         `seen_break'.
1018         New member functions `construct_state', `make_tag',
1019         `construct_format_state, `construct_new_line_state,
1020         `dump_troff_state'.
1021         Remove `add_html_tag', `make_html_tag'.
1023         * src/roff/troff/env.cpp: New externs `suppress_push',
1024         `get_diversion_state', `global_diverted_space'.
1025         (pending_output_line): New variable `was_centered'.
1026         Update constructor and all callers.
1027         (pending_output_line::output): Call `curenv->construct_format_state'.
1028         (environment::environment, environment::copy): Updated.
1029         (environment::output): Handle `was_centered'.
1030         (environment::add_char): Handle construct and diversion state.
1031         (environment::add_node): Handle construct state.
1032         (environment::newline): Handle `was_centered'.
1033         (environment::output_line): Updated.
1034         (environment::possibly_break_line): Updated.
1035         Update tag handling.
1036         (environment::add_html_tag): Replaced with...
1037         (environment::make_tag): New function.
1038         (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
1039         (environment::dump_troff_state): New debugging function.
1040         (environment::construct_state, environment::construct_format_state,
1041         environment::construct_new_line_state): New functions.
1042         (environment::do_break): Updated.
1043         Handle `global_diverted_space'.
1044         (environment::handle_tag): Update tag handling.
1045         (point_size, fill, do_break_request): Don't call `add_html_tag'.
1046         (no_fill): Don't call `add_html_tag'.
1047         Set `suppress_next_eol'.
1048         (center, right_justify, line_length, indent, temporary_indent,
1049         set_tabs):
1050         Update tag handling.
1052         * src/roff/troff/input.cpp: Don't include `stringclass.h'.
1053         (input_iterator): New variables `is_diversion', `diversion_state'.
1054         Update constructors.
1055         (input_stack): New member functions `get_div_level',
1056         `get_diversion_state', `check_end_diversion'.
1057         New variables `div_level', `diversion_state'.  Initialize them.
1058         (suppress_push, global_diverted_space): New global variables.
1059         (input_stack::finish_get, input_stack::finish_peek,
1060         input_stack::remove_boundary, input_stack::end_file,
1061         input_stack::clear, input_stack::pop_macro): Call
1062         `check_end_diversion'.
1063         (input_stack::push): Handle `div_level' and `diversion_state'.
1064         (get_diversion_state): New function.
1065         (diverted_space_node::reread): Handle `global_diverted_space'.
1066         (macro::macro): Update constructors.
1067         (macro::is_diversion): New function.
1068         (macro::operator=): Set `is_a_diversion'.
1069         (string_iterator): New member function `is_diversion'.
1070         (string_iterator::string_iterator): Update constructors.
1071         (string_iterator::fill): Set `div_nest_level'.
1072         (macro_iterator): New member function `is_diversion'.
1073         (do_if_request): Handle `suppress_push'.
1074         (tag, taga): New functions.
1075         (init_input_requests): Add `tag' and `taga' requests.
1077 2004-10-05  Gaius Mulley  <gaius@glam.ac.uk>
1079         * src/include/font.h (font): New member function
1080         `get_image_generator'.
1081         New variables `unscaled_charwidths' and `image_generator'.
1083         * src/libs/libgroff/font.cpp (font::get_width): Always return the
1084         character's unscaled width if `font::unscaled_charwidths' is set.
1085         (font::get_image_generator): New function.
1086         (font::load_desc): Check the `unscaled_charwidths' and
1087         `image_generator' keywords.
1089         * src/libs/libgroff/fontfile.cpp: Initialize
1090         `font::unscaled_charwidths' and `font::image_generator'.
1092         * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
1094         * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
1096         * man/groff_font.man: Document `unscaled_charwidths' and
1097         `image_generator'.
1099         * src/preproc/html/pre-html.cpp: Include `device.h'.
1100         (image_gen): New global variable.
1101         (imageList::createPage): Use `image_gen'.
1102         (main): Use `image_generator' keyword.
1104 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
1106         * tmac/html.tmac: Handle \[sqrtex].
1108 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
1110         * src/include/printer.h (printer): New virtual method `round_width'.
1112         * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
1113         src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
1114         src/devices/grotty/tty.cpp (printer::round_width): New function
1115         member.
1117         * src/devices/grohtml/post-html.cpp (printer::round_width): New
1118         function member.
1119         (html_printer::set_numbered_char): Use it.
1121 2004-10-03  Gaius Mulley  <gaius@glam.ac.uk>
1123         * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
1125         * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
1127         * configure: Regenerated.
1129         * Makefile.in (GHOSTSCRIPT): New variable.
1130         (MDEFINES): Add GHOSTSCRIPT.
1132 2004-10-03  Werner LEMBERG  <wl@gnu.org>
1134         * INSTALL.gen: Updated (taken from texinfo CVS).
1136 2004-09-28  Werner LEMBERG  <wl@gnu.org>
1138         * NEWS: Updated.
1140 2004-09-28  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
1142         * tmac/groff_www.man: Revised and updated.
1144 2004-09-26  Werner LEMBERG  <wl@gnu.org>
1146         Fix \$@ and \$* to handle any number of arguments.
1148         * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
1149         characters.
1151         * src/roff/troff/input.cpp (input_iterator::internal_level):
1152         Removed.
1153         (input_stack): New member functions `increase_level' and
1154         `decrease_level'.
1155         (input_stack::get_level): Don't use `internal_level'.
1156         (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
1157         (end_quote_iterator): Completely removed.
1158         (interpolate_arg): Build string for \$@ and \$* which is then
1159         pushed onto the input stack.
1161 2004-09-23  Keith Marshall  <keith.d.marshall@ntlworld.com>
1163         * tmac/groff_ms.man, doc/groff.texinfo: Document changes from
1164         2004-09-19.
1166 2004-09-23  Werner LEMBERG  <wl@gnu.org>
1168         * tmac/an-old.tmac (ne): Using default scaling operator.
1170 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
1172         This change implements the following features:
1174         PORPHANS
1175           New numeric register: Defines number of lines following LP, PP,
1176           QP, IP or XP, which must be kept together, before any automatic
1177           page break.  If insufficient space remains on the current page, a
1178           page break is forced before the new paragraph begins.
1180         HORPHANS
1181           New numeric register: Sets number of lines of following paragraph
1182           which must be kept with a heading, defined by NH or SH, before any
1183           automatic page break.  If insufficient space remains on the
1184           current page, a page break is forced before the heading.
1186         GROWPS
1187           (Thanks to Joerg van den Hoff, for this idea).
1189           New numeric register: Sets the first level of heading (set with
1190           NH), which will keep the same point size as body text; e.g. if
1191           GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
1192           point size specified by \n[PS], but .NH 2 and .NH 1 will have
1193           progressively larger point sizes, determined by \n[PSINCR] (see
1194           below).
1196         PSINCR
1197           New numeric register: Sets the point size increment for each level
1198           of heading, (set with NH), below the threshold level set by
1199           GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
1200           then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
1201           and all other levels will remain at 10pt, (because \n[PS] = 10).
1203         SH
1204           Existing macro now accepts a numeric argument, to make heading
1205           size match that of NH with same argument value, when the
1206           GROWPS/PSINCR feature is enabled.
1208         SN-DOT
1209           New string, set by NH macro, replaces the existing (undocumented)
1210           use of SN, to represent the assigned section number.
1212         SN-NO-DOT
1213           New string, set by NH macro, represents the assigned section
1214           number, but omits the terminal period (periods at intermediate
1215           levels are retained).
1217         SN
1218           String set by NH macro, originally undocumented, now implemented
1219           as an alias for SN-DOT (which reproduces original behaviour).
1221         * tmac/s.tmac (PORPHANS): New register.
1222         (par*start): Use it.
1223         (HORPHANS, GROWPS, PSINCR): New registers.
1224         (SH-NO-TAG, @SH): Use them.
1225         (@NH): Improved.
1227 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
1229         * NEWS, doc/groff.texinfo, tmac/groff_ms.man: Document the deletion
1230         of `Ds' and `De' macros.
1232 2004-09-10  Werner LEMBERG  <wl@gnu.org>
1234         In tbl, handle \a as an interpreted leader character if in
1235         compatibility mode.
1237         * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
1238         LEADER_CHAR): New macros.
1239         (compatible_flag): New declaration.
1241         * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
1242         LEADER_3, and LEADER_4 to `state'.
1243         (table_input::get): Handle `\a'.
1245         * src/preproc/tbl/table.cpp (PREFIX): Removed.
1246         (LEADER_REG): New macro.
1247         (table::init_output): Define LEADER_REG string register if in
1248         compatibility mode.
1250         * src/preproc/tbl/tbl.man: Document it.
1252 2004-08-18  Werner LEMBERG  <wl@gnu.org>
1254         * tmac/doc.tmac (An): Fix error message.
1256 2004-08-06  Werner LEMBERG  <wl@gnu.org>
1258         * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
1259         file can't be opened.  UNIX tbl has the same behaviour.
1261 2004-08-05  Y T  <doarhop@hotmail.com>
1263         * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
1264         (DBRead): If in compatibility mode, take into account the text
1265         when computing figure boundaries.
1267 2004-08-05  Werner LEMBERG  <wl@gnu.org>
1269         * src/preproc/soelim/soelim.man: Improved.  Based on suggestions
1270         from Tadziu Hoffmann.
1272 2004-08-03  Werner LEMBERG  <wl@gnu.org>
1274         * doc/meref.me: Document `_M' register.
1276 2004-08-03  Martin Husemann  <martin@duskware.de>
1278         Make hpftodit work correctly on big-endian systems.
1280         * src/utils/hpftodit/hpftodit.cpp (File): New method
1281         `get_uint32(char *)'.
1282         (entry): New member `orig_value'.
1283         (read_tags): Use new method.
1284         (output_font_name, read_and_output_pcltypeface, dump_ascii):
1285         Updated.
1287 2004-08-01  Werner LEMBERG  <wl@gnu.org>
1289         * tmac/s.tmac: Undo change 2003-06-29.  The proper macro definitions
1290         are already in X11's `macros.t' file.
1292 2004-08-01  Jeff Conrad  <jeff_conrad@msn.com>
1294         * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
1295         Fix casting bug.
1296         (read_and_output_pcltypeface): Handle strings with length <= 4.
1298 2004-07-27  Egil Kvaleberg  <egil@kvaleberg.no>
1300         * tmac/s.tmac (pg@top): Don't save `PO' register.
1301         (pg*end-col, pg*end-page): Directly use `PO' register.
1303 2004-07-27  Werner LEMBERG  <wl@gnu.org>
1305         * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
1307         * src/preproc/refer/refer.cpp (output_references): Check for
1308         empty hash table.
1309         * src/preproc/refer/refer.man: Improve documentation of
1310         `bibliography' command.
1312 2004-07-26  Werner LEMBERG  <wl@gnu.org>
1314         Add requests `fcolor' and `gcolor'.
1316         * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
1317         New functions.
1318         (init_env_requests): Add `fcolor' and `gcolor'.
1320         * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
1322         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1323         Document new requests.
1325 2004-07-24  Werner LEMBERG  <wl@gnu.org>
1327         Add support for fractional point sizes in ms macros.  A value for
1328         PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
1329         by 1000.  For example, `.nr PS 10250' sets the font size to 10.25p.
1331         * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
1332         PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
1334         * tmac/groff_ms.man, docs/groff.texinfo, NEWS: Document it.
1336 2004-07-19  Werner LEMBERG  <wl@gnu.org>
1338         * src/preproc/pic/lex.cpp (for_input): Add member `from'.
1339         Update constructor.
1340         (do_for, for_input::get, for_input::peek): Handle negative `by'.
1341         * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
1343 2004-07-08  Thomas Klausner  <wiz@netbsd.org>
1345         * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
1346         * tmac/groff_mdoc.man: Updated.
1348 2004-07-05  Werner LEMBERG  <wl@gnu.org>
1350         * doc/groff.texinfo: Further improve documentation of `hcode'.
1352 2004-07-04  Sang Dae Yu  <sdyu@bh.knu.ac.kr>
1354         Improve appearance of arrows in pic.
1356         * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
1357         arrow head thin.
1358         Use two line segments for drawing non-filled arrow head.
1359         (line_object::print, spline_object::print): Shorten line length to
1360         avoid arrow sticking.
1361         (arc_object::print): Take arrow direction into account.
1363 2004-07-03  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
1365         * tmac/groff_www.man: Update documentation of .MPIMG.
1367 2004-07-03  Werner LEMBERG  <wl@gnu.org>
1369         * tmac/an-old.tmac (RI): Always start with font `R'.
1370         (RI, IR): Properly end with font `R'.
1372 2004-07-02  Paul Eggert  <eggert@cs.ucla.edu>
1374         * man/ditroff.man, man/groff_font.man, man/groff_out.man,
1375         src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
1376         src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
1377         Don't pass more than six arguments to .R, .I, .B, etc., for
1378         compatibility with traditional troff macros.
1380 2004-07-02  Werner LEMBERG  <wl@gnu.org>
1382         * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
1383         s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
1384         Update all users.
1385         (PUSH_COMP_MODE): New internal character constant.
1386         Update all users.
1388         * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
1389         PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
1390         (token::next, macro::append): Handle PUSH_COMP_MODE.
1391         (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
1392         POP_GROFFCOMP after each of the decoded arguments to make them
1393         independent from the compatibility mode status.
1394         (comp_mode): Add `COMP_ENABLE'.
1395         (do_define_string, do_define_macro): Handle COMP_ENABLE.
1396         (define_string, append_string, define_macro, define_indirect_macro,
1397         append_macro, append_indirect_macro): Handle `compatible_flag'.
1398         (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
1400         * man/groff_diff.man, doc/groff.texinfo: Updated.
1402 2004-07-01  Werner LEMBERG  <wl@gnu.org>
1404         * doc/groff.texinfo: Improve documentation of `hcode'.
1405         Use @documentencoding and convert document to latin-1; to do that
1406         make latin characters active and assign proper macros (within a
1407         @tex...@end tex environment).
1408         * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
1409         * doc/Makefile.sub (groff): Ditto.
1411 2004-06-29  Werner LEMBERG  <wl@gnu.org>
1413         Implement two new conditional operators `F <name>' and `S <name>'
1414         which check whether <name> is a valid font or style, respectively.
1416         * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
1417         (text_file::text_file): Updated.
1418         (text_file::error): Don't emit message if `silent' is set.
1419         (font::load_font): Add optional third argument (which is directly
1420         passed to `load'.
1421         (font::load): Add optional second argument to check the header of
1422         a font only, without emitting warning or error messages.
1423         * src/include/font.h (font): Updated.
1425         * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
1426         conditionals.
1427         * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
1428         fourth argument to check a font without mounting.
1429         (check_font, check_style): New functions.
1430         * src/roff/troff/node.h: Updated.
1432         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1433         Updated.
1435 2004-06-27  Werner LEMBERG  <wl@gnu.org>
1437         Implement new string-valued register `.sty' to return the current
1438         style name.
1440         * env.cpp (environment::get_style_name_string): New function.
1441         (init_env_requests): Add `.sty' register.
1442         * env.h (environment): Updated.
1443         * node.cpp (font_info): Make `get_style_name' a friend.
1444         (get_style_name): New function.
1445         * node.h: Updated.
1447         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1448         Updated.
1450 2004-06-15  Werner LEMBERG  <wl@gnu.org>
1452         * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
1453         `nospaces' option.
1455 2004-06-10  Colin Percival  <colin.percival@wadham.ox.ac.uk>
1457         * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
1458         and \n[mo] to avoid dependency on current date.
1460 2004-06-08  Werner LEMBERG  <wl@gnu.org>
1462         * Makefile.sub (install_data): New target.
1464 2004-06-04  Werner LEMBERG  <wl@gnu.org>
1466         * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
1468 2004-06-03  Werner LEMBERG  <wl@gnu.org>
1470         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
1471         order of libraries.
1472         (install_data): Add $(srcdir).
1474         * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
1475         libraries.
1477 2004-06-02  Werner LEMBERG  <wl@gnu.org>
1479         * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
1480         Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
1481         Add test for Xmu library.
1482         (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1483         GROFF_APPRESDIR_DEFAULT): New macros.
1485         * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1486         and GROFF_APPRESDIR_DEFAULT.
1488         * configure: Regenerated.
1490         * Makefile.in (appresdir): New variable.
1491         (MDEFINES): Add appresdir.
1493         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
1494         -Xt.
1495         (install_data, uninstall_sub): New targets to handle GXditview.ad.
1497         * src/utils/indxbib/Makefiles.ub (install_data): Depend on
1498         `$(srcdir)/eign', not `eign'.
1500         * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
1502         * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
1503         src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
1504         Protect (g)xditview with `\%' to avoid hyphenation.
1505         Other minor formatting.
1507 2004-06-01  Werner LEMBERG  <wl@gnu.org>
1509         Integrate gxditview into groff's standard directory hierarchy.
1511         * src/xditview/*: Moved to ...
1512         * src/devices/xditview/*: Here.
1513         Moved DviChar.h and XFontName.h to src/include.
1514         Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
1515         Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
1516         Moved xtotroff.c to new directory src/utils/xtotroff.
1517         Provide proper Makefile.sub files (reusing the stuff from
1518         Imakefile.in).
1519         DESC renamed to DESC.in.
1520         Removed GXDitview-ad.h, INSTALL, Imakefile.in.
1521         Converted everything from K&R to ANSI C.
1522         Decorated with const where appropriate.
1523         Cast string constants with `String' and `char *' where appropriate.
1524         Made it compile with C++ (used as a C compiler).
1525         Removed other minor compiler warnings.
1527         * src/devices/xditview/device.c: Include config.h, string.h, and
1528         defs.h.
1529         Don't declare `exit', `strtok', `strchr', and `getenv'.
1530         (FONTPATH): Remove.
1532         * src/devices/xditview/font.c: Don't declare `XParseFontName' and
1533         `XFormatFontName'.
1535         * src/devices/xditview/xditview.c: Include config.h.
1536         Include stdio.h earlier.
1537         Protect declaration of `popen' and `pclose' with
1538         NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
1539         Replace `caddr_t' with `XtPointer'.
1540         (MakePromptFunc): New typedef.
1541         (DoPrint): Use RETSIGTYPE.
1542         (promptfunction): Change type to MakePromptFunc.
1543         (MakePrompt): Use MakePromptFunc for third argument.
1544         (xmalloc): Removed.
1546         * src/devices/xditview/ad2c: Add casts to `String'.
1548         * src/include/XFontName.h (XFontNameString): Don't use array
1549         notation.
1550         Add prototypes for `XParseFontName', `XFormatFontName',
1551         `XCompareFontName', and `XCopyFontName'.
1553         * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
1554         `XFontName.h'.
1556         * src/utils/xtotroff/xtotroff.c: Include getopt.h.
1557         Don't declare `XParseFontName' and `XFormatFontName'.
1558         (xmalloc): Removed.
1559         (main): Remove `optind' and `optarg'.
1561         * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
1562         (to select programs which need X).
1563         Make XDEVIDIRS depend on `FORCE'.
1564         (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
1565         X support).
1566         (MDEFINES): Updated.
1567         (LIBDIRS): Use XLIBDIRS.
1568         (CPROGDIRS): Use XPROGDIRS.
1569         (DEVDIRS): Remove font directories for gxditview.
1570         (ALLDIRS, DISTDIRS): Add XDEVDIRS.
1571         (EXTRADIRS): Remove src/xditview.
1573         * Makefile.sub (DISCLEANFILES): Updated.
1575         * Makefile.comm (LIBXUTIL): New variable.
1576         (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
1577         (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
1579         * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
1581         * aclocal.m4 (GROFF_X11): New function.
1583         * configure.ac: Call GROFF_X11.
1584         Don't create src/xditview/Imakefile.
1585         Don't emit notice how to build gxditview.
1587         * configure: Regenerated.
1589         * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
1591 2004-05-28  Akihiro Sagawa  <sagawa@sohgoh.net>
1593         * Makefile.in (CPPFLAGS): Define.
1594         (MDEFINES): Add CPPFLAGS.
1596 2004-05-27  Werner LEMBERG  <wl@gnu.org>
1598         * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
1600 2004-05-26  Niklas Edmundsson  <nikke@acc.umu.se>
1602         Fix problems with `friend name injections'.
1604         * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
1605         make_script_box), src/roff/troff/div.h (end_diversions),
1606         src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
1607         change 2004-04-08.
1609 2004-05-25  Bernd Warken  <bwarken@mayn.de>
1611         * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
1613 2004-05-25  Werner LEMBERG  <wl@gnu.org>
1615         * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
1616         src/libs/libgroff/color.cpp: Include lib.h.
1618 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
1620         * PROBLEMS: Update documentation for problems with Sun C++ 5.0
1621         through Forte 6u1, and for how to get GNU make on Solaris.
1623 2004-05-24  Werner LEMBERG  <wl@gnu.org>
1625         * PROBLEMS: Document problems with gcc 3.4.0 on Sun.  Reported
1626         by Paul Eggert.
1628 2004-05-15  Keith Marshall  <keith.d.marshall@ntlworld.com>
1630         * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
1631         rule.
1633 2005-05-14  Werner LEMBERG  <wl@gnu.org>
1635         * REVISION: Set to 2.
1637         * aclocal.m4 (GROFF_STDINT_H): Removed.
1638         (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
1640         * configure.ac: Updated.
1641         * configure, src/include/config.hin: Regenerated.
1643         * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
1644         inttypes.h conditionally.
1646 2003-05-13  Werner LEMBERG  <wl@gnu.org>
1648 Version 1.19.1 released
1649 =======================
1651 2004-05-10  Stephen Gildea  <http://www.gildea.com/stephen>
1653         * src/preproc/refer/label.y (same_author_last_name,
1654         same_author_name): Handle empty sort keys.
1656 2004-05-10  Werner LEMBERG  <wl@gnu.org>
1658         * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
1659         tmac/TODO: Updated.
1661         * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
1662         doc-str-Lb-librt): Reset font.
1663         (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
1664         Provide `doc-str-Lb' to reset font.
1665         * tmac/groff_mdoc.man: Updated.
1667 2004-05-08  Jan Schaumann  <jschauma@netmeister.org>
1669         * src/preproc/html/pre-html.cpp (make_message): Make it work for
1670         snprintf versions which don't conform to ANSI C 99 (this is,
1671         counting the string's trailing null byte in the return value).
1673 2004-05-07  Keith Marshall  <keith.d.marshall@ntlworld.com>
1675         * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
1676         that all implementations of sprintf handle null pointers correctly.
1678 2004-05-04  Werner LEMBERG  <wl@gnu.org>
1680         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1681         Document `.U' register.
1683         * src/roff/troff/env.cpp (environment::mark_last_line)
1684         [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
1686 2004-05-04  Larry Kollar  <kollar@alltel.net>
1688         New read-only register `.U'; it returns 1 in safer mode and 0
1689         otherwise.
1691         * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
1692         register.
1694 2004-05-03  Werner LEMBERG  <wl@gnu.org>
1696         * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
1698 2004-04-17  Werner LEMBERG  <wl@gnu.org>
1700         * src/include/font.h (font): Use `int' for ch_index.
1701         * src/libs/libgroff/font.cpp (font::alloc_ch_index,
1702         font::compact): Updated.
1704         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
1705         warnings.
1707         * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
1708         (hyphen_word): Fix compiler warnings.
1709         * src/roff/troff/input.cpp (get_char_for_escape_name): Return
1710         `char'.
1711         Update all callers.
1712         (get_delim_number, get_line_arg): Change second argument type to
1713         `unsigned char'.
1714         (macro_header::copy, token::next, do_define_string,
1715         do_define_character, substring_request, asciify_macro,
1716         unformat_macro, read_size, non_interpreted_node::interpret,
1717         while_request, main: Fix compiler warnings.
1718         (read_color_draw_node): Initialize `col'.
1720         * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
1721         `start_col' and `end_col' of type `int'.
1722         (vertical_rule): Make `col' of type `int'.
1724         * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
1725         for EOF.
1727         * src/preproc/refer/label.y (uppercase_array, lowercase_array):
1728         New arrays.
1729         (format_serial): Use them to remove dependency on ASCII.
1731         * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
1732         compiler warning.
1733         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1734         Ditto.
1736         * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
1737         compiler warnings.
1738         (glyph): Change type of `hpos' to `int'.
1740         * src/devices/lbp/lbp.cpp (strsep): Removed.  Unused.
1741         * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
1743         * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
1745         * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
1747 2004-04-16  Werner LEMBERG  <wl@gnu.org>
1749         * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
1750         src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
1751         src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
1752         `double' instead of `float' everywhere.
1753         * src/preproc/grn/main.cpp: Use `double' instead of `float'
1754         everywhere.
1755         (main): Add return value.
1756         * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
1757         everywhere.
1758         Update all user functions.
1760         * src/include/search.h, src/include/ptable.h, src/include/printer.h,
1761         src/preproc/eqn/box.h, src/preproc/pic/object.h,
1762         src/preproc/refer/refer.h, src/preproc/tbl/table.h,
1763         src/preproc/tbl/table.cpp, src/roff/troff/env.h,
1764         src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
1765         src/roff/troff/input.cpp, src/roff/troff/request.h,
1766         src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
1767         declarations.
1769         * src/utils/indxbib/signal.c: Include stdlib.h.
1771 2004-04-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
1773         * tmac/s.tmac (@init, RP): Allow initialization of the PO register
1774         before the first page.
1776 2004-04-14  Thomas Klausner  <wiz@netbsd.org>
1778         * tmac/doc-common (doc-volume-as-*): Use lowercase names.
1779         (doc-operating-system-*): Updated.
1780         * tmac/doc-syms (doc-str-St-*): Various small fixes.
1781         (doc-str-Lb-*): Add more library names.
1783 2004-04-10  Art Haas  <ahaas@airmail.net>
1785         * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
1786         use anonymous type.
1788 2004-04-09  Art Haas  <ahaas@airmail.net>
1790         * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
1792 2004-04-09  Keith Marshall  <keith.d.marshall@ntlworld.com>
1794         * arch/misc/shdeps.sh: Generate better comment for sed script.
1796 2004-04-08  Art Haas  <ahaas@airmail.net>
1798         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
1799         src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
1800         src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
1801         src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
1802         (polyfill), src/preproc/grn/main.cpp (polyfill),
1803         src/preproc/refer/command.cpp (command_table),
1804         src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
1805         gcc 3.5 doesn't like).
1807 2004-04-08  Werner LEMBERG  <wl@gnu.org>
1809         Removing many compiler warnings.  groff should now compile with
1810         a C++ compiler used for C files also.  [Simple variable renamings
1811         to avoid shadowing aren't logged in detail.]
1813         * src/devices/grodvi/dvi.cpp: Some local variable renamings.
1814         (draw_dvi_printer::draw) ['c']: Enclose in block.
1816         * src/devices/grohtml/post-html.cpp: Some local variable renamings.
1817         (page::add_line): Fix typos.
1818         * src/devices/grohtml/html-text.cpp: Some local variable renamings.
1820         * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
1821         Some local variable renamings.
1822         * src/devices/grolbp/lbp.h: Some local variable renamings.
1824         * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
1825         variable renamings.
1827         * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
1828         Remove redundant local variable declaration.
1829         * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
1830         Don't use `caddr_t' but `void *'.
1831         Enclose functions with `extern "C"' for C++.
1833         * src/libs/libdriver/input.cpp (remember_filename,
1834         remember_source_filename): Use cast for string constant.
1836         * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
1837         src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
1838         src/libs/libgroff/geometry.cpp: Some local variable renamings.
1839         * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
1840         style.
1841         Enclose functions with `extern "C"' for C++.
1842         * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
1843         (needs_quoting): Return `int'.
1844         (quote_arg): Add proper casts to malloc and realloc.
1845         * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
1846         various MS Windows environments.
1847         (spawnvp_wrapper): Add proper cast to malloc.
1849         * src/preproc/eqn/box.h: Remove redundant declarations of
1850         `make_script_box', `make_mark_box' and `make_lineup_box'.
1851         * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
1852         * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
1853         variable renamings.
1855         * src/preproc/grn/hpoint.cpp: Some local variable renamings.
1856         * src/preproc/grn/hgraph.cpp: Some local variable renamings.
1857         (dx, dy): Renamed functions to...
1858         (deltax, deltay): This.
1859         * src/preproc/grn/main.cpp: Some local variable renamings.
1860         (deffont): Add `const'.
1861         (initpic, conv): Use cast for string constant.
1863         * src/preproc/html/pre-html.cpp: Some local variable renamings.
1864         (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
1865         (char_buffer::run_output_filter): Second argument is unused.
1866         * src/preproc/html/pushback.cpp: Some local variable renamings.
1868         * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
1869         * src/preproc/pic/object.cpp: Some local variable renamings.
1871         * src/preproc/refer/label.y (lookup_label): Remove redundant
1872         declaration of local variable.
1874         * src/preproc/soelim.cpp: Remove redundant declaration of
1875         `interpret_lf_args'.
1877         * src/preproc/tbl/main.cpp: Some local variable renamings.
1879         * src/roff/groff/groff.cpp (main): Use cast for string constant.
1880         * src/roff/groff/pipeline.c: Enclose declarations of `error',
1881         `c_fatal', and `i_to_a' with `extern "C"' for C++.
1882         Don't use C++-style comments.
1884         * src/roff/troff/env.h: Remove redundant declaration of `title'.
1885         * src/roff/troff/node.h, src/roff/troff/env.cpp,
1886         src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
1887         renamings.
1888         * src/roff/troff/div.h: Remove redundant declaration of
1889         `end_diversions'.
1890         * src/roff/troff/troff.h: Remove redundant declaration of
1891         `cleanup_and_exit'
1892         * src/roff/troff/input.cpp: Remove redundant declaration of
1893         `handle_first_page_transition' and `process_input_stack'.
1895         * src/utils/hpftodit.cpp: Some local variable renamings.
1897         * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
1898         for C++.
1899         Don't define RETSIGTYPE.
1900         * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
1902         * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
1903         (error): Use `const' in argument.
1904         (main): Remove redundant declaration of `optind'.
1905         Move declaration of `Version_string' to top-level.
1907         * PROBLEMS: Document difficulties compiling signal.c if a C++
1908         compiler is used for C.
1910 2004-04-07  Werner LEMBERG  <wl@gnu.org>
1912         * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
1914 2004-04-06  Keith Marshall  <keith.d.marshall@ntlworld.com>
1916         Make scripts like nroff.sh and neqn.sh portable across various
1917         (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
1918         non-POSIX path separators.  The idea is to extend those scripts to
1919         decide at run-time (of the script) which path separator to use.
1921         * arch/misc/Makefile.sub: New file.
1922         * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
1923         This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
1924         a proper definition of the variable `GROFF_RUNTIME'.
1926         * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
1927         (MDEFINES): Add SH_DEPS_SED_SCRIPT.
1928         (PROGDEPDIRS): New variable.
1929         `FORCE' it.
1930         (PROGDIRS): Add PROGDEPDIRS.
1932         * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
1933         Don't substitute @SEP@ and @BINDIR@.
1934         * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
1935         (PATH): Use GROFF_RUNTIME.
1937         * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
1938         Don't substitute @SEP@ and @BINDIR@.
1939         * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
1940         (PATH): Use GROFF_RUNTIME.
1942 2004-04-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
1944         * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
1945         Cygwin which doesn't handle stderr correctly.
1947 2004-03-08  Werner LEMBERG  <wl@gnu.org>
1949         * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
1950         against empty argument.  Problem reported by <cgd@broadcom.com>.
1952 2004-03-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
1954         * Makefile.in (SEP): Replaced with...
1955         (RT_SEP, SH_SEP): Separators for the target platform's native path
1956         separator and the build environment, respectively.
1957         (fontpath, tmacpath): Use RT_SEP.
1958         (MDEFINES): Updated.
1960         * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1961         * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1962         * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
1963         * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
1965 2004-03-05  Werner LEMBERG  <wl@gnu.org>
1967         * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200.  This helps to
1968         reduce alignment problems with newer printers which use built-in
1969         TrueType fonts (instead of the older Intellifonts).  The ideal
1970         solution is to provide a second set of groff metric files, but this
1971         is extremely time-consuming to produce, given that HP's metric
1972         files are very rudimentary.
1974 2004-03-01  Werner LEMBERG  <wl@gnu.org>
1976         * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
1977         s/operand/argument/ in error message.
1979 2004-03-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
1981         * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
1982         is in use.
1984 2004-03-01  Antti Kantee  <pooka@netbsd.org>
1986         * tmac/s.tmac (XE): Fix error message.
1988 2004-02-27  Jeff Conrad  <jeff_conrad@msn.com>
1990         * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
1991         New macros.
1993         * src/roff/groff/pipeline.c: Declare strcasecmp.
1994         (run_pipeline) [_WIN32]: Use function name variants which don't
1995         start with `_'.
1996         Fix stream handling.
1998 2004-02-27  Keith Marshall  <keith.d.marshall@ntlworld.com>
2000         * src/include/nonposix.h: Fix declaration of `system_shell_name'.
2001         Declare `spawnvp_wrapper' and macro definitions of spawnvp only
2002         for platforms which use the native Win32 runtime libraries.
2003         (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
2005         * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
2006         QUOTE_ARG_REALLOC_ERROR): Fix string.
2008         * src/preproc/html/pre-html.cpp: Remove declaration of
2009         `spawnvp_wrapper'.
2010         Don't use __MINGW32__.
2011         s/DEBUG_FILE/DEBUG_FILE_DIR/.
2012         (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
2013         (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
2014         (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
2015         calls to `set_redirection' and `WAIT'.
2016         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
2017         Fix calls to `set_redirection' and `save_and_redirect'.
2018         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
2019         to `set_redirection' and `save_and_redirect'.
2020         (usage): Fix message.
2021         (makeTempFiles, main): Use `DEBUG_FILE'.
2023 2004-02-21  Werner LEMBERG  <wl@gnu.org>
2025         * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
2027 2004-02-21  Keith Marshall  <keith.d.marshall@ntlworld.com>
2029         * src/libs/libgroff/quotearg.c: New file, providing proper argument
2030         quoting for MSVC's spawn* and exec* functions.
2031         * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
2032         spawnvp with proper quoting for MSVC.
2034         * src/libs/libgroff/assert.cpp (program_name),
2035         src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
2036         * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
2038         * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
2040         * src/include/error.h (program_name): Declare as `extern "C"'.
2041         * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
2043 2004-02-21  Jeff Conrad  <jeff_conrad@msn.com>
2045         * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
2046         spawnvp_wrapper.
2047         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
2049 2004-02-20  Jeff Conrad  <jeff_conrad@msn.com>
2051         * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
2052         variable.
2053         (sbasename) [__MSDOS__ || ...]: New function.
2054         (system_shell_name) [__MSDOS__ || ...]: Use a different, more
2055         generic algorithm.
2056         (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
2057         (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
2058         of XXX.
2059         Use STDOUT_FILENO instead of hardcoded file handle.
2060         (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
2062 2004-02-19  Werner LEMBERG  <wl@gnu.org>
2064         * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
2065         avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
2067 2004-02-18  Werner LEMBERG  <wl@gnu.org>
2069         * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
2070         new font and mapping files.
2072 2004-02-18  Jeff Conrad  <jeff_conrad@msn.com>
2073             Keith Marshall  <keith.d.marshall@ntlworld.com>
2075         * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
2076         an input pipe.  This is needed for the MSVC compiler to make troff's
2077         `-o' option work.
2079         * src/roff/troff/div.cpp: Include nonposix.h.
2080         (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
2082 2004-02-17  Werner LEMBERG  <wl@gnu.org>
2084         * font/devlj4/generate/special.awk: New script.
2085         * font/devlj4/generate/Makefile (S): Use special.awk.
2086         * font/devlj4/*: Regenerated, including the following new files:
2087         Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
2088         MS Symbol (SYMBOL), Wingdings (WINGDINGS).
2089         * NEWS: Document new lj4 fonts and revised hpftodit.
2091 2004-02-17  Paco Andrés Verdú  <pandres@dragonet.es>
2093         * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
2095 2004-01-25  Werner LEMBERG  <wl@gnu.org>
2097         * src/libs/libgroff/progname.cpp: Replaced with...
2098         * src/libs/libgroff/progname.c: New file.
2099         * src/libs/libgroff/Makefile.sub: Updated accordingly.
2101 2004-01-17  Werner LEMBERG  <wl@gnu.org>
2103         * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
2105 2004-01-16  Jeff Conrad  <jeff_conrad@msn.com>
2107         * font/devlj4/generate/wingdings.map,
2108         font/devlj4/generate/symbol.map: Include unnamed glyphs.
2109         Use groff glyph names where possible.
2110         * src/devices/grolj4/lj4_font.man: Minor updates.
2112 2004-01-13  Werner LEMBERG  <wl@gnu.org>
2114         * tmac/www.tmac (DC): Handle TTY devices.
2116         * doc/webpage.ms: Document viewCVS from ffii.org.
2117         * NEWS, README: Updated.
2119         * src/roff/groff/groff.man: Mention lj4_font man page.
2121         * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
2122         variables.
2123         (FONTS): Add SYMBOL and WINGDINGS.
2124         (SYMBOL, WINGDINGS): New targets.
2126 2004-01-13  Jeff Conrad  <jeff_conrad@msn.com>
2128         * src/devices/grolj4/lj4_font.man: New man page.
2129         * src/devices/grolj4/Makefile.sub (MAN5): New variable.
2130         * src/devices/grolj4.man: Mention lj4_font man page.
2132         * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
2133         * src/utils/hpftodit/hpftodit.man: Document it.
2134         (CW): New macro.
2135         Remove details about fonts (which are now in lj4_font.man).
2137         * font/devlj4/generate/symbol.map,
2138         font/devlj4/generate/wingdings.map: New files.
2140 2004-01-12  Werner LEMBERG  <wl@gnu.org>
2142         * README: Mention ffii's viewcvs access.
2144 2004-01-09  Werner LEMBERG  <wl@gnu.org>
2146         * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
2148 2004-01-09  Jeff Conrad  <jeff_conrad@msn.com>
2150         Revert most of the change from 2004-01-03 to better control used
2151         symbol sets.
2153         * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
2154         (text_symbol_sets, special_symbol_sets): New arrays.
2155         (symbol_set_table): New global variable.
2156         (read_symbol_sets): Use search order given in the text_symbol_sets
2157         and special_symbol_sets arrays.  If command line flag -a is not
2158         given, search both arrays.
2159         (output_charset): Require x_height_tag only for command line flag -i.
2161 2004-01-06  Werner LEMBERG  <wl@gnu.org>
2163         Implement string-valued registers \n[.m] and \n[.M] to return the
2164         name of the current drawing and background color, respectively.
2166         * src/roff/troff/symbol.h: Moved to...
2167         * src/include/symbol.h: Here.
2168         Small fixes to make it work outside of the `troff' directory.
2169         * src/roff/troff/symbol.cpp: Moved to...
2170         * src/libs/libgroff/symbol.cpp: Here.
2171         Small fixes to make it work outside of the `troff' directory.
2173         * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
2174         (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
2175         Updated.
2177         * src/include/color.h: Include symbol.h.
2178         (color): Add new field `nm'.
2179         * src/libs/libgroff/color.cpp (color::color): Updated.
2181         * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
2182         src/roff/troff/node.cpp, src/roff/troff/number.cpp,
2183         src/roff/troff/reg.cpp: Don't include symbol.h.
2185         * src/roff/troff/env.cpp: Don't include symbol.h.
2186         (environment::get_glyph_color_string,
2187         environment_get_fill_color_string): New member functions.
2188         (init_env_requests): Handle `.m' and `.M' registers.
2189         * src/roff/troff/input.cpp: Don't include symbol.h.
2190         (default_symbol): Moved to symbol.cpp/symbol.h.
2191         (do_glyph_color, do_fill_color, define_color): Pass symbol name
2192         to color constructor.
2193         * src/roff/troff/env.h: Updated.
2195         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2196         Document new registers.
2198 2004-01-05  Werner LEMBERG  <wl@gnu.org>
2200         * src/roff/troff/node.cpp (space_node::get_breakpoints,
2201         space_node::nbreaks): Protect against zero `next' field.
2203 2004-01-03  Jeff Conrad  <jeff_conrad@msn.com>
2205         In hpftodit, use the symbol sets offered in the TFM.
2207         * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
2208         (symbol_set, text_symbol_sets, special_symbol_sets,
2209         symbol_set_table): Removed.
2210         (get_printcode): Removed.
2211         (read_symbol_sets): Initialize `symbol_set' field with
2212         `NO_SYMBOL_SET'.
2213         Simplify code to just use the `kind' value.
2214         (output_charset): Improve output formatting.
2215         (dump_symbols): Simplified.
2217 2004-01-02  Werner LEMBERG  <wl@gnu.org>
2219         * font/devlj4/generate/text.map: Add more MSL numbers.
2221 2004-01-02  Jeff Conrad  <jeff_conrad@msn.com>
2223         * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
2224         (text_symbol_sets): Add more symbol sets.
2225         (debug_flag): New static variable (moved from `main').
2226         (get_printcode, show_symset): New functions.
2227         (main): Remove `debug_flag'.
2228         (output_charset): Use `show_symset'.
2229         (dump_symbols):  Use `show_symset'.
2230         Print symsets for all glyphs.
2231         (read_map): Actually call `unicode_to_ucode_make' but this time
2232         correctly.
2234 2004-01-01  Werner LEMBERG  <wl@gnu.org>
2236         * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
2237         Fix placement of comments.
2239 2004-01-01  Jeff Conrad  <jeff_conrad@msn.com>
2241         * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
2242         option `-d' is given.
2243         (output_charset): Improve warning messages to give more information.
2244         (dump_symbols): Make information more precise.
2245         (usage): Updated.
2246         (read_map): Don't call unicode_to_ucode_name; the glyph names must
2247         appear as-is and shouldn't be decomposed.
2249 2003-12-31  Werner LEMBERG  <wl@gnu.org>
2251         * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
2252         * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
2253         (FONTS): Add TrueType font families Arial and Times New Roman.
2254         (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
2255         * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
2256         `fl'.
2258 2003-12-31  Jeff Conrad  <jeff_conrad@msn.com>
2260         * test-groff.in (SEP): Quote value.
2261         * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
2262         `tem' to `char*' to avoid deallocation of a pointer to a constant
2263         object which some compilers don't like.
2265 2003-12-31  Werner LEMBERG  <wl@gnu.org>
2267         * font/devlj4/generate (text.map, special.map): Rewritten to work
2268         with the new hpftodit version.
2270 2003-12-30  Jeff Conrad  <jeff_conrad@msn.com>
2272         * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
2273         set and 8bit character code for all glyphs also.
2275 2003-12-30  Werner LEMBERG  <wl@gnu.org>
2277         * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
2279 2003-12-29  Werner LEMBERG  <wl@gnu.org>
2281         More fixes for MSVC compiler.
2283         * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
2284         $(SEP).
2286         * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
2287         STDERR_FILENO) [_MSC_VER]: Define conditionally.
2288         (getpid) [_MSC_VER]: Remove.
2289         Include direct.h and process.h conditionally.
2291         * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
2292         parentheses for a_delete.
2294         * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
2296         * test-groff: Replaced with...
2297         * test-groff.in: This new template to handle path separator
2298         properly.
2300         * configure.ac: Check for direct.h and process.h.
2301         Generate test-groff script.
2302         * configure, src/include/config.hin: Regenerated.
2304 2003-12-28  Werner LEMBERG  <wl@gnu.org>
2306         Add integral extension glyph.
2307         Add new option `-x' to afmtodit to suppress use of built-in AGL.
2309         * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
2311         * font/devps/generate/textmap: Provide entry for `integralex' to
2312         override (old) PUA value of the AGL.
2313         * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
2314         * font/devps/*: Regenerated.
2316         * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
2317         * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
2319 2003-12-27  Werner LEMBERG  <wl@gnu.org>
2321         Add forgotten `coproduct' symbol (already available for DVI).
2323         * font/devhtml/R.proto, font/devps/generate/textmap,
2324         font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
2325         src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
2326         U+2210 (\[coproduct]).
2328 2003-12-26  Jeff Conrad  <jeff_conrad@msn.com>
2330         hpftodit has been extended to handle TrueType metric files and
2331         more glyphs.  See hpftodit.man for more details.
2333         * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h, 
2334         ctype.h, and unicode.h.
2335         s/msl/charcode/ everywhere since we now handle Unicode values also.
2336         (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
2337         Use it where appropriate.
2338         (MULTIPLIER): Replaced with...
2339         (multiplier): New global static variable.
2340         (scale): Updated.
2341         (tag_type): Add more TFM tags.
2342         (tag_name): New array.
2343         (ENUM_TYPE, FLOAT_TYPE): Removed.
2344         (BYTE_TYPE): New value assigned.
2345         (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
2346         (text_symbol_sets, special_symbol_sets): Extended to cover more
2347         sets.
2348         (check_type): Add return value.
2349         (check_units): Add parameters to get ppi and upem values.
2350         Handle TrueType TFM data.
2351         (output_font_name): New function.
2352         (output_charset): Add parameter to handle TFM type.
2353         Handle TrueType TFMs also.
2354         (em_fract): New macro.
2355         (dump_tags): Be much more verbose and handle more tags.
2356         (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
2357         (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
2358         functions.
2359         (read_map): Add parameter to handle TFM type.
2360         Handle both MSL and Unicode mappings.
2361         (main): Add two new command line options `-a' and `-q'.
2362         Updated to make use of new functions.
2363         (usage): Updated.
2365         * src/utils/hpftodit/hpuni.cpp: New file.
2367         * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
2368         Updated.
2370 2003-12-25  Werner LEMBERG  <wl@gnu.org>
2372         * src/include/nonposix.h (read) [_MSC_VER]: Define.
2374 2003-12-24  Werner LEMBERG  <wl@gnu.org>
2376         * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
2377         by Michail Vidiassov <master@iaas.msu.ru>.
2379 2003-12-20  Werner LEMBERG  <wl@gnu.org>
2381         * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
2382         and u0049_0307.
2383         Add missing latin-2 glyphs.
2384         * font/devutf8/R.proto: Add missing latin-2 glyphs.
2386         * tmac/troffrc: Load `composite.tmac' earlier.
2388         * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
2389         u00{53,73}_0327, and u0049_0307.
2390         * tmac/X.tmac: Add u00{47,67}_0306.
2391         * tmac/tty-char.tmac: Use composite glyph names for readability.
2393         * NEWS: Updated.
2395         * src/include/unicode.h: Remove `extern' keywords.
2397 2003-12-20  Nilgün Belma Bugüner  <nilgun@superonline.com>
2399         * tmac/latin5.tmac: New file.
2401 2003-12-19  Werner LEMBERG  <wl@gnu.org>
2403         Add some glyphs needed for Turkish.
2405         * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
2406         and u0049_0307.
2408         * tmac/composite.tmac: Add `,' as a synonym for `ac' accent. 
2409         * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
2410         u00{53,73}_0327, and u0049_0307.
2412 2003-12-18  Werner LEMBERG  <wl@gnu.org>
2414         * src/devices/grops/ps.cc (ps_output::put_float): Revert change
2415         from 2001-10-04.
2416         Remove trailing zeros.
2418 2003-12-17  Werner LEMBERG  <wl@gnu.org>
2420         Make \? transparent to end-of-sentence recognition.
2422         * src/roff/troff/input.cc (non_interpreted_node): Add
2423         `ends_sentence' member function.
2425 2003-12-16  Werner LEMBERG  <wl@gnu.org>
2427         * doc/groff.texinfo: Document `dt' request correctly.
2428         Other minor typographical improvements.
2430 2003-12-10  Michail Vidiassov  <master@iaas.msu.ru>
2432         * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
2434 2003-12-10  Richard Stallman  <rms@gnu.org>
2436         * LICENSE: Better wording.
2438 2003-12-09  Werner LEMBERG  <wl@gnu.org>
2440         * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
2441         * configure, NEWS: Updated.
2443 2003-12-08  Werner LEMBERG  <wl@gnu.org>
2445         * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
2447 2003-12-07  Bernd Warken  <bwarken@mayn.de>
2449         * LICENSE: Updated.
2451 2003-12-07  Werner LEMBERG  <wl@gnu.org>
2453         * INSTALL: Improved.
2455 2003-12-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
2457         Use path separator character of target platform for compiled-in
2458         default paths.
2460         * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
2461         * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
2462         * configure: Regenerated.
2463         * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
2465 2003-12-05  Werner LEMBERG  <wl@gnu.org>
2467         * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
2468         Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
2470 2003-12-04  Bernd Warken  <bwarken@mayn.de>
2472         * LICENSE: New file.
2474 2003-12-03  Werner LEMBERG  <wl@gnu.org>
2476         * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
2477         ligatures present in AFM files since groff currently only
2478         understands some standard ligatures and nothing else.
2480 2003-12-03  Jeff Conrad  <jeff_conrad@msn.com>
2482         * src/roff/groff/groff.cpp (main): Don't run the spooler if
2483         option -v is given.
2485         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
2486         messages.
2487         Close stdout copy.
2488         Don't use Unix wait flags.
2490 2003-12-02  Werner LEMBERG  <wl@gnu.org>
2492         * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
2493         src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
2494         src/roff/troff/uniuni.cpp: Moved to...
2495         * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
2496         src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
2497         src/libs/libgroff/uniuni.cpp: Here.
2499         * src/include/Makefile.sub.old (HDRS),
2500         src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
2501         src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
2503 2003-12-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
2505         * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
2506         `DEBUG_FILE'.
2507         Updated all users.
2509 2003-12-01  Werner LEMBERG  <wl@gnu.org>
2511         * groff.texinfo: Document special behaviour of `.vs 0'.
2512         Improve documentation of `cflags' request.
2513         * NEWS: Updated.
2515 2003-11-29  Werner LEMBERG  <wl@gnu.org>
2517         * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
2518         * font/devlj4/CORONET: Regenerated.
2520 2003-11-24  Werner LEMBERG  <wl@gnu.org>
2522         * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
2523         if processing hyphenation patterns in traditional mode.
2524         Improve error messages.
2526 2003-11-20  Werner LEMBERG  <wl@gnu.org>
2528         * src/roff/troff/node.cpp (troff_output_file::put_char_width,
2529         troff_output_file::put_char): Fix type of local variable `c'.
2531 2003-11-19  Werner LEMBERG  <wl@gnu.org>
2533         * src/roff/groff/pipeline.c (P): Removed.  Updated all function
2534         declarations.
2535         (i_to_a): Removed.  libgroff already provides this function.
2536         (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
2538 2003-11-18  Keith Marshall  <keith.d.marshall@ntlworld.com>
2540         * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
2541         HAVE_DECL_SYS_LIST.
2543 2003-11-17  Werner LEMBERG  <wl@gnu.org>
2545         * COPYING: Use correct version.
2547 2003-11-11  Werner LEMBERG  <wl@gnu.org>
2549         LynxOS 4.0.0 doesn't declare vfprintf.
2551         * configure.ac: Check for vfprintf.
2552         * configure: Regenerated.
2553         * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
2554         * src/include/config.hin: Regenerated.
2556 2003-11-10  Werner LEMBERG  <wl@gnu.org>
2558         LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
2560         * configure.ac: Check for vsnprintf.
2561         * configure: Regenerated.
2562         * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
2563         `HAVE_VSNPRINTF'.
2564         * src/include/config.hin: Regenerated.
2566 2003-11-09  Werner LEMBERG  <wl@gnu.org>
2568         * aclocal.m4: Updated syntax to autoconf 2.59.
2569         (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
2570         Don't check for gsos2.
2571         (GROFF_SRCDIR, GROFF_BUILDDIR): Removed.  autoconf 2.59 provides
2572         working abs_top_srcdir and abs_top_builddir.
2574         * configure.ac: Updated syntax to autoconf 2.59.
2575         Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
2576         Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
2577         * configure: Regenerated.
2579         * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
2580         s/@groff_top_builddir@/@abs_top_builddir@/.
2582         * src/roff/groff/pipeline.c (xstrsignal):
2583         s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
2585 2003-11-07  Werner LEMBERG  <wl@gnu.org>
2587         * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
2588         make start angle smaller than end angle to circumvent a bug in tpic
2589         handling of some versions of dvipdfm (and dvipdfmx).
2591 2003-10-30  Werner LEMBERG  <wl@gnu.org>
2593         * src/devices/grops/grops.man: Improve section on creating EPS.
2595 2003-10-29  Werner LEMBERG  <wl@gnu.org>
2597         * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
2598         -P-pletter).
2600 2003-10-28  Werner LEMBERG  <wl@gnu.org>
2602         * doc/groff.texinfo: Fix documentation of `.if'.
2604 2003-10-27  Michail Vidiassov  <master@iaas.msu.ru>
2606         * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
2607         the form `uniXXXX' also.
2609 2003-10-27  Werner LEMBERG  <wl@gnu.org>
2611         * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
2612         contrib/pic2graph/pic2graph.sh: Implement secure management of
2613         temporary files.
2614         Pass `-P-pletter' to groff to avoid data outside of the converted
2615         area -- some versions of `convert' (for example 5.3.8) don't check
2616         the bounding box of the image but always use a fixed image size
2617         (letter paper format).
2618         * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
2619         contrib/pic2graph/pic2graph.man: Updated.
2621         * src/roff/groff/groff.man: Document $TMP and $TEMP.
2623 2003-10-26  Werner LEMBERG  <wl@gnu.org>
2625         * src/preproc/pic/troff.cpp (troff_output::simple_circle,
2626         troff_output::simple_ellipse, troff_output::simple_arc,
2627         troff_output::simple_line, troff_output::simple_spline,
2628         troff_output::simple_polygon): Insert a space before arguments.
2629         (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
2630         latter doesn't produce a node, so the following `.sp -1' would do
2631         the wrong thing.
2632         Don't emit `.sp -1' after \M.  This also doesn't produce a token
2633         (and we don't have to care about compatibility mode).
2634         (troff_output::set_color, troff_output::reset_color): Don't emit
2635         `.sp -1' after \M and \m.
2637         * src/roff/troff/input.cpp (old_have_input): New global variable.
2638         (input_stack::get): Handle `old_have_input'.
2639         (process_input_stack) <token::TOKEN_NEWLINE>: Call
2640         `trapping_blank_line' depending on `old_have_input', not
2641         `have_input'.
2643 2003-10-20  Keith Marshall  <keith.d.marshall@ntlworld.com>
2645         * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
2646         (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
2647         default directory names for temporary files.
2648         [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
2650         * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
2651         [__MSDOS__] (run_pipeline): Honour environment variables.
2652         Don't use `tmpnam' but `tempnam' to work around messy
2653         implementation.
2655         * README.MinGW: New file.
2657 2003-10-16  Werner LEMBERG  <wl@gnu.org>
2659         * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
2660         `(*t)->next' without testing validity of `*t'.
2661         (usage): Make it more readable.
2663 2003-10-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
2665         Make html device run under both MS-DOS and Win32.
2667         * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
2668         MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
2669         spawn or fork+exec has to be used, and whether parent must sleep
2670         until the child process terminates.  Used in
2671         `char_buffer::run_output_filter'.
2672         (copyofstdoutfd): Removed.
2673         (char_buffer): Replace `write_file_html' and `write_file_troff'
2674         member functions with `emit_troff_output' and `run_output_filter'.
2675         (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
2676         macros.
2677         (replaceFd): Replaced with...
2678         (set_redirection): New auxiliary function.
2679         (waitForChild): Replaced with...
2680         (save_and_redirect): New auxiliary function for.
2682         (char_buffer::do_html, char_buffer::do_image): Simplified, using new
2683         functions.
2685 2003-10-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
2687         * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
2688         (GROFF_LIBC): New function.
2689         * configure.ac: Call GROFF_LIBC.
2690         Check for `kill'.
2691         * configure: Regenerated.
2693         * src/include/lib.h: Handle __MINGW32__.
2694         * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
2695         Add macro for `pipe'.
2696         Define P_tmpdir.
2698         * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
2699         correctly.
2701         * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
2702         Implement.
2704 2003-10-13  Werner LEMBERG  <wl@gnu.org>
2706         Finally fix change 2003-08-26, based on ideas from Chuck Silvers
2707         <chuq@chuq.com>.
2709         * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
2710         directory.
2712 2003-10-12  Werner LEMBERG  <wl@gnu.org>
2714         * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
2715         src/roff/troff/input.cc (usage): Updated.
2717         * NEWS, doc/groff.texinfo: Updated.
2719 2003-10-12  Peter Miller  <millerp@canb.auug.org.au>
2721         * src/libs/libgroff/searchpath.cpp
2722         (search_path::open_file_cautious): New function which also handles
2723         `-' as stdin and stdout depending on the access mode.
2724         * src/include/searchpath.h (search_path): Updated.
2726         * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
2727         * src/devices/grops/ps.h: Include `searchpath.h'.
2728         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
2729         Open resource file with `include_search_path.open_file_cautious'.
2730         * src/devices/grops/grops.man: Document new `-I' switch.
2732         * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
2733         (main), src/devices/grolj4/lj4.cpp (main),
2734         src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
2736         * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
2737         Replaced with...
2738         (include_search_path): New global variable.
2739         (include_path_append): Removed.
2740         (main): Use `include_search_path.command_line_dir' to handle `-I'.
2741         (do_file): Simplify, using new
2742         `include_search_path.open_file_cautious'.
2744         * src/roff/groff/groff.cpp (print_commands): Accept file handle as
2745         parameter.
2746         (main): Pass arguments to `-I' to both troff and devices.
2747         Improve handling of `-V'.
2748         * src/roff/groff/groff.man: Document changes to -I and -V.
2750         * src/roff/troff/input.cpp (include_search_path): New global
2751         variable.
2752         (next_file, source, ps_bbox_request, transparent_file,
2753         process_input_file): Use new
2754         `include_search_path.open_file_cautious'.
2755         (main) Handle `-I' switch.
2756         * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
2757         Use new `include_search_path.open_file_cautious'.
2758         * src/roff/troff/node.h: New extern symbol `include_search_path'.
2759         * src/roff/troff/troff.man: Document new `-I' switch.
2761 2003-09-15  Ruslan Ermilov  <ru@FreeBSD.org>
2763         Support multiple calls of .Lb in LIBRARY section.
2765         * tmac/doc-common (doc-in-library-section): New register.
2766         (doc-section-library): New string.
2767         (Sh): Set `doc-in-library-section'.
2768         (Rd): Updated.
2769         * tmac/doc-syms (Lb): Insert breaks before and after arguments
2770         if in LIBRARY section.
2771         * tmac/doc.tmac (doc-save-global-vars): Updated.
2772         * NEWS, tmac/groff_mdoc.man: Updated.
2774 2003-09-14  Ruslan Ermilov  <ru@FreeBSD.org>
2776         * tmac/doc-common (doc-default-operating-system): New variable.
2777         (Os): Use it.
2779 2003-09-08  Werner LEMBERG  <wl@gnu.org>
2781         * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
2783 2003-08-31  Werner LEMBERG  <wl@gnu.org>
2785         * contrib/mom/Makefile.sub: Fix last change to make it really work.
2786         * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
2787         (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
2788         $(DEVFILES) are not empty.
2789         * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
2791 2003-08-26  Chuck Silvers  <chuq@chuq.com>
2793         * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
2794         with parallel runs of `make'.
2796 2003-08-23  Stephen Gildea  <http://www.gildea.com/stephen>
2798         * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
2799         insert SORT_SEP.  With certain combinations of sort specifications,
2800         refer sorted entries in the wrong order.  In particular, entries
2801         with a missing field should be be sorted before all entries that
2802         have that field, before refer looks to the next field.
2804 2003-08-23  Werner LEMBERG  <wl@gnu.org>
2806         * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
2807         g++ linker is used.  Reported by Mark J. Reed
2808         <mark.reed@turner.com>.
2810 2003-08-16  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
2812         Add key character `x' to tbl which makes tbl call a user-defined
2813         macro on a table cell.
2815         * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
2816         * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
2817         `set_modifier' after printing the compatibility request.
2818         (set_modifier): Print call to `m->macro' if not empty.
2819         * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
2820         `macro'.
2821         (process_format): Implement cases `x' and `X'.
2822         * src/preproc/tbl/tbl.man, NEWS: Updated.
2824 2003-08-15  Werner LEMBERG  <wl@gnu.org>
2826         * doc/groff.texinfo: Minor fixes.
2828 2003-08-09  Werner LEMBERG  <wl@gnu.org>
2830         * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
2832 2003-08-07  Werner LEMBERG  <wl@gnu.org>
2834         * doc/Makefile.sub: Not all shells expand wildcards in the `for'
2835         argument list to nothing if there is no file to match.  Use `ls' as
2836         a protection, similar to autoconf.
2838         * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
2839         empty argument lists.
2841         * doc/groff.texinfo: Improve documentation how vertical spacing
2842         and line breaks interact.
2843         Other minor fixes.
2845         * tmac/www.tmac: Initialize `www-htmlimage-gap'.
2847 2003-08-03  Werner LEMBERG  <wl@gnu.org>
2849         * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
2850         EPS (using eps2eps or similar programs to compute the bounding box).
2852 2003-07-24  Werner LEMBERG  <wl@gnu.org>
2854         * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
2855         * doc/texinfo.tex: Updated from texinfo 4.6.
2856         * README.CVS: From now on we need texinfo 4.6.
2858 2003-07-23  Werner LEMBERG  <wl@gnu.org>
2860         Add requests `dei1' and `ami1' for completeness.
2862         * src/roff/troff/input.cc (calling_mode): Remove
2863         CALLING_DISABLE_COMP.
2864         (comp_mode): New enumeration.
2865         (do_define_string, define_string, define_nocomp_string,
2866         append_string, append_nocomp_string): Updated.
2867         (do_define_macro): Add third parameter.
2868         (define_macro, define_nocomp_macro, define_indirect_macro,
2869         append_macro, append_nocomp_macro, append_indirect_macro): Updated.
2870         (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
2871         functions.
2872         (ignore): Updated.
2873         (init_input_requests): Add `dei1' and `ami1'.
2875         * tmac/trace.tmac: Handle de1 and am1.
2876         (de): Improve tracing message.
2877         (am): Add missing `do'.
2878         (return): Use de1.
2880         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2881         Document new requests.
2883 2003-07-22  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
2885         Add option -G to .MPIMG to insert a gap between text and the image.
2887         * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
2888         www-finish-left-ll): Updated.
2889         (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
2890         (MPIMG): Make option -L and -R optional.
2891         Implement option -G.
2893 2003-07-22  Gaius Mulley  <gaius@glam.ac.uk>
2895         * src/devices/grohtml/post-html.cpp
2896         (html_printer::do_file_components): Don't use `stdout' as lvalue
2897         since it can be a macro.
2899 2003-07-22  Werner LEMBERG  <wl@gnu.org>
2901         * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
2902         the corresponding test in aclocal.m4.
2904 2003-07-21  Werner LEMBERG  <wl@gnu.org>
2906         * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
2907         names but RGB values directly.  Otherwise pnmtopng depends on
2908         an external file `rgb.txt' which maps colour names to values.
2910 2003-07-20  Werner LEMBERG  <wl@gnu.org>
2912         * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
2913         * configure, src/include/config.hin: Regenerated.
2915         * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
2917 2003-07-19  Werner LEMBERG  <wl@gnu.org>
2919         * PROBLEMS: Add solution for UTF-8 problem with hyphens.
2921 2003-07-18  Werner LEMBERG  <wl@gnu.org>
2923         * *.man: Switch to non-compatibility mode temporarily if GNU
2924         syntax extensions are used in the particular man page.
2926         * PROBLEMS: Add solutions for SGR problems.
2928 2003-07-17  Werner LEMBERG  <wl@gnu.org>
2930         Don't ignore grotty's command line options if \X'tty: sgr ...' is
2931         used to change the drawing scheme.
2933         * src/devives/grotty/tty.cpp (bold_flag_option,
2934         underline_flag_option, italic_flag_option, reverse_flag_option,
2935         bold_underline_mode_option): New global variables.
2936         (update_options): New function.
2937         (tty_printer::special): Call update_options.
2938         (main): Don't set xxx_flag but xxx_flag_option, then call
2939         update_options.
2941 2003-07-14  Werner LEMBERG  <wl@gnu.org>
2943         Make grotty emit proper Unicode box drawing characters for -Tutf8.
2945         * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
2946         values.
2947         (hline_char, vline_char): New global variables.
2948         (tty_printer::tty_printer): Initialize them.
2949         (tty_printer::draw): Emit START_LINE and END_LINE flags for both
2950         horizontal and vertical lines.
2951         (crossings): New global array.
2952         (tty_printer::end_page): Use it to determine the proper crossing
2953         character for -Tutf8.
2955 2003-07-12  Werner LEMBERG  <wl@gnu.org>
2957         * doc/Makefilesub (HTMLDOCFILESALL): New macro.
2958         (HTMLDOCFILES): Revert to `pic.html'.
2959         (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
2961 2003-07-11  Werner LEMBERG  <wl@gnu.org>
2963         * doc/pic.ms: Improve documentation of absolute coordinates.
2964         Document absolute positioning of pictures.
2966         * NEWS: Add new pic capability.
2968 2003-07-09  Hartmut Henkel  <hartmut_henkel@gmx.de>
2970         * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
2971         Rewritten.
2973 2003-07-07  Werner LEMBERG  <wl@gnu.org>
2975         Implement support for dashed and dotted ellipses in pic.  Based on
2976         a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
2978         * src/preproc/pic/common.cpp (common_output::ellipse_arc,
2979         common_output::dashed_ellipse, common_output::dotted_ellipse): New
2980         functions.  Ellipse arcs are approximated with circle arcs.
2981         * src/preproc/pic/common.h (common_output): Updated.
2982         * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
2983         functions.
2984         * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
2986         * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
2988 2003-07-06  Werner LEMBERG  <wl@gnu.org>
2990         Make grotty work on platforms which have unsigned char as the
2991         default for char.  Based on a patch by Thomas Klausner
2992         <wiz@netbsd.org>.
2994         * src/devices/grotty/tty.cpp (schar): New typedef.
2995         Updated calls to declare_ptable and implement_ptable.
2996         (glyph): Use schar for back_color_idx and fore_color_idx.
2997         (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
2998         (tty_printer::tty_color, tty_printer::tty_printer,
2999         tty_printer::color_to_idx, tty_printer::put_color): Updated.
3001 2003-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
3003         * src/roff/nroff/nroff.sh: Add option -d for completeness.
3004         * src/roff/nroff/nroff.man: Updated.
3006 2003-07-05  Werner LEMBERG  <wl@gnu.org>
3008         * NEWS, tmac/groff_www.man: Updated.
3009         * doc/Makefile.sub: Updated.
3011 2003-07-05  Gaius Mulley  <gaius@glam.ac.uk>
3013         Implement support for multiple HTML output files.
3015         * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
3016         -j command line option.
3018         * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
3019         global variables.
3020         (file): New fields `new_output_file', `require_links',
3021         `output_file_name'.
3022         (file::file): Updated.
3023         (files::set_file_name, files::set_links_required,
3024         files::are_links_required, files::is_new_output_file,
3025         files::file_name, files::next_file_name): New functions.
3026         (header_desc): New fields `no_of_level_one_headings',
3027         `header_filename'.
3028         (header_desc::header_desc): Updated.
3029         (header_desc::write_headings): Handle multiple files.
3030         (html_printer::write_header): Save file name in which header occurs.
3031         (html_printer::determine_header_level): Possibly split files on
3032         level one headings.
3033         (html_printer::do_links, html_printer::troff_tag): Updated.
3034         (html_printer::insert_split_file, html_printer::do_job_name,
3035         html_printer::emit_link, html_printer::write_navigation,
3036         html_printer::do_file_components): New functions.
3037         (html_printer::~html_printer): Handle multiple files.
3038         (main): Handle command line option `-j'.
3040         * src/devices/grohtml/grohtml.man: Updated.
3042         * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
3043         which splits file.
3045         * tmac/www.tmac (JOBNAME): New macro.
3046         * tmac/s.tmac (SH-NO-TAG): New macro.
3047         (@SH): Call SH-NO-TAG.
3048         (@NH): Updated.
3050 2003-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
3052         * tmac/groff_mdoc.man: Improve documentation of punctuation
3053         characters.
3055 2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>
3057         * tmac/doc.tmac (Bd): Change to doc-Li-font later.
3059 2003-07-03  Werner LEMBERG  <wl@gnu.org>
3061         * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
3063 2003-07-01  Ruslan Ermilov  <ru@FreeBSD.org>
3065         * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
3066         after `/*' and `*/'.
3067         Fix spacing.
3068         (Fn, Fo): Reduce indentation in synopsis.
3070         * tmac/doc-common (doc-check-depth): New macro.
3071         (doc-end-macro, Sh, Ss): Use it.
3072         (Cd): Fix behaviour in synopsis.
3073         (In): Make it parsed and callable.
3074         If not in the synopsis, represent the C header file enclosed in
3075         angle brackets.
3076         (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
3077         Use minus, not hyphen.
3079         * tmc/groff_mdoc.man: Updated.
3081 2003-07-01  Werner LEMBERG  <wl@gnu.org>
3083         Integrated grap2graph, contributed by Eric S. Raymond.
3085         * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
3086         New files.
3087         * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
3088         contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
3090 2003-07-01  Colin Watson  <cjwatson@debian.org>
3092         * src/xditview/*.c: Add prototypes, fix return types, add includes.
3093         Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
3095 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
3097         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
3099 2003-06-31  Werner LEMBERG  <wl@gnu.org>
3101         * doc/Makefile.sub (CLEANADD): Remove all files created by
3102         running `make groff.{pdf,dvi}'.
3104         * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
3105         src/xditview also.
3107 2003-06-30  Werner LEMBERG  <wl@gnu.org>
3109         * Makefile.in (SHELL): Define as @SHELL@.
3110         (mkinstalldirs): Use $(SHELL).
3111         (MDEFINES): Add $(SHELL).
3112         * Makefile.comm (SHELL): Removed.
3114 2003-06-29  Werner LEMBERG  <wl@gnu.org>
3116         * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
3117         The X11 documentation files use them.
3118         * tmac/groff_ms.man, doc/groff.texinfo: Document them.
3120 2003-06-15  Robert Goulding  <goulding@Princeton.EDU>
3122         * tmac/e.tmac (@C): Handle .ad also.
3124 2003-06-12  Werner LEMBERG  <wl@gnu.org>
3126         * src/preproc/tbl/tbl.man: Document formatting of text blocks.
3128         * src/roff/troff/input.cc (token::next) <handle_escape_char>:
3129         Assign `n' even here.  It is possible to construct a node
3130         immediately following an escape character:
3132           .di xx
3133           \?\\\?a
3134           .br
3135           .di
3136           .xx
3138 2003-06-10  Werner LEMBERG  <wl@gnu.org>
3140         * README.WIN32: Removed.
3141         * MANIFEST: Updated.
3143 2003-06-07  Werner LEMBERG  <wl@gnu.org>
3145         * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
3147 2003-06-05  Werner LEMBERG  <wl@gnu.org>
3149         * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
3150         in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
3152 2003-06-03  Werner LEMBERG  <wl@gnu.org>
3154         * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
3155         is done by the calling function.
3157 2003-05-22  Ruslan Ermilov  <ru@FreeBSD.org>
3159         * tmac/X.tmac: Fix definition of `em'.
3161 2003-05-22  Werner LEMBERG  <wl@gnu.org>
3163         * src/roff/troff/input.cc (return_macro_request): Fix detection of
3164         argument.
3166 2003-05-18  Werner LEMBERG  <wl@gnu.org>
3168         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
3169         to make items work which consist only of a tag.
3171 2003-05-17  Werner LEMBERG  <wl@gnu.org>
3173         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
3174         aren't stretched in a tag (this can fail with unformatted boxes).
3175         Instead, insert a break and go back one line.
3177 2003-05-16  Werner LEMBERG  <wl@gnu.org>
3179         * src/roff/troff/input.cc (return_macro_request): If called with
3180         argument pop macro twice.  We need this to trace `return'.
3182         * tmac/trace.tmac: Handle `return'.
3183         Fix typos.
3185         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3186         Document.
3188 2003-05-15  Larry Kollar  <kollar@alltel.net>
3190         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
3191         registers `FPS', `FVS', and `FPD'.
3193 2003-05-15  Werner LEMBERG  <wl@gnu.org>
3195         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
3196         correctly.
3198 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
3200         * tmac/groff_mdoc.man: Slight improvements.
3202 2003-05-03  Werner LEMBERG  <wl@gnu.org>
3204         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
3205         `doc-header-space' after header line if register `cR' is set.
3207 2003-05-02  Werner LEMBERG  <wl@gnu.org>
3209         * TODO: Updated.
3211 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
3213         * tmac/doc-common (Nd): Use \[em].
3215 2003-05-01  Werner LEMBERG  <wl@gnu.org>
3217         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
3218         doc-footer-space): Initialize to 0.5i.
3219         (doc-setup-page-layout): Don't set doc-header-space and
3220         doc-footer-space.
3222 2003-04-30  Werner LEMBERG  <wl@gnu.org>
3224         * REVISION: Set to 1.
3226         * doc/pic.ms: Document possible problems with `figname'.
3228 2003-04-29  Werner LEMBERG  <wl@gnu.org>
3230 Version 1.19 released
3231 =====================
3233         * VERSION: Set to 1.19.
3234         * REVISION: Set to 0.
3235         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
3237         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
3238         Define charset as `US-ASCII' in html output.
3240         * tmac/www.tmac (ULE): Add missing scaling indicator.
3242         * win32-diffs: Removed.
3244 2003-04-28  Werner LEMBERG  <wl@gnu.org>
3246         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
3247         `.da' and `.boxa'.
3248         Document how to insert discardable whitespace with `.ss'.
3250 2003-04-27  Werner LEMBERG  <wl@gnu.org>
3252         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
3253         work with plain TeX also.
3255         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
3257 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
3259         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
3260         Use a loose DTD.
3262 2003-04-24  Werner LEMBERG  <wl@gnu.org>
3264         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
3265         vbox with positive height and zero depth if in TeX mode.
3267         * NEWS: Document glyph name changes for grodvi and grolj4.
3269 2003-04-23  Werner LEMBERG  <wl@gnu.org>
3271         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
3272         * doc/pic.ms: Fixed.
3274 2003-04-21  Werner LEMBERG  <wl@gnu.org>
3276         HP-UX 10.20 has `snprintf' but it isn't declared.
3278         * configure.ac: Add declaration test for snprintf.
3279         * configure: Regenerated.
3280         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
3281         * src/include/config.hin: Regenerated.
3283 2003-04-19  Werner LEMBERG  <wl@gnu.org>
3285         Add keyword `figname' to pic, specifying the name of the picture
3286         box in TeX mode.  Based on a patch from William J Poser
3287         <wjposer@unagi.cis.upenn.edu>.
3289         * src/preproc/pic/pic.y: New token `FIGNAME'.
3290         (macro_name): New rule of type <str>.
3291         (placeless_element): Handle `FIGNAME'.
3292         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
3293         * src/preproc/pic/main.cpp (graphname): New global variable.
3294         (do_picture): Initialize `graphname'.
3295         * src/preproc/pic/pic.h: Updated.
3296         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
3297         `graphname'.
3298         Simplify TeX code.
3299         (tex_output::text): Beautify output.
3300         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
3301         `shaded' and `outlined' unconditionally.
3302         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
3303         Minor improvements.
3305         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
3306         greater is necessary.
3308 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
3310         Add option -r to soelim to avoid emission of `.lf' lines.
3311         Add option -t to produces TeX comment lines instead of `.lf' lines.
3313         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
3314         and `tex_flag'.
3315         (usage): Updated.
3316         (main): Handle `-r' and `-t'.
3317         (set_location): Handle `raw_flag' and `tex_flag'.
3318         * src/preproc/soelim/soelim.man, NEWS: Updated.
3320 2003-04-17  Werner LEMBERG  <wl@gnu.org>
3322         * tmac/hyphenex.sh: Replaced with...
3323         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
3324         nightmares.
3326         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
3327         if --quiet is used for the configure script.
3328         * configure: Regenerated.
3330 2003-04-16  Werner LEMBERG  <wl@gnu.org>
3332         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
3333         Add `const' to second argument.
3334         (html_printer::add_table_end): Add `const' to argument.
3335         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
3336         `const' to arguments.
3337         * src/devices/grohtml/html-text.h: Updated.
3339         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
3340         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
3341         argument.
3343         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
3344         cast for integer constant.
3346         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
3347         (writeNbytes): Add `const' to first argument.
3348         (writeString): Add `const' to argument.
3349         (char_buffer::can_see): Add `const' to third argument.
3350         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
3351         `const' to argument.
3352         * src/preproc/html/pushback.h: Updated.
3354         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
3355         (include_path_append): Add `const' to argument.
3356         (do_file): Updated.
3358         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
3359         for `value'.
3360         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
3361         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
3362         for `value'.
3363         (unicode_decompose_init::unicode_decompose_init): Updated.
3364         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
3365         for `value'.
3366         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
3367         * src/roff/troff/input.cc (process_startup_file): Add `const' to
3368         argument.
3370         * tmac/hyphenex.sh: Make script more portable by using a here
3371         document.
3373 2003-04-15  Werner LEMBERG  <wl@gnu.org>
3375         Renamed all `*.cc' files to `*.cpp'.
3376         Updated all configuration files, makefiles, and documentation.
3378 2003-04-14  Werner LEMBERG  <wl@gnu.org>
3380         * tmac/hyphenex.sh: Slight improvements.
3382 2003-04-13  Werner LEMBERG  <wl@gnu.org>
3384         * font/devascii/R.proto, font/devcp1037/R.proto,
3385         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
3386         character slots with unnamed glyphs.
3388         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
3389         (an-first): New global variable.
3390         (an-header): Emit vertical space between multiple man pages.
3392 2003-04-11  Werner LEMBERG  <wl@gnu.org>
3394         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
3395         values.
3397 2003-04-10  Werner LEMBERG  <wl@gnu.org>
3399         * PROBLEMS: Revised.
3401 2003-04-10  Bernd Warken  <bwarken@mayn.de>
3403         * doc/webpage.ms: Improved.
3405 2003-04-09  Werner LEMBERG  <wl@gnu.org>
3407         Add register \n[.height] which returns the value of \H.
3408         Add register \n[.slant] which returns the value of \S.
3410         * src/roff/troff/env.cc (init_env_requests): Implement.
3411         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3412         Document.
3414 2003-04-08  Werner LEMBERG  <wl@gnu.org>
3416         * tmac/html.tmac: Move some of the data into html-end.tmac.
3417         Remove most of the character translations for eqn since html fonts
3418         now cover those characters.
3419         Load www.tmac.
3420         * tmac/html-end.tmac: New file.
3421         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
3422         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
3423         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
3425 2003-04-07  Werner LEMBERG  <wl@gnu.org>
3427         * man/groff_out.man: Document negative values of `N' if -Thtml is
3428         used.
3430 2003-04-06  Werner LEMBERG  <wl@gnu.org>
3432         * Makefile.comm (depend.temp): Check location of YTABC.
3434 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3436         * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
3437         binary path.
3438         (groff_bin_path): Rename to GROFF_BIN_PATH.
3439         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3440         * doc/Makefile.in (TROFFBIN): New variable for troff
3441         binary path.
3442         (GROFFBIN): New variable for groff binary path.
3443         (groff_bin_path): Rename to GROFF_BIN_PATH.
3444         (TROFF): Use TROFFBIN.
3445         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3446         * doc/Makefile.sub (GROFFBIN): New variable for groff
3447         binary path.
3448         (groff_bin_path): Rename to GROFF_BIN_PATH.
3449         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3451         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
3452         with INSTALL_SCRIPT.
3453         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
3454         * Makefile.dev (all): Depend on DEVSCRIPTS.
3455         (install_dev): Likewise.
3456         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
3457         scripts.
3458         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
3459         (DEVGENSCRIPTS): New variable to hold generated scripts.
3461 2003-04-05  Werner LEMBERG  <wl@gnu.org>
3463         * src/libs/libdriver/input.cc (IntArray::operator[],
3464         IntArray::get_data): Remove meaningless `const' in return value.
3466         * README.CVS: New file.
3468 2003-04-04  Werner LEMBERG  <wl@gnu.org>
3470         Check for stdint.h in C++, not in C.
3472         * aclocal.m4 (GROFF_STDINT_H): New function,
3473         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
3474         AC_CHECK_HEADERS.
3475         * configure, src/include/config.hin: Regenerated.
3476         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
3479         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
3480         with a negative value, representing the width of the unbreakable
3481         space (only for -Thtml).  grohtml then converts this back to
3482         &nbsp; and uses the value of N as its width.
3484         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3485         unbreakable_space_node::tprint): Emit `N-<width>'.
3486         * src/include/printer.h (printer::set_numbered_char): Make it
3487         virtual.
3488         Make members `font_table' and `nfonts' protected instead of private.
3489         * src/devices/grohtml/post-html.cc
3490         (html_printer::set_numbered_char): New member function.
3493         * src/libs/libgroff/maxfilename.cc:
3494         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
3496         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
3497         emit word marker.
3499 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
3501         * man/roff.man: Small fixes.
3503 2003-04-03  Werner LEMBERG  <wl@gnu.org>
3505         Make groff independent from locale's numeric settings.
3507         * configure.ac: Check for `setlocale'.
3508         * configure, src/include/config.hin: Regenerated.
3510         * src/include/lib.h: Handle HAVE_SETLOCALE.
3512         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
3513         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
3514         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
3517         * doc/groff.texinfo: Change dir category to `Typesetting'.
3518         (Man font macros): Mention that there is no space between arguments
3519         of .BI and friends.
3521         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
3522         (*printer::change_color, *printer::change_fill_color): Add missing
3523         `const'.
3525 2003-04-02  Werner LEMBERG  <wl@gnu.org>
3527         * src/devices/grohtml/html-table.cc (html_table::emit_col,
3528         html_table::is_gap): Compute table widths after converting border
3529         positions to avoid rounding errors.
3531 2003-04-01  Werner LEMBERG  <wl@gnu.org>
3533         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
3534         `space_emitted' properly.
3536 2003-03-31  Werner LEMBERG  <wl@gnu.org>
3538         * src/devices/grohtml/html-table.cc: Fix column width calculation.
3539         (html_table::set_linelength): Don't add 1.
3540         (html_table::add_indent): Don't subtract 1.
3542         * tmac/html.tmac: Set default page offset to zero.
3544 2003-03-30  Werner LEMBERG  <wl@gnu.org>
3546         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
3548         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3549         unbreakable_space_node::tprint): New functions.
3550         (troff_output_file): Make space_char_hmotion_mode::tprint and
3551         unbreakable_space_node::tprint to friends.
3552         * src/roff/troff/node.h: Updated.
3554         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
3555         in the HTML standard).
3557 2003-03-29  Werner LEMBERG  <wl@gnu.org>
3559         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
3560         Otherwise, the following code
3562           .di xxx
3563           .ps 10
3564           a
3565           .br
3566           .di
3567           x\*[xxx]
3569         produces `x a' instead of `xa'.  This is a temporary fix, disabling
3570         font changes in diversions for -Thtml.
3572         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
3573         `HTML-TAG'.
3574         (an-do-tag-html): Merge with ...
3575         (an-do-tag): This macro.
3576         Change code slightly to circumvent grohtml bug.
3577         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
3579         * src/devices/grohtml/html-table.cc (html_table::emit_col,
3580         html_table::is_gap): Round `width' properly.
3582         * tmac/html.tmac: Provide some default layout parameters for
3583         grohtml.
3585         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
3586         command.
3588 2003-03-28  Werner LEMBERG  <wl@gnu.org>
3590         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
3592 2003-03-27  Werner LEMBERG  <wl@gnu.org>
3594         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
3595         defined.
3597 2003-03-20  Werner LEMBERG  <wl@gnu.org>
3599         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
3600         `.vs'.
3601         * doc/groff.texinfo: Updated.
3603 2003-03-19  Werner LEMBERG  <wl@gnu.org>
3605         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
3606         TOKEN_END_TRAP>: Reset `have_input'.
3608 2003-03-18  Werner LEMBERG  <wl@gnu.org>
3610         * src/roff/groff/groff.man: Mention groff_trace man page.
3612 2003-03-16  Werner LEMBERG  <wl@gnu.org>
3614         * Makefile.in (LIBEXT): New variable to indicate the file extension
3615         of library files.  Computed heuristically from $(OBJEXT).
3616         (MDEFINES): Add $(LIBEXT).
3617         * Makefile.lib, Makefile.comm: Use it.
3619         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
3620         overlong lines into smaller chunks.
3621         (get_binary): New function.
3622         (main): Use them.
3623         * src/utils/pfbtops/pfbtops.man: Updated.
3625 2003-03-15  Colin Watson  <cjwatson@debian.org>
3627         * src/roff/groff/groff.man: Minor syntax fix.
3629 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
3631         * src/devices/grops/ps.cc (ps_printer::media_set,
3632         ps_printer::~ps_printer): Handle zero paper width and length.
3634 2003-03-13  Werner LEMBERG  <wl@gnu.org>
3636         Add options -p and -l to grodvi.
3638         * src/devices/grodvi/dvi.cc: Include paper.h.
3639         (landscape_flag, user_paper_length, user_paper_width): New global
3640         variables.
3641         (dvi_printer::begin_page): Emit `papersize' special.
3642         Set color after initialization of `cur_h' and `cur_v'.
3643         (main): Add options `-l' and `-p'.
3644         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
3645         * src/devices/grodvi/grodvi.man, NEWS: Updated.
3647         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
3649 2003-03-12  Werner LEMBERG  <wl@gnu.org>
3651         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
3652         * man/groff_tmac.man: This man page.
3653         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
3654         deprecated.
3656         * tmac/X.tmac: Don't load pspic.tmac.
3658 2003-03-11  Werner LEMBERG  <wl@gnu.org>
3660         Make variable `pr' local to libdriver/input.cc.  Based on a patch
3661         by Bernd Warken <bwarken@mayn.de>.
3663         * src/include/driver.h (pr): Removed.
3665         * src/libs/libdriver/input.cc (pr): New global variable.
3666         (do_file): Deallocate `pr'.
3667         * src/libs/libdriver/printer.cc (pr): Removed.
3669         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
3670         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
3671         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
3672         (main): Don't delete `pr'.
3674 2003-03-10  Werner LEMBERG  <wl@gnu.org>
3676         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
3677         * tmac/papersize.tmac: New file.
3678         * tmac/troffrc: Include `papersize.tmac'.
3679         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
3680         * tmac/an-old.tmac: Set LT to LL by default.
3682         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
3683         doc/groff.texinfo: Updated.
3685         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
3686         bug which caused all odd iso papers to have wrong dimensions.
3688         * src/devices/grops/ps.cc (user_paper_width): New global variable.
3689         (main) <'p'>: Set `user_paper_width' also.
3690         (ps_printer::media_width, ps_printer::media_height): Use values
3691         given with option `-p'.
3693 2003-03-09  Werner LEMBERG  <wl@gnu.org>
3695         * src/include/nonposix.h: Provide default for SET_BINARY.
3697         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
3698         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
3699         unconditionally.
3701         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
3702         (main): Treat \r\n as \n.
3704 2003-03-08  Werner LEMBERG  <wl@gnu.org>
3706         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
3707         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
3709 2003-03-07  Werner LEMBERG  <wl@gnu.org>
3711         Added support to access more than 256 glyphs in Type 1 fonts.
3713         * src/devices/grops/ps.cc (subencoding): New structure.
3714         (style): Add `sub' field.
3715         Updated all users.
3716         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
3717         Add `set_subencoding', `get_subfont' and `encode_subfont' member
3718         functions.
3719         Updated all users.
3720         (ps_printer::set_char): Use `set_subencoding'.
3721         (make_subencoding_name): New function.
3722         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
3723         (ps_printer::~ps_printer): Emit subencoding definitions.
3725         * src/devices/grops/psrm.cc (valid_input_table): New array to
3726         properly support EBCDIC.
3727         (white_space): Add `\f'.
3728         (ps_get_line): Change first argument to be of type `string &'.
3729         Updated all callers.
3730         This allows to get lines of arbitrary length.
3731         Use `valid_input_table'.
3732         Remove warning about non-conforming PS line length.  This seems
3733         not to be of great importance -- for example, dvips don't emit
3734         a warning either.
3735         (PS_LINE_MAX): Removed.
3736         (matches_comment): Change first argument to be of type `string &'.
3738         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
3740         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
3741         %AGL_to_unicode, %default_ligatures): New hash tables.
3742         Read all map entries.
3743         Add unencoded characters.
3744         Check for default ligatures if there are no `L' entries.
3745         Print all kern entries.
3746         Print all characters in charset.
3747         * src/utils/afmtodit/afmtodit.man: Updated.
3749         * font/devps/*: Regerated all fonts.
3751         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
3752         of characters, just use `.trin'.  Otherwise the mapping depends
3753         on the font encoding.
3754         * tmac/ps.tmac: Add `fi' and `fl'.
3755         Improve `Fi' and `Fl'.
3756         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
3757         * tmac/Xps.tmac: Fix `em'.
3759         * NEWS: Updated.
3761 2003-03-04  Werner LEMBERG  <wl@gnu.org>
3763         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
3764         `have_input'.
3766 2003-03-03  Werner LEMBERG  <wl@gnu.org>
3768         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
3770         * font/devps/generate/textmap: Remove entry `similarequal'.
3771         * font/devps/symbolmap: Updated.
3773 2003-03-02  Werner LEMBERG  <wl@gnu.org>
3775         * src/libs/libgroff/font.cc (font::load): Fix error message for
3776         bad character type.
3778         * src/devices/grops/grops.man: Improve documentation of the -b
3779         flag.
3781         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
3782         `ascii' and `cp1047'.
3784 2003-03-01  Werner LEMBERG  <wl@gnu.org>
3786         Document composite glyphs and the `composite' request.
3788         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
3790 2003-02-28  Werner LEMBERG  <wl@gnu.org>
3792         * font/devdvi/generate/ec.map: Add some more Unicode entities.
3793         * font/devdvi/*EC: Updated.
3795         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
3796         * tmac/latin1 (latin1-tr): Undo any previous mapping.
3797         * tmac/troffrc: Load `composite.tmac'.
3798         * tmac/Makefile.sub (NORMALFILES): Updated.
3800         * doc/groff.texinfo (Input Encodings): New section.
3801         * NEWS: Updated.
3803 2003-02-27  Werner LEMBERG  <wl@gnu.org>
3805         * doc/texinfo.tex: New version 2003-02-11.06.
3807         * tmac/doc-common (Dt): Don't emit warning for unknown section.
3808         * tmac/groff_mdoc.man: Fix description of `Dt'.
3810 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
3812         * font/devps/prologue.ps: Fix for included Postscript that does
3813         a setpagedevice -- which is now safely ignored.
3815         * NEWS: Updated.
3817         * src/devices/grops/ps.cc: Now sets the page size in the generated
3818         document.  This is done in two ways: Via a %%-comment for gv and
3819         the like, and via a PageSize and setpagedevice for programs that
3820         understands Postscript proper, like ps2pdf.
3822         * src/devices/grops/ps.h: New broken-flag to avoid page size
3823         definition, if required.
3825         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
3827         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
3828         Not really necessary due to the fix in prologue.ps, but cleaner:
3829         Such information does not belong in an .eps file.
3831         * doc/Makefile.sub: See doc/Makefile.in.
3833 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
3835         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
3836         instead of P1 since the latter is broken in some versions of netpbm.
3837         * configure: Updated.
3839 2003-02-26  Larry Kollar  <kollar@alltel.net>
3841         Make man pages more customizable.
3843         * tmac/an-old.tmac (FT): New register holding footer distance from
3844         bottom.
3845         (HF): New string holding the default heading font.
3846         (TH): Handle registers `IN' and `SN' set on the command line.
3847         Use `FT'.
3848         (PT, BT): New strings to customize header and footer lines.
3849         (an-header, an-footer): Use them.
3850         (SH, SS): Use `HF'.
3851         * tmac/groff_man.man: Document changes.
3853         * doc/groff.texinfo: Document man changes.
3854         Document Ultrix extensions of man.
3856 2003-02-26  Werner LEMBERG  <wl@gnu.org>
3858         * src/roff/troff/input.cc (do_width, do_if_request): Reset
3859         `have_input' after changing back to old environment.
3861         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
3862         function up to be defined before first call.  This is necessary to
3863         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
3865         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
3866         the default font directory also.  Based on a patch from James
3867         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
3868         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
3869         * src/utils/afmtodit/afmtodit.man: Document it.
3871         * NEWS: Updated.
3873         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
3875 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
3877         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
3878         (GROFF_PNMTOPS_NOSETPAGE): New macro.
3879         * configure.ac: Use it.
3880         * configure: Regenerated.
3881         * Makefile.in: Updated.
3883         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
3884         (CLEANADD): Add www.tmac-sed.
3885         (pnmtops_nosetpage): Define default.
3886         (install_data): Handle www.tmac-sed and substitute
3887         @PNMTOPS_NOSETPAGE@.
3888         (stamp-sed): Add www.tmac.
3889         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
3890         It now breaks URLs at suitable places.
3891         (www:substring_ok): New register set by...
3892         (www:@test_substring): New macro.
3893         (www:error): New alias to www-error.
3894         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
3895         New macros.
3896         (URL): Use www:url_breaks.
3897         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
3898         (CDS, CDE): New macros.
3900 2003-02-25  Werner LEMBERG  <wl@gnu.org>
3902         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
3903         buffer overflow.
3905 2003-02-24  Werner LEMBERG  <wl@gnu.org>
3907         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
3908         can be negative also.
3910         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
3911         `int16'.
3912         (read_char_table): Avoid negative ascenders.
3913         (output_charset): Add cast.
3914         * font/devlj4/*: Regenerated.
3916         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
3917         possible.
3919         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
3920         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
3921         of `<>'.
3922         * font/devdvi/*: Regenerated.
3924         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
3925         normal width, while the previously used characters (U+2329 and
3926         U+232A) are classified as wide due to canonical equivalence with the
3927         CJK punctuation characters U+3008 and U+3009.
3929         * font/devutf8/R.proto: Updated.
3930         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
3932         * man/groff_char.man: Simplify handling of table traps by
3933         introducing `start block' and `end block' macros.
3934         (Ns, Ne, 2s, 2e, Ds, De): New macros.
3935         (DL): Make it work with Unix troff also.
3936         Fix code values of `la' and `ra'.
3938         * tmac/dvi.tmac: Define `<>' for CW and CWI.
3940 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
3942         * src/devices/grohtml/post-html.cc (element_list::~element_list):
3943         New destructor, fixing a major memory leak.
3945 2003-02-22  Werner LEMBERG  <wl@gnu.org>
3947         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
3948         to be in conformance with Unicode 3.0 and newer.
3950         * font/devlj4/generate/text.map: Add `Eu'.
3951         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
3952         * font/devlj4/S: Regenerated.
3954         * man/groff_char.man: Completely rewritten.
3956         * doc/groff.texinfo: Fix description of request and macro arguments.
3958 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
3960         Valgrind fixes.
3962         * src/devices/grohtml/html-table.cc (html_table::~html_table):
3963         Deallocate `columns' list.
3964         * src/devices/grohtml/post-html.cc (char_block::~char_block):
3965         New destructor.
3966         (text_glob::text_glob_html, text_glob::text_glob_special,
3967         text_glob::text_glob_line, text_glob::text_glob_auto_image,
3968         text_glob::text_glob_tag): Avoid memory leaks.
3969         (text_glob::remember_table): Free memory before reassigning.
3971 2003-02-19  Werner LEMBERG  <wl@gnu.org>
3973         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
3974         alias `hbar'), the Planck constant over two pi.
3976         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
3977         `+e' for position 34.
3978         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
3979         `u2662' and `u2661'.
3980         * font/devdvi/{MI,S}: Regenerated.
3981         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
3982         * font/devlbp/*: Add `hbar' alias.
3983         * font/devlj4/generate/special.map: Ditto.
3984         * font/devlj4/S: Regenerated.
3985         * font/devps/generate/symbolchars: Add `+e'.
3986         * font/devps/generate/textmap: Fix PS name for `-h'.
3987         Add `hbar' alias.
3988         * font/devps/symbolmap: Regenerated.
3990         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
3992         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
3993         `-h', `hbar'.
3994         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
3995         `-h'.
3997         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
3998         `hbar'.
3999         * tmac/tty-char.tmac: Add `+e'.
4001 2003-02-17  Werner LEMBERG  <wl@gnu.org>
4003         Another round trying to really fix problems with `have_input'.
4005         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
4006         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
4008         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
4009         handling if both foreground and background colors are default.
4011         * doc/groff.texinfo (Debugging): Document .lf differences to
4012         AT&T troff.
4014 2003-02-16  Werner LEMBERG  <wl@gnu.org>
4016         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
4017         null-bytes in created string.
4019         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
4020         alias_macro, lookup_request): Improve warning messages.
4022         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
4023         not `strdup'.
4024         Free `last_image_filename'.
4026         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
4027         `buffer'.
4028         (imageList::createPage, imageList::createImage): Use `free', not
4029         `a_delete'.
4030         (imageItem::~imageItem): Free `imageName'.
4031         (addRegDef): Use `strsave', not `strdup'.
4032         (get_resolution): Free `pathp'.
4034 2003-02-15  Werner LEMBERG  <wl@gnu.org>
4036         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
4037         to `dummy'.
4039 2003-02-14  Werner LEMBERG  <wl@gnu.org>
4041         Add memory management for colors to deallocate unnamed colors
4042         properly.
4044         * src/include/color.h (color): New members `free_list' and `next'.
4045         New member functions `new' and `delete'.
4046         Add destructor.
4047         * src/libs/libgroff/color.cc: Implement it.
4049         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
4050         for array size of new operator.
4052         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
4053         redundant comparison.
4055         * src/roff/troff/input.cc (word_space_node::reread,
4056         hmotion_node::reread): Avoid warning about unused parameter.
4057         (reset_output_registers): Remove redundant parameter.
4058         (define_color): Undo change 2003-02-12.
4060         * src/roff/troff/reg.h: Updated.
4062         * src/roff/troff/node.cc (troff_output_file::really_print_line,
4063         output_file::put_filename, real_output_file::really_put_filename,
4064         ascii_output_file::really_print_line,
4065         break_char_node::get_hyphen_list): Avoid warning about unused
4066         parameter.
4067         (suppress_node::tprint): Updated.
4069         * configure.ac: Check declaration for rand() and srand().
4070         * configure: Regenerated.
4072         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
4073         conditionally.
4074         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
4075         and srand().
4077         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
4078         to avoid compiler warnings.
4080         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
4081         unused.
4083         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
4084         is unused.
4085         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
4086         (unused) parameter.
4087         Updated all callers.
4089         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
4090         is unused.
4091         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
4092         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
4094         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
4095         Parameter is unused.
4096         (html_printer::add_table_end): Define parameter conditionally.
4097         * src/devices/grohtml/output.cc (simple_output::special): Parameter
4098         is unused.
4100         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
4101         (lbp_printer::set_char): Last parameter is unused.
4103         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
4105 2003-02-13  Werner LEMBERG  <wl@gnu.org>
4107         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
4108         Make \D'f ...' move horizontally again for backwards compatibility.
4109         Replace it with \D'Fg ...' where appropriate to avoid dependency
4110         on horizontal resolution.
4112         * src/roff/troff/input.cc (do_get_long_name): New function.
4113         (get_long_name): Call it.
4115         (read_draw_node): Handle `\D'Fx ...' by calling ...
4116         (read_color_draw_node): New function.
4118         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
4119         `end'.
4120         Pass it to `do_get_long_name' which is used instead of
4121         `get_long_name'.
4123         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
4124         unnecessary value guard.
4125         (parse_D_command) <'f'>: Add horizontal shift.
4127         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
4128         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
4129         (FILL_MAX): Removed.
4131         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4132         Updated.
4134 2003-02-12  Werner LEMBERG  <wl@gnu.org>
4136         * src/roff/troff/input.cc (do_name_test, do_expr_test,
4137         do_zero_width): Push `\n' if closing delimiter is missing.
4139         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
4140         <'F'>: Make \F non-transparent at the beginning of line.
4141         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
4142         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
4143         `have_input'.
4145         (define_color): Free color in case of reassignment.
4147         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
4148         @DefescListEnd): Use @Var, not @var.
4149         Fix all calls.
4151         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
4153         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
4154         `shaded' and `outlined' arrays.
4155         (object_spec::object_spec): Initialize `shaded' and `outlined'.
4156         (graphic_object::set_fill_color, graphic_object::set_outline_color):
4157         Use strsave.
4158         (closed_object::set_fill_color): Ditto.
4159         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
4160         instead of strdup.
4161         (troff_output::reset_color): Use a_delete instead of free.
4162         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
4164 2003-02-11  Werner LEMBERG  <wl@gnu.org>
4166         * doc/groff.texinfo: Improve documentation of `ad'.
4167         Document that \D'f...' is dependent on the horizontal resolution.
4168         * man/groff_diff.man: Improve documentation of \D'f...'.
4170         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
4171         compensating \h'...' for \D'f ...' since the latter no longer moves
4172         current position.
4173         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
4175 2003-02-10  Werner LEMBERG  <wl@gnu.org>
4177         Improve error messages for `x F' (and `F') commands.
4179         * src/include/error.h: Add declaration for
4180         `current_source_filename'.
4181         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
4182         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
4183         parameter for source file string.
4184         Updated all callers.
4186         * src/libs/libdriver/input.cc: Add `current_source_filename'.
4187         (remember_source_filename): New function.
4188         (parse_x_command <'F'>, do_file <'F'>): Use it.
4190 2003-02-09  Werner LEMBERG  <wl@gnu.org>
4192         Make grotty not emit warnings about unknown colors more than
4193         necessary.
4195         * src/devices/grotty/tty.cc: Include `ptable.h'.
4196         (TTY_MAX_COLORS): Removed.
4197         (DEFAULT_COLOR_IDX): Defined to -1.
4198         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
4199         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
4200         Change `tty_colors' to be a ptable.
4201         First arg of `put_color' is now `char'.
4202         New functions `make_rgb_string' and `tty_color'.
4203         (tty_printer::tty_printer): Use `tty_color'.
4204         (tty_printer::color_to_idx): Return value is now `char'.
4205         Use `tty_color'.
4207         * src/include/color.h (color): Add `print_color' member function.
4208         * src/libs/libgroff/color.cc (color::print_color): Implement it.
4210 2003-02-08  Werner LEMBERG  <wl@gnu.org>
4212         Valgrind fixes.
4214         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
4215         encoding file.
4217         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
4218         assume that value has been allocated with `new[]', thus use
4219         `a_delete' for deallocation.
4221         * src/libs/libdriver/input.cc (get_integer_arg,
4222         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
4223         where appropriate.
4225         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
4226         * src/libs/libgroff/nametoindex.cc
4227         (character_indexer::named_char_index): Use `new <type>[1]'.
4229         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
4230         <type>[1]'.
4231         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
4232         (split_text): Use `a_delete'.
4234         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
4235         <type>[1]'.
4237         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
4238         harmless memory leak.
4239         (hyphen_trie::read_patterns_file): Initialize `buf'.
4240         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
4241         Initialize `current_fill_color'and `current_glyph_color'.
4242         * src/roff/troff/glyphuni.cc
4243         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
4244         * src/roff/troff/uniuni.cc
4245         (unicode_decompose_init::unicode_decompose_init): Ditto.
4246         * src/roff/troff/uniglyph.cc
4247         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
4249 2003-01-26  Werner LEMBERG  <wl@gnu.org>
4251         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
4252         `access' before calling `unlink'.
4253         (do_file): Handle __EMX__.
4255         * src/include/nonposix.h: Handle __EMX__.
4257         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
4258         (fontpath,tmacpath): Use it.
4259         (MDEFINES): Add it.
4260         Sorted alphabetically.
4262         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
4263         @SEP@.
4264         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
4265         @SEP@.
4267 2003-01-27  Werner LEMBERG  <wl@gnu.org>
4269         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
4270         New files, copied from gnulib.
4271         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
4272         * configure.ac: Updated.
4273         * configure: Regenerated.
4275         * src/include/config.hin: Regenerated.
4276         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
4277         Don't define `strcasecmp' as `strcmp'.
4278         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
4279         Dont define `strncasecmp' as `strncmp'.
4281         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
4282         Removed.
4284 2003-01-26  Werner LEMBERG  <wl@gnu.org>
4286         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
4287         s/unline/unlink/.
4289 2003-01-25  Werner LEMBERG  <wl@gnu.org>
4291         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
4293 2003-01-24  Werner LEMBERG  <wl@gnu.org>
4295         Add US-english hyphenation exceptions (converted from Barbara
4296         Beeton's hyphenation exception log reports which appear irregularly
4297         in TUGBoat).
4299         * tmac/hyphen.us: Updated to latest version.
4300         * tmac/README: Updated.
4301         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
4302         * tmac/troffrc: Load `hyphenex.us'.
4303         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
4304         * doc/groff.texinfo: Updated.
4306 2003-01-23  Werner LEMBERG  <wl@gnu.org>
4308         Improve hyphenation slightly.  This is a first step in redesigning
4309         the hyphenation algorithm to make it more flexible (e.g. allowing
4310         kerns and ligatures between the hyphenation character and the
4311         following character -- while not used normally in English, other
4312         languages like German would benefit).
4314         * src/roff/troff/env.cc (environment::hyphenate_line): Use
4315         assertion instead of if-clause.
4316         Let `get_hyphen_list' return the number of involved characters in
4317         the hyphenation pattern instead of computing it directly (which
4318         often yields too small values).
4319         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
4320         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
4321         parameter.
4323 2003-01-22  Werner LEMBERG  <wl@gnu.org>
4325         Fixing a bug which caused groff to hang if the hyphenation exception
4326         dictionary tried to grow.
4328         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
4329         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
4330         pointer to dictionary.
4332 2003-01-20  Werner LEMBERG  <wl@gnu.org>
4334         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
4335         negative left italic correction.
4336         * src/utils/afmtodit/afmtodit.man: Document it.
4338         * font/devps/generate/Makefile (RFLAG): Add `-m'.
4339         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
4340         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
4342         * NEWS: Updated.
4344 2003-01-16  Werner LEMBERG  <wl@gnu.org>
4346         * NEWS: Updated.
4348 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
4350         * src/preproc/refer/refer.man: Mention REFER environment variable.
4352 2003-01-05  Werner LEMBERG  <wl@gnu.org>
4354         Similar to \[is], the square root glyph (\[sr]) and the square root
4355         extension glyph (\[radicalex]) are now text symbols.  The new
4356         mathematical versions are called \[sqrt] and \[sqrtex],
4357         respectively.
4359         * font/devX*/S: Regenerated.
4360         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
4361         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
4362         * font/devdvi/EX, font/devdvi/S: Regenerated.
4363         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
4364         * font/devlj4/generate/special.map: Add `sqrt'.
4365         * font/devlj4/S: Regenerated.
4366         * font/devps/generate/textmap: Add `sqrt'.
4367         * font/devps/S, font/devps/symbolmap: Regenerated.
4369         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
4370         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
4371         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
4372         overlap horizontally.
4374         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
4375         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
4376         Fix `radicalex'.
4378         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
4379         and `sqrtex' are overlapping glyphs.
4381 2003-01-04  Werner LEMBERG  <wl@gnu.org>
4383         * font/devdvi/generate/texsy.map: Add `is'.
4384         * font/devps/symbolmap: Regenerated.
4385         * font/devdvi/*TC, MI, S: Regenerated.
4387         * tmac/dvi.tmac: Remove `is'.
4389 2003-01-03  Werner LEMBERG  <wl@gnu.org>
4391         `is' is now a text symbol (only relevant for dvi).  The math variant
4392         can be accessed with `integral'.
4394         * font/devX*/S: Regenerated.
4395         * font/devdvi/generate/texex.map: Remove `is'.
4396         * font/devdvi/EX: Updated.
4397         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
4398         * font/devlj4/generate/special.map: Ditto.
4399         * font/devlj4/S: Regenerated.
4400         * font/devps/generate/textmap: Add `integral'.
4401         * font/devps/S: Regenerated.
4403         * tmac/dvi.tmac: Define `is'.
4405         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
4407         * src/preproc/tbl/main.cc (process_format): Fix error message.
4409 2003-01-02  Werner LEMBERG  <wl@gnu.org>
4411         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
4412         * font/devps/textmap: Fix entries for `ne' and `nc'.
4413         * font/devps/symbolmap: Regenerated.
4415         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
4416         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
4417         `38', `58', `78', `-+', `|=', `nc', `ne'.
4419         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
4420         Use `schar' for `aq'.
4421         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
4422         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
4423         * tmac/tty.tmac: Add `ne'.
4425         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
4426         for fallback glyphs.
4428 2002-12-29  Werner LEMBERG  <wl@gnu.org>
4430         Add glyph `|='.
4432         * font/devX*/*: Regenerated.
4433         * font/devdvi/generate/ec.map: Remove `eq'.
4434         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
4435         Assign `|=' to position 39.
4436         * font/devdvi/*EC, S: Regenerated.
4437         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
4438         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
4439         Assign `|=' to position 549.
4440         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
4441         `equalmath'.
4442         Add `uni2243' for `|='.
4444         * tmac/ec.tmac: Add `eq'.
4445         * tmac/dvi.tmac: Add `=~'.
4446         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
4447         `|='.
4449 2002-12-21  Werner LEMBERG  <wl@gnu.org>
4451         * font/devdvi/generate/tc.map: Remove `**'.
4452         * font/devdvi/*TC: Regenerated.
4453         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
4454         `78', `<<', `>>'.
4455         * font/devutf8/NOTES: Updated.
4457         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
4458         Don't give default parameter to `set_macro'.
4459         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
4460         instead of `set_macro'.
4461         (charinfo::setx_macro): Implement it.
4462         (charinfo::set_macro): Don't change `mode'.
4464         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
4465         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
4466         * tmac/dvi.tmac: Define `!=' with `.schar'.
4468 2002-12-20  Werner LEMBERG  <wl@gnu.org>
4470         * font/devX*/S: Regenerated.
4471         * font/devdvi/generate/ec.map: Remove `pl'.
4472         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
4473         * font/devdvi/*{TC,EC}: Regenerated.
4474         * font/devhtml/R.proto: Add `-+'.
4475         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
4476         * font/devlbp/*: Remove `or'.
4477         * font/devlj4/generate/special.map: Remove `or'.
4478         * font/devlj4/S: Regenerated.
4479         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
4480         `seveneighths', `threeeighths'.
4481         Remove `plusmath'.
4482         Replace `minusplus' with `uni2213'.
4483         * font/devps/symbolmap: Regenerated.
4484         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
4485         Add `-+'.
4487         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
4488         function.
4489         * src/roff/troff/node.cc (troff_output_file::put_char_width):
4490         Call glyph_color and fill_color even if tcommand_flag isn't set.
4491         (make_node, node::add_char): Check not ci->is_fallback but
4492         ci->is_normal.
4494         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
4495         * tmac/ec.tmac: Add .rchar entry for `f/'.
4496         Don't remove `12', `14', `34'.
4497         Define `pl' to be always roman.
4498         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
4499         Define `18', `38', `58', `78'.
4500         * tmac/tty.tmac: Add `-+'.
4501         * tmac/dvi.tmac: Define `f/'.
4502         (dvi-frac): Use `f/'.
4503         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
4504         Define `18', `38', `58', `78'.
4506 2002-12-15  Colin Watson  <cjwatson@debian.org>
4508         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
4510 2002-12-10  Werner LEMBERG  <wl@gnu.org>
4512         Add glyph `tno', a textual variant of `no'.
4514         * font/devX*/*: Regenerated.
4515         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
4516         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
4517         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
4518         * font/devdvi/*: Regenerated.
4519         * font/devlbp/*: Add `tno'.
4520         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
4521         * font/devlj4/*: Regenerated.
4522         * font/devps/generate/textmap: Replace `no' with `tno'.
4523         * font/devps/generate/symbolchars: Add `no'.
4524         * font/devps/*: Regenerated.
4526         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
4528         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
4529         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
4531         * NEWS: Updated.
4533         * tmac/dvi.tmac: Replace most `\\' with `\E'.
4534         Add definition for `sd'.
4535         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
4537         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
4539 2002-12-08  Werner LEMBERG  <wl@gnu.org>
4541         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
4542         mode to avoid rounding errors.
4543         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
4545         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
4546         src/roff/troff/troff.man: Improve documentation of -T.
4548 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
4550         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
4551         (run_pipeline) [_WIN32]: Provide working function without `fork'.
4553 2002-12-06  Werner LEMBERG  <wl@gnu.org>
4555         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
4556         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
4557         Scaling Euro.sansserif glyphs down to have the same height as
4558         digits.
4559         Removed unnecessary points; added some extrema.
4561         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4562         Regenerated.
4564 2002-12-04  Werner LEMBERG  <wl@gnu.org>
4566         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
4567         and `Euro.symbol.bold.slanted'.
4568         Improve some glyph offsets and widths.
4569         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4570         Regenerated.
4571         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
4572         typo.
4573         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
4574         direcory.
4576         * tmac/europs.tmac: Updated to new glyph indices.
4577         Use Euro.symbol for font familiy `A'.
4579         * doc/groff.texinfo: Minor improvements.
4581 2002-12-02  Werner LEMBERG  <wl@gnu.org>
4583         * font/devdvi/generate.tc.map: s/%O/%0/.
4584         * font/devdvi/*TC: Regenerated.
4586         * src/roff/troff/div.cc (init_div_requests): Sorted.
4588         * tmac/dvi.tmac: Remove `Ye'.
4589         * tmac/ec.tmac: Remove `Ye'.
4590         Add .rchar entry for `de'.
4592         * man/groff.man, man/groff_diff.man: Document register `.pe'.
4593         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
4594         * NEWS: Updated.
4596 2002-11-30  Werner LEMBERG  <wl@gnu.org>
4598         Add PS font for various Euro glyphs.
4600         * font/devps/generate/freeeuro.sfd: New master font file for
4601         pfaedit.
4602         * font/devps/generate/sfdtopfa.pe: New conversion script for
4603         pfaedit.
4604         * font/devps/generate/Makefile (FONTS): Add `EURO'.
4605         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
4606         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
4607         `freeeuro.sfd'.
4608         * font/devps/EURO: Generated from `freeeuro.afm'.
4609         * font/devps/download: Add `freeuro.pfa'.
4610         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
4611         `freeeuro.pfa'.
4613         * tmac/europs.tmac: New file.
4614         * tmac/ps.tmac: Include `europs.tmac'.
4615         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
4617 2002-11-29  Werner LEMBERG  <wl@gnu.org>
4619         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
4620         * font/devdvi/S: Regenerated.
4621         * font/devhtml/R.proto: Fix `CR' and `ci'.
4622         Add `OK'.
4623         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
4624         Remove `bs'.
4625         * font/devps/symbolmap: Regenerated.
4626         * font/devutf8/R.proto: Fix `CR' and `ci'.
4627         Add `OK'.
4628         * font/devutf8/NOTES: Updated.
4630         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
4631         `ci'.
4632         Add `OK'.
4633         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4635         * tmac/dvi.tmac: Add `lh' and `rh'.
4636         * tmac/Xps.tmac: Fix `lh' and `rh'.
4637         * tmac/X.tmac: Add `OK'.
4638         * tmac/lj4.tmac: Ditto.
4640 2002-11-24  Werner LEMBERG  <wl@gnu.org>
4642         * font/devX*/S: Regenerated.
4643         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
4644         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
4645         * font/devdvi/generate/texsy.map: Remove `or' glyph.
4646         * font/devdvi/S: Regenerated.
4647         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
4648         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
4649         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
4650         `bracketleftbt', `bracketrighttp', `bracketrightex',
4651         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
4652         `braceex', `braceleftex', `bracerightex', `bracerighttp',
4653         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
4654         `rb', and `bv'.
4655         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
4656         * font/devutf8/NOTES: Updated.
4657         * font/devlj4/generate/special.map: Add glyph `braceex'.
4658         * font/devlj4/S: Regenerated.
4660         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
4662 2002-11-14  Werner LEMBERG  <wl@gnu.org>
4664         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
4665         and `vA'.
4666         Fix code for `an'.
4667         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4669         * doc/texinfo.tex: New version from texinfo 4.3.
4670         * doc/groff.texinfo: Updated for texinfo 4.3.
4671         Use @tie{} where appropriate.
4672         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
4673         * font/devdvi/generate/tc.map: Remove `rn'.
4674         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
4675         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
4676         Fix code for `an'.
4677         * font/devX100/*, font/devX100-12/*, font/devX75/*,
4678         font/devX75-12/*: Regenerated.
4680         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
4681         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
4682         Improve definition of `an'.
4683         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
4684         `ru'.
4685         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
4686         * tmac/X.tmac: Add definition for `or'.
4687         * tmac/Xps.tmac: Undo change 2002-11-05.
4688         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
4690 2002-11-11  Werner LEMBERG  <wl@gnu.org>
4692         * src/roff/troff/node.cc (troff_output_file::put_char): Always
4693         call flush_tbuf.
4695 2002-11-10  Werner LEMBERG  <wl@gnu.org>
4697         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
4698         defines a glyph which is searched after the check for fonts declared
4699         with `.special' (and before the check for all mounted special
4700         fonts).  `fschar' defines a glyph for a particular font which is
4701         searched after the check for fonts declared with `.fspecial' (and
4702         before the check for fonts declared with `.special').  `rfschar'
4703         removes glyphs defined with `fschar'.
4705         * src/roff/troff/token.h (char_mode): New enum.
4706         Declare do_define_character.
4707         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
4708         `mode'.
4709         (charinfo::is_fallback): Updated.
4710         (charinfo::is_special): New method.
4711         * src/roff/troff/input.cc (do_define_character): Add and use
4712         optional second parameter used as a prefix for font-specific glyph
4713         names.
4714         (define_character, define_fallback_character): Updated.
4715         (define_special_character): New function.
4716         (init_input_requests): Add `schar'.
4717         (charinfo::charinfo, charinfo::set_macro): Updated.
4718         * src/roff/troff/node.cc: Include `stringclass.h'.
4719         (make_glyph_node): Handle special glyphs defined with `.schar' and
4720         `.fschar'.
4721         (define_font_special_character, remove_font_special_character): New
4722         functions.
4723         (init_node_requests): Sorted.
4724         Add `fschar' and `rfschar'.
4725         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4726         Document new requests.
4728         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
4729         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
4731 2002-11-08  Werner LEMBERG  <wl@gnu.org>
4733         Added new font `SC' (cmtex10) to devdvi.
4735         * devdvi/generate/Makefile (FONTS): Add `SC'.
4736         (SC): New rule.
4737         * devdvi/generate/textex.map: New map file for cmtex.
4738         * devdvi/SC: New.
4739         * devdvi/Makefile.sub (DEVFILES): Updated.
4740         * tmac/dvi.tmac: Add fspecial entries for SC.
4741         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
4742         found before `S' since the font position of `SC' is lower due to the
4743         gaps in DESC's `font' line.
4744         * tmac/ec.tmac: Add a `special' call.
4745         * NEWS: Updated.
4747         * font/devhtml/R.proto: Remove double entry for `ti'.
4748         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
4749         * tmac/tty-char.tmac: Remove entry for `bq'.
4750         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
4751         * tmac/ec.tmac: Don't remove `aq' glyph.
4752         * tmac/X.tmac: Fix entry for `em'.
4753         Add entries for `fo' and `fc'.
4754         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
4756         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
4757         documentation of `special' and `fspecial' requests.
4759 2002-11-05  Werner LEMBERG  <wl@gnu.org>
4761         * font/devascii/R.proto, font/devcp1047/R.proto,
4762         font/devlatin1/R.proto: Remove entry for `.i'.
4763         * font/devdvi/generate/textt.map: Add entry for `ad'.
4764         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
4765         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
4766         We need this for getting kerning values to compose `/l' and `/L'.
4767         * font/devdvi: Regenerated font definition files for CM fonts.
4768         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
4769         * font/devutf8/R.proto: Ditto.
4770         Remove double entry for `ti'.
4772         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
4773         for (groff) ligatures, `la', and `ra'.
4774         Add "'C", "'c", `IJ', and `ij'.
4775         Remove double entry for `ti'.
4776         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
4777         double entries.
4778         Add "'C", "'c", `IJ', and `ij'.
4779         Fix entries for (groff) ligatures, `la', and `ra'.
4781         * tmac/ps.tmac (ps-achar): New macro.
4782         Define "'c" and "'C".
4783         * tmac/tty.tmac: Add entry for `.i'.
4784         * tmac/X.tmac (X-achar): New macro.
4785         Define "'c", "'C", and `:Y'.
4786         Add entries for `IJ' and `ij'.
4787         * tmac/Xps.tmac (Xps-achar): New macro.
4788         Define "'c" and "'C".
4789         Add entries for `IJ' and `ij'.
4790         * tmac/lbp.tmac (lbp-achar): New macro.
4791         Add fallback characters for all groff ligatures and many other
4792         glyphs.
4793         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
4794         Add entries for `/l' and `/L'.
4795         Define "'c" and "'C".
4796         Add entries for `IJ' and `ij'.
4798 2002-11-02  Larry Kollar  <kollar@alltel.net>
4800         * PROBLEMS: Document how to solve Mac OS X compilation problems.
4802 2002-11-02  Werner LEMBERG  <wl@gnu.org>
4804         Adding support for composite glyphs: \[xxx yyy ...] and the
4805         `composite' request.
4807         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
4808         to Unicode-based glyph names.
4809         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
4810         glyph names to groff glyph names.
4811         * src/roff/troff/uniuni.cc: New file for canonically decomposing
4812         Unicode-based glyph names.
4813         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
4814         for handling Unicode glyph names.
4815         * src/roff/troff/input.cc: Include unicode.h.
4816         (composite_glyph_name): New function.
4817         (token::next) <'['>: Handle Unicode glyph names and composite
4818         glyphs.
4819         (composite_dictionary): New dictionary for the `composite' request.
4820         (composite_request): Implement `composite' request.
4821         (init_input_requests): Add `composite'.
4822         Alphabetically sorted.
4823         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
4824         commented out).
4825         (init_env_requests): Alphabetically sorted.
4826         Removed `tas' and `tar' (already commented out).
4827         * src/roff/troff/Makefile.sub: Updated.
4829 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
4831         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
4832         of options.
4834 2002-10-29  Werner LEMBERG  <wl@gnu.org>
4836         Fix computation of .trunc register.  Additionally, its value (and
4837         the value of the .ne register) is now always set before entering the
4838         trap.
4840         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
4841         `needed_space' before calling `space'.
4842         (top_level_diversion::space): Remove special code for 'sp before the
4843         first page.
4844         Call `begin_page' with the discarded space as a parameter.
4845         (top_level_diversion::begin_page): Add optional parameter to set
4846         `truncated_space'.
4847         * src/roff/troff/div.h: Updated.
4849         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
4850         \n[.ne].
4852         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
4853         (LP): Remove superfluous call to `br'.
4854         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
4855         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4857 2002-10-26  Werner LEMBERG  <wl@gnu.org>
4859         * tmac/doc-ditroff: Remove useless switch/variable -rC.
4860         (doc-setup-header): Don't set page register `%'.
4861         * tmac/doc-nroff: Remove variable `C'.
4862         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
4863         (doc-setup-header): Don't set page register `%'.
4864         Don't call `bp'.
4865         * tmac/doc-common (doc-header): Call `ns'.
4866         (doc-paragraph): Protect .sp with .br so that it survives traps
4867         possibly set by the user.
4868         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4870         * tmac/doc*: Replace ' with . for consistency if no effect.
4872 2002-10-26  Werner LEMBERG  <wl@gnu.org>
4874         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
4875         so that it survives traps possibly set by the user.
4877         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
4878         (troff_output_file::set_font): Call flush_tbuf if necessary.
4879         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
4880         flush_tbuf and do_motion only if necessary.
4881         (troff_output_file::start_special,
4882         troff_output_file::put_char_width, troff_output_file::put_char,
4883         troff_output_file::draw): Updated.
4884         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4885         vmotion_node::tprint): Undo change 2002-10-23.
4887 2002-10-25  Werner LEMBERG  <wl@gnu.org>
4889         * tmac/www.tmac (DC): Fix case of overlapping images.
4891 2002-10-23  Werner LEMBERG  <wl@gnu.org>
4893         * src/roff/troff/node.cc (troff_output_file::fill_color,
4894         troff_output_file::glyph_color): Set current color before testing
4895         color_flag.
4896         (troff_output_file::put_char_width, troff_output_file::put_char,
4897         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
4898         before glyph_color.
4899         (troff_output_file::file_color, troff_output_file::glyph_color):
4900         Call do_motion.
4901         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4902         vmotion_node::tprint): Move first, then call fill_color.
4904 2002-10-20  Werner LEMBERG  <wl@gnu.org>
4906         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
4907         possible to use multiple main macro packages.
4909 2002-10-19  Werner LEMBERG  <wl@gnu.org>
4911         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
4912         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
4913         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
4914         is set.
4915         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
4916         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
4918 2002-10-16  Werner LEMBERG  <wl@gnu.org>
4920         * NEWS, doc/webpage.ms: Updated.
4922 2002-10-14  Werner LEMBERG  <wl@gnu.org>
4924         * src/roff/troff/node.cc (troff_output_file::put_char_width,
4925         troff_output_file::put_char, troff_output_file::fill_color,
4926         troff_output_file::glyph_color): Handle case where color pointer
4927         is null.
4929 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
4931         Add the new -r option to grotty.  It is similar to the -i option
4932         except it tells grotty(1) to use the "reverse video" attribute to
4933         render italic fonts.
4935         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
4936         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
4937         (tty_printer::make_underline, tty_printer::put_color,
4938         tty_printer::end_page): Use it.
4939         (main): Add -r switch.
4940         (usage): Updated.
4941         * src/devices/grotty/grotty.man: Document it.
4943 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
4945         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
4946         cast to `unsigned char' to properly read patterns with 8bit
4947         characters.
4949 2002-10-08  Werner LEMBERG  <wl@gnu.org>
4951         * REVISION: Increased to 2.
4953 Version 1.18.1 released
4954 =======================
4956 2002-10-08  Werner LEMBERG  <wl@gnu.org>
4958         * doc/webpage.ms, NEWS: Updated.
4960 2002-10-07  Werner LEMBERG  <wl@gnu.org>
4962         * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
4963         suppress additional whitespace after the header.
4965         * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
4966         with NetBSD.
4968         * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
4970 2002-10-07  Ruslan Ermilov  <ru@FreeBSD.org>
4972         * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
4973         (Dt): Use it to improve language localization (especially Russian
4974         and French).
4976 2002-10-07  Daniel Senderowicz  <daniel@synchrods.com>
4978         * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
4979         * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
4980         drawing commands.
4981         * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
4982         curve type.
4983         Call `picurve' for BSPLINE.
4984         (HGPrintElt): Handle BSPLINE.
4985         * src/preproc/grn/README: Document it.
4987 2002-10-03  Werner LEMBERG  <wl@gnu.org>
4989         * src/roff/troff/node.cc (break_char_node::col): New variable.
4990         Updated constructor.
4991         (space_node::tprint, word_space_node::tprint): Call `fill_color'
4992         unconditionally.
4993         (space_node::space_node): Remove assertion.
4994         (break_char_node::add_self): Pass color argument to space node.
4995         * src/roff/troff/input.cc (token::add_to_node_list, token::process):
4996         Ditto.
4997         * src/roff/troff/env.cc (environment::do_break,
4998         environment::add_padding): Ditto.
5000 2002-10-02  Werner LEMBERG  <wl@gnu.org>
5002         Redesigning color support in troff.  Colors are no longer
5003         represented as separate nodes but are now part of glyph nodes and
5004         friends.  This fixes the current formatting misbehaviour due to the
5005         changes introduced on 2002-09-20.  Some extra code is necessary for
5006         proper grotty support: Without adding color variables to
5007         space-related nodes, the background color would be changed too late.
5009         * src/roff/troff/node.h, src/roff/troff/node.cc:
5010         s/current_pagecolor/current_fill_color/.
5011         s/current_glyphcolor/current_glyph_color/.
5012         (glyph_color_node, fill_color_node): Removed.
5013         (node::get_glyph_color, node::get_fill_color): New virtual member
5014         functions.
5015         (space_node::col): New variable.
5016         Updated constructors of space_node and derived classes accordingly.
5017         (hmotion_node::col): New variable.
5018         Updated constructors of hmotion_node and space_char_hmotion_node
5019         accordingly.
5020         (vmotion_node::col): New variable.
5021         Updated constructor accordingly.
5022         (draw_node::gcol, draw_node::fcol): New variables.
5023         Updated constructor accordingly.
5024         (special_node::gcol, special_node::fcol): New variables.
5025         Updated constructors accordingly.
5026         (troff_output_file::put_char, troff_output_file::put_charwidth,
5027         troff_output_file::draw): Set glyph and fill color.
5028         (troff_output_file::start_special): Set glyph and fill color.
5029         Always set current font.
5030         (troff_output_file::fill_color, troff_output_file::glyph_color):
5031         Don't call `do_motion'.
5032         (glyph_node::gcol, glyph_node::fcol): New variables.
5033         Updated constructors of glyph_node and ligature_node accordingly.
5034         (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
5035         member functions.
5036         (glyph_node::merge_glyph_node,
5037         kern_pair_node::add_discretionary_hyphen,
5038         node::add_discretionary_hyphen): Updated.
5039         (break_char_node::merge_self): Updated.
5040         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
5041         vmotion_node::tprint): Handle color.
5042         (make_glyph_node, make_node, node::add_char): Updated.
5044         * src/roff/troff/env.cc (environment::space_newline,
5045         environment::space, environment::output_line, environment::do_break,
5046         environment::make_tab_node, environment::add_padding, title):
5047         Updated.
5048         (environment_switch, environment_copy): Don't add color nodes.
5050         * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
5051         nothing.
5052         (token::next): Updated.
5053         \m and \M now are as transparent as \s.
5054         (process_input_stack, token::add_to_node_list, token::process,
5055         read_draw_node): Updated.
5056         (charinfo_to_node_list): Don't add color nodes.
5058         * doc/groff.texinfo: Updated.
5060 2002-09-27  Ruslan Ermilov  <ru@FreeBSD.org>
5062         * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
5063         strings.
5065 2002-09-27  Colin Watson  <cjwatson@debian.org>
5067         * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
5069 2002-09-23  Werner LEMBERG  <wl@gnu.org>
5071         * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
5072         appropriate.
5073         (DEFAULT_LINEWIDTH_FACTOR): New macro.
5074         (linewidth_factor): New global variable.
5075         (lbp_printer::set_line_thickness): Fix case for size < 0, using
5076         linewidth_factor.
5077         (long_options): Add -w/--linewidth option.
5078         (usage): Updated.
5079         (main): Handle -w option to set linewidth_factor.
5080         (lbp_printer::lbp_printer): Initialize req_linethickness, not
5081         line_thickness.
5083         * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
5085 2002-09-22  Paco Andrés Verdú  <pandres@dragonet.es>
5087         Fixed a bug in the line thickness setting code.
5089         * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
5090         variable.
5091         (lbp_printer::set_line_thickness): Pass environment as second
5092         parameter.
5093         Implement it actually.
5094         (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
5095         and `set_line_thickness, depending on the current font size.
5097 2002-09-21  Werner LEMBERG  <wl@gnu.org>
5099         Some Debian patches.
5101         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
5102         * src/roff/troff/node.cc (bracket_node::copy): Initialize
5103         `list->last'.
5105 2002-09-20  Werner LEMBERG  <wl@gnu.org>
5107         * configure: Regenerated with autoconf 2.54.
5109 2002-09-20  Werner LEMBERG  <wl@gnu.org>
5111         * src/roff/troff/env.h (environment): Rename cur_glyph_color to
5112         glyph_color.
5113         Rename cur_fill_color to fill_color.
5114         * src/roff/troff/env.cc: Updated.
5116 2002-09-20  Werner LEMBERG  <wl@gnu.org>
5118         * src/roff/troff/env.cc (title): Copy color status after processing
5119         title.
5120         * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
5121         fill color nodes to reset colors properly.
5123         * tmac/www.tmac (DC): Fix color handling.
5125         * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
5126         * doc/groff.texinfo: Fixing documentation of `tl' request.
5127         * doc/webpage.ms: Updated.
5129 2002-09-19  Werner LEMBERG  <wl@gnu.org>
5131         * src/roff/troff/env.cc (environent_switch, environment_copy):
5132         Emit glyph and fill color nodes to initialize colors properly.
5134 2002-09-17  Colin Watson  <cjwatson@debian.org>
5136         * src/roff/troff/env.cc (environment::set_glyph_color,
5137         environment::set_fill_color): Fix typo which prevented \m[] work
5138         correctly.
5140 2002-09-17  Werner LEMBERG  <wl@gnu.org>
5142         Add left and right italic correction to non-slanted PS fonts.  This
5143         is an experimental feature to improve image rendering of grohtml.
5145         * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
5146         ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
5147         * font/devps/*: All non-slanted fonts regenerated.
5148         * NEWS: Updated.
5150 2002-09-16  Werner LEMBERG  <wl@gnu.org>
5152         Add a site-specific font directory.
5154         * Makefile.in (localfontdir, legacyfontdir): New variables.
5155         (fontpath): Use them.
5156         (MDEFINES, uninstall_dirs): Updated.
5157         * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
5158         Remove `FONTPATH' and `MACROPATH'.
5160         * src/roff/troff/troff.man, NEWS: Updated.
5161         * doc/groff.texinfo (Font Directories): New section.
5162         Other minor fixes.
5164         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
5165         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
5166         src/preproc/grn/grn.man: Minor fixes.
5168         * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
5169         Remove unused variable.
5171 2002-09-11  Werner LEMBERG  <wl@gnu.org>
5173         * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
5174         * man/groff_out.man: Fix documentation of 'N'.
5176 2002-09-09  Gaius Mulley  <gaius@glam.ac.uk>
5178         * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
5179         * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
5180         set.
5181         * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
5182         (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
5183         (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
5184         * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
5185         PRE_TAG>: Call `begin' with `FALSE'.
5187 2002-09-09  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5189         * src/libs/libgroff/string.cc (string::extract): Fix position of
5190         terminating null byte.
5192 2002-09-08  Werner LEMBERG  <wl@gnu.org>
5194         Add global option `nospaces' to tbl so that leading and trailing
5195         spaces in data items are ignored.
5197         * src/libs/libgroff/string.cc (string::remove_spaces): New member
5198         function to remove leading and trailing spaces.
5199         * src/include/stringclass.h: Updated.
5201         * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
5203         * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
5204         option.
5205         Fix typo in error messages.
5206         (process_data): Implement `nospaces' option.
5207         * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
5209 2002-09-07  Werner LEMBERG  <wl@gnu.org>
5211         * src/include/config.hin: Add `HAVE_ISATTY'.
5212         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
5213         `fname' member.
5214         * src/libs/libgroff/tmpname.cc: Include `time.h'.
5215         * src/libs/libdriver/input.cc (Char): Add `operator==' and
5216         `operator!=' for `char'.
5217         * doc/groff.texinfo: Replace @ifnottex block for top node with
5218         @ifhtml block.
5220 2002-09-06  Werner LEMBERG  <wl@gnu.org>
5222         * doc/Makefile.in (.texinfo.html): Add -I switch.
5223         * doc/groff.texinfo: Add @ifnottex block for top node to make
5224         translation to HTML work.
5226 2002-09-05  Gaius Mulley  <gaius@glam.ac.uk>
5228         * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
5229         (get_papersize, determine_vertical_offset): Removed.
5230         (char_buffer::do_image): Always specify letter size.
5231         (main): Updated.
5232         (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
5233         -sPAPERSIZE.
5235 2002-09-05  Werner LEMBERG  <wl@gnu.org>
5237         * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
5238         default indentation.
5240 2002-09-04  Gaius Mulley  <gaius@glam.ac.uk>
5242         * src/preproc/html/pre-html.cc (imageList::createPage): Use
5243         -sPAPERSIZE for gs.
5244         (generateImages): Clean up push-back buffer.
5246 2002-09-04  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5248         * doc/groff.texinfo: Minor fixes.
5250 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
5252         * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
5253         (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
5254         (gsPaper): Removed.
5255         (determine_vertical_offset): Use LETTER_LENGTH.
5256         (createPage): Moved to ...
5257         (imageList::createPage): This.
5258         Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
5259         (imageList::getMaxX): New function.
5260         (createImage): Moved to ...
5261         (imageList::createImage): This.
5262         (imageList::createImages): New function.
5263         (generateImages): Read `maxx' directly.
5264         Updated.
5265         (scanArguments): Don't specify `gsPaper' for `-o'.
5266         (makeTempFiles): Call `xtmpfile' with the last argument set to
5267         `TRUE'.
5269 2002-08-24  Werner LEMBERG  <wl@gnu.org>
5271         * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
5272         (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
5273         * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
5274         * src/preproc/html/pushback.cc: Include nonposix.h.
5275         * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
5276         conditionally.
5278 2002-08-23  Werner LEMBERG  <wl@gnu.org>
5280         Use $(OBJEXT) for the object file extension.
5282         * Makefile.comm (.SUFFIXES): Add .obj.
5283         (.cc.obj, .c.obj): New implicit rules.
5284         * Makefile.in (OBJEXT): New variable, initialized from autoconf.
5285         (MDEFINES): Add EXEEXT and OBJEXT.
5286         * */Makefile.sub: s/.o/.$(OBJEXT)/.
5288 2002-08-22  Werner LEMBERG  <wl@gnu.org>
5290         * INSTALL: Mention texinfo 4.2 as a prerequisite.
5292 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
5294         * src/devices/grohtml/post-html.cc (colType): Make enum global to
5295         the file.
5296         (html_printer::update_min_max, html_printer::add_table_end): New
5297         methods.
5298         (html_printer::lookahead_for_tables): Use them.
5299         Reset page offset correctly.
5300         (html_printer::~html_printer): Add creation of creator comment up.
5302 2002-08-20  Werner LEMBERG  <wl@gnu.org>
5304         * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
5305         * man/groff_tmac.man: Fix typos.
5306         * man/groff_font.man: Minor reordering.
5307         * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
5309 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
5311         Avoid endless loops while scanning for tables.
5313         * src/devices/grohtml/post-html.cc (list::insert): Set
5314         ptr->right->left.
5315         (html_printer::next_horiz_pos): Add `text_glob' argument; update
5316         all callers.
5317         Return immediately if that argument is NULL.
5318         (html_printer::calc_nf): Don't test if `g' is NULL.
5319         (html_printer::lookahead_for_tables): Use
5320         `glyphs.move_right_get_data'.
5321         Don't test if `g' is NULL.
5323 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
5325         A better fix, replacing fix 2002-08-15, for increasing SIZE.
5327         * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
5328         a pointer.
5329         (char_block::char_block): Allocate `buffer'.
5330         (char_buffer::add_string): Use it.
5332 2002-08-15  Werner LEMBERG  <wl@gnu.org>
5334         * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
5335         src/devices/grodvi/grodvi.man: Document default line thickness.
5337 2002-08-15  Gaius Mulley  <gaius@glam.ac.uk>
5339         * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
5340         8192.
5342 2002-08-14  Werner LEMBERG  <wl@gnu.org>
5344         * doc/webpage.ms: Updated.
5346 2002-08-09  Werner LEMBERG  <wl@gnu.org>
5348         * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
5349         unbreakable space.
5351 2002-08-08  Aaron Campbell  <aaron@monkey.org>
5353         * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
5354         (&& -> &).
5356 2002-08-08  Werner LEMBERG  <wl@gnu.org>
5358         * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
5359         tok.next().
5360         (read_gray): Ditto.
5361         Don't push back a space but a newline onto the stack.
5363 2002-08-07  Gaius Mulley  <gaius@glam.ac.uk>
5365         Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
5366         inadvertently.
5368         * src/devices/grohtml/post-html.cc (html_printer::end_font,
5369         html_printer::start_font): Handle them.
5370         * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
5371         reset bold and tt.
5372         (html_text::do_bold): Don't reset italic and tt.
5373         (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
5374         * font/devhtml/DESC.proto: Add those fonts.
5375         * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
5377 2002-08-07  Werner LEMBERG  <wl@gnu.org>
5379         * MORE.STUFF: Added gpresent.
5381         * tmac/trace.tmac: Show nesting level by a corresponding amount of
5382         whitespace before printing the logging message.
5384 2002-07-31  Colin Watson  <cjwatson@debian.org>
5386         * src/devices/grohtml/html-table.cc (html_table::finish_row):
5387         Initialize `n' to zero.  This fixes a segfault on ARM.
5389 2002-07-30  Werner LEMBERG  <wl@gnu.org>
5391         * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
5393 2002-07-29  Werner LEMBERG  <wl@gnu.org>
5395         * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
5396         final semicolon.
5398 2002-07-28  Colin Watson  <cjwatson@debian.org>
5400         * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
5401         `.ps'.
5402         (html_printer::html_printer): Initialize `pointsize'.
5404 2002-07-26  Werner LEMBERG  <wl@gnu.org>
5406         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
5407         gnu.png.
5408         (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
5409         (gnu.eps): Add -rle switch to pnmtops.
5410         (distfiles): Add gnu.eps and gnu.png.
5412 2002-07-25  Petter Reinholdtsen  <pere@hungry.com>
5414         * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
5415         Add `operator!='.
5417 2002-07-24  Werner LEMBERG  <wl@gnu.org>
5419         * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
5420         ' \+' but '  *' for sed.
5421         (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
5423 2002-07-23  Werner LEMBERG  <wl@gnu.org>
5425         * doc/groff.texinfo: Document `papersize' keyword.
5426         * NEWS, man/groff_font.man: Updated.
5428 2002-07-23  Colin Watson  <cjwatson@debian.org>
5430         Extend papersize keyword to accept more than a single entry.  The
5431         first valid will be used.
5433         * src/libs/libgroff/font.cc (font::load_desc): Implement it.
5434         (font::scan_papersize): Really skip final newline.
5435         * src/preproc/html/pre-html.cc (get_papersize): Ditto.
5437 2002-07-23  Werner LEMBERG  <wl@gnu.org>
5439         * configure.ac: Test for isatty.
5440         * configure: Regenerated.
5441         * src/include/posix.h: Check HAVE_ISATTY.
5442         * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
5443         * src/utils/lookbib/lookbib.cc: Include posix.h.
5444         Don't declare isatty.
5446 2002-07-21  Werner LEMBERG  <wl@gnu.org>
5448         * NEWS: Add `output' request.
5450         * REVISION: Increased to 1.
5452 Version 1.18.0 released
5453 =======================
5455 2002-07-19  Gaius Mulley  <gaius@glam.ac.uk>
5457         Allow internal glyph indices > 0xFF in grohtml for input characters.
5459         * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
5460         as parameter.
5461         (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
5462         Updated all callers.
5463         (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
5464         (html_printer): Updated.
5466 2002-07-19  Werner LEMBERG  <wl@gnu.org>
5468         * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
5469         * font/devutf8/R.proto: Adding some missing glyphs.
5470         * font/devutf8/NOTES: Updated.
5472         * tmac/dvi.tmac: Add more composite glyphs.
5473         * tmac/html.tmac: Updated.
5475         * man/groff_char.man: Add `sum' and `product' entities.
5477         * NEWS: Updated.
5479 2002-07-18  Gaius Mulley  <gaius@glam.ac.uk>
5481         Improved table, tab, and indenting support.
5483         * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
5484         string_iterator::suppress_newline_flag): Removed.  Updated all
5485         function which have used it.
5487         * src/roff/troff/env.cc: Include `input.h'.
5488         (environment::add_node): Accept 0 as parameter.
5489         (environment::add_html_tag): Add `force' parameter.
5490         Updated all callers.
5491         (environment::add_html_tag_tabs): Ditto.
5492         For the moment, support left-aligned tabs only.
5493         (environment::make_html_tag): New function.
5494         (fill, no_fill): Set .br html tag additionally.
5495         (environment::newline): Emit `eol.ce' or `eol' tag for html.
5496         (environment::add_html_tag_eol): Removed.
5497         (tab_stops::distance_to_next_tab): Add variant for handling 
5498         nextpos'.
5499         (environment::distance_to_next_tab): Ditto.
5500         Updated all callers.
5501         (environment::handle_tab): Handle tabs for html.
5502         
5503         * src/roff/troff/env.h: Updated.
5505         * src/roff/troff/div.cc: Updated all callers of
5506         `environment::add_html_tag'.
5508         * src/devices/grohtml/html-table.cc,
5509         src/devices/grohtml/html-table.h: New files.
5511         * src/devices/grohtml/html-text.cc (html_text): New members
5512         `blank_para' and `start_space'.
5513         (html_text::issue_tag): Don't emit TABLE_TAG.
5514         Handle indentation for PRE_TAG and P_TAG.
5515         (html_text::end_tag): Updated.
5516         (html_text::table_is_void, html_text::issue_table_begin,
5517         html_text::issue_table_end): Removed.
5518         (html_text::do_push): Simplified.
5519         [DEBUGGING]: Small fix.
5520         (html_text::push_para): Add new parameter for indentation; updated
5521         all callers.
5522         Handle PRE_TAG.
5523         (html_text::do_indent, html_text::do_table, html_text::done_table,
5524         html_text::is_in_table): Removed.
5525         (html_text::do_pre): Handle P_TAG also.
5526         (html_text::shutdown): Handle p->indent.
5527         (html_text::check_emit_text): Simplified.
5528         (html_text::do_emittext): Reset `blank_para'.
5529         (html_text::do_para): Add new parameter for indentation; updated
5530         all callers.
5531         (html_text::remove_indent): New function.
5532         (html_text::do_space): Handle verbatim text properly.
5533         (html_text::ever_emitted_text, html_text::starts_with_space,
5534         html_text::remove_para_align): New functions.
5535         (html_text::dump_stack_element, html_text::dump_stack): Updated.
5537         * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
5538         Updated.
5540         * src/devices/grohtml/post-html.cc: Include html-table.h.
5541         (INDENTATION): Removed.
5542         (text_glob): Added many `is_<foo>' functions.
5543         Added table description `tab'.
5544         Added `get_arg',`get_tab_args', `remember_table', and `get_table'
5545         member functions.
5546         (list): Add `insert' and `move_to' member functions.
5547         (page): Add `insert_tag' member function.
5548         (page::dump_page) [DEBUG_TABLES]: Improved.
5549         (html_printer): Add `table' and `max_linelength' elements.
5550         Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
5551         `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
5552         `remove_tabs', `remove_courier_tabs'.
5553         (html_printer::emit_raw): Handle indentation.
5554         (html_printer::do_center, html_printer::write_header): Updated.
5555         (html_printer::is_courier_until_eol): Check for tag.
5556         (html_printer::do_linelength): Handle max_linelength.
5557         (html_printer::do_page_offset, html_printer::do_indentation): Handle
5558         fill_on.
5559         (html_printer::do_tempindent): Updated.
5560         (html_printer::do_indentedparagraph): Removed.
5561         (html_printer::do_indent): Simplified.
5562         (html_printer::do_eol): Use `ever_emitted_text'.
5563         (html_printer::do_flush, html_printer::do_links): Don't call
5564         done_table.
5565         (html_printer::do_break): Handle end_tempindent.
5566         (html_printer::troff_tag): Get argument.
5567         Don't handle `.ip'.
5568         Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
5569         (html_printer::flush_page): Call `lookahead_for_tables'.
5570         Don't call `done_table'.
5571         (html_printer::add_to_sbuf): Always call do_indent.
5573         * src/devices/grohtml/Makefile.sub: Updated.
5575         * tmac/an-old.tmac (TP): Don't handle html device specially.
5576         (an-do-tag-html): New function which will be used instead of
5577         `an-do-tag' if html device is used.
5579         * tmac/html.tmac: Call .po to pass default page offset to grohtml.
5581         * tmac/s.tmac (@IP): Don't handle html device specially.
5582         (@IP-html): New function which will be used instead of `@IP' if
5583         html device is used.
5585         * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
5586         is a hack which will eventually vanish again.
5587         (PIMG): Handle `-C' option correctly if not html.
5588         (HR): Use HTML-NS.
5590 2002-07-17  Werner LEMBERG  <wl@gnu.org>
5592         * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
5594 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
5596         * contrib/pic2graph/pic2graph.*: Use convert(1).
5597         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
5599 2002-07-14  Bernd Warken  <bwarken@mayn.de>
5601         * tmac/groff_trace.man: New file.
5602         * tmac/Makefile.sub: Updated.
5603         * NEWS: Updated.
5605 2002-07-13  Werner LEMBERG  <wl@gnu.org>
5607         * src/roff/groff/groff.man: Add some cross references.
5609 2002-07-12  Werner LEMBERG  <wl@gnu.org>
5611         * src/roff/troff/input.cc (substring_request): Add warnings for
5612         string indices out of range.
5614 2002-07-11  Werner LEMBERG  <wl@gnu.org>
5616         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
5617         * font/devdvi/*EC: Regenerated.
5619 2002-07-10  Bernd Warken  <bwarken@mayn.de>
5621         * man/groff_char.man: Updated and extended.
5623 2002-07-10  Werner LEMBERG  <wl@gnu.org>
5625         * src/roff/troff/input.cc (length_macro): Renamed to...
5626         (length_request): This.
5627         Move call of `tok.next()' to the very end, otherwise the register
5628         value hasn't been updated yet.
5629         (init_input_requests): Updated.
5631 2002-07-09  Werner LEMBERG  <wl@gnu.org>
5633         * src/roff/troff/input.cc (substring_macro): Renamed to...
5634         (substring_request): This.
5635         (init_input_requests): Updated.
5636         * src/roff/troff/request.h: Updated.
5638 2002-07-08  Robert D. Goulding  <goulding@Princeton.EDU>
5640         * src/roff/grog/grog.sh: Fix typo.
5642 2002-07-08  Werner LEMBERG  <wl@gnu.org>
5644         * win32-diffs: Updated.
5646         Handle `papersize' keyword properly in DESC.
5648         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
5649         type.
5650         Updated all callers.
5651         * src/libs/libgroff/paper.cc: Add four more paper formats used by
5652         grolj4.
5653         * src/include/paper.h: Updated.
5655         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
5656         Other minor C syntax fixes.
5657         (papersize, paperlength, paperwidth): Renamed to `user_*'.
5658         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
5659         members.
5660         (lbp_printer::lbp_printer): Pass three arguments.
5661         Set paper dimensions properly.
5662         (make_printer, main): Updated.
5663         (handle_unknown_desc_command): Fix error messages.
5664         (main): Handle papersize keyword in DESC properly.
5666         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
5667         `user_paper_size'.
5668         (lbp_printer::lbp_printer): Pass an argument.
5669         Set paper_size properly.
5670         (handle_unknown_desc_command): Removed.
5671         (make_printer, main): Updated.
5672         * src/devices/grolj4/grolj4.man: Minor documentation fix.
5674         * man/groff_font.man, NEWS: Updated.
5676 2002-07-07  Werner LEMBERG  <wl@gnu.org>
5678         Integrated eqn2graph, contributed by Eric S. Raymond.
5680         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
5681         files.
5682         * Makefile.in, NEWS: Updated.
5684 2002-06-04  Werner LEMBERG  <wl@gnu.org>
5686         Changing the substring request to make it fit better with other
5687         string manipulation functions in other programming languages:
5688         Index 0 is now the first character in the string, and index -1
5689         indicates the last character.  Since this request didn't work
5690         properly anyway in the last release, it doesn't harm too much to
5691         change the syntax.
5693         * src/roff/troff/input.cc (substring_macro): Use loops to get
5694         the real string length (ignoring COMPATIBLE_SAVE and
5695         COMPATIBLE_RESTORE) and offsets.
5696         Implement change described above.
5698         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
5699         (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
5701         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
5703 2002-06-03  Werner LEMBERG  <wl@gnu.org>
5705         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
5706         COMPATIBLE_RESTORE are completely ignored.
5708         * src/roff/troff/input.cc (char_list::set, char_list::get): New
5709         functions.
5710         (macro): `length' field renamed to `len'.
5711         Added new field `empty_macro' (1 if macro is empty), to be used
5712         instead of checking `len'.
5713         Updated all callers.
5714         (macro::empty): Updated.
5715         (macro::length, macro::set, macro::get): New functions.
5716         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5717         Set `empty_macro'.
5718         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
5719         COMPATIBLE_RESTORE pairs.
5720         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5721         * src/roff/troff/request.h: Updated.
5723         * doc/groff.texinfo: Document .chop's behaviour better.
5725 2002-06-02  Werner LEMBERG  <wl@gnu.org>
5727         * doc/pic.ms: Fix documentation for the addition of positions.
5729         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
5731 2002-06-29  Werner LEMBERG  <wl@gnu.org>
5733         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
5735         * src/roff/troff/input.cc (have_string_arg): New global variable.
5736         (read_mode): New enumeration.
5737         (read_escape_name): Use it.  Update all calls.
5738         (read_long_escape_name): Use it.  Update all calls.
5739         Set have_string_arg if appropriate.
5740         (get_char_for_escape_name): Add parameter for handling space
5741         character.
5742         (interpolate_string_with_args, decode_string_args): New functions.
5743         (get_copy, token::next): Call it if necessary.
5744         (interpolate_string): Fix error message.
5746         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5747         Document it.
5749 2002-06-24  Bernd Warken  <bwarken@mayn.de>
5751         * man/groff_tmac.man: Updated and extended.
5753 2002-06-24  Werner LEMBERG  <wl@gnu.org>
5755         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
5757 2002-06-23  Werner LEMBERG  <wl@gnu.org>
5759         * doc/pic.ms: Improve documentation of composite block objects.
5761 2002-06-22  Werner LEMBERG  <wl@gnu.org>
5763         * src/roff/troff/input.cc (init_registers): Add three registers
5764         `seconds', `minutes', and `hours' to hold the current time.
5766         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5767         Updated.
5769 2002-06-20  Werner LEMBERG  <wl@gnu.org>
5771         Make \X accept both `\ ' and `\~', converting them to single space
5772         characters.
5774         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
5775         (token::unstretchable_space): New inline function.
5776         * src/roff/troff/input.cc (token::next, token::delimiter,
5777         token::description, token::add_to_node_list, token::process): Handle
5778         TOKEN_UNSTRETCHABLE_NODE.
5779         (encode_char): Handle tok.stretchable_space and
5780         tok.unstretchable_space.
5782         * NEWS, doc/groff.texinfo: Document it..
5784 2002-06-19  Werner LEMBERG  <wl@gnu.org>
5786         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
5788         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
5789         keyword to enable/disable SGR output.
5790         (tty_printer::change_fill_color): New function.
5791         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
5793         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
5794         call.
5796 2002-06-18  Werner LEMBERG  <wl@gnu.org>
5798         Add a `color' request and a `.color' register to control usage of
5799         colours.
5801         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
5802         (color_flag): This (which is the inverse).
5803         (activate_color): New function.
5804         (main, init_input_requests): Updated.
5805         * src/roff/troff/troff.h, src/roff/troff/node.cc
5806         (troff_output_file::fill_color, troff_output_file::glyph_color):
5807         Updated.
5809         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5810         Document the changes.
5812 2002-06-17  Colin Watson  <cjwatson@debian.org>
5814         Circumvent bug in autoconf 2.53 regarding top_builddir.
5816         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
5817         * Makefile.in, doc/Makefile.in:
5818         s/@top_builddir@/@groff_top_builddir@/.
5819         * configure: Regenerated (with autoconf 2.53).
5821 2002-06-17  Werner LEMBERG  <wl@gnu.org>
5823         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
5824         `paperwidth' and `paperlength' for the `papersize' keyword.
5826 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
5828         * src/devices/grops/grops.man: Add info about Type 42 fonts.
5830 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
5832         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
5833         html_printer::do_linelength, html_printer::do_pageoffset,
5834         html_printer::do_indentation, html_printer::do_tempindent,
5835         html_printer::do_break, html_printer::begin_page): Clear indented
5836         text.
5837         * tmac/html.tmac: Disable hyphenation.
5839 2002-06-15  Werner LEMBERG  <wl@gnu.org>
5841         Don't produce HTML files if utility programs are missing.
5843         * Makefile.in (make_html, make_install_html): New variables.
5844         (MDEFINES): Updated.
5846         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
5847         utility programs.
5848         * configure.ac: Use it.
5849         * configure: Regenerated.
5851         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
5852         (HTMLEXAMPLESFILES): This new variable.
5853         (EXAMPLESIMAGEFILES): Renamed to...
5854         (HTMLEXAMPLEIMAGEFILES): This.
5855         (CLEANADD): Add HTMLEXAMPLEFILES.
5856         (all): Use `make_html'.
5857         (html): New target.
5858         (install_data): Use `make_install_html'.
5859         Move html stuff to...
5860         (install_html): This new target.
5861         (uninstall_sub): Updated.
5863 2002-06-14  Bernd Warken  <bwarken@mayn.de>
5865         * src/roff/grog/Makefile.sub (grog): Renamed to...
5866         (grog.old): This.
5867         (grog): New rule to always install grog.sh as grog.
5869 2002-06-08  Bernd Warken  <bwarken@mayn.de>
5871         * src/roff/grog/grog.pl: Fix typo.
5873 2002-06-07  Werner LEMBERG  <wl@gnu.org>
5875         * doc/groff.texinfo: Add more info on .tr arguments.
5877 2002-06-05  Werner LEMBERG  <wl@gnu.org>
5879         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
5881         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
5882         * configure: Regenerated.
5884 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5886         * src/roff/troff/symbol.cc (table_sizes): Add more values.
5888         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
5890 2002-06-04  Werner LEMBERG  <wl@gnu.org>
5892         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
5893         is not initialized at the time we need it in case `--prefix' hasn't
5894         been set.  Check for `ac_default_prefix' also.
5895         Test for `papersize' keyword also and generalize allowed whitespace.
5896         * configure: Regenerated.
5898         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
5899         `paperlength'.
5901         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
5902         with...
5903         (src_version, src_revision): New variables to avoid overwriting
5904         from parent make process.
5905         (version.cc): Updated.
5907         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
5908         (linebuf, linebufsize): New global variables.
5909         (sys_fatal): Use `fatal' to abort properly.
5910         (get_line): New function.
5911         (get_resolution): Use it.
5912         Improve error messages.
5913         (get_papersize): Check `papersize' also.
5914         Use `get_line'.
5915         Improve error messages.
5917 2002-06-03  Werner LEMBERG  <wl@gnu.org>
5919         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
5920         should be removed only if builddir is not srcdir.
5921         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
5922         (clean): Depend on `mostlyclean'.
5923         (distclean): Depend on `clean'.
5924         (realclean, extraclean): Depend on `distclean'.
5925         (.y.cc, .y.o): Simplified.  The output files are no longer written
5926         to srcdir but to builddir.
5927         * Makefile.in (MDEFINES): Add `version' and `revision'.
5928         (uninstall_dirs): Fix order of directories.
5929         * doc/Makefile.sub (version, revision): Removed.
5930         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
5931         Added `HTMLDOCFILES'.
5932         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
5933         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
5934         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
5935         as prefix.
5937         * doc/texinfo.tex (\authortt): New macro.
5938         (\shortcontt): Define.
5939         (\titlepage): Set \tt to \authortt while defining \authorfont.
5940         (\appendixbox): New macro.
5941         (\chapmacro, \appendixentry): Use \appendixbox to get even
5942         indentation for letters.
5943         (\summarycontents): Set \tt.
5944         (\internalpagesize): Add two arguments for real paper width and
5945         height as needed by pdfTeX.
5946         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
5947         Updated.
5948         (\tempdima, \tempdimb): New temporary dimensions.
5949         (\pagesizesyyy): Updated.
5951 2002-06-02  Werner LEMBERG  <wl@gnu.org>
5953         Adding a new keyword `papersize' to the DESC file format (similar
5954         but not completely identical to grolbp's extension).  grops now has
5955         a -p command line option to override `papersize'.  Finally, grolbp
5956         has been adapted to the new syntax.
5958         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
5959         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
5960         elements.
5961         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
5962         (CCSRCS): Add `paper.cc'.
5964         * src/include/font.h (font): Add `papersize' element.
5965         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
5966         (font::scan_papersize): New function.
5967         (font::load_desc): Use it for handling `papersize' keyword.
5968         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
5970         * src/devices/grops/ps.cc: Include paper.h.
5971         (user_paper_length): New global variable.
5972         (ps_printer): Use paper length as initializer.
5973         (make_printer): Updated.
5974         (main): Handle new `-p' option.
5975         * src/devices/grops/grops.man: Updated.
5977         * src/devices/grolbp/lbp.cc: Include paper.h.
5978         s/papersizes/lbp_papersizes/.
5979         (set_papersize): Use new `papersizes' array.
5980         (handle_unknown_desc_command): Don't handle `papersize'.
5981         (main): Use `font::scan_papersize' for handling `-p' option.
5982         * src/devices/grolbp/grolbp.man: Updated.
5984         * man/groff_font.man: Document `papersize'.
5985         * NEWS: Updated.
5987 2002-05-30  Werner LEMBERG  <wl@gnu.org>
5989         * src/devices/grops/TODO: Updated.
5990         * src/devices/grops/grops.man: More info on paper formats.
5991         * man/groff_font.man: Document `paperheight' and `paperwidth'.
5993 2002-05-29  Werner LEMBERG  <wl@gnu.org>
5995         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
5996         to list only if srcdir != currdir.
5997         (distfiles): New target.
5999         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
6000         (NOMAKEDIRS): New variable.
6001         (DISTDIRS): Use it.
6003 2002-05-26  Werner LEMBERG  <wl@gnu.org>
6005         Add .output request, similar to \! at top-level.
6007         * src/roff/troff/input.cc (transparent): Remove unused declaration.
6008         (output_request): New function.
6009         (init_input_requests): Add it.
6010         Sorted.
6011         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
6012         Document it.
6014         * Makefile.in (MDEFINES): Add INSTALL_INFO.
6015         (prepare_examples): Fix typo.
6016         * doc/groff.texinfo (@direntry): Fix it.
6018 2002-05-25  Werner LEMBERG  <wl@gnu.org>
6020         Including the doc subdir into groff's Makefile system.
6022         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
6023         * configure.ac: Use it.
6024         Generate `doc/Makefile'.
6025         * configure: Regenerated.
6027         * Makefile.in (infodir, INSTALL_INFO): New variables.
6028         (MDEFINES, uninstall_dirs): Updated.
6029         (OTHERDIRS): Add `doc'.
6030         * Makefile.comm (CLEANDIRADD): New variable.
6031         (mostlyclean): Use it.
6033         * doc/Makefile.sub, doc/Makefile.in: New files.
6034         * doc/Makefile: Removed.
6036         * NEWS, INSTALL: Updated.
6038 2002-05-24  Werner LEMBERG  <wl@gnu.org>
6040         * doc/homepage.ms: Renamed to ...
6041         * doc/webpage.ms: This.
6042         Use `.NHR'.
6044 2002-05-23  Werner LEMBERG  <wl@gnu.org>
6046         Integrating the `mom' macro package, contributed by Peter Schaffter
6047         <df191@ncf.ca>.
6049         * contrib/mom/*: New subdirectory tree.
6050         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
6051         be used for documentation files.
6052         (MDEFINES, uninstall_dirs): Use them.
6053         (OTHERDIRS): Add contrib/mom.
6054         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
6055         @HTMLDOCDIR@.
6056         * MANIFEST, NEWS: Updated.
6058 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
6060         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
6061         if at outer level; at start-up we are at outer level.
6063         * src/roff/troff/input.cc (do_suppress): Implement it.
6064         Simplify \O[3].
6066         Add option -p to show progress information.
6067         pre-grohtml will now render only one page at a time, reducing the
6068         size of needed disk resources enormously.
6070         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
6071         (imagePageName): New global variable.
6072         (psPageName, show_progress, currentPageNo): New global variables.
6073         (html_system): Close saved stderr and stdout handles.
6074         (write_end_image): Accept a parameter to control \O escape.
6075         (write_start_image): Adapted to new \O meaning.
6076         (char_buffer::write_upto_newline): Updated.
6077         (createAllPages): Replaced with...
6078         (createPage): This new function to create a single page for images.
6079         It uses `psselect' from the psutils package.
6080         (removeAllPages): Removed.
6081         (createImage): Updated.
6082         Handle progress display.
6083         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
6084         (scanArguments): Add option -p.
6085         (makeTempFiles): Updated to create temp files for psPageName and
6086         imagePageName.
6087         (removeTempFiles): Removed.
6088         (main): Updated.
6090         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
6091         html_printer::write_header): Append `\0' to `buffer'.
6092         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
6093         (main): Handle -p.
6094         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
6095         Handle `text_emitted'.
6096         (html_text::table_is_void): Slightly rewritten.
6097         (stop): New external symbol.
6098         (html_text::do_push) [DEBUGGING]: Use it and simplify.
6099         (html_text::shutdown): Call `dump_stack'.
6100         (html_text::do_space): Rewritten.
6101         * src/devices/grohtml/grohtml.man: Document -p and the need of
6102         `psselect'.
6104         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
6105         new \O syntax.
6106         Call \O[0] if `ps4html' is active.
6107         * tmac/s.tmac (@EQ, @EN): Handle html better.
6108         (@TS, TE): Ditto.
6109         * tmac/html.tmac: Don't use black for background colour.
6111         * src/roff/troff/node.cc: Include `div.h'.
6112         (troff_output_file::really_print_line): Don't use `is_on'. 
6113         (troff_output_file::word_marker, troff_output_file::flush_tbuf
6114         troff_output_file::check_charinfo,
6115         troff_output_file::put_char_width, troff_output_file::put_char,
6116         troff_output_file::determine_line_limits, troff_output_file::draw,
6117         real_output_file::begin_page, glyph_color_node::tprintf,
6118         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
6119         Use `is_on'.
6120         (troff_output_file::really_on): Call `do_motion'.
6121         (suppress_node::tprint): Use `get_page_number' instead of `%'
6122         register.
6123         Call `reset_output_registers' conditionally on `is_on'.
6125         * doc/groff.texinfo: Document new syntax of \O.
6126         * NEWS, man/groff_diff.man: Updated.
6128 2002-05-22  Werner LEMBERG  <wl@gnu.org>
6130         * MORE.STUFF: Add info about David Frey's deroff implementation.
6131         Mention troff.org.
6133 2002-05-16  Werner LEMBERG  <wl@gnu.org>
6135         Pic's `with' attribute now accepts positions.
6137         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
6138         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
6139         conflicts.
6140         (object_spec): Add rule for `WITH' and `position'.
6141         (relative_path): Give `corner' the precedence of `CHOP'.
6142         * src/preproc/pic/object.h (path): New members `pos' and
6143         `is_position'.
6144         * src/preproc/pic/object.cc: Updated initializers of `path'.
6145         (path::follow): Handle `is_position'.
6147         * doc/pic.ms: Completely updated grammar description.
6148         Many typographical improvements.
6150 2002-05-15  Werner LEMBERG  <wl@gnu.org>
6152         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
6153         code of x in range 0-127) also.
6154         * doc/groff.texinfo, man/groff_diff.man: Updated.
6156         Added keywords `north', `south', `east', and `west' for corners
6157         in pic.
6159         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
6160         and WEST.
6161         (yylex): Handle them.
6162         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
6163         (corner): Handle them.
6165 2002-05-14  Werner LEMBERG  <wl@gnu.org>
6167         * src/devices/grops/grops.man: Clarify handling of `download' file.
6169 2002-05-11  Werner LEMBERG  <wl@gnu.org>
6171         Adding `warnscale' and `spreadwarn' requests, based on a patch from
6172         Jeffrey Friedl <jfriedl@yahoo.com>.
6174         * src/roff/troff/input.cc (spread_limit, warn_scale,
6175         warn_scaling_indicator): New global variables.
6176         (warnscale_request, spreadwarn_requests): New functions.
6177         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
6178         (init_input_requests): Updated.
6179         (error_type): Add `OUTPUT_WARNING'.
6180         (do_error): Handle it.
6181         (output_warning): New warning function which shows output location.
6182         * src/roff/troff/env.h (spread_limit): New external variable.
6183         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
6184         `output_warning'.
6185         (distribute_space): Emit warning if added space is larger than
6186         `spread_limit'.
6187         (environment::possibly_break_line): Emit warning if a line can't
6188         be adjusted on both sides.
6190         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
6192 2002-05-08  Werner LEMBERG  <wl@gnu.org>
6194         * src/roff/troff/node.cc (special_node::special_node): Use
6195         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
6196         \X''\% crashes, for example.
6198         * doc/groff.texinfo: Document \! and \? used at top-level.
6200 2002-05-06  Werner LEMBERG  <wl@gnu.org>
6202         * src/preproc/pic/pic.man: Fix some keyword syntax.
6203         Other minor typographical fixes.
6205         * src/roff/groff/groff.man: Fix typos.
6207 2002-05-04  Werner LEMBERG  <wl@gnu.org>
6209         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
6210         (ShortOpt[]): This to avoid problems with refer.
6212         * doc/pic.ms: Fix typo.
6213         Fix pic grammar description.
6215         * tmac/an-old.tmac (ne): Use de1, not de.
6217 2002-05-03  Werner LEMBERG  <wl@gnu.org>
6219         * doc/groff.texinfo: Finished separation of glyphs and characters.
6220         Don't use the string `Appendix' for appendix headers (both in
6221         the text and the table of contents).
6222         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
6223         directories.
6225         Use registers LL and LT (similar to -ms) for controlling the
6226         length of title and line, respectively, in the -man and -mdoc
6227         macro packages.
6229         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
6230         (doc-setup-page-layout): Use \n[LL] and \n[LT].
6231         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
6232         (TH): Use \n[LL].
6233         (an-header, an-p-footer): Use \n[LT].
6234         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
6235         doc/groff.texinfo: Document it.
6237 2002-05-02  Werner LEMBERG  <wl@gnu.org>
6239         * doc/fdl.texi: New file.
6240         * doc/groff.texinfo: Include it.
6241         Define and use @copying.
6242         Starting with separating glyph, symbol, and character.
6244 2002-04-27  Werner LEMBERG  <wl@gnu.org>
6246         * Makefile.in (EXEEXT): Set it.
6247         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
6248         programs.
6250         * src/include/nonposix.h: Define GS_NAME.
6251         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
6253         Some preliminary changes for EMX support under OS/2.
6255         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
6256         __EMX__ similar to __MSDOS__.
6257         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
6259 2002-04-25  Werner LEMBERG  <wl@gnu.org>
6261         * doc/groff.texinfo: Integrated groff_out.man.
6262         Some macro fixes.
6264 2002-04-23  Werner LEMBERG  <wl@gnu.org>
6266         * man/groff_out.man: Minor fixes.
6268 2002-04-23  Werner LEMBERG  <wl@gnu.org>
6270         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
6271         correct page references.
6272         Fixed many index entries.
6274 2002-04-23  Bernd Warken  <bwarken@mayn.de>
6276         * man/roff.man: Enlarged.
6278 2002-04-22  Werner LEMBERG  <wl@gnu.org>
6280         * doc/groff.texinfo: More examples, other fixes.
6282 2002-04-20  Werner LEMBERG  <wl@gnu.org>
6284         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
6285         will now form a chain, e.g.
6287           .pi foo
6288           .pi bar
6290         is now the same as
6292           .pi foo | bar
6294         This is for compatibility with plan 9's troff.
6296         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
6297         with UNIX troff.
6298         * NEWS: Updated.
6300         * doc/groff.texinfo: Add documentation of remaining requests and
6301         registers.
6303 2002-04-19  Werner LEMBERG  <wl@gnu.org>
6305         * doc/groff.texinfo: Add documentation of remaining escapes.
6307         * font/devdvi/generate/tc.map: Remove entry for `sr'.
6308         * font/devdvi/*TC: Regenerated.
6310 2002-04-18  Werner LEMBERG  <wl@gnu.org>
6312         * src/roff/troff/input.cc (token::next): Make \H behave consistently
6313         if not in compatibility mode, i.e., increment relative to the
6314         previous height.
6315         * doc/groff.texinfo: Updated accordingly.
6317 2002-04-17  Werner LEMBERG  <wl@gnu.org>
6319         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
6321 2002-04-16  Bernd Warken  <bwarken@mayn.de>
6323         * src/roff/groff/groff.man: Improve documentation of -P option.
6324         Other minor fixes.
6326 2002-04-15  Werner LEMBERG  <wl@gnu.org>
6328         Add new escape \F to switch font family.
6330         * src/roff/troff/input.cc (token::next): Handle \F.
6331         * src/roff/troff/env.cc (environment::set_family): Handle
6332         `interrupted' flag.
6333         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
6334         Document it.
6336 2002-04-14  Werner LEMBERG  <wl@gnu.org>
6338         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
6339         spaces in tags.
6341 2002-04-13  Werner LEMBERG  <wl@gnu.org>
6343         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
6344         \m[] and \M[], respectively.
6346         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
6347         (symbol::symbol): Handle NULL string and empty string differently.
6348         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
6349         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
6350         Add optional parameter.
6351         Updated calling functions.
6352         (get_copy, do_glyph_color, do_fill_color, token::next): Use
6353         `symbol::is_empty'.
6354         * src/roff/troff/env.cc (environment::set_font): Ditto.
6356         * src/preproc/pic/troff.cc (troff_output::set_fill,
6357         troff_output::reset_color: Updated.
6359         * tmac/www.tmac: Updated.
6361         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
6362         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
6363         Updated.
6365         * tmac/Xps.tmac: Remove some redundant code.
6367         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
6368         tmac/dvi.tmac, man/roff.man, man/groff_out.man, man/groff.man,
6369         man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with
6370         \f[].
6372 2002-04-13  Bernd Warken  <bwarken@mayn.de>
6374         * src/include/printer.h, src/libs/libdriver/printer.cc
6375         (printer::change_fill_color): New member function.
6376         * src/libs/libdriver/input.cc (parse_D_command): Use it.
6378 2002-04-12  Werner LEMBERG  <wl@gnu.org>
6380         * doc/groff.texinfo: Completed pass on gtroff reference.
6382 2002-04-11  Werner LEMBERG  <wl@gnu.org>
6384         * doc/groff.texinfo: More fixes.
6386 2002-04-11  Bernd Warken  <bwarken@mayn.de>
6388         * src/include/color.h: Decorate with `const'.
6389         Use `size_t'.
6390         Include `stddef.h'.
6391         * src/libs/libgroff.color.cc: Decorate with `const'.
6392         Use `size_t'.
6393         (color::color): Initialize members.
6394         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
6395         command according to the documentation.
6397         * man/groff_out.man: Updated.
6398         Minor fixes.
6400 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
6402         * src/preproc/html/pre-html.cc (write_start_image): Remove
6403         redundant output.
6404         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
6406         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
6407         \C'hy' caused an assertion failure.
6409         * src/roff/troff/env.cc (environment::environment): Initialize
6410         `emitted_node'.
6411         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
6413 2002-04-10  Werner LEMBERG  <wl@gnu.org>
6415         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
6416         Document pvs request and .pvs register.
6418 2002-04-09  Werner LEMBERG  <wl@gnu.org>
6420         * doc/groff.texinfo: Improve and fix documentation of diversions
6421         and environments.
6423 2002-04-08  Werner LEMBERG  <wl@gnu.org>
6425         * doc/groff.texinfo: Fix documentation of drawing functions.
6426         Other minor fixes.
6428 2002-04-07  Werner LEMBERG  <wl@gnu.org>
6430         * doc/groff.texinfo: Better documentation of double quotes as
6431         arguments.
6432         Other minor fixes.
6434 2002-04-06  Werner LEMBERG  <wl@gnu.org>
6436         * man/groff_font.man: Document names of special characters better.
6437         * doc/groff.texinfo: Minor improvements.
6439         * tmac/lbp.tmac: Load latin1.tmac.
6440         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
6442         * font/devX*/*: Regenerated (all chars > 0x80 removed).
6444 2002-04-05  Werner LEMBERG  <wl@gnu.org>
6446         * tmac/tty.tmac: Don't use shc request.
6447         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
6448         * NEWS: Updated.
6450         * man/groff_diff.man: Minor fixes.
6452         * font/devlbp/*: Remove all `charXXX' entities.
6454         * src/libs/libgroff/font.cc (font::~font): Deallocate
6455         `special_device_coding'.
6456         (font::load): Use `new' for allocating `special_device_coding'.
6457         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
6458         Removed unused member.
6460 2002-04-05  Werner LEMBERG  <wl@gnu.org>
6462         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
6463         (resource_manager::do_begin_binary,
6464         resource_manager::do_begin_data): Use it.
6466         * doc/texinfo.tex: Updated to version 4.2.
6468         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
6469         (token::zero_width_break): New inline function.
6470         * src/roff/troff/input.cc (token::next): Use it.
6471         (token::description): Updated.
6472         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
6473         (token::add_to_node_list, token::process): Use it.
6474         * NEWS, doc/groff.texinfo: Updated.
6476         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
6477         * tmac/tty.tmac: Add missing backslash.
6479 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
6481         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
6482         `.ps' register instead of `.s' to handle fractional point sizes.
6483         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
6484         limit_box::output): Ditto.
6485         * src/preproc/eqn/other.cc (size_box::compute_metrics,
6486         size_box::output): Ditto.
6487         * src/preproc/eqn/over.cc (over_box::compute_metrics,
6488         over_box::output): Ditto.
6489         * src/preproc/eqn/script.cc (script_box::compute_metrics,
6490         script_box::output): Ditto.
6491         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
6492         sqrt_box::output): Ditto.
6494 2002-04-03  Michael Selway  <mas@ssl.co.uk>
6496         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
6497         Fix typo.
6499 2002-04-03  Werner LEMBERG  <wl@gnu.org>
6501         * doc/homepage.ms: Reduce title size.
6502         * doc/groff.texinfo: Fix documentation of .t register.
6503         Fix handling of colon.
6504         Fix `\' vs. `\\'.
6506         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
6507         only if page length is positive to avoid a loop.
6509         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
6510         tbl.
6512 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
6514         * src/include/nonposix.h, src/roff/groff/pipeline.c:
6515         s/__CYGWIN32__/__CYGWIN__/.
6517 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
6519         * doc/gnu.xpm: New image contributed by Emily Mulley.
6520         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
6521         (homepage.html): Be dependent on gnu.eps.
6522         * doc/homepage.ms: Updated to new image.
6524         * src/devices/grohtml/post-html.cc (html_printer): New member
6525         `sbuf_prev_hpos'.
6526         (html_printer::flush_sbuf, html_printer::set_char): Set it.
6527         (html_printer::sbuf_continuation): Use it.
6529 2002-03-28  Werner LEMBERG  <wl@gnu.org>
6531         * src/libs/libgroff/getopt.c: Updated to latest version.
6533         * tmac/README: More on hyphen.tex license.
6535 2002-03-26  Larry Kollar  <kollar@alltel.net>
6537         * doc/groff.texinfo: Add documentation of most missing requests.
6539 2002-03-25  Werner LEMBERG  <wl@gnu.org>
6541         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
6542         of `+-', `mu', and `di', respectively.
6544         * font/devascii/R.proto, font/devutf8/R.proto,
6545         font/devlatin1/R.proto, font/devhtml/R.proto,
6546         font/devcp1047/R.proto, font/devlpb/*: Add them.
6547         * font/devps/generate/textmap: Ditto.
6548         * font/devps/*: Regenerated.
6549         * font/devlj4/generate/text.map: Add them.
6550         * font/devlj4/*: Regenerated.
6551         * font/devdvi/generate/tc.map: Use them.
6552         * font/devdvi/generate/texsy.map: Add them.
6553         * font/devdvi/*: Regenerated.
6554         * font/devX*/*: Regenerated.
6556         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
6557         tmac/tty-char.tmac: Updated.
6559         * NEWS, man/groff_char.man: Updated.
6561 2002-03-24  Werner LEMBERG  <wl@gnu.org>
6563         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
6564         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
6565         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
6566         we use `.fchar' in dvi.tmac.
6567         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
6568         * tmac/Xps.tmac: Simplify some char definitions.
6569         Add definition for \[f/].
6570         * man/groff_char.man: Updated for new X.tmac.
6572         * tmac/README: New file.
6574 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
6576         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
6577         internal .y.o rule took precendence over the .y.cc rule, compiling
6578         the yacc files with gcc instead of g++.
6580 2002-03-23  Werner LEMBERG  <wl@gnu.org>
6582         * tmac/dvi.tmac: Add replacement font for `CB'.
6584         * tmac/doc.tmac: s/request/macro/ in messages.
6585         (doc-generic-macro): Improve error message.
6586         * tmac/groff_mdoc.man: Minor improvements.
6588 2002-03-22  Werner LEMBERG  <wl@gnu.org>
6590         * doc/groff.texinfo: Document possible conflict between `tr' and
6591         `char' requests.
6593 2002-03-21  Werner LEMBERG  <wl@gnu.org>
6595         Improve handling of hyphenation patterns.  It is now possible to
6596         use most of TeX's pattern files unmodified.  To make the process
6597         more flexible, a new request `hpfcode' has been added which
6598         provides a character code mapping for the `hpf' request.  See
6599         comment before hpf_getc() for more details.
6601         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
6602         functions.
6603         (read_patterns_file): Additional parameter for exception dictionary.
6604         Extended to recognize \pattern, \hyphenation, and \endinput.
6605         (do_hyphenation_patterns_file): Updated.
6606         * src/roff/troff/env.h (hpf_code_table): New extern.
6608         * src/roff/troff/input.cc (hpf_code_table): New array.
6609         (init_hpf_code_table, hyphenation_patterns_file_code): New
6610         functions.
6611         (hyphenation_code): Handle translation from `trin' correctly.
6612         (main, init_input_requests): Updated.
6613         (charinfo::set_translation): Handle hyphenation code also.
6615         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
6616         inline function.
6618         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
6619         char' is used for offsets in hyphenation exceptions.
6621         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
6623         * NEWS, man/groff_diff.man, man/groff.man: Document it.
6625 2002-03-20  Larry Kollar  <kollar@alltel.net>
6627         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
6628         requests.
6630 2002-03-18  Werner LEMBERG  <wl@gnu.org>
6632         * tmac/html.tmac: Fix serious typo.
6634 2002-03-17  Larry Kollar  <kollar@alltel.net>
6636         * doc/groff.texinfo: Add documentation for `writec' request.
6638 2002-03-17  Werner LEMBERG  <wl@gnu.org>
6640         Added request `hpfa' to append hyphenation patterns.
6642         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
6643         parameter `append'.
6644         (hyphenation_patterns_file): Renamed to...
6645         (do_hyphenation_patterns_file): This.
6646         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
6647         functions.
6648         (init_hyphen_requests): Updated.
6649         * NEWS, man/groff.man, man/groff_diff.man: Document it.
6651 2002-03-16  Werner LEMBERG  <wl@gnu.org>
6653         Added request `writec' in analogy to `tmc'.
6655         * src/roff/troff/input.cc (write_request): Renamed to...
6656         (do_write_request): This.
6657         Added one parameter.
6658         (write_request, write_request_continue): New functions.
6659         (init_input_requests): Updated.
6660         * NEWS, man/groff.man, man/groff_diff.man: Document it.
6662         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
6663         5-10000pt.
6664         * NEWS: Document it.
6666 2002-03-15  Werner LEMBERG  <wl@gnu.org>
6668         * man/groff.man: Add writem request.
6670         Add request `trin' (translate input) to make `.asciify' work
6671         correctly.  This is necessary since `charXXX' entity names are no
6672         longer hardcoded in font definition files.
6674         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
6675         `translate_input' members.
6676         (charinfo::set_asciify_code, charinfo::get_asciify_code,
6677         charinfo::set_translation_input): New methods.
6678         (charinfo::set_translation): Add third argument.
6679         * src/roff/troff/input.cc (charinfo:set_translation): Set
6680         `asciify_code'.
6681         (do_translate): Add second argument.
6682         (translate_input): New function.
6683         (init_input_requests): Updated.
6684         * src/roff/troff/node.cc (glyph_node::asciify,
6685         composite_node::asciify): Use `get_asciify_code'.
6687         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
6689         * NEWS, man/groff.man, man/groff_diff.man: Updated.
6691 2002-03-14  Larry Kollar  <kollar@alltel.net>
6693         * doc/groff.texinfo: Improve documentation of .RS and .RE.
6695 2002-03-14  Werner LEMBERG  <wl@gnu.org>
6697         Add a new request `sizes' similar to the `sizes' command in DESC
6698         files.
6700         * src/roff/troff/env.cc (override_sizes): New function.
6701         (init_env_requests): Use it.
6702         * src/roff/troff/token.h: Export `read_string'.
6703         * NEWS, man/groff_diff.man, man/groff.man: Document it.
6705 2002-03-12  Werner LEMBERG  <wl@gnu.org>
6707         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
6709 2002-03-10  Werner LEMBERG  <wl@gnu.org>
6711         * tmac/pspic.tmac: Add support for -Tdvi.
6712         * tmac/dvi.tmac: Include pspic.tmac.
6713         * src/devices/grodvi/grodvi.man: Document it.
6714         * NEWS: Updated.
6716         * font/devlj4/generate/Makefile: Fix URL of metric files.
6718 2002-03-09  Werner LEMBERG  <wl@gnu.org>
6720         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
6722 2002-03-09  Larry Kollar  <kollar@alltel.net>
6724         * tmac/groff_ms.man: Add documentation for RS and RE macros.
6726 2002-03-08  Werner LEMBERG  <wl@gnu.org>
6728         * doc/groff.texinfo: Fixes for texinfo 4.1.
6730 2002-03-07  Werner LEMBERG  <wl@gnu.org>
6732         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
6733         included.
6734         Handle CYGWIN properly.
6736 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
6738         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
6739         * tmac/lbp.tmac: Add some font translations.
6741 2002-03-02  Werner LEMBERG  <wl@gnu.org>
6743         * font/devcp1047/R.proto, font/devlatin1/R.proto,
6744         font/devhtml/R.proto: Remove `charXXX'  entries.
6745         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
6746         where appropriate.
6748         * font/devlj4/generate/text.map: Remove `charXXX' entries.
6749         * font/devlj4/*: Regenerated all font definition files.
6750         * tmac/lj4.tmac: Load latin1.tmac.
6752         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
6753         from 2000-06-17: LJ4 metric files are *not* text files.
6755         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
6756         register to test for EBCDIC.
6758 2002-03-01  Werner LEMBERG  <wl@gnu.org>
6760         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
6761         files (as grops already does).
6762         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
6763         files.
6764         * src/devices/grops/grops.man: Document comment lines in encoding
6765         files.
6767         * tmac/cp1047.tmac: New file.
6768         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
6769         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
6770         * tmac/Makefile.sub (NORMALFILES): Updated.
6772         * tmac/ec.tmac: Don't load latin1.tmac again.
6774         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
6775         font/devps/generate/dingbats.map,
6776         font/devps/generate/dingbats.rmap, font/devps/text.enc,
6777         font/devps/generate/Makefile (symbolmap): Add header comment.
6778         * font/devps/generate/textmap: Ditto.
6779         Remove `charXXX' entries.
6780         * font/devps/symbolmap: Regenerated.
6781         * font/devps/*: Regenerated all font definition files.
6783 2002-02-28  Werner LEMBERG  <wl@gnu.org>
6785         Add color support to grodvi (for drawing colors are currently
6786         translated to gray values).
6788         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
6789         (dvi_printer): Add `cur_color' member.
6790         (dvi_printer::set_color): New function.
6791         (draw_dvi_printer): Remove `fill'.
6792         (draw_dvi_printer::fill_next): Pass environment as parameter.
6793         Update code for new color support translated to gray.
6794         (dvi_printer::set_char): Updated.
6795         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
6796         changes crossing the page border.
6797         (dvi_printer::draw): Updated.
6798         Remove cases `f' and `F'.
6799         * tmac/dvi.tmac: Add color definitions.
6800         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6802         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
6803         used incorrectly.
6805         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
6806         versions of autoconf.
6807         * configure: Updated.
6809         * doc/homepage.ms: Use `.blm'.
6810         * tmac/www.tmac (www-depth): New auxiliary variable.
6811         (www-pop-level): Don't issue HTML tag.
6812         (ULS, ULE, LI): Use absolute indentation.
6814         * src/devices/grops/ps.cc (ps_printer::begin_page,
6815         ps_printer::end_page): Switch forth and back to default color while
6816         starting a new page.
6818 2002-02-27  Werner LEMBERG  <wl@gnu.org>
6820         Add EC and TC fonts to devdvi.
6822         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
6823         * font/devdvi/generate/cork.map: Renamed to...
6824         * font/devdvi/generate/ec.map: This.
6825         Remove entry for `aq'.
6826         * font/devdvi/generate/tc.map: New file.
6827         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
6828         EC and TC fonts.
6829         (FONTS): Updated.
6830         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
6831         * font/devdvi/Makefile.sub (DEVFILES): Updated.
6832         * tmac/ec.tmac: New file.
6833         * tmac/Makefile.sub (NORMALFILES): Updated.
6834         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6835         * man/groff_char.man: Check `ECFONTS' register.
6837         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
6839 2002-02-26  Werner LEMBERG  <wl@gnu.org>
6841         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
6842         * font/devdvi/generate/cork.map: Add 'y and 'Y.
6843         * font/devdvi/*: Updated.
6844         * tmac/dvi.tmac: Formatting.
6846         Add font `HBI' for the dvi output.
6847         Add support for font families `T' and `H'.
6849         * font/devdvi/HBI: New file.
6850         * font/devdvi/B: Renamed to ...
6851         * font/devdvi/TB: This.
6852         * font/devdvi/BI: Renamed to ...
6853         * font/devdvi/TBI: This.
6854         * font/devdvi/I: Renamed to ...
6855         * font/devdvi/TI: This.
6856         * font/devdvi/R: Renamed to ...
6857         * font/devdvi/TR: This.
6858         * font/devdvi/H: Renamed to ...
6859         * font/devdvi/HR: This.
6860         * font/devdvi/Makefile.sub (DEVFILES): Updated.
6861         * font/devdvi/generate/Makefile (HBI): New rule.
6862         (FONTS): Updated.
6863         (R, I, B, BI, H): Renamed to ...
6864         (TR, TI, TB, TBI, HR): This, respectively.
6865         (srcdir): Fixed.
6866         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6867         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
6868         Add `styles' and `family' keywords.
6869         * tmac/dvi.tmac: Alias `H' to `HR'.
6870         Add some fspecial requests for italic fonts.
6871         Add TR and TI as special.
6872         Add support for `_' with font CWI.
6874         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
6875         operator `:'.  Until now, the expression `0:1' would return 2
6876         instead of 1.
6878 2002-02-25  Werner LEMBERG  <wl@gnu.org>
6880         * man/groff_char.man: Added some missing PS glyph names (from the
6881         Adobe Glyph List).
6882         * font/devps/generate/textmap, font/devps/symbolmap: Add
6883         `arrowupdn'.
6885         * doc/groff.texinfo: Minor additions and fixes.
6886         * man/groff_diff.man: Remove documentation of fp request.  This
6887         is already covered in the original troff manual.
6888         Updated to be consistent with other doc files.
6889         * NEWS: Updated.
6891 2002-02-24  Werner LEMBERG  <wl@gnu.org>
6893         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
6894         TTYDEVDIRS.
6895         Define new variable OTHERDEVDIRS (containing `font/devlj4
6896         font/devlbp' if not EBCDIC).
6897         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
6898         (OTHERDEVDIRS): New variable.
6899         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
6900         * configure: Regenerated.
6902         * NEWS, src/devices/grotty/grotty.man: Updated.
6904 2002-02-23  Werner LEMBERG  <wl@gnu.org>
6906         * src/roff/troff/input.cc (do_overstrike, do_bracket,
6907         get_line_arg): Honour input level.
6909         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
6911         * font/*/*: Implement it in all font files.
6912         * font/devps/generate/textmap, font/devps/generate/symbolchars,
6913         * font/devps/symbolmap: Updated.
6914         * font/devlj4/generate/text.map: Updated.
6915         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
6916         * font/devdvi/generate/texmi.map: Updated.
6918         * font/devutf8/R.proto: Remove all `charXXX' entries.
6919         * font/devutf8/NOTES: Updated.
6921         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
6922         version 4.1.0.
6924         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
6926         * NEWS, man/groff_char.man: Updated.
6928 2002-02-21  Phil Lobbes  <phil@perkpartners.com>
6930         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
6932 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6934         * src/roff/grog/grog.pl: Fix computation of $refer.
6936 2002-02-19  Werner LEMBERG  <wl@gnu.org>
6938         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
6939         `snprintf' and `vsnprintf'.
6941         * src/include/htmlindicate.h: Renamed to...
6942         * src/include/htmlhint.h: This.
6943         * src/include/Makefile.sub: Updated.
6944         * src/preproc/eqn/main.cc: Updated.
6946 2002-02-18  Werner LEMBERG  <wl@gnu.org>
6948         * man/roff.man, man/groff_out.man, man/groff.man,
6949         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
6950         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
6952         * win32-diffs: Updated.
6954 2002-02-17  Werner LEMBERG  <wl@gnu.org>
6956         * doc/Makefile (clean): Add *.eps.
6957         (MEMACROS): Removed.
6958         (TFLAG): New variable.
6959         (TROFF): Use it.
6960         Add -ww.
6961         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
6962         (.me.dit): Fixed.
6963         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
6965         * tmac/www.tmac: Use dummy diversion while resetting and disabling
6966         `.tl'.
6967         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
6968         unstripped.
6969         * src/roff/troff/troff.man: Fix order of parameter description.
6971         * NEWS: Updated.
6973 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
6975         Simplify image handling for grohtml.
6976         Fix <p> bug.
6978         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
6979         comment out.
6980         (html_text::dump_stack): Don't emit newline while debugging.
6981         (html_text::do_push) [DEBUGGING]: Print more info.
6982         (html_text::check_emit_text): Fix handling of <p>.
6983         * src/devices/grohtml/html.h: Updated.
6984         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
6985         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
6986         send its data to stderr also.
6987         Update all callers.
6988         (simple_output::space_or_newline) [DEBUGGING]: Removed.
6989         * src/devices/grohtml/post-html.cc (html_printer::do_links,
6990         html_printer::html_printer): Remove `DEBUGGING' conditionals.
6992         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
6993         Removed.
6994         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
6995         is_inline_image): Removed.
6996         (html_begin_suppress, html_end_suppress): Don't take a parameter.
6997         (graphic_start, graphic_end): Removed.
6998         * src/include/htmlindicate.h: Updated.
6999         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
7000         (macroset_template): New global variable.
7001         (makeFileName): Use `macroset_template'.
7002         (write_end_image): Don't take a parameter.
7003         Don't emit newline.
7004         (write_start_image: Don't emit newline.
7005         (char_buffer::write_upto_newline): Updated.
7006         (char_buffer::skip_to_newline): Renamed to ...
7007         (char_buffer::skip_until_newline): This.
7008         Fix code.
7009         (char_buffer::write_file_troff, char_buffer::write_file_html):
7010         Simplified.
7011         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
7012         (removeAllPages): Remove `DEBUGGING' conditionals.
7013         (addRegDef, dump_args): New functions.
7014         (char_buffer::do_html, char_buffer::do_image): Handle
7015         `www-image-template' command line variable.
7016         Add more debugging code.
7017         (addps4html): Removed.
7018         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
7020         * src/preproc/eqn/main.cc: Include `ctype.h'.
7021         (suppress_html): Removed.
7022         (do_file): Updated.
7023         (inline_equation): Use `html_begin_suppress' and
7024         `html_end_suppress'.
7025         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
7026         (troff_output::start_picture, troff_output::finish_picture):
7027         Updated.
7028         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
7029         (process_input_file): Updated.
7031         * src/roff/troff/div.cc (page_number): Set page number only if the
7032         `ps4html' register isn't defined.
7033         * src/roff/troff/input.cc (image_no): New external variable.
7034         (do_suppress): Use it.
7035         * src/roff/troff/node.h (suppress_node::image_id): New member.
7036         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
7037         (suppress_node::suppress_node): Initialize `image_id' member.
7038         (suppress_node::same): Handle `image_id' also.
7039         (suppress_node::copy): Updated.
7040         (last_image_id): New global variable.
7041         (suppress_node::tprint): Use it.
7043         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
7044         HTML-IMAGE-END.
7045         * tmac/pspic.mac (PSPIC): Fix html support.
7046         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
7047         * tmac/www.tmac (www-image-template): Set up.
7048         (HTMLINDEX): Renamed to...
7049         (HX): This.
7050         (BODYCOLOR): Renamed to...
7051         (BCL): This.
7052         (BACKGROUND): Renamed to...
7053         (BGIMG): This.
7054         (URL): Change order of parameters for consistency.
7055         (MAILTO): Renamed to...
7056         (MTO): This.
7057         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
7058         (IMG, PIMG, MPIMG): This.
7059         (HTML-H-BEGIN, HTML-H-END): Renamed to...
7060         (HnS, HnE): This.
7061         (LINKS): Renamed to...
7062         (LK): This.
7063         (LINE): Renamed to...
7064         (HR): This.
7065         (NO-AUTO-RULE): Renamed to...
7066         (NHR): This.
7067         (HTML-TL): Renamed to...
7068         (HTL): This.
7069         (UL-BEGIN, UL-END): Renamed to...
7070         (ULS, ULE): This.
7071         (DROPCAP): Renamed to...
7072         (DC): This.
7073         (TS, TE, EQ, EN): Provide default definitions.
7074         (www-make-unique-name): Updated.
7075         (HTML-IMAGE-INLINE): Fix typo.
7076         * tmac/groff_www.man: Updated.
7078         * doc/Makefile (homepage.html): Add option -r to grohtml.
7079         Use shortened image name.
7080         * doc/groff.texinfo: Updated info on grohtml strings and macros.
7081         * doc/homepage.ms: Updated and extended.
7083 2002-02-14  Werner LEMBERG  <wl@gnu.org>
7085         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
7087         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
7088         SGR_BACK_DEFAULT_COLOR): Replaced with ...
7089         (tty_printer::put_color): Use it.
7090         (ttr_printer::end_page): Simplify.
7092 2002-02-13  Werner LEMBERG  <wl@gnu.org>
7094         * tmac/groff_tmac.man: Moved to...
7095         * man/groff_tmac.man: This place.
7096         * tmac/Makefile.sub, man/Makefile.sub: Updated.
7098 2002-02-12  Werner LEMBERG  <wl@gnu.org>
7100         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
7101         $(COMPILE.c) to not include groff's assert.h.
7103         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
7104         variable.
7105         * NEWS, src/drivers/grotty/grotty.man: Document it.
7107 2002-02-11  Werner LEMBERG  <wl@gnu.org>
7109         * src/libs/snprintf/snprintf.c: Updated to latest version
7110         (2002-02-11).
7112         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
7113         test whether there is `.]' also.
7114         Don't check for spaces after `.['.
7115         * src/roff/grog/grog.sh: Do the same.
7117 2002-02-10  Werner LEMBERG  <wl@gnu.org>
7119         Illegal -> Invalid.
7121         * src/libs/libgroff/illegal.cc: Renamed to ...
7122         * src/libs/libgroff/invalid.cc: This.
7123         (illegal_char_table): Renamed to ...
7124         (invalid_char_table): This.
7125         * src/libs/libgroff/Makefile.sub: Updated.
7126         * win32-diffs: Updated.
7128         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
7129         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
7130         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
7131         font::load), src/preproc/eqn/main.cc (read_line, main),
7132         src/preproc/eqn/lex.cc (file_input::read_line),
7133         src/preproc/pic/lex.cc (file_input::read_line,
7134         simple_file_input::get, simple_file_input::peek),
7135         src/preproc/pic/main.cc (top_input::get, top_input::peek),
7136         src/preproc/pic/pic.man, src/preproc/refer/main.cc
7137         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
7138         do_bib), src/preproc/tbl/main.cc (table_input::get),
7139         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
7140         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
7141         do_zero_width, read_request, encode_char, ps_get_line,
7142         transparent_file, get_char_for_escape_name, transparent_translate,
7143         asciify, input_char_description, read_string, set_string),
7144         src/roff/troff/env.cc (environment::add_html_tag),
7145         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
7147         * src/include/lib.h: Updated.
7149         * src/preproc/eqn/eqn.cc: Removed.
7151         * NEWS: Updated.
7153         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
7155 2002-02-09  Werner LEMBERG  <wl@gnu.org>
7157         * doc/gnu.xpm: New image.
7158         * doc/Makefile (DOCS): Add homepage.ps.
7159         Add rules for converting xpm->png and xpm->eps.
7160         Use `gnu.{xpm,eps}' as image names.
7161         * doc/homepage.ms: Updated.
7163 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
7165         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
7166         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
7167         Remove calls to `B1' and `B2'
7168         (PNG-IMAGE): New macro for inclusion of images in PNG format.
7169         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
7170         auxiliary variables for MARGIN-PNG-IMAGE.
7171         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
7172         auxiliary macros for MARGIN-PNG-IMAGE.
7173         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
7174         the margin.
7175         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
7176         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
7177         (DROPCAP): New macro to produce dropcap characters.
7178         (www-do-image): Renamed back to...
7179         (HTML-DO-IMAGE): This.
7180         Updated all callers.
7182         * doc/Makefile (gnubw.eps): Updated.
7183         * doc/homepage.ms: Updated.
7185 2002-02-08  Werner LEMBERG  <wl@gnu.org>
7187         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
7188         Added `linethick' to table in section `Style Variables'.
7190 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
7192         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
7194 2002-02-07  Werner LEMBERG  <wl@gnu.org>
7196         Adding options -C (compatibility mode) and -c (grotty's old output
7197         scheme) to nroff.
7199         * src/roff/nroff/nroff.sh: Implement it.
7200         Remove `-Wall'.
7201         * NEWS, src/roff/nroff/nroff.man: Updated.
7203         * PROBLEMS: Document bison 1.32 bug.
7205         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
7207         * src/roff/troff/node.cc (make_tfont): Define it earlier.
7208         * src/roff/troff/div.h: Add prototype for `end_diversions'.
7209         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
7210         * src/roff/troff/env.h: Add prototype for `title'.
7212         Adding EBCDIC support to grotty.
7214         * src/devices/grotty/tty.cc (CSI): New macro.
7215         (SGR_*, tty_printer::put_color): Use it.
7217 2002-02-06  Werner LEMBERG  <wl@gnu.org>
7219         Implementing color support in grotty.  The new switch -c activates
7220         the old drawing scheme, disabling color at the same time.  The new
7221         switch `-i' selects italic instead of underlining (SGR only).
7223         * src/devices/grotty/tty.cc (putstring): New define instead of
7224         `fputs'.  Updated all callers.
7225         (old_drawing_scheme): New global variable.
7226         (COLOR_CHANGE): New enum value.
7227         (SGR_*): New defines containing color handling escape sequences.
7228         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
7229         (glyph): New members `back_color_idx' and `fore_color_idx'.
7230         (glyph::order): Add COLOR_CHANGE.
7231         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
7232         `is_underline', `is_bold', `cu_flag', `tty_colors'.
7233         New methods `make_underline', `make_bold', `color_to_idx',
7234         `change_color', `put_color'.
7235         (cu_flag): Moved into `tty_printer' class.
7236         (tty_printer::tty_printer): Initialize colors.
7237         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
7238         tty_printer::draw, tty_printer::end_page): Handle colors also.
7239         (main): Add options `-c' and `-i'.
7240         (usage): Updated.
7241         * NEWS, src/devices/grotty/grotty.man: Updated.
7243         * src/include/errarg.h (errarg): Add support for `unsigned int'.
7244         * src/libs/libgroff/errarg.c: Implement it.
7246         * src/include/printer.h (printer): Add `change_color' method
7247         (currently used by grotty only).
7248         * src/libs/libdriver/printer.cc: Implement it.
7249         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
7250         call to `pr->change_color'.
7252         * src/roff/troff/node.cc (troff_output_file::fill_color,
7253         troff_output_file::glyph_color): Call `do_motion'.
7255         * tmac/tty.tmac: Add color definitions.
7257         * src/roff/groff/groff.man: Minor fixes.
7259 2002-02-05  Bernd Warken  <bwarken@mayn.de>
7261         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
7262         it.  This is a preparation for future changes.
7264 2002-02-05  Werner LEMBERG  <wl@gnu.org>
7266         * src/roff/troff/input.cc (process_input_stack): Fix the case
7267         where leading spaces are followed by \f or \s; previously, an
7268         incorrect space width has been used.
7270         * doc/roff.man (quoted_char): Fix argument.
7271         (comment): Define string.
7273 2002-02-04  Larry Kollar  <kollar@alltel.net>
7275         * doc/groff.texinfo: More fixes.
7277 2002-02-04  Werner LEMBERG  <wl@gnu.org>
7279         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
7280         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
7281         `restore_compatibility' before `output_string' -- the LINE_STRING
7282         register now already contains proper switches from and to
7283         compatibility mode.
7285         * man/groff_char.man: Add Euro symbol.
7286         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
7287         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
7288         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
7289         Other minor fixes.
7291         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
7292         texinfo->pdf.
7293         (.texinfo.html): Add support for texinfo->html.
7295 2002-02-03  Werner LEMBERG  <wl@gnu.org>
7297         Added three new requests `ds1', `as1', and `ami'.  The former two
7298         are equivalent to `ds' and `as' with the difference that
7299         compatibility mode is saved on entry, switched off during string
7300         expansion, and restored on exit.  The latter is the pendant to `dei'
7301         for `am'.
7303         (do_define_string): Use `define_mode' and `calling mode'.
7304         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
7305         end of string, respectively.
7306         (define_string, append_string): Use `calling_mode'.
7307         (define_nocomp_string, append_nocomp_string,
7308         define_string_indirect): New functions.
7309         (init_input_requests): Updated.
7310         * NEWS, man/groff_diff.man, man/groff.man: Document it.
7312         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
7313         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
7314         mm macro package accesses this string register directly.
7315         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
7317         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
7318         compatibility mode.
7320 2002-02-02  Larry Kollar  <kollar@alltel.net>
7322         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
7324 2002-01-31  Werner LEMBERG  <wl@gnu.org>
7326         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
7328 2002-01-31  Bernd Warken  <bwarken@mayn.de>
7330         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
7331         * man/groff_out.man: Revised and updated.
7333 2002-01-30  Bernd Warken  <bwarken@mayn.de>
7335         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
7336         out the unused `{' and `}' commands.  Undefined by default.
7337         (IntArray): Make `data' private.
7338         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
7339         new methods instead.
7340         (skip_line_D, skip_to_end_of_line): New functions.
7341         (get_D_fixed_args): Use `skip_line_D'.
7342         Changed to handle dummy odd arguments by ...
7343         (get_D_fixed_args_odd_dummy): This new function.
7344         (get_D_variable_args): Split some code into ...
7345         (get_possibly_integer_args): This new function.
7346         (send_draw): Use more `const'.
7347         (delete_current_env): New function.
7348         (position_to_end_of_args): Use `size_t'.
7349         Updated.
7350         (send_draw): Updated.
7351         (parse_D_command): Handle `c', `C', and `t' better.
7352         Updated.
7353         (do_file): Updated.
7355 2002-01-29  Werner LEMBERG  <wl@gnu.org>
7357         * NEWS: Revised.
7358         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
7359         @Def...ListEnd which replaces @Def...x.  This is necessary to get
7360         proper HTML output -- see the comment in the file for more
7361         information.
7362         Updated all calls.
7364 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
7366         Fixes to make color changes of 2002-01-21 work with grohtml.
7368         * src/devices/grohtml/post-html.cc (style): Updated.
7369         (html_printer): Remove unused methods.
7370         (html_printer::do_font, html_printer::draw, html_printer::set_char,
7371         html_printer::special): Updated.
7372         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
7373         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
7374         Added some debugging code.
7375         (html_text::start_tag): Updated.
7376         (html_text::do_push): New method.
7377         (html_text::push_para): Call it.
7378         Add method for handling color.
7379         (html_text::do_color): Updated.
7380         (html_text::shutdown): Handle color.
7381         * src/devices/grohtml/html-text.h (tag_definition): New member
7382         `col'.
7383         Updated.
7385 2002-01-28  Werner LEMBERG  <wl@gnu.org>
7387         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
7389 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
7391         Add two switches -a and -g to control the antialiasing bits for
7392         text and graphics, respectively.
7394         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
7395         `-g'.
7396         * src/devices/grohtml/grohtml.man: Document them.
7397         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
7398         New macros.
7399         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
7400         (setupAntiAlias): New function.
7401         (createAllPages): Updated.
7402         (scanArguments): Handle `-a' and `-g'.
7403         (main): Call `setupAntiAlias'.
7404         * NEWS: Updated.
7406 2002-01-27  Werner LEMBERG  <wl@gnu.org>
7408         * doc/groff.texinfo (Def*): Call index function after deffn.
7410         * tmac/html.tmac: Call `nroff' request.
7412 2002-01-26  Larry Kollar  <kollar@alltel.net>
7414         * tmac/groff_ms.man: Add some omissions.
7416 2002-01-25  Larry Kollar  <kollar@alltel.net>
7418         * tmac/groff_ms.man: Typographical improvements.
7420 2002-01-25  Werner LEMBERG  <wl@gnu.org>
7422         * doc/groff.texinfo: Updated version and copyright.
7423         * src/devices/grops/grops.man: Updated.
7425         * tmac/groff_tmac.man: Fix `ig' macro.
7427         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
7428         nroff mode.
7429         Use `.ne' unconditionally everywhere.
7430         (TS): Only insert some vertical space.  Doing a page break is no
7431         longer necessary due to the redefinition of the `ne' request.
7433         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
7434         warning for unknown subcommands but parse and pass them to the
7435         device driver.
7437 2002-01-24  Werner LEMBERG  <wl@gnu.org>
7439         * tmac/groff_www.man, NEWS: Fix typos.
7441 2002-01-21  Werner LEMBERG  <wl@gnu.org>
7443         Complete revision of color support:
7445           Adapt programs to the new libdriver/input.cc.
7447           Color spaces are no longer converted to RGB but transferred as-is
7448           in the troff intermediate output format.
7450           Handle default color gracefully.  troff now supports a `default'
7451           color (which can't be changed).
7453           grops will now use the proper color space functions if available.
7455           Update pic.
7457         Note that currently grohtml doesn't handle colors properly.  This
7458         has to be fixed.
7460         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
7461         (ui_to_a): New function.
7462         * src/include/lib.h: Updated.
7464         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
7465         (color): Simplified; removed all `double' members and methods.
7466         A new array `components' now holds the color parameters.
7467         (color::is_default, color::get_components): New methods.
7468         (color::operator==, color:operator!=): New.
7469         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
7470         to make access to the `components' array more comprehensible.
7471         * src/libs/libgroff/color.cc: Implement new color support.
7472         (atoh): Small fixes.
7473         (color::read_encoding): Simplified for new troff intermediate color
7474         output format.
7475         (default_color): New global variable.
7477         * src/roff/troff/input.cc (default_symbol): New global variable.
7478         (lookup_color): Use it.
7479         (default_black): Removed.
7480         (do_glyph_color, do_fill_color): Simplified.
7481         (define_color): Handle default color.
7482         Improve warnings.
7483         (do_if_request): Handle default color.
7484         * src/roff/troff/env.cc (environment::environment): Initialize
7485         colors with `default_color'.
7486         * src/roff/troff/node.cc (troff_output_file::put): Add method
7487         for `unsigned int'.
7488         (troff_output_file::hex): Removed.
7489         (troff_output_file::fill_color, troff_output_file::glyph_color):
7490         Updated to include/color.h and libdriver/input.cc.
7492         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
7493         fill color properly (identically to the outline color).  \D'f...'
7494         doesn't work any more.
7495         All function calls to it updated.
7497         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
7498         Updated.
7499         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
7500         Updated.
7502         * src/devices/grops/ps.cc (ps_output::put_color): New method.
7503         (ps_printer::sbuf_color): Make a real member instead of pointer.
7504         (ps_printer::fill_color, ps_printer::output_color): Removed.
7505         (ps_printer::ps_printer): Updated.
7506         (ps_printer::set_char): Ditto.
7507         (ps_printer::set_color): Use various color schemes.
7508         Use `put_color' method.
7509         (ps_printer::flush_sbuf): Don't set color.
7510         (ps_printer::fill_path): Take `environment' as parameter.
7511         Simplify color handling.
7512         (ps_printer::set_line_thickness): Renamed to ...
7513         (ps_printer::set_line_thickness_and_color): This (and updated).
7514         (ps_printer::set_color): Change second parameter from `complete'
7515         to `fill' which better describes what it does.
7516         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
7517         and text in the right order.
7518         Updated.
7519         Remove branches for `f' and `F'; this is handled by
7520         libdriver/input.cc.
7521         * src/devices/grops/ps.h: Updated.
7522         * font/devps/prologue (FL): Redefined.
7523         ({F,C}r,k,g: New color functions (with and without filling).
7525         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
7526         * man/groff_diff.man, man/groff.man, man/groff_out.man,
7527         doc/groff.texinfo, NEWS: Updated.
7529 2002-01-20  Bernd Warken  <bwarken@mayn.de>
7531         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
7532         in this file for what has been changed.
7534 2002-01-19  Werner LEMBERG  <wl@gnu.org>
7536         * test-groff: Fix GROFF_FONT_PATH.
7537         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
7538         is read before .TH or .Dd is parsed.
7540 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
7542         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
7543         quadrant boundaries.
7545 2002-01-18  Werner LEMBERG  <wl@gnu.org>
7547         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
7548         applied last patch.
7550 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
7552         * tmac/doc.common: Initialize %I register for the %I macro to
7553         avoid (harmless) warning.
7554         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
7555         when in the SYNOPSIS section.
7557 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
7559         * src/preproc/pic/lex.cc (get_token): Fix typo.
7561 2002-01-17  Werner LEMBERG  <wl@gnu.org>
7563         * devices/grops/ps.cc: Fix incorrectly applied last patch.
7565 2002-01-17  Larry Kollar  <kollar@alltel.net>
7567         * tmac/groff_ms.man: Completely rewritten.
7569 2002-01-16  Werner LEMBERG  <wl@gnu.org>
7571         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
7573 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
7575         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
7576         fill colors.
7577         (ps_printer::draw): Ditto.
7579 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
7581         * tmac/groff_mdoc.man: Minor fixes.
7583 2002-01-13  Werner LEMBERG  <wl@gnu.org>
7585         * man/groff_out.man: Some fixes.
7587 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
7589         * doc/pic.ms: Fix typos.
7591 2002-01-12  Werner LEMBERG  <wl@gnu.org>
7593         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
7595 2002-01-10  Werner LEMBERG  <wl@gnu.org>
7597         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
7598         symbols.
7599         * NEWS: Updated.
7601 2002-01-09  Bernd Warken  <bwarken@mayn.de>
7603         * man/groff_out.man: Revised.
7604         * man/roff.man: Minor fixes.
7605         * src/roff/troff/troff.man: Some reordering.
7607 2002-01-09  Werner LEMBERG  <wl@gnu.org>
7609         * tmac/an-old.tmac: Add dummy macros for equation support.
7611 2002-01-07  Werner LEMBERG  <wl@gnu.org>
7613         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
7615         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
7616         man pages.
7617         * tmac/groff_man.man: Small improvements.
7619 2002-01-07  Bernd Warken  <bwarken@mayn.de>
7621         * man/groff_diff.man: Revised.
7623 2002-01-06  Werner LEMBERG  <wl@gnu.org>
7625         * tmac/www.tmac: Remove extraneous backslash.
7627 2002-01-06  Bernd Warken  <bwarken@mayn.de>
7629         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
7631 2002-01-05  Werner LEMBERG  <wl@gnu.org>
7633         Integrated groffer, contributed by Bernd Warken.
7635         * contrib/groffer/*: New.       
7636         * Makefile.in, NEWS: Updated.
7638 2002-01-04  Werner LEMBERG  <wl@gnu.org>
7640         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
7641         registers defined in macro packages.
7642         Revising the ms part.
7644 2002-01-04  Larry Kollar  <kollar@alltel.net>
7646         * doc/groff.texinfo: Add documentation for ms macros.
7648 2002-01-02  Werner LEMBERG  <wl@gnu.org>
7650         First step in adding PS support for the Euro symbol.  `eu' is the
7651         official Euro logo, `Eu' is a font-specific glyph variant.
7653         * font/devps/text.enc: Add `Euro' at position 9.
7654         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
7655         * font/devps/symbolmap: Regenerated.
7657         * NEWS: Updated.
7659 2002-01-02  Bernd Warken  <bwarken@mayn.de>
7661         * man/roff.man: Revised.
7663 2002-01-01  Bernd Warken  <bwarken@mayn.de>
7665         * src/roff/groff/groff.man: Completely rewritten.
7667 2001-12-31  Werner LEMBERG  <wl@gnu.org>
7669         * doc/Makefile: Updated.
7671 2001-12-30  Werner LEMBERG  <wl@gnu.org>
7673         * tmac/www.tmac: Make all names of internal macros/registers/strings
7674         lowercase, and prepend `www-'.
7675         Other minor changes.
7676         * src/roff/troff/troff.man: Add preprocessor string at BOF.
7678 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
7680         Implement option `-b' in grohtml to set the HTML background colour.
7682         * src/devices/grohtml/post-html.cc (default_background): New global
7683         variable.
7684         (html_printer::html_printer): Initialize `background' to
7685         `default_background'.
7686         (main): Implement option `-b'.
7687         (usage): Updated.
7688         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
7689         of `-b' option.
7690         * src/devices/grohtml/grohtml.man: Updated.
7691         * doc/Makefile (.ms.html): Use `-b'.
7692         * tmac/html.tmac: Don't set background color.
7694         Add new grohtml tag `.html-tl'.
7696         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
7697         member variable.
7698         (title_desc::title_desc): Updated.
7699         (html_printer::troff_tag): Handle `.html-tl'.
7700         (html_printer::write_title): Use `with_h1'.
7701         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
7702         (HTML-TL): New macro.
7704         Add support for unordered lists in HTML.
7706         * tmac/www.tmac (www-level): New auxiliary register.
7707         (www-level1, www-level2, www-level3): New auxiliary strings.
7708         (www-push-level, www-pop-level): New auxiliary macros
7709         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
7711         Miscellaneous.
7713         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
7714         (DEFAULT_VERTICAL_OFFSET): Removed.
7715         (IMAGE_BOARDER_PIXELS): Set to 0.
7716         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
7717         (vertical_offset): Initialize with 0.
7718         (gsPaper): New global variable.
7719         (get_resolution): Scan for and return unsigned int.
7720         (get_papersize): New function to get paper length from devps/DESC.
7721         (determine_vertical_offset): New function.
7722         (createAllPages): Produce gray-level images and use proper page
7723         length.
7724         (createImage): Use `-quiet' option of pnmcrop.
7725         (addZ): Fix passing of `-Z'.
7726         (scanArguments): Fix handling of `-o'.
7727         (main): Call `determine_vertical_offset'.
7728         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
7729         code for `l'.
7731         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
7732         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
7733         glyph descenders properly.
7735         * doc/homepage.ms: Include `gnubw.eps'.
7736         * doc/Makefile (gnubw.eps): New rule.
7737         (homepage.html): Depend on `gnubw.eps'.
7739 2001-12-25  Werner LEMBERG  <wl@gnu.org>
7741         * src/roff/troff/input.cc (default_black): Fix return value.
7743 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
7745         * tmac/doc-common (Dt): Change output of architecture strings.
7746         Do some syntax cleanup.
7747         * tmac/groff_mdoc.man: Updated.
7749 2001-12-23  Werner LEMBERG  <wl@gnu.org>
7751         Adding an `itc' request (input line trap accepting \c).
7753         * src/roff/troff/env.h (environment): New member
7754         `continued_input_trap'.
7755         Make `do_input_trap' a friend function instead of `input_trap'.
7756         * src/roff/troff/env.cc (environment::environment,
7757         environment::copy): Updated.
7758         (environment::newline): Implement it.
7759         (do_input_trap): New function.
7760         (input_trap): Call `do_input_trap'.
7761         (input_trap_continued): New function.
7762         (init_env_requests): Updated.
7763         * src/roff/troff/TODO: Updated.
7765         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
7766         `.it'.
7768         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
7770 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
7772         * tmac/doc-common, tmac/doc-syms: Small updates.
7774 2001-12-22  Colin Watson  <cjwatson@debian.org>
7776         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
7778 2001-12-22  Bernd Warken  <bwarken@mayn.de>
7780         * MANIFEST: New file.
7782 2001-12-22  Werner LEMBERG  <wl@gnu.org>
7784         * src/preproc/grn/grn.man: Updated.
7786 2001-12-22  Solar Designer  <solar@openwall.com>
7788         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
7789         (DBRead): Use it.
7791 2001-12-19  Werner LEMBERG  <wl@gnu.org>
7793         Implement a fallback character request `.fchar'.
7795         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
7796         (is_fallback): New inline function.
7797         * src/roff/troff/input.cc (do_define_character): New function.
7798         (define_character): Call `do_define_character'.
7799         (define_fallback_character): New function.
7800         (init_input_requests): Add `fchar'.
7801         (charinfo::charinfo): Updated.
7802         (charinfo::set_macro): New argument to set `fallback' flag.
7803         * src/roff/troff/node.cc (make_glyph_node, make_node,
7804         node::add_char): Check `fallback' flag.
7805         * NEWS, man/groff_diff.man, man/groff_man: Updated.
7807 2001-12-16  Werner LEMBERG  <wl@gnu.org>
7809         * groff.texinfo: Document exact search algorithm for glyphs.
7811 2001-12-15  Werner LEMBERG  <wl@gnu.org>
7813         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
7814         the left side of $(MANPAGES) rule to make it always non-empty.
7816 2001-12-14  Werner LEMBERG  <wl@gnu.org>
7818         * src/roff/troff/input.cc (default_black): Define default color
7819         `black' if not yet defined.
7821 2001-12-13  Werner LEMBERG  <wl@gnu.org>
7823         Implement new string-valued register `.fn' to return the current
7824         real (internal) font name.
7826         * env.cc (environment::get_font_name_string): New function.
7827         (init_env_requests): Add `.fn' register.
7828         * env.h (environment): Updated.
7829         * node.cc (font_info): Make `get_font_name' a friend.
7830         (get_font_name): New function.
7831         * node.h: Updated.
7833         * man/groff_diff.man, man/groff.man, NEWS: Updated.
7835 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7837         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
7839 2001-12-12  Werner LEMBERG  <wl@gnu.org>
7841         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
7843 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
7845         * man/groff_diff.man: Adding documentation for \O.
7847 2001-12-10  Werner LEMBERG  <wl@gnu.org>
7849         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
7850         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
7852 2001-12-09  Werner LEMBERG  <wl@gnu.org>
7854         * man/roff.man: Revised.
7855         * src/roff/groff/groff.man: Replace man page references with a
7856         pointer to roff.man.
7858 2001-12-09  Bernd Warken  <bwarken@mayn.de>
7860         * man/roff.man: Completely rewritten.
7862 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7864         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
7866 2001-12-05  Werner LEMBERG  <wl@gnu.org>
7868         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
7869         longer used.
7870         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
7871         order of initializers.
7872         * NEWS: Updated.
7874 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
7876         * doc/groff.texinfo: Fix documentation of \O.
7878         * src/devices/grohtml/html-text.cc (html_text::do_indent,
7879         html_text::do_table, html_text::do_emittext, html_text::do_para):
7880         Use `const' for first argument.
7881         (html_text::do_table): Use cast.
7882         * src/devices/grohtml/html-text.h: Updated.
7883         * src/devices/grohtml/output.cc (simple_output::put_string): Add
7884         method for `const string &s'.
7885         * src/devices/grohtml/html.h: Updated.
7886         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
7887         (ANCHOR_TEMPLATE): Modified.
7888         (manufacture_headings): New global variable to handle `-h' option.
7889         (is_subsection): Removed.
7890         (char_buffer::add_string): Add `const' to first argument.
7891         Protect against invalid string argument.
7892         Add method for `const string &s'.
7893         (text_glob): Completely redesigned.
7894         (page): Use `const' for strings and remove string length variable.
7895         (page::add_html): Removed.
7896         (page::add_end_encode): New member function.
7897         (to_unicode): Moved upwards.
7898         (title_desc, header_desc): Updated.
7899         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
7900         definition.
7901         (html_printer::is_bold, html_printer::make_bold): New member
7902         functions.
7903         (html_printer::end_of_line): Updated.
7904         (generate_img_src, html_printer::do_auto_image,
7905         html_printer::do_title, html_printer::write_header,
7906         html_printer::determine_header_level, html_printer::do_heading,
7907         html_printer::do_linelength, html_printer::do_pageoffset,
7908         html_printer::do_indentation, html_printer::do_tempindent,
7909         html_printer::do_indentedparagraph, html_printer::do_break,
7910         html_printer::flush_sbuf, get_html_translation,
7911         html_printer::begin_page, html_printer::special): Rewritten to get
7912         rid of static string length limit.
7913         (html_printer::troff_tag): Added `.no-auto-rule'.
7914         (html_printer::flush_globs): Small fix.
7915         (html_printer::determine_space): Don't compute `space_width'.
7916         (html_printer::translate_to_html): Renamed to ...
7917         (html_printer::emit_html): This (with updates).
7918         (html_printer::write_header): Implement `-h' option.
7919         (html_printer::draw): Remove commented-out code.  Handle `F'
7920         command.
7921         (html_printer::add_char_to_sbuf): Removed.
7922         (html_printer::add_to_sbuf): Rewritten.
7923         (html_printer::sbuf_continuation): Fixed.
7924         (html_printer::seen_backwards_escape, reverse,
7925         html_printer::remove_last_char_from_sbuf): Removed.
7926         (char_translate_to_html, str_translate_to_html): Removed.
7927         (html_printer::overstrike): New function member.
7928         (html_printer::set_char): Use it.
7929         (html_printer::do_body): New function member.
7930         (html_printer::~html_printer): Use it.
7931         (main): Handle `-h' option.
7932         (usage): Updated.
7933         * src/devices/grohtml/grohtml.man: Document -h switch.
7935         * src/preproc/html/pre-html.cc: Include searchpath.h
7936         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
7937         (get_resolution): New function.
7938         (checkImageDir): Use `0777' permissions in mkdir()
7939         (write_start_image): Rewritten to use `\O[5...]'.
7940         (createImage, generateImages): Updated.
7941         (main): Handle `F' and `h' options.
7942         Use `get_resolution'.
7944         * src/roff/troff/input.cc (begin, end, image): Removed.
7945         (do_suppress): Take parameter.
7946         Handle modified syntax of `\O'.
7947         (token::next): Updated.
7948         (init_markup_requests): Removed.
7949         (main): Updated.
7951         * src/roff/troff/div.h: Add declaration for begin_page().
7953         * tmac/color-html.tmac: Removed.  Contents moved to...
7954         * tmac/html.tmac: Here.  Set background color.
7955         * tmac/color.tmac: Removed.  Contents moved to...
7956         * tmac/ps.tmac: Here.
7957         * tmac/www.tmac: Remove the title command when generating images
7958         for html.
7959         (NO_AUTO_RULE): New macro.
7960         (HTML_DO_IMAGE): Use revised `\O' escapes.
7961         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
7963 2001-12-02  Werner LEMBERG  <wl@gnu.org>
7965         * tmac/groff_mdoc.man: Fix typo.
7967 2001-12-01  Colin Watson  <cjwatson@debian.org>
7969         * man/roff.man: Fix typo.
7971 2001-11-29  Werner LEMBERG  <wl@gnu.org>
7973         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
7974         stdlib.h.
7976         * src/roff/troff/input.cc (read_draw_node): Emit error message if
7977         more than one argument to \D'f ...'.
7979         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
7981 2001-11-28  Werner LEMBERG  <wl@gnu.org>
7983         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
7984         loaded only once.
7986         * tmac/groff_man.man: Minor cosmetic fix.
7988 2001-11-27  Werner LEMBERG  <wl@gnu.org>
7990         * src/roff/groff/groff.man, tmac/groff_tmac.man,
7991         tmac/groff_www.man: s/mwww/www/.
7993 2001-11-26  Werner LEMBERG  <wl@gnu.org>
7995         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
7996         * configure: Regenerated.
7997         * win32-diffs: Updated.
7999         * tmac/groff_mwww.tmac: Renamed to ...
8000         * tmac/groff_www.tmac: This.
8001         * tmac/mwww.tmac: Removed.
8002         * NEWS, tmac/Makefile.sub: Updated.
8004 2001-11-21  Werner LEMBERG  <wl@gnu.org>
8006         * doc/groff.texinfo: Improve documentation of the `\v' escape.
8007         Fix explanation of `\D' and `rt'.
8009 2001-11-20  Werner LEMBERG  <wl@gnu.org>
8011         * tmac/an-old.tmac (an-header): Set header length equal to page
8012         width.
8013         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
8014         minor fixes.
8015         * NEWS: Small fix.
8017 2001-11-19  Werner LEMBERG  <wl@gnu.org>
8019         * NEWS, man/Makefile.sub: Updated.
8021 2001-11-19  Bernd Warken  <bwarken@mayn.de>
8023         * man/ditroff.man: New file.
8025 2001-11-17  Werner LEMBERG  <wl@gnu.org>
8027         * man/groff_differences.man: Renamed to ...
8028         * man/groff_diff.man: This.  Updated.
8029         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
8031         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
8032         * src/preproc/html/pushback.cc: This.  Updated.
8033         * src/preproc/html/pushbackbuffer.h: Renamed to ...
8034         * src/preproc/html/pushback.h: This.
8035         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
8036         Updated.
8038         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
8039         * src/libs/libgroff/htmlhint.cc: This.
8040         * src/libs/libgroff/Makefile.sub: Updated.
8042         * tmac/an-old.tmac (an-end): Fix page length.
8044 2001-11-16  Werner LEMBERG  <wl@gnu.org>
8046         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
8047         * man/Makefile.sub: Include groff_differences.man.
8048         * VERSION: Set to 1.18.
8049         * REVISION: Set to 0.
8051 2001-11-16  Bernd Warken  <bwarken@mayn.de>
8053         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
8054         the second dot (or ending macro name) to end a macro.
8055         * doc/groff.texinfo: Doc fix.
8057 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
8059         * tmac/doc-common (doc-header): Handle very long document titles
8060         better.
8062 2001-11-16  Werner LEMBERG  <wl@gnu.org>
8064         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
8066 2001-11-15  Werner LEMBERG  <wl@gnu.org>
8068         * src/roff/troff/troff.man: Revised and split into troff.man and...
8069         * man/groff_differences.man: New file.
8070         * NEWS: Updated.
8072 2001-11-13  Werner LEMBERG  <wl@gnu.org>
8074         * tmac/an-old.tmac (TS, TE): New macros for table support.
8076 2001-11-12  Werner LEMBERG  <wl@gnu.org>
8078         * src/include/lib.h: Provide a fix for emx to not include
8079         groff-getopt.h.
8081 2001-10-27  Werner LEMBERG  <wl@gnu.org>
8083         * src/roff/troff/input.cc (substring_macro): Fix computation of
8084         boundary values.
8086 2001-10-20  Werner LEMBERG  <wl@gnu.org>
8088         Undo change from 2001-08-28.
8090         * src/roff/troff/input.cc (have_input): New global variable.
8091         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
8092         in compatibility mode.
8093         (process_input_stack): Use it.
8095 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
8097         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
8098         being handled as end-of-sentence characters,
8100 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
8102         * src/roff/troff/input.cc (file_iterator): New members
8103         `suppress_newline_flag' and `seen_escape'.
8104         (file_iterator::next_file): Updated.
8105         (file_iterator::fill): Use it.
8106         (string_iterator): New member `suppress_newline_flag'.
8107         (string_iterator::fill): Set it.
8108         (get_color_element): Use MAX_COLOR_VAL.
8109         * src/roff/troff/env.cc (environment): Remove `need_eol'.
8110         (no_fill): Don't set `env->ignore_next_eol'.
8111         (environment::newline): Handle `eol' tag properly.
8112         Emit `eol.ce'.
8113         (environment::add_html_tag): Set `env->ignore_next_eol'.
8114         Don't handle `.ce'.
8115         * src/roff/troff/env.h (environment): Updated.
8117         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
8118         member function.
8119         (html_printer::outstanding_eol): New member function.
8120         (html_printer::do_title): Use new functions.
8121         (html_printer::troff_tag): Test `id_eol_ce'.
8123 2001-10-10  Werner LEMBERG  <wl@gnu.org>
8125         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
8126         files work with -C also.
8128 2001-10-05  Werner LEMBERG  <wl@gnu.org>
8130         * doc/pic.ms: Minor fix.
8131         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
8132         as a valid command line switch.
8133         * src/devices/grohtml/post-html.cc (main): Ditto.
8134         (usage): Updated.
8135         * src/devices/grohtml/grohtml.man: Updated.
8136         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
8138 2001-10-04  Werner LEMBERG  <wl@gnu.org>
8140         Implementing color support in troff, pic, grops, and grohtml.  These
8141         changes are based on a major patch provided by Gaius Mulley
8142         <gaius@glam.ac.uk>.
8144         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
8145         definitions with both hex values and fractions.
8147         New escapes: \m and \M for drawing and background color,
8148         respectively.  This corresponds to the troff output commands `m'
8149         and `DF'.
8151         groff and troff accept command line switch `-c' to disable color
8152         output (which is automatically disabled in compatibility mode).
8154         New scaling indicator `f' for fractions (1f = 65536u).
8156         New conditional operator `m' to test for defined colors with `if'
8157         and `ie'.
8159         New keywords `color' (or `colour', `colored', `coloured'), `outline'
8160         (or `outlined'), and `shaded' added to pic.
8162         * src/include/color.h: New file.
8163         * src/include/driver.h: Include it.
8164         * src/include/printer.h: Include color.h.
8165         (environment): New members `col' and `fill'.
8166         (printer): Remove `adjust_arc_center' member function.
8167         * src/include/Makefile.sub: Updated.
8169         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
8170         `env.fill'.
8171         Handle `m' and `DF' troff commands.
8172         * src/libs/libgroff/color.cc: New file.
8173         * src/libs/libgroff/Makefile.sub: Updated.
8175         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
8176         (stop): Removed.
8177         (createImage): Fix computation of `y2'.
8178         Use `pnmcrop' also.
8179         (buffer::write_file_html): Remove calls to `stop'.
8181         * src/preproc/pic/common.h (common_output): New abstract function
8182         members `set_color', `reset_color', `get_last_filled', and
8183         `get_outline_color'.
8184         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
8185         (object_spec): Add members `shaded' and `outlined'.
8186         * src/preproc/pic/output.h (output): `command' is now abstract.
8187         New function members `set_color', `reset_color', `get_last_filled',
8188         and `get_outline_color'.
8189         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
8190         `outline[d]', and `shaded'.
8191         * src/preproc/pic/object.cc (output::command): Removed.
8192         (output::set_location): Moved to output.h.
8193         (graphic_object): Add protected members `outline_color' and
8194         `color_fill'.
8195         Add member functions `set_outline_color', `get_outline_color', and
8196         `set_fill_color'.
8197         (closed_object): Add member function `set_fill_color'.
8198         Add member `color_fill'.
8199         (graphic_object::print_text): Use `out->set_color' and
8200         `out->reset_color'.
8201         (box_object::print, ellipse_object::print, circle_object::print,
8202         line_object::print, spline_object::print, arc_object::print): Ditto.
8203         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
8204         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
8205         `SHADED', making them `%left'.
8206         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
8207         * src/preproc/pic/tex.cc (tex_output): New dummy function members
8208         `set_color', `reset_color', `get_last_filled', and
8209         `get_outline_color'.
8210         * src/preproc/pic/troff.cc (simple_output): New abstract function
8211         members `set_color', `reset_color', and `get_last_filled'.
8212         (simple_output::polygon, simple_output::circle,
8213         simple_output::ellipse): Use `get_last_filled'.
8214         (troff_output): New members `last_filled' and `last_outlined'.
8215         New function members `set_color', `reset_color', `get_last_filled',
8216         and `get_outline_color'.
8217         (troff_output::finish_picture): Use `reset_color'.
8218         (troff_output::set_fill): Test `last_filled'.
8219         * src/preproc/pic/pic.man: Updated.
8221         * src/roff/groff/groff.cc (main): Implement `-c' option.
8222         (synopsis, help): Updated.
8223         src/roff/groff/groff.man: Updated.
8225         * src/roff/troff/troff.h: Include color.h.
8226         (warning_type): Add WARN_COLOR.
8227         * src/roff/troff/env.h (environment): New members
8228         `{cur,prev}_{glyph,fill}_color'.
8229         New member functions `get_{prev_,}{glyph,fill}_color'.
8230         * src/roff/troff/env.cc: Initialize and implement them.
8231         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
8232         Replace `NULL' with `0' everywhere for consistency.
8233         (lookup_color, default_black, do_glyph_color, do_fill_color,
8234         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
8235         define_color): New functions.
8236         (token::next): Implement \M and \m escapes.
8237         (do_if_request): Implement `m' operator.
8238         (usage): Updated.
8239         (main): Implement `-c' option.
8240         (init_markup_requests): Add `defcolor' request.
8241         (warning_table): Add `color' warning.
8242         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
8243         classes.
8244         * src/roff/troff/node.cc (troff_output_file): New members
8245         `current_{page,glyph}color'.  New member functions `put_hex',
8246         `glyph_color', and `fill_color'.
8247         (glyph_color_node::*, fill_color_node::*): Implement it.
8248         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
8249         (parse_term): Add support for `f'.
8250         * src/roff/troff/troff.man: Updated.
8252         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
8253         entry for `F'.
8254         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
8255         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
8257         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
8258         (tag_definition): Use `void *' for arg1.
8259         (html_text): New member functions `do_color' and `done_color'.
8260         Use `void *' for second parameter of `push_para' member function.
8261         New `push_para' member function with a single parameter.
8262         Use `char *' for parameter of `issue_table_begin' member funtion.
8263         New `issue_color_begin' member function.
8264         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
8265         COLOR_TAG.
8266         (html_text::issue_color_begin): New function.
8267         (html_text::issue_table_begin): Use `char *' for parameter.
8268         (html_text::start_tag, html_text::shutdown,
8269         html_text::check_emit_text): Updated.
8270         (html_text::push_para): Use `void *' for second parameter.
8271         Add same function with only one parameter.
8272         (html_text::do_*): Updated.
8273         (html_text::do_color, html_text::done_color): New functions.
8274         * src/devices/grohtml/post-html.cc (style): New member `col'.
8275         Mew member `style' with 6 parameters.
8276         (style::style, style::operator==): Updated.
8277         (html_printer::do_font): Use it.
8278         (html_printer::draw): Add dummy entry for `F'.
8279         (html_printer::set_char): Updated.
8280         * src/devices/grohtml/grohtml.man: Updated.
8282         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
8283         trailing zeroes removed.
8284         (ps_printer): New members `sbuf_color', `fill_color', and
8285         `output_color'.
8286         Removed member `fill'.
8287         New member function `set_color'.
8288         (ps_printer::ps_printer, ps_printer::set_char): Updated.
8289         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
8290         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
8292         * tmac/color-html.tmac, tmac/color.tmac: New files.
8293         * tmac/troffrc: Include them.
8294         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
8295         * tmac/Makefile.sub: Updated.
8297         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
8298         man/groff.man: Updated.
8299         * font/devps/prologue.ps: Define FC and CO functions.
8301 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
8303         Fix incorrect cropping of images and incorrect handling of special
8304         characters.  Fix handling of file names in \O.
8306         * src/include/geometry.h: New file.
8307         * src/libs/libgroff/geometry.cc: New file.
8308         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
8309         to `geometry.cc'.
8310         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
8311         initial spaces.
8312         (do_suppress): Updated.
8313         * src/roff/troff/node.cc: Include geometry.h.
8314         (troff_output_file::flush_tbuf): Fixed parameters to
8315         `check_output_limits'.
8316         (troff_output_file::check_charinfo): Ditto.
8317         (troff_output_file::determine_line_limits): Add support for `Da'
8318         and `Dl' commands.
8320         * src/devices/grohtml/post-html.cc (str_translate_to_html):
8321         Add new parameter `is_special' to decode special characters from
8322         escape sequences.
8323         (html_printer::do_title, html_printer::do_heading,
8324         html_printer::do_indentedparagraph,
8325         html_printer::translate_to_html, html_printer::special): Updated.
8327 2001-10-03  Werner LEMBERG  <wl@gnu.org>
8329         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
8330         Fix entry for config.h.
8331         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
8332         * tmac/troffrc: Translate nonbreakable space character to `\~'.
8333         * src/preproc/eqn/eqn.man: Document -d command line option.
8335 2001-09-27  Werner LEMBERG  <wl@gnu.org>
8337         * man/groff.man: Use
8339           .ev xxx
8340           .na
8341           .nh
8342           <table>
8343           .ev
8345         instead of the old code (`.ad .hy' after the table) to suppress
8346         incorrect hyphenation for grohtml output.
8348 2001-09-22  Werner LEMBERG  <wl@gnu.org>
8350         * man/groff_font.man, man/groff_out.man: Minor fixes.
8352 2001-09-20  Werner LEMBERG  <wl@gnu.org>
8354         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
8355         Arnold Robbins <arnold@skeeve.com>).
8357 2001-09-09  Werner LEMBERG  <wl@gnu.org>
8359         * configure: Regenerated with autoconf 2.52.
8361         * doc/groff.texinfo: Complete revision of indices.
8363 2001-09-07  Werner LEMBERG  <wl@gnu.org>
8365         * doc/Makefile (clean): Updated to delete all indices.
8367 2001-09-05  Werner LEMBERG  <wl@gnu.org>
8369         * src/roff/troff/troff.man: Remove superfluous line.
8371         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
8372         given on the command line (or rather, if only the default warnings
8373         are set).
8375 2001-09-03  Werner LEMBERG  <wl@gnu.org>
8377         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
8378         use .ne for TTY devices.
8380 2001-08-31  Werner LEMBERG  <wl@gnu.org>
8382         * src/roff/troff/token.h, src/roff/troff/input.cc:
8383         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
8385 2001-08-28  Werner LEMBERG  <wl@gnu.org>
8387         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
8388         * src/roff/troff/input.cc (token::next): Return
8389         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
8390         compatibility mode.
8391         (token::description): Updated.
8392         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
8393         (token::add_to_node_list, token::process): Ignore
8394         TOKEN_TRANSPARENT_ESCAPE.
8396 2001-08-27  Werner LEMBERG  <wl@gnu.org>
8398         * tmac/an-old.tmac: Fix `S' string.
8400 2001-08-26  Werner LEMBERG  <wl@gnu.org>
8402         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
8404 2001-08-25  Werner LEMBERG  <wl@gnu.org>
8406         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
8407         backslashes).
8408         Many other minor fixes.
8410         * configure.ac: Add message at end to inform how to compile
8411         xditview.
8412         * configure: Regenerated.
8414 2001-08-24  Werner LEMBERG  <wl@gnu.org>
8416         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
8417         Updated to latest version of libc.
8419 2001-08-23  Werner LEMBERG  <wl@gnu.org>
8421         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
8422         Autoconf 2.50 and newer can handle this.
8423         * configure: Regenerated.
8425 2001-08-21  Werner LEMBERG  <wl@gnu.org>
8427         * doc/pic.ms: Fix typo.
8428         * src/preproc/tbl/tbl.man: Document case of global options.
8430 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
8432         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
8433         handling of `CR' font.
8435 2001-08-20  Werner LEMBERG  <wl@gnu.org>
8437         Use a config.h file.
8439         * src/include/lib.h: Include config.h.
8440         * All C files: Ditto (if necessary).
8441         * All C++ source and header files: Include lib.h first (if
8442         necessary).
8444         * src/include/config.hin: New file (autogenerated by autoheader).
8445         * stamp-h.in: New file.
8446         * configure.ac: Updated.
8447         * aclocal.m4: Add third parameters to AC_DEFINE macros.
8448         (GROFF_ARRAY_DELETE): Simplified.
8449         * Makefile.sub (DISTCLEANFILES): Updated.
8450         Added targets for remaking config.status, config.hin, config.h,
8451         stamp-h.in, and stamp-h.
8452         * configure: Regenerated.
8454 2001-08-19  Werner LEMBERG  <wl@gnu.org>
8456         * NEWS: Updated.
8458 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
8460         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
8461         (do_sprintf): Use snprintf().
8463 2001-08-18  Werner LEMBERG  <wl@gnu.org>
8465         * src/libs/snprintf/*: Added an snprintf module written by Mark
8466         Martinec.
8467         * src/libs/libgroff/Makefile.sub: Updated.
8468         * configure.ac: Add test for snprintf().
8469         * Makefile.in: Updated.
8470         * configure: Regenerated.
8472         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
8473         uses snprintf().
8475 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
8477         * tmac/doc.tmac (Ex): New implementation.
8478         * tmac/doc-common, tmac/groff_tmac.man: Updated.
8480 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
8482         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
8483         argument.
8484         * tmac/groff_tmac.man: Updated.
8486 2001-08-13  Werner LEMBERG  <wl@gnu.org>
8488         * src/preproc/tbl/tbl.man: Minor documentation update.
8490 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8492         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
8493         * configure.ac: Add declaration test for gettimeofday().
8494         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
8495         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
8496         * configure: Regenerated.
8498 2001-08-11  Werner LEMBERG  <wl@gnu.org>
8500         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
8501         * configure.ac: Add declaration test for strcasecmp().
8502         * Makefile.in: Updated.
8503         * configure: Regenerated.
8504         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
8505         this is necessary because groff's mkstemp.cc is C++.
8506         Add declaration conditionally for strcasecmp().
8508 2001-08-10  Werner LEMBERG  <wl@gnu.org>
8510         Integrated pic2graph, contributed by Eric S. Raymond.
8512         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
8513         files.
8514         * Makefile.in, NEWS: Updated.
8516         * src/preproc/tbl/tbl.man: Revised.
8518 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
8520         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
8522 2001-08-09  Werner LEMBERG  <wl@gnu.org>
8524         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
8525         requests.
8527 2001-08-08  Paul Eggert  <eggert@twinsun.com>
8529         * Makefile.sub (configure): Depend on configure.ac, not
8530         configure.in.
8531         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
8533 2001-08-07  Werner LEMBERG  <wl@gnu.org>
8535         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
8536         fixes.
8538 2001-08-06  Werner LEMBERG  <wl@gnu.org>
8540         * src/roff/troff/troff.man: Improve documentation of -E option.
8542 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
8544         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
8545         Simplified.
8547 2001-07-27  Werner LEMBERG  <wl@gnu.org>
8549         * src/preproc/refer/refer.cc: Undo last change.
8550         * src/devices/grohtml/post-html.cc: Ditto.
8552 2001-07-26  Werner LEMBERG  <wl@gnu.org>
8554         * src/preproc/refer/refer.cc: Include `lib.h'.
8555         * src/devices/grohtml/post-html.cc: Ditto.
8557 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
8559         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
8560         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
8561         * Makefile.in: Comment updated.
8562         * configure: Regenerated.
8564 2001-07-25  Werner LEMBERG  <wl@gnu.org>
8566         * src/preproc/pic/pic.cc: Removed.
8567         * src/preproc/pic/pic_tab.h: Removed.
8568         * src/preproc/refer/label.cc: Removed.
8570         * doc/Makefile (.ms.html): Don't use a file name extension in
8571         argument to grohtml's -I option.
8572         * Makefile.in (dist): Remove CVS directories.
8573         Call `distfiles' target.
8575         * src/devices/grohtml/grohtml.man: Add information about valid
8576         versions of pnmtopng.
8577         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
8578         name instead of number.
8580 2001-07-24  Werner LEMBERG  <wl@gnu.org>
8582         * doc/groff.texinfo: Minor fixes.
8584 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
8586         * doc/Makefile (.ms.html): Put image files into a subdirectory.
8587         (clean): Updated.
8589 2001-07-20  Werner LEMBERG  <wl@gnu.org>
8591         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
8592         * src/libs/libgroff/mkstemp.cc: New file.
8593         * src/libs/libgroff/mksdir.cc: New file.
8594         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
8595         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
8596         * src/libs/libgroff/Makefile.sub: Updated.
8597         * src/include/lib.h: Add mksdir() prototype.
8598         * src/include/posix.h: Define S_IXUSR if not yet defined.
8600         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
8601         (createAllPages): Use mksdir() instead of current code.
8602         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
8603         (main): [!HAVE_MKSTEMP]: Removed.
8605         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
8606         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
8607         macros.
8608         * configure.ac: Add tests for stdint.h, sys/time.h, and
8609         gettimeofday().
8610         Call new GROFF_xxx macros.
8611         * configure: Regenerated.
8612         * Makefile.in: Comments updated.
8614 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
8616         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
8617         instead of current code.
8618         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
8619         * src/roff/groff/groff.cc (possible_command::insert_args): New
8620         function.
8621         (main): Use it for predriver handling instead of insert_arg().
8623 2001-07-19  Werner LEMBERG  <wl@gnu.org>
8625         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
8626         groff also.
8628         * src/include/posix.h: Define S_IWUSR if not yet defined.
8630 2001-07-18  Werner LEMBERG  <wl@gnu.org>
8632         * NEWS: Updated.
8634 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
8636         * tmac/groff_mdoc.man: Document new -width and -column syntax.
8637         Some other minor fixes.
8638         * tmac/an-old.tmac: Add `AT' and `UC' macros.
8640 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
8642         Replace call to `troff' with `groff -Z' to make it aware of
8643         GROFF_BIN_PATH.
8645         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
8646         (troff_command, command_prefix): Removed.
8647         (alterDeviceTo): Use groff.
8648         (addZ): New function.
8649         (char_buffer::do_html): Use it.
8650         (scanArguments): Use TROFF_COMMAND.
8651         (findPrefix): Removed.
8652         (main): Updated.
8653         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
8655 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
8657         * doc/pic.ms: Documentation fixes.
8659 2001-07-17  Werner LEMBERG  <wl@gnu.org>
8661         Replace atexit() with global destructor.
8663         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
8664         (xtmpfile_list_init): New global structure to deallocate
8665         xtmpfile_list on exit.  Its destructor inherits most code from
8666         remove_tmp_files().
8667         (remove_tmp_files): Deleted.
8668         (add_tmp_file): Simplified.
8670 2001-07-16  Werner LEMBERG  <wl@gnu.org>
8672         Replace strdup() with strsave().
8674         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
8675         (set_papersize): Use strsave() and a_delete.
8676         (main): Use strsave().
8677         * src/preproc/html/pre-html.cc (make_message, createAllPages,
8678         removeAllPages): Use strsave() and a_delete.
8680         * configure.ac: Remove test for strdup.
8681         * Makefile.in: Comment updated.
8682         * configure: Regenerated.
8684 2001-07-15  Werner LEMBERG  <wl@gnu.org>
8686         * win32-diffs: Updated.
8688 2001-07-14  Werner LEMBERG  <wl@gnu.org>
8690         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
8691         removing the old one.
8692         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
8694 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
8696         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
8698 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
8700         Merge -xwidth into -width.  Add -xwidth functionality to -column
8701         also.
8703         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
8704         avoid warning.
8705         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
8706         string immediately following a leading dot starts with a valid mdoc
8707         argument.
8708         Add similar code to the -column branch.
8709         (doc-Bl-usage): Updated.
8710         * groff_mdoc.man: s/-xwidth/-width/.
8712 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
8714         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
8715         running into centered or non-formatted text.
8717 2001-07-11  Werner LEMBERG  <wl@gnu.org>
8719         Introduce short and long prefixes to have the selection at run-time
8720         whether there is a 8+3 limit for names of temporary files.
8722         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
8723         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
8724         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
8725         variables.
8726         (temp_init): New global structure to initialize above three
8727         variables.
8728         (xtmptemplate): Use two parameters for long and short prefix.
8729         Simplify code use above three variables.
8730         (xtmpfile): Use long and short prefixes as parameters.
8731         * src/include/lib.h: Updated.
8733         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
8734         with ...
8735         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
8736         (createAllPages, makeTempFiles): Updated.
8738 2001-07-09  Werner LEMBERG  <wl@gnu.org>
8740         * REVISION: Increased to 3.
8742 Version 1.17.2 released
8743 =======================
8745 2001-07-07  Werner LEMBERG  <wl@gnu.org>
8747         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
8748         to size_t.
8750 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
8752         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
8753         Fix synopsis.
8754         * tmac/groff_mdoc.man: Fix synopsis.
8756 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
8758         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
8759         Restore `doc-Pa-font'.
8761 2001-07-04  Werner LEMBERG  <wl@gnu.org>
8763         * src/utils/indxbib/dirnamemax.c: Moved to ...
8764         * src/libs/libgroff/maxfilename.cc: Here.
8765         s/dir_name_max/file_name_max/.
8766         Add copyright.
8767         * src/include/lib.h: Add file_name_max.
8768         * src/utils/indxbib/indxbib.cc: Updated.
8769         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
8770         Updated.
8772         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
8773         as empty.
8774         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
8776         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
8777         REGION_TEMPLATE): New macros.
8778         (createAllPages, makeTempFiles): Use them.
8779         Include `nonposix.h'.
8780         (html_system): New function.
8781         (createAllPages, createImage): Use it.
8782         Use EXE_EXT.
8784         * tmac/www.tmac: Fix typos.
8786 2001-07-03  Werner LEMBERG  <wl@gnu.org>
8788         * tmac/www.tmac: Disable hyphenation in normal text only if output
8789         device is html.
8790         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
8791         * tmac/groff_mwww.man, NEWS: Updated.
8793 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
8795         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
8796         image location.
8798 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
8800         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
8801         doc-display-ps-stack): Implement font and font size stack for
8802         displays.
8804 2001-07-02  Werner LEMBERG  <wl@gnu.org>
8806         * REVISION: Increased to 2.
8807         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
8809         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
8810         beginning of a line.
8811         * src/groff/grog/grog.sh: Ditto.
8813 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
8815         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
8816         make it portable.
8818 2001-06-27  Werner LEMBERG  <wl@gnu.org>
8820         Fix problems with preprocessor string for `man' program.
8822         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
8823         Updated/added copyright.
8824         Moved Emacs's local variable to identify nroff mode to the end of
8825         the file; add local variable if missing.
8827 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
8829         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
8830         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
8831         * configure: Regenerated.
8833 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
8835         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
8836         * configure: Regenerated.
8838 2001-06-24  Werner LEMBERG  <wl@gnu.org>
8840         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
8841         but www.tmac.
8842         * doc/pic.ms: Fix typos.
8844 Version 1.17.1 released
8845 =======================
8847 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
8849         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
8850         * configure: Updated.
8852 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
8854         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
8855         image names.
8856         * src/roff/troff/dic.cc (blank_line): Add html tag.
8858 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
8860         * src/roff/troff/input.cc (do_suppress): Fix typo.
8862 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
8864         Added two new options (-D and -I) to specify image names and a
8865         subdirectory to place the images in.
8867         Change syntax from \\Ox to \\O[x].
8869         * src/devices/grohtml/post-html.cc (main): Add options.
8870         (usage): Updated.
8871         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
8872         Use `NULL' instead of `0' for null string pointers.
8873         (MAX_RETRIES): New macro.
8874         (lengthOfintToStr, intToStr, make_message): New functions.
8875         (makeFileName): Make function static.
8876         Implement -D and -I options.
8877         (checkImageDir): New function.
8878         (write_end_image, write_start_image): Use new syntax of \O.
8879         (createAllPages, removeAllPages): Implement -D and -I options.  Use
8880         make_message().
8881         (createImage): Use make_message().
8882         (addps4html): Add guard for malloc().
8883         (usage, scanArguments): Updated.
8884         (makeTempFiles): Use mkstemp().
8885         (removeTempFiles): Use unlink().
8886         (findPrefix): Add guard for malloc().
8887         (main): Updated.
8888         * src/roff/troff/input.cc (get_delim_file_name): New function to
8889         parse \O.
8890         (do_suppress): Updated to parse new syntax.
8891         * src/devices/grohtml/grohtml.man: Updated.
8892         * tmac/www.tmac: Updated to new syntax.
8894         * NEWS: Updated.
8896 2001-06-15  Werner LEMBERG  <wl@gnu.org>
8898         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
8900         * src/devices/grohtml/grohtml.man: Minor improvements.
8902 2001-06-14  Werner LEMBERG  <wl@gnu.org>
8904         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
8906 2001-06-11  Werner LEMBERG  <wl@gnu.org>
8908         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
8909         line to specify preprocessor options -- mandb 2.3.1 only recognizes
8910         the former.
8911         * src/preproc/grn/grn.man: Add proper '\" string.
8913 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
8915         * test-groff: Don't use PATH but GROFF_BIN_PATH.
8917 2001-06-08  Werner LEMBERG  <wl@gnu.org>
8919         Updated to autoconf 2.50.
8921         * configure.in: Renamed to...
8922         * configure.ac: This.
8923         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
8924         (GROFF_OS390): Updated.
8925         * configure: Regenerated.
8927 2001-05-18  Werner LEMBERG  <wl@gnu.org>
8929         * src/roff/troff/env.c, src/roff/troff/env.h,
8930         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
8931         from 2000-12-21.
8933 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
8935         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
8937 2001-05-16  Werner LEMBERG  <wl@gnu.org>
8939         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
8940         less than or equal zero; set it to 1 then.
8941         * src/roff/troff/node.h (node::node): Initialize `last'.
8943 2001-05-08  Werner LEMBERG  <wl@gnu.org>
8945         * tmac/an-old.tmac: Make predefined strings work in compatibility
8946         mode.
8947         Add troff version guard.
8948         * tmac/doc.tmac: Simplify version guard.
8950 2001-05-07  Werner LEMBERG  <wl@gnu.org>
8952         The .ns and .rs requests are now honoured not only in the top-level
8953         but in all diversions (similar to UNIX troff).
8955         This change is based on a patch from Tadziu Hoffmann
8956         <hoffmann@usm.uni-muenchen.de>.
8958         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
8959         (top_level_diversion): Remove `no_space_mode' member.
8960         * src/roff/troff/div.cc (diversion::diversion,
8961         top_level_diversion::top_level_diversion): Updated.
8962         (macro_diversion::output): Reset `no_space_mode'.
8963         (no_space, restore_spacing): Use `curdiv' unconditionally.
8964         (space_request, blank_line): Check `curdiv->no_space_mode'.
8965         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
8966         `curdiv' unconditionally.
8967         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8968         Updated.
8970 2001-05-06  Werner LEMBERG  <wl@gnu.org>
8972         Added two new requests `de1' and `am1' which are similar to `de' and
8973         `am' with the difference that compatibility mode is saved on entry,
8974         switched off during macro execution, and restored on exit.
8976         * src/roff/troff/input.h: Added two new special characters
8977         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
8978         * src/roff/troff/input.cc (input_iterator): Added two member
8979         functions `save_compatible_flag' and `get_compatible_flag'.
8980         (input_stack): Ditto.
8981         (string_iterator): Ditto.  Also add private member
8982         `saved_compatible_flag'.
8983         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
8984         (calling_mode): New enumeration.
8985         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
8986         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
8987         (define_macro, define_indirect_macro, append_macro, ignore): Use
8988         `calling_mode'.
8989         (define_nocomp_macro, append_nocomp_macro): New functions.
8990         (init_input_requests): Updated.
8991         (do_request): Rename local variable `saved_compatible_flag' to
8992         `old_compatible_flag'.
8993         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8995         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
8996         public and trap-invoked macros.  As a consequence, the man macros
8997         work in compatibility mode also.
8999 2001-05-06  Solar Designer  <solar@openwall.com>
9001         * Makefile.in: Use $(mandir).
9003 2001-05-06  Alexios Zavras  <zvr@pobox.com>
9005         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
9007 2001-05-05  Werner LEMBERG  <wl@gnu.org>
9009         Added `.ns' number register: Returns 1 in no-space mode (if in
9010         top-level diversion), 0 otherwise.
9012         * src/roff/troff/div.cc (no_space_mode_reg): New class.
9013         (init_div_requests): Updated.
9014         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
9015         Document it.
9017 2001-05-04  Werner LEMBERG  <wl@gnu.org>
9019         * src/roff/nroff/nroff.man: Improved documentation (especially
9020         locales).
9022 2001-05-02  Werner LEMBERG  <wl@gnu.org>
9024         Added `brp' request: This is \p as a request.
9026         * src/roff/troff/env.cc (environment::do_break): Add parameter
9027         `spread'.
9028         (do_break_request): New function (was `break_request').
9029         (break_request): Calls `do_break_request'.
9030         (break_spread_request): New; calls `do_break_request'.
9031         (init_env_requests): Updated.
9032         * src/roff/troff/env.h: Updated.
9033         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9035         * REVISION: Increased to 1.
9036         * win32-diffs: Updated.
9038 2001-05-01  Werner LEMBERG  <wl@gnu.org>
9040         * tmac/an-old.tmac: Fix minor compatibility mode issue.
9041         * tmac/troffrc-end: Make it really work in compatibility mode.
9043 2001-04-27  Werner LEMBERG  <wl@gnu.org>
9045         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
9046         stdlib.h.
9048 2001-04-22  Werner LEMBERG  <wl@gnu.org>
9050         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
9051         latest versions from glibc CVS archive.
9053         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
9054         <c.zeelenberg@hccnet.nl>.
9056 2001-04-21  Werner LEMBERG  <wl@gnu.org>
9058         * configure.in: Move check for mkstemp() to...
9059         * aclocal.m4 (GROFF_MKSTEMP): This new function.
9060         * configure: Regenerated.
9062         * src/include/groff-getopt.h: Don't use variable names in
9063         declarations.
9065         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
9066         * src/devices/grohtml/Makefile.sub,
9067         src/devices/grohtml/post-html.cc: Updated.
9069 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
9071         * configure.in: Add special check for mkstemp().
9072         * src/libs/libgroff/tmpfile.cc: Use it.
9073         * src/utils/indxbib/indxbib.cc: Ditto.
9074         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
9075         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
9076         `const'.
9078 2001-04-20  Bruce Lilly  <blilly@erols.com>
9080         `Version_string' as C++ object was not visible to linker from C
9081         object files.
9082         Add `const' to `Version_string'.
9084         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
9085         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
9086         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
9087         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
9088         (scanArguments), src/preproc/refer/refer.cc (main),
9089         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
9090         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
9091         (main), src/devices/grohtml/post-html.cc (main),
9092         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
9093         (main), src/utils/hpftodit/hpftodit.cc (main),
9094         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
9095         (main), src/utils/lkbib/lkbib.cc (main),
9096         src/utils/addftinfo/addftinfo.cc (main): Implement it.
9098         * src/roff/groff/pipeline.c: Add _UWIN.
9099         * src/include/nonposix.h: Ditto.
9101 2001-04-20  Werner LEMBERG  <wl@gnu.org>
9103         * src/include/lib.h: Use HAVE_STRERROR.
9104         * src/roff/groff/pipeline.c: Ditto.
9105         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
9106         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
9107         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
9108         * win32-diffs: Updated.
9109         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
9111 2001-04-19  Werner LEMBERG  <wl@gnu.org>
9113         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
9114         instead of hardwired `"troff"'.
9115         (char_buffer::read_file): Remove unused variables.
9116         (char_buffer::write_file_troff): Ditto.
9117         (char_buffer::write_file_html): Ditto.
9118         (generateImages): Ditto.
9119         (abs): Removed.
9120         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
9122         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
9124         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
9125         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
9126         index_search_item::search1): Ditto.
9127         * src/roff/troff/node.h (width_list): Reorder members.
9128         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
9129         (lookup_warning): Ditto.
9130         (prepend_string): Commented out.
9131         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
9132         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
9133         * src/preproc/tbl/main.cc (process_format): Ditto.
9134         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
9135         compiler warnings.
9136         * src/preproc/pic/pic.cc: Updated.
9137         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
9138         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
9139         * src/preproc/refer/command.cc (execute_command): Ditto.
9140         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
9141         * src/preproc/refer/token.cc (lookup_token): Ditto.
9142         * src/preproc/soelim/soelim.cc: Ditto.
9143         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
9144         (isHexDigit): Commented out.
9145         (pushBackBuffer::isString): Remove unused variable.
9146         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
9147         warning.
9148         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
9149         resource_manager::read_resource_arg, read_one_of, parse_extensions):
9150         Ditto.
9151         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
9152         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
9153         lookup_paper_size): Ditto.
9154         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
9155         (text_glob, element_list): Reorder members.
9156         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
9157         compiler warning.
9158         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
9159         return value to `void'.
9160         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
9161         of initializers.
9162         * src/devices/grohtml/html.h (simple_output::check_newline,
9163         simple_output::space_or_newline, simple_output::enable_newlines):
9164         Add return value.
9165         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
9166         compiler warnings.
9167         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
9168         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
9169         output_ligatures, output_charset, read_map): Ditto.
9170         * src/utils/lookbib/lookbib.cc (main): Ditto.
9171         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
9172         (do_file): Fix typo (`=' -> `==').
9173         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
9174         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
9176 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
9178         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
9179         Fix usage of GROFF_BIN_PATH.
9180         * src/roff/nroff/nroff.man: Updated.
9182 2001-04-18  Werner LEMBERG  <wl@gnu.org>
9184         * NEWS: Fixing typos.
9185         Updated.
9187 Version 1.17 released
9188 =====================
9190 2001-04-17  Werner LEMBERG  <wl@gnu.org>
9192         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
9193         directory, not in $(srcdir).
9195 2001-04-16  Werner LEMBERG  <wl@gnu.org>
9197         * doc/groff.texinfo: More info on conditionals.
9199 2001-04-15  Werner LEMBERG  <wl@gnu.org>
9201         * doc/groff.texinfo: Added some info about groff internals.
9203         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
9204         about missing special character only if the name is non-null.
9206 2001-04-14  Werner LEMBERG  <wl@gnu.org>
9208         Removing the grohtml-old device driver which is now obsolete.
9210         * src/devices/grohtml-old/*: Removed.
9211         * font/devhtml-old/*: Removed.
9212         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
9213         Remove comments.
9214         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
9215         * test-groff (PATH): Updated.
9216         * tmac/Makefile.sub (NORMALFILES): Updated.
9217         * tmac/an-old.tmac: Remove special code for html-old device.
9218         Replace `html-or-html-old' register with `an-html'.
9219         * tmac/eqnrc: Updated.
9220         * tmac/html-old.tmac: Removed.
9221         * tmac/troffrc, tmac/troffrc-end: Updated.
9222         * tmac/www.tmac: Remove special code for html-old device.
9223         Replace `html-or-html-old' register with `www-html'.
9225         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
9226         src/libs/libgroff/htmlindicate.cc (graphic_end),
9227         include/htmlindicate.h, src/preproc/grn/*.cc,
9228         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
9229         single argument for consistency with rest of source code.
9231         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
9233 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
9235         * src/roff/troff/troff.man: Fixing typos.
9237 2001-04-13  Werner LEMBERG  <wl@gnu.org>
9239         * doc/pic.ms: Fixing many font switches.
9240         * doc/groff.texinfo: Fixes, additions.
9241         * MORE.STUFF: Updated.
9243 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
9245         * src/devices/grohtml/grohtml.man: Updated manual page regarding
9246         simple anchor.
9247         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
9248         cropping of images.
9249         (removeTempFiles): New function to tidy up temporary files.
9250         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
9251         Many fixes to do with the new inline suppress node and image regions
9252         are much tighter.
9253         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
9254         (generate_img_src): New function.
9255         (html_printer::do_auto_image): Utilizes it.
9256         (do_heading, do_title): Include inline images within their contents.
9257         (html_printer::begin_page): Tidied up comments that are issued to
9258         the html output file.
9259         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
9260         than courier.
9261         (text_glob::is_br): New method used by do_heading.
9262         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
9263         equivalent diversion.
9264         * src/include/html-strings.h: Altered image tags to reflect the
9265         inline image node.
9266         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
9267         parameter.
9268         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
9269         it is already inside a pic image.  Only emit tags if the argument
9270         `-Tps:html' is present.
9271         * src/preproc/tbl/main.cc: Changes to reflect additional
9272         `html_end_suppress' parameter.
9273         * src/roff/troff/env.cc: Only emit eol tag if a node has been
9274         emitted since the last eol tag was written.
9275         * src/roff/troff/env.h: New boolean `emitted_node'.
9276         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
9277         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
9278         * src/roff/troff/node.cc (check_charinfo): New method. 
9279         (troff_output_file::determine_line_limits): Alterations to limit
9280         checking.
9281         * tmac/www.tmac: Changes to reflect new suppress nodes.
9282           
9283 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
9285         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
9286         Escape the html_glyph in the buffer.
9287         (str_translate_to_html): Output the unescaped escaped_char.
9288         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
9289         `frame=void', not `frame=none'.  Add `border=0'.
9291 2001-04-12  Werner LEMBERG  <wl@gnu.org>
9293         * PROBLEMS: Add some words on how to avoid wrapper macros.
9295 2001-04-11  Blake McBride  <blake@florida-software.com>
9297         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
9299 2001-04-11  Werner LEMBERG  <wl@gnu.org>
9301         * font/devlbp/Makefile.sub (CLEANADD): Set it.
9302         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
9303         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
9304         * Makefile.sub (DISTCLEANFILES): Here.
9306         * libs/libgroff/new.cc: Include `nonposix.h'.
9307         * win32-diffs: Updated.
9309 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
9311         Added skeleton macro for defunct macros.
9313         Updated documentation.
9315         When inside displays, an empty input line warning should be
9316         suppressed.  If another macro call is put inside a display,
9317         all subsequent empty lines found in that display caused a
9318         warning to be emitted.
9320         * tmac/doc.tmac (doc-defunct-macro): New macro.
9321         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
9322         (doc-restore-global-vars): Fixed typo.
9323         (doc-empty-line): Check the `doc-display-depth' register to
9324         determine whether we are inside display or not.
9326         * tmac/doc-common: Removed `Or' and `Sf' registers.
9327         Moved obsolete `Ds' macro to doc.tmac.
9329         * tmac/groff_mdoc.man: Bump document date.
9330         Document `.Vt' under ``Variable Types''.
9331         Removed documentation for obsolete `.Or' macro.
9333 2001-04-10  Werner LEMBERG  <wl@gnu.org>
9335         * NEWS: Updated.
9336         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
9338 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
9340         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
9341         (usage): Add stream argument. Don't exit.
9342         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
9343         Write --version output to stdout, not stderr.
9344         (usage): Add stream argument. Don't exit.
9345         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
9346         (usage): Add stream argument. Don't exit.
9347         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
9348         constants.
9349         (usage): Add stream argument. Don't exit.
9350         (main): Write --help output to stdout, not stderr.
9351         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
9352         (usage): Add stream argument. Don't exit.
9353         * src/devices/grops/ps.cc (main): Accept --help and --version.
9354         (usage): Add stream argument. Don't exit.
9355         * src/devices/grotty/tty.cc (main): Accept --help and --version.
9356         (usage): Add stream argument. Don't exit.
9357         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
9358         (main): Accept --help and --version.
9359         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
9360         (main): Accept --help and --version.
9361         * src/preproc/html/pre-html.cc (usage): Add stream argument.
9362         (scanArguments): Accept --help and --version.
9363         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
9364         (main): Accept --help and --version.
9365         * src/preproc/refer/refer.cc (main): Accept --help and --version.
9366         (usage): Add stream argument. Don't exit.
9367         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
9368         exit.
9369         (main): Accept --help and --version.
9370         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
9371         (main): Accept --help and --version.
9372         * src/roff/groff/groff.cc (main): Accept --help and --version.
9373         (synopsis): Add stream argument.
9374         (help): Write --help output to stdout, not stderr.
9375         (usage): Add stream argument. Don't exit.
9376         * src/roff/grog/grog.pl: Accept --help and --version.
9377         (help): New sub.
9378         * src/roff/grog/grog.sh: Accept --help and --version.
9379         * src/roff/nroff/nroff.sh: Accept --help and --version.
9380         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
9381         (usage): Add stream argument. Don't exit.
9382         (main): Accept --help and --version.
9383         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
9384         (usage): New function with stream argument, doesn't exit.
9385         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
9386         (usage): New function with stream argument, doesn't exit.
9387         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
9388         (usage): Add stream argument. Don't exit.
9389         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
9390         (main): Accept --help and --version.
9391         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
9392         exit.
9393         (main): Accept --help and --version.
9394         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
9395         (main): Accept --help and --version.
9396         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
9397         (usage): Add stream argument. Don't exit.
9399 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
9401         Fix indentation in SYNOPSIS.
9403         Updated to include changes of latest BSD mdoc version (basically,
9404         the only change is that `.Fn' and `.Fc' put a final semicolon after
9405         a function declaration in the SYNOPSIS section).
9407         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
9408         (doc-in-synopsis-section): New variable.  Updated all related
9409         functions.
9410         (doc-indent-synopsis-active): New register.
9411         (Nd, Fn, Fo): Use it.
9412         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
9413         `.Cd' with long argument line produces indented wrapped lines. 
9414         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
9415         undesirable line break to be output.
9416         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
9417         `.rs'.
9418         (Fn, Fc): Add final `;' to output.
9419         (doc-save-global-vars, doc-restore-global-vars): Updated.
9420         * tmac/doc-common: Remove `Ex' register.
9421         Updated.
9422         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
9423         copyright.
9425 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
9427         * tmac/doc.tmac (Cd): Simplify code.
9428         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
9430 2001-04-06  Werner LEMBERG  <wl@gnu.org>
9432         Implement continuous underlining for nroff mode.  To do that, a new
9433         request in the ditroff language has been added: `x u N' (N is 0
9434         or 1).
9436         \X and \Y are now transparent to end-of-sentence recognition.
9438         * src/include/printer.h (printer): Add `type' parameter to `special'
9439         method.
9440         * src/libs/libdriver/printer.cc (printer::special): Updated.
9441         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
9443         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
9444         specials of type `p'.
9445         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
9446         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
9447         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
9448         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
9449         (glyph::order): New method.
9450         (tty_printer::add_char): Use it.
9451         (tty_printer::special): New method.
9452         (tty_printer::end_page): Implement it.
9454         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
9455         * src/roff/troff/node.cc (special_node::special_node): Add parameter
9456         to set `no_init_string'.
9457         (special_node::tprint_start): Use it.
9458         (special_node::same, special_node::copy): Updated.
9459         (special_node::ends_sentence): New method.
9460         (troff_output_file::start_special): Add parameter to include
9461         inititialization of special conditionally.
9463         * src/roff/troff/env.h (environment): New member `underline_spaces'.
9464         * src/roff/troff/env.cc (do_underline_special): New function.
9465         (environment::set_font): Use it.
9466         (do_underline): Use it.  This was `underline()'.
9467         (underline): Call `do_underline()'.
9468         (continuous_underline): New function which calls `do_underline()'.
9469         (environment::newline): Use `do_underline_special()'.
9470         (init_env_requests): Updated.
9472         * NEWS, man/troff_out.man: Updated.
9474 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
9476         * font/devutf8/R.proto: Fix code of 'shc'.
9478 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
9480         Many fixes.  Diag lists can now be nested also; additionally,
9481         `-compact' and `-offset' are supported.
9483         * tmac/doc.tmac (doc-have-indent): Replaced with ...
9484         (doc-list-have-indent-stackXXX): A new register stack.
9485         (doc-have-diag-list): Removed.
9486         (Bl): Use `doc-list-have-indent-stackXXX'.
9487         (El): Updated.
9488         (doc-diag-list): Use `doc-compact-list-stackXXX'.
9489         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
9490         (doc-set-vertical-and-indent): Ditto.
9491         (doc-next-list-depth): Removed.
9492         (doc-increment-list-stack): Updated.
9493         (doc-decrement-list-stack): Use `doc-list-depth' instead of
9494         `doc-next-list-depth'.
9495         (doc-end-list, doc-end-column-list): Don't use
9496         `doc-increment-list-stack'.
9497         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
9498         (doc-save-global-vars, doc-restore-global-vars): Updated.
9499         * tmac/doc-common: Updated.
9500         * tmac/groff_mdoc.man: Updated.
9501         * NEWS: Fix typo.
9503 2001-04-02  Werner LEMBERG  <wl@gnu.org>
9505         * src/devices/grotty/grotty.man: Fix grammatical error.
9507 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
9509         Remove .Ld from mdoc package; replace it with special handling of
9510         `...'.
9512         * tmac/doc-common: Remove `Ld' register.
9513         Uncomment `doc-volume-ds-*' strings.
9514         Remove `doc-operating-system-default'.
9515         (Os): Updated.
9516         * tmac/doc-syms (Ld): Removed.
9517         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
9518         `...' specially.
9519         * NEWS: Updated.
9521         * tmac/groff_mdoc.man: Many fixes and updates.
9523 2001-03-29  Werner LEMBERG  <wl@gnu.org>
9525         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
9526         Bond <tkb@tkb.mpl.com>.
9527         * tmac/www.tmac: Save compatibility mode.
9529 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
9531         * tmac/groff_mdoc.man: Many fixes.
9533 2001-03-28  Werner LEMBERG  <wl@gnu.org>
9535         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
9536         isn't recognized.
9538 2001-03-27  Werner LEMBERG  <wl@gnu.org>
9540         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
9541         diversion.  This fixes overlong tags.
9543 2001-03-26  Werner LEMBERG  <wl@gnu.org>
9545         * doc/groff.texinfo: Fixed and improved documentation of fonts.
9546         * tmac/doc-syms: Fix error messages.
9547         * tmac/an-old.tmac: Remove incorrect double backslashes.
9549 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
9551         * tmac/Makefile.sub: Strip mdoc.local also
9552         * tmac/strip.sed: Fixed.
9554 2001-03-24  Werner LEMBERG  <wl@gnu.org>
9556         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
9557         selecting the font size.
9558         * tmac/groff_mdoc.man, NEWS: Document it.
9560 2001-03-23  Werner LEMBERG  <wl@gnu.org>
9562         * src/roff/troff/div.cc (save_vertical_space): Add default argument
9563         to `sv' request.
9564         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
9565         argument to restore previous font family.
9566         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
9568         * doc/groff.texinfo: More fixes and additions (mainly for font
9569         manipulating commands).
9571         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
9572         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
9573         * tmac/Makefile.sub, NEWS: Updated.
9575 2001-03-23  Werner LEMBERG  <wl@gnu.org>
9577         Replaced mdoc implementation.  The new version is `state of the
9578         art', using almost all new features of groff 1.17 -- it won't run
9579         with older versions.
9581         * tmac/doc.tmac: Completely rewritten.
9582         * tmac/doc-common: Ditto.
9583         * tmac/doc-nroff: Ditto.
9584         * tmac/doc-ditroff: Ditto.
9585         * tmac/doc-syms: Ditto.
9586         * tmac/mdoc.local: New file.
9587         * tmac/groff_mdoc.samples.man: Replaced with ...
9588         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
9589         * tmac/strip.sed: Updated.
9590         * tmac/Makefile.sub: Updated.
9591         * INSTALL: Updated.
9593         * tmac/groff_man.man: Add `man.local' to the FILES section.
9595 2001-03-22  Werner LEMBERG  <wl@gnu.org>
9597         * doc/groff.texinfo: Added many @noindent.
9598         Replaced @end_Example -> @endExample.
9599         Added info whether registers are r/o.
9600         Many other additions and fixes.
9602 2001-03-21  Werner LEMBERG  <wl@gnu.org>
9604         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
9605         in makeinfo of texinfo 4.0) to be used in @Def* macros.
9606         Improved @Def* macros: Now the exact syntax of request, register,
9607         and escapes is shown.
9608         Added macros for parentheses and brackets to be used in @Def*.
9609         Many fixes and improvements of the documentation.
9611 2001-03-20  Werner LEMBERG  <wl@gnu.org>
9613         * doc/groff.texinfo: Added new index: `st' (for strings).
9614         Added macros @Defstr(x).
9615         Added macro @Example (adding @group).
9616         Other minor improvements.
9618 2001-03-19  Werner LEMBERG  <wl@gnu.org>
9620         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
9621         `rq' for requests.  `fn' is no longer used.
9622         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
9623         Removed @Deffn(x).
9625         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
9626         number with name of man page.
9628 2001-03-19  Larry Kollar  <kollar@alltel.net>
9630         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
9631         consistency.
9633 2001-03-19  Werner LEMBERG  <wl@gnu.org>
9635         * man/groff_font.man: Document `prepro', `postpro', and `print'.
9636         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
9637         * src/devices/grohtml/grohtml.man: Fixing typos.
9639 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
9641         * tmac/s.tmac (@IP): Pass `.ip' html tag.
9642         * tmac/groff_mwww.man: Remove .LINE macro
9643         * tmac/www.tmac (LINE): Add `.ti'.
9645         * src/devices/grohtml/post-html.cc (html_printer): New member
9646         `indent'.
9647         (html_printer::emit_raw): Use it.
9648         (html_printer::do_linelength): Ditto.
9649         (html_printer::do_pageoffset): Ditto.
9650         (html_printer::do_indentation): Ditto.
9651         (html_printer::do_tempindent): Ditto.
9652         (html_printer::do_break): Ditto.
9653         (html_printer::begin_page): Ditto.
9654         (html_printer::do_indentedparagraph): New function.
9655         (html_printer::troff_tag): Handle `.ip'.
9656         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
9657         Add `<td width=...>' handling.
9658         (html_text::do_table): Add parameter.
9659         (html_text::do_indent): Updated.
9660         * src/devices/groohtml/html-text.h: Updated.
9662 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
9664         Introduced simple html tables to implement indentation.
9666         * src/devices/grohtml/html.h (word, word_list): New structures.
9667         (simple_output): Use it.
9668         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
9669         (html_printer): Improve indentation handling.
9670         (html_printer::emit_raw): Set `in_table' element.  Handle
9671         indentation if set.
9672         (html_printer::write_header): Move conditional downwards.
9673         Don't allow whitespace in tags.
9674         (html_printer::do_linelength): Handle line length and indentation
9675         conditionally.
9676         (html_printer::do_pageoffset): Handle indentation conditionally.
9677         (html_printer::do_indentation): Ditto.
9678         (html_printer::do_tempindent): New function member.
9679         (html_printer::do_fill): Take care of indentation.
9680         (html_printer::do_flush): Finish table.
9681         (html_printer::do_links): Ditto.
9682         (html_printer::do_break): New function for handling `.br' and `.ti'.
9683         (html_printer::troff_tag): Use it.
9684         Handle `.ti'.
9685         (html_printer::flush_globs): Fix.
9686         (html_printer::flush_page): Finish table.
9687         (html_printer::html_printer): Fix error message.  Set up
9688         `linelength'.
9689         (html_printer::add_to_sbuf): Remove special handling of character
9690         code 255.
9691         (to_unicode): Remove `stop()'.
9692         (html_printer::write_title): Cleanup.
9693         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
9694         (html_printer::~html_printer): Flush text and end the line.
9695         Use `put_string()'.
9696         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
9697         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
9698         emission of tags.
9699         (html_text::start_tag): Disable newlines.
9700         (html_text::table_is_void): New function.
9701         (html_text::issue_table_begin): Ditto.
9702         (html_text::issue_table_end): Ditto.
9703         (html_text::push_para): Better table handling.
9704         (html_text::do_indent): New function.
9705         (html_text::do_table): Ditto.
9706         (html_text::done_table): Ditto.
9707         (html_text::do_tt): Handle PRE_TAG.
9708         (html_text::is_in_table): New function.
9709         (html_text::check_emit_text): Handle tables.
9710         (html_text::do_emittext): Use `nl()'.
9711         (html_text::do_para): Handle table.
9712         (html_text::remove_def): New function.
9713         * src/devices/grohtml/output.cc (word, word_list): Implement
9714         methods.
9715         (simple_output::end_line): Flush last word.
9716         (simple_output::simple_comment): Ditto.
9717         (simple_output::begin_comment): Recoded.
9718         (simple_output::end_comment): Ditto.
9719         (simple_output::comment_arg): Removed.
9720         (simple_output::check_newline): Improve test and flush last word.
9721         (simple_output::space_or_newline): Improved.
9722         (simple_output::write_newline): Replaced with...
9723         (simple_output::nl): This.
9724         (simple_output::put_raw_char): Flush last word.
9725         (simple_output::check_space): Removed.
9726         (simple_output::put_translated_string): Ditto.
9727         (simple_output::put_string): Simplified.
9728         (simple_output::put_number): Updated.
9729         (simple_output::put_float): Ditto.
9730         (simple_output::put_symbol): Removed.
9731         (simple_output::enable_newlines): Add `check_newline()'.
9732         (simple_output::flush_last_word): New function.
9734         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
9735         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
9737         * tmac/s.tmac (@PP, @IP): Add html conditional code.
9738         * tmac/an-old.tmac (TP): Ditto.
9740 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
9742         * mdate.sh: Make it POSIX compliant.
9744 2001-03-09  Werner LEMBERG  <wl@gnu.org>
9746         Added the `return' request to end a macro immediately.  It simply
9747         pops iterators from the input stack until a macro iterator is found.
9749         * src/roff/troff/input.cc (input_iterator::is_macro,
9750         macro_iterator::is_macro): New member.
9751         (input_return_boundary): New class to signal an immediate return
9752         to while_request().
9753         (input_stack::add_return_boundary, input_stack::is_return_boundary):
9754         New functions.
9755         (input_stack::clear): Use it.
9756         (input_stack::pop_macro): New function.
9757         (while_request): Use `is_return_boundary()'.
9758         (return_macro_request): New function.
9759         (init_input_requests): Use it.
9761         * src/roff/troff/TODO: Updated.
9762         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9764 2001-03-08  Werner LEMBERG  <wl@gnu.org>
9766         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
9767         cleanup.
9769 2001-03-07  Werner LEMBERG  <wl@gnu.org>
9771         Make `\B' more rigid.
9773         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
9774         parameter.
9775         (get_number_rigidly): New function.
9776         * src/roff/troff/input.cc (do_expr_test): Use it.
9777         * src/roff/troff/token.h: Updated.
9779         * src/roff/troff/request.h: Fix typo (init_html_request ->
9780         init_markup_request).
9782 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
9784         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
9785         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
9786         are now `.begin', `.end', `.image'.
9788         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
9789         (html_printer::add_to_sbuf): Changing type of `code' parameter.
9790         Use add_char_to_sbuf().
9791         (to_unicode): New function.
9792         (char_translate_to_html): Changing type of `ch' parameter.
9793         Use `to_unicode()'.
9794         (html_printer::~html_printer): Comment out doctype string.
9795         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
9796         instead of `.html-end'.
9797         (write_start_image): Use `.begin' and `.image' instead of
9798         `.html-begin' and `.html-image'.
9799         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
9800         (html_begin): Renamed to ...
9801         (begin): This.
9802         (html_end): Renamed to ...
9803         (end): This.
9804         (html_image): Renamed to ...
9805         (image): This.
9806         (init_html_requests): Renamed to ...
9807         (init_markup_requests): This.
9808         * tmac/www.tmac: Updated.
9810 2001-02-28  Bram  <bram@avontuur.org>
9812         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
9813         constructor.
9815 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
9817         * doc/meref.me: Fixing some typos.
9819 2001-02-16  Werner LEMBERG  <wl@gnu.org>
9821         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
9822         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
9823         * src/roff/troff/node.h: Updated.
9825 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
9827         * tmac/groff_tmac.man: Fix typo.
9829 2001-02-16  Werner LEMBERG  <wl@gnu.org>
9831         Fixing a bug which prevented proper end-of-sentence recognition
9832         between an `unformatted' box and the following text.  As a
9833         consequence, vertical line distances are no longer preserved in
9834         boxes after a call to `.unformat' -- because boxes aren't
9835         line-oriented (contrary to diversions), this doesn't make sense
9836         anyway.
9838         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
9839         value.
9840         (vertical_size_node::set_unformat_flag): New method.
9841         * src/roff/troff/node.hh: Updated.
9842         * src/roff/troff/input.cc (word_space_node::reread,
9843         hmotion_node::reread): Reset `unformat' flag after usage.
9844         (unformat_macro): Append only if `set_unformat_flag()' returns
9845         non-zero.
9846         * src/roff/troff/troff.man: Updated.
9848 2001-02-15  Werner LEMBERG  <wl@gnu.org>
9850         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
9851         documentation of `asciify' and `unformat' requests.
9853 2001-02-13  Werner LEMBERG  <wl@gnu.org>
9855         Redesigned the `unformat' request.  It is no longer connected with
9856         `asciify' but rather uses new `reread()' methods if the `unformat'
9857         flag is set.  Additionally, the handling of space characters after
9858         unformatting has been fixed so that they retain their width.
9860         * src/roff/troff/node.h (width_list): New structure to store
9861         original widths of spaces.
9862         (node): Added `unformat' member.
9863         Replaced `num_spaces' variable with `orig_width' list.
9864         * src/roff/troff/node.cc (*node::asciify,
9865         asciify_reverse_node_list): Removed `unformat_only' flag and related
9866         code.
9867         (word_space_node::asciify, word_space_node::word_space_node): Use
9868         `orig_width'.
9869         (word_space_node::~word_space_node): New destructor.
9870         (word_space_node::copy): Updated to handle `orig_width'.
9871         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
9872         (*node::merge_space): Update `orig_width' list if necessary.
9873         (*node::set_unformat_flag): New methods to set the `unformat' flag.
9874         * src/roff/troff/enc.cc (environment::space_newline): Use
9875         `width_list'.
9876         (environment::space): Added method to handle space width and
9877         sentence space width as parameters.  Use `width_list'.
9878         (environment::make_tab_node): Updated.
9879         * src/roff/troff/env.h: Updated.
9880         * src/roff/troff/input.cc (word_space_node::reread,
9881         unbreakable_space_node::reread, hmotion_node::reread): New methods
9882         to handle nodes specially if `unformat' flag is set.
9883         (do_asciify_macro): Renamed back to ...
9884         (asciify_macro): This.
9885         (unformat_macro): New implementation to simply set the `unformat'
9886         flag.
9888         * MORE.STUFF: Added more info about deroff.
9890 2001-02-08  Werner LEMBERG  <wl@gnu.org>
9892         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9893         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
9894         and `add_self()' methods to avoid hyphenation.  For example, the
9895         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
9896         soft hyphen after `foo'.  Now the hyphen list is correctly
9897         `foo<ignore><ignore>bar'.
9899 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
9901         * tmac/groff_tmac.man: Fix `BIR' macro.
9903 2001-02-04  Werner LEMBERG  <wl@gnu.org>
9905         A new escape sequence `\:', inserting a zero-width break point.
9907         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
9908         * src/roff/troff/input.cc (get_copy, token::next, asciify):
9909         Implement it.
9910         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
9911         method.
9912         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
9913         and `asciify()' methods.
9914         * src/roff/troff/node.cc (space_node::space_node): Updated.
9915         (space_node::asciify): Handle `was_escape_colon'.
9916         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9918         Handle `\~' similar to other comparable requests.
9920         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
9921         label.
9922         (token::next): Move creation of an unbreakable_space_node to...
9923         (token::add_to_node_list): Here.
9925         Fix a bug which sometimes prevented hyphenation of words connected
9926         with `\~' or `\ ' (and other escape sequences handled as
9927         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
9928         (after a call to the `unformat' request).
9930         * src/roff/troff/env.h (environment::possibly_break_line,
9931         environment::hyphenate_line): Introducing `start_here' parameter.
9932         * src/roff/troff/env.cc (environment::space_newline,
9933         environment::space): Use it.
9934         (environment::possibly_break_line, environment::hyphenate_line):
9935         Implement it.
9936         * src/roff/troff/input.cc (process_input_stack): Use it.
9937         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9938         space_char_hmotion_node, overstrike_node): Add
9939         `get_hyphenation_type()' method.
9940         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
9941         if `unformat_only' is active.
9943 2001-01-30  Werner LEMBERG  <wl@gnu.org>
9945         Implemented new read-only number register `.linetabs' which
9946         returns 1 if in line-tabs mode, 0 otherwise.
9948         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
9949         * src/roff/troff/env.cc (get_line_tabs): New function.
9950         (init_env_requests): Use it.
9951         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9953         * VERSION, REVISION: Changing to 1.17.0.
9955 2001-01-28  Werner LEMBERG  <wl@gnu.org>
9957         Fixed a bug which prevented hyphenation of words which are finished
9958         with `\)'.
9960         * src/roff/troff/token.h (token): Add enum type
9961         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
9962         * src/roff/troff/input.cc (token::next, token::description,
9963         get_line_arg, token::add_to_node_list, token::process): Use it.
9965 2001-01-27  Werner LEMBERG  <wl@gnu.org>
9967         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
9968         * src/roff/troff/div.cc (do_divert): Use it.
9970         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
9972 2001-01-25  Werner LEMBERG  <wl@gnu.org>
9974         Adding the `linetabs' request.  If set, tab distances are not
9975         computed relative to the input line but relative to the output line.
9977         * src/roff/troff/env.h (environment): New member `line_tabs'.
9978         * src/roff/troff/env.cc (line_tabs_request): Implement request.
9979         (environment::environment, environment::copy): Updated.
9980         (environment::distance_to_next_tab): Use `line_tabs'.
9981         (init_env_requests): Register request.
9982         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
9983         fixes.
9985 2001-01-24  Werner LEMBERG  <wl@gnu.org>
9987         Introducing a new read-only register `.int' which is set to a
9988         positive value if the last output line is interrupted (i.e., if it
9989         contains `\c').
9991         * src/roff/troff/env.cc (init_env_requests): Add it.
9992         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9994 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
9996         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
9997         * src/preproc/html/pre-html.cc (findPrefix): New function which
9998         generates the troff executable name via the system prefix.
9999         * src/preproc/eqn/main.cc: Modified warning message.
10001 2001-01-23  Werner LEMBERG  <wl@gnu.org>
10003         troff's `box' and `boxa' requests didn't preserve temporary
10004         indentation.
10006         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
10007         `saved_target_text_length' members.
10008         * src/roff/troff/div.cc (do_divert): Use them.
10010         Tabs (but not yet leaders and fields) are now handled correctly by
10011         `asciify' request.
10013         * node.h (hmotion_node): Add field `was_tab'.
10014         * env.cc (environment::make_tab_node): Set it.
10015         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
10017         Added new request `unformat' which will, contrary to `asciify',
10018         preserve font information after unformatting (i.e., only nodes
10019         dealing with horizontal space are converted back to input
10020         characters).
10022         * input.cc (asciify_macro): Renamed to ...
10023         (do_asciify_macro): this, having a new parameter `unformat_only'.
10024         (asciify_macro, unformat_macro): New; using do_asciify_macro.
10025         (init_input_requests): Added `unformat'.
10026         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
10027         parameter to control asciification process.
10028         * node.h (*_node::asciify): Ditto.
10029         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10031 2001-01-20  Werner LEMBERG  <wl@gnu.org>
10033         * doc/groff.texinfo: Minor improvement of `.in' documentation.
10035 2001-01-18  Werner LEMBERG  <wl@gnu.org>
10037         * tmac/ps.tmac: Remove call of psold.tmac.
10038         * tmac/psold.tmac: Comment updated.
10039         * tmac/psnew.tmac: Removed since no longer needed.
10040         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
10042         * font/devutf8/R.proto: Adding `shc' glyph.
10043         * font/devutf8/NOTES: Updated.
10045         * test-groff: Updated.
10047 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
10049         First cut of the new html device driver.  Changes to pre-html and
10050         the new grohtml are too numerous to be documented here.
10052         Stuff related to `html' has been renamed to `html-old' and `html2'
10053         stuff has been renamed to `html' (including directories).  The new
10054         html device driver is therefore invoked as `-Thtml'.
10056         Added new `\O' escape to suppress output (needed by html driver).
10058         Added functions and code to pass info about input-level commands
10059         (`.in', `.fl', etc.) to html driver.
10061         Three new functions (.html-begin, .html-end, and .html-image) for
10062         better html handling: `html-begin' will execute the remaining line
10063         if at the outermost nesting level, increasing an internal counter.
10064         `html-end' does the same but decreases the internal counter.
10065         `html_image' puts its arguments into a special node (suppress_node)
10066         to define an image region.
10068         The `output' request has been removed.
10070         * tmac/html-tags.tmac: Removed.
10071         * tmac/arkup.tmac: Updated and renamed to ...
10072         * tmac/www.tmac: New file.
10073         * tmac/markup.tmac Updated and renamed to ...
10074         * tmac/mwww.tmac: New file.
10075         * tmac/Makefile.sub: Updated.
10076         * tmac/an-old.tmac: Updated.
10077         * tmac/eqnrc: Updated.
10078         * tmac/groff_man.man
10079         * tmac/groff_markup.man: Updated and renamed to ...
10080         * tmac/groff_mwww.man: New file.
10081         * tmac/groff_tmac.man: Updated.
10082         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
10083         * tmac/html.tmac: Updated and renamed from html2.tmac.
10084         * tmac/pspic.tmac: Updated html support.
10085         * tmac/s.tmac: Added html output support.
10086         * tmac/troffrc, tmac/troffrc-end: Updated.
10088         * Makefile.in, doc/Makefile: Updated.
10089         * doc/groff.texinfo: Added info about new `\O' escape.
10090         * doc/homepage.ms: Use `MAILTO' macro.
10092         * font/devhtml/DESC.proto: Add `C' font.
10093         * font/devhtml/Makefile.sub: Updated.
10094         * font/devhtml/R.proto: Minor fixes.
10095         * font/devhtml-old/Makefile.sub: Updated.
10097         * src/devices/grohtml-old/Makefile.sub: Updated.
10099         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
10100         method.
10101         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
10102         graphic_start): Add `inline' parameter.  Update.
10103         (html_end_suppress, graphic_end): Update.
10105         * src/include/html-strings.h: New file.
10106         * src/include/htmlindicate.h: Comments updated.
10107         * src/include/printer.h: Updated.
10109         * src/preproc/eqn/main.cc (do_file, main): Updated.
10110         * src/preproc/pic/troff.cc (troff_output::start_picture,
10111         troff_output::finish_picture): Updated.
10112         * src/preproc/tbl/main.cc (process_input_file): Updated.
10114         * src/roff/groff/groff.cc (main): Updated.
10115         Pass device arguments to predrivers also.
10116         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
10117         * src/roff/troff/env.h (environment): Updated.
10118         New elements `need_eol' and `ignore_next_eol' (for html output).
10119         * src/roff/troff/env.cc (environment::environment): Add initializers
10120         for `need_eol' and `ignore_next_eol'.
10121         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
10122         functions.
10123         (point_size, fill, no_fill, center, right_justify, line_length,
10124         indent, temporary_indent, break_request, handle_tab): Use
10125         `add_html_tag()'.
10126         (set_tabs): Use `add_html_tag_tabs()'.
10127         (environment::add_html_tag): Updated.
10128         (environment::do_break): Updated.
10129         * src/roff/troff/div.cc (space_request, flush_output): Use
10130         `environment::add_html_tag()'.
10131         * src/roff/troff/input.cc: Updated.
10132         New variable `html_level' to indicate nested `html-begin' requests.
10133         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
10134         (non_interpreted_char_node, token_node, non_interpreted_node): Add
10135         `force_tprint()' method.
10136         (token::next): Handle `\O'.
10137         (do_suppress): Implement it.
10138         (html_begin, html_end, html_image): New functions.
10139         (init_output_requests): Renamed to ...
10140         (init_html_requests): this.
10141         (main): Use it.
10142         (macro::append_str, macro::append_unsigned, macro::append_int): New
10143         methods.
10144         New variable `output_low_mark_miny' to limit minimal value of y.
10145         (reset_output_registers): Use it.
10146         (output_request): Removed.
10147         (get_output_registers): New function.
10148         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
10149         (*_node): Added `force_tprint()' if necessary.
10150         (special_node): New elements `tf' and `get_tfont()'.
10151         (suppress_node): New class.
10152         * src/roff/troff/node.cc:
10153         New global variables `image_no' and `suppress_start_page'.
10154         (real_output_file): New method `is_on()'.
10155         (troff_output_file): New method `start_special(tfont)'.
10156         (troff_output_file::really_print_line): Use `tprint' conditionally.
10157         (real_output_file::print_line): Updated.
10158         (real_output_file::on): Updated.
10159         (*_node): Added `force_tprint()'.
10160         (special_node::special_node): Initializer updated.
10161         (special_node::same, special_node::copy, special_node::tprint_start):
10162         Updated.
10163         (get_reg_int, get_reg_str): New functions.
10164         (suppress_node::*): New methods.
10165         New global variables last_position, last_image_filename;
10166         (min): New inline function.
10167         * src/roff/troff/reg.h, src/roff/troff/request.h,
10168         src/roff/troff/troff.h: Updated.
10170 2001-01-13  Werner LEMBERG  <wl@gnu.org>
10172         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
10173         documentation of `asciify' request.
10175 2001-01-12  Werner LEMBERG  <wl@gnu.org>
10177         * src/roff/troff/input.cc: Move definition of special characters
10178         like `ESCAPE_TILDE' to ...
10179         * src/roff/troff/input.h: New file.
10180         * src/roff/troff/Makefile.sub (HDRS): Add it.
10182         Extending the .asciify request to `unformat' space characters also.
10184         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
10185         to count input space characters.
10186         Update constructors to take care of it.
10187         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
10188         `ESCAPE_SPACE' instead of normal space.
10189         (word_space_node::asciify): New method.
10190         (unbreakable_space_node::asciify): New method.
10191         (word_space_node::merge_space): New method.
10192         * src/roff/troff/env.cc (environment::space_newline,
10193         environment::space): Add code to initialize `num_spaces' (using the
10194         constructor of `word_space_node').
10195         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
10196         Document it.
10198 2001-01-09  Werner LEMBERG  <wl@gnu.org>
10200         * man/groff_char.man: Use table header traps only conditionally.
10202 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
10204         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
10206 2001-01-08  Werner LEMBERG  <wl@gnu.org>
10208         Introducing the `box' and `boxa' requests which are similar to
10209         `di' resp. `da' but omitting a partially filled line (which is
10210         restored after ending the diversion).
10212         * src/roff/troff/div.h (diversion): Add elements to save partially
10213         filled line.
10214         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
10215         partially filled line.
10216         (divert, divert_append): Updated.
10217         (box, box_append): New functions.
10218         (init_div_requests): Use them.
10219         * src/roff/troff/env.h (environment): do_divert() is now a friend.
10220         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10222         * doc/groff.texinfo: Fix documentation of `lf' request.
10224 2000-12-25  Werner LEMBERG  <wl@gnu.org>
10226         * src/roff/troff/troff.man, NEWS: Document `writem' request.
10228 2000-12-21  Werner LEMBERG  <wl@gnu.org>
10230         Ignore `ss' request if in compatibility mode.
10232         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
10233         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
10234         * src/roff/troff/env.cc (space_size): Use it.
10236         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
10237         `ss' request in nroff mode.
10239         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
10240         changes.
10242 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
10244         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
10246 2000-12-13  Werner LEMBERG  <wl@gnu.org>
10248         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
10249         * src/preproc/eqn/neqn.man: Small fixes and additions.
10251 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
10253         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
10254         Fixing typo.
10256         * src/preproc/eqn/neqn.man: New file.
10258         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
10259         negative' warning.
10261         * tmac/e.tmac: Add `T&' macro.
10262         Fix `indent cannot be negative' warning.
10263         * tmac/s.tmac: Fix `indent cannot be negative' warning.
10265 2000-12-07  Werner LEMBERG  <wl@gnu.org>
10267         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
10269 2000-12-06  Werner LEMBERG  <wl@gnu.org>
10271         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
10272         `alloca' symbol .
10274         * MORE.STUFF: Added info about deroff for djgpp.
10276         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
10277         documentation of -rcR switch.
10279 2000-12-03  Werner LEMBERG  <wl@gnu.org>
10281         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
10282         if -rcR=1 (which is now the default in nroff mode), a single, very
10283         long page is created instead of multiple pages: All `ne' and `wh'
10284         requests are put into conditionals; a new macro `an-end' is added to
10285         be called with `em'.
10287         Some other minor cleanups.
10289         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
10291 2000-12-02  Werner LEMBERG  <wl@gnu.org>
10293         Fixing a bug which prevented hyphenation in words followed
10294         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
10296         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
10297         Adding possibly_break_line().
10298         * src/roff/troff/env.h (environment): Make possibly_break_line()
10299         public.
10301         Make `\~' usable in .tr request.
10303         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
10304         (token): Add stretchable_space().
10305         * src/roff/troff/input.cc (token::next, token::delimiter,
10306         token::description, process_input_stack, do_translate,
10307         add_to_node_list, token::process): Use it.
10308         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
10309         for adjusting the space.
10310         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
10311         for stretchable space.
10312         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
10313         (make_node): Add code for stretchable space.
10314         * src/roff/troff/env.cc (environment::add_char): Use it.
10315         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
10316         (get_copy, token::next, transparent_translate, asciify): Use it.
10318         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
10319         doc/groff.texinfo: Updated.
10320         * man/groff.man: Small reorderings.
10322 2000-11-23  Werner LEMBERG  <wl@gnu.org>
10324         * NEWS: Fixes.
10325         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
10326         option.
10327         * src/roff/troff/input.cc (main): Add `config_macro_path' and
10328         `safer_macro_path' to -M option.
10329         * src/roff/troff/troff.man: Fixes.
10331 2000-11-22  Werner LEMBERG  <wl@gnu.org>
10333         Use safer path (except for config files) if -U isn't specified.  Add
10334         a special macro path (without home and current directory) for config
10335         files.  Add home directory to unsafe path for consistency.  Don't
10336         include the home directory in the font path.
10338         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
10339         `macro_path'.
10340         * src/include/macropath.h: Add `config_macrp_path'.
10341         * src/libs/libgroff/fontfile.cc: Fix font path.
10342         * src/roff/troff/input.cc (process_startup_file): Use
10343         `config_macro_path'.
10344         (main): Select unsafe path if -U is given.
10346         * src/preproc/eqn/main.cc (main): Fixing search path for
10347         configuration file.
10348         * src/preproc/eqn/eqn.man: Updated.
10350         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
10351         Updated.
10353         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
10354         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
10355         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
10356         src/devices/grotty/grotty.man: Updated.
10358         * Makefile.in: Fix comments.
10360 2000-11-17  Werner LEMBERG  <wl@gnu.org>
10362         * tmac/safer.tmac: Empty file added (again) for compatibility
10363         reasons.
10364         * tmac/Makefile.sub: Updated.
10366 2000-11-16  Werner LEMBERG  <wl@gnu.org>
10368         * src/devices/grodvi/dvi.cc (main),
10369         src/devices/grohtml2/post-html.cc (main),
10370         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
10371         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
10372         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
10373         (main), src/preproc/html2/pre-html.cc (main),
10374         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
10375         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
10376         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
10377         (main), src/utils/hpftodit/hpftodit.cc (main),
10378         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
10379         (main), src/utils/lookbib/lookbib.cc (main),
10380         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
10381         (main): Use stdout for -v.
10382         * src/roff/groff/groff.cc (run_commands),
10383         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
10384         to make direct printing to stdout possible.
10385         * src/roff/groff/pipeline.h: Updated.
10387         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
10388         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
10389         * src/utils/afmtodit/afmtodit.man: Updated.
10391         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
10392         (version): New function.
10393         (usage): Updated.
10394         * src/utils/addftinfo/addftinfo.man: Updated.
10396         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
10397         Fixing copyright dates.
10399         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
10400         replacing it.
10402         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
10403         version_string.
10405         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
10407 2000-11-15  Werner LEMBERG  <wl@gnu.org>
10409         In all programs, make -v return immediately with exit status 0 to
10410         be compliant with the GNU standard.
10412         * src/devices/grodvi/dvi.cc (main),
10413         src/devices/grohtml2/post-html.cc (main),
10414         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
10415         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
10416         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
10417         (main), src/preproc/html2/pre-html.cc (main),
10418         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
10419         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
10420         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
10421         (main): Implement it.
10422         * NEWS: Updated.
10424         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
10425         and postprocessors to the -v option.
10427         * src/roff/grog/grog.pl: Implement -v.
10428         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
10429         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
10431         * src/roff/nroff/nroff.sh: Implement -v.
10432         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
10433         * src/roff/nroff/nroff.man: Updated.
10434         
10435         * src/preproc/eqn/main.cc (main): Fix comment typo.
10437         * MORE.STUFF: Added info about djgpp port of grap.
10439 2000-11-14  Werner LEMBERG  <wl@gnu.org>
10441         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
10442         mode (or rather, implemented non-compatibility mode).
10443         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
10445         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
10446         replacing it -- we don't find gxditview otherwise.
10447         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
10449         * src/preproc/pic/depend: Removed.  Unnecessary.
10451         Implemented dummy keyword `solid' in pic for compatibility with
10452         AT&T pic.
10454         * lex.cc (lookup_keyword): Added `solid'.
10455         * pic.y: Added SOLID with dummy rule.
10456         * pic.cc, pic_tab.h: Regenerated.
10457         * doc/pic.ms: Updated.
10459 2000-11-13  Werner LEMBERG  <wl@gnu.org>
10461         For security reasons, don't use the current directory but the home
10462         directory while searching and scanning troffrc and troffrc-end.
10463         Similarly, replace the current directory with the home directory
10464         in the font path.
10466         * Makefile.in (fontpath, tmacpath): Remove current directory.
10468         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
10469         two parameters `add_home' and `add_current'.
10470         (search_path::~search_path, search_path::command_line_dir,
10471         search_path::open_file): Remove tests for `dirs' being zero.
10472         * src/include/searchpath.h: Adjust.
10473         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
10474         `safer_macro_path'.
10475         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
10477         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
10478         * src/roff/troff/input.cc: Use `mac_path', initialized with
10479         `macro_path'.
10480         (process_startup_file): Set `mac_path' to `safer_macro_path'.
10481         * src/roff/troff/env.cc: Use `mac_path'.
10483         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
10485         * NEWS, man/roff.man, src/roff/troff/troff.man,
10486         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
10487         Updated.
10489 2000-11-12  Werner LEMBERG  <wl@gnu.org>
10491         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
10493         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
10494         * configure.in: Fix typo in comment.
10495         * configure: Regenerated.
10497         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
10498         copyright dates.
10500 2000-11-08  Werner LEMBERG  <wl@gnu.org>
10502         Add system tmac directory (/usr/local/lib/groff/site-tmac).
10504         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
10505         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
10506         $(systemtmacdir).
10507         Use @libdir@.
10508         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
10509         * tmac/Makefile.sub (install_data): Create
10510         $(systemtmacdir) and $(localtmacdir).
10511         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
10512         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
10513         NEWS, doc/groff.texinfo: Updated and minor fixes.
10515         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
10516         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
10517         $(systemtmacdir) since the wrapper files are platform-dependent.
10519 2000-11-01  Werner LEMBERG  <wl@gnu.org>
10521         * doc/groff.texinfo: Fix typo.
10523 2000-10-26  Werner LEMBERG  <wl@gnu.org>
10525         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
10526           tmac.doc.old -> doc-old.tmac
10527           tmac.an.old  -> an-old.tmac
10529         * tmac/tmac.*: Moved to ...
10530         * tmac/*.tmac: this.
10531         * tmac/man.local: Fix comment.
10532         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
10533         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
10534         Added some `FILES' sections.  More use of @...@ directives.  Other
10535         minor updates.
10536         * arch/djgpp/README, font/devutf8/NOTES: Updated.
10537         * doc/homepage.ms, doc/groff.texinfo: Updated.
10538         * man/groff.man, man/roff.man: Updated.
10539         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
10540         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
10541         src/devices/grotty/grotty.man: Updated.
10542         * src/preproc/pic/pic.man: Updated.
10543         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
10544         instead of -mdoc.old.
10545         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
10546         * src/roff/nroff/nroff.man: Updated.
10547         * NEWS: Updated.
10549         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
10551         * tmac/mm.diff: Removed -- it has no use now since the mm package
10552         is part of groff.
10554         * tmac/*: Removed trailing spaces.
10556         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
10557         the tmac subdirectory also).
10559         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
10560         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
10561         stuff since it is no longer needed.
10563         * README, PROBLEMS: Updated.
10565 2000-10-25  Werner LEMBERG  <wl@gnu.org>
10567         Invert current behaviour: Search first FOOBAR.tmac, then
10568         tmac.FOOBAR.
10570         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
10571         (open_mac_file, macro_source): Implement it.
10572         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
10573         doc/groff.texinfo, NEWS: Document it.
10575         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
10576         Small documentation improvements.
10578         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
10579         subdirectory also).
10581         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
10583 2000-10-24  Werner LEMBERG  <wl@gnu.org>
10585         Add local tmac directory (groff/site-tmac).
10587         * Makefile.in: Add $(localtmacdir).
10588         (uninstall_dirs): Add $(localtmacdir).
10589         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
10590         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
10591         in $(localtmacdir).  Create $(localtmacdir).
10592         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
10593         Updated and minor fixes.
10595         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
10597         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
10599 2000-10-23  Werner LEMBERG  <wl@gnu.org>
10601         Move hyphen.us to tmac directory.
10603         * src/roff/troff/hyphen.us: Removed.
10604         * src/tmac/hyphen.us: Added.
10605         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
10607         Change installation structure for data files from .../groff/... to
10608         .../groff/<version><revision>/... to be conform with other GNU
10609         programs.
10611         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
10612         doc/Makefile: Implement it.
10613         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
10614         * configure: Updated.
10615         * arch/djgpp/README, font/devutf8/NOTES: Use it.
10616         * NEWS: Document it.
10617         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
10618         @MACRODIR@ instead of hard-coded directories.
10620 2000-10-22  Werner LEMBERG  <wl@gnu.org>
10622         Implement $GROFF_BIN_PATH environment variable (which defaults to
10623         $bindir) used for child programs of groff and similar wrappers.
10625         * gendefs.sh: Improve documentation.
10626         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
10627         src/preproc/eqn/Makefile.sub (neqn),
10628         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
10629         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
10630         $GROFF_BIN_PATH.
10631         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
10632         $GROFF_PATH__ (the latter for communication with troff).
10633         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
10634         set.
10635         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
10636         doc/groff.texinfo: Document it.
10638         * doc/groff.texinfo: Improve documentation of troff's -a option.
10640 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
10642         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
10643         non-intrusive eol marker.
10644         (troff_output_file::determine_line_limits): New function.
10645         (troff_output_file::draw): Use it.
10646         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
10647         output_pending_lines() instead of output_line().
10648         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
10649         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
10650         createImage): Small fixes.
10651         
10652 2000-10-14  Werner LEMBERG  <wl@gnu.org>
10654         Replace tmac.safer with a real secure solution.
10656         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
10657         system_request, pipe_output): Disable requests if in safer mode.
10658         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
10659         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
10660         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
10661         doc/groff.texinfo, src/roff/groff/groff.man,
10662         src/roff/troff/troff.man, arch/djgpp/README: Updated.
10664         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
10665         (resource_manager::output_prolog): Replace setenv() with putenv().
10667 2000-10-09  Werner LEMBERG  <wl@gnu.org>
10669         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
10670         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
10671         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
10672         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
10673         compilation errors with some compilers.  It seems that this code
10674         is no longer necessary -- if yes, it is easy to add some #ifdef's
10675         for that particular old-fashioned compiler.
10677         * MORE.STUFF: Added info about Meta-tbl.
10679         * doc/groff.texinfo: Added more info about `.if "..."..."'.
10681 2000-10-07  Werner LEMBERG  <wl@gnu.org>
10683         Adding a new escape sequence \B'...': If the string between
10684         the delimiters is a valid numeric expression, return the character
10685         `1', and `0' otherwise.  This is an analogon to \A.
10687         * src/roff/troff/input.cc (do_expr_test): Implement it.
10688         (token::next): Use it.
10689         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
10691         * tmac/tmac.trace: Made independent from escape character.
10693 2000-10-06  Werner LEMBERG  <wl@gnu.org>
10695         Adding a new request .dei: define indirect.  The first and second
10696         parameter of .dei are taken from string registers instead directly;
10697         this very special request is needed to make tmac.trace independent
10698         from the escape character (which might even be disabled).
10700         * src/roff/troff/input.cc (do_define_macro): Implement it.
10701         (define_macro_indirect): New function.
10702         (init_input_requests): Use it.
10704         Adding two requests .ecs and .ecr: Save and restore the escape
10705         character.  These two requests are needed to make tmac.trace
10706         independent from the escape character (which might even be
10707         disabled).
10709         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
10710         Implement it.
10711         (init_input_requests): Use it.
10713         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10715 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
10717         Adding a new option -P and new environment variable GROPS_PROLOGUE
10718         to grops, selecting a different prologue file (minor modifications
10719         by WL).
10721         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
10722         src/devices/grops/ps.cc (main): Implement it.
10723         * src/devices/grops/grops.man, NEWS: Document it.
10725 2000-09-22  Werner LEMBERG  <wl@gnu.org>
10727         * INSTALL: Add info about selecting paper format.
10729 2000-09-21  Werner LEMBERG  <wl@gnu.org>
10731         * src/roff/troff/input.cc (main): Fixing compiler warning.
10732         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
10733         strings.h from the former to the latter.
10734         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
10735         stuff from the former to the latter.
10737 2000-09-11  Werner LEMBERG  <wl@gnu.org>
10739         Implementing two new requests .tm1 and .tmc: The former is similar
10740         to .tm but can output leading spaces; its syntax is similar to
10741         defining a string, i.e., a `"' can be used to mark the beginning of
10742         the string to be written to stderr: `.tm1 " test'.  The latter is
10743         similar to .tm1 but doesn't write out a final newline character.
10745         * src/roff/troff/input.cc (terminal1, terminal_continue,
10746         do_terminal): New functions.
10747         (init_input_requests): Use them.
10748         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10750 2000-09-09  Werner LEMBERG  <wl@gnu.org>
10752         * tmac/groff_mdoc.samples.man: Small fixes.
10754 2000-09-08  Werner LEMBERG  <wl@gnu.org>
10756         * tmac/groff_mdoc.man: Fixing typo.
10758 2000-09-02  Werner LEMBERG  <wl@gnu.org>
10760         Implementing a .nop request which does nothing.
10762         * src/roff/troff/input.cc (nop_request): New function.
10763         (init_input_requests): Use it.
10764         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10766 2000-09-01  Werner LEMBERG  <wl@gnu.org>
10768         * doc/groff.texinfo: Added some comments.
10770 2000-08-30  Werner LEMBERG  <wl@gnu.org>
10772         * src/roff/troff/TODO: Updated.
10774 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10776         * doc/groff.texinfo: Fix comment how to compile the DVI file.
10778 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
10780         * font/devps/generate/Makefile (SHELL): Define explicitly to
10781         "/bin/sh", for non-Unix platforms.
10782         (extraclean): Use a more portable "" quoting instead of a
10783         backslash (which doesn't work on DOS/Windows).
10784         
10785         * font/devlj4/generate/Makefile (extraclean): Ditto.
10787         * font/devdvi/generate/Makefile (extraclean): Ditto.
10789 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10791         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
10792         src/roff/troff/troff.man: Document Eli's latest changes.
10794 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
10796         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
10797         macro file names of the form NAME.tmac as well as tmac.NAME.
10799 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10801         * src/include/posix.h: Remove definition of FILENAME_MAX.
10803         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
10804         `sys_fatal' and `stop' function().
10806         * test-groff: Updated.
10808 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
10810         Added the new troff command .output <arg> to suppress output (while
10811         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
10812         registers (for passing the output dimensions to the output device).
10814         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
10815         parameter.
10816         * src/roff/troff/node.h, src/roff/troff/node.cc
10817         (troff_output_file::really_print_line,
10818         ascii_output_file::really_print_line,
10819         supress_output_file::really_print_line): Use `width' parameter.
10820         (troff_output_file::really_on, troff_output_file::really_off,
10821         output_file::on, output_file::off, real_output_file::on,
10822         real_output_file::off, real_output_file::really_on,
10823         real_output_file::really_off): New functions.
10824         (real_output_file:public output_file): New variable `output_on'.
10825         (real_output_file::begin_page, real_output_file::copy_file,
10826         real_output_file::transparent_char, real_output_file::print_line):
10827         Use it.
10828         (real_output_file::print_line): Use check_output_limits.
10829         * src/roff/troff/reg.h, src/roff/troff/request.h,
10830         src/roff/troff/input.cc (assign_registers): New function to remove
10831         two `goto's.
10832         (do_ps_file): Use it.
10833         (check_output_limits, reset_output_registers, output_request,
10834         init_output_requests): New functions.
10835         (init_input_requests): Updated.
10837         Added new grohtml2 device and html2 preprocessor (coding
10838         not yet finished) which will eventually replace grohtml.
10840         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
10841         Updated.
10842         * src/include/htmlindicate.h, src/include/htmlindicate
10843         (html_begin_suppress, html_end_suppress): New functions.
10844         * src/preproc/tbl/main.cc: Use it.
10845         * src/roff/groff/groff.cc: Add support for html2 device (which will
10846         automatically invoke the html2 preprocessor).
10847         * src/roff/troff/input.cc (is_html2): New variable.
10848         * src/roff/troff/troff.h, src/roff/troff/env.h,
10849         src/roff/troff/env.cc (environment::add_html_tag): New function
10850         (uses `is_html2').
10851         (environment::do_break): Use it.
10852         * font/devhtml2/*: New files.
10853         * src/devices/grohtml2: New device.
10854         * src/preproc/html2: New preprocessor.
10855         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
10857 2000-08-23  Werner LEMBERG  <wl@gnu.org>
10859         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
10861 2000-08-22  Werner LEMBERG  <wl@gnu.org>
10863         * src/include/lib.h: Provide a fix for IRIX to not include
10864         groff-getopt.h.
10866 2000-08-18  Werner LEMBERG  <wl@gnu.org>
10868         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
10869         since some non-GNU sed programs can't handle null regexps.
10870         * configure, src/preproc/eqn/Makefile.sub,
10871         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
10873         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
10874         bug (string.h and strings.h are both needed according to latest
10875         POSIX standard).
10877         * MORE.STUFF: Added info about unroff and troffcvt.
10879 2000-08-08  Werner LEMBERG  <wl@gnu.org>
10881         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
10882         used before -ms.
10884         * tmac/tmac.man.old: Remove unused number register.
10886         * tmac.doc: Minor documentation fix.
10888 2000-08-07  Paul Eggert  <eggert@twinsun.com>
10890         * src/roff/groff/pipeline.c (is_system_shell):
10891         Fix typo: "monocased_shell" no longer exists.
10893 2000-08-07  Paul Eggert  <eggert@twinsun.com>
10895         Remove FILENAME_MAX limits.
10897         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
10898         that the argument length is less than FILENAME_MAX.
10899         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
10900         Use struct hack to allocate and free file name.
10901         (struct xtmpfile_list): fname is now part of the structure,
10902         not a pointer to another string.
10904 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
10906         * src/include/posix.h: Add a default value for FILENAME_MAX.
10908 2000-08-06  Paul Eggert  <eggert@twinsun.com>
10910         Add support for new BSD-style man pages (with ".Dd" instead of
10911         ".TH"), so that "groff -man" understands both styles, even
10912         when running "groff -man" on a host whose system man page
10913         macros don't support ".Dd".
10915         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
10916         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
10917         in case the system man macros don't define Dd or TH.
10919         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
10920         * tmac/tmac.an: New one-line file.
10921         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
10923 2000-08-06  Werner LEMBERG  <wl@gnu.org>
10925         * src/roff/troff/troff.man: Fixing typos.
10927 Version 1.16.1 released
10928 =======================
10930 2000-07-31  Werner LEMBERG  <wl@gnu.org>
10932         Preparing release 1.16.1.
10934         * REVISION: Revision number set to 1.
10935         * MORE.STUFF: Added info about port to DOS.
10936         * NEWS, win32-diffs: Updated.
10938         * src/include/nonposix.h: Remove first line -- this file is used
10939         in C also.
10941         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
10942         link to it.
10944 2000-07-30  Werner LEMBERG  <wl@gnu.org>
10946         * doc/texinfo.tex: Update to latest version.
10948 2000-06-28  Paul Eggert  <eggert@twinsun.com>
10950         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
10951         commands that fail.  Don't assume that "export a=b" is valid shell
10952         syntax.  This is needed for Solaris 2.5.1.
10954         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
10955         comment about missing Solaris headers.
10957         * PROBLEMS: Add section about problems with Sun Make and VPATH.
10959 2000-06-25  Werner LEMBERG  <wl@gnu.org>
10961         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
10962         SET_BINARY().
10964         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
10966         * win32-diffs: Updated.
10967         * README.WIN32: Added CRs to make all Windows editors happy.
10969         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
10970         src/roff/groff/pipeline.c).
10972 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
10974         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
10975         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
10977 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
10979         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
10980         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
10981         are binary files.
10982         (main): Support non-Posix systems with several different styles of
10983         slash characters in file names.
10985         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
10986         (main) [SET_BINARY]: Switch stdin into binary mode.
10988         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
10989         (main): Support file names with several possible slash-type
10990         characters, as given by DIR_SEPS[] in nonposix.h.
10991         (main) [__MSDOS__]: If renaming the temporary index file fails
10992         because it has more than one dot in its trunk, replace the dot
10993         with an underscore and try again.
10994         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
10995         Newline.
10996         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
10998         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
10999         (File::File): Open the input file in binary mode.  Strip CR
11000         characters from each CR-LF pair.
11001         (xbasename): Support file names with several possible slash-type
11002         characters, as given by DIR_SEPS[] in nonposix.h.
11004         * src/include/Makefile.sub (HDRS): Add nonposix.h.
11006         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
11007         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
11008         [!_POSIX_VERSION]: Define for traditional Unix systems.
11009         (real_output_file::real_output_file): Remove the MSVC-specific
11010         call to popen, use instead POPEN_WT, appropriately defined on
11011         nonposix.h.  #include nonposix.h.
11012         (real_output_file::~real_output_file): Remove the MSVC-specific
11013         call to pclose, a suitable macro is now defined on nonposix.h.
11014         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
11015         and WEXITSTATUS instead of assuming traditional Unix
11016         interpretation of the status returned by pclose.
11018         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
11019         call to popen, use POPEN_RT instead (appropriately defined on
11020         nonposix.h).  #include nonposix.h.
11021         (ps_bbox_request): Open the PostScript file in binary mode.
11022         Close the file after processing it.
11023         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
11024         nonposix.h.
11026         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
11027         A version of run_pipeline that doesn't use `fork'.
11028         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
11029         (system_shell_name, system_shell_dash_c)
11030         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
11031         the ugliness of testing DOS/Windows file names for equality, and
11032         support both stock shells and ports of Unix shells.
11034         * src/roff/groff/groff.cc: #include nonposix.h.
11035         (BSHELL): Definition moved to nonposix.h.
11036         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
11037         instead of a literal "-c".
11038         (xbasename): Support file names with several possible slash-type
11039         characters, as given by DIR_SEPS[] in nonposix.h.
11040         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
11041         of literal strings.
11043         * src/preproc/soelim/soelim.cc: #include nonposix.h.
11044         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
11046         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
11047         pic_tab.h.
11049         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
11051         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
11052         eqn_tab.h.
11054         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
11056         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
11057         P_tmpdir is defined, use it instead of the literal "/tmp".
11058         (remove_tmp_files, add_tmp_file): New functions.
11059         (xtmpfile): Record temporary files and register an atexit function
11060         to delete them explicitly, instead of relying on the OS to do
11061         that, which doesn't work on non-Unix systems.
11063         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
11064         (search_path::search_path): Use PATH_SEP instead of a literal
11065         colon.
11066         (search_path::command_line_dir): Ditto.
11067         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
11068         to support non-Posix systems.
11070         * src/libs/libbib/search.cc: #include nonposix.h.
11071         (search_list::add_file): Open the file in binary mode.
11073         * src/libs/libbib/linear.cc: #include nonposix.h.
11074         (file_buffer::load): Remove \r characters preceding \n from the
11075         loaded buffer.
11077         * src/libs/libbib/index.cc: #include nonposix.h.
11078         (make_index_search_item): Open index_filename in O_BINARY mode.
11079         (index_search_item_iterator::get_tag): Ditto.  Remove \r
11080         characters before \n characters.
11081         (index_search_item::check_files): Open files in binary mode.
11082         (index_search_item::munge_filename): Support DOS-style file names
11083         with backslashes and drive letters, use IS_ABSOLUTE.
11085         * src/devices/grops/ps.cc: #include nonposix.h.
11086         (main) [SET_BINARY]: Switch stdout to binary mode.
11088         * src/devices/grolj4/lj4.cc: #include nonposix.h.
11089         (main) [SET_BINARY]: Switch stdout to binary mode.
11091         * src/devices/grolbp/lbp.cc: #include nonposix.h
11092         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
11094         * src/devices/grodvi/dvi.cc: #include nonposix.h.
11095         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
11096         nonposix.h).
11097         (main) [SET_BINARY]: Switch stdout to binary mode.
11098         [_MSC_VER]: Remove an explicit call to _setmode.
11100         * src/include/nonposix.h: New file.
11102         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
11103         operation when building with DJGPP.
11104         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
11105         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
11106         ENVSETUP.
11108         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
11109         MS-DOS.
11110         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
11111         etc. can include a semi-colon on DOS/Windows.
11112         (depend.temp): Use depend1.temp instead of depend.temp1, to
11113         prevent files from overerwiting each other on 8+3 filesystems.
11115         * gendef.sh (t): Change definition to work with DOS/Windows.
11117         doc/groff.texinfo: Apart of some typo corrections, I also changed
11118         some index entris, to make them more non-ambiguous, and also put
11119         @ignore around some parts that are not yet written, to allow the
11120         Info output be readable.
11122 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
11124         Replaced specific checks for function declarations with a generic
11125         routine taken from GNU bfd.
11127         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
11128         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
11129         * configure.in: Use it.
11130         * src/devices/grolbp/lbp.cc, src/include/lib.h,
11131         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
11132         src/roff/groff/groff.cc: Use it.
11133         * Makefile.in, configure: Updated.
11135 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
11137         * src/devides/grolbp/lbp.h: Removed unused variables.
11139 2000-05-31  Keith Thompson  <kst@sdsc.edu>
11141         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
11142         strncasecmp().
11144 2000-05-31  Werner LEMBERG  <wl@gnu.org>
11146         * aclocal.m4 (GROFF_SRAND): New function to test the return value
11147         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
11148         * configure.in: Use it.
11149         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
11150         * configure, Makefile.in: Updated.
11152         * configure.in: Add test for strncasecmp().
11153         * src/include/lib.h: Use it.
11155 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
11157         * src/preproc/grn/Makefile.sub: Add MLIB.
11159 2000-05-29  Nix  <nix@esperi.demon.co.uk>
11161         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
11163 2000-05-29  Werner LEMBERG  <wl@gnu.org>
11165         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
11167         * PROBLEMS: Small update.
11169         * src/devices/grolbp/lbp.cc: Various small fixes.
11171 2000-05-28  Keith Thompson  <kst@sdsc.edu>
11173         * src/roff/nroff/nroff.sh: Fix main loop syntax.
11175         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
11177 2000-05-25  Werner LEMBERG  <wl@gnu.org>
11179         * man/roff.man: Removed unused macro.
11181 2000-05-24  Werner LEMBERG  <wl@gnu.org>
11183         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
11184         This is needed e.g. if you do
11185         `make distclean; ./configure; make dist'.
11187 Version 1.16 released
11188 =====================
11190 2000-05-23  Werner LEMBERG  <wl@gnu.org>
11192         Adding font CWI (constant width italic) to devdvi.
11194         * font/devdvi/CWI: New file.
11195         * font/devdvi/generate/Makefile: Add generating rule.
11196         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
11197         tmac/tmac.dvi: Use it.
11198         * NEWS: Announce it.
11200         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
11201         * font/devlj4/generate/Makefile: Cosmetic changes only.
11203         * man/groff.man: Removed most of the redundant description of
11204         special characters (which is in groff_char.man).  Added font
11205         translation CB->CR for devdvi.  Other minor fixes.
11207         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
11208         (registered) symbols.
11210 2000-05-22  Werner LEMBERG  <wl@gnu.org>
11212         * doc/Makefile: Added rule for creating info files.
11214         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
11215         AMS font metrics.
11216         * font/devdvi/generate/Makefile: Fixed dependencies.
11218         * font/devps/*: Regenerated.  Heavy changes for Bookman and
11219         NewCentury Schoolbook!
11220         * font/devps/generate/afmname: Will now run with GNU awk.
11221         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
11222         * font/devps/generate/Makefile: Cosmetic changes only.
11224 2000-05-21  Werner LEMBERG  <wl@gnu.org>
11226         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
11227         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
11228         `.SS' now produces a heading with a smaller size than `.SH'. 
11229         Completely formatted.
11230         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
11232         * man/groff.man: Improved table appearance.  Use of `eo' request
11233         to reduce number of doubled backslashes in macro definitions.
11234         Replacing `\e' with `\(rs'.  Other minor fixes.
11236         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
11237         to have correct line number.
11239         * INSTALL: Small improvement.
11241 2000-05-20  Bernd Warken  <bwarken@mayn.de>
11243         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
11244         WL).
11246 2000-05-19  Bernd Warken  <bwarken@mayn.de>
11248         * man/groff.man: Complete update (with a lot of corrections by WL).
11250 2000-05-18  Werner LEMBERG  <wl@gnu.org>
11252         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
11254         * font/*/*: Implement it.
11255         * man/groff_char.man, NEWS: Document it.
11257         * src/include/unix.h: Removed.  It isn't used.
11259         * doc/groff.texinfo: Slight improvements.
11261 2000-05-17  Werner LEMBERG  <wl@gnu.org>
11263         * README, win32-diffs: Small fixes and improvements.
11265 2000-05-16  Werner LEMBERG  <wl@gnu.org>
11267         * FDL: New file (the Free Documentation License version 1.1).
11269         * doc/groff.texinfo: Added many start-up values for gtroff.
11270         Some structural improvements of the source code.
11272 2000-05-15  Werner LEMBERG  <wl@gnu.org>
11274         * src/roff/troff/input.cc: Added small comment about troffrc-end.
11275         * src/roff/troff/troff.man: Added info about troffrc-end.
11277 2000-05-14  Werner LEMBERG  <wl@gnu.org>
11279         * Makefile.in (EXTRADIRS): Fix typos.
11280         (dist): Handle deletion of old .tar.gz file correctly.
11281         (DISTDIRS): Include all tty output devices.
11283         * doc/groff.texinfo: Adding more cross references; countless other
11284         fixes.
11286 2000-05-13  Werner LEMBERG  <wl@gnu.org>
11288         * MORE.STUFF: Added Robert Marks's utilities.
11290 2000-05-12  Werner LEMBERG  <wl@gnu.org>
11292         Added win32 port contributed by Blake McBride
11293         <blake@florida-software.com>.
11295         * README.WIN32, win32-diffs: New files.
11296         * NEWS: Updated.
11298         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
11299         (tmove, tmove2): Added parentheses to avoid compiler warnings.
11300         (change): Removed unused variables.
11302         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
11303         (savebounds): Changed return value from `int' to `void'.
11304         * src/preproc/grn/hdb.cc: Ditto.
11306         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
11307         final backslash in comment to avoid compiler warning.
11309         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
11311         * doc/groff.texinfo: More fixes.
11313 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
11315         * tmac/tmac.doc: Documentation fix.
11317 2000-05-11  Werner LEMBERG  <wl@gnu.org>
11319         * doc/groff.texinfo: Reading the source code shows up a lot of
11320         omissions and incorrect data...  More conversion to @Deffn macros.
11322 2000-05-10  Werner LEMBERG  <wl@gnu.org>
11324         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
11325         dependency.
11327         * src/roff/troff/request.h: Removing unused `no_break_flag'.
11329 2000-05-09  Werner LEMBERG  <wl@gnu.org>
11331         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
11332         improvements.
11334         * doc/groff.texinfo: Extended history section.  More conversion to
11335         @Deffn macros.  More .tr documentation.
11337 2000-05-07  Werner LEMBERG  <wl@gnu.org>
11339         * doc/groff.texinfo: Completed tab section.  Added info about
11340         fields.
11342 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
11344         * PROBLEMS: Describe configure script fix for OS/390 Unix.
11346 2000-05-05  Werner LEMBERG  <wl@gnu.org>
11348         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
11349         LaTeX 2e).
11350         * NEWS: Document it.
11352         * man/troff.man: Minor optical improvements.
11354 2000-05-03  Werner LEMBERG  <wl@gnu.org>
11356         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
11358         * font/*/*: Implement it.
11359         * man/groff_char.man, NEWS: Document it.
11361 2000-05-02  Werner LEMBERG  <wl@gnu.org>
11363         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
11364         expansion.
11365         * NEWS: Document the three new man pages.
11367         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
11368         * configure: Updated.
11370         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
11372 2000-05-01  Werner LEMBERG  <wl@gnu.org>
11374         Added grap support to grog.
11376         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
11377         * src/roff/grog/grog.man: Document it.
11379         * doc/groff.texinfo, NEWS: Add info about grap support.
11381         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
11382         (with slight fixes by me).
11384         * tmac/groff_tmac.man: New file documenting tmac mechanism.
11385         * tmac/Makefile.sub: Add groff_tmac.man.
11386         * man/roff.man: New file giving overview of roff system.
11387         * man/troff.man: A short reference of troff.
11388         * man/Makefile.sub: Add roff.man and troff.man.
11390 2000-04-30  Werner LEMBERG  <wl@gnu.org>
11392         Added grap support to groff.
11394         * src/roff/groff/groff.cc: Implement it.
11395         * src/roff/groff/groff.man: Document it.
11397         * src/devices/grotty/grotty.man: Add cp1047 device.
11398         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
11399         Ditto.
11400         * src/roff/groff/groff.man: Ditto.
11401         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
11402         * doc/groff.texinfo: Ditto.
11404         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
11405         for cp1047.
11407 2000-04-29  Werner LEMBERG  <wl@gnu.org>
11409         * man/groff_char.man: Add `pc' glyph.
11410         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
11411         * tmac/tmac.tty: Add `pc' glyph.
11412         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
11413         we use cp1047 output device.
11415         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
11416         there are still hardcoded latin1->unicode values in utf8's font
11417         definition files.
11418         * configure: Updated.
11419         * NEWS: Minor clarification.  Updated.
11421         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
11422         Unix.
11424 2000-04-28  Werner LEMBERG  <wl@gnu.org>
11426         Adding EBCDIC code page 1047.
11428         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
11429         font/devcp1047/DESC.proto: New files.
11431         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
11432         either ascii/latin1 or cp1047.
11433         * Makefile.in: Use it.
11434         * configure: Updated.
11436         Replacing and/or adding `md' (mathdot) glyph with `pc'
11437         (periodcentered) in all text fonts.
11439         * font/*/*: Change it.
11441 2000-04-27  Werner LEMBERG  <wl@gnu.org>
11443         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
11445         * configure.in: Add check for strings.h.
11446         * src/include/driver.h: Use HAVE_STRINGS_H.
11447         * src/devices/grolbp/lpb.cc: Remove string.h.
11449         * src/include/groff-getopt.h: New file.  It will be used instead of
11450         getopt.h (to be included in lib.h) to avoid endless problems with
11451         picky C++ compilers.
11452         * src/include/lib.h: Use groff-getopt.h.
11453         * src/include/Makefile.sub: Updated.
11455         * configure: Updated.
11456         * Makefile.in: Updated.
11458         * NEWS: Mention EBCDIC support.
11460 2000-04-26  Werner LEMBERG  <wl@gnu.org>
11462         * TODO: Some additions.
11464 2000-04-25  Werner LEMBERG  <wl@gnu.org>
11466         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
11467         of mso request.
11469 2000-04-23  Werner LEMBERG  <wl@gnu.org>
11471         * src/roff/troff/troff.man: Minor fixes.
11473 2000-04-22  Werner LEMBERG  <wl@gnu.org>
11475         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
11476         `.T' string register and the incompatible definition of the `.T'
11477         number register (compared to Unix troff).
11479         * man/groff_char.man: Add some missing characters.
11480         * font/devutf8/NOTES: Update.
11482 2000-04-21  Werner LEMBERG  <wl@gnu.org>
11484         * src/include/htmlindicate.h, src/include/lib.h,
11485         src/include/posix.h: Fix copyright.
11487         * src/include/Makefile.sub: Update.
11489 2000-04-20  Werner LEMBERG  <wl@gnu.org>
11491         * src/roff/troff/input.cc (input_char_description): Removing
11492         superfluous space char.
11494         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
11496         * doc/groff.texinfo: Document EBCDIC.
11498 2000-04-19  Werner LEMBERG  <wl@gnu.org>
11500         Introducing `shc' as the glyph name for the soft hyphen character.
11502         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
11503         font/devlatin1/R.proto: Use it.
11505         * NEWS: Updated.
11507 2000-04-18  Werner LEMBERG  <wl@gnu.org>
11509         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
11510         dependency on ASCII order.
11512 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
11514         * src/libs/libgroff/illegal.c: Added EBCDIC table.
11515         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
11517         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
11518         to increase portability.
11520 2000-04-15  Werner LEMBERG  <wl@gnu.org>
11522         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
11523         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
11524         the generic `\n' if under OS/390 Unix.
11526         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
11528         * configure: Regenerated.
11530 2000-04-14  Werner LEMBERG  <wl@gnu.org>
11532         * doc/groff.texinfo: More conversions to @Deffn.
11534 2000-04-12  Werner LEMBERG  <wl@gnu.org>
11536         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
11537         with `:'.
11539         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
11541 2000-04-10  Werner LEMBERG  <wl@gnu.org>
11543         * doc/groff.texinfo: More conversions to @Deffn.
11545 2000-04-08  Werner LEMBERG  <wl@gnu.org>
11547         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
11548         Updated to latest version (glibc 2.1.3).
11550 2000-04-07  Werner LEMBERG  <wl@gnu.org>
11552         * doc/Makefile (clean): Include more index files.
11553         Add rule texinfo->dvi.
11555 2000-04-05  Werner LEMBERG  <wl@gnu.org>
11557         * doc/groff.texinfo: Added new index `op' for operators.  More
11558         info on end of sentence characters.  More use of @Deffn.
11560 2000-03-30  Werner LEMBERG  <wl@gnu.org>
11562         * */*.man: Adding a note that a whitespace can be inserted between
11563         a command line option and its parameter -- we are using GNU getopt.
11565         * src/roff/groff/groff.man: Add example of `-m mandoc'.
11567 2000-03-28  Werner LEMBERG  <wl@gnu.org>
11569         Correct anachronism of calling the man macro file with `-man'
11570         instead of `-m man' etc.
11572         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
11573         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
11574         load tmac.<package>.
11576         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
11578         * NEWS: Updated.
11580         * doc/groff.texinfo: Updated.
11582         * tmac/groff_man.man: Copyright added.
11584 2000-03-27  Werner LEMBERG  <wl@gnu.org>
11586         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
11587         typeset the request resp. escape name with a tt font -- due to a
11588         bug in texinfo.tex it is necessary to use the `-e' switch with
11589         texi2dvi.
11591         Improving info about usage of groff units.
11593         Other minor fixes.
11595 2000-03-20  Werner LEMBERG  <wl@gnu.org>
11597         * doc/groff.texinfo: Added section about man macro package
11598         (I've basically taken groff_man.man).  Introducing new indices `ma'
11599         for macros/strings and `gl' for glyph names.  Other minor fixes.
11601         * tmac/groff_man.man: Fixed some typos.
11603 2000-03-19  Werner LEMBERG  <wl@gnu.org>
11605         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
11606         Other minor fixes.
11608         * doc/texinfo.tex: New file.
11610 2000-03-18  Werner LEMBERG  <wl@gnu.org>
11612         * doc/groff.texinfo: Improved section on number registers.  Other
11613         minor updates.
11615 2000-03-16  Werner LEMBERG  <wl@gnu.org>
11617         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
11618         synopsis.
11620         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
11621         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
11622         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
11623         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
11625         * src/preproc/grn/grn.man: Better synopsis; added copyright.
11627         * src/roff/grog/grog.man: Updated copyright date.
11629 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
11631         * configure.in: Added test for strdup.
11633         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
11634         is available.
11636         Replaced dynamic allocation of arrays `[...]' with `new' operator.
11638         Other minor fixes.
11640 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
11642         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
11644 2000-03-11  Werner LEMBERG  <wl@gnu.org>
11646         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
11647         compilers silent.
11648         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
11649         * src/include/lib.h: Remove some spaces.
11651 2000-03-10  Werner LEMBERG  <wl@gnu.org>
11653         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
11654         initializers from arguments (some compilers don't like this).
11656 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
11658         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
11659         used by pic and eqn to tell grohtml where the graphic regions start
11660         and end.
11661         * src/libs/libgroff/Makefile.sub: Use it.
11662         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
11663         graphic_start() and graphic_end() from htmlindicate.cc.
11665 2000-03-09  Werner LEMBERG  <wl@gnu.org>
11667         * tmac/tmac.safer: Will now work correctly in compatibility mode.
11668         * tmac/groff_man.man: More fixes.
11670 2000-03-08  Werner LEMBERG  <wl@gnu.org>
11672         * doc/Makefile: Added texput.log to the `clean' target.
11673         * doc/groff.texinfo: Added info about delimiters for escapes.
11675 2000-03-08  Bernd Warken  <bwarken@mayn.de>
11677         * src/preproc/pic/pic.man: Add info on conversion of pic images to
11678         other graphic formats.
11680 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
11682         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
11683         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
11684         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
11685         files.
11687 2000-03-07  Werner LEMBERG  <wl@gnu.org>
11689         * doc/groff.texinfo: Spelling fixes.
11691 2000-03-06  Werner LEMBERG  <wl@gnu.org>
11693         * tmac/groff_man.man: Completely revised to cover everything in
11694         tmac.an.
11696         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
11697         Other minor fixings.
11698         * src/roff/troff/env.cc (environment_copy): Improve error message and
11699         fix itoa->i_to_a.
11700         * src/roff/troff/TODO: Updated.
11702         * doc/Makefile: Bug fixes -- this is still provisional, though...
11704         * tmac/eqnrc: Small fixes.
11706 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
11708         Adding a request `evc' to copy environments.
11710         * src/roff/troff/env.cc (environment::copy, environment_copy):
11711         Implement it.
11712         * src/roff/troff/env.h: Add prototype.
11714 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
11716         Adding strsep() -- Solaris 8 doesn't have it.
11718         * configure.in: Test it.
11719         * src/devices/grolbp/lbp.cc: Add code.
11721 2000-03-05  Werner LEMBERG  <wl@gnu.org>
11723         * src/roff/troff/div.cc (macro_diversion::output,
11724         top_level_diversion::output): Fixing an incompatibility with
11725         original troff: \x'0' updates the .a register also.  Thanks to
11726         <Andries.Brouwer@cwi.nl> for pointing this out.
11727         * doc/groff.texinfo: Document it.
11729         * Makefile.in: Create Makefile.dep if necessary before calling the
11730         submake process to avoid warning about nonexistent file.
11732         * NEWS, PROJECTS: Updated.
11734 2000-03-04  Werner LEMBERG  <wl@gnu.org>
11736         * tmac/troffrc: Add tmac.lbp.
11738 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
11740         * tmac/tmac.lbp: New file.
11741         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
11742         command.
11744 2000-03-03  Werner LEMBERG  <wl@gnu.org>
11746         * Makefile.in: Fixing $(subdir).
11748         * README, NEWS: Small fixes.
11750         * test-groff: Adding path to grolbp.
11752         * configure.in: The (new) file src/xditview/Imakefile.in will be
11753         also configured -- it is now possible to build gxditview in a
11754         directory different from $srcdir.
11756 2000-03-02  Blake McBride  <blake@florida-software.com>
11758         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
11760         * MORE.STUFF: Added website of bell labs and info about plot2dev.
11762 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
11764         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
11765         files.
11767 2000-02-29  Werner LEMBERG  <wl@gnu.org>
11769         Adding GNU getopt to the groff distribution.
11771         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
11772         New files.
11773         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
11774         * aclocal.a4: Remove GROFF_GETOPT function.
11775         * configure.in, Makefile.in, PROBLEMS: Update.
11776         * src/include/lib.h: Replace getopt tests with getopt.h.
11777         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
11779         * doc/groff.texinfo: Further checking/updating.  Adding more index
11780         entries.
11782         * man/groff_out.man: Fix nroff mode activation (for emacs).
11783         * man/groff_font.man: Add missing ligature.
11785 2000-02-28  Werner LEMBERG  <wl@gnu.org>
11787         * doc/groff.texinfo: Further checking/updating.  Adding more index
11788         entries.
11790         * src/devices/grolbp/grolbp.man: Added a comment line at the
11791         beginning of the file (similar to shell scripts) which indicates
11792         that `tbl' should be used as a preprocessor.
11794 2000-02-27  Blake McBride  <blake@florida-software.com>
11796         Adapting groff to MS Visual C++ 6.0 compiler (tested with
11797         Windows NT 4.0).  Uses _MSC_VER define where necessary.
11799         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
11800         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
11801         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
11802         src/include/lib.h, src/libs/libgroff/errarg.cc,
11803         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
11804         src/preproc/refer/label.y, src/preproc/refer/label.cc,
11805         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
11806         src/roff/troff/div.cc, src/roff/troff/env.cc,
11807         src/roff/troff/input.cc, src/roff/troff/node.cc,
11808         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
11809         if_to_a() to avoid name clashes.
11810         * src/include/posix.h: Don't use unistd.h.
11811         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
11812         clause for integrating non-Unix xtmpfile() code.
11813         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
11814         structure; use "rt" for popen() in pipe_source(); add getpid()
11815         dummy function.
11816         * src/roff/troff/node.cc: Use special versions of popen() in
11817         real_output_file() and pclose() in ~real_output_file().
11819 2000-02-27  Werner LEMBERG  <wl@gnu.org>
11821         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
11822         LBP-8 series laser printers).  This code has been contributed by
11823         Francisco Andrés Verdú <pandres@dragonet.es>.
11825         * src/devices/grolbp/*: The grolbp output device.
11826         * font/devlpb/*: The font description files.
11827         * Makefile.in: Add grolpb and devlbp subdirectories.
11829         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
11830         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
11831         typographic fixes.
11833         * doc/groff.texinfo: Further checking/updating.  Adding more index
11834         entries.
11836         * NEWS: Updated.
11838         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
11840         * man/groff_font.man: Adding info about obsolete DESC keywords.
11841         * src/devices/grolj4/grolj4.man: Documenting additional DESC
11842         keywords.
11844 2000-02-26  Werner LEMBERG  <wl@gnu.org>
11846         * src/preproc/grn/grn.man: Added info about the gremlin file format
11847         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
11849 2000-02-25  Werner LEMBERG  <wl@gnu.org>
11851         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
11852         friends to be non-integer.
11854         * src/preproc/grn/grn.man: Document it.
11856         * doc/groff.texinfo: Further checking/updating.  Adding more index
11857         entries.
11859 2000-02-24  Werner LEMBERG  <wl@gnu.org>
11861         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
11862         line thicknesses to be integer multiples of this value.
11864         * src/preproc/grn/grn.man: Commenting out the -s option -- the
11865         corresponding code doesn't work (yet).
11867         * doc/groff.texinfo: Further checking/updating.  Adding more index
11868         entries.
11870 2000-02-23  Werner LEMBERG  <wl@gnu.org>
11872         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
11873         specify line thickness instead of base units.  The new default
11874         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
11875         thick lines respectively.
11877         Removed unused variable `prevval'.
11879         * src/preproc/grn/grn.man: Updated.
11881 2000-02-22  Werner LEMBERG  <wl@gnu.org>
11883         * src/preproc/grn/main.cc: Slight formatting.
11885         * src/roff/groff/groff.man: Formatting fix.
11886         * src/preproc/grn/grn.man: Ditto.
11888         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
11890         * doc/groff.texinfo: Further checking/updating.
11892 2000-02-21  Werner LEMBERG  <wl@gnu.org>
11894         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
11896         * test-groff: Added grn subdir to path.
11898         * doc/groff.texinfo: Some restructing and other small improvements.
11900         * src/roff/groff/groff.cc (help): Fixed info string.
11902 2000-02-20  Werner LEMBERG  <wl@gnu.org>
11904         * doc/meref.me: Fix description of .GS request.
11906         * src/roff/troff/troff.man: Fixing typo.
11908         Adding the `grn' preprocessor for gremlin graphic files.
11910         * src/preproc/grn/*: This is the Berkeley distribution written by
11911         David Slattengren and Barry Roitblat, adapted to groff by Daniel
11912         Senderowicz and Werner Lemberg.
11914         * doc/grnexampl.{me,g}: A sample for grn.
11916         * Makefile.in: Added subdirectory entry for grn.
11918         * src/roff/groff/groff.cc: Added support for grn.  It can be now
11919         called with the switch `-g'.
11921         * src/roff/groff/groff.man: Updated.
11923         * src/roff/grog/grog.{man,pl,sh}: Updated.
11925         * NEWS: Updated.
11927 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
11929         * src/include/lib.h: Added xtmptemplate and made xtmpfile
11930         parametrically polymorphic.
11932         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
11933         and the alterations to xtmpfile.
11934         xtmpfile can be requested to return the filename created
11935         and asked not to unlink the temp file.  The default behaviour
11936         if parameters are absent is exactly the same as before.
11938 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
11940         A new request `length' is available which returns the length of a
11941         string in a number register:
11943         * src/roff/troff/input.cc (length_macro): Implement it.
11944         * src/roff/troff/input.cc (init_input_requests): Register it.
11946 2000-02-11  Werner LEMBERG  <wl@gnu.org>
11948         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
11949         of the `substring' request.
11951         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
11952         request.
11954         * src/roff/troff/TODO, NEWS: Updated.
11956 2000-02-09  Werner LEMBERG  <wl@gnu.org>
11958         * src/roff/groff/groff.man: Added an example.
11960 2000-02-06  Werner LEMBERG  <wl@gnu.org>
11962         I've considerably modified the directory structure of the
11963         distribution to get a more vertical layout.  For example, the number
11964         of top level directories has been reduced from 42 to 6.
11966         As a consequence, many changes, especially to the makefiles, were
11967         necessary:
11969         * The makefile variables `top_builddir' and `top_srcdir' have been
11970         introduced.  Virtually all relative paths have been replaced with
11971         absolute ones using these two variables.
11973         * Dependencies (in the files `Makefile.dep') are no longer part of
11974         the distribution.  Instead, they are created during a `make install'
11975         in the build directory.
11977         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
11978         make `top_srcdir' and `top_builddir' absolute.
11980         Some other changes:
11982         * Man pages now depend on the files `VERSION' and `REVISION'.
11984         * The added shell script `mkinstalldirs' will replace `mkdir' in
11985         almost all cases.
11987         * VERSION: Version number increased to 1.16.
11989 2000-02-04  Werner LEMBERG  <wl@gnu.org>
11991         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
11993         * Makefile.in: Removed $(tmac_m) since it is no longer needed
11994         (after an update of the mm stuff).
11996         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
11998 2000-02-03  Werner LEMBERG  <wl@gnu.org>
12000         The .psbb request will now also accept Mac PS images (i.e. using LF
12001         as the EOL character).
12003         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
12004         (with slight modifications).
12005         * troff/input.cc (do_ps_file): Use it.
12007         * test-groff: Add grohtml and grolj4 output devices to PATH.
12009 2000-01-30  Werner LEMBERG  <wl@gnu.org>
12011         * NEWS, MORE.STUFF: Updated.
12013 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
12015         Add the `srand' command to pic.
12017         * pic/lex.cc, pic/pic.y: Implement it.
12018         * pic/pic.man: Document it.
12019         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
12021 2000-01-30  Werner LEMBERG  <wl@gnu.org>
12023         Add a new request `.psbb'.  This does exactly what the external
12024         program psbb did.  It scans a PostScript image file for a
12025         %%BoundingBox comment and extracts the bounding box values (in
12026         PostScript units) which are then stored in the four new (read-only)
12027         number registers `llx', `lly', `urx', and `ury'.
12029         This will allow the usage of the .PSPIC macro without worrying
12030         about unsafe behaviour of groff, i.e., it will work without the
12031         `-U' switch of groff.
12033         * troff/input.cc: Implement it.
12034         * tmac/tmac.pspic: Use it.
12035         * troff/troff.man, grops/grops.man, NEWS: Document it.
12036         * psbb/*, Makefile.in: Remove it since it is no longer needed.
12038         This is bloody C code simply adapted from psbb.c!  Any improvements
12039         welcome.
12041 2000-01-29  Werner LEMBERG  <wl@gnu.org>
12043         * man/groff_font.man: Minor clarifications.
12045         * NEWS: Updated.
12047 2000-01-28  Werner LEMBERG  <wl@gnu.org>
12049         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
12051 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
12053         * man/groff_font.man: Brought up to date regarding tcommand
12054         extensions.
12055         * libgroff/font.cc: Handle everything after `--' as a comment
12056         in the font files.
12057         * devps/*: Added comment delimiter inside devps font files.
12059 2000-01-28  Werner LEMBERG  <wl@gnu.org>
12061         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
12062         \fC...\fP (which now works as expected).
12064         * troff/troff.man: Fix typo.
12066 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
12068         Completed the pass_filenames implementation in troff.
12070         * libdriver/input.cc: Will read the new `F' tcommand.
12071         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
12072         * troff/input.cc: Use it.
12074 2000-01-26  Werner LEMBERG  <wl@gnu.org>
12076         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
12077         font will now be updated even if an invalid font is selected.
12079 2000-01-24  Werner LEMBERG  <wl@gnu.org>
12081         * doc/homepage.ms: Updated for new tmac.arkup.
12083         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
12085         * tmac/tmac.arkup: Cleanup.
12087         Added `\&' to .HTML macro to `leave vertical mode', so to say.
12089         Removed obsolete .LINK macro completely.
12091         The macros .URL, .FTP, and .MAILTO now accept a third argument which
12092         will be immediately appended to the second argument (to be used with
12093         punctuation, for example).
12095         Disabled .CDFTP macro temporarily for security reasons.
12097         * tmac/groff_markup.man: Complete revision for latest changes in
12098         tmac.arkup -- note that it does not yet format correctly with
12099         grohtml :-(
12101 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
12103         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
12104         * devutf8/R.proto: Add mappings for wp, lh, rh.
12105         * devutf8/NOTES: Updated.
12107 2000-01-23  Werner LEMBERG  <wl@gnu.org>
12109         * doc/groff.texinfo: Updated version/copyright info.
12111 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
12113         Added support for two new directives in device descriptions:
12114         `pass_filenames' (to pass the input file name to the output device)
12115         and `use_charnames_in_special' (to support e.g. accented characters
12116         in the `X' request).
12118         * include/font.h, troff/charinfo.h: Declare it.
12120         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
12122         * devhtml/DESC: Use it.
12124         * troff/input.cc: New function encoded_char.
12126         * troff/token.h: Add test for `specialness'.
12128 2000-01-21  Werner LEMBERG  <wl@gnu.org>
12130         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
12131         mistake from the list of files to be installed.
12133 2000-01-18  Werner LEMBERG  <wl@gnu.org>
12135         * README: Added info how to apply patches.
12137 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
12139         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
12141 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
12143         * troff/input.cc: Add support for troffrc-end.
12145         * tbl/main.cc: Altered to issue table-start and table-end special
12146         characters if using the html device.
12148         * devhtml/*: Modified font files to incorporate html encoding of
12149         characters.
12151         * tmac/groff_markup.man: New file documenting tmac.arkup.
12153         * tmac/troffrc-end: New file.  This is invoked after all user
12154         specified macros.  Currently used by the html device to include
12155         tmac.html.  Thus no need for users to specify -mhtml anymore.
12157         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
12158         (MAN7): Add groff_markup.man.
12160         * tmac/tmac.an, tmac/tmac.html: Small html updates.
12162         * tmac/troffrc: tmac.arkup will now be called for the html device.
12164         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
12165         extra device specific information about fonts.
12167         * doc/homepage.ms: New file.  It is an example how an HTML home page
12168         could look like with grohtml.
12170         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
12172 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
12174         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
12175         of Im, Re.
12177         * devutf8/NOTES: Updated.
12179 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
12181         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
12182         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
12183         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
12184         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
12185         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
12186         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
12187         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
12188         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
12189         warnings.
12191         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
12193 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
12195         grolj4: Paper size will be searched case-insensitively.
12197         * include/lib.h: Add check for strcasecmp().
12198         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
12199         * configure.in: Check for strcasecmp().
12201 2000-01-11  Werner LEMBERG  <wl@gnu.org>
12203         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
12204         `REVISION'.
12206 2000-01-10  Werner LEMBERG  <wl@gnu.org>
12208         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
12209         revision scheme.
12211         Add a new read-only register, `.Y', which contains the groff
12212         revision.
12214         * troff/input.cc (init_input_requests): Define it.
12215         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
12216         * doc/groff.texinfo, troff/troff.man: Document it.
12218         * libgroff/Makefile.sub (version.cc): Add definition of
12219         `Version_string[]', consisting of `<major>.<minor>.<revision>'
12220         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
12221         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
12222         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
12223         troff/input.cc, pfbtops/pfbtops.c: Use it.
12225 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
12227         Add a revision scheme to the groff package.
12229         * REVISION: New file.
12230         * libgroff/Makefile.sub (version.cc): Use it to define
12231         `revision_string[]'.
12232         * grops/psrm.cc: Use revision_string (converted to an unsigned
12233         integer) in constructor of resource_manager.
12235 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
12237         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
12238         files.
12239         * Makefile.in (DEVDIRS): Add devutf8.
12240         * grotty/tty.cc: Include device.h.
12241         (glyph): Change type of `code' to `unsigned int'.
12242         (tty_printer): New field is_utf8.  Constructor takes device argument.
12243         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
12244         (tty_printer::add_char): Change type of first arg to `unsigned int'.
12245         (tty_printer::put_char): New function.
12246         (tty_printer::end_page): Use put_char() instead of ::putchar().
12247         (make_printer): Pass device to tty_printer constructor.
12248         * nroff.sh: Determine default device by calling 'locale'.  As a
12249         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
12250         Recognize UTF-8 locales.
12251         * tmac/eqnrc: Recognize utf8 like latin1.
12252         * tmac/troffrc: Device utf8 needs tmac.tty.
12254 2000-01-07  Werner LEMBERG  <wl@gnu.org>
12256         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
12258 2000-01-07  Paul Eggert  <eggert@twinsun.com>
12260         Add a new predefined writeable number register, `year',
12261         which contains the current year.
12263         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
12264         * tmac/tmac.s: Use it.
12265         * troff/input.cc (init_registers): Initialize it.
12267 2000-01-06  Werner LEMBERG  <wl@gnu.org>
12269         * PROBLEMS: Fixed typo.
12271 2000-01-04  Paul Eggert  <eggert@twinsun.com>
12273         * PROBLEMS: Add Y2k advice for the yr number register.
12275 2000-01-03  Paul Eggert  <eggert@twinsun.com>
12277         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
12279 2000-01-02  Werner LEMBERG  <wl@gnu.org>
12281         * tmac/tmac.arkup: Slight modification of macros to provide better
12282         appearance for non-HTML formats.
12284 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
12286         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
12287         does not automatically translate to malloc(n) on all OSes
12288         (e.g., SunOS) so do it explicitly.  Also, check the returned
12289         value.
12291 2000-01-01  Werner LEMBERG  <wl@gnu.org>
12293         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
12295         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
12296         expects this variable
12298 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
12300         * doc/Makefile: Added instructions to create HTML and text
12301         versions of some files.
12303 1999-12-31  Werner LEMBERG  <wl@gnu.org>
12305         * Updated INSTALL.gen.
12307         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
12308         better resp. correctly with non-HTML devices.
12310 Version 1.15 released
12311 =====================
12313 1999-12-28  Werner LEMBERG  <wl@gnu.org>
12315         * NEWS, VERSION: Changed to 1.15
12317 1999-12-27  Paul Eggert  <eggert@twinsun.com>
12319         * nroff/nroff.man: -S is safer, not safe.
12321         * groff/groff.cc (main): Use `safer', not `safe', in variable
12322         names.  This does not change the behavior.
12324         * troff/input.cc (main): Likewise.
12326         * nroff/nroff.sh: Likewise.
12328         * troff/input.cc (prepend_string): New function.
12329         (main): Prepend -msafer, so that we check macro libraries for
12330         safety.
12332         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
12334 Version 1.14 released
12335 =====================
12337 1999-12-26  Werner LEMBERG  <wl@gnu.org>
12339         * NEWS, VERSION: Changed to 1.14.
12341 1999-12-24  Werner LEMBERG  <wl@gnu.org>
12343         * refer/refer.cc: Fixing the last fix.
12345 Version 1.13 released
12346 =====================
12348 1999-12-23  Werner LEMBERG  <wl@gnu.org>
12350         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
12351         number disappear.
12353         * NEWS: Updated.
12355         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
12357         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
12358         document conventions, the version number must be a real.
12360 Version 1.12.1 released
12361 =======================
12363 1999-12-22  Werner LEMBERG  <wl@gnu.org>
12365         * VERSION: Changed to 1.12.1.
12367 1999-12-22  Alan Rooks  <arooks@istar.ca>
12369         * refer/refer.cc (do_file): Slight modification to satisfy the
12370         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
12371         UnixWare 7.1.
12373 1999-12-20  Werner LEMBERG  <wl@gnu.org>
12375         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
12376         notices.
12378         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
12379         list of unsafe requests.
12381         * pic/pic.man: Fixed a typo.
12383         * man/groff_out.man: Fixed a typo.
12385 1999-12-18  Werner LEMBERG  <wl@gnu.org>
12387         * Makefile.in: Doc fixes.
12389 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
12391         * groff/groff.cc: Missing `U' option added to getopt().
12393         * troff/troff.man: Missing `U' option added to synopsis.
12395 Version 1.12 released
12396 =====================
12398 1999-12-14  Werner LEMBERG  <wl@gnu.org>
12400         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
12401         to the synopsis.
12403         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
12404         with the more appropriate terms `safer' and `unsafe'.
12406         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
12407         sys_nerr and sys_errlist[].
12409         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
12411         * pic/pic.y, pic/pic.cc: Added check for fmod().
12413 1999-12-13  Werner LEMBERG  <wl@gnu.org>
12415         * VERSION: Changed to 1.12.
12417         Here some patches from various sources; most of them taken from
12418         the Debian distribution.
12420         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
12421         tmac/Makefile.sub: New files copied directly from the NetBSD
12422         distribution.  Probably, some additional adaptation later on is
12423         necessary...
12425         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
12426         of unsafe requests.
12428         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
12429         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
12430         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
12431         (`-S') is now the default.
12433         * README, NEWS: Updated.
12435 1999-12-09  Werner LEMBERG  <wl@gnu.org>
12437         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
12439         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
12441 1999-12-06  Werner LEMBERG  <wl@gnu.org>
12443         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
12444         grief than relief today.  Additionally, it is against the GNU
12445         coding standards.
12447         * configure: Recreated.
12449 1999-12-05  Werner LEMBERG  <wl@gnu.org>
12451         * configure.in: Added GROFF_LIBM.
12453         * configure: Recreated.
12455         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
12456         necessary.
12458         * Makefile.in: Added definition of $(LIBM).
12460         * Makefile.comm (LIBM): Removed.
12462         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
12464 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
12466         * doc/Makefile: Added rule for generation pic.html.
12468         (clean): Files produced by grohtml will be removed also.
12470         * doc/pic.ms: Small fix.
12472         * tmac/tmac.html: Fixed suppression of headers.
12474 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
12476         * tmac/tmac.html: Fixing horizontal arrows.
12478         Turning off hyphenation.
12480         * tmac/tmac.an: Improved support for grohtml; better indentation,
12481         no footers/headers.
12483 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
12485         * tmac/tmac.arkup: Added CDFTP macro
12487         * tmac/tmac.html: All headers are turned off for ms, me, and mm
12488         macros.
12490         * tmac/troffrc: Some additions for HTML stuff.
12492 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
12494         * tmac/tmac.html: Small changes.
12496 1999-09-26  Werner LEMBERG  <wl@gnu.org>
12498         * doc/groff.texinfo: Minor fixes.
12500 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
12502         * devhtml/TR: Changed spacewidth to 3.
12504         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
12506         * tmac/tmac.html: Moved markup macros to tmap.arkup.
12508         * tmac/tmac.arkup: New file.
12510         * grohtml/ChangeLog: New file.
12512 1999-09-16  Werner LEMBERG  <wl@gnu.org>
12514         * doc/groff.texinfo (Common Features): Added Copying chapter.
12515         Changed format to @smallbook.
12517 1999-09-15  Werner LEMBERG  <wl@gnu.org>
12519         * NEWS: Added info about groff.texinfo.
12521         * doc/groff.texinfo: Will now compile (using texi2dvi) without
12522         warning messages.
12524 1999-09-14  Werner LEMBERG  <wl@gnu.org>
12526         * groff/groff.man: More updates.
12528 1999-09-13  Werner LEMBERG  <wl@gnu.org>
12530         * doc/groff.texinfo: New file.  This manual is still very
12531         rudimentary.  It has been originally contributed by Trent
12532         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
12533         additions by me.
12535         * INSTALL: Added information about the `doc' subdir
12537         * troff/troff.man: Minor fixes.
12539         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
12540         reordered options.
12542         * troff/input.cc (usage): Added missing `-ffam' to usage message.
12544         * Makefile.in (dist): groff-$(version).tar.gz must be removed
12545         also, otherwise it is included itself in another call of `make
12546         dist'.
12548         * groff/groff.cc (synopsis): Removed superfluous space.
12550         * PROJECTS, PROBLEMS, NEWS: Updated.
12552         * VERSION: Updated to 1.12beta.
12554         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
12556         * README: Updated: Included documentation about CVS repository,
12557         mailing lists, and daily snapshots.
12559         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
12561 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
12563         * tmac/tmac.an: If the tag didn't fit into the space that the
12564         macro `TP' specifies, the rest of the tag went into the space for
12565         the next line.
12567 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
12569         * grolj4/lj4.cc: Added duplex printing (option `-d').
12571         * grolj4/grolj4.man: Document duplex printing.
12573 1999-09-12  Werner LEMBERG  <wl@gnu.org>
12575         * doc/Makefile (pic.ps): Fixed rule which caused problems with
12576         non-GNUish sed programs.
12578         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
12579         definition.
12581         * configure.in (LIBS): Added `-lc'
12583         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
12585         * pic/tex.cc (solid_arc): Casting M_PI to double.
12587         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
12589         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
12590         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
12591         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
12593         * groff/groff_man.man: New file.  This manual page was originally
12594         written for the Debian GNU/Linux system by Susan G. Kleinmann
12595         <sgk@debian.org>.
12597         * eqn/list.cc (list_box::compute_metrics,
12598         list_box::compute_sublist_width): Removed variable declaration to
12599         avoid shadowing warnings.
12601         * grops/psrm.cc (resource_manager::process_file): Ditto.
12603         * tfmtodit/tfmtodit.cc (main): Ditto.
12605         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
12606         to avoid shadowing warnings.
12608         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
12609         shadowing loop variable.
12611         * groff/groff.man, troff/troff.man: Added doc about grohtml.
12613 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
12615         New grohtml frontend to convert groff input to html.
12617         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
12619         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
12621         * tmac/eqnrc: Added html device.
12623         * tmac/tmac.html: New file.
12625         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
12626         (troff_output::start_picture, troff_output::finish_picture),
12627         tbl/main.cc (process_input_file):
12628         Surrounded output with `graphics_start' and `graphics_end' so that
12629         the html driver can identify non-text portions.
12631         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
12632         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
12633         grotty/tty.ps (tty_printer::set_char): Additional parameter
12634         `name'.
12636         * include/printer.h: Class printer: New function
12637         set_char_and_width; new variables (is_char_named, is_named_set,
12638         named_command, named_char_s, named_char_n) to hold information
12639         about named characters -- needed by the html driver.
12641         * libdriver/printer.cc (printer::set_ascii_char,
12642         printer::set_special_char): Use set_char_and_width.
12644         * devhtml/*: New device files for html driver.
12646         * grohtml/*: New driver grohtml.
12648 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
12650         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
12651         default strings.
12653 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
12655         * libgroff/string.cc (search): Small fix to test against NULL
12656         pointer.
12658 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
12660         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
12661         \b'abc') were stacked in reverse order when processed in a
12662         diversion.
12664         * troff/node.h: Added `*last' to struct `node' to make the above
12665         fix work.
12667         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
12668         The default scale for the 'f' and 't' graphics functions were 'm'
12669         rather than 'u' (i.e., no scaling).
12671 1999-09-11  Peter Miller  <peterm@jna.com.au>
12673         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
12674         do_file), soelim/soelim.man: Added `-I file' option to soelim,
12675         defining include paths.
12677         * soelim/soelim.cc (include_path_append): New function.
12679 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
12681         * tbl/main.cc (process_options): Unix (at least Documenter's
12682         Workbench) tbl allows arbitrary non-alpha characters between
12683         options.
12685 1999-09-11  Paul Eggert  <eggert@twinsun.com>
12687         Y2k fixes.  Don't assume that the current year precedes 2000.
12689         * doc/meref.me: Add \n(y2, \n(y4.
12691         * tmac/doc-common (Yr): New number register.
12692         (Dd): Don't assume current year precedes 2000.
12694         * tmac/tmac.e (td): Likewise.
12695         (y2, y4): New number registers.
12697         * pic/pic.man: Update reference for pic paper to May, 1991
12698         version.
12700 1999-09-11  Werner LEMBERG  <wl@gnu.org>
12702         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12703         Removed quotation marks which prevented correct expansion of
12704         $(tmac_wrap).
12706         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
12708 1999-09-10  Werner LEMBERG  <wl@gnu.org>
12710         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
12711         `config.cache'.
12713         * Removed configure.old.
12715 1999-08-31  Werner LEMBERG  <wl@gnu.org>
12717         * VERSION: Updated to 1.11.1
12719 1999-05-27  Werner LEMBERG  <wl@gnu.org>
12721         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
12723         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12724         added quotations around $(tmac_wrap) to avoid syntax error if
12725         variable is empty.
12727         * configure: Newly generated using autoconf 2.13.
12729         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
12731 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
12733         * README, PROJECTS, NEWS, INSTALL, VERSION, 
12734         doc/Makefile. doc/pic.ms, groff/groff.man:
12735         Prepare for 1.11 release.  No code changes.
12736         Documentation for pic added (doc/pic.ms).
12738 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
12740         * Version 1.10 released.
12742 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
12744         * afmtodit/afmtodit.pl: Avoid comment on first line.
12746 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
12748         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
12749         * configure.in: Call it.
12751         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
12752         (distfiles): Doesn't depend on config.log or config.cache.
12754 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
12756         * grog/grog.sh: Use print "" rather than print in END rule.
12758 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
12760         * tbl/main.cc (process_data): Don't give error for excess data
12761         entries that are comments.
12763 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
12765         * tbl/main.cc (process_data): Fix case where new for-scope rules
12766         silently change meaning of code.
12768 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
12770         * troff/env.cc (hyphenate): Loop over all consecutive sequences
12771         of non-zero hyphenation codes.
12773 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
12775         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
12777 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
12779         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
12781 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
12783         * tmac/tmac.andoc: Make it work in compatibility mode.
12785         * refer/token.h (token_info::is_range_sep): New function.
12786         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
12787         * refer/ref.cc (reference::output): More sophisticated check for
12788         multiple pages.
12790         * devps/prologue.ps (MANUAL): New procedure.
12791         * grops/ps.cc (main): New -m option.
12792         (usage): Include -m.
12793         (ps_printer::~ps_printer): Implement -m.
12795         * aclocal.m4 (GROFF_G): New macro.
12796         * configure.in: Call it.
12797         * Makefile.in (g): Provided by configure.
12799         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
12801         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
12802         translations.
12804         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
12805         (tmac_m, tmac_s): Deleted.
12806         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
12807         tmac_s_prefix): New variables.
12808         (MDEFINES): Change accordingly.
12809         * Makefile.comm (.man.n): Use new TMAC_* variables.
12810         * configure.in (GROFF_TMAC): Call.
12811         * aclocal.m4 (GROFF_TMAC): Define.
12812         * tmac/Makefile.sub (stamp_wrap): New target.
12813         (install_data, uninstall_sub): Handle macro wrapping.
12815 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
12817         * tbl/main.cc (main): Ignore -T option.
12819 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
12821         * devlj4/generate/special.map: Add definition of \(nb.
12823         * tmac/tmac.dvi: Add definition of \(nb.
12825         * troff/dictionary.c (dictionary::dictionary): association::v gets
12826         initialized by association::association.
12828         * tmac/Makefile.sub: Avoid using temporary files when installing.
12830         * troff/env.cc (environment::set_font): Make bad font number a
12831         warning.
12833         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
12835         * Makefile.in (datadir): Use share rather than lib.
12837         * groff/groff.cc (basename): Rename to xbasename.
12839 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
12841         * Makefile (CCLIBS): Don't use.
12842         * Makefile.ccpg: Likewise.
12844         * acgroff.m4: Rename to...
12845         * aclocal.m4: Modify extensively for autoconf 2.
12846         * configure.in: Likewise.
12847         * Makefile.in: Likewise.
12849         * groff/pipeline.c (const): Declare as empty if __STDC__ not
12850         defined.
12851         (xstrsignal): Check for definition of NSIG. Conditionalize
12852         on SYS_SIGLIST_DECLARED.  Make return type const.
12854 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
12856         * troff/input.cc (interpolate_macro): Rephrase missing space
12857         warning.
12859 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
12861         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
12862         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
12863         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
12864         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
12865         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
12866         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
12867         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
12868         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
12869         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
12870         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
12871         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
12872         Fix 'for' scoping.
12874 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
12876         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
12877         string_iterator.
12878         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
12879         file.
12880         (macro_iterator::macro_iterator): Add additional argument.
12882 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
12884         * troff/div.cc (vertical_size::vertical_size): In place of integer
12885         specifying line spacing use cunits specifying post vertical
12886         space.
12887         (macro_diversion::output, top_level_diversion::output): Likewise.
12888         * troff/div.h: Change declarations accordingly.
12889         * troff/env.cc (pending_output_line): Replace ls field by post_vs
12890         field.
12891         (pending_output_line::pending_output_line,
12892         pending_output_line::output, environment::output,
12893         environment::output_line, environment::output_title,
12894         environment::hyphenate_line):  In place of
12895         integer specifying line spacing use cunits specifying post vertical
12896         space.
12897         (environment::environment): Add post_vertical_spacing and
12898         prev_post_vertical_spacing arguments.
12899         (environment::get_post_vertical_spacing): New function.
12900         (environment::total_post_vertical_spacing): New function.
12901         (environment::post_vertical_spacing): New function.
12902         (init_env_requests): Initialize pvs request and .pvs register.
12903         * troff/env.h: Change declarations.
12905 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
12907         * tmac/tmac.pspic: Immediately remove the temporary file.
12909 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
12911         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
12912         height is specified.
12914 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
12916         * tbl/table.c (struct vertical rule, class table_entry): Use int
12917         not short for start_row and end_row.
12919 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
12921         * troff/input.cc (trapping_blank_line, blank_line_macro): New
12922         functions.
12923         (diverted_space_node::reread, process_input_stack): Call
12924         trapping_blank_line() rather than blank_line().
12925         (init_input_requests): Bind "blm" to blank_line_macro().
12927         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
12929 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
12931         * troff/env.cc (environment::possibly_break_line): Require that
12932         width total excluding width of final space node be greater than
12933         the target text length.
12935 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
12937         * troff/node.cc (kern_pair_node::vertical_extent): New function.
12939 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
12941         * troff/node.cc (charinfo_node): New class.
12942         (glyph_node, composite_node): Derive from charinfo_node.  Change
12943         member functions accordingly.
12945 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
12947         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
12949 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
12951         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
12953         * devps/generate/textmap (notsubset): Add.
12955         * tmac/tmac.a4: New file.
12957 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
12959         * pic/main.cc (had_parse_error): New variable.
12960         (do_picture, do_whole_file): Set had_parse_error if yyparse()
12961         returns non-zero.
12962         (main): Return 1 if had_parse_error is true.
12964 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
12966         * grolj4/lj4.cc (main): Avoid use of strtoul.
12968 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
12970         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
12971         iso_8859_1 or $LESSCHARSET is latin1.
12973 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
12975         * hpftodit: New directory.
12976         * Makefile.in (CCPROGDIRS): Add hpftodit.
12977         * devlj4/generate: New directory.
12979 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
12981         * configure.in: Don't use AC_VFORK.
12982         * groff/pipeline.c (run_pipeline): Use fork() always.
12984 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
12986         * grops/ps.cc (main): Use %1 not %s in error message for -w.
12988         * Makefile.in (CCPROGDIRS): Add grolj4.
12989         (DEVDIRS): Add devlj4.
12990         * grolj4, devlj4: New directories.
12991         * tmac/troffrc: Handle lj4.
12992         * tmac/tmac.lj4: New file.
12994 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
12996         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
12998 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
13000         * troff/input.cc (do_if_request): At end of second string, switch
13001         environments before getting next token.
13003 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
13005         * devps/psstrip.sed: Split rule that strips whitespace on either
13006         side of delimiters.
13008 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
13010         * troff/node.h (font_family::make_definition): Add return value to
13011         declaration.  * troff/symbol.h (symbol::operator==,
13012         symbol::operator!=): Likewise.
13014 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
13016         * groff/groff.cc (main, help, synopsis): Handle -S.
13017         (possible_command::insert_arg): New function.
13019         * tmac/tmac.safer: New file.
13020         * tmac/msafer.man: New file.
13021         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
13023 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
13025         * pic/pic.h, pic/main.cc (safer_flag): New variable.
13026         * pic/pic.y (placeless_element): Avoid unsafe operations if
13027         `safer_flag' is set.
13028         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
13030 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
13032         * eqn/lex.cc (get_token): Put call to add_context() in block to
13033         work around Sun C++ 4.0 bug.
13035         * include/stringclass.h (operator +): Use ?: instead of `if' to
13036         work around Sun C++ 4.0 bug.
13038 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
13040         * tbl/main.cc (process_format): Accept - as a synonym for the _
13041         key letter.
13043         * libbib/index.cc (minus_one): Don't declare as const.
13045 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
13047         * troff/input.cc (get_char_for_escape_name): Push back a newline.
13049 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
13051         * troff/input.cc (write_macro_request): New function.
13052         (init_input_requests): Bind write_macro_request to writem.
13054 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
13056         * tmac/tmac.s (@EN): Turn filling back on even if there was no
13057         equation.
13059         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
13061         * tmac/tmac.s (@TS): Renamed from TS.
13062         (TS): Call LP then TS again.
13063         (cov*ab-init): Alias @TS to TS.
13065         * tmac/tmac.s: Allow QP or RS to initialize.
13067         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
13068         Move initializations of PS and LL here.
13069         (par@init): Don't initialize HY.  Avoid changing environment 0.
13070         (par*env-init): Don't all par@reset.
13072 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
13074         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
13076 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
13078         * Makefile.in (MDEFINES): Add LDFLAGS.
13079         (LDFLAGS): Add definition line.
13081 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
13083         * troff/input.cc (get_optional_char): Split off error check into...
13084         (check_missing_character): New function.
13085         * troff/token.h: Declare it.
13086         * troff/env.cc (margin_character): Don't call get_optional_char.
13087         Only call tok.next() after making the node.
13089         * include/lib.h (getopt): Make 2nd argument char *const *.
13091 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
13093         * nroff/conftest.sh: Deleted.
13095 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
13097         * pic/make-dos-dist: Deleted.
13099 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
13101         * devps/psstrip.sed: Strip comments before stripping trailing
13102         white space.
13104 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
13106         * Version 1.09 released.
13108 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
13110         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
13112 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
13114         * libgroff/font.cc (font::load_desc): Fix typo in error message.
13116 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
13118         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
13119         about returning without a value.
13121         * troff/charinfo.h (charinfo::get_special_translation): Cast
13122         TRANSLATE_NONE to int.
13124         * refer/token.cc (lookup_token, store_token): Remove bogus loop
13125         test.  Fix test so that it works with n unsigned.
13127         * pic/pic.y (defaults_table): Fully bracket initializer.
13128         * pic/lex.cc (lookup_keyword): Likewise.
13129         * eqn/lex.cc (token_table, def_table): Likewise.
13130         * eqn/box.cc (param_table): Likewise.
13131         * troff/input.cc (warning_table): Likewise.
13132         * libgroff/font.cc (table): Likewise.
13133         * grops/ps.cc (ps_printer::special): Likewise.
13134         * grops/psrm.cc (resource_manager::process_file): Likewise.
13135         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
13136         * refer/command.cc (command_table): Likewise.
13137         * addftinfo/addftinfo.cc (param_table): Likewise.
13139         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
13140         about temp's being unused.
13141         (unused): New function.
13143         * groff/pipeline.cc: Declare c_fatal.
13145         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
13146         uchar.
13148         * libbib/index.cc (index_search_item::load): Prevent compiler
13149         warnings about fd_closer's being unused.
13150         (unused): New function.
13152 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
13154         * troff/input.cc (copy_mode_error): Make `prefix' static.
13155         Fix typo.
13157         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
13158         defined.
13159         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
13160         HAVE_CC_OSFCN_H and modify accordingly.
13162         * troff/input.cc (init_charset_table): radicalex overlaps
13163         horizontally.
13165         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
13166         udodo!hans@relay.NL.net).
13167         * groff/configure.in: Call it.
13169         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
13170         * groff/configure.in: Call it.
13171         * include/lib.h: Conditionalize declaration of pclose.
13173         * troff/div.cc (last_page_number): New global variable.
13174         (top_level_diversion::begin_page): Exit if we just printed the
13175         last page.
13176         * troff/div.h (last_page_number): Declare it.
13177         * troff/input.cc (parse_output_page_list): Set last_page_number.
13179         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
13180         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
13181         tmac/tmac.X: Likewise.
13182         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
13183         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
13185 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
13187         * tmac/doc-ditroff (hK): Remove groff specific code which
13188         prevented page-breaks between separate manual entries.  If this is
13189         the first page, don't set the page number to 1.
13191         * acgroff.m4 (GROFF_POSIX): New macro.
13192         * configure.in: Use it.
13194         * troff/node.cc (class real_output_file,
13195         real_output_file::real_output_file,
13196         real_output_file::~real_output_file): Conditionalize use of
13197         popen/pclose on POPEN_MISSING.
13198         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
13199         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
13200         (pipe_source): Similarily.
13202         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
13204         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
13205         presence of declarations by trying to compile example with
13206         conflicting declarations.  (gcc only gives a warning for missing
13207         declarations.)
13209 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
13211         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
13212         (from Ulrich Lauther).
13214 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
13216         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
13218 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
13220         * indxbib/indxbib.cc (write_hash_table): Add code for case where
13221         pointers and ints have different sizes.
13223 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
13225         * tmac/tmac.s (par*env-init): Call par@reset.
13227 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
13229         * tmac/tmac.s (@IP): Switch to a new environment when diverting
13230         tag.
13231         (par*push-tag-env, par*pop-tag-env): New macros.
13233 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
13235         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
13236         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
13238         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
13239         comment.  Include <time.h>.
13241 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
13243         * grops/ps.cc (is_small_h, is_small_v): Deleted.
13244         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
13245         lines.
13247 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
13249         * troff/input.cc (read_request): Only print a prompt if reading
13250         from the terminal.  Also clearerr on EOF if reading from the
13251         terminal.  Declare isatty.
13253 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
13255         * refer/label.y: Rename map_t to map_func and extractor_t to
13256         extractor_func.
13258 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
13260         * include/assert.h: Don't use volatile.
13261         * libgroff/assert.cc: Likewise.
13263 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
13265         * troff/input.cc (abort_request): Look at character in tok before
13266         calling get_copy().
13268 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
13270         * troff/troff.h (NO_RETURN): Deleted.
13271         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
13272         * troff/input.cc (exit_troff): Likewise
13274         * Makefile.in: Remove `Making ...' messages since GNU make now
13275         gives these. 
13277         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
13279 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
13281         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
13282         to constant 1 inch.
13284 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
13286         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
13288 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
13290         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
13291         MARK_REG if there was no left delimiter.
13293 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
13295         * pic/troff.cc (troff_output::text): Set line thickness to
13296         relative before outputting text.
13298         * tmac/tmac.e (@k): Don't zero ?T.
13299         ((z): Likewise.
13301 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
13303         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
13305 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
13307         * troff/input.cc (decode_args): Warn about unquoted tabs (from
13308         Paul Eggert).
13310 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
13312         * troff/input.cc (ignoring): New variable.
13313         (ignore): Set ignoring during call to do_define_macro.
13314         (do_define_macro): Clear ignoring before interpolating terminating
13315         macro.
13316         (copy_mode_error): New function.
13317         (get_char_for_escape_name, read_long_escape_name,
13318         interpolate_arg): Use copy_mode_error.
13319         (warning_table): Add WARN_IG.
13320         * troff/troff.h (WARN_IG): Declare.
13321         (WARN_TOTAL): Change accordingly.
13323         * groff/pipeline.c (strsignal): Rename to xstrsignal.
13324         * groff/groff.cc (strsignal): Delete declaration.
13326 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
13328         * troff/div.cc (page_offset): Use 'm' as default scaling.
13330 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
13332         * nroff/nroff.sh: Ignore -u.
13334 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
13336         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
13338 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
13340         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
13341         drawing box.
13342         (B2): With -Tascii, leave additional vertical space before
13343         and after. Ensure that the left and right indent is restored to
13344         what it was even if the point size changes.  Don't call
13345         par@finish. Change the indent, line length and title length
13346         directly.  With -Tascii, make the width of the box 1n less.
13347         (B1): Remember 1n at the current point size.  Don't call
13348         par@reset.  Change the indent, line length and title length
13349         directly.  Ensure that the temporary indent is preserved.
13350         (par*box-mark-top): Turn off no spacing mode.
13352 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
13354         * Makefile.in (dist): Use .gz suffix.
13356 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
13358         * troff/input.cc (main): Add return 0.
13359         * pic/main.cc (main): Use return instead of exit.
13360         * tbl/main.cc (main): Likewise.
13361         * eqn/main.cc (main): Likewise.
13362         * grops/ps.cc (main): Likewise.
13363         * grotty/tty.cc (main): Likewise.
13364         * groff/groff.cc (main): Likewise.
13365         * grodvi/dvi.cc (main): Likewise.
13366         * refer/refer.cc (main): Likewise.
13367         * indxbib/indxbib.cc (main): Likewise.
13368         * lkbib/lkbib.cc (main): Likewise.
13369         * soelim/soelim.cc (main): Likewise.
13370         * addftinfo/addftinfo.cc (main): Likewise.
13371         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
13372         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
13374         * troff/token.h (process_input_stack): Don't declare as static.
13375         * troff/input.cc: Likewise.
13377         * troff/node.c (invalidate_fontno): Make it a static member of
13378         class font_family.  Change callers.
13379         * troff/node.c: Change declaration.
13381         * tbl/main.cc (struct input_entry_format): Add explicit public
13382         specifier.
13383         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
13384         struct double_hline_stuff): Likewise.
13385         * tbl/table.h (struct entry_format): Likewise.
13386         * pic/object.h (struct saved_state): Likewise.
13388         * include/stringclass.h: Add forward declarations of friend
13389         functions that are later declared as inline.  Don't include inline
13390         specifier in friend declaration.
13392         * libgroff/lib.h: Declare popen and pclose.
13393         * acgroff.m4 (GROFF_POPEN): New macro.
13394         * configure.in: Call it.
13396         * include/lib.h (PI): New constant. Undef first if necessary.
13397         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
13398         * grops/ps.cc (degrees, radians): Likewise.
13399         * libgroff/font.cc (font::get_skew): Likewise.
13401         * grops/ps.cc (is_ascii): New function.
13402         (ps_output::put_string): Use is_ascii.  Use csprint rather than
13403         isprint.
13404         (ps_printer::define_encoding): Use csspace.
13405         * libgroff/strtol.c (ISASCII): New macro.
13406         (strtol): Cast arguments to is*() and tolower() to unsigned char.
13407         Use ISASCII rather than isascii.
13408         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
13409         * libgroff/cset.cc: Likewise.
13410         * libdriver/input.cc: Include cset.h.
13411         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
13412         than isdigit().
13414         * refer/refer.cc (main): Use %ld rather than %d for longs.
13416         * libbib/index.cc (index_search_item_iterator::get_tag): Use
13417         S_ISREG macro.
13419         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
13421 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
13423         * troff/input.cc (hyphenation_code): Skip white space between
13424         char/code pairs.
13426 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
13428         * tbl/table.h (table::entry_list_tailp): New member.
13429         (table::table): Initialize it.
13430         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
13431         behaviour.
13433 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
13435         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
13436         with negative horizontal positions. Remove casts of glyph::hpos to
13437         int.
13438         (USHRT_MAX): Delete definition.
13439         (SHRT_MAX, SHRT_MIN): New definitions.
13440         (glyph::hpos): Change type to short.
13441         (tty_printer::end_page): Output multiple backspaces if necessary.
13442          Remove casts of glyph::hpos to int.
13443         
13444 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
13446         * tmac/tmac.s (@RT): New definition.
13448 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
13450         * refer/refer.cc (do_file): Make sure current_filename is set when
13451         filename is "-".
13453         * pic/common.cc (common_output::dot_line): Handle zero length
13454         lines.
13456 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
13458         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
13459         (par@init): Initialize \n[HY].
13461 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
13463         * troff/dictionary.cc (dictionary::remove): Continue when
13464         r < j < i.
13466 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
13468         * Makefile.com (.y.cc): Avoid ending up with two versions of
13469         $(YTABH).
13471 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
13473         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
13474         (\(,C): Likewise.  Also fix typo.
13476 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
13478         * lib.h: Delete extraneous semi-colon.
13480         * Add pso request: `so' from a pipe.
13481         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
13482         (file_iterator::close): New function.
13483         (file_iterator::~file_iterator, file_iterator::next_file): Use
13484         file_iterator::close.
13485         (file_iterator::backtrace): Say `process' rather than `file' when
13486         the stream is popened.
13487         (pipe_source): New function.
13488         (init_input_requests): Bind ".pso" to pipe_source.
13490 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
13492         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
13494         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
13495         digits in lower case.
13497 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
13499         * Version 1.08 released.
13501         * Makefile.in (dist): Insert || true after ln -s commands that
13502         might fail.
13504         * mm: Update to mm 1.16.
13506         * acgroff.m4 (GROFF_CSH_HACK): New macro.
13507         * configure.in: Call GROFF_CSH_HACK.  Substitute for
13508         SH_SCRIPT_SED_CMD.
13509         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
13510         MDEFINES.
13511         * nroff/Makefile.sub (nroff): New target.
13512         (install_data): Install nroff.
13513         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
13514         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
13516 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
13518         * eqn/Makefile.sub (neqn): Add chmod +x.
13520         * grog/Makefile.sub (grog): Remove spurious semi-colon.
13522 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
13524         * troff/input.cc (string_iterator::string_iterator()): Initialize
13525         lineno and count.
13527 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
13529         * troff/div.cc (macro_diversion::space,
13530         top_level_diversion::space): Don't set high_water_mark.
13531         (macro_diversion::output, top_level_diversion::output): Don't
13532         include post line space in high water mark.
13534 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
13536         * eqn/eqn.y: Don't define YYDEBUG.
13537         * pic/pic.y: Likewise.
13539 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
13541         * tmac/tmac.e ([3): Add space after comma following editors.
13542         Change double spaces to single spaces.
13543         ([4): Change double spaces to single spaces.
13545         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
13546         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
13547         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
13548         after %!PS-Adobe- (for Newsprint).
13550         * troff/div.cc (top_level_diversion::begin_page): When
13551         before_first_page is 1, set page_number to 1.
13553 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
13555         * eqn/box.cc (box::top_level): Protect equation with \&.
13557 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
13559         * groff/groff.cc (possible_command::set_name): Delete old name.
13561         * groff/groff.cc (possible_command::~possible_command): Use
13562         a_delete.
13564         * troff/node.cc (troff_output_file::begun_page): New member.
13565         (troff_output_file::troff_output_file): Initialize it.
13566         (troff_output_file::really_begin_page): Only output V command if a
13567         page has been begun.
13569         * pic/pic.y (placeless_element): Delete argument to PRINT after
13570         use.
13572 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
13574         * Make wrapman work.
13575         * troff/div.h (class top_level_diversion): Replace
13576         first_page_begun by before_first_page (with opposite sense).
13577         * Change first_page_begun to before_first_page inverting sense.
13578         * troff/div.cc (class nl_reg): New class.
13579         (init_div_requests): Use class nl_reg for \n(nl.
13580         (top_level_diversion::begin_page): Don't call
13581         output_file::begin_page if before_first_page is 2;
13582         reset before_first_page afterwards.  If have_next_page_number is
13583         false, then always increment page_number.
13584         * tmac/tmac.an: Set traps within TH rather than at the top-level.
13585         Restore compatibility mode after loading, and then disable
13586         compatibility mode in TH.
13588 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
13590         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
13591         past last line.
13592         * troff/node.h (output_file::trailer): Declare.
13593         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
13594         * troff/node.cc (output_file::trailer): New function.
13595         (troff_output_file::~troff_output_file): Move most code into...
13596         (troff_output_file::trailer): New function.
13597         (class troff_output_file): Delete page_length member. Declare
13598         trailer().
13599         (troff_output_file::really_begin_page): Use current page length
13600         for final V command.
13602         * tbl/main.cc (struct options): New decimal_point_char member.
13603         (options::options): Initialize this.
13604         (process_options): Implement decimalpoint option.
13605         (process_data): Pass decimal_point_char option to table::table.
13606         * tbl/table.h (class table): New decimal_point_char member.
13607         (table::table): Add additional argument.
13608         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
13609         second argument specifying decimal point character.  Use this
13610         instead of '.'.
13611         (table::table): Initialize decimal_point_char.
13612         (table::add_entry): Change call to find_dot.
13614         * troff/input.cc (get_copy, token::next): Implement \V.
13615         (interpolate_environment_variable): New function.
13617 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
13619         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
13620         * pic/pic.y: Likewise.
13622         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
13623         Add casts to int.
13624         * refer/ref.cc (reference::insert_field, reference::delete_field):
13625         Likewise.
13626         * troff/number.cc (parse_term): Likewise.
13628         * acgroff.m4 (GROFF_PROG_YACC): New macro.
13629         * configure.in: Use GROFF_PROG_YACC.
13631         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
13632         and g++.
13633         * Makefile.in (OPTIMIZE): New define.
13634         (DEBUG): Empty by default.
13635         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
13637         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
13638         (GROFF_ARRAY_DELETE): Likewise.
13639         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
13641         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
13643         * devps/psstrip.sed: Use different delimiter on last line (so that
13644         it works with BSD 4.4 sed.)
13646 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
13648         * devps/psstrip.sed: Delete comments.
13650         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
13651         optind, opterr, optarg.
13652         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
13653         opterr, optarg.
13655 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
13657         * Makefile.in (check): Dummy target.
13659 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
13661         * Version 1.07 released.
13663         * Integrate mm 1.11.
13665         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
13666         where start_col was meant.
13668 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
13670         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
13672 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
13674         * troff/input.cc (token::next): Make \z\o'...' and similar things
13675         work.
13677         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
13678         constants.
13679         (environment): Add margin_character_flags member.
13680         * env.cc (environment::environment(symbol),
13681         environment::environment(const environment *): Initialize
13682         margin_character_flags.
13683         (margin_character): Rewrite.
13684         (environment::output_line): Add a margin character if
13685         margin_character_flags is non-zero.  Turn off the
13686         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
13687         zero, use margin_character_node without copying and then set
13688         margin_character_node to 0.
13690         * devps/DESC.in: Change minimum size to 1000.
13692 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
13694         * troff/symbol.h (symbol::hash): Change return type to unsigned
13695         long.
13696         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
13697         Add casts to int.
13699         * test-groff: Use -r rather than -x.
13701         * grops/psfig.diff: Include in distribution again.
13703 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
13705         * Makefile.in (dist): Use gzip.
13707 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
13709         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
13710         unistd.h as well as in stdlib.h.
13711         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
13712         defined; otherwise include <sys/types.h> and <unistd.h> if
13713         UNISTD_H_DECLARES_GETOPT is defined.
13715         * configure.in: use builtin(include, ... rather than include(...
13716         * configure: Regenerate with autoconf 1.3.
13718         * libdriver/print.cc (printer::adjust_arc_center): Use new
13719         algorithm suggested by Andy Fyfe.
13721         * libdriver/printer.cc (printer::adjust_arc_center): New function.
13722         * include/printer.h: Declare this.
13723         * grops/ps.cc (ps_printer::draw): Use it.
13724         * grodvi/dvi.cc (dvi_printer::draw): Use it.
13726 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
13728         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
13730 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
13732         * eqn/main.cc (main): Handle "eqn -".
13734 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
13736         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
13738         * mm: Integrate version 1.08.
13740         * pic/troff.cc (troff_output::finish_picture): Set
13741         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
13742         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
13743         if it's not defined. Check whether the register is non-zero rather
13744         than whether it's not defined.
13745         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
13747         * indxbib/indxbib.cc: Move all signal handling into...
13748         * indxbib/signal.c: New file.
13749         * configure.in: Call AC_RETSIGTYPE.
13751         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
13752         * configure.in: Call GROFF_STRUCT_EXCEPTION.
13753         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
13755         * troff/input.cc (token::token, token::operator=): Work round SGI
13756         C++ bug.
13757         * pic/object.cc (position::position): Likewise.
13759 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
13761         * pic/pic.h: Move declaration of hypot().
13763 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
13765         * pic/pic.h: Declare hypot().
13767         * pic/pic.h: Define M_PI if necessary.
13769 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
13771         * tmac/tmac.e (re): Add alternative version that doesn't use groff
13772         `.ta T' feature.
13774         * devps/prologue.ps (RE): Handle the possibility that the old font
13775         doesn't have a FontName entry.
13777 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
13779         * tmac/tmac.e (fam): Redefine to set family in environment 2.
13780         (@C): Use @fam not fam.
13782 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
13784         * lookbib/lookbib.cc (main): Change type of start to const char *.
13785         * lkbib/lkbib.cc (main): Likewise.
13787         * eqn/lex.cc (definition::definition): Don't use member
13788         initializer syntax for members of anonymous unions.
13790         * troff/input.cc (input_stack::backtrace): Change type of to const
13791         char *.
13793 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
13795         * include/stringclass.h (class string): Declare inline friend
13796         functions as inline in class declaration.
13797         * troff/hvunits.h (class hunits, class vunits): Likewise.
13798         * include/refid.h (class reference_id): Likewise
13799         * troff/troff.h (points_to_units(units), scale(units, double)):
13800         Delete declarations.
13801         * libdriver/input.cc (get_char): Delete declaration.
13802         * include/lib.h: Change 2nd argument of getopt from const char **
13803         to char **.
13804         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
13805         char **' before assigning to a `const char **'.
13806         * tbl/table.cc: Delete extra declarations of prints().
13808 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
13810         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
13811         char **' before assigning to a `const char **'.
13813         * libgroff/errarg.cc (errarg::errarg): Don't use member
13814         initializer syntax for members of anonymous unions.
13816 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
13818         * mm: Integrate version 1.07.
13820 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
13822         * troff/input.c (translate2): Rename to
13823         (translate_no_transparent).
13824         (init_input_requests): Rename tr2 to trnt.
13826 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
13828         * troff/charinfo.h (class charinfo): Add transparent_translate field.
13829         (charinfo::set_translation, charinfo::set_special_translation):
13830         Add second argument that specifies value for
13831         transparent_translate.
13832         (charinfo::get_translation, charinfo::get_special_translation):
13833         Add optional second argument that specifies whether translation is
13834         being used for transparent throughput.
13835         * troff/input.cc (charinfo::set_translation,
13836         charinfo::set_special_translation): Handle second argument.
13837         (charinfo::charinfo): Initialize transparent_translate.
13838         (translate): Split main part off into
13839         (do_translate): New function.  Pass argument saying whether
13840         translation applies to transparent throughput.
13841         (translate2): New request.
13842         (init_input_requests): Bind translate2 to `tr2'.
13844 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
13846         * tbl/table.h (class table): Add `nokeep' flag.
13847         * tbl/main.cc (process_options): Handle `nokeep' option.
13848         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
13849         table::do_bottom): Don't output keep/release macro definitions or
13850         calls when `nokeep' option has been specified.
13852 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
13854         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
13856 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
13858         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
13859         block_entry::divert, alphabetic_block_entry::divert): Add extra
13860         argument giving column separation.
13861         (table::compute_widths): Pass column separation to
13862         table_entry::divert().
13863         (block_entry::do_divert): If an entry spans multiple columns and a
13864         minimumum width has been specified for each column, then set the
13865         line length to the sum of the widths (plus possibly the column
13866         separations).
13868         * troff/input.cc (set_escape_char): Don't set the escape_char
13869         until after calling has_arg().
13871 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
13873         * tbl/table.cc (table::do_top): Add missing \s0 for double box
13874         case.
13876         * tbl/table.cc (table::print_double_hline): Avoid extra new line
13877         in case where r > nrows - 1.
13879         * tbl/table.cc (BODY_HEIGHT): Deleted.
13880         (LINE_SEP): New definition.
13881         (table::print_single_hline, table::print_double_hline,
13882         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
13883         table::do_row, table::do_top): Use LINE_SEP space before a line
13884         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
13886         * tbl/table.cc (text_entry::print_contents): New function.
13887         (text_string_name, right_text_string_name): Deleted.
13888         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
13889         (simple_text_entry::do_width, numeric_text_entry::do_width,
13890         alphabetic_text_entry::do_width): Don't store the contents of the
13891         entry in a string.
13892         (left_text_entry::simple_print, right_text_entry::simple_print,
13893         center_text_entry::simple_print,
13894         alphabetic_text_entry::simple_print,
13895         numeric_text_entry::simple_print): Print the entry directly
13896         instead of using the stored string.
13898 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
13900         * devps/Makefile: Strip PostScript files.
13901         * devps/prologue: Rename to...
13902         * devps/prologue.ps.
13903         * devps/psstrip.sed: New file.
13904         * devps/download: Use .pfa rather than .ps for installed versions
13905         of fonts.
13907 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
13909         * troff/env.cc (input_trap): Give a warning if the argument is out
13910         of range.
13912         * troff/env.cc (adjust): Treat negative argument as missing. Round
13913         argument > 5 down to 5.
13915         * troff/env.cc (center, right_justify): Make negative argument zero.
13917         * troff/div.cc (page_offset, vertical_position_traps): Treat
13918         invalid argument as missing.
13919         * troff/env.cc (line_spacing, line_length, title_length, indent,
13920         underline, hyphen_line_max_request, control_char,
13921         no_break_control_char, widow_control_request, adjust, input_trap,
13922         point_size): Likewise.
13923         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
13924         constant_space): Likewise.
13925         * troff/input.cc (compatible, shift, warn_request,
13926         set_escape_char): Likewise.
13928         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
13929         * tbl/table.cc (table::table): Likewise.
13931         * Makefile.dev (install_dev): depends on $(DEVFILES).
13933 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
13935         * devX75, devX75-12, devX100, devX100-12: New directories.
13936         * Makefile.in: Add these to DEVDIRS.
13938         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
13939         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
13940         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
13941         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
13942         targets.
13943         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
13944         (uninstall): New target.
13945         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
13946         uninstall_prog, uninstall_dev): New targets.
13948         * troff/div.cc (return_request): Treat an invalid argument as
13949         missing.
13951 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
13953         * tmac/tmac.e ((f): Set up the environment even when there's a
13954         current diversion.  Transperently throughput a call to @N.
13955         (@N): New macro.
13957 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
13959         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
13960         up to vertical resolution.
13962         * tbl/table.cc (table::do_row): Change row number after printing
13963         stuff list.
13965         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
13967 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
13969         * Rename CHANGES to NEWS.
13971 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
13973         * libgroff/new.cc (operator new): Avoid calling malloc(0).
13975 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
13977         * man.ultrix: Removed.
13979 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
13981         * Makefile.comm (extraclean): Delete files whose names begin with
13982         `='.
13984         * pic/troff.cc (troff_output::text): Fix typo in implementation of
13985         aligned text.
13987 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
13989         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
13990         * troff/div.cc (page_length, need_space, space_request): Treat
13991         invalid optional argument as missing.
13992         * troff/env.cc (number_lines): If the first argument is present
13993         but not a number, turn on line numbering, don't change the next
13994         line number and parse the remaining arguments.
13996         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
13998 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
14000         * eqn/box.h: Change declaration accordingly.
14001         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
14002         the specified size was bad but don't give an error.  Check for
14003         overflow.
14004         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
14005         * eqn/lex (do_size): Likewise.
14007 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
14009         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
14010         compatible headers.
14012 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
14014         * tbl/table.cc (table::init_output): Improve error message when
14015         table won't fit on one page.
14017 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
14019         * pic/troff.cc (troff_output::start_picture): Generate line
14020         containing a horizontal motion equal to the width of the picture.
14022         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
14023         using GROFF_COMMAND_PREFIX environment variable.
14025 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
14027         * mdate.sh: Use $NF rather than $(NF).
14029 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
14031         * pic/main.cc (main):  Use %1 not %c in argument to warning.
14033         * eqn/main.cc (main): Output code to check that geqn was given the
14034         correct -T option.
14036 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
14038         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
14039         `ln -s ../Makefile .; make; rm -f Makefile'.
14041         * troff/hyphen: Rename to...
14042         * troff/hyphen.us:
14043         * troff/input.cc (main): Delete -H option. Don't call
14044         read_hyphen_file().
14045         * troff/env.cc: Include searchpath.h and macropath.h.
14046         (exception_dictionary): Deleted.
14047         (ht): Deleted.
14048         (read_hyphen_file): Deleted.
14049         (hyphenation_language): New struct.
14050         (class trie, class hyphen_trie): Move declarations up.
14051         (trie_node::~trie_node): Deleted.
14052         (trie::delete_trie_node): New function.
14053         (trie::do_delete): New pure virtual function.
14054         (hyphen_trie::do_delete): New function.
14055         (trie::~trie): New function.
14056         (hyphen_trie::~hyphen_trie): New function.
14057         (trie::clear): No need to chcek that tp is not 0.
14058         (current_language, language_dictionary): New variables.
14059         (hyphen_word): Give an error if no current language.  Use
14060         exceptions dictionary in current language.
14061         (hyphen_trie::read_patterns_file): Find file using macro_path.
14062         Allow comments (starting with %) in patterns file.  Don't make it
14063         a fatal error if the file can't be found.
14064         (hyphenate): Return if no current language.  Get the exceptions
14065         dictionary and the hyphenation patterns from the current language.
14066         (set_hyphenation_language): New variable.
14067         (hyphenation_patterns_file): New function.
14068         (hyphenation_language_reg): New class.
14069         (hyphenation_language_reg::get_string): New function.
14070         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
14071         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
14072         register.
14073         * groff/groff.cc (main, help, synopsis): Delete -H option.
14074         * include/Makefile.sub: Don't define HYPHENFILE.
14075         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
14076         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
14077         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
14078         hyphenation patterns.
14080 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
14082         * eqn/neqn.sh: New file.
14083         * eqn/Makefile.sub: Handle neqn.sh.
14085         * eqn/eqn.h: Declare `nroff' variable.
14086         * eqn/box.cc (param_table): Add `nroff' param.
14087         (nroff): Define it.
14088         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
14089         variable.
14090         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
14092         * troff/troff.h (WARN_FONT): New warning.
14093         (WARN_TOTAL): Change accordingly.
14094         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
14095         (warning_table): Add WARN_FONT.
14096         * troff/node.cc (mount_font_no_translate): Pass argument to
14097         font::load_font.  If this is non-zero, give a warning.
14098         Don't give an error message when accessing a font that has already
14099         been found to be invalid.
14100         * include/font.h (font::load, font::load_font): Add additional
14101         optional argument which suppresses error message if the font is
14102         not found.
14103         * libgroff/font.cc (font::load_font): Handle additional argument.
14104         (font::load): Add additional argument. If this is non-null, set it
14105         to 1 and don't give error message.
14107         * include/printer.h (printer::end_page): Add argument giving
14108         length of page.
14109         * libdriver/input.cc (do_file): Pass this.
14110         * grops/ps.cc (ps_printer::end_page): Add argument.
14111         * grodvi/dvi.cc (dvi_printer::end_page,
14112         draw_dvi_printer::end_page): Add argument.
14113         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
14114         columns_per_page members. New member nlines.
14115         (DEFAULT_LINES_PER_PAGE): Deleted.
14116         (tty_printer::tty_printer): Don't compute lines_per_page from
14117         font::paperlength. Don't compute columns_per_page from
14118         font::paperwidth.
14119         (tty_printer::add_char): Don't check horizontal position against
14120         columns_per_page. Grow glyphs vector if neccessary.
14121         (tty_printer::end_page): Add argument giving page_length in units.
14122         Discard lines past end of page.
14124 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
14126         * tmac/tmac.tty-char: Fix definition of \(/l.
14128         * tmac/tmac.X: Define \(en.
14130 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
14132         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
14133         lpq, then use lp rather than lpr.
14135         * tmac/tmac.s (par@reset): Don't call `ad'.
14136         (par*env-init): Call `ad'.
14138 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
14140         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
14141         date.
14143         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
14144         * indxbib/indxbib.cc: Likewise.
14146 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
14148         * libgroff/putenv.c: New file.
14149         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
14150         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
14151         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
14152         stdlib.h with AC_HAVE_HEADERS.
14154 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
14156         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
14157         does not exist.
14159 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
14161         * eqn/box.cc (gsize): Make it an int.
14162         (set_gsize): Parse argument handling increment or decrement.
14163         (box::top_level): Convert gsize to a string.
14165         * troff/input.cc (exit_troff): Make buf unsigned char [].
14166         Call to make_temp_iterator casts buf to char*.
14168         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
14170         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
14171         * Makefile.cpg (depend.temp): Likewise.
14173         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
14175         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
14177 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
14179         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
14181 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
14183         * Version 1.06 released.
14185         * Integrate mm 1.04.
14187 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
14189         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
14191 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
14193         * afmtodit/afmtodit.pl: Add -n option that disables generation of
14194         ligatures command.
14195         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
14196         afmtodit. Regenerate.
14198         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
14199         @f back past the current position.
14201         * tmac/tmac.e: Change calls to @R so that comments are not part of
14202         arguments.
14204 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
14206         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
14208         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
14209         check that we can link a call to a function declared in <stdio.h>.
14210         (GROFF_UNISTD_H): New macro.
14211         * configure.in: Call it.
14212         * Makefile.in: Document it.
14213         * include/posix.h: New file.
14214         * troff/troff.h: Don't include <osfcn.h>
14215         * troff/input.cc: Include posix.h.
14216         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
14217         osfcn.h.
14218         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
14219         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
14220         <fcntl.h>.
14221         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
14222         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
14223         * libbib/search.cc (O_RDONLY): Delete definition.
14224         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
14225         Don't include <osfcn.h>.
14227         * acgroff.m4 (GROFF_TIME_T): New macro.
14228         * configure.in: Call it.
14229         * Makefile.in: Document it.
14231         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
14232         * configure.in: Call it.
14233         * Makefile.in: Document -DTRADITIONAL_CPP.
14234         * include/ptable.h: Don't include generic.h.
14235         (name2): Define it.
14237         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
14238         Afterwards remove [T1 and [T2.
14239         (ref*spec!0, ref*spec!2): Use T1 rather than T.
14240         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
14241         (ref*add-T2): Renamed from ref*add-T.
14242         (ref*add-T1): New macro.
14244 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
14246         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
14248         * libbib/index.cc: Include <fcntl.h>.
14249         (O_RDONLY): Define if necessary.
14250         (make_index_search_item, index_search_item_iterator::get_tag,
14251         index_search_item::check_files): Use O_RDONLY.
14252         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
14253         (O_RDONLY): Define if necessary.
14254         (search_list::add_file): Use O_RDONLY.
14255         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
14256         <sys/stat.h>.
14257         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
14258         (main): Use these.
14260         * libbib/index.cc (S_ISREG): Define it if necessary.
14261         (index_search_item::load): Use S_ISREG.
14263         * include/driver.h: Include <errno.h>.
14265 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
14267         * eqn/box.cc (body_height): Increase default value to 85.
14268         (body_depth): Increase default value to 35.
14270 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
14272         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
14273         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
14274         protected from expansion with \E.
14276         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
14278         * Makefile (Makefile): New target.
14280         * Makefile.sub (configure, distfiles): New targets.
14282         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
14283         construct.
14285 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
14287         * eqn/box.cc (param_table): Add body_height and body_depth.
14289         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
14291 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
14293         * psbb/Makefile.sub: Don't link with libgroff.a.
14295         * acgroff.m4 (GROFF_PUTENV): New macro.
14296         * configure.in: Call GROFF_PUTENV.
14297         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
14298         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
14299         is defined.
14301         * troff/env.cc (distribute_space): Rename force_forward argument
14302         to force_reverse.  Reverse the list if force_reverse is true.
14304 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
14306         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
14308         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
14309         height or depth to be negative.  Guard against SUP_RAISE quantity
14310         being negative.
14312 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
14314         * devps/generate/textmap: Add `an' (arrowhorizex).
14315         * tmac/tmac.ps: \(an overlaps horizontally.
14316         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
14318         * devps/symbolchars: Add arrowverttp, arrowvertbt.
14319         * devps/textmap: Add arrowvertex.
14320         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
14321         updownarrow delimiters.
14322         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
14324         * tbl/table.cc (simple_entry::position_vertically,
14325         block_entry::position_vertically):  For a centered entry, perform
14326         the motion in two stages.
14328         * refer/refer.cc (split_punct): Don't call lookup_token if there
14329         is no token.
14331 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
14333         * troff/input.cc (token::next): Delete token_node after copying
14334         token.
14336         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
14337         cur_point_size.
14339         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
14341         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
14343 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
14345         * grops/ps.cc (usage): -b option takes an argument.
14347         * devps/prologue (PLG): New procedure.
14348         * grops/ps.cc (main, usage): New -g option.
14349         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
14350         length using PLG.
14352 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
14354         * include/cset.h: Include <limits.h> if we have it.
14356         * libgroff/illegal.cc: New file.
14357         * include/lib.h (illegal_input_char): Use table.
14358         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
14359         * pic/lex.cc (ARG1): Renumber to 14.
14360         * eqn/lex.cc (ARG1): Likewise.
14362         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
14363         (eg 1.05.90) correctly.
14365 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
14367         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
14368         Rename $r and $R registers to $v and $V.
14369         ($r, $R): Initialize to 0.
14370         (@v, @V): New macros.
14371         (sz): Call @v.
14372         (@M): Call @V.
14374         * troff/input.cc (main, usage): Add -R option that says not to
14375         load troffrc.
14376         * eqn/main.cc (main, usage): Rename -n to -R.
14378 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
14380         * devps/DESC.in: Leave font positions 5-9 blank.
14381         * devdvi/DESC.in: Likewise.
14383         * grog/grog.pl: Handle `.PS <file' correctly.
14385         * troff/input.cc (input_stack::push): Improve error message when
14386         input stack limit exceeded.
14388 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
14390         * refer/refer.cc (main): Fix typo in handling of `a' option.
14392         * refer/refer.cc (do_bib): In state START after a newline remain
14393         in state START.
14395         * groff/groff.sh: Deleted.
14396         * groff/Makefile.sub: Delete handling of groff.sh.
14398         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
14399         to determine whether to use \X'ps:...'.
14400         * tmac/troffrc: Set 0p register to 0.
14401         * tmac/tmac.ps: Set 0p register to 1.
14403         * groff/groff.cc: Support -X option. Give warning for -TXps and
14404         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
14405         * tmac/troffrc: Support -r.X=1.
14407         * pic/troff.cc (troff_output::dot): Don't test
14408         zero_length_line_flag.
14410 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
14412         * include/lib.h: Declare getopt() and friends unless
14413         STDLIB_H_DECLARES_GETOPT is defined.
14415         * doc/chars.tr: Delete.
14416         * man/groff_char.man: New file.
14418 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
14420         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
14421         user has changed register format.
14423 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
14425         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
14426         `postpro' command in DESC file.  Get spooler command from `print'
14427         command in DESC file.  Execute spooler command with /bin/sh.
14429         * groff/groff.cc: Split Unix-specific parts into...
14430         * groff/pipeline.c: New file.
14432         * LICENSE: Delete.
14433         * COPYING: New file.
14434         * all files: Update copyright notices.
14436         * Rearrange files.  Redo Makefiles.  Use autoconf.
14438 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
14440         * troff/input.c (charinfo_to_node_list): Interpret character
14441         definition with escape_char of `\'.
14443 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
14445         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
14446         Define INT_DIGITS as big enough for 64-bit integer.
14447         * lib/strtol.c: Don't include lib.h.
14448         * lib/lib.h: Delete ifdef __cplusplus stuff.
14450 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
14452         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
14453         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
14454         get DESC from current directory.
14456 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
14458         * tbl/main.c (main): Always reset the line number when reading
14459         from stdin.
14461         * tbl/table.c (table::print_single_hline, table::print_double_hline,
14462         table::define_bottom_macro, table::do_row, table::do_top): Round
14463         vertical spacing up to vertical resolution.
14465 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
14467         * ps/ps.h (enum resource_type): Avoid comma at end of
14468         enumerator-list.
14469         * dvi/dvi.c (class dvi_printer): Likewise.
14470         * dvi/tfmtodit.c (gf::load): Likewise.
14471         * refer/label.y (struct expression): Likewise.
14472         * refer/refer.c (class label_processing_state): Likewise.
14473         * refer/indxbib.c (do_file): Likewise.
14474         * troff/troff.c (enum warning_type): Likewise.
14475         * tbl/main.c (process_data): Likewise.
14476         * troff/charinfo.h (class charinfo):
14478 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
14480         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
14482 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
14484         * groff.c: Move to new groff subdirectory.
14485         * groff/Makefile: New file.
14486         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
14488         * man/mdate.sh: Use ls -L if supported.
14490         * Consolidate all header files produced by gendef into lib/defs.h.
14491         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
14492         Don't include path.h.
14493         * lib/Makefile (path.h): Don't generate.
14494         * troff/input.c: Include defs.h. Don't include config.h.
14495         * troff/Makefile (config.h): Don't generate.
14496         * refer/index.h: Don't include suffix.h.
14497         * refer/index.c: Include defs.h.
14498         * refer/indxbib.c: Include defs.h.
14499         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
14500         defs.h.
14501         * refer/Makefile (suffix.h, path.h): Don't generate.
14502         * groff.c: Don't include config.h. Include defs.h.
14503         * Makefile (config.h): Don't generate.
14504         (lib/defs.h): Generate.
14505         (topclean): Remove lib/defs.h.
14507 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
14509         * lib/malloc.c, lib/getpagesize.h: Deleted.
14510         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
14511         related stuff.
14512         * lib/Makefile: Delete malloc-related stuff.
14513         * lib/new.c: Workaround COOKIE_BUG if necessary.
14515         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
14516         needed header files directly.
14517         * refer/refer.h: Omit definition of DEFAULT_INDEX.
14518         * Makefile: Include definition of DEFAULT_INDEX in path.h.
14520 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
14522         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
14523         argument.
14524         * lib/font (font::load_desc, font::load): Don't split argument of
14525         unknown command.
14526         (font::handle_unknown_font_command): Change type.
14527         * ps/ps.c (ps_font::handle_unknown_font_command,
14528         handle_unknown_desc_command): Change type.
14529         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
14531 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
14533         * lib/font.h (font::handle_unknown_font_command): Add file and
14534         line arguments.
14535         * lib/font.c (font::handle_unknown_font_command):
14536         * ps/ps.c (ps_font::handle_unknown_font_command):
14537         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
14538         lineno arguments.  Use _with_file_and_line functions for error
14539         reporting.
14541         * lib/fontfile.c (font::unknown_desc_command_handler): New static
14542         data member.
14543         * lib/font.c (font::set_unknown_desc_command_handler): New
14544         function.
14545         (font::load_desc): For unknown commands, call
14546         unknown_desc_command_handler if not null.
14547         * lib/font.h (class font): Declare them.
14548         (FONT_COMMAND_HANDLER): New typedef.
14549         * ps/ps.c (handle_unknown_desc_command): New function.
14550         (main): Set bflag if we had a -b option. Call
14551         font::set_unknown_desc_command_handler.
14552         (broken.h): Don't include.
14553         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
14554         submake 
14555         * ps/devps/Makefile: Add `broken' command to DESC file using
14556         BROKEN_SPOOLER_FLAGS.
14558         * macros/tmac.e ([, ]): Add as synonyms for { and }.
14560         * macros/tmac.e ($p): Only exdent if \$3 > 0.
14562         * macros/tmac.e (@R, @S): New macros.
14563         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
14564         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
14565         Declare $H, $[0-9], .. macros with @S.
14566         Declare |0, |1, |2, |3 strings with @S.
14568         * macros/tmac.e (@S): Rename to @U.
14570         * macros/tmac.e (@z): Define @b and bp as empty instead of
14571         deleting them,
14573         * macros/tmac.e (@m): Deleted.
14574         (@h): Don't call @m.
14575         (@z): Don't set @m trap.
14577         * macros/tmac.e ($h, $f): Define |z as empty string.
14579         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
14580         (@q): Likewise.
14582         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
14583         removing them.
14584         ()f): Likewise for * register.
14586         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
14587         argument is missing, don't change $R.  Call sr with three
14588         arguments when initializing.
14590 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
14592         * macros/tmac.e (sr): New macro.
14593         Initialize $r and $R using sr.
14595         * macros/tmac.e (,): Delete \*(#[.
14597         * troff/env.c (set_tabs): Read the tab type even if the position
14598         is bad.  Allow the position of the first tab stop to be negative.
14600 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
14602         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
14603         _POSIX_VERSION.
14604         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
14605         rather than -DPATHCONF_MISSING.
14606         * Makefile: Get rid of PATHCONF_MISSING.
14608         * refer/map.c: New file.
14609         * refer/index.c: Interface to mmap through map.c.  Rename map_size
14610         to map_len.
14611         * refer/Makefile: Handle map.c.
14612         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
14614 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
14616         * Makefile: RANLIB should be `true' if there is no ranlib.
14617         * lib/Makefile (libgroff.a): Simplify.
14618         * driver/Makefile (libdriver.a): Simplify.
14620         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
14621         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
14622         defined.
14624 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
14626         * troff/env.c (compare_ranges): Declare as extern "C".
14628         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
14630         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
14632 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
14634         * pic/troff.c (troff_output::text): Merge in grops_output::text,
14635         but conditionalize use of \X based on \*(.T.
14636         (grops_output::*): Deleted.
14637         * pic/output.h: Delete declaration of make_grops_output.
14638         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
14639         by default. -n sets it to 0.
14640         (usage): Corresponding changes.
14641         * groff.c (main): Don't pass -x or -p to pic.
14642         * groff.sh: Likewise.
14644         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
14645         to be non-zero.
14647         * ps/devps/afmtodit: Change calculation of asc_boundary and
14648         desc_boundary.  Make these bounds inclusive.
14649         * ps/devps: Regenerate font files.
14651 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
14653         * macros/tmac.latin1: New file.
14654         * macros/tmac.tty-char: Use tmac.latin1.
14655         (tmac.tty-tr): Deleted.
14656         * macros/Makefile: Install tmac.latin1.
14657         * macros/tmac.dvi: Use tmac.latin1.
14658         * macros/troffrc: Translate \[char160] onto no-break space here.
14659         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
14661 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
14663         * macros/tmac.Xps: Use `do' request.
14665         * macros/tmac.ps: Use `do' request.
14667         * macros/tmac.e (@C): Use `do' request.
14669         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
14670         * macros/Makefile: Install tmac.X*.
14672         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
14673         * tty/Makefile: Don't install tmac.tty*.
14674         * macros/Makefile: Install tmac.tty*.
14676         * dvi/tmac.dvi: Move to macros.
14677         * dvi/Makefile: Don't install tmac.dvi.
14678         * macros/Makefile: Install tmac.dvi.
14680         * ps/tmac.ps*: Move to macros.
14681         * ps/Makefile: Don't install tmac.ps*.
14682         * macros/Makefile: Install tmac.ps*.
14684         * eqn/box.c: Provide draw_lines parameter corresponding to -D
14685         option.
14686         * macros/eqnrc: Set draw_lines parameter based on device.
14687         * groff.c: Don't pass -D flag to eqn.
14688         * groff.sh: Likewise.
14689         * eqn/main.c: Warn about use of -D.
14691         * troff/input.c (process_startup_file): New function.
14692         (main): Call process_startup_file().
14693         * macros/troffrc: New file.
14694         * macros/Makefile: Install troffrc.
14695         * groff.c (main): Don't pass extra -m option to troff. For a 
14696         pseudo device pass the name of the pseudo device to troff using
14697         -d.
14698         * groff.sh: Likewise.
14699         * groff.c (possible_command::prepend_arg): Deleted.
14701         * troff/input.c (do_request): New function.
14702         (init_input_requests): Bind "do" to do_request.
14704         * eqn/main.c (main): Instead of loading eqnchar from device directory,
14705         load eqnrc from macro directory.
14706         * macros/eqnrc: New file.
14707         * macros/Makefile: Install eqnrc.
14708         * ps/devps/eqnchar: Deleted.
14709         * ps/devps/Makefile: Don't install eqnchar.
14710         * dvi/devdvi/eqnchar: Deleted.
14711         * dvi/devdvi/Makefile: Don't install eqnchar.
14712         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
14713         variable optM.
14715         * lib/device.[ch]: New files.
14716         * lib/font.h (font::set_device_name, font::get_device_name):
14717         Deleted.
14718         * lib/fontfile.c: Use device.h.
14719         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
14720         * troff/input.c: Delete definition of `device'.
14721         (main): Don't initialize device.
14722         * troff/troff.h: Include device.h rather than declaring device.
14723         * troff/Makefile: No need to handle DEVICE.
14724         * driver/input.c: Include device.h. Don't use
14725         font::{set,get}_device_name.
14726         * groff.c, Makefile: Rename device.h to config.h.
14727         * groff.c: Use library device variable.
14728         * eqn/main.c: Use library device variable.
14729         * eqn/Makefile: No need to handle DEVICE.
14731         * lib/searchpath.[ch]: New files.
14732         * lib/Makefile: Handle searchpath.[ch].
14733         * troff/input.c (open_file, init_dirs): Deleted.
14734         (macro_dirs): Deleted.
14735         (open_mac_file, macro_source): Use class search_path.
14736         (add_string, struct string_list): Move definition.
14737         (main): Change -M option to use macro_path. Delete call to
14738         init_dirs().
14739         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
14740         Rewrite to use class search_path.
14741         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
14742         * lib/Makefile: fontfile.c depends on searchpath.h.
14743         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
14744         MACROPATH.
14745         * lib/macropath.[ch]: New files.
14746         * troff/Makefile: No need to handle MACROPATH.
14748         * troff/input.c: Delete DUMP code.
14749         * lib/fontfile.c, lib/font.h: Delete
14750         font::forget_command_line_font_dirs.
14752         * troff/input.c (push_token): New function.
14753         (handle_first_page_transition): Use push_token().
14754         (process_input_stack): Change handling of a space at the beginning
14755         of the line.
14757 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
14759         * troff/input.c (font_dirs): Delete unused variable.
14761         * eqn/lex.c (do_set): Correct error messages.
14763 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
14765         * troff/input.c (do_define_string): Allow the string name to be
14766         followed immediately by a tab.
14767         (define_character): Likewise.
14769 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
14771         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
14772         be negative.
14774         * troff/input.c (input_iterator::is_file): New virtual function.
14775         (file_iterator::is_file): New function.
14776         (input_stack::end_file): New function.
14777         (input_stack::next_file): Handle the situation where there is no
14778         file on the input stack correctly.  Avoid making two passes over
14779         the input stack.
14780         (next_file): Make the filename optional; in this case call
14781         input_stack::end_file().
14783 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
14785         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
14786         produce a real _ charater when the current font is CW and _
14787         otherwise.
14789         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
14790         expression to work around gcc 2.2 bug.
14792 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
14794         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
14796         * troff/env.c (environment::add_padding): New function.
14797         (environment::add_char): Use add_padding().
14798         (environment::space): Likewise.
14799         (environment::wrap_up_field): Add some padding if there is none
14800         and there's no current tab.
14801         * troff/env.h: Declare environment::add_padding.
14803 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
14805         * pic/pic.y: undef fmod and rand before declaring them.
14807 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
14809         * troff/input.c (main): If the DESC file specifies a font name of
14810         0, then leave the corresponding font position empty.
14812         * nroff.sh: New file.
14813         * Makefile (install.nobin): Install nroff.sh.
14815         * tty/devlatin1/R.proto: Add ao as synonym for de.
14816         * tty/tmac.tty-char: Define ao as o.
14818         * tty/dev{ascii,latin1}/R.proto: Add aq.
14819         * tty/tmac.tty-char: Delete definition of aq.
14821 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
14823         * troff/input.c (init_charset_table): Don't translate 0240.
14824         * ps/tmac.ps: Translate char160 to space.
14825         * dvi/tmac.dvi: Likewise.
14826         * tty/tmac.tty: Likewise.
14828 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
14830         * dvi/tmac.dvi: Add support for all Latin-1 characters.
14832         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
14833         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
14834         \(oe, \(r?, \(r!.
14836         * tty/tmac.tty-char: Add \(ah.
14838         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
14839         No need to define \(FM and \(!/. Conditionalize all character
14840         definitions.
14842         * ps/devps/lgreekmap: Add +h, +f, +p.
14844         * ps/tmac.psnew: New file.
14845         * ps/Makefile: Install tmac.psnew.
14847         * troff/input.c (charinfo_to_node_list): Don't ever interpret
14848         character definitions in compatible mode.
14850         * troff/input.c (remove_character): New function.
14851         (init_input_requests): Bind remove_character to "rchar".
14853         * ps/tmac.psold: New file.
14854         * ps/Makefile: Install tmac.psold.
14855         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
14856         characters into tmac.psold.  Make these definitions unconditional.
14858         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
14860         * ps/tmac.ps: Don't define \('c and \('C.
14862         * ps/devps/textmap: Move Greek characters to...
14863         * ps/devps/symbolchars:
14865 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
14867         * ps/devps/text.enc: Add quotesingle.
14868         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
14869         * tty/tmac.tty-char: Likewise.
14870         * dvi/devdvi/texmi.map: Add +h, +f, +p.
14871         * dvi/devdvi/texi.map: Add Fn.
14872         * dvi/devdvi/msam.map: Add lz.
14873         * dvi/tmac.dvi: Handle Bq, bq, aq.
14875         * pic/lex.c (get_token): Recognize 'th.
14876         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
14878 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
14880         * ps/devps/textmap: Move di, mu, +- to...
14881         * ps/devps/symbolchars:
14883         * macros/tmac.s (@XS): Don't call par@reset or fi.
14884         (XA): Call LP. Turn off adjustment. Reduce line length.
14886         * macros/tmac.s: Initially alias XS to LP.
14887         (XS): Rename to @XS.
14888         (cov*ab-init): Alias XS to @XS.
14890 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
14892         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
14893         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
14894         (token::is_size, token::changes_env): Deleted.
14895         * troff/number.c (parse_term): No need to process \s explicitly.
14896         Call tok.next() only after scale indicator has been processed.
14897         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
14898         \f etc explicitly.
14899         (token::next): Handle \s, \f, \S, \H immediately rather than
14900         returning them as tokens.
14901         (token::operator==, token::description, token::add_to_node_list,
14902         token::process): Remove handling of deleted tokens.
14904         * troff/env.c (environment::add_char): When adding padding
14905         indicator character, call start_line() if necessary.
14907 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
14909         * ps/devps/afmtodit: Don't output 0 kerns.
14911         * ps/devps/afmtodit: Remove directory from name of encoding in
14912         font description file.
14914         * ps/devps/afmtodit: Improve error messages.
14916         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
14918         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
14919         * ps/devps/FontMakefile: Deleted.
14920         * ps/devps/afmname: New file.
14922         * ps/devps/symbol.sed: New file.
14923         * ps/devps/symbol.diff: Deleted.
14924         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
14925         Generate zapfdr.afm from zapfd.afm.
14927         * tty/tmac.tty (tty-char): Prefix definition with ".
14929         * macros/tmac.an (TP): Don't start a diversion if one has already
14930         been started.
14932         * tty/tmac.tty-char: Add Latin-1 characters.
14934         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
14936 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
14938         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
14939         Move declaration of struct horizontal_span.
14941         * tbl/table.c (table::table): Initialize span_list.
14942         (table::~table): Delete span_list.
14944         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
14946         * ps/devps/Makefile: Avoid dependency on GNU make.
14948         * ps/tmac.ps: Check that character does not already exist before
14949         defining it.
14951         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
14952         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
14953         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
14954         files.
14956         * tty/tmac.tty-char: New file.
14957         * tty/Makefile: Install tmac.tty-char.
14958         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
14959         tmac.tty-char.
14961         * tty/tmac.tty: Fix definition of \(34.
14963         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
14964         bracket-drawing characters onto |. Add *o.
14966         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
14967         only if current_field.
14969         * troff/dictionary.c (dictionary::lookup): Free old_table after
14970         rehashing. 
14972 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
14974         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
14975         whose glyphs are identical to glyphs of some Roman character.
14977         * tty/devlatin1/R.proto (bu): Deleted.
14978         * tty/devascii/R.proto (bu): Deleted.
14979         * tty/tmac.tty: Add definition of \(bu.
14981         * eqn/main.c (do_file): Pass FILE as argument.
14982         (main): Automatically load eqnchar.  New options -F and -n.
14983         Pass do_file an opened FILE.
14984         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
14985         No need to include font.h.
14986         * groff.sh: Likewise.  Don't need to use - for standard input.
14987         Prefix files with -- if first file starts with -.
14989         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
14991         * troff/env.c (environment::possibly_break_line): Don't set line
14992         to 0 across call to output_line().  Don't call output_line() until
14993         after discarding nodes after break.
14995 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
14997         * request.h (macro::empty): Declare it.
14998         * input.c (macro::empty): New method.
14999         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
15000         macro is empty.
15002 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
15004         * troff/env.c (environment::start_field): Decrement space_total
15005         when a space is frozen.
15007 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
15009         * macros/tmac.an (R): Delete macro.
15011         * troff/input.c (get_copy, token::next): Support \# (like \" but
15012         newline is ignored).
15014         * troff/input.c (token::next): Fix error message in 'Y' case.
15016 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
15018         * eqn/delim.c (define_extensible_string): Recognize any prefix of
15019         a delimiter name.
15021 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
15023         * c++test.c: Include <osfcn.h>.
15025         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
15026         <errno.h> doesn't.
15028 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
15030         * tbl/table.c (table::divide_span): Don't count column separation
15031         if expand was specified.
15033         * tbl/main.c (process_format): Don't ignore width specs in
15034         continued format.  Give warning for changing equal widths or
15035         column separation in continued format.
15036         (process_data): Set column separation, minimum width, equal
15037         columns at end of table.
15039 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
15041         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
15042         node::add_discretionary_hyphen): Use soft_hyphen_char.
15043         (set_soft_hyphen_char): New function.
15044         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
15046         * Makefile (c++tested): Give more helpful message if test fails.
15048 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
15050         * troff/input.c (init_charset_table): Translate 0240 to
15051         an unbreakable space.
15053         * troff/token.h (token::hyphen_indicator): New function.
15054         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
15055         translation.
15056         * troff/input.c (translate): Allow translation to \%.
15057         * troff/node.c (node::add_char): Handle
15058         TRANSLATE_HYPHEN_INDICATOR.     
15059         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
15061         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
15062         for \(hy.
15064         * tty/devlatin1/R.proto: \(hy and - should print as 055.
15066 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
15068         * groff.c (run_commands): If the last command gets a SIGPIPE send
15069         a SIGPIPE to all children than haven't yet terminated.  When
15070         command terminates, set pid field to -1.
15072 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
15074         * groff.c (main): Pass an appropriate -filename option to gxditview.
15076 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
15078         * Makefile.bd (install): Remove existing program before copying.
15080         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
15081         programs which have Unix counterparts to be installed with
15082         user-specified prefix.
15084         * troff/input.c (exit_troff): Don't check if exit_started.
15085         (exit_request): Don't call exit_troff if exit_started.
15087         * Makefile.bd (install.mm): Rename to install.dwbmm.
15089 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
15091         * driver/input.c (do_file): Add missing break for '#' case.
15093 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
15095         * troff/input.c (input_stack::clear):  Clear past any boundaries and
15096         then add the boundaries back.
15098         * troff/input.c (exit_troff): Return immediately if already
15099         exiting.
15101         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
15102         end macro.
15103         (pg*end-page): If the text has ended and there are no more
15104         footnotes or keeps, exit.
15106         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
15108         * troff/input.c (init_charset_table): Make \(rq transparent by
15109         default.
15111         * macros/tmac.an: Define lq and rq strings.
15113         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
15115 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
15117         * troff/env.c (environment::final_break): New function.
15118         (environment::newline): Set prev_line_interrupted to 2 if
15119         exit_started.
15120         * troff/env.h: Declare environment::final_break.
15121         * troff/input.c (exit_troff): Call environment::final_break()
15122         instead of environment::do_break().
15124         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
15125         doesn't already exist.
15126         * macros/man.local: New file.
15127         * macros/tmac.an: Load man.local.
15128         * macros/man.ultrix: New file.
15130 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
15132         * troff/input.c (exit_groff): Rename to...
15133         (exit_troff): New function.
15135         * troff/div.c (exit_started, done_end_macro,
15136         seen_last_page_ejector): New global variables.
15137         (began_page_in_end_macro): New static variable.
15138         (exit_flag): Deleted.
15139         (top_level_diversion::top_level_diversion): Initialize
15140         last_page_count.
15141         (top_level_diversion): More elaborate test for whether
15142         cleanup_and_exit() should be called.
15143         Set began_page_in_end_macro if the end macro isn't yet finished.
15144         * troff/div.h (top_level_diversion::last_page_count): New data
15145         member.
15146         (top_level_diversion::set_last_page): New function.
15147         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
15148         * troff/env.c (do_break): Zero prev_line_interrupted.
15149         * troff/input.c (exit_flag): Delete declaration.
15150         (LAST_PAGE_EJECTOR): New magic cookie.
15151         (token::next): Handle LAST_PAGE_EJECTOR.
15152         (exit_groff): Set exit_started and done_end_macro instead of
15153         exit_flag.  Call top_level_diversion::set_last_page.  Push a
15154         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
15155         another ejection after setting seen_last_page_ejector.
15157 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
15159         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
15161         * macros/tmac.e (TH): Make sure there's room for the initial
15162         header.
15164         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
15165         Set FVS in points rather than units.
15167 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
15169         * troff/div.c (top_level_diversion::add_trap): Don't consider the
15170         position of empty slots.
15172 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
15174         * ps/devps/S: Fix height and depth of parenrightex.
15175         * ps/devps/symbol.diff: Regenerate.
15177 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
15179         * tmac.e (u): Do underlining as in -mgs.
15181 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
15183         * tty/tty.c (tty_printer::end_page): If overstriking is
15184         suppressed, still turn overstruck horizontal and vertical lines
15185         into +.
15187         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
15188         2.1.
15190         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
15192 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
15194         * Version 1.05 released.
15196 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
15198         * tty/tty.c: Instead of keeping an array of glyphs and then
15199         sorting it, keep a ordered linked list of glyphs for each line.
15201         * driver/driver.h: Include stddef.h.
15203         * tty/tty.c (compare_glyph):
15204         * refer/refer.c (rcompare):
15205         * troff/env.c (compare_ranges): Arguments of qsort comparison
15206         function should be const void *.
15208         * troff/number.c (parse_term):
15209         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
15210         switch statement.
15212         * refer/label.y (consider_authors): Don't access variables
15213         constructed under a condition outside that condition: put braces
15214         round for statement containing declaration; redeclare use of same
15215         variable later.
15217         * pic/pic.y (text_expr): Delete production that allows
15218         parenthesised text_expr.
15219         (expr): Allow a conditional_expr to appear in parentheses.
15220         (conditional_expr): Rename to any_expr.
15222         * mm: Install new version 1.01 from jh.
15224         * lib/font.c (font::get_width): Cache scaled widths.
15225         (font::font): Initialize widths_cache.
15226         (font::~font): Destroy widths_cache.
15227         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
15229 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
15231         * c++test.c, c++test.ref: New files.
15232         * Makefile: Check that the C++ compiler works.
15234         * ps/tmac.pspic (PSPIC): Do a break.
15236         * ps/tmac.ps: Move definition of PSPIC into...
15237         * ps/tmac.pspic: New file.
15238         (PSPIC): Draw box around picture, but make it invisible to grops.
15239         * ps/tmac.ps: Load tmac.pspic.
15240         * ps/Makefile: Install tmac.pspic.
15242 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
15244         * lib/font.c (scale_round): If n is negative,
15245         subtract .5 before truncating floating point result.
15247         * lib/fontfile.c: Include <errno.h>.
15249 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
15251         * driver/input.c (get_char): Inline. Don't update current_lineno.
15252         Change callers to up date current_lineno if necessary.
15253         Use get_char() instead of getc(current_file).
15255 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
15257         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
15259 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
15261         * tty/tty.c (tmac.tty): Define \(rg as (R).
15263 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
15265         * lib/lib.h: New define a_delete.
15266         * Use a_delete instead of delete when deleting an array of objects
15267         without destructors.
15269         * lib/lib.h: Rename adelete to ad_delete.
15270         * Change uses of adelete.
15272 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
15274         * eqn/eqn.y: Include lib.h.
15276         * troff/node.c (grow_font_table): Delete old_font_table.
15278         * mm: Install new version from jh.
15280 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
15282         * tbl/table.h (format_type): Make global instead of local to class
15283         entry_format.  Prefix enumerators with FORMAT_.
15284         * tbl/table.c, tbl/main.c: Corresponding changes.
15285         * refer/token.h (token_type): Make global.  Prefix enumerators
15286         with TOKEN_.
15287         * refer/token.[ch]: Corresponding changes.
15288         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
15290         * troff/div.c (node::set_vertical_size): Don't name argument.
15292 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
15294         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
15295         * lib/lib.h: Define adelete accordingly.
15296         * pic/object.c (graphic_object::graphic_object):
15297         * tbl/main.c (format::~format):
15298         * tbl/table.c (table::~table):
15299         * refer/ref.c (reference::~reference, reference::merge,
15300         reference::insert_field, reference::delete_field): Use adelete.
15302         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
15303         * refer/token.h:
15304         * tbl/table.h: Corresponding changes.
15306         * common.c (common_output::dashed_arc, common_output::dotted_arc):
15307         Ensure total_angle is positive.
15309 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
15311         * refer/ref.c (reference::merge, reference::insert_field,
15312         reference::delete_field): Avoid delete[0].
15314         * refer/token.c (init_special_chars): Move calls to cmupper
15315         outside calls to init_two_char_letter to work around bug in gcc
15316         2.0.
15318 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
15320         * lib/new.c (operator new): Use __builtin_new for g++.
15322         * pic/object.c (graphic_object::~graphic_object):  Don't use
15323         delete [] on 0.
15325         * pic/object.c (output::compute_scale): Initialize max_width and
15326         max_height.
15328 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
15330         * troff/input.c (write_request): Call fflush.
15332         * troff/node.h (class composite_node): Move declaration to node.c
15333         * troff/input.c (charinfo_to_node): Rename to ...
15334         (charinfo_to_node_list): Return node list rather than composite
15335         node.
15336         * troff/node.c (make_composite_node): New function.
15337         (make_node, add_char): Call make_composite_node instead of
15338         charinfo_to_node.
15339         (class composite_node): Add a tfont * member.  Delete font_size
15340         member.
15341         (composite_node::composite_node, composite_node::copy,
15342         composite_node::size): Corresponding changes.
15343         (composite_node::tprint): Provide constant spacing, emboldening
15344         and track kerning as specified in tfont.
15345         (composite_node::width): Change width calculation accordingly.
15346         * troff/env.h (environment::composite): New member.
15347         (environment::is_composite, environment::set_composite): New
15348         functions.
15349         * troff/env.c (environment::environment): Initialize composite.
15350         * troff/input.c (charinfo_to_node): Call
15351         environment::set_composite.
15352         * troff/node.c (make_composite_node, make_glyph_node): Use the
15353         plain version of the tfont if the environment is composite.
15355         * troff/node.c (font_info::get_space_width): Additional argument
15356         giving space_size.  Handle constant space correctly. Scale by
15357         space_size unless constant spaced.
15358         (env_sentence_space_width): New function.
15359         * troff/node.h: Declare it.
15360         * troff/env.h (environment::get_space_size,
15361         environment::get_sentence_space_size,
15362         environment::get_narrow_space_width,
15363         environment::get_half_narrow_space_width): Make inline.
15364         (environment::get_space_width): Make inline.  Just call
15365         env_space_width.
15366         * troff/env.c: Delete definitions for funtions made inline.
15367         (environment::space_newline, environment::space): Use
15368         env_sentence_space_width(). Don't scale by space_size.
15369         * troff/node.h: Move declarations of env*space_width() functions
15370         into env.h.
15372 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
15374         * macros/tmac.s (PS): Don't try to set negative indent.
15376 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
15378         * pic/pic.y: Fix min function.
15380 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
15382         * man/mdate.sh: Clear LANGUAGE.
15384 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
15386         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
15387         * pic/lex.c: New COMMAND keyword.
15388         * pic/pic.y (print_args, print_arg): New rules.
15389         (placeless_element): Use print_args for PRINT.
15390         New COMMAND element.
15392 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
15394         * troff/input.c (terminal): Handle missing argument correctly.
15396         * pic/pic.y (text_expr): New rule.
15398         * pic/pic.y: Implement := operator.
15400 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
15402         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
15403         mdoc.
15405 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
15407         * ps/devps/dingbatsrmap: Include this in the distribution.
15409         * macros/tmac.doc: Replace with new version from 2nd Networking
15410         Release. Fix loading of doc-* files.
15411         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
15412         * macros/tmac.doc.old: New file.  Apply fixes that had been
15413         applied to old tmac.doc.
15414         * macros/tmac.andoc: Check that we're running under groff.
15415         * macros/Makefile: Rework.
15417 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
15419         * tbl/table.h (format_type): 
15420         * refer/token.h (token_type): If NESTED_TYPES is defined, use
15421         typedef to make these types visible at file scope.
15422         * Makefile: Add NESTED_TYPES configuration option.
15424         * troff/div.c (mark): At the top level use the value of
15425         nl_reg_contents rather than the current vertical position.
15427 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
15429         * tty/tty.c: Implement \D for horizontal or vertical lines.
15430         (tty_printer::set_char): Use vec_used+2 as serial number.
15431         Don't allow size of vector to exceed USHRT_MAX-2.
15432         Split off part into...
15433         (tty_printer::add_char): New function.
15434         (tty_printer::draw): New function.
15435         (compare_glyph): Handle equal serial numbers.
15436         (tty_printer::end_page): Handle overstruck characters from \D.
15437         (main, usage): Implement -d option.
15439 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
15441         * tbl/main.c (process_format):
15442         * eqn/text.c (split_text):
15443         * troff/input.c (token::next): Use inner block for declarations
15444         with initializers in switch statement.
15446 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
15448         * pic/common.c (common_output::dash_line): Cope with zero-length
15449         lines.
15451 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
15453         * Version 1.04 released.
15455 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
15457         * macros/tmac.an (TH): Define a macro an-init to define variables
15458         based on command line arguments.
15459         (an-header): Call it.
15461 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
15463         * Makefile (install.mm): Rename to install.dwbmm.
15465         * Makefile: Integrate mm.
15466         * mm: New directory.
15468 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
15470         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
15471         <sys/types.h>.
15473         * pic/troff.c (troff_output::simple_spline,
15474         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
15475         shadowing parameter.
15477         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
15479         * lib/ptable.h: Add explicit casts when converting from unsigned
15480         long to unsigned.
15482         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
15483         * dvi/devdvi/Makefile: Install SA, SB.
15485         * refer/indxbib.c: Add declaration of mktemp.
15487         * refer/lookbib.c: Add declaration of isatty.
15489 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
15491         * pic/lex.c (interpolate_macro_with_args):  While collecting
15492         arguments, keep track of whether we're in a string.
15494 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
15496         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
15497         down with \v, so as to avoid problems with top of page trap
15498         setting no space mode.
15500 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
15502         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
15504 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
15506         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
15507         Improve error message.
15509 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
15511         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
15512         printf("%03o");
15514 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
15516         * groff.c (possible_command::execp): Always use _exit() after a
15517         failed exec.
15519         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
15520         NO_SYS_WAIT_H   configuration options.
15521         * groff.c: Use these options.  Use POSIX-style macros to extract
15522         fields from the status returned by wait().
15524 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
15526         * tbl/table.c (table::compute_separation_factor): Allow the
15527         separation factor to drop to 0.
15529 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
15531         * refer/search.c: Include <errno.h>.
15533 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
15535         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
15537         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
15538         C++. 
15540         * pic/lex.c (input_stack::bol): Move definition out of class body.
15542         * pic/main.c: On MSDOS munge argv[0].
15544         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
15546         * lib/ptable.c (hash_string): Use unsigned long rather than
15547         unsigned.
15548         (next_ptable_size): Use unsigned rather than int.  Give an error
15549         message if we've hit the largest table size.
15550         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
15551         table size.
15553         * pic/object.h (object_spec): Make flags unsigned long.  Declare
15554         flags as const unisgned long rather than as enums.
15556         * pic/output.c: Deleted.
15558         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
15560         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
15561         Add additional argument.
15562         (line_entry::note_double_vrule_on_{left,right}): Set value of
15563         douvle_vrule_on_{right,left} flag according to argument.
15564         (simple_line_entry::simple_print,
15565         simple_line_entry::double_line_print): If adjacent to double vrule
15566         on a corner extend rather than shorten the rule by half the double
15567         vrule sep.
15569         * troff/number.c (parse_term): In checking for overflow, handle the
15570         case where the current horizontal position is negative.
15572 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
15574         * pic/object.c (draw_arrow): Check for object having zero length.
15576 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
15578         * eqn/main.c (do_file): Split off inline equation handling into...
15579         (inline_equation): New function.  Search for starting delimiter
15580         using...
15581         (delim_search): New function. Don't recognize a delimiter that
15582         occurs in the name of an escape sequence, number register, string
15583         etc.
15585 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
15587         * eqn/delim.c (delim_box::compute_metrics): Don't call
15588         define_extensible_string if left is 0.
15589         (delim_box::output):  Don't print the left delimiter if left is 0.
15590         (delim_box::debug_print): Check for left == 0 before calling printf.
15592 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
15594         * troff/Makefile (majorminor.c): Include only digits in
15595         minor_version.
15597 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
15599         * refer/dirnamemax.c: new file.
15600         * refer/genlimits.c: Deleted.
15601         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
15602         Don't check path length.
15603         * refer/Makefile: Add dir_name_max.o; delete genlimits.
15604         * Makefile: Add PATHCONF_MISSING option.
15606         * refer/indxbib.c (get_cwd): New function.
15607         (main): Use get_cwd().
15608         * lib/getcwd.c: New file.
15609         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
15610         GETCWD in SUBFLAGS.
15611         * lib/Makefile: Compile getcwd.o.
15613         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
15614         userdict.
15616         * refer/indxbib.c (main): Check success of mktemp.
15618         * lib/tmpfile.c: New file.
15619         * lib/Makefile: Add tmpfile.c.
15620         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
15621         * ps/ps.h: Delete declaration of mktemp().
15622         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
15623         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
15624         * driver/driver.h: No need now to include errno.h.
15626         * everywhere: Set errno to 0 before calling fopen().
15628         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
15629         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
15630         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
15632 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
15634         * troff/env.h (translate_space_to_dummy): Declare it.
15635         * troff/env.c (environment::space_newline, environment::space):
15636         If translate_space_to_dummy is set then make the width of spaces 0.
15637         * troff/input.c (translate): If the second character of a
15638         translation is a space, translate to unbreakable space.  If the
15639         first character is a space, set or clear translate_space_to_dummy
15640         according to whether the second character is \&.  Weird!
15642 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
15644         * groff.c (run_commands): Don't use non-zero exit code because a
15645         command gets SIGPIPE.
15647         * groff.c, groff.sh: Use -mXps with -TXps.
15649         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
15650         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
15651         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
15652         (ps_printer::special): New specials invis and endinvis.
15653         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
15654         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
15655         (ps_printer::end_page): Check that invis_count == 0.
15656         (ps_printer::invis_count): New member.
15657         (ps_printer::ps_printer): Initialize invis_count to 0.
15659         * troff/env.c (environment::hyphenate_line): Hyphenation
15660         indicator at beginning of word inhibits splitting after -, \(em
15661         etc.
15663         * pic/pic.y (element): Allow another element to follow } without
15664         any intervening separator.
15666 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
15668         * pic/lex.c (get_delimited): Allow tabs before delimiter.
15670 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
15672         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
15673         declaration of wait() in header files.
15674         * Makefile: Get rid of -DHAVE_UNION_WAIT.
15676         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
15678         * lib/lib.h: Declare return type of strerror as char *.
15680         * man/Makefile: Add g flag to sed substitutions.
15681         * Makefile (shgroff, bindist): Likewise.
15683 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
15685         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
15686         * ps/devps/prologue (PBEGIN): Define showpage after pushing
15687         userdict.
15689 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
15691         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
15692         userdict.
15694 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
15696         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
15697         group.
15699 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
15701         * troff/input.c (define_number_reg):  If currently undefined,
15702         don't define it if the argument is an invalid expression.
15704         * Makefile: Ignore return value of `if' commands without `else'
15705         parts.
15707         * Makefile: Split up CPPDEFINES into a series of separate
15708         configuration options.
15710         * troff/input.c (init_registers): Use time_t instead of long
15711         unless LONG_FOR_TIME_T is defined.  Use returned result rather
15712         than passing pointer.
15713         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
15715         * lib/Makefile (fontpath.h): Use gendef.
15717 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
15719         * troff/input.c (input_iterator::shift): Delete argument name.
15720         * troff/node.c (suppress_output_file::really_begin_page,
15721         suppress_output_file::really_transparent_char, node::ascii_print,
15722         node::tprint): Delete names of unused arguments.
15724 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
15726         * refer/label.y (string):  Pass $4 to command_error.
15728 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
15730         * Version 1.03 released.
15732 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
15734         * Makefile: Pass definition of SHELL in SUBFLAGS.
15736         * gendef: New file.
15737         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
15738         ps/Makefile: Use gendef to construct header files that are
15739         constructed from the Makefile.
15741         * macros/Makefile: make all should build stripped version of tmac.e.
15743         * refer/Makefile (clean): Remove y.output.
15745 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
15747         * ps/pfbtops.c (main): Add -v option which prints out a version
15748         number.
15749         * ps/Makefile (pfbtops): Link with libgroff.a.
15751 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
15753         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
15754         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
15756         * refer/lkbib.c (main): Always terminate reference with blank
15757         line.
15758         * refer/lookbib.c (main): Likewise.
15760         * refer/linear.c (file_buffer::load): Check that the file is not a
15761         binary file.
15763         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
15764         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
15765         Delete second inclusion of <sys/param.h>.
15767 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
15769         * troff/token.h (token::special): Deleted.
15771         * tbl/main.c (process_format): Rework so that opt->tab_char is
15772         recognized only when appropriate.
15774         * ps/Makefile (clean): Remove pfbtops.
15776 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
15778         * lib/font.c (text_file::next): Don't return if we have got a
15779         blank line.
15781 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
15783         * refer/refer.c (store_reference): Get hash code from old_table[i]
15784         when rehashing the table.
15786 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
15788         * eqn/box.c (box::top_level): Save size and prev size using \R and
15789         restore it afterwards. Set the size to the size at the beginning
15790         of the line.
15791         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
15792         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
15794         * refer/Makefile (limits.h): Use ./genlimits.
15796 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
15798         * refer/index.c: Delete declarations of stat() and fstat().
15800 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
15802         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
15804 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
15806         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
15808 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
15810         * troff/input.c (token::get_char): Handle \e.
15812         * refer/linear.c: Delete declarations of fstat() and stat().
15814 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
15816         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
15817         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
15819 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
15821         * troff/input.c (do_define_macro): Improve error handling for end
15822         of file while defining macro.
15824 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
15826         * eqn/box.h: Fix declaration of set_gsize.
15827         * eqn/box.c (set_gsize): Make argument const char *.
15828         (gsize): Declare as char *.
15829         * eqn/main.c (main): Don't convert gsize to int.
15830         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
15832         * Version 1.02 released.
15834 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
15836         * macros/tmac.andoc: New file.
15837         * macros/Makefile: Install tmac.andoc.
15839         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
15840         operator new and delete on OP_DELETE_BROKEN not being defined.
15841         * Makefile: Mention OP_DELETE_BROKEN.
15843 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
15845         * Makefile (bindist): Pass SUBFLAGS.
15847 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
15849         * Makefile, groff.c: Pass definitions to groff.c via device.h.
15851         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
15852         parameter.
15854         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
15856         * ps/ps.h, ps/psrm.c: Make comment_table and
15857         header_comment_table local to resource_manager::process_file.
15859         * groff.sh: With -TXps pass -printCommand option to gxditview.
15861         * groff.c (possible_command::print): Implement using
15862         append_arg_to_string.
15864         * xditview: Merge in new implementation with own ChangeLog.
15866 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
15868         * groff.c (main): Implement PRINT_OPTION.
15869         (append_arg_to_string): New command.
15870         (device_table): Set PRINT_OPTION flag for Xps.
15872 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
15874         * troff/groff.h: Rename to troff.h.
15876         * pic/lex.c (lookup_keyword, docmp): New functions.
15877         (get_token): Use new lookup_keyword.
15878         Don't include key.h.
15879         * pic/key.[ch], pic/pic.gperf: Deleted.
15880         * pic/Makefile: Remove gperf stuff.
15882         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
15883         into output.h.
15884         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
15886         * troff/Makefile, troff/node.c: Move definition of
15887         STORE_WIDTH into node.c.
15889         * etc/grog.pl, etc/grog.sh: Support -mdoc.
15891 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
15893         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
15894         dvi/devdvi/texb.map: Add lq and rq.
15895         dvi/devdvi: Regenerate fonts.
15896         * ps/devps/textmap: Add lq and rq.
15897         * ps/devps: Regenerate fonts.
15898         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
15899         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
15901         * pic/object.c (position_rectangle): When checking radius
15902         cope with possiblity that width or height is negative.
15903         (box_object::box_object): Have separate xrad and yrad with
15904         signs matching signs of dim components.
15905         (box_object::{north,south}_{east,west}): Use xrad and yrad.
15906         (box_object::print): With rounded boxes use absolute values
15907         for dim and rad arguments.
15909         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
15910         in fontpath.h.
15912         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
15914         * various files: Add explicit destructors to keep Saber CC +d
15915         happy.
15917 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
15919         * eqn/box.c (box::top_level): Restore fonts correctly after
15920         font changes in line containing inline equation.  Also
15921         restore previous font as well as current font.
15922         * eqn/pbox.h: Define necessary string and register names.
15924         * troff/input.c (token::next): Case 'R' calls do_register.
15925         (do_register): New function.
15927 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
15929         * groff.c, groff.sh: Support Xps device.  Allow each device
15930         to have a pseudo_name and a real_name.
15932         * groff.c (run_commands): Don't print `Broken pipe' messages.
15934         * ps/pfbtops.c: New file.
15935         * ps/Makefile: Add pfbtops.
15937         * troff/number.c (parse_term): Improved error message.
15939 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
15941         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
15943         * Makefile: Integrate refer.
15944         * refer: New directory.
15945         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
15946         man/lkbib.man: New files.
15947         * man/Makefile: Support refer man pages.
15949         * lib/lib.h: Declare is_prime.
15950         * lib/prime.c: New file.
15952         * troff/input.c (macro_source): New function.
15953         (init_input_requests): Bind "mso" to macro_source.
15955         * troff/env.c (environment::possibly_break_line): Maintain
15956         pointer to pointer to node to be split in ndp so as to avoid
15957         using address of freed node.
15959         * troff/env.c (environment::hyphenate_line): Maintain pointer to
15960         pointer to first node to be hyphenated in startp so as to
15961         avoid using address of freed node.
15963         * troff/env.c (class trie, class hyphen_trie): Make the
15964         elements of the trie be of type char not unsigned char.
15965         Declare arguments to be const char* instead of unsigned char *.
15966         
15967         * troff/env.c (hyphenate): Initialize hbuf[0].
15969         * troff/input.c (set_string): Declare p to be char * and cast
15970         *p to unsigned char when necessary.
15972         * troff/input.c (do_define_macro): Declare s to be const
15973         char*. Cast element to unisgned char when necessary, Declare
15974         d to be an int.  Handle EOF better.
15976         * troff/Makefile, troff/input.c: Different scheme for passing
15977         definitions of MACROPATH, HYPHENFILE and DEVICE.
15979 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
15981         * tty/devascii/R.proto: Delete entry for em.
15982         * tty/devlatin1/R.proto: Likewise.
15984 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
15986         * troff/input.c (translate): Stop when we get a space. Treat eof
15987         like newline.
15989         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
15991 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
15993         * tbl/main.c (process_format): A font name following a `f'
15994         modifier that starts with a digit can be only one character long.
15995         Also deal with EOF on the second character of the font name.
15997 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
15999         * troff/input.c (token::next): Turn \~ into an
16000         unbreakable_space_node.
16001         * troff/node.c (unbreakable_space_node): New class.
16002         * troff/node.h: Declare it.
16004 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
16006         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
16007         it's >= 0, before outputting it as a single byte.
16009 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
16011         * lib/font.c: Make font_char_metric::code an int.
16012         (font::get_code): Change return type to int.
16013         (font::load): Allow code to be arbitrary integer.
16014         * lib/font.h (font::get_code): Change return type to int.
16015         (font::number_to_index): Change argument type to int.
16016         * troff/input.c (token::next):  In case 'N', allow any value.
16017         Store value in token::val.
16018         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
16019         (token::get_char, token::add_to_node_list, token::process): Get
16020         number from val.
16021         (charinfo::set_number): Change argument to int.
16022         (charinfo::get_number):  Require that NUMBERED flag be set.
16023         (get_charinfo_by_number): Store numbered characters not between 0
16024         and 255 in a dictionary.
16025         * troff/charinfo.h (get_charinfo_by_number): Change argument type
16026         to int.
16027         (charinfo::number): Change type to int.
16028         (charinfo::set_number): Change type of set_number to int.
16029         * troff/node.c (troff_output_file::put_char_width,
16030         troff_output_file::put_char): Test whether character is numbered
16031         using charinfo::numbered().
16032         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
16033         values of num.
16034         * lib/nametoindex.c: New implementation to cope with arbitrary
16035         number characters.
16037         * troff/input.c (token::operator==): Test val for
16038         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
16039         TOKEN_SIZE.
16041         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
16042         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
16044 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
16046         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
16047         variable.
16049         * all Makefiles: rm targets of cp and >.
16051         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
16052         it.
16054         * eqn/lex.c (def_table): Add dollar.
16056 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
16058         * troff/input.c (do_width): Push back newline before closing delim
16059         like do_bracket.
16061 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
16063         * groff.c (possible_command::prepend_arg): New function.
16064         (main): Prepend device -m option.
16065         * groff.sh: Put device -m options before command-line options.
16067 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
16069         * macros/tmac.an (IP): Quote argument to TP.
16071         * ps/ps.c (main): New option -b, which sets...
16072         (broken_flags): New variable.
16073         (ps_printer::~ps_printer): Incorporate the setup section in the
16074         prolog if (broken_flags & NO_SETUP_SECTION).
16075         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
16076         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
16077         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
16078         ps_printer::print_needed_font_comment,
16079         ps_printer::print_supplied_font_comment,
16080         ps_printer::print_include_font_comments,
16081         ps_printer::lookup_doc_font, ps_printer::download_fonts,
16082         ps_printer::read_download_file, read_document_fonts, add_font,
16083         skip_line, parse_fonts_arg, document_font::document_font,
16084         document_font::~document_font, document_font::download,
16085         ps_output::include_file):  Deleted.
16086         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
16087         rather than %!PS-Adobe-2.0.  Make calls to
16088         resource_manager::need_font for each font that we used. Replace
16089         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
16090         print_supplied_font_comment, print_needed_font_comment by call to
16091         resource_manager::print_header_comments. Output %%Orientation
16092         comment. Output %%Requirements: numcopies comment if ncopies > 1.
16093         Don't output the prolog directly.  Instead call
16094         resource_manager::output_prolog.  Only define #copies when ncopies
16095         > 1.  Delete calls to print_include_font_comments  and
16096         download_fonts.  Add call to resource_manager::document_setup.
16097         (ps_printer::do_file): Call resource_manager::import_file instead
16098         of including it ourselves.
16099         (ps_printer::do_import): Likewise.  Also don't call
16100         merge_import_fonts. Push userdict on the dictionary stack before
16101         and pop it afterwards.
16102         Move declaration of ps_output into ps.h.
16103         * ps/psrm.c: New file implementing resource_manager class.
16104         * ps/ps.h: New file declaring ps_output and resource_manager
16105         classes.
16106         * ps/devps/zapfdr.ps:
16107         * ps/devps/symbolsl.ps:
16108         * ps/devps/prologue:  Use 3.0 conventions.
16109         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
16110         Add default definition of BROKEN_SPOOLER_FLAGS.
16111         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
16112         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
16114 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
16116         * etc/grog.pl: New file.
16117         * Makefile (GROG): New variable.
16118         Add GROG to SUBFLAGS.
16119         * etc/Makefile (GROG): New variable.
16120         (install.nobin): Install $(GROG) rather than grog.sh.
16122 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
16124         * eqn/special.c (special_box::compute_metrics): Make the input and
16125         output strings the same.  Get the new height and depth from the
16126         predefined height and depth registers.  Also make subscript kern
16127         and skew available.
16128         (special_box::compute_subscript_kern, special_box::compute_skew):
16129         New functions.
16131         * eqn/box.c (pointer_box::compute_skew,
16132         simple_box::compute_metrics, box::top_level)
16133         * eqn/text.c (prime_box::compute_metrics,
16134         prime_box::comput_subscript_kern)
16135         * eqn/limit.c (limit_box::compute_metrics):
16136         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
16137         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
16138         negative numbers in `nr' requests with a leading 0.
16140 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
16142         * eqn/special.c: New file.
16143         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
16144         Add new rule for simple.
16145         * eqn/lex.c (token_table): Add SPECIAL.
16146         * eqn/box.h: Declare make_special_box.
16147         * eqn/Makefile: Add special.[co].
16149 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
16151         * ps/devps/prologue: Possibly set packing to true while defining.
16152         Create grops dictionary here.  Initialize local variables before
16153         defining procedures.
16154         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
16155         the dictionary stack. Set strokeadjust and overprint to false if
16156         the relevant operators are defined.
16157         (PEND): New procedure.
16158         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
16159         prologue.  Do everything else in the setup section.
16160         (ps_printer::do_import): Just call PBEGIN and PEND around the
16161         picture. Also push userdict before, and pop it afterwards.
16163 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
16165         * troff/node.c (bracket_node::tprint): Brackets were being printed
16166         1m too low.
16168         * macros/tmac.an (SH, SS): Set fill mode.
16170 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
16172         * troff/div.c (top_level_diversion::begin_page): Set
16173         high_water_mark to 0.
16175 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
16177         * man/mdate.sh: New file.
16178         * man/mdate.c: Deleted.
16179         * man/Makefile: Use mdate.sh instead of mdate.
16180         (mdate): Deleted.
16182         * eqn/lex.c (do_gsize): Supply missing argument to error message.
16184 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
16186         * man/mdate.c: New file.
16187         * man/*.man: Replace modification date by @MDATE@.
16188         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
16189         (mdate): New target.
16191         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
16192         Remove illegal input characters.
16194 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
16196         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
16198 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
16200         * troff/div.c (begin_page): Change behaviour when
16201         !first_page_begun and !break_flag.
16203         * troff/input.c (do_name_test): Return 0 if argument is empty.
16205         * troff/input.c (read_long_escape_name): Require closing ] to be
16206         at same input level as opening [.
16208         * troff/input.c (read_increment_and_escape_name): New function.
16209         (get_copy, process_input_stack): Use this for \n.
16211 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
16213         * troff/div.c (top_level_diversion::begin_page): Ignore the
16214         current value of page_number if !first_page_begun.
16216         * groff.c (main): Fix declaration of buf.
16218         * troff/input.c (do_name_test): New function.
16219         (token::next): Implement \A.
16220         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
16221         (token::description, token::add_to_node_list, token::process):
16222         Handle TOKEN_ESCAPE.
16223         * troff/token.h: New token TOKEN_ESCAPE.
16225 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
16227         * pic/main.c (do_picture): Allow space before and after filename
16228         following `<'.  Check that the filename is not empty.
16230 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
16232         * Version 1.01 released. 
16234         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
16236         * dvi/tmac.dvi: ftr HR to H.
16238         * macros/tmac.e: Round up computation of $r.
16240         * xditview/tmac.X:  Don't give up completely in compatibility mode.
16241         Use \n(.s instead of \n[.s].
16243         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
16244         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
16245         Add u to factors inside \s[...]. Rename frac to dvi-frac.
16246         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
16247         short names in the char definitions.
16249         * ps/tmac.ps: Don't give up completely in compatibility mode.
16250         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
16251         quote in front of \n(.s. Add u to factors inside \s[...].
16253 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
16255         * tty/tmac.tty: Call the nroff request.
16257         * macros/tmac.e ((x, )x):  Better definitions that work properly
16258         in a diversion.
16259         (@0, @1): Helper macros for (x.
16261         * macros/tmac.e ($s, hl): Use \l rather than \D.
16263         * tty/tmac.tty: Make it work better in compatibility mode.
16264         (pchar): Rename to tty-char.
16266         * macros/tmac.e (@E): New macro.
16267         (r, i, b, rb, bi): Use @E.
16269         * macros/tmac.e (@F): Don't use (;...) syntax.
16271         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
16272         it was modified for groff.
16274         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
16276         * macros/tmac.e (<., .>): Removed.
16277         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
16279         * macros/tmac.e: Remove check that groff is being used.
16281         * macros/tmac.e (@C): Change families only if using groff; turn
16282         compatibility mode off while changing familes. Save compatibility
16283         mode before changing families and restore it afterwards.
16285         * macros/tmac.e (@h): Remove test for offset + line length.
16287         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
16288         (lo, th, ac): Define to call @S instead of using als.
16290         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
16291         the ratio of the vertical spacing to the point size in units
16292         expressed as a percentage.  Use these instead of $10r and $10R,
16293         Delete $10r and $10R.
16295         * lib/font.c (font::load): In default computation of space_width,
16296         divide by sizescale.  Use scale_round.
16298         * macros/tmac.an (TP): Don't call `nf'.
16299         (an-do-tag): Don't call `fi'.
16301 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
16303         * troff/input.c (process_input_stack): Handle the case where
16304         spaces at the beginning of an input line are followed by a
16305         newline.
16307 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
16309         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
16310         * groff.sh: Use pic -x with the dvi device.
16312         * dvi/devdvi/FontMakefile (H): Don't use -s.
16314         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
16315         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
16316         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
16317         in FONTS.
16319 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
16321         * ps/psfig.diff: New file.
16322         * ps/tmac.psfig: New file.
16324 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
16326         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
16327         (]-): Don't call ref*do-tl.
16329         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
16331         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
16332         (fn@do-FS): Rename to fn*do-FS.
16334         * troff/input.c (transparent_translate): New function.
16335         (process_input_stack): Apply transparent_translate before calling
16336         diversion::transparent_output(unsigned char).
16338 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
16340         * troff/input.c (do_define_macro): Define the macro before calling
16341         skip_line.
16343         * xditview/Makefile: Add DEVICES variable.  Change install target
16344         to use this.
16346 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
16348         * groff.c (run_commands): Handle the possibility that there are
16349         child processes other than those forked by us.
16351 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
16353         * lib/string.c (string::append): New function.
16354         * lib/stringclass.h: Declare it.
16356 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
16358         * eqn/main.c (main): New option -N which sets
16359         no_newline_in_delim_flag. 
16360         (do_file): If no_newline_in_delim_flag is set don't allow newlines
16361         in delimiters.
16362         * groff.c (main): Pass -N on to eqn.
16363         (help, synopsis): Mention -N.
16364         * groff.sh: Implement -N.
16366 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
16368         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
16369         (]-): Call ref*do-tl if ref*need-tl is non-zero.
16370         (XP): Allow as initializer.
16372 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
16374         * troff/env.c (environment::wrap_up_field): If field_spaces are
16375         non-zero and we have a current_tab, subtract padding from
16376         tab_distance.  If this makes tab_distance <= 0, use the next tab
16377         stop instead.  If there isn't any next tab or it's a left tab,
16378         wrap up the current tab.
16379         (environment::start_field): Initialize tab_precedes_field.
16380         (environment::wrap_up_tab): If there's a current field, update
16381         pre_field_width, field_distance and tab_precedes_field.
16382         * troff/env.h (environment::tab_precedes_field): New member.
16384 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
16386         * ps/ps.c (ps_printer::do_file): New function.
16387         (ps_printer::special): Bind to `file' special.
16388         (ps_printer::do_exec): Set ndefined_styles to 0.
16390 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
16392         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
16393         Avoid stripping first character from the start of unrecognized
16394         escapes.  Use lex_error instead of error to report errors.
16395         * eqn/lex.c (get_token): Rework handling of escapes.
16396         (lex_error): Move declaration into...
16397         * eqn/eqn.h.
16399         * xditview/xditview.c (main): Make -page option work.
16401         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
16403 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
16405         * macros/tmac.s (B2): Correct size of box.
16407 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
16409         * macros/tmac.s (B2): Postpone drawing the box until in the
16410         top-level diversion.
16412         * tty/tmac.tty: Add font translations for C, CR, CW.
16414         * groff.c (synopsis, help): Document -i.
16415         * groff.sh: Implement -i.
16417         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
16418         Simplify the construction of SN.
16420         * troff/number.c (parse_term): Give `|' a higher precedence.
16421         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
16422         accordingly.
16424         * macros/tmac.s (B2): Use par@finish instead of par@reset.
16426 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
16428         * lib/string.c (string::move): New function.
16429         * lib/stringclass.h: Declare it.
16431 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
16433         * troff/env.c (distribute_space): Add optional argument
16434         `force_forward'.
16435         (environment::wrap_up_field): Call distribute_space with
16436         `force_forward' argument of 1.
16438 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
16440         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
16441         Inline it.  Move reallocation into...
16442         (string::grow1): New function.
16443         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
16444         dependencies to include library header files.
16445         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
16447 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
16449         * macros/tmac.s (@NH): Use the same number registers than -ms does
16450         for the heading level counters.  Use the same string that -ms does
16451         for the number for this heading.
16453 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
16455         * lib/new.c (operator new): Cast result of malloc to char *.
16457         * troff/input.c (spring_trap, lookup_request): Add assert that nm
16458         is not null.
16460 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
16462         * groff.c (main): Support -i.
16464 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
16466         * pic/pic.h: Include <osfcn.h>.
16468         * ps/ps.c: Add declaration of mktemp.
16470         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
16471         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
16472         argument as union wait *.
16473         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
16474         argument to union wait *.
16476 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
16478         * tty/tmac.tty: Add definition of \(co.
16480         * pic/object.c (make_arc): Only increase radius when radius
16481         strictly less than d.
16482         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
16483         more than once.
16485         * troff/env.c (environment::environment(symbol),
16486         environment::environment(const environment *)):  Initialize
16487         input_trap_count.
16489 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
16491         * tbl/main.c (main): Add exit(0).
16493         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
16495         * pic/main.c (main):
16496         * eqn/main.c (main):
16497         * tbl/main.c (main):
16498         * etc/soelim.c (main):
16499         * driver/printer.c (printer::~printer):
16500         * troff/node.c (real_output_file::~real_output_file,
16501         real_output_file::flush):  Check for errors on stdout.
16503         * most files: Add 1991 to copyright notice.
16505         * macros/tmac.s: Don't test \n(.x and \n(.y.
16507         * troff/input.c (token::next): Rename `escape_char' label to
16508         `handle_escape_char' and `normal_char' label to
16509         `handle_normal_char'.
16511 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
16513         * groff.c (main, synopsis, help): Support -a option.
16514         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
16515         to trflags while parsing options.
16517 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
16519         * troff/number.c (parse_term): With `m', `M' and `n' scale
16520         indicators, convert scale factor to hunits before scaling.
16522 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
16524         * lib/font.c (scale_round): Better test for overflow when n is
16525         negative.
16527 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
16529         * tbl/main.c (process_format): Add second argument of type
16530         options*. Change callers.  Allow opt->tab_char as well as '\t'
16531         between format items.
16533 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
16535         * macros/tmac.an (PD): With no arguments, make sure register PD is
16536         at least \n[.V].
16537         (TH): Call PD with no argument, instead of setting register PD
16538         directly.
16540 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
16542         * Version 1.00 released.
16544 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
16546         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
16548         * dvi/devdvi/DESC: Mount CW instead of CR.
16550         * dvi/tmac.dvi: Add definition of \(tm.
16552         * dvi/devdvi/texsy.map: Add lh, and rh.
16553         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
16554         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
16556         * dvi/devdvi/FontMakefile: Generate H from cmss10.
16557         * dvi/devdvi/Makefile: Install H.
16558         * dvi/devdvi/H: New file.
16560 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
16562         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
16563         be 0.
16565 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
16567         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
16569         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
16571         * macros/tmac.s (@EN): Handle the case where the equation is empty
16572         but the label is not.
16574 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
16576         * troff/groff.h: New warning category WARN_SPACE.
16577         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
16578         WARN_SPACE to warning_table.
16579         (interpolate_macro): Give a warning of type WARN_SPACE if the name
16580         is longer than two characters and is not defined, but the first
16581         two characters do make a defined name.
16583         * PROBLEMS: New file.
16585         * CHANGES: New file.
16586         * README-0.6, README-1.00: Deleted.
16588         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
16589         * xditview/devX75/Makefile: Make devX75-12.
16590         * xditview/devX100/Makefile: Make devX100-12.
16592         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
16593         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
16595 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
16597         * README-0.7: Rename to README-1.00.
16599         * macros/tmac.pic: New file.
16600         * macros/Makefile (install.nobin): Install tmac.pic.
16602 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
16604         * troff/env.c (hyphen_word): Correct the test for whether the
16605         token is a hyphen.  Reset npos to 0.
16607         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
16609 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
16611         * macros/tmac.s (ds*common-end): Call par*reset.
16612         (PE): Likewise.
16613         (par@reset-indent): Deleted.
16615         * macros/tmac.s (@IP): Divert the label.
16617 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
16619         * xditview/draw.c (setGC): Use a line width of .1m rather than
16620         .04m by default; round rather than truncate value.
16622         * tbl/table.c (class empty_entry): New class.
16623         (empty_entry::empty_entry, empty_entry::line_type): New functions.
16624         (table::add_entry): Represent empty entries by objects of type
16625         empty_entry.
16626         (table_entry::line_type): Return -1.
16627         (table::determine_row_type): Ignore entries with line_type 0.
16628         Treat type -1 as non-lines.
16630 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
16632         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
16633         macros/tmac.s: Rename \(-d to \(Sd.
16635 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
16637         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
16638         * xditview/libXdvi/DviChar.c: Likewise.
16639         * dvi/devdvi/texsy.map: Add `<<', `>>'.
16641 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
16643         * troff/div.c (top_level_diversion::begin_page): Call
16644         init_output() if the_output is 0.
16646 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
16648         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
16649         ESCAPE_c.
16650         (get_copy): Turn \E into ESCAPE_E.
16651         (token::process, asciify): Handle ESCAPE_E.
16653         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
16654         (RD): New macro.
16655         (DS): Implement `.DS R'.
16657 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
16659         * macros/tmac.s (FS): New macro.
16661         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
16663         * macros/tmac.s (cov*tl-init): Remove after first execution
16664         instead of aliasing to @nop.  Call top of page macro explicitly
16665         instead of setting trap; call @init first.  Set pg@top as top of
16666         page macro.
16667         (cov*auto-init): Deleted.  Set cov*tl-init instead of
16668         cov*auto-init as top of page trap. 
16669         (TL, LP): Do a break instead of calling cov*tl-init.
16670         (cov*print): With RP format but no TL, alias FS and FE to @FS and
16671         @FE; in this case also give a warning and always start another
16672         page. No need to set pg@top here.
16673         (cov*tl-init): Rename to cov*first-page-init.
16675         * macros/tmac.s (RP): Do `.pn 0'.
16676         (cov*tl-init): With RP format don't do `.pn 0'.
16678         * macros/tmac.s (pg@cs-top): Set no space mode.
16680         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
16681         (cov*ab-init): Alias TL, AU and AI to these.
16683 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
16685         * macros/tmac.s (@EQ): Move the space before the equation into @EN
16686         (@EN): Do nothing unless \n[dl] is > 0.
16688 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
16690         * pic/object.c (ellipse_object::radius): New function.
16692         * VERSION: Change version to 0.7.
16694         * tbl/table.c (block_entry::do_divert): Declare return type as
16695         void.
16696         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
16698 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
16700         * troff/column.c: New file.
16701         * troff/Makefile: Corresponding changes.
16703         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
16704         Friend of vunits.
16706         * troff/div.c (top_level_diversion::space): If the space causes
16707         the first-page transition and springs a trap, truncate the space
16708         to 0.
16710 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
16712         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
16713         the document.
16715         * pic/troff.c (troff_output::line_thickness,
16716         troff_output::set_fill): Do a horizontal motion to compensate for
16717         the width of the \D escape sequence.
16719 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
16721         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
16722         (not X75).
16724         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
16725         to printf.
16727         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
16728         Supply empty definition.
16729         (text_entry::simple_print, simple_text_entry::simple_print):
16730         Delete declarations.
16731         (table::add_entry): Represent empty entries by objects of type
16732         `simple_entry'.
16734 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
16736         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
16738         * tbl/table.c (left_text_entry::add_tab): New function.
16740         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
16741         initialize like LP.
16743 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
16745         * troff/env.c (environment::start_field): Give an error message if
16746         there is no next tab.
16748 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
16750         * troff/env.c (hyphenate): Skip initial elements with zero
16751         hyphenation code.
16753         * macros/tmac.s (par@init): Keep VS in points rather than units.
16755 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
16757         * pic/main.c (main): Implement `-c' option.
16758         * pic/output.h: Declare make_tpic_output().
16759         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
16760         protected.
16761         (tpic_output): New class.
16762         (tpic_output::tpic_output, tpic_output::set_pen_size,
16763         tpic_output::command, make_tpic_output): New functions.
16765 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
16767         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
16768         if they're not already defined.
16769         * tbl/table.c (init_output): Don't test \n(.g.
16771         * troff/input.c (do_if_request): Delete `g' condition. Recognize
16772         `d', `r' and `c' conditions even in compatibility mode.
16774 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
16776         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
16777         box.
16779 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
16781         * troff/env.h (environment::prev_line_interrupted): New member.
16782         (environment::get_prev_line_interrupted): New function.
16783         * troff/env.c (environment::newline): Set prev_line_interrupted.
16784         (environment::environment(const environment *),
16785         environment::environment(symbol)): Initialize
16786         prev_line_interrupted.
16787         * troff/input.c (process_input_stack): Don't give special
16788         treatment to space and newline at the beginning of the line if the
16789         previous line was interrupted.
16791 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
16793         * eqn/eqn.y: Disallow PRIME by itself.
16794         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
16795         PRIME.
16796         (def_table): Remove definition of '.  Define prime to be `.
16798         * eqn/eqn.y: Split off part of rule `script' into a new rule
16799         `nonsup'.
16801 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
16803         * macros/tmac.s ({, }): New string aliases.
16805 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
16807         * README-0.7: New file.
16809 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
16811         * macros/tmac.s: New file.
16812         * man/groff_ms.man: New file.
16813         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
16814         * Makefile.bd: Similarily.
16815         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
16816         definition of TMAC_S.
16817         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
16818         * macros/TODO: New file.
16820 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
16822         * troff/env.c (right_justify): New function.
16823         (init_env_requests): Bind this to request "rj".
16824         (center_lines): Set right_justify_lines to 0. If we get a bad
16825         integer, center 1 line.
16826         (environment::environment(symbol), environment::environment(const
16827         environment *)): Initialize right_justify_lines.
16828         (environment::get_right_justify_lines): New function.
16829         (init_env_requests): Bind this to number_register ".rj".
16831         * troff/env.c (environment::choose_breakpoint): Implement
16832         hyphenation_margin and hyphenation_space.
16833         (environment::get_hyphenation_space,
16834         environment::get_hyphenation_margin): New functions.
16835         (init_env_requests): Bind these to .hys and .hym.
16836         (hyphenation_space_request, hyphenation_margin_request): New
16837         functions
16838         (init_env_requests): Bind these to hys and hym.
16839         (environment::environment(symbol), environment::environment(const
16840         environment *)): Initialize hyphenation_margin and
16841         hyphenation_space.
16842         * troff/env.h: Corresponding changes to class environment.
16844 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
16846         * troff/div.c (blank_line): Always do a break.
16848         * eqn/box.c (do_text): Turn off escapes while appending text to
16849         string.
16851 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
16853         * troff/input.c (while_break_request, while_continue_request): New
16854         functions.
16855         (init_input_requests): Bind these to "break" and "continue".
16856         (while_depth, while_break_flag): New variables.
16857         (while_request): Update while_depth.  Break out of loop if
16858         while_break_flag is set.
16860 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
16862         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
16863         rather than 0.
16865 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
16867         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
16869         * stringify: New file.
16870         * Makefile (groff.o): Use stringify.
16872         * xditview/tmac.X: Remove definition of \(rn.
16873         * xditview/libXdvi/DviChar.c: Remove radicalex from
16874         Adobe_symbol_map.
16876 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
16878         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
16879         (alphabetic_block_entry::alphabetic_block_entry,
16880         alphabetic_block_entry::divert, alphabetic_block_entry::print):
16881         New functions.
16882         (block_entry::divert): Split off body into ...
16883         (block_entry::do_divert): If the block is alphabetic, subtract 2n
16884         from the line length; also update the span width to dl+2n, and the
16885         alphabetic span width to dl.
16887         * driver/input.c (do_file):  While reading argument to D command,
16888         when expanding buffer, multiply szp by sizeof(int) rather than 2
16889         in the argument to memcpy.
16891         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
16892         width of alphabetic columns.
16894 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
16896         * troff/node.c (lookup_family): Supply second argument to lookup.
16898         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
16899         search, return immediately if v is 0.
16901         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
16902         (troff_output::start_picture): Set this reg.
16903         (troff_output::end_picture): Remove this reg
16904         * eqn/box.c (box::extra_space): Don't produce `\x's if
16905         EQN_NO_EXTRA_SPACE_REG is defined.
16907         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
16908         * eqn/text.c (split_text): Map ' to \(fm when it's the first
16909         character.
16911 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
16913         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
16914         requests.
16916         * troff/div.c (top_level_diversion::top_level_diversion):
16917         Initialize page_number to 0.
16919 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
16921         * groff/troff (environment::environment(const environment *)):
16922         Initialize name to e->name, rather than "anonymous".
16924 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
16926         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
16927         requested_page.  Split middle part into ...
16928         (FindPage): New function.
16929         (SetValues): If we don't yet know the last page, and the requested
16930         page is greater than the current page, call FindPage.
16931         Update the font_map_string before doing this.
16933         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
16934         Translate \(lh and \(rh into left and right double arrows.
16936         * troff/node.c (class hyphen_inhibitor_node): New class.
16937         (hyphen_inhibitor_node::hyphen_inhibitor_node,
16938         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
16939         hyphen_inhibitor_node::type,
16940         hyphen_inhibitor_node::get_hyphenation_type): New functions.
16941         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
16942         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
16943         word.
16945 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
16947         * troff/node.h (dummy_node::get_hyphenation_type,
16948         transparent_dummy_node::get_hyphenation_type):  Declare them.
16949         * troff/node.c: (dummy_node::get_hyphenation_type,
16950         transparent_dummy_node::get_hyphenation_type): New functions.
16952 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
16954         * xditview/libXdvi/draw.c: If M_PI not defined after including
16955         math.h, then define it.
16957         * xditview/Makefile: Add definition of AR. Pass it to the submake
16958         in libXdvi.
16959         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
16961 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
16963         * troff/dictionary.h (object_dictionary::alias): Declare return
16964         value as int.
16965         * troff/dictionary.c (object_dictionary::alias): Return non-zero
16966         if the old name was defined.
16967         * troff/input.c (alias_macro): Give a warning if the old name was
16968         not defined.
16969         * troff/reg.c (alias_reg): Likewise.
16971 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
16973         * troff/input.c (token::next): Delete implementation of \R.
16975         * macros/Makefile: Strip comments from tmac.e while installing it.
16977         * troff/input.c: New variable `nroff_mode'.
16978         (troff_request, nroff_request): New functions.
16979         (init_input_requests): Bind `troff' and `nroff' to troff_request
16980         and nroff_request.
16981         (do_if_request): Compute results of t and n conditions from
16982         nroff_mode.
16984         * text/text.c (split_text): Fix typo in >=.
16986         * eqn/lex.c: Add definition of `==' to def_table.
16988 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
16990         * pic/tex.c (tex_output::start_picture): Change the definitions of
16991         \graph and \graphtemp so that they work properly with Plain TeX.
16993         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
16994         argument to `ar' is not less than the first.
16996         * pic/pic.y: Allow a comma between elements of the variable list
16997         in the argument to `reset'.
16999         * pic/object.c (arc_object::arc_object): Fix computation of
17000         radius.
17002         * eqn/main.c (main): Add exit(0).
17004 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
17006         * troff/div.c (begin_page): Test no_space_mode after doing the
17007         break, but still push the page ejector cookie before doing the
17008         break.  Also set the next page number after doing the break.
17009         
17010         * xditview/xditview.c (NewFile): Don't set the title and icon name
17011         if this is the first file and its name is `-'.
17012         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
17013         the X75 and X100 devices.
17014         (main): If a device has the XT_OPTION flag set and there's exactly
17015         one file argument, pass the driver -xrm and -title options to set
17016         the icon name and window title to the name of the file.
17018         * troff/env.c (environment_switch): If there was an argument but
17019         it wasn't a valid number or name, then pop an environment but
17020         don't give an error message on underflow.
17022         * troff/number.c (start_number): Correct spelling in error message.
17024         * troff/input.c (token::delimiter): Don't print an error message
17025         if err is false.
17027         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
17028         ParseDrawFunction if dw->display_enable is true.
17030 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
17032         * pic/pic.y: Parse text positioning like normal attributes, so as
17033         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
17034         positioning attribute.
17036 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
17038         * tbl/main.c (process_data): When in state START while reading a
17039         text block, don't change to state MIDDLE if c is a newline.
17041 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
17043         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
17044         so as to avoid shadowing parameter.
17046 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
17048         * tbl/table.c (trim_space): Deleted.
17049         (table::add_entry): Don't call trim_space.
17051 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
17053         * VERSION: Change version to 0.6.
17055         * troff/number.c (parse_expr): Make == work.
17057 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
17059         * man/grog.man: New file.
17060         * man/Makefile: Add grog.n to MAN1PAGES.
17061         * etc/grog.sh: New file.
17062         * etc/Makefile: Install grog.sh as grog.
17064 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
17066         * troff/input.c (token::next): Implement \E.
17068 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
17070         * xditview/tmac.X: Change font translations to match tmac.ps.
17072         * troff/input.c (non_empty_name_warning): Don't give a warning if
17073         `\{' terminates the name.
17075 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
17077         * ps/devps/symbol.diff: New file.
17078         * ps/devps/FontMakefile: Mention symbol.diff.
17080 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
17082         * troff/node.c (font_position): Use get_long_name to read the
17083         external_name.
17085         * troff/env.c (environment_switch): If we get a number that's < 0
17086         or >= NENVIRONMENTS, treat it like a name.
17087         Change NENVIRONMENTS to 10.
17089         * troff/groff.h: Remove definition of FONTS_MAX.
17090         * troff/node.h (class font_family): Make map a pointer instead of
17091         an array. Add a map_size member. Make it a class. Make nm const
17092         and public. Make invalidate_fontno a friend.
17093         * troff/node.c: Define font_table_size. Make font_info a pointer
17094         rather than an array.
17095         (class troff_output_file): Allocate font_position dynamically. Add
17096         nfont_positions member.
17097         (troff_output_file::set_font): Grow font_position if necessary.
17098         (troff_output_file::~troff_output_file): Delete font_position.
17099         (troff_output_file::troff_output_file): Allocate font_position.
17100         (grow_font_table): New function.
17101         (troff_output_file::really_begin_page,
17102         troff_output_file:really_copy_page): Use nfont_positions rather
17103         than FONTS_MAX.
17104         (mount_font_no_translate, mount_style): Call grow_font_table if
17105         necessary.
17106         (font_family::font_family): Allocate map.
17107         (font_family::make_definite): Grow map if necessary. Use
17108         font_table_size instead of FONTS_MAX.
17109         (font_family::~font_family): New function.
17110         (invalidate_fontno): Use font_family::map_size.
17111         (get_fontno, env_space_width, env_half_narrow_space_width,
17112         env_narrow_space_width, symbol_fotno, is_good_fontno,
17113         get_bold_fontno, make_glyph_node): Use font_table_size rather than
17114         FONTS_MAX.
17115         (next_available_font_position): Never return 0.
17117 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
17119         * ps/tmac.ps: Add font translations for compatibility with dpost.
17121 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
17123         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
17124         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
17125         Move definitions baseline_sep, shift_down, column_sep,
17126         matrix_side_sep into...
17127         * eqn/box.c: Add them to param_table.
17128         * eqn/pbox.h: Add declarations to pbox.h.
17130         * troff/input.c (set_string): Cast value to unsigned char *.
17132         * troff/token.h (process_input_stack): Declare it static before
17133         declaring it a friend.
17135 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
17137         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
17138         and bottom.
17139         * dvi/devdvi/EX: Regenerate.
17141         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
17142         transparent.
17144 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
17146         * eqn/lex.c: In defaults_table, make definition of `dot' call
17147         `dot_def'.  Don't explicitly make it roman.  Similarily for other
17148         accents.
17150         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
17151         argument.
17152         (for_input::get, for_input::peek): Use this.
17153         (do_for): Add by_is_multiplicative argument.
17154         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
17155         Change semantic value of optional_by to be a double plus a flag
17156         saying whethet the by clause is multiplicative.
17158         * eqn/lex.c (get_delimited_text): Remember location of start of
17159         definition.  Improve error handling when EOF is encountered.
17161         * lib/font.h: Rename handle_x_command to
17162         handle_unknown_font_command.
17163         * lib/font.c (font::load): Call handle_unknown_font_command for
17164         any unknown command in the font description file.  Don't call
17165         handle_x_command. Include the name of the command in the argv.
17166         Improve message for unknown command after kernpairs or charset
17167         command.
17168         * ps/ps.c (ps_font::handle_x_command): Rename to
17169         handle_unknown_font_command.  Remove message about `x download'
17170         command.  Give error message for wrong number of arguments.
17171         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
17172         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
17173         handle_unknown_font_command. Give an error message for wrong
17174         number of arguments.  Rename design_size to designsize.
17175         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
17176         checksum', `designsize' instead of `design_size'.
17178 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
17180         * eqn/*.[chy]: Change underaccent to uaccent.
17182         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
17183         give it the same precedence as ACCENT.
17184         * eqn/other.c (make_underaccent_box): New function.
17185         * eqn/box.h: Declare it.
17186         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
17187         def_table.
17189 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
17191         * pic/pic.y (reset_all): New function. Called in rule for RESET.
17192         (parse_init): Call reset_all.
17193         (define_variable): When defining scale reset only those
17194         pre-defined variables that are scaled.
17195         (defaults_table): Add `scale' as non-scaled value.
17197         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
17198         together with the text; allow any number of positioning words;
17199         allow center as a positioning word.
17201         * pic/object.c (output::compute_scale): Get picture maximum height
17202         and width from variables called maxpswid and maxpsht.
17203         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
17205 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
17207         * pic/object.c (object_spec::make_text): Multiply textht by number
17208         of text items.
17210         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
17211         occur.
17212         (do_sprintf): New function.
17213         (pic.gperf): Add sprintf token.
17214         (text, sprintf): New rules.
17216         * pic/pic.y: `rand()' with no arguments returns a random number
17217         in the range [0,1).
17219         * pic/pic.y: Allow a bare expression to be an attribute: change
17220         precedences to support this.  Change optional_ordinal rule to
17221         optional_ordinal_last to avoid reduce/reduce conflict.
17222         * pic/object.c (object_spec::object_spec): Initialize direction.
17224         * pic/pic.y: Implement ^ operator meaning exponentiation.
17226         * troff/node.h: Add default argument to mount_font.
17227         * troff/node.c (font_position): Read an optional third argument
17228         giving the external_name.
17229         (mount_font): Add optional argument giving the external_name.
17230         (mount_font_not_translate): Have additional argument giving
17231         external name.  Use this name to load the font.  Pass both names
17232         to font_info::font_info.
17233         (font_info::font_info): Have additional argument giving
17234         external_name.
17235         (class tfont): New member external_name.
17236         (font_info::get_tfont): Use external name to construct tfont_spec.
17238 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
17240         * eqn/lex.c (init_table): Add argument giving device.  Define
17241         name of device to be "1".
17242         (do_ifdef): Counts as true if the argument has been defined with
17243         `define'.
17244         * eqn/main.c (main): Call init_table with device argument. Make
17245         device local to main.
17246         * eqn/eqn.h: Change declaration of init_table. Remove declaration
17247         of device.
17249         * pic/lex.c (get_delimited): Allow text to be delimited by
17250         matching {}s.  Don't recognize ending delimiter within a string.
17252         * troff/input.c (get_delim_name): New function.
17253         (token::next): Implement \C.
17255         * lib/font.c (font::load): Grok ---.  Add an alias for each
17256         character based on its code.
17257         (font::get_code_width): Deleted.
17258         * lib/font.h (class font): Declare font::number_to_index().
17259         Remove declaration of font::get_code_width.
17260         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
17261         to indices of named characters.
17262         (font::number_to_index): New function.
17263         * troff/input.c (font::number_to_index): New function.
17264         (get_charinfo_by_number, charinfo::get_number,
17265         charinfo::set_number): New functions.
17266         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
17267         (token::process, token::description, token::get_char,
17268         token::add_to_node_list, token::operator==): Handle
17269         TOKEN_NUMBERED_CHAR.
17270         * troff/charinfo.h: Declare get_charinfo_by_number,
17271         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
17272         charinfo class.
17273         (charinfo::numbered): New function.
17274         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
17275         * troff/env.h (class environment): Remove declaration of ...
17276         * troff/env.c (environment::make_numbered_char_node): Deleted.
17277         * troff/node.c (make_numbered_node): Deleted.
17278         (class numbered_glyph_node): Remove.
17279         (troff_output_file::put_char_width, troff_output_file::put_char):
17280         Handle numbered chars.
17281         (troff_output_file::numbered_char): Removed.
17282         (tfont::get_code_width): Removed.
17283         (make_glyph_node): Don't search special fonts for numbered
17284         characters.
17285         * troff/node.h: Remove declaration of make_numbered_node.
17286         * driver/input.c (do_file): Handle N command.
17287         * driver/printer.h: Add declaration of ...
17288         * driver/printer.c (printer::set_numbered_char): New function.
17289         * dvi/tfmtodit.c (main): Generate unnamed entries.
17290         * ps/devps/afmtodit: Likewise.
17291         * xditview/xtotroff.c (MapFont): Likewise.
17292         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
17294         * tbl/main.c (process_format): If multiple widths are specified
17295         for a column but all the widths are the same, don't give an error
17296         message.
17298         * tbl/table.c (table::do_row): If the current row is all lines and
17299         the stuff doesn't contains a line, mark the top of the row after
17300         printing stuff before the row.  If the current row is not all
17301         lines and the stuff doesn't contain a line, don't unnecessarily
17302         mark the top of the row before printing the stuff.
17303         
17304 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
17306         * troff/groff.h: Remove MAX_PATH.
17307         * troff/input.c (open_file): Dynamically allocate space for the
17308         path.
17309         (open_mac_file, process_macro_file): Corresponding changes.
17311 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
17313         * troff/node.h (class output_file): Make copy_file pure.  Add
17314         vspace method ifdef COLUMN. Add is_printing method.
17315         * troff/node.c: Add class printing_reg. Add class
17316         real_output_file. Derive other output_file classes from
17317         real_output_file; in these classes rename begin_page to
17318         really_begin_page, print_line to really_print_line, copy_file to
17319         really_copy_file, transparent_char to really_transparent_char.
17320         Move output_file::flush to real_output_file. Add printing member
17321         to class output_file.
17322         * troff/div.h: Remove printing member from top_level_diversion.
17323         Add vspace member function to class diversion ifdef COLUMN. Add
17324         some declarations ifdef COLUMN.
17325         * troff/div.c (top_level_diversion::copy_file,
17326         top_level_diversion::transparent_output,
17327         top_level_diversion::output): Don't test printing member before
17328         output.
17329         * troff/input.c: Handle initial variable_space_request ifdef
17330         COLUMN.
17331         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
17332         but comment it out.
17334 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
17336         * troff/div.c (diversion::need): Make any space forced.  If we
17337         sprung a trap, set truncated_space to minus the distance to the
17338         trap and set needed_space to the amount that was needed.
17339         (top_level_diversion::space): A forced space turns no_space_mode
17340         off.
17341         (class constant_vunits_reg): New class.
17342         (init_div_requests): Implement number registers .trunc and .ne
17343         using constant_vunits_reg.
17344         (class truncated_space_reg): Deleted.   
17346         * troff/div.h: Don't have a no_space_mode member in diversion.
17347         Instead have it in top_level_diversion.
17348         * troff/div.c (diversion::diversion): Don't initialize
17349         no_space_mode.
17350         (top_level_diversion::top_level_diversion): Initialize
17351         no_space_mode.
17352         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
17353         (macro_diversion::output): Don't clear no_space_mode.
17355         * troff/input.c (diverted_space_node::reread): Don't call
17356         environment::do_break.  In fill mode, act like a blank line.
17357         (diverted_copy_file_node::reread): Don't call
17358         environment::do_break.
17360         * troff/div.c (blank_line): New function.
17361         * troff/div.h: Declare it.
17362         * troff/input.c (process_input_stack): Call it.
17364         * troff/div.c (truncated_space_reg::get_string): New function.
17365         (init_div_requests): Bind to .trunc.
17366         (space_request, top_level_diversion::space,
17367         top_level_diversion::output, macro_diversion::space,
17368         macro_diversion::output): Update truncated_space.
17369         (macro_diversion::output): Redo calculations when trap sprung.
17370         (macro_diversion::output, macro_diversion::space): No need for
17371         trap_flag.
17373         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
17374         after truncating post line spacing.
17376 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
17378         * ps/devps/prologue (MF, SF): Make them work even if setfont is
17379         defined as a procedure rather than as an operator.
17381 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
17383         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
17385 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
17387         * troff/div.c (top_level_diversion::output): Merge
17388         output_file::print_line and output_file::end_of_line member
17389         functions.
17390         * troff/div.h (class output_file):
17391         * troff/node.c (troff_output_file::print_line,
17392         troff_output_file::end_of_line, output_file::end_of_line,
17393         ascii_output_file::print_line, suppress_output_file::print_line):
17394         Corresponding changes.  
17396 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
17398         * troff/input.c (token::next): Don't give a warning for `\.'.
17400         * troff/env.c (environment::get_center_lines): New function.
17401         (init_env_requests): Bind number register .ce to it.
17402         * troff/env.h: Declare it.
17403         * tbl/table.c (table::init_output): Define reset macro to restore
17404         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
17405         Then do .ce 0.
17406         (table::print): If center option not given, then imply center
17407         option if SAVED_CENTER_REG > 0.
17409 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
17411         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
17412         Troff.ps from DOWNLOAD.
17413         
17414         * troff/Makefile: Change comment in DEFINES to avoid confusing
17415         System V make.
17417         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
17418         code.  Don't try to catch errors with stopped.
17419         (check_line_lengths): New function.
17420         * ps/devps/prologue (EXEC): Deleted.
17421         (EBEGIN, EEND): New procedures.
17423 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
17425         * troff/input.c: Include request.h before node.h.
17426         * troff/node.c: Likewise.
17427         * troff/env.c: Likewise.
17428         * troff/div.c: Likewise.
17429         * troff/node.h (class special_node): Store argument as a macro
17430         rather than a char *.
17431         * troff/node.c (special_node::special_node, special_node::copy):
17432         Grok this.
17433         (special_node::~special_node): Deleted.
17434         (special_node::tprint): Deleted.
17435         (special_node::tprint_start, special_node::tprint_end,
17436         special_node::tprint_char): New functions.
17437         (troff_output_file::special): Deleted.
17438         (troff_output_file::start_special, troff_output_file::end_special,
17439         troff_output_file::special_char): New functions.
17440         * troff/input.c (special_node::tprint): New function.
17441         (do_special): Use macro not char *.
17442         (do_transparent_macro): Deleted.
17443         (token::next): Don't call do_transparent_macro.
17445         * troff/input.c (token::next): Add 'Y' case.
17446         (do_transparent_macro): New function.
17447         * troff/node.c (troff_output_file::special): Handle newlines with
17448         argument using new continuation convention.
17449         * driver/input.c (get_string): Cope with continuation convention.
17450         (do_file): Don't call skip_line after calling get_string(1).
17451         * ps/ps.c (ps_printer::special, ps_printer::do_import,
17452         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
17453         arg.
17454         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
17455         with +.
17457 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
17459         * troff/input.c (asciify): By default, illegal input characters
17460         should return empty string.
17462         * troff/input.c (copy_file): Handle first page transition like title.
17463         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
17465         * troff/input.c (token::next): Improve error message for EOF after
17466         escape character.
17467         (input_char_description): New function.
17468         (get_char_for_escape_name): Use input_char_description.
17469         (token::next): Warn about unrecognized escape sequences.
17470         (warning_table): Add WARN_ESCAPE.
17471         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
17472         accordingly.
17474         * troff/token.h: Remove declaration of process_input_stack.
17476         * troff/input.c: Remove declaration of init_hyphen_requests.
17477         * troff/request.h: Correct spelling in declaration of same.
17479         * troff/input.c (token::next): Check whether escape_char is 0.
17481 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
17483         * groff.c (main, usage, help): Implement -P and -L options.
17484         * groff.sh: Likewise.
17486         * troff/input.c (token::next): Use some gotos to avoid code
17487         duplication.
17489         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
17490         Avoid calling symbol::symbol if name empty.
17492 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
17494         * troff/input.c (init_input_requests): Make \n(.x return the major
17495         version number and \n(.y return the minor version number.
17496         * troff/Makefile: Construct file majorminor.c defining
17497         major_version and minor_version automatically from ../VERSION.
17499         * troff/node.c (class glyph_node): Make operator new and operator
17500         delete public.
17501         (class ligature_node): Similarily.
17503         * troff/input.c (operator==(const macro &, const macro &)): New
17504         function.
17505         (non_interpreted_node::same): Use this.
17506         (string_iterator::string_iterator): Make macro& argument const.
17508         * troff/input.c (input_iterator::get): New function. Don't make
17509         asciify_macro or class non_interpreted_node friends of class
17510         input_iterator.
17511         (non_interpreted_node::interpret): Use input_iterator::get.
17512         (asciify_macro): Likewise.
17514         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
17515         ~non_interpreted_node): Deleted.
17516         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
17517         Deleted.
17519         * troff/symbol.h: Make all symbol member functions const.
17521         * lib/strtol.c: New file.
17522         * lib/Makefile: Add strtol.c.
17523         * Makefile: Define STRTOL as strtol.o to include strtol in
17524         libgroff.a.
17526 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
17528         * pic/troff.c (troff_output::simple_circle): Divide by scale.
17530 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
17532         * troff/input.c (do_special): Use input_level.
17534         * troff/token.h (TOKEN_BACKSPACE): New token.
17535         (token::backspace): New function.
17536         * troff/input.c (token::description, token::next, token::process):
17537         Grok TOKEN_BACKSPACE.
17538         (do_special): Turn TOKEN_BACKSPACE back into \b.
17540         * troff/token.h (token::leader): New function.
17541         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
17543         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
17545         * troff/input.c (do_special): Use token::description in error
17546         message.
17548 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
17550         * troff/input.c (decode_args): Combine quoted and
17551         quote_input_level variables. Make it a for (;;) loop.
17553         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
17555         * troff/input.c (read_long_escape_name): The test for whether to
17556         expand buffer was off by 1.
17557         (read_string): Similarily.
17559 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
17561         * troff/input.c: Use `const int' rather than `static const int'.
17563         * troff/div.h (diversion::copy_file): Declare as pure virtual.
17564         (macro_diversion::copy_file): New function.
17565         * troff/node.h: New class diverted_copy_file_node.
17566         * troff/node.c: Implement it.
17567         * troff/input.c (copy_file): Use diversion::copy_file. Handle
17568         first page transition by pushing a diverted_copy_file_node.
17569         * troff/input.c (token::next, process_input_stack): Don't handle
17570         COPY_FILE_REQUEST.
17572 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
17574         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
17575         whether space widths need adjusting.
17577         * troff/charinfo.h: Generalize translated_to_space to
17578         special_translation so as to allow translation to \&.
17579         * troff/input.c (translate): Allow translation to \&.
17580         (charinfo::*): Corresponding changes.
17581         * troff/node.c (make_node, node::add_char): Corresponding changes.
17582         * troff/node.h (dummy_node::dummy_node): Allow optional first
17583         argument.
17585         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
17586         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
17587         TOKEN_REQUEST.
17588         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
17589         TOKEN_REQUEST with an argument of TITLE_REQUEST.
17590         (token::process): Grok that.
17591         * troff/input.c (copy_file): Handle first page transition like
17592         title by pushing a COPY_FILE_REQUEST cookie.
17593         (token::next, process_input_stack): Grok that.
17594         * troff/node.h (output_file::copy_file): Add x and y arguments.
17595         Make it non-pure.
17596         * troff/div.c (top_level_diversion::copy_file): Supply them.
17597         * troff/node.c (troff_output_file::copy_file): Add x and y
17598         arguments; moveto specified position.  Invalidate font_position
17599         array after copying file.
17600         (output_file::copy_file): New function.
17601         (suppressed_output_file::copy_file, ascii_output::copy_file):
17602         Removed.
17603         * troff/input.c (transparent_file): New function.
17604         (init_input_requests): Bind to "trf".
17605         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
17606         (process_input_stack): Likewise.
17608         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
17610         * troff/node.c (init_node_requests): New number registers .kern
17611         pointing to global_kern_mode, and .lg pointing to
17612         global_ligature_mode.
17614         * troff/node.c (ligature): Don't change it if we get a bad
17615         integer.
17617         * troff/input.c (do_define_string): Don't strip tabs.
17619         * troff/input.c (asciify_macro): Make the string_iterator auto.
17621         * troff/node.c (init_font_requests): Rename to...
17622         (init_node_requests):
17623         * troff/node.h: Change declaration.
17624         * troff/input.c (main): Change call.
17626         * troff/input.c (node::reread, diverted_space_node::reread): New
17627         methods.
17628         (process_input_stack): Call reread rather than
17629         get_diverted_space_node.
17630         * troff/node.c (node::get_diverted_space_node,
17631         diverted_space_node::get_diverted_space_node): Removed.
17632         * troff/node.h: Declare reread methods instead of
17633         get_diverted_space_node methods. Make `n' member private.
17634         * troff/input.c: (token::diverted_space): Removed.
17635         * troff/token.h: Removed declaration.
17636         
17638 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
17640         * eqn/script.c (script_box::compute_metrics): Don't let
17641         SUP_RAISE_FORMAT become negative.
17643         * tbl/table.c (table::do_row): Entries that don't end in the
17644         this row shouldn't make the row non-blank.
17645         
17646         * tbl/table.c (table::make_columns_equal): Only set the width of
17647         columns which are marked as equal.
17648         
17649         * tbl/main.c (process_data): Before issuing excess data error,
17650         if last character was a newline unget it; then get it again after
17651         the error.  Also include the contents of the entry in the message.
17653         * groff.c: New file.
17654         * Makefile: Build groff from groff.c.  Make it possible to use
17655         either groff.sh or groff.c as groff.
17656         * Makefile.bd: Similarily.
17658 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
17660         * groff.sh: Don't delay expansion of $@ in assignment to files.
17661         Remove occurrences of \".
17663 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
17665         * all Makefiles: Simplify and rearrange.
17667         * Makefile: Handle fmod like malloc.
17668         * lib/Makefile: Similarily.
17669         * lib/fmod.c: Remove #ifdef NEED_FMOD.
17671         * Makefile: Rename OPTIMISE to OPTIMIZE.
17673         * groff.sh: Remove assignment to PATH.
17674         * Makefile: Remove SHPATH variable.
17675         * Makefile.bd: Similarily.
17677         * groff.sh: Add -V option to print the pipeline instead of
17678         executing it.
17680 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
17682         * lib/font.c: Split off file searching into ...
17683         * lib/fontfile.c: New file.
17685         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
17687 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
17689         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
17690         Also change misleading comment.
17691         (table::do_vspan): Change similarily misleading comment.
17692         * tbl/main.c (process_data): A format row with an explicit `s'
17693         uses up a data line, even if all the other columns are `_' or `='.
17695         * troff/input.c (token::description): Fix description of
17696         TOKEN_DUMMY and TOKEN_EMPTY.
17698 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
17700         * groff.sh: Fix description of -Z in help message.
17702 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
17704         * pic/object.c (object_spec::make_object): Allow negative and zero
17705         line thicknesses.
17706         * pic/pic.y: Give linethick default value of -1.0.
17707         * pic/troff.c (troff_output::troff_output): Initialize
17708         last_line_thickness to BAD_THICKNESS.
17709         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
17710         (troff_output::line_thickness): Canonicalize negative thicknesses
17711         to RELATIVE_THICKNESS.
17712         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
17713         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
17714         to -1.0.
17715         (tex_output::start_picture): Set pen_size to -2.0.
17717         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
17718         0, then use 0 linewidth.
17719         (ps_printer::ps_printer): Initialize line_thickness to -1.
17721         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
17723         * ps/devps/symbolchars: Remove `or'.
17724         * ps/tmac.ps: Implement \(or with .char.
17726         * ps/devps/symbolchars: Move most characters into textmap.
17727         * ps/devps/textmap: Add names for troff bracket characters. Remove
17728         ul, ru, br, bv.
17730         * ps/devps/TSymbol.ps: Removed.
17731         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
17732         * ps/tmac.ps: Do with .char what TSymbol did.
17733         * ps/devps/download: Remove TSymbol.
17735         * ps/devps/T: Removed.
17736         * ps/devps/Troff.ps: Removed.
17737         * ps/devps/Troff.afm: Removed.
17738         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
17739         * ps/devps/download: Remove Troff.
17740         * ps/devps/FontMakefile: Remove T target.
17741         * ps/devps/DESC-A4: Remove T from font list.
17742         * ps/devps/DESC-letter: Likewise.
17744         * troff/input.c (macro_to_node): Rename to ...
17745         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
17746         character's definition while processing it.
17747         * troff/node.c (node::add_char, make_node): Change calls to
17748         macro_to_node accordingly.
17750         * troff/input.c (token::next): Translate \_ to \(ul.
17752         * tty/devascii/R.proto: Add `|'.
17753         * tty/devlatin1/R.proto: Likewise.
17755 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
17757         * man: Put the version number in all the man pages.
17759 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
17761         * Makefile.bd: New file.
17762         * README.bd: New file.
17764         * VERSION: New file.
17765         * lib/version.c: Removed.
17766         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
17767         in clean target.
17769         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
17770         environment variable.
17772         * all Makefiles: Split install target into install.bin for
17773         binaries, and install.nobin for everything else.
17774         * Makefile: Add bindist target.
17776         * man/afmtodit.man: New file.
17777         * man/Makefile: Add afmtodit.n to MAN1PAGES.
17778         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
17779         in BINDIR.
17780         * ps/Makefile: Pass BINDIR to make install in devps.
17782         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
17783         the space character.
17785         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
17787 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
17789         * ps/ps.c: Redo font downloading.
17790         * ps/devps/download: New file.
17791         * ps/devps/Makefile: Add download to DEVICEFILES.
17792         * ps/devps/afmtodit: Remove -d option.
17793         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
17794         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
17795         * ps/devps/zapfdr.ps: Likewise.
17796         * ps/devps/TSymbol.ps: Likewise.
17798 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
17800         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
17802 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
17804         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
17805         then strip the first line if it starts with %.
17806         * Makefile: Add a comment about this.
17808         * man/tfmtodit.man: New file.
17809         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
17810         * dvi/Makefile: Install tfmtodit in BINDIR.
17812         * dvi/tfmtodit.c (usage): Mention -v option.
17814 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
17816         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
17817         * troff/node.c (troff_output_file::transparent_char): Don't call
17818         flush_tbuf.
17820         * eqn: Add check_tabs method to most box classes.
17821         * eqn/box.c (box::top_level): Call check_tabs.
17823         * eqn/script.c (script_box::output): Use \Z.
17824         * eqn/limit.c (limit_box::output): Use \Z.
17826         * eqn/box.c (box::top_level): Use itoa.
17828 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
17830         * dvi/tmac.dvi: Add font translations for CR, C, TT.
17831         * dvi/devdvi/Makefile: Don't make links to CW.
17833         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
17834         HX, HD.
17835         * xditview/tmac.X: Likewise.
17837         * troff/node.c: Add font translation feature.
17838         (get_font_translation): New function.
17839         (symbol_fontno): Translate the font name.
17840         (mount_font_no_translate): Rename to mount_font to this.
17841         (mount_font): New function.
17842         (font_family::make_definite): Call mount_font_no_translate instead
17843         of mount_font.
17844         (mount_style): Translate the font name.
17845         (font_translate): New function.
17846         (init_font_requests): Bind "ftr" to font_translate.
17848         * ps/devps/prologue (SN): New procedure that rounds a position to
17849         the nearest (pixel + (.25,.25)).
17850         (DL): Use SN to round endpoints.
17852         * lib/version.c: Changed version to 0.5.
17854 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
17856         * Makefile: Move definition of PAGE to the very beginning, so that
17857         people are less likely to miss it.
17859 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
17861         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
17863         * troff/env.c (environment::choose_breakpoint): Make `can't find
17864         breakpoint' error a warning of type WARN_BREAK.  Change message to
17865         `can't break line'.
17866         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
17867         code 040000.
17868         * troff/input.c: Add WARN_BREAK to warning_table.  Include
17869         WARN_BREAK in DEFAULT_WARNING_MASK.
17871         * tty/tmac.tty: Add definition of \(+-.
17873         * groff.sh: Remove `--' option to set command.
17875         * dvi/devdvi/texsy.map: Remove duplicate md entry.
17877         * ps/devps/eqnchar: Better definition of cdot using md.
17878         * dvi/devdvi/eqnchar:  Likewise.
17879         * xditview/devX100/eqnchar:  Likewise.
17880         * xditview/devX75/eqnchar: Likewise.
17881         * eqn/lex.c: Add definition of cdot.
17883 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
17885         * troff/input.c (get_optional_char): New function.
17886         * troff/input.c (set_page_character): Use get_optional_char(),
17887         rather than has_arg() and tok.get_char(1).
17888         * troff/env.c (tab_character, leader_character, hyphen_char,
17889         field_characters): Likewise.
17890         (margin_character): Likewise.  Also always delete the
17891         margin_character_node.
17893         * troff/input.c (token::get_char): Use token::description.
17895         * troff/input.c (has_arg): Don't skip over tab and \}.
17896         * troff/number.c (start_number): Give a warning if the number
17897         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
17899 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
17901         * troff/input.c (empty_name_warning, non_empty_name_warning): New
17902         functions.
17903         (get_name, get_long_name): Use these.  Rename `warn' argument to
17904         `required'.
17906         * troff/node.c (get_fontno): Test that the symbol is not null.
17908         * troff/input.c (token::description): New function.
17909         * troff/number.c (parse_term): Use token::description in `numeric
17910         expression expected' message.
17911         * troff/groff.h: Add WARN_MISSING.
17912         * troff/number.c (start_number): New function.
17913         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
17914         get_incr_number): Use start_number().
17915         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
17916         default.
17917         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
17918         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
17919         token::descripion.
17920         * troff/input.c (token::get_char): Use WARN_MISSING.
17921         * troff/input.c (token::delimiter): Use token::description.
17922         * troff/env.c (environment_switch): Back out Aug 3 change.
17923         * troff/input.c (has_arg): Skip over \}s and tabs but give a
17924         warning.
17925         * troff/token.h (token::tab): New function.
17926         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
17927         * troff/reg.c (alter_format): Likewise.
17928         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
17930 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
17932         * troff (most files): Redo warnings. Divide warnings into various
17933         categories; warning() has an additional first argument indicating
17934         the category it falls into.
17935         * troff/input.c (main): -w now takes an argument. New option -W.
17936         (enable_warning, disable_warning): New functions.
17938         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
17939         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
17941 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
17943         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
17944         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
17945         * xditview/devX75/eqnchar: Likewise.
17946         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
17948         * eqn/other.c: When bar or over applies to a single character
17949         don't produce an overline_box or an underline_box. Instead produce
17950         an accent_box or an underaccent_box, with the accent a line
17951         whose width is accent_width.  New classes underaccent_box,
17952         overline_char_box and underline_char_box.
17953         * eqn/box.h: Move overline_box, underline_box, accent_box class
17954         declarations into eqn/other.c. Add declarations of
17955         make_underline_box, make_overline_box, make_accent_box.
17956         * eqn/eqn.y: Call make_overline_box, make_underline_box
17957         make_accent_box instead of constructors.
17958         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
17960         * eqn/other.c: Add accent_box::~accent_box.
17961         * eqn/box.h: Declare it.
17963         * groff.sh: With -Tps, use eqn -D.
17965         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
17966         rather than \l.
17967         (underline_box::output): Similarily.
17968         (accent_box::output): Use \Z.
17970         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
17971         bit smaller.)
17973 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
17975         * troff/div.c (top_level_diversion::transparent_output(unsigned
17976         char)): Use asciify.
17977         * troff/input.c (asciify): Don't make it static.
17978         * troff/token.h (asciify): Declare it.
17979         
17980         * troff/input.c (get_name, get_long_name, token::get_char,
17981         token::delimiter): Add an extra default argument which says
17982         whether a warning should be printed.
17983         * troff: Pass a non-zero argument to one of these rather than
17984         printing a warning directly.
17986 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
17988         * troff: Consistently use symbol::is_null.
17990         * troff/dictionary.h: Move some inline functions into
17991         dictionary.c.
17993         * troff/request.h: Move inline functions into input.c.
17994         (request_or_macro::invoke): Make it pure.
17996         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
17997         * troff/input.c (init_input_requests): Use class constant_int_reg.
17998         (class compatible_reg): Deleted.
17999         * troff/div.c (init_div_requests): Use class constant_int_reg.
18000         (class last_post_line_extra_space_reg): Deleted.
18002         * troff/env.c (tab_character): Don't change the tab character if
18003         we get an invalid argument.
18004         (hyphen_char): Similarily.
18006         * troff/reg.c (alter_format): Check that nm is not null.
18008         * Makefile, groff.sh: Make it possible to customize the commands
18009         used for printing PostScript and dvi files. Also make it possible
18010         to customize the path used by groff.sh.
18012         * eqn/eqn.y: Make `left' right associative.
18014 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
18016         * pic/pic.h: Added definition of M_SQRT2 for those systems that
18017         don't have it.
18019         * pic/pic.h: Removed definition of INT_MAX.
18021         * troff/node.c (italic_corrected_node::vertical_extent): Omit
18022         `return'.
18024         * troff/input.c (token::next):  Handle \R like \n.
18026 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
18028         * ps/tmac.pc (PSPIC): Simplify.
18030         * troff/env.c (tab_stops::to_string):
18031         * pic/pic.y (object_type_name):
18032         * pic/troff.c (simple_output::line):
18033         * pic/tex.c (tex_output::spline):
18034         * pic/object.c (object_spec::make_object):
18035         * tbl/main.c (process_data):  Add cases to switch statements to
18036         avoid cfront warnings. (Some of these are spurious, since the
18037         switch already has a default case.)
18039         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
18040         `ps-'.  Don't test systat; instead check number of arguments to
18041         ps-bb.
18043 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
18045         * macros/tmac.e: Do not decrease the page offset by 0.5i.
18047         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
18048         Unlink the file as soon as we have opened it, so that we don't
18049         have to bother with signal handlers.
18050         (handler): Deleted.
18051         (fatal_error_exit): Deleted.
18052         (main): Don't call signal.
18054         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
18055         can be ignored.
18056         * dvi/devdvi/Makefile: Use the -k option with S and MI.
18058         * pic/pic.y:  If there is a label, or an nth construction before
18059         the first `.' in the argument to `with', ignore it and generate a
18060         warning.
18061         * pic/lex.c (lex_warning): New function.
18063         * tbl/table.c (table::init_output): In section keep and release
18064         macro, use 0 indent when diverting and the correct indent when
18065         rereading.
18067         * troff/input.c (interpolate_number_format): Do not interpolate
18068         anything if the number register is not defined.
18070         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
18072 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
18074         * ps/devps/prologue (PICTURE): Set components of graphics state to
18075         their default values.
18077         * ps/devps/text.enc: Add trademark
18078         * ps/devps/textmap: Add names for club, spade, heart, diamond,
18079         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
18080         * ps/devps/symbolchars: Add names for summation and product.
18082         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
18083         suchthat. Add pp. Add upper-case letters.
18085         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
18086         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
18087         Upsilon.
18089         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
18090         rA (right angle bracket) to ra.  Introduce names for double-headed
18091         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
18092         * ps/devps/textmap: Likewise for ps device.
18093         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
18094         * tty/devascii/R.proto: Rename lA to la and rA to ra.
18095         * tty/devascii/R.proto: Likewise.
18096         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
18097         \(uA, \(dA.
18098         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
18100         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
18102         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
18103         def_table.
18105 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
18107         * troff/div.c (when_request): Use symbol::is_null rather than
18108         has_arg to determine whether we have an argument.
18109         (change_trap): Remove the trap if we get an invalid number. Give
18110         an error if we don't get at least the macro name.
18111         (diversion_trap): Remove trap if we get an invalid name or number.
18113         * troff/env.c (environment_switch): Pop if we get an invalid
18114         symbol or numeric expression.
18116         * troff/input.c (do_define_macro):  If EOF is encoutered while
18117         defining the macro, do tok.next() before returning.
18119         * troff/token.h (has_arg): Move definition from here, to ...
18120         * troff/input.c (has_arg): ... here
18122         * troff/env.c (space_size): Do nothing if we get an invalid argument.
18123         * troff/input.c (shift): Likewise.
18125         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
18126         for `.c'.
18128         * pic/troff.c (troff_output::start_picture):  Comment out calls to
18129         `..'.
18131         * eqn/main.c (do_file): Subtract 1 from current_lineno if
18132         interpret_lf_args succeeds.
18134         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
18135         \\.  This avoids problems with \$N.
18137         * groff.sh: Pass -C to preprocessors.
18139         * lib/lf.c (interpret_lf_args):  Be more flexible.
18141         * tbl/main.c (main): Add -C option.
18142         (table_input::get): Do not recognize TE if followed by character
18143         other than a space or newline unless -C option given.
18144         (process_input_file): Likewise for lf, TS.
18145         (process_data): Likewise for lf in text blocks.
18147         * eqn/main.c (main): Add -C option.
18148         (do_file): Don't recognize EQ, EN or lf if followed by character
18149         other than space or newline unless -C option given.
18150         * eqn/lex.c (file_input::read_line): Similarily.
18151         * eqn/eqn.h: Declare compatible_flag.
18153         * etc/soelim.c (main): Add -C option.
18154         (interpret_lf_args): Use version in libgroff.
18155         (do_file):
18157         * pic/main.c (main): Add -C option, which sets compatible_flag.
18158         (top_input::get), (top_input::peek):  If -C option not given,
18159         do not recognize .PS/.PE/.PF/.lf if followed by a character
18160         other than space or newline.
18161         * pic/lex.c (file_input::read_line): Similarily.
18162         * pic/pic.h: Add declaration of compatible_flag.
18164 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
18166         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
18168         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
18169         derived from node.  New class space_char_hmotion_node.
18170         * troff/input.c (asciify_macro): New function.
18171         * troff/input.c (init_input_requests): New request `asciify' bound
18172         to asciify_macro.
18173         * macros/mm.diff: New file.
18174         * Makefile:  In install.mm target use `patch' to apply
18175         macros/mm.diff.
18177         * troff/input.c (macro::print_size): Just print the size in bytes.
18179         * troff/div.c (return_request): Correct the argument
18180         interpretation.
18182 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
18184         * troff/node.h (class composite_node): Add sz member.
18185         * troff/node.c (composite_node::size): Return sz.
18186         * troff/input.c (macro_to_node):  Use the initial size in the
18187         environment as the size of the composite_node.
18189         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
18190         default.
18192 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
18194         * troff/div.c (change_trap): If we get a bad number expression,
18195         do nothing.
18197 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
18199         * lib/matherr.c (matherr): Define this only if math.h defines
18200         TLOSS.
18202 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
18204         * troff/div.c (macro_diversion::distance_to_next_trap): If there
18205         no diversion trap return vunits(INT_MAX - vresolution).
18207 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
18209         * troff/input.c (do_zero_width): New implementation that doesn't
18210         use a temporary environment. Use instead:
18211         (token::add_to_node_list): New function.
18212         * troff/env.c (environment::get_prev_char_height),
18213         (environment::get_prev_char_height),
18214         (environment::get_prev_char_skew): New functions.
18215         (environment::get_prev_char): New function.
18216         (environment::get_prev_char_width): Change to use get_prev_char.
18217         (init_env_request): Implement new registers .cht, .cdp, .csk.
18218         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
18219         \Z being processed in a separate environment.
18221 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
18223         * tbl/table.c: Removed TABLE_BOTTOM_REG.
18225         * tbl/table.c (table::init_output): In the section release macro,
18226         give a warning message if the section won't fit on one page.
18228         * tbl/table.c (table::do_top): Emit table keep only if table is
18229         boxed.
18230         (table::do_bottom): Likewise for table release.
18231         (table::table), (table::add_vertical_rule):  Remove reference to
18232         keep member.
18233         * tbl/table.h: Remove keep member.
18235         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
18236         SECTION_RELEASE_MACRO, if there's not enough space before the next
18237         trap to output the diversion, call T# ourselves, set
18238         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
18239         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
18240         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
18241         vertical position and return to it before turning traps on again.
18242         
18243 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
18245         * troff/node.c, troff/node.h: In classes derived from node,
18246         replace prev_char_width method by last_char_node method.
18247         * troff/env.c (environment::get_prev_char_width): Use
18248         node::last_char_node rather than node::get_prev_char_width.
18250         * Makefile: Added comment about -fno-inline on 68030-based
18251         Apollos.
18253         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
18254         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
18255         expressions using sizeof to int.
18256         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
18258         * macros/tmac.e (TS):  Don't move @f back past the current
18259         position.
18261 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
18263         * ps/ps.c (main): Buffer stderr.
18264         * dvi/dvi.c (main): Likewise.
18265         * tty/tty.c (main): Likewise.
18267         * ps/ps.c (ps_printer::do_import): Improve error handling.
18269         * troff/input.c (abort_request): Use asciify.
18271         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
18272         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
18273         type of first argument int rather than char.  This works around a
18274         bug on the 68030 based Apollo using g++ 1.37.1.
18276         * tbl/table.h (class table): Add `keep' member.
18277         * tbl/table.c (table::table): Initialize `keep'.
18278         (table::add_vertical_rule): Set `keep' to 1.
18279         (table::do_top): Only emit table keep macro is `keep' is non-zero.
18280         (table::do_bottom): Likewise for table release macro.
18281         (table::do_row): Emit section keep macro even if the row is 0.
18283 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
18285         * macros/tmac.e (@C): Preserve the font family across the change
18286         in environments.
18288 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
18290         * lib/font.c: Initialize font::hor and font::vert to 1.
18291         (font::load_desc): Check the values of font::hor and font::vert.
18293         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
18294         be included in a C compilation.
18295         (iftoa): Use INT_DIGITS. Include lib.h.
18296         (itoa): Likewise.
18297         (as_string): Likewise.
18298         * tbl/table.c: Removed definition of INT_DIGITS.
18299         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
18300         * troff/input.c (input_input_requests): Likewise.
18301         * ps/ps.c (make_encoding_name): Likewise.
18302         (ps_printer::set_style): Likewise.
18303         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
18305         * tty/devascii/R.proto: Map fm onto '.
18306         * tty/devlatin1/R.proto: Likewise.
18308 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
18310         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
18311         argument to \w is at a different input level.
18313         * tbl/table.c (table::init_output): Define a new macro
18314         REPEATED_VPT_MACRO, like vpt but if in a diversion also
18315         transparently outputs itself.
18316         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
18317         vpt.
18318         (table::do_row): Likewise.
18320         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
18321         TRANSPARENT_STRING_NAME.
18323         * tbl/table.c (table::init_output): In the table release macro
18324         print an error message and don't produce any output if after
18325         issuing the need request the table still will not fit.  Also
18326         remove the diversion after bringing it back.
18328         * tbl/table.c (table::init_output): Define a new macro
18329         REPEATED_MARK_MACRO, like mk but if in a diversion also
18330         transparently outputs itself.
18331         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
18332         is necessary because .TH might not call .T#.
18333         (table::do_top): Likewise TOP_REG.
18334         (table::define_bottom_macro): If TOP_REG is no longer valid, use
18335         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
18336         table header might contain just the two top rules.
18338 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
18340         * troff/div.c: Implement new request `ptr' to print all traps.
18342         * troff/env.c (init_env_requests): Implement `.tabs' reg with
18343         init_string_env_reg.
18344         * troff/env.c (class tab_reg): Deleted.
18346 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
18348         * troff/div.c: New number register .pn returns the number of the
18349         next page as set by the pn request.
18351         * macros/tmac.an: Redid headers and footers.  Number each manual
18352         entry starting from 1 unless \nC is > 0, like Sun.  Added an
18353         optional 5th argument to .TH which specifies the manual name and
18354         appears in the center of the header.  Understand the X, P and D
18355         registers like Sun.
18357 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
18359         * troff/env.c (init_env_requests): New number register `.lt' to
18360         return the title length.
18362         * troff/node.h (class transparent_dummy_node): New class.
18363         * troff/node.c (class transparent_dummy_node): Provide member
18364         functions. 
18365         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
18366         than a dummy_node.
18368         * troff/input.c (token::next): New escape sequence \).
18369         * troff/input.c (get_copy): Recognize \) in copy mode.
18371         * troff/input.c (input_stack::clear): New function.
18372         * troff/input.c (exit_request): Use input_stack::clear.
18374         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
18375         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
18377         * troff/env.c: Move set_page_character to input.c.  Move
18378         page_character to input.c also.
18379         * troff/env.c (title): Split off the reading of the parts of the
18380         title into read_title_parts.
18381         * troff/input.c (read_title_parts): New function.  Check the
18382         input_level when testing whether a token matches the delimiter.
18384         * troff/input.c (exit_request): New function.
18385         * troff/input.c (init_input_requests): Bind ex request to
18386         exit_request rather than exit_groff.
18388         * troff/input.c (exit_groff): Call tok.next() before
18389         process_input_stack().
18391 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
18393         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
18394         * troff/env.h: ditto.
18395         * troff/input.c: ditto.
18397         * troff/env.c (environment::is_empty): Test pending_lines.
18399         * troff/env.c (environment::have_pending_lines): Removed.
18401         * troff/input.c: Add request to flush pending lines from the
18402         environment.
18404         * troff/env.c, troff/env.h: Add automatic widow control feature.
18406         * troff/input.c (exit_groff):  Do process_input_stack() after
18407         do_break() but before setting exit_flag to 2.
18409         * troff/input.c: Remove FLUSH_PENDING_LINES and
18410         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
18411         environment after END_TRAP token seen, but only if there aren't
18412         any more traps still unfinished.
18413         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
18415 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
18417         * troff/env.c: Rename the `retain_size' member of class
18418         pending_output_line to `no_fill'.
18420         * troff/env.c (title): When the line is output, make the
18421         retain_size argument !fill.
18423         * troff/node.h: Add `hyphenated' member to struct breakpoint.
18424         * troff/node.c (space_node::get_breakpoints),
18425         (dbreak_node::get_breakpoints):  Fill this in.
18426         * troff/env.c:  Allow specification of maximum number of
18427         consecutive hyphenated lines.
18429         * troff/env.c (environment::is_empty): Add test for !current_tab.
18431 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
18433         * troff/env.c (environment::hyphenate_line): Don't completely give
18434         up if the word is not to be hyphenated; continue so that breaks
18435         can be made at break_char_node's.
18437         * lib/lib.h: Only define INT_MAX if it's not already defined;
18438         undef INT_MIN if it's already defined.
18440         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
18442         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
18443         This works around a bug in AT&T C++ 2.0 used with an ANSI C
18444         compiler.
18445         
18446         * macros/tmac.an (an-header): Set no-space mode.
18448         * macros/tmac.an (TH): Start a new page if necessary.
18450         * Started using ChangeLog at version 0.4.
18452 Local Variables:
18453 version-control: never
18454 coding: latin-1
18455 End: