* MANIFEST, README, doc/webpage.ms: Updated.
[s-roff.git] / ChangeLog
blob8ef16e7c0618d5d35cc6e117201e3c57d9a60b2a
1 2005-05-27  Werner LEMBERG  <wl@gnu.org>
3         * MANIFEST, README, doc/webpage.ms: Updated.
5 2005-05-26  Werner LEMBERG  <wl@gnu.org>
7         * All affected files: Update postal address of FSF.
9 2005-05-25  Keith Marshall  <keith.d.marshall@ntlworld.com>
10             Bernd Warken
12         * README: More fixes.
14         * README.CVS: Removed.  Its contents is now part of the README file.
16 2005-05-21  Werner LEMBERG  <wl@gnu.org>
18         * README: Updated.  Based on a patch from Bernd Warken.
20 2005-05-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
22         Miscellaneous script portability enhancements.
24         * aclocal.m4: (GROFF_CSH_HACK): Add space in shebang prototype for
25         generated conftest.sh script, conforming to portability
26         recommendation in autoconf docs.
27         * configure: Likewise, for code generated by GROFF_CSH_HACK.
28         * contrib/eqn2graph/eqn2graph.sh: Add space in shebang, conforming
29         to portability recommendation in autoconf docs.
30         * contrib/gdiffmk/gdiffmk.sh: Likewise.
31         * contrib/gdiffmk/tests/runtests.in: Likewise.
32         * contrib/grap2graph/grap2graph.sh: Likewise.
33         * contrib/groffer/groffer.sh: Likewise.
34         * contrib/mm/mmroff.pl: Likewise.
35         * contrib/mom/momdoc/appendices.html: Likewise.
36         * contrib/pic2graph/pic2graph.sh: Likewise.
37         * font/devps/generate/afmname: Likewise.
38         * src/devices/xditview/ad2c: Likewise.
39         * src/preproc/eqn/neqn.sh: Likewise.
40         * src/roff/grog/grog.pl: Likewise.
41         * src/roff/grog/grog.sh: Likewise.
42         * src/roff/nroff/nroff.sh: Likewise.
43         * PROBLEMS: Likewise, in embedded script examples.
45 2005-05-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
47         Improve portability of `pdfroff' shell script.
49         * arch/misc/shdeps.sh: Add space in shebang, conforming to
50         portability guidelines in `autoconf' docs.
51         (PATH_SEARCH_SETUP): New substitution; emits PATH_SEPARATOR
52         initialization code.  Used by contrib/pdfmark/pdfroff.sh's
53         `searchpath' function.
55 2005-05-14  Werner LEMBERG  <wl@gnu.org>
57         * contrib/pic2graph/pic2graph.sh, contrib/graph2graph.sh,
58         contrib/eqn2graph.sh: Add option `-trim' to `convert' which is
59         needed for newer ImageMagick versions.
61 2005-05-07  Werner LEMBERG  <wl@gnu.org>
63         * src/preproc/refer/refer.man: Many small typographic fixes.
65 2005-05-06  Jeff Conrad  <jeff_conrad@msn.com>
67         * src/devices/grohtml/post-html.cpp (assert_state::~assert_state):
68         Use `char *' cast for a_delete.
70 2005-05-03  Werner LEMBERG  <wl@gnu.org>
72         * src/libs/libgroff/maxpathname.cpp: Include stdlib.h.
73         src/libs/libgroff/relocate.cpp: Use path_name_max everywhere.
75 2005-05-03  Jeff Conrad  <jeff_conrad@msn.com>
77         * src/devices/grohtml/post-html.cpp: Use casts to `char *' if using
78         `a_delete' for `const char *'.
80 2005-05-03  Werner LEMBERG  <wl@gnu.org>
82         * src/devices/grohtml/post-html.cpp,
83         src/devices/grohtml/html-table.cpp,
84         src/devices/grohtml/html-text.cpp, src/devices/grohtml/output.cpp:
85         Replace malloc/free with new/delete/a_delete.
87         * src/devices/grolbp/lbp.h: Remove superfluous semicolons which
88         are prohibited with ANSI C++.
89         (lbpprintf, vdmprintf): Remove useless `inline' keyword (since the
90         function has a variable number of arguments).
92         * src/preproc/grn/main.cpp (doinput): Change return type to `int'.
93         Simplify function and update all callers.
95 2005-05-02  Werner LEMBERG  <wl@gnu.org>
97         Undo getopt changes from 2005-04-30.  We don't want a dependency
98         on gettext.
100         * src/include/getopt_int.h: Removed.
102         * src/include/getopt.h, src/include/groff-getopt.h,
103         src/include/Makefile.sub, src/libs/libgroff/getopt.c,
104         src/libs/libgroff/getopt1.c: Revert to previous version.
107         * src/include/nonposix.h (access) [_MSC_VER]: New macro.
109         * src/include/posix.h (F_OK): Define conditionally.
111         * src/devices/grotty/tty.cpp (tty_printer::make_underline): Use
112         different variable name in second `for' loop to avoid MSVC compiler
113         problem.
115 2005-04-30  Werner LEMBERG  <wl@gnu.org>
117         AC_TYPE_SIGNAL from current autoconf can fail if CC=g++.
119         * aclocal.m4 (GROFF_TYPE_SIGNAL): New function.
120         * configure.ac: Use GROFF_TYPE_SIGNAL, not AC_TYPE_SIGNAL.
121         * configure, src/include/config.hin: Regenerated.
123         * PROBLEMS: Updated.
126         Update getopt files.
128         * src/include/getopt.h, src/libs/libgroff/getopt.c,
129         src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
131         * src/include/getopt_int.h: New file (from GNU libc CVS).
133         * src/include/groff-getopt.h: Updated.
135         * src/include/Makefile.sub (HDRS): Add getopt_int.h.
138         * font/devutf8/NOTES: Updated.
140 2005-04-28  Werner LEMBERG  <wl@gnu.org>
142         Bug fix for Win32 relocatable code.  Based on a patch from Keith
143         Marshall.
145         * src/libs/libgroff/maxpathname.cpp (PATH_MAX): Test for `_MAX_PATH'
146         also.
148         * src/libs/libgroff/relocate.c (DEBUG): Define it conditionally.
149         (searchpath) [_WIN32]: Use `_fullpath', not `realpath'.
151 2005-04-28  Keith Marshall  <keith.d.marshall@ntlworld.com>
153         Correct `gnu.eps' handling for build from distribution tarball, with
154         separate source and build directories.
156         * doc/Makefile.sub: (examples.stamp): New target; forces copy of
157         grnexmpl.g, groff.css and gnu.eps from source to build directory;
158         generate gnu.eps from gnu.xpm if required; touch examples.stamp.
159         (prepare_examples): Make it depend on examples.stamp.
160         (CLEANADD): Add examples.stamp.
162 2005-04-27  Werner LEMBERG  <wl@gnu.org>
164         Implement the rule
166           position: '(' position ')'
168         in pic.
170         * src/preproc/pic/pic.y (position, position_not_place): Handle
171         additional parentheses.
173         * doc/pic.ms: Updated.
175 2005-04-23  Larry Jones  <lawrence.jones@ugs.com>
177         * src/utils/xtotroff/xtotroff.c (MapFont): Fix variable declaration.
179 2005-04-18  Werner LEMBERG  <wl@gnu.org>
181         * src/roff/groff/pipeline.c: Don't include ctype.h.
183 2005-04-13  Werner LEMBERG  <wl@gnu.org>
185         * src/roff/nroff/nroff.man: Document option `-M'.
187 2005-04-13  Bruce Lilly  <blilly@erols.com>
189         * src/roff/nroff/nroff.sh: Make the script accept option `-M'.
191 2005-04-01  Kees Zeelenberg  <kzlg@users.sourceforge.net>
192             Werner LEMBERG  <wl@gnu.org>
194         Add binary relocation support for Windows platforms.
196         * src/include/Makefile.sub (defs.h): Add `INSTALLPATH'.
198         * src/include/relocate.h, src/libs/libgroff/relocate.cpp: New files.
200         * src/libs/libgroff/searchpath.cpp: Handle `relocate'.
201         (search_path::search_path, search_path::open_file_cautious): Use
202         `relocate'.
204         * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
205         src/include/Makefile.sub (HDRS): Updated.
207 2005-04-01  Werner LEMBERG  <wl@gnu.org>
209         * src/devices/grohtml/post-html.cpp: Don't use strdup/free but
210         strsave/a_delete.
212         * src/libs/libgroff/font.cpp: Replace strdup with strsave.
214         * src/libs/libgroff/maxfilename.cpp: Don't include limits.h since
215         lib.h already does it.
217         * src/libs/libgroff/maxpathname.cpp: New file, defining
218         path_name_max.
220         * src/include/lib.h: Add prototype for path_name_max.
222         * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS): Updated.
224         * src/include/nonposix.h (PATH_EXT): New macro.
226 2005-03-28  Werner LEMBERG  <wl@gnu.org>
228         Add support for double- and zero-width characters in grotty.
230         * src/devices/grotty/tty.cpp (glyph): Add width. 
231         (tty_printer::make_underline, tty_printer::make_bold,
232         tty_printer::add_character): Add parameter to pass character width.
233         Update all callers.
234         (tty_printer::end_page): Increase hpos by actual character width.
236         * font/devutf8/R.proto: Specify zero width for non-spacing
237         characters.
239         * tmac/unicode.tmac: Remove definitions for non-spacing entities.
241         * Makefile.comm (extraclean): Remove more junk files.
243 2005-03-25  Werner LEMBERG  <wl@gnu.org>
245         * configure.ac: Undo change from 2005-03-24.
246         * configure: Regenerated.
248 2005-03-24  Werner LEMBERG  <wl@gnu.org>
250         * Makefile.in (NOMAKEDIRS): Add contrib/gdiffmk/tests.
251         (dist): Search Makefile while descending into $(EXTRADIRS).
253         * doc/Makefile.in (.PHONY): Add.
254         (clean): Don't remove *.png and *.eps.
255         Don't handle *.gif.
256         (realclean): Remove *.png and *.eps.
257         (extraclean): Depend on distclean.
259         * configure.ac: Add copyright.
260         Handle contrib/pdfmark/Makefile.
262         * configure: Regenerated.
264 2005-03-18  Larry Kollar  <kollar@alltel.net>
266         Add numbered and definition lists to www.tmac.
268         * tmac/www.tmac (www-ul-level1, www-ul-level2, www-ul-level3,
269         www-ol-level1, www-ol-level2, www-ol-level3, www-ol-tmp): New
270         auxiliary string registers.
271         (www-ul-level, www-ol-level, www-dl-level, www-ol-ctr1, www-ol-ctr2,
272         www-ol-ctr3, www-dl-shift): New auxiliary number registers.
273         (www-level): Removed.
274         (www-level1, www-level2, www-level3): Initialize to empty.
275         (www-level0, www-level4, www-level5, www-level6, www-level7,
276         www-level8, www-level9): New string registers.
277         (www-push-li, www-pop-li): New macros.
278         (www-push-level, www-pop-level): Renamed to...
279         (www-push-ul-level, www-pop-ul-level): This.
280         Updated.
281         (www-push-ol-level, www-pop-ol-level): New macros.
282         (ULS, ULE): Updated.
283         (OLS, OLE, DLS, DLE): New user macros.
284         (LI): Removed.  It is aliased to one of...
285         (www-li-ul, www-li-ol, www-li-dl): New macros.
287         * tmac/groff_www.man: Document new macros.
289         * NEWS: Updated.
291 2005-03-18  Werner LEMBERG  <wl@gnu.org>
293         * tmac/doc-common (doc-operating-system-NetBSD-2.0.1,
294         doc-operating-system-NetBSD-2.0.2): New strings.
296         * tmac/groff_mdoc.man: Updated.
298 2005-03-17  Werner LEMBERG  <wl@gnu.org>
300         * doc/Makefile.sub (CLEANADD): Add `groff.html'.
302 2005-03-17  Werner LEMBERG  <wl@gnu.org>
304         * src/libs/libgroff/hypot.c: Renamed to...
305         * src/libs/libgroff/hypot.cpp: This.  Updated to C++.
307         * src/libs/libgroff/Makefile.sub (CCSRCS, CSRCS): Updated.
309         * src/include/lib.h: Updated.
311 2005-03-16  Werner LEMBERG  <wl@gnu.org>
313         Add workaround for broken hypot() on Interix.
315         * src/libs/libgroff/hypot.c: New wrapper file for `hypot'.
317         * src/libs/libgroff/Makefile.sub (OBJS): Add `hypot.o'.
318         (CSRCS): Add `hypot.c'.
320         * src/include/lib.h: Declare `groff_hypot'.
322         * src/preproc/grn/hgraph.cpp: Don't declare `hypot'.
323         Use `groff_hypot'.
325         * src/preproc/pic/pic.h: Don't declare `hypot'.
327         * src/preproc/pic/object.cpp (hypot): Use `groff_hypot'.
329 2005-03-15  Gaius Mulley  <gaius@glam.ac.uk>
331         * src/devices/grohtml/post-html.cpp
332         (html_printer::lookahead_for_tables): End .ce properly to avoid a
333         segfault.
335 2005-03-15  Werner LEMBERG  <wl@gnu.org>
337         makeinfo 4.8 doesn't produce good HTML output from groff.texinfo.
339         * doc/fixinfo.sh: New script to postprocess makeinfo's HTML output.
341         * doc/Makefile.in (.texinfo.html): Call fixinfo.sh.
343 2005-03-14  Werner LEMBERG  <wl@gnu.org>
345         Add Cyrillic support to devutf8 and devhtml.
347         * font/devutf8/R.proto, font/devhtml/R.proto: Add Cyrillic blocks.
349         * tmac/unicode.tmac: New file.
351         * tmac/tty.tmac: Include unicode.tmac if device is utf8.
353         * tmac/Makefile.sub (NORMALFILES): Add unicode.tmac.
355         * NEWS: Updated.
357 2005-03-02  Keith Marshall  <keith.d.marshall@ntlworld.com>
359         * src/libs/libdriver/printer.cpp (check_for_output_error): New
360         function.  It has been introduced to catch peculiar error contexts
361         on MS-Windows platforms.
363 2005-02-28  Werner LEMBERG  <wl@gnu.org>
365         * src/roff/troff/input.cpp (string_iterator::fill): Protect against
366         null pointer.
368         * tmac/papersize.tmac: Convert `paper' string contents to lowercase.
370         * configure: Regenerated.
372         * NEWS: Updated.
374 2005-02-28  Keith Marshall  <keith.d.marshall@ntlworld.com>
376         Integrate `pdfmark' into normal groff build system;
377         install macro `pdfmark' packages, build and install `pdfroff',
378         and PDF format documentation.
380         * Makefile.comm: Add PDFDOCDIR.
382         * Makefile.in: (MDEFINES) ALT_AWK_PROGS, ALT_GHOSTSCRIPT_PROGS,
383         pdfdocdir, make_pdfdoc, make_install_pdfdoc: New variables.
384         (unstall_dirs): Add pdfdocdir.
386         * aclocal.m4: (GROFF_GHOSTSCRIPT_PREFS): New function; support
387         `--with-alt-gs' option, set ALT_GHOSTSCRIPT_PROGS.
388         (GROFF_GHOSTSCRIPT_PATH): Support `--with-gs' option, force use of
389         GROFF_GHOSTSCRIPT_PREFS, set GHOSTSCRIPT.
390         (GROFF_HTML_PROGRAMS): Force use of GROFF_GHOSTSCRIPT_PATH; tidy up.
391         (GROFF_AWK_PREFS): New function; support `--with-alt-awk' option,
392         set ALT_AWK_PROGS.
393         (GROFF_AWK_PATH): New function; support `--with-awk' option, force
394         use of GROFF_AWK_PREFS.
395         (GROFF_PDFDOC_PROGRAMS): New function; force use of GROFF_AWK_PATH
396         and GROFF_GHOSTSCRIPT_PATH, set make_pdfdoc and make_install_pdfdoc.
398         * configure.ac: Add AC_PREREQ(2.59), GROFF_PDFDOC_PROGRAMS.
399         Remove GROFF_GHOSTSCRIPT_PATH, (forced by GROFF_PDFDOC_PROGRAMS, and
400         also by modified GROFF_HTML_PROGRAMS).
402 2005-02-27  Gaius Mulley  <gaius@glam.ac.uk>
404         * src/devices/grohtml/html-text.cpp (html_text::do_pre): Preserve
405         paragraph spacing.
406         (html_text::done_para): Unset `start_space'.
407         (html_text::remove_para_align): Call `retrieve_para_space' for the
408         spacing.
410         * src/devices/grohtml/post-html.cpp (html_printer::emit_raw): Unset
411         `seen_space'.
412         (html_printer::do_check_center): Emit vertical space if necessary.
414         * src/roff/troff/env.cpp (environment_switch): Preserve
415         `seen_space', `seen_eol', and `suppress_next_eol' while switching
416         environments.
418         * src/roff/troff/node.cpp (suppress_node::suppress_node): Set
419         `is_special'.
421 2005-02-20  Werner LEMBERG  <wl@gnu.org>
423         * src/preproc/eqn/eqn.man, NEWS: Document various extensions of
424         eqn.
426 2005-02-17  Werner LEMBERG  <wl@gnu.org>
428         * doc/pic.ms, man/groff.man: Fix typos.
430         * doc/groff.texinfo: Fix typos.
431         (\LEmacro): Get proper mathematical spacing.
433 2005-02-16  Werner LEMBERG  <wl@gnu.org>
435         * aclocal.m4 (GROFF_APPRESDIR_CHECK): Improve warning message.
436         * configure: Regenerated with autoconf 2.59b.
438 2005-02-16  Gaius Mulley  <gaius@glam.ac.uk>
440         * src/devices/grohtml/post-html.cpp (html_printer::is_line_start,
441         html_printer::start_font): Fix handling of preformatted text.
443 2005-02-15  Gaius Mulley  <gaius@glam.ac.uk>
445         These patches modify the indentation implementation to use `<p
446         style=margin-left: n%>'.  Many thanks to Peter and Larry for
447         suggesting this solution.  Grohtml only uses tables for `.IP' and
448         related tags when the first operand has a short width.
450         Similarly, they modify all vertical space code.  By default, grohtml
451         sets up a style sheet which uses no vertical space between `table',
452         `pre', and `p' tags.  It forces spaces when it needs them using
453         `style="margin-top: 1em"'.
455         * src/devices/grohtml/html-table.cpp: Include `html-text.h'.
456         (html_table::emit_table_header, html_table::emit_new_row):
457         Rewritten.
458         (html_table::set_space): New function.
459         (html_indent::html_indent): Don't set `is_used'.
460         (html_indent::begin): Rewritten.
461         (html_indent::end): Remove code in function.
463         * src/devices/grohtml/html-table.h: Updated.
464         (html_table): Make `out' public.
466         * src/devices/grohtml/html-text.cpp (html_text::html_text):
467         Initialize `start_space' with FALSE.
468         (html_text::end_tag) <P_TAG, PRE_TAG>: Updated.
469         (html_text::issue_tag): Add argument to handle space style.
470         (html_text::start_tag) <P_TAG, PRE_TAG>: Updated.
471         (html_text::flush_text): Don't set `start_space'.
472         (html_text::push_para): Don't set `p->really_issued'.
473         (html_text::do_emittext): Updated.
474         (html_text::do_para): Add paremeter to handle space.
475         Update all callers.
476         (html_text::retrieve_para_space): New function.
478         * src/devices/grohtml/html-text.h (STYLE_VERTICAL_SPACE): New macro.
479         (tag_definition): Remove `really_issued'.
480         (html_text): Updated.
482         * src/devices/grohtml/post-html.cpp (html_printer): Add variables
483         `current_column' and `row_space'.
484         Update constructor.
485         (html_printer::emit_raw, html_printer::write_header,
486         html_printer::do_indent, html_printer::do_check_center,
487         html_printer::do_tab_ts): Handle vertical space.
488         (html_printer:do_tab_te, html_printer::do_end_para): Call
489         `remove_para_space'.
490         (html_printer::do_col): Rewritten.
491         (html_printer::flush_globs): Remove debugging code.
492         (html_printer::is_line_start): New function.
493         (html_printer::start_font): Use `is_line_start'.
494         (html_printer::writeHeadMetaStyle): New function.
495         (html_printer::do_file_components, html_printer::~html_printer):
496         Call `writeHeadMetaStyle'.
498         * tmac/www.tmac (www-handle-percent): New macro.
499         (MPIMG): Handle percent values for width and height parameters.
500         (DC): Updated.
502         * tmac/groff_www.man: Updated.
504 2005-02-14  Werner LEMBERG  <wl@gnu.org>
506         * src/utils/afmtodit/afmtodit.pl: Remove an incorrect `my' from
507         $psname and $italic_angle.
508         Immediately restart file input loops if `split' returns an empty
509         array.
511 2005-02-13  Michail Vidiassov  <master@iaas.msu.ru>
512             Werner LEMBERG  <wl@gnu.org>
514         Update afmtodit to better support Unicode (Michail).
515         Update afmtodit to use Perl 5 syntax (Werner).
517         * src/utils/afmtodit/afmtodit.pl: Don't use `getopts.pl' but
518         `Getopts::Std'.
519         Decorate variables with `my' where necessary.
520         Use `defined' where necessary to avoid warnings.
521         Don't use `do' for subroutine calls.
522         Other minor syntax updates.
523         Check for both `uXXXX[X[X]]' and `uniXXXX'.
524         Handle glyph variants properly.
525         (%unicode_decomposed, %AGL_to_unicode): Don't use `u' prefix in
526         strings.
528         * src/utils/afmtodit/afmtodit.man: Updated.
530 2005-02-13  Werner LEMBERG  <wl@gnu.org>
532         Make groff.texinfo work with texinfo 4.8.
534         * doc/groff.texinfo (@Var): Use @r and @slanted.
535         (@defdummy, @Def*): Use @c to avoid empty lines.
536         (\angles): Replaced with...
537         (\Langlemacro, \Ranglemacro): New TeX macros.
538         (@Langlemacro, @Ranglemacro): New variables defined with @set.
539         (@angles): Use @Langlemacro and @Ranglemacro.
540         (\LE): Replaced with...
541         (\LEmacro): New TeX macro.
542         (@LEmacro): New variable defined with @set.
543         (@LE): Use @LEmacro.
544         (@Lparenmacro, @Rparenmacro, @Lbrackmacro, @Rbrackmacro): New
545         variables defined with @set.
546         (@lparen, @rparen, @lbrack, @rbrack): Replaced with...
547         (@Lparen, @Rparen, @Lbrack, @Rbrack): New macros.
548         Update all callers.
550         Other minor updates.
552         * doc/texinfo.tex: Update to texinfo version 4.8.
554         * README.CVS: Updated.
556 2005-02-09  Alejandro López-Valencia <palopez@etb.net.co> (tiny change)
558         * doc/groff.texinfo (ms Document Control Registers): Document `HY'
559         and `FAM' registers.
561 2005-02-05  Werner LEMBERG  <wl@gnu.org>
563         * tmac/groff_mdoc.man, tmac/doc-common, tmac/doc-ditroff,
564         tmac/doc-nroff, tmac/doc-old.tmac, tmac/doc-syms, tmac/doc.tmac:
565         Update BSD license.
567 2005-02-01  Werner LEMBERG  <wl@gnu.org>
569         * src/roff/groff/groff.man: Add information about paper size.
571 2005-01-25  Werner LEMBERG  <wl@gnu.org>
573         * src/roff/nroff/nroff.sh: Handle `*.ISO8859-1' in locale.  From
574         NetBSD bin/29114.
576 2005-01-22  Ruslan Ermilov  <ru@FreeBSD.org>
578         * tmac/doc.tmac (Sm): Improved.  It didn't work properly in many
579         cases.
580         (Re): Emit a warning if called without `.Rs'.
581         (doc-finish-reference): Use parameter for decreasing
582         `doc-reference-count'.
583         (doc-print-reference): Pass specific count parameters to
584         `doc-finish-reference'.
586 2005-01-21  Werner LEMBERG  <wl@gnu.org>
588         * src/libs/libdriver/input.cpp (delete_current_env, do_file):
589         Reset pointers to zero after deallocation.  This fixes a crash
590         if a driver is called with multiple input files.  Reported by
591         Ken Chilton <ken@chiltonfamily.org>.
593         * src/devices/grops/grops.man: Add more info on DSC.
595 2005-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
597         * tmac/doc-common (Dd), tmac/doc-ditroff (gX, doc-setup-header):
598         Remove dead code.
600 2005-01-17  Werner LEMBERG  <wl@gnu.org>
602         * src/roff/troff/div.cpp (top_level_diversion::space): Protect
603         against division by zero.
605 2005-01-13  Ruslan Ermilov  <ru@FreeBSD.org>
607         * tmac/doc.tmac (Ef): Restore doc-curr-font and doc-curr-size.
609 2004-12-19  Werner LEMBERG  <wl@gnu.org>
611         * install-sh: New version; taken from texinfo CVS.
613 2004-12-17  Werner LEMBERG  <wl@gnu.org>
615         * tmac/devtag.tmac: Protect against loading twice.
616         Protect agains compatibility mode.
617         * tmac/www.tmac: Protect against loading twice.
618         Load `devtag.tmac' before switching off compatibility mode.
619         * tmac/an-old.tmac, tmac/s.tmac: Load `devtag.tmac'.
621 2004-12-16  Mike Bianchi  <mbianchi@Foveal.com>
623         * configure.ac: Produce `contrib/gdiffmk/tests/runtests'.
624         * configure: Updated.
626 2004-12-15  Thomas Klausner  <wiz@netbsd.org>
628         * tmac/doc-syms, tmac/groff_mdoc.man: Add `libpam' library.
630 2004-12-15  Werner LEMBERG  <wl@gnu.org>
632         Make `test-groff' work again -- previously, wrong paths have been
633         used.  Additionally, it can now be called from anywhere.
635         * test-groff.in: Don't test for groff binary.  This is no longer
636         necessary since the proper paths are determined by `configure'.
637         (EXEEXT): Removed.  No longer used.
638         (srcdir, builddir): Use values provided by the configure script.
639         (XENVIRONMENT): Updated.
641         * INSTALL: Updated.
643 2004-12-14  Gaius Mulley  <gaius@glam.ac.uk>
645         Make .tag and .taga work for all devices (but only grohtml actually
646         handles them).
648         * src/devices/grohtml/post-html.cpp: s/html-tag/devtag/.
649         (text_glob::is_br, page::add_tag, html_printer::troff_tag,
650         html_printer::handle_assertion): Don't use hard-coded string
651         lengths.
652         (html_printer::lookahead_for_table): Reset `tbl' properly if
653         necessary.
654         (html_printer::devtag): New function, handling `devtag'.
655         (html_printer::special): Don't handle `html-tag'.
657         * src/include/printer.h, src/libs/libdriver/printer.cpp
658         (printer::devtag): New virtual function.
660         * src/libs/libdriver/input.cpp (parse_x_command) <'X'>: Handle
661         `devtag'.
663         * src/roff/troff/env.cpp, src/roff/troff/mtsm.cpp,
664         src/roff/troff/node.cpp: s/html-tag/devtag/.
666         * src/roff/troff/input.cpp (tag, taga): Always call
667         curenv->add_node.
669         * tmac/an-old.tmac, tmac/s.tmac, tmac/troffrc-end: Use DEVTAG*
670         macros instead of HTML-TAG*.
672         * tmac/devtag.tmac: New file, defining the DEVTAG-* macros.
674         * tmac/www.tmac: Load devtag.tmac.
675         Replace HTML-TAG* macros with DEVTAG* macros.
676         (HTML, HTML-NS): Changed definitions.
677         (URL): Use HTML-NS.
678         (HTML-TAG, HTML-TAG-NS, HTML-TAG-NEXT): Removed.
680         * tmac/Makefile.sub (NORMALFILES): Add devtag.tmac.
682 2004-12-10  Werner LEMBERG  <wl@gnu.org>
684         Import Mike's `gdiffmk' package.
686         * contrib/gdiffmk/*: New files.
687         * Makefile.in (OTHERDIRS): Add contrib/gdiffmk.
688         * NEWS: Updated.
690 2004-12-08  Werner LEMBERG  <wl@gnu.org>
692         Import Keith's `pdfmark' package.  Integration is very preliminary.
694         * contrib/pdfmark/*: New files.
695         * Makefile.in (OTHERDIRS): Add contrib/pdfmark.
696         * NEWS: Updated.
698 2004-12-07  Gaius Mulley  <gaius@glam.ac.uk>
700         Fix a bug with title handling in HTML.
702         * src/devices/grohtml/post-html.cpp (text_glob::is_nf,
703         text_glob::is_fi, text_glob::is_ce): Use strlen to compute string
704         length.
705         (html_printer::handle_tag_within_title): New function.
706         (html_printer::do_title): Use it.
708         * tmac/s.tmac (TL): Don't set `need_eo_tl'.
709         (cov*tl-au-print): Emit `.eo.tl' tag.
711 2004-12-05  Alejandro López-Valencia  <dradul@etb.net.co>
713         * man/groff_char.man: Minor imrovements.
715 2004-12-04  Werner LEMBERG  <wl@gnu.org>
717         * src/preproc/eqn/eqn.man: Revised.
719 2004-11-25  Werner LEMBERG  <wl@gnu.org>
721         * src/utils/xtotroff/xtotroff.c: Reformat to be similar to other
722         groff source files.
723         Include config.h.
724         Include limits.h.
725         Remove X_NOT_STDC_ENV conditional.
726         (Version_string, program_name): New global variables.
727         (groff_flag): Removed.
728         (MapFont): Updated.
729         (usage): Take a stream as argument.
730         Use `program_name'.
731         Update all callers.
732         (main): Add `long_options' array for `--help' and `--version'.
733         Make `-g' a dummy option.
734         Handle `-v' and unknown options.
735         Remove unused `position' variable.
737         * src/utils/xtotroff/Makefile.sub (MAN1): Define.
738         (XLIBS): Add LIBGROFF.
740         * src/utils/xtotroff/xtotroff.man, src/utils/xtotroff/Makefile.in:
741         New files.
743         * src/devices/xditview/Dvi.c (default_font_map): Split into three
744         parts to avoid compiler warning.
745         (resources): Don't initialize with `default_font_map'.
746         (ClassInitialize): Initialize first element of `resources'.
748         * src/devices/xditview/Makefile.sub (devdir, xtotroff, DPIS, fonts):
749         Removed.
751         * src/utils/lkbib/lkbib.man, src/utils/lookbib/lookbib.man,
752         src/utils/pfbtops/pfbtops.man: Revised, updated.
754         * configure.ac: Generate src/utils/xtotroff/Makefile.
755         * configure: Regenerated.
757 2004-11-24  Werner LEMBERG  <wl@gnu.org>
759         First fixes to get produce HTML.
761         * src/devices/grohtml/post-html.cpp (generate_img_src): Add `alt'
762         attribute.
764         * tmac/www.tmac (IMG, PIMG, MPIMG): Add `alt' attribute.
765         (HR, LI): Use `HTML</p>', not `HTML'.
767         * doc/webpage.ms: Minor updates.
769 2004-11-23  Larry Kollar  <kollar@alltel.net>
771         Add option -S grohtml to determine the file split level.
773         * src/devices/grohtml/post-html.cpp (split_level): New global
774         variable.
775         (html_header::determine_header_level): Use split_level.
776         (main): Handle `-S' command line option.
777         Sort options.
779         * src/preproc/html/pre-html.cpp (scanArguments): Updated.
781         * src/devices/grohtml/grohtml.man: Document it.
782         Sort options.
784         * NEWS: Document it.
786 2004-11-23  Y T  <doarhop@hotmail.com>
788         * tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
789         the volume and number refer entries.
791 2004-11-22  Werner LEMBERG  <wl@gnu.org>
793         * src/devices/grohtml/html-table.cpp
794         (html_table::emit_table_header): Don't emit `cols' attribute which
795         doesn't exist in HTML 4.0 and is thus invalid.
797         * NEWS: More minor fixes and updates.
799 2004-11-18  Werner LEMBERG  <wl@gnu.org>
801         * tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
802         (HTML</p>): Minor clean-up.
804         * tmac/groff_www.man: Updated.
806         * src/devices/grohtml/grohtml.man: Revised and updated.
808         * NEWS: Updated.
810 2004-11-18  Gaius Mulley  <gaius@glam.ac.uk>
812         * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
813         Fix space insertion.
814         (html_printer::do_links): Fix rules generation around automatic
815         heading links.
817         * tmac/www.tmac (LK): Use HTML-TAG-NS.
818         (HR): Simplify.
819         No longer emit empty line for non-HTML devices.
821 2004-11-17  Werner LEMBERG  <wl@gnu.org>
823         * doc/Makefile.in (prepare_examples, webpage.html): Handle
824         `groff.css'.
826         * doc/Makefile.sub (EXAMPLEFILES, CLEANNOTSRCDIRADD,
827         prepare_examples, webpage.html): Handle `groff.css'.
829 2004-11-15  Werner LEMBERG  <wl@gnu.org>
831         * NEWS, README, doc/webpage.ms: Updated.
833         * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
835 2004-10-30  Gaius Mulley  <gaius@glam.ac.uk>
837         * src/include/printer.h (printer): Remove virtual function
838         `round_width'.
839         Update all source files.
841         * src/devices/grohtml/post-html.cpp (html_printer): New member
842         function `round_width'.
844 2004-10-20  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
846         * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
847         column key letter suffix.
849 2004-10-14  Werner LEMBERG  <wl@gnu.org>
851         * Makefile.in (check): Depend on `site.exp' and `docheck'.
852         (docheck): Run dejagnu's `runtest' if it exists.
853         (site.exp): Create dejagnu configuration file.
855         * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
857 2004-10-13  Werner LEMBERG  <wl@gnu.org>
859         * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
860         src/devices/grohtml/post-html.cpp (make_val,
861         html_printer::handle_state_assertion): Fix compiler warnings.
863         * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
864         (diversion::diversion): Fix order of initializers.
866         * src/roff/troff/div.h: Don't include `mtsm.h'.
868         * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
869         (environment::environment): Fix order of initializers.
870         (environment::make_tag, environment::construct_format_state): Fix
871         compiler warnings.
873         * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
874         (input_iterator::input_iterator, macro::macro): Fix order of
875         initializers.
877         * src/roff/troff/mtsm.cpp: Include only necessary header files.
878         (state_set::add, state_set::val): Fix compiler warnings.
880         * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
881         (bool_value_state, int_value_state, units_value_state,
882         string_value_state): Remove comma after last element which causes
883         an error with g++ 3.3.3.
885         * src/roff/troff/node.cpp: Include `stringclass.h'.
886         (hline_node::hline_node, vline_node::vline_node,
887         space_char_hmotion_node, left_italic_corrected_node): Fix compiler
888         warnings.
889         (zero_width_node::zero_width_node): Fix order of initializers.
891         * src/roff/troff/node.h: Don't include `mtsm.h'.
892         (hmotion_node): Fix compiler warnings.
894         * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
896 2004-10-12  Gaius Mulley  <gaius@glam.ac.uk>
898         * doc/groff.css: New file.
900         * doc/webpage.ms: Use `groff.css'.
901         Other small fixes.
903         * tmac/an-old.tmac (need_eo_h): New number register.
904         (TH): Emit `.eo.tl' tag after title.
905         (SH): Set `need_eo_h'.
906         (an-trap): Handle `need_eo_h'.
907         (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
909         * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
910         (TL): Always start diversion.
911         Updated.
912         (@AI): Always call `par@reset'.
913         (@AB): Update code for -Thtml.
914         (cov*tl-au-print): Handle -Thtml.
915         (par@reset): Handle `need_eo_tl', `need_eo_h'.
916         (@IP): Simplified.
917         (@IT-html): Removed.
918         (@SH): Set `need_eo_h' for -Thtml.
919         (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
920         Set `need_eo_tl'.
921         (@NH): s/HTML-TAG/HTMl-TAG-NS/.
922         Set `need_eo_h' for -Thtml.
923         (@EQ, @EN): Don't handle -Thtml specially.
924         (par@load-init): Don't handle -Thtml specially.
926         * tmac/www.tmac (www:paraspace): New macro.
927         (HTML-NS, HTML-TAG-NS): Use new `tag' request.
928         (HTML</p>, HTML-TAG-NEXT): New macros.
929         (HnE): Emit tag `.eo.h' instead of break.
930         (HR): s/HTML-NS/HTML/.
931         (www-end-nowhere): End diversion only if `www-html' not set.
932         Emit `.eo.tl' tag.
933         (ULS, ULE): s|HTML|HTML</p>|.
934         (LI): Call `www:paraspace'.
935         (HEAD): New macro.
937 2004-10-11  Gaius Mulley  <gaius@glam.ac.uk>
939         * src/roff/troff/request.h (macro): Make `p' public.
940         New variable `is_a_diversion'.
941         New member function `is_diversion'.
944         * src/devices/grohtml/html.h (simple_output): New member function
945         `force_nl'.
947         * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
948         computation of `total'.
949         (tabs::check_init): New function.
950         (html_table::emit_table_header): Emit style data.
951         (html_table::insert_column): Improved.
953         * src/devices/grohtml/html-table.h: Updated.
955         * src/devices/grohtml/html-text.cpp (html_text::html_text):
956         Initialize `start_space' with TRUE.
957         (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
958         cases.
959         (html_text::flush_text): Set `start_space' flag.
960         (html_text::uses_indent, html_text::remove_para_space,
961         html_text::get_alignment): New functions.
962         (html_text::push_para): Updated.
963         (html_text::do_para): Check for empty argument.
964         Don't set `space_emitted'.
965         (html_text::do_space, html_text::emit_space): Updated.
967         * src/devices/grohtml/html-text.h (tag_definition): New variable
968         `really_issued'.
969         (html_text): New member function `uses_indent', `remove_para_space',
970         `get_alignment'.
972         * src/devices/grohtml/output.cpp (simple_output::force_nl): New
973         function.
974         (simple_output:nl): Always emit `\n'.
976         * src/devices/grohtml/post-html.cpp: Include `string.h'.
977         (BASE_POINT_SIZE): Removed.
978         (base_point_size, head_info): New global variables.
979         (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
980         `is_eo_h'.
981         (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
982         tags, respectively.
983         (page::add_and_encode): Pass additional parameter for tag flag.
984         (assert_pos): New structure.
985         (assert_state): New class.
986         (html_printer): Remove `indentation', `prev_indent'.
987         Add variables `troff_indent', `device_indent', `temp_indent'.
988         Add variables `seen_indent', `next_indent', `seen_pageoffset',
989         `next_pageoffset', `seen_linelenght', `next_linelength',
990         `seen_center', `next_center', `seen_space', `seen_break', `as'.
991         Add member functions `do_check_center', `do_space', `do_head',
992         `get_troff_indent', `restore_troff_indent', `handle_assertion',
993         `handle_state_assertion', `do_end_para', `set_char_and_width'.
994         Change argument to `do_fill' to `char *'.
995         Update constructor.
996         (html_printer::emit_raw): Call `shutdown_table'.
997         Use new functions.
998         (html_printer::do_center): Simplified.
999         (html_printer::do_title): Improved.
1000         (html_printer::write_header): Emit one more newline.
1001         Use new functions.
1002         (html_printer::do_heading, html_printer::do_indent,
1003         html_printer::do_eol, html_printer::do_tab_ts,
1004         html_printer::do_tab, html_printer::do_tab0,
1005         html_printer::calc_po_in, html_printer::next_horiz_pos,
1006         html_printer::remove_courier_tabs,
1007         html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
1008         Updated.
1009         (html_printer::do_linelength, html_printer::do_pageoffset,
1010         html_printer::do_indentation, html_printer::do_tempindent,
1011         html_printer::do_tab_te): Simplified.
1012         (html_printer::do_pointsize): Check whether point size is really
1013         associated a `.tl' tag.
1014         (html_printer::do_break): Rewritten.
1015         (html_printer::troff_tag): Improved.
1016         (html_printer::flush_globs): Updated.
1017         (html_printer::lookahead_for_tables): Handle `is_br'.
1018         Use new functions.
1019         (html_printer::set_char): Check `sbuf_style.f'.
1020         (html_printer::write_navigation): Use string comparison.
1021         (html_printer::~html_printer): Emit `head_info'.
1022         (html_printer::special): Rewritten.
1023         (get_str, make_val): New functions.
1024         (main): New option `s' to set the base point size.
1026         * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
1028 2004-10-10  Gaius Mulley  <gaius@glam.ac.uk>
1030         * src/roff/troff/node.cpp: New extern `debug_state'.
1031         Include `stringclass.h' and `mtsm.h'.
1032         Implement new classes and class members from `node.h'.
1033         (real_output_file): Make `fp' public.
1034         (troff_output_file): New variables `cur_div_level' and `tag_list'.
1035         Update constructors.
1036         (troff_output_file::really_print_line): Check whether we should push
1037         the current troff state and use the state at the start of the
1038         invocation of this diversion.
1039         (troff_output_file::add_to_tag_list): New member function.
1040         (node::add_char): Handle `glyph_comp_np'.
1042         * src/roff/troff/node.h: Include `mtsm.h'.
1043         (node): New variables `state', `push_state', `div_nest_level',
1044         `is_special'.  Update constructors, all descendants.
1045         Pass additional argument to `add_char' member function.
1046         New virtual member functions `is_tag', `debug_node',
1047         `debug_node_list'.  Update all descendants.
1048         (tag_node): New class for handling tags.
1049         (output_file): Add variable `state'.
1051 2004-10-09  Gaius Mulley  <gaius@glam.ac.uk>
1053         * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
1054         providing a minimal troff state machine to emit meta tags for the
1055         post-grohtml device driver.
1057         * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
1058         files.
1060 2004-10-09  Werner LEMBERG  <wl@gnu.org>
1062         * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
1064 2004-10-06  Gaius Mulley  <gaius@glam.ac.uk>
1066         * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
1068         * src/roff/troff/div.h: Include `mtsm.h'.
1069         (diversion): New variables `any_chars_added', `needs_push',
1070         `saved_seen_break', `saved_seen_space', `saved_seen_eol',
1071         `saved_suppress_next_eol', `modified_tag'.
1072         New virtual member function `is_diversion'.  Update all descendants.
1074         * src/roff/troff/div.cpp (diversion::diversion,
1075         macro_diversion::macro_diversion): Updated.
1076         (do_divert): Handle `seen_break', `seen_space', `seen_eol',
1077         `suppress_next_eol'.
1078         (top_level_diversion::space): Handle `curenv->seen_space'.
1079         (page_offset): Update tag handling.
1080         (space_request, blank_line, flush_output): Don't call `add_html_tag'.
1082         * src/roff/troff/env.h (environment): Make `tabs' public.
1083         Remove `ignore_next_eol', `emitted_node'.
1084         Update `output_line', `output'.
1085         New variables `seen_space', `seen_eol', `suppress_next_eol',
1086         `seen_break'.
1087         New member functions `construct_state', `make_tag',
1088         `construct_format_state, `construct_new_line_state,
1089         `dump_troff_state'.
1090         Remove `add_html_tag', `make_html_tag'.
1092         * src/roff/troff/env.cpp: New externs `suppress_push',
1093         `get_diversion_state', `global_diverted_space'.
1094         (pending_output_line): New variable `was_centered'.
1095         Update constructor and all callers.
1096         (pending_output_line::output): Call `curenv->construct_format_state'.
1097         (environment::environment, environment::copy): Updated.
1098         (environment::output): Handle `was_centered'.
1099         (environment::add_char): Handle construct and diversion state.
1100         (environment::add_node): Handle construct state.
1101         (environment::newline): Handle `was_centered'.
1102         (environment::output_line): Updated.
1103         (environment::possibly_break_line): Updated.
1104         Update tag handling.
1105         (environment::add_html_tag): Replaced with...
1106         (environment::make_tag): New function.
1107         (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
1108         (environment::dump_troff_state): New debugging function.
1109         (environment::construct_state, environment::construct_format_state,
1110         environment::construct_new_line_state): New functions.
1111         (environment::do_break): Updated.
1112         Handle `global_diverted_space'.
1113         (environment::handle_tag): Update tag handling.
1114         (point_size, fill, do_break_request): Don't call `add_html_tag'.
1115         (no_fill): Don't call `add_html_tag'.
1116         Set `suppress_next_eol'.
1117         (center, right_justify, line_length, indent, temporary_indent,
1118         set_tabs):
1119         Update tag handling.
1121         * src/roff/troff/input.cpp: Don't include `stringclass.h'.
1122         (input_iterator): New variables `is_diversion', `diversion_state'.
1123         Update constructors.
1124         (input_stack): New member functions `get_div_level',
1125         `get_diversion_state', `check_end_diversion'.
1126         New variables `div_level', `diversion_state'.  Initialize them.
1127         (suppress_push, global_diverted_space): New global variables.
1128         (input_stack::finish_get, input_stack::finish_peek,
1129         input_stack::remove_boundary, input_stack::end_file,
1130         input_stack::clear, input_stack::pop_macro): Call
1131         `check_end_diversion'.
1132         (input_stack::push): Handle `div_level' and `diversion_state'.
1133         (get_diversion_state): New function.
1134         (diverted_space_node::reread): Handle `global_diverted_space'.
1135         (macro::macro): Update constructors.
1136         (macro::is_diversion): New function.
1137         (macro::operator=): Set `is_a_diversion'.
1138         (string_iterator): New member function `is_diversion'.
1139         (string_iterator::string_iterator): Update constructors.
1140         (string_iterator::fill): Set `div_nest_level'.
1141         (macro_iterator): New member function `is_diversion'.
1142         (do_if_request): Handle `suppress_push'.
1143         (tag, taga): New functions.
1144         (init_input_requests): Add `tag' and `taga' requests.
1146 2004-10-05  Gaius Mulley  <gaius@glam.ac.uk>
1148         * src/include/font.h (font): New member function
1149         `get_image_generator'.
1150         New variables `unscaled_charwidths' and `image_generator'.
1152         * src/libs/libgroff/font.cpp (font::get_width): Always return the
1153         character's unscaled width if `font::unscaled_charwidths' is set.
1154         (font::get_image_generator): New function.
1155         (font::load_desc): Check the `unscaled_charwidths' and
1156         `image_generator' keywords.
1158         * src/libs/libgroff/fontfile.cpp: Initialize
1159         `font::unscaled_charwidths' and `font::image_generator'.
1161         * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
1163         * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
1165         * man/groff_font.man: Document `unscaled_charwidths' and
1166         `image_generator'.
1168         * src/preproc/html/pre-html.cpp: Include `device.h'.
1169         (image_gen): New global variable.
1170         (imageList::createPage): Use `image_gen'.
1171         (main): Use `image_generator' keyword.
1173 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
1175         * tmac/html.tmac: Handle \[sqrtex].
1177 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
1179         * src/include/printer.h (printer): New virtual method `round_width'.
1181         * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
1182         src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
1183         src/devices/grotty/tty.cpp (printer::round_width): New function
1184         member.
1186         * src/devices/grohtml/post-html.cpp (printer::round_width): New
1187         function member.
1188         (html_printer::set_numbered_char): Use it.
1190 2004-10-03  Gaius Mulley  <gaius@glam.ac.uk>
1192         * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
1194         * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
1196         * configure: Regenerated.
1198         * Makefile.in (GHOSTSCRIPT): New variable.
1199         (MDEFINES): Add GHOSTSCRIPT.
1201 2004-10-03  Werner LEMBERG  <wl@gnu.org>
1203         * INSTALL.gen: Updated (taken from texinfo CVS).
1205 2004-09-28  Werner LEMBERG  <wl@gnu.org>
1207         * NEWS: Updated.
1209 2004-09-28  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
1211         * tmac/groff_www.man: Revised and updated.
1213 2004-09-26  Werner LEMBERG  <wl@gnu.org>
1215         Fix \$@ and \$* to handle any number of arguments.
1217         * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
1218         characters.
1220         * src/roff/troff/input.cpp (input_iterator::internal_level):
1221         Removed.
1222         (input_stack): New member functions `increase_level' and
1223         `decrease_level'.
1224         (input_stack::get_level): Don't use `internal_level'.
1225         (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
1226         (end_quote_iterator): Completely removed.
1227         (interpolate_arg): Build string for \$@ and \$* which is then
1228         pushed onto the input stack.
1230 2004-09-23  Keith Marshall  <keith.d.marshall@ntlworld.com>
1232         * tmac/groff_ms.man, doc/groff.texinfo: Document changes from
1233         2004-09-19.
1235 2004-09-23  Werner LEMBERG  <wl@gnu.org>
1237         * tmac/an-old.tmac (ne): Using default scaling operator.
1239 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
1241         This change implements the following features:
1243         PORPHANS
1244           New numeric register: Defines number of lines following LP, PP,
1245           QP, IP or XP, which must be kept together, before any automatic
1246           page break.  If insufficient space remains on the current page, a
1247           page break is forced before the new paragraph begins.
1249         HORPHANS
1250           New numeric register: Sets number of lines of following paragraph
1251           which must be kept with a heading, defined by NH or SH, before any
1252           automatic page break.  If insufficient space remains on the
1253           current page, a page break is forced before the heading.
1255         GROWPS
1256           (Thanks to Joerg van den Hoff, for this idea).
1258           New numeric register: Sets the first level of heading (set with
1259           NH), which will keep the same point size as body text; e.g. if
1260           GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
1261           point size specified by \n[PS], but .NH 2 and .NH 1 will have
1262           progressively larger point sizes, determined by \n[PSINCR] (see
1263           below).
1265         PSINCR
1266           New numeric register: Sets the point size increment for each level
1267           of heading, (set with NH), below the threshold level set by
1268           GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
1269           then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
1270           and all other levels will remain at 10pt, (because \n[PS] = 10).
1272         SH
1273           Existing macro now accepts a numeric argument, to make heading
1274           size match that of NH with same argument value, when the
1275           GROWPS/PSINCR feature is enabled.
1277         SN-DOT
1278           New string, set by NH macro, replaces the existing (undocumented)
1279           use of SN, to represent the assigned section number.
1281         SN-NO-DOT
1282           New string, set by NH macro, represents the assigned section
1283           number, but omits the terminal period (periods at intermediate
1284           levels are retained).
1286         SN
1287           String set by NH macro, originally undocumented, now implemented
1288           as an alias for SN-DOT (which reproduces original behaviour).
1290         * tmac/s.tmac (PORPHANS): New register.
1291         (par*start): Use it.
1292         (HORPHANS, GROWPS, PSINCR): New registers.
1293         (SH-NO-TAG, @SH): Use them.
1294         (@NH): Improved.
1296 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
1298         * NEWS, doc/groff.texinfo, tmac/groff_ms.man: Document the deletion
1299         of `Ds' and `De' macros.
1301 2004-09-10  Werner LEMBERG  <wl@gnu.org>
1303         In tbl, handle \a as an interpreted leader character if in
1304         compatibility mode.
1306         * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
1307         LEADER_CHAR): New macros.
1308         (compatible_flag): New declaration.
1310         * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
1311         LEADER_3, and LEADER_4 to `state'.
1312         (table_input::get): Handle `\a'.
1314         * src/preproc/tbl/table.cpp (PREFIX): Removed.
1315         (LEADER_REG): New macro.
1316         (table::init_output): Define LEADER_REG string register if in
1317         compatibility mode.
1319         * src/preproc/tbl/tbl.man: Document it.
1321 2004-08-18  Werner LEMBERG  <wl@gnu.org>
1323         * tmac/doc.tmac (An): Fix error message.
1325 2004-08-06  Werner LEMBERG  <wl@gnu.org>
1327         * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
1328         file can't be opened.  UNIX tbl has the same behaviour.
1330 2004-08-05  Y T  <doarhop@hotmail.com>
1332         * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
1333         (DBRead): If in compatibility mode, take into account the text
1334         when computing figure boundaries.
1336 2004-08-05  Werner LEMBERG  <wl@gnu.org>
1338         * src/preproc/soelim/soelim.man: Improved.  Based on suggestions
1339         from Tadziu Hoffmann.
1341 2004-08-03  Werner LEMBERG  <wl@gnu.org>
1343         * doc/meref.me: Document `_M' register.
1345 2004-08-03  Martin Husemann  <martin@duskware.de>
1347         Make hpftodit work correctly on big-endian systems.
1349         * src/utils/hpftodit/hpftodit.cpp (File): New method
1350         `get_uint32(char *)'.
1351         (entry): New member `orig_value'.
1352         (read_tags): Use new method.
1353         (output_font_name, read_and_output_pcltypeface, dump_ascii):
1354         Updated.
1356 2004-08-01  Werner LEMBERG  <wl@gnu.org>
1358         * tmac/s.tmac: Undo change 2003-06-29.  The proper macro definitions
1359         are already in X11's `macros.t' file.
1361 2004-08-01  Jeff Conrad  <jeff_conrad@msn.com>
1363         * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
1364         Fix casting bug.
1365         (read_and_output_pcltypeface): Handle strings with length <= 4.
1367 2004-07-27  Egil Kvaleberg  <egil@kvaleberg.no>
1369         * tmac/s.tmac (pg@top): Don't save `PO' register.
1370         (pg*end-col, pg*end-page): Directly use `PO' register.
1372 2004-07-27  Werner LEMBERG  <wl@gnu.org>
1374         * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
1376         * src/preproc/refer/refer.cpp (output_references): Check for
1377         empty hash table.
1378         * src/preproc/refer/refer.man: Improve documentation of
1379         `bibliography' command.
1381 2004-07-26  Werner LEMBERG  <wl@gnu.org>
1383         Add requests `fcolor' and `gcolor'.
1385         * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
1386         New functions.
1387         (init_env_requests): Add `fcolor' and `gcolor'.
1389         * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
1391         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1392         Document new requests.
1394 2004-07-24  Werner LEMBERG  <wl@gnu.org>
1396         Add support for fractional point sizes in ms macros.  A value for
1397         PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
1398         by 1000.  For example, `.nr PS 10250' sets the font size to 10.25p.
1400         * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
1401         PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
1403         * tmac/groff_ms.man, docs/groff.texinfo, NEWS: Document it.
1405 2004-07-19  Werner LEMBERG  <wl@gnu.org>
1407         * src/preproc/pic/lex.cpp (for_input): Add member `from'.
1408         Update constructor.
1409         (do_for, for_input::get, for_input::peek): Handle negative `by'.
1410         * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
1412 2004-07-08  Thomas Klausner  <wiz@netbsd.org>
1414         * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
1415         * tmac/groff_mdoc.man: Updated.
1417 2004-07-05  Werner LEMBERG  <wl@gnu.org>
1419         * doc/groff.texinfo: Further improve documentation of `hcode'.
1421 2004-07-04  Sang Dae Yu  <sdyu@bh.knu.ac.kr>
1423         Improve appearance of arrows in pic.
1425         * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
1426         arrow head thin.
1427         Use two line segments for drawing non-filled arrow head.
1428         (line_object::print, spline_object::print): Shorten line length to
1429         avoid arrow sticking.
1430         (arc_object::print): Take arrow direction into account.
1432 2004-07-03  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
1434         * tmac/groff_www.man: Update documentation of .MPIMG.
1436 2004-07-03  Werner LEMBERG  <wl@gnu.org>
1438         * tmac/an-old.tmac (RI): Always start with font `R'.
1439         (RI, IR): Properly end with font `R'.
1441 2004-07-02  Paul Eggert  <eggert@cs.ucla.edu>
1443         * man/ditroff.man, man/groff_font.man, man/groff_out.man,
1444         src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
1445         src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
1446         Don't pass more than six arguments to .R, .I, .B, etc., for
1447         compatibility with traditional troff macros.
1449 2004-07-02  Werner LEMBERG  <wl@gnu.org>
1451         * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
1452         s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
1453         Update all users.
1454         (PUSH_COMP_MODE): New internal character constant.
1455         Update all users.
1457         * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
1458         PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
1459         (token::next, macro::append): Handle PUSH_COMP_MODE.
1460         (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
1461         POP_GROFFCOMP after each of the decoded arguments to make them
1462         independent from the compatibility mode status.
1463         (comp_mode): Add `COMP_ENABLE'.
1464         (do_define_string, do_define_macro): Handle COMP_ENABLE.
1465         (define_string, append_string, define_macro, define_indirect_macro,
1466         append_macro, append_indirect_macro): Handle `compatible_flag'.
1467         (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
1469         * man/groff_diff.man, doc/groff.texinfo: Updated.
1471 2004-07-01  Werner LEMBERG  <wl@gnu.org>
1473         * doc/groff.texinfo: Improve documentation of `hcode'.
1474         Use @documentencoding and convert document to latin-1; to do that
1475         make latin characters active and assign proper macros (within a
1476         @tex...@end tex environment).
1477         * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
1478         * doc/Makefile.sub (groff): Ditto.
1480 2004-06-29  Werner LEMBERG  <wl@gnu.org>
1482         Implement two new conditional operators `F <name>' and `S <name>'
1483         which check whether <name> is a valid font or style, respectively.
1485         * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
1486         (text_file::text_file): Updated.
1487         (text_file::error): Don't emit message if `silent' is set.
1488         (font::load_font): Add optional third argument (which is directly
1489         passed to `load'.
1490         (font::load): Add optional second argument to check the header of
1491         a font only, without emitting warning or error messages.
1492         * src/include/font.h (font): Updated.
1494         * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
1495         conditionals.
1496         * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
1497         fourth argument to check a font without mounting.
1498         (check_font, check_style): New functions.
1499         * src/roff/troff/node.h: Updated.
1501         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1502         Updated.
1504 2004-06-27  Werner LEMBERG  <wl@gnu.org>
1506         Implement new string-valued register `.sty' to return the current
1507         style name.
1509         * env.cpp (environment::get_style_name_string): New function.
1510         (init_env_requests): Add `.sty' register.
1511         * env.h (environment): Updated.
1512         * node.cpp (font_info): Make `get_style_name' a friend.
1513         (get_style_name): New function.
1514         * node.h: Updated.
1516         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1517         Updated.
1519 2004-06-15  Werner LEMBERG  <wl@gnu.org>
1521         * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
1522         `nospaces' option.
1524 2004-06-10  Colin Percival  <colin.percival@wadham.ox.ac.uk>
1526         * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
1527         and \n[mo] to avoid dependency on current date.
1529 2004-06-08  Werner LEMBERG  <wl@gnu.org>
1531         * Makefile.sub (install_data): New target.
1533 2004-06-04  Werner LEMBERG  <wl@gnu.org>
1535         * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
1537 2004-06-03  Werner LEMBERG  <wl@gnu.org>
1539         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
1540         order of libraries.
1541         (install_data): Add $(srcdir).
1543         * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
1544         libraries.
1546 2004-06-02  Werner LEMBERG  <wl@gnu.org>
1548         * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
1549         Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
1550         Add test for Xmu library.
1551         (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1552         GROFF_APPRESDIR_DEFAULT): New macros.
1554         * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1555         and GROFF_APPRESDIR_DEFAULT.
1557         * configure: Regenerated.
1559         * Makefile.in (appresdir): New variable.
1560         (MDEFINES): Add appresdir.
1562         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
1563         -Xt.
1564         (install_data, uninstall_sub): New targets to handle GXditview.ad.
1566         * src/utils/indxbib/Makefiles.ub (install_data): Depend on
1567         `$(srcdir)/eign', not `eign'.
1569         * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
1571         * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
1572         src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
1573         Protect (g)xditview with `\%' to avoid hyphenation.
1574         Other minor formatting.
1576 2004-06-01  Werner LEMBERG  <wl@gnu.org>
1578         Integrate gxditview into groff's standard directory hierarchy.
1580         * src/xditview/*: Moved to ...
1581         * src/devices/xditview/*: Here.
1582         Moved DviChar.h and XFontName.h to src/include.
1583         Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
1584         Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
1585         Moved xtotroff.c to new directory src/utils/xtotroff.
1586         Provide proper Makefile.sub files (reusing the stuff from
1587         Imakefile.in).
1588         DESC renamed to DESC.in.
1589         Removed GXDitview-ad.h, INSTALL, Imakefile.in.
1590         Converted everything from K&R to ANSI C.
1591         Decorated with const where appropriate.
1592         Cast string constants with `String' and `char *' where appropriate.
1593         Made it compile with C++ (used as a C compiler).
1594         Removed other minor compiler warnings.
1596         * src/devices/xditview/device.c: Include config.h, string.h, and
1597         defs.h.
1598         Don't declare `exit', `strtok', `strchr', and `getenv'.
1599         (FONTPATH): Remove.
1601         * src/devices/xditview/font.c: Don't declare `XParseFontName' and
1602         `XFormatFontName'.
1604         * src/devices/xditview/xditview.c: Include config.h.
1605         Include stdio.h earlier.
1606         Protect declaration of `popen' and `pclose' with
1607         NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
1608         Replace `caddr_t' with `XtPointer'.
1609         (MakePromptFunc): New typedef.
1610         (DoPrint): Use RETSIGTYPE.
1611         (promptfunction): Change type to MakePromptFunc.
1612         (MakePrompt): Use MakePromptFunc for third argument.
1613         (xmalloc): Removed.
1615         * src/devices/xditview/ad2c: Add casts to `String'.
1617         * src/include/XFontName.h (XFontNameString): Don't use array
1618         notation.
1619         Add prototypes for `XParseFontName', `XFormatFontName',
1620         `XCompareFontName', and `XCopyFontName'.
1622         * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
1623         `XFontName.h'.
1625         * src/utils/xtotroff/xtotroff.c: Include getopt.h.
1626         Don't declare `XParseFontName' and `XFormatFontName'.
1627         (xmalloc): Removed.
1628         (main): Remove `optind' and `optarg'.
1630         * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
1631         (to select programs which need X).
1632         Make XDEVIDIRS depend on `FORCE'.
1633         (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
1634         X support).
1635         (MDEFINES): Updated.
1636         (LIBDIRS): Use XLIBDIRS.
1637         (CPROGDIRS): Use XPROGDIRS.
1638         (DEVDIRS): Remove font directories for gxditview.
1639         (ALLDIRS, DISTDIRS): Add XDEVDIRS.
1640         (EXTRADIRS): Remove src/xditview.
1642         * Makefile.sub (DISCLEANFILES): Updated.
1644         * Makefile.comm (LIBXUTIL): New variable.
1645         (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
1646         (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
1648         * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
1650         * aclocal.m4 (GROFF_X11): New function.
1652         * configure.ac: Call GROFF_X11.
1653         Don't create src/xditview/Imakefile.
1654         Don't emit notice how to build gxditview.
1656         * configure: Regenerated.
1658         * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
1660 2004-05-28  Akihiro Sagawa  <sagawa@sohgoh.net>
1662         * Makefile.in (CPPFLAGS): Define.
1663         (MDEFINES): Add CPPFLAGS.
1665 2004-05-27  Werner LEMBERG  <wl@gnu.org>
1667         * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
1669 2004-05-26  Niklas Edmundsson  <nikke@acc.umu.se>
1671         Fix problems with `friend name injections'.
1673         * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
1674         make_script_box), src/roff/troff/div.h (end_diversions),
1675         src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
1676         change 2004-04-08.
1678 2004-05-25  Bernd Warken  <bwarken@mayn.de>
1680         * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
1682 2004-05-25  Werner LEMBERG  <wl@gnu.org>
1684         * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
1685         src/libs/libgroff/color.cpp: Include lib.h.
1687 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
1689         * PROBLEMS: Update documentation for problems with Sun C++ 5.0
1690         through Forte 6u1, and for how to get GNU make on Solaris.
1692 2004-05-24  Werner LEMBERG  <wl@gnu.org>
1694         * PROBLEMS: Document problems with gcc 3.4.0 on Sun.  Reported
1695         by Paul Eggert.
1697 2004-05-15  Keith Marshall  <keith.d.marshall@ntlworld.com>
1699         * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
1700         rule.
1702 2005-05-14  Werner LEMBERG  <wl@gnu.org>
1704         * REVISION: Set to 2.
1706         * aclocal.m4 (GROFF_STDINT_H): Removed.
1707         (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
1709         * configure.ac: Updated.
1710         * configure, src/include/config.hin: Regenerated.
1712         * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
1713         inttypes.h conditionally.
1715 2003-05-13  Werner LEMBERG  <wl@gnu.org>
1717 Version 1.19.1 released
1718 =======================
1720 2004-05-10  Stephen Gildea  <http://www.gildea.com/stephen>
1722         * src/preproc/refer/label.y (same_author_last_name,
1723         same_author_name): Handle empty sort keys.
1725 2004-05-10  Werner LEMBERG  <wl@gnu.org>
1727         * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
1728         tmac/TODO: Updated.
1730         * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
1731         doc-str-Lb-librt): Reset font.
1732         (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
1733         Provide `doc-str-Lb' to reset font.
1734         * tmac/groff_mdoc.man: Updated.
1736 2004-05-08  Jan Schaumann  <jschauma@netmeister.org>
1738         * src/preproc/html/pre-html.cpp (make_message): Make it work for
1739         snprintf versions which don't conform to ANSI C 99 (this is,
1740         counting the string's trailing null byte in the return value).
1742 2004-05-07  Keith Marshall  <keith.d.marshall@ntlworld.com>
1744         * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
1745         that all implementations of sprintf handle null pointers correctly.
1747 2004-05-04  Werner LEMBERG  <wl@gnu.org>
1749         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1750         Document `.U' register.
1752         * src/roff/troff/env.cpp (environment::mark_last_line)
1753         [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
1755 2004-05-04  Larry Kollar  <kollar@alltel.net>
1757         New read-only register `.U'; it returns 1 in safer mode and 0
1758         otherwise.
1760         * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
1761         register.
1763 2004-05-03  Werner LEMBERG  <wl@gnu.org>
1765         * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
1767 2004-04-17  Werner LEMBERG  <wl@gnu.org>
1769         * src/include/font.h (font): Use `int' for ch_index.
1770         * src/libs/libgroff/font.cpp (font::alloc_ch_index,
1771         font::compact): Updated.
1773         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
1774         warnings.
1776         * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
1777         (hyphen_word): Fix compiler warnings.
1778         * src/roff/troff/input.cpp (get_char_for_escape_name): Return
1779         `char'.
1780         Update all callers.
1781         (get_delim_number, get_line_arg): Change second argument type to
1782         `unsigned char'.
1783         (macro_header::copy, token::next, do_define_string,
1784         do_define_character, substring_request, asciify_macro,
1785         unformat_macro, read_size, non_interpreted_node::interpret,
1786         while_request, main: Fix compiler warnings.
1787         (read_color_draw_node): Initialize `col'.
1789         * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
1790         `start_col' and `end_col' of type `int'.
1791         (vertical_rule): Make `col' of type `int'.
1793         * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
1794         for EOF.
1796         * src/preproc/refer/label.y (uppercase_array, lowercase_array):
1797         New arrays.
1798         (format_serial): Use them to remove dependency on ASCII.
1800         * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
1801         compiler warning.
1802         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1803         Ditto.
1805         * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
1806         compiler warnings.
1807         (glyph): Change type of `hpos' to `int'.
1809         * src/devices/lbp/lbp.cpp (strsep): Removed.  Unused.
1810         * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
1812         * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
1814         * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
1816 2004-04-16  Werner LEMBERG  <wl@gnu.org>
1818         * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
1819         src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
1820         src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
1821         `double' instead of `float' everywhere.
1822         * src/preproc/grn/main.cpp: Use `double' instead of `float'
1823         everywhere.
1824         (main): Add return value.
1825         * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
1826         everywhere.
1827         Update all user functions.
1829         * src/include/search.h, src/include/ptable.h, src/include/printer.h,
1830         src/preproc/eqn/box.h, src/preproc/pic/object.h,
1831         src/preproc/refer/refer.h, src/preproc/tbl/table.h,
1832         src/preproc/tbl/table.cpp, src/roff/troff/env.h,
1833         src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
1834         src/roff/troff/input.cpp, src/roff/troff/request.h,
1835         src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
1836         declarations.
1838         * src/utils/indxbib/signal.c: Include stdlib.h.
1840 2004-04-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
1842         * tmac/s.tmac (@init, RP): Allow initialization of the PO register
1843         before the first page.
1845 2004-04-14  Thomas Klausner  <wiz@netbsd.org>
1847         * tmac/doc-common (doc-volume-as-*): Use lowercase names.
1848         (doc-operating-system-*): Updated.
1849         * tmac/doc-syms (doc-str-St-*): Various small fixes.
1850         (doc-str-Lb-*): Add more library names.
1852 2004-04-10  Art Haas  <ahaas@airmail.net>
1854         * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
1855         use anonymous type.
1857 2004-04-09  Art Haas  <ahaas@airmail.net>
1859         * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
1861 2004-04-09  Keith Marshall  <keith.d.marshall@ntlworld.com>
1863         * arch/misc/shdeps.sh: Generate better comment for sed script.
1865 2004-04-08  Art Haas  <ahaas@airmail.net>
1867         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
1868         src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
1869         src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
1870         src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
1871         (polyfill), src/preproc/grn/main.cpp (polyfill),
1872         src/preproc/refer/command.cpp (command_table),
1873         src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
1874         gcc 3.5 doesn't like).
1876 2004-04-08  Werner LEMBERG  <wl@gnu.org>
1878         Removing many compiler warnings.  groff should now compile with
1879         a C++ compiler used for C files also.  [Simple variable renamings
1880         to avoid shadowing aren't logged in detail.]
1882         * src/devices/grodvi/dvi.cpp: Some local variable renamings.
1883         (draw_dvi_printer::draw) ['c']: Enclose in block.
1885         * src/devices/grohtml/post-html.cpp: Some local variable renamings.
1886         (page::add_line): Fix typos.
1887         * src/devices/grohtml/html-text.cpp: Some local variable renamings.
1889         * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
1890         Some local variable renamings.
1891         * src/devices/grolbp/lbp.h: Some local variable renamings.
1893         * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
1894         variable renamings.
1896         * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
1897         Remove redundant local variable declaration.
1898         * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
1899         Don't use `caddr_t' but `void *'.
1900         Enclose functions with `extern "C"' for C++.
1902         * src/libs/libdriver/input.cpp (remember_filename,
1903         remember_source_filename): Use cast for string constant.
1905         * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
1906         src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
1907         src/libs/libgroff/geometry.cpp: Some local variable renamings.
1908         * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
1909         style.
1910         Enclose functions with `extern "C"' for C++.
1911         * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
1912         (needs_quoting): Return `int'.
1913         (quote_arg): Add proper casts to malloc and realloc.
1914         * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
1915         various MS Windows environments.
1916         (spawnvp_wrapper): Add proper cast to malloc.
1918         * src/preproc/eqn/box.h: Remove redundant declarations of
1919         `make_script_box', `make_mark_box' and `make_lineup_box'.
1920         * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
1921         * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
1922         variable renamings.
1924         * src/preproc/grn/hpoint.cpp: Some local variable renamings.
1925         * src/preproc/grn/hgraph.cpp: Some local variable renamings.
1926         (dx, dy): Renamed functions to...
1927         (deltax, deltay): This.
1928         * src/preproc/grn/main.cpp: Some local variable renamings.
1929         (deffont): Add `const'.
1930         (initpic, conv): Use cast for string constant.
1932         * src/preproc/html/pre-html.cpp: Some local variable renamings.
1933         (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
1934         (char_buffer::run_output_filter): Second argument is unused.
1935         * src/preproc/html/pushback.cpp: Some local variable renamings.
1937         * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
1938         * src/preproc/pic/object.cpp: Some local variable renamings.
1940         * src/preproc/refer/label.y (lookup_label): Remove redundant
1941         declaration of local variable.
1943         * src/preproc/soelim.cpp: Remove redundant declaration of
1944         `interpret_lf_args'.
1946         * src/preproc/tbl/main.cpp: Some local variable renamings.
1948         * src/roff/groff/groff.cpp (main): Use cast for string constant.
1949         * src/roff/groff/pipeline.c: Enclose declarations of `error',
1950         `c_fatal', and `i_to_a' with `extern "C"' for C++.
1951         Don't use C++-style comments.
1953         * src/roff/troff/env.h: Remove redundant declaration of `title'.
1954         * src/roff/troff/node.h, src/roff/troff/env.cpp,
1955         src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
1956         renamings.
1957         * src/roff/troff/div.h: Remove redundant declaration of
1958         `end_diversions'.
1959         * src/roff/troff/troff.h: Remove redundant declaration of
1960         `cleanup_and_exit'
1961         * src/roff/troff/input.cpp: Remove redundant declaration of
1962         `handle_first_page_transition' and `process_input_stack'.
1964         * src/utils/hpftodit.cpp: Some local variable renamings.
1966         * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
1967         for C++.
1968         Don't define RETSIGTYPE.
1969         * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
1971         * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
1972         (error): Use `const' in argument.
1973         (main): Remove redundant declaration of `optind'.
1974         Move declaration of `Version_string' to top-level.
1976         * PROBLEMS: Document difficulties compiling signal.c if a C++
1977         compiler is used for C.
1979 2004-04-07  Werner LEMBERG  <wl@gnu.org>
1981         * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
1983 2004-04-06  Keith Marshall  <keith.d.marshall@ntlworld.com>
1985         Make scripts like nroff.sh and neqn.sh portable across various
1986         (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
1987         non-POSIX path separators.  The idea is to extend those scripts to
1988         decide at run-time (of the script) which path separator to use.
1990         * arch/misc/Makefile.sub: New file.
1991         * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
1992         This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
1993         a proper definition of the variable `GROFF_RUNTIME'.
1995         * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
1996         (MDEFINES): Add SH_DEPS_SED_SCRIPT.
1997         (PROGDEPDIRS): New variable.
1998         `FORCE' it.
1999         (PROGDIRS): Add PROGDEPDIRS.
2001         * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
2002         Don't substitute @SEP@ and @BINDIR@.
2003         * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
2004         (PATH): Use GROFF_RUNTIME.
2006         * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
2007         Don't substitute @SEP@ and @BINDIR@.
2008         * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
2009         (PATH): Use GROFF_RUNTIME.
2011 2004-04-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
2013         * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
2014         Cygwin which doesn't handle stderr correctly.
2016 2004-03-08  Werner LEMBERG  <wl@gnu.org>
2018         * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
2019         against empty argument.  Problem reported by <cgd@broadcom.com>.
2021 2004-03-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
2023         * Makefile.in (SEP): Replaced with...
2024         (RT_SEP, SH_SEP): Separators for the target platform's native path
2025         separator and the build environment, respectively.
2026         (fontpath, tmacpath): Use RT_SEP.
2027         (MDEFINES): Updated.
2029         * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
2030         * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
2031         * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
2032         * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
2034 2004-03-05  Werner LEMBERG  <wl@gnu.org>
2036         * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200.  This helps to
2037         reduce alignment problems with newer printers which use built-in
2038         TrueType fonts (instead of the older Intellifonts).  The ideal
2039         solution is to provide a second set of groff metric files, but this
2040         is extremely time-consuming to produce, given that HP's metric
2041         files are very rudimentary.
2043 2004-03-01  Werner LEMBERG  <wl@gnu.org>
2045         * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
2046         s/operand/argument/ in error message.
2048 2004-03-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
2050         * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
2051         is in use.
2053 2004-03-01  Antti Kantee  <pooka@netbsd.org>
2055         * tmac/s.tmac (XE): Fix error message.
2057 2004-02-27  Jeff Conrad  <jeff_conrad@msn.com>
2059         * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
2060         New macros.
2062         * src/roff/groff/pipeline.c: Declare strcasecmp.
2063         (run_pipeline) [_WIN32]: Use function name variants which don't
2064         start with `_'.
2065         Fix stream handling.
2067 2004-02-27  Keith Marshall  <keith.d.marshall@ntlworld.com>
2069         * src/include/nonposix.h: Fix declaration of `system_shell_name'.
2070         Declare `spawnvp_wrapper' and macro definitions of spawnvp only
2071         for platforms which use the native Win32 runtime libraries.
2072         (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
2074         * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
2075         QUOTE_ARG_REALLOC_ERROR): Fix string.
2077         * src/preproc/html/pre-html.cpp: Remove declaration of
2078         `spawnvp_wrapper'.
2079         Don't use __MINGW32__.
2080         s/DEBUG_FILE/DEBUG_FILE_DIR/.
2081         (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
2082         (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
2083         (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
2084         calls to `set_redirection' and `WAIT'.
2085         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
2086         Fix calls to `set_redirection' and `save_and_redirect'.
2087         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
2088         to `set_redirection' and `save_and_redirect'.
2089         (usage): Fix message.
2090         (makeTempFiles, main): Use `DEBUG_FILE'.
2092 2004-02-21  Werner LEMBERG  <wl@gnu.org>
2094         * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
2096 2004-02-21  Keith Marshall  <keith.d.marshall@ntlworld.com>
2098         * src/libs/libgroff/quotearg.c: New file, providing proper argument
2099         quoting for MSVC's spawn* and exec* functions.
2100         * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
2101         spawnvp with proper quoting for MSVC.
2103         * src/libs/libgroff/assert.cpp (program_name),
2104         src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
2105         * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
2107         * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
2109         * src/include/error.h (program_name): Declare as `extern "C"'.
2110         * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
2112 2004-02-21  Jeff Conrad  <jeff_conrad@msn.com>
2114         * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
2115         spawnvp_wrapper.
2116         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
2118 2004-02-20  Jeff Conrad  <jeff_conrad@msn.com>
2120         * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
2121         variable.
2122         (sbasename) [__MSDOS__ || ...]: New function.
2123         (system_shell_name) [__MSDOS__ || ...]: Use a different, more
2124         generic algorithm.
2125         (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
2126         (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
2127         of XXX.
2128         Use STDOUT_FILENO instead of hardcoded file handle.
2129         (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
2131 2004-02-19  Werner LEMBERG  <wl@gnu.org>
2133         * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
2134         avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
2136 2004-02-18  Werner LEMBERG  <wl@gnu.org>
2138         * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
2139         new font and mapping files.
2141 2004-02-18  Jeff Conrad  <jeff_conrad@msn.com>
2142             Keith Marshall  <keith.d.marshall@ntlworld.com>
2144         * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
2145         an input pipe.  This is needed for the MSVC compiler to make troff's
2146         `-o' option work.
2148         * src/roff/troff/div.cpp: Include nonposix.h.
2149         (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
2151 2004-02-17  Werner LEMBERG  <wl@gnu.org>
2153         * font/devlj4/generate/special.awk: New script.
2154         * font/devlj4/generate/Makefile (S): Use special.awk.
2155         * font/devlj4/*: Regenerated, including the following new files:
2156         Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
2157         MS Symbol (SYMBOL), Wingdings (WINGDINGS).
2158         * NEWS: Document new lj4 fonts and revised hpftodit.
2160 2004-02-17  Paco Andrés Verdú  <pandres@dragonet.es>
2162         * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
2164 2004-01-25  Werner LEMBERG  <wl@gnu.org>
2166         * src/libs/libgroff/progname.cpp: Replaced with...
2167         * src/libs/libgroff/progname.c: New file.
2168         * src/libs/libgroff/Makefile.sub: Updated accordingly.
2170 2004-01-17  Werner LEMBERG  <wl@gnu.org>
2172         * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
2174 2004-01-16  Jeff Conrad  <jeff_conrad@msn.com>
2176         * font/devlj4/generate/wingdings.map,
2177         font/devlj4/generate/symbol.map: Include unnamed glyphs.
2178         Use groff glyph names where possible.
2179         * src/devices/grolj4/lj4_font.man: Minor updates.
2181 2004-01-13  Werner LEMBERG  <wl@gnu.org>
2183         * tmac/www.tmac (DC): Handle TTY devices.
2185         * doc/webpage.ms: Document viewCVS from ffii.org.
2186         * NEWS, README: Updated.
2188         * src/roff/groff/groff.man: Mention lj4_font man page.
2190         * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
2191         variables.
2192         (FONTS): Add SYMBOL and WINGDINGS.
2193         (SYMBOL, WINGDINGS): New targets.
2195 2004-01-13  Jeff Conrad  <jeff_conrad@msn.com>
2197         * src/devices/grolj4/lj4_font.man: New man page.
2198         * src/devices/grolj4/Makefile.sub (MAN5): New variable.
2199         * src/devices/grolj4.man: Mention lj4_font man page.
2201         * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
2202         * src/utils/hpftodit/hpftodit.man: Document it.
2203         (CW): New macro.
2204         Remove details about fonts (which are now in lj4_font.man).
2206         * font/devlj4/generate/symbol.map,
2207         font/devlj4/generate/wingdings.map: New files.
2209 2004-01-12  Werner LEMBERG  <wl@gnu.org>
2211         * README: Mention ffii's viewcvs access.
2213 2004-01-09  Werner LEMBERG  <wl@gnu.org>
2215         * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
2217 2004-01-09  Jeff Conrad  <jeff_conrad@msn.com>
2219         Revert most of the change from 2004-01-03 to better control used
2220         symbol sets.
2222         * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
2223         (text_symbol_sets, special_symbol_sets): New arrays.
2224         (symbol_set_table): New global variable.
2225         (read_symbol_sets): Use search order given in the text_symbol_sets
2226         and special_symbol_sets arrays.  If command line flag -a is not
2227         given, search both arrays.
2228         (output_charset): Require x_height_tag only for command line flag -i.
2230 2004-01-06  Werner LEMBERG  <wl@gnu.org>
2232         Implement string-valued registers \n[.m] and \n[.M] to return the
2233         name of the current drawing and background color, respectively.
2235         * src/roff/troff/symbol.h: Moved to...
2236         * src/include/symbol.h: Here.
2237         Small fixes to make it work outside of the `troff' directory.
2238         * src/roff/troff/symbol.cpp: Moved to...
2239         * src/libs/libgroff/symbol.cpp: Here.
2240         Small fixes to make it work outside of the `troff' directory.
2242         * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
2243         (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
2244         Updated.
2246         * src/include/color.h: Include symbol.h.
2247         (color): Add new field `nm'.
2248         * src/libs/libgroff/color.cpp (color::color): Updated.
2250         * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
2251         src/roff/troff/node.cpp, src/roff/troff/number.cpp,
2252         src/roff/troff/reg.cpp: Don't include symbol.h.
2254         * src/roff/troff/env.cpp: Don't include symbol.h.
2255         (environment::get_glyph_color_string,
2256         environment_get_fill_color_string): New member functions.
2257         (init_env_requests): Handle `.m' and `.M' registers.
2258         * src/roff/troff/input.cpp: Don't include symbol.h.
2259         (default_symbol): Moved to symbol.cpp/symbol.h.
2260         (do_glyph_color, do_fill_color, define_color): Pass symbol name
2261         to color constructor.
2262         * src/roff/troff/env.h: Updated.
2264         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2265         Document new registers.
2267 2004-01-05  Werner LEMBERG  <wl@gnu.org>
2269         * src/roff/troff/node.cpp (space_node::get_breakpoints,
2270         space_node::nbreaks): Protect against zero `next' field.
2272 2004-01-03  Jeff Conrad  <jeff_conrad@msn.com>
2274         In hpftodit, use the symbol sets offered in the TFM.
2276         * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
2277         (symbol_set, text_symbol_sets, special_symbol_sets,
2278         symbol_set_table): Removed.
2279         (get_printcode): Removed.
2280         (read_symbol_sets): Initialize `symbol_set' field with
2281         `NO_SYMBOL_SET'.
2282         Simplify code to just use the `kind' value.
2283         (output_charset): Improve output formatting.
2284         (dump_symbols): Simplified.
2286 2004-01-02  Werner LEMBERG  <wl@gnu.org>
2288         * font/devlj4/generate/text.map: Add more MSL numbers.
2290 2004-01-02  Jeff Conrad  <jeff_conrad@msn.com>
2292         * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
2293         (text_symbol_sets): Add more symbol sets.
2294         (debug_flag): New static variable (moved from `main').
2295         (get_printcode, show_symset): New functions.
2296         (main): Remove `debug_flag'.
2297         (output_charset): Use `show_symset'.
2298         (dump_symbols):  Use `show_symset'.
2299         Print symsets for all glyphs.
2300         (read_map): Actually call `unicode_to_ucode_make' but this time
2301         correctly.
2303 2004-01-01  Werner LEMBERG  <wl@gnu.org>
2305         * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
2306         Fix placement of comments.
2308 2004-01-01  Jeff Conrad  <jeff_conrad@msn.com>
2310         * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
2311         option `-d' is given.
2312         (output_charset): Improve warning messages to give more information.
2313         (dump_symbols): Make information more precise.
2314         (usage): Updated.
2315         (read_map): Don't call unicode_to_ucode_name; the glyph names must
2316         appear as-is and shouldn't be decomposed.
2318 2003-12-31  Werner LEMBERG  <wl@gnu.org>
2320         * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
2321         * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
2322         (FONTS): Add TrueType font families Arial and Times New Roman.
2323         (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
2324         * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
2325         `fl'.
2327 2003-12-31  Jeff Conrad  <jeff_conrad@msn.com>
2329         * test-groff.in (SEP): Quote value.
2330         * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
2331         `tem' to `char*' to avoid deallocation of a pointer to a constant
2332         object which some compilers don't like.
2334 2003-12-31  Werner LEMBERG  <wl@gnu.org>
2336         * font/devlj4/generate (text.map, special.map): Rewritten to work
2337         with the new hpftodit version.
2339 2003-12-30  Jeff Conrad  <jeff_conrad@msn.com>
2341         * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
2342         set and 8bit character code for all glyphs also.
2344 2003-12-30  Werner LEMBERG  <wl@gnu.org>
2346         * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
2348 2003-12-29  Werner LEMBERG  <wl@gnu.org>
2350         More fixes for MSVC compiler.
2352         * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
2353         $(SEP).
2355         * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
2356         STDERR_FILENO) [_MSC_VER]: Define conditionally.
2357         (getpid) [_MSC_VER]: Remove.
2358         Include direct.h and process.h conditionally.
2360         * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
2361         parentheses for a_delete.
2363         * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
2365         * test-groff: Replaced with...
2366         * test-groff.in: This new template to handle path separator
2367         properly.
2369         * configure.ac: Check for direct.h and process.h.
2370         Generate test-groff script.
2371         * configure, src/include/config.hin: Regenerated.
2373 2003-12-28  Werner LEMBERG  <wl@gnu.org>
2375         Add integral extension glyph.
2376         Add new option `-x' to afmtodit to suppress use of built-in AGL.
2378         * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
2380         * font/devps/generate/textmap: Provide entry for `integralex' to
2381         override (old) PUA value of the AGL.
2382         * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
2383         * font/devps/*: Regenerated.
2385         * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
2386         * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
2388 2003-12-27  Werner LEMBERG  <wl@gnu.org>
2390         Add forgotten `coproduct' symbol (already available for DVI).
2392         * font/devhtml/R.proto, font/devps/generate/textmap,
2393         font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
2394         src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
2395         U+2210 (\[coproduct]).
2397 2003-12-26  Jeff Conrad  <jeff_conrad@msn.com>
2399         hpftodit has been extended to handle TrueType metric files and
2400         more glyphs.  See hpftodit.man for more details.
2402         * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h, 
2403         ctype.h, and unicode.h.
2404         s/msl/charcode/ everywhere since we now handle Unicode values also.
2405         (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
2406         Use it where appropriate.
2407         (MULTIPLIER): Replaced with...
2408         (multiplier): New global static variable.
2409         (scale): Updated.
2410         (tag_type): Add more TFM tags.
2411         (tag_name): New array.
2412         (ENUM_TYPE, FLOAT_TYPE): Removed.
2413         (BYTE_TYPE): New value assigned.
2414         (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
2415         (text_symbol_sets, special_symbol_sets): Extended to cover more
2416         sets.
2417         (check_type): Add return value.
2418         (check_units): Add parameters to get ppi and upem values.
2419         Handle TrueType TFM data.
2420         (output_font_name): New function.
2421         (output_charset): Add parameter to handle TFM type.
2422         Handle TrueType TFMs also.
2423         (em_fract): New macro.
2424         (dump_tags): Be much more verbose and handle more tags.
2425         (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
2426         (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
2427         functions.
2428         (read_map): Add parameter to handle TFM type.
2429         Handle both MSL and Unicode mappings.
2430         (main): Add two new command line options `-a' and `-q'.
2431         Updated to make use of new functions.
2432         (usage): Updated.
2434         * src/utils/hpftodit/hpuni.cpp: New file.
2436         * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
2437         Updated.
2439 2003-12-25  Werner LEMBERG  <wl@gnu.org>
2441         * src/include/nonposix.h (read) [_MSC_VER]: Define.
2443 2003-12-24  Werner LEMBERG  <wl@gnu.org>
2445         * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
2446         by Michail Vidiassov <master@iaas.msu.ru>.
2448 2003-12-20  Werner LEMBERG  <wl@gnu.org>
2450         * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
2451         and u0049_0307.
2452         Add missing latin-2 glyphs.
2453         * font/devutf8/R.proto: Add missing latin-2 glyphs.
2455         * tmac/troffrc: Load `composite.tmac' earlier.
2457         * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
2458         u00{53,73}_0327, and u0049_0307.
2459         * tmac/X.tmac: Add u00{47,67}_0306.
2460         * tmac/tty-char.tmac: Use composite glyph names for readability.
2462         * NEWS: Updated.
2464         * src/include/unicode.h: Remove `extern' keywords.
2466 2003-12-20  Nilgün Belma Bugüner  <nilgun@superonline.com>
2468         * tmac/latin5.tmac: New file.
2470 2003-12-19  Werner LEMBERG  <wl@gnu.org>
2472         Add some glyphs needed for Turkish.
2474         * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
2475         and u0049_0307.
2477         * tmac/composite.tmac: Add `,' as a synonym for `ac' accent. 
2478         * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
2479         u00{53,73}_0327, and u0049_0307.
2481 2003-12-18  Werner LEMBERG  <wl@gnu.org>
2483         * src/devices/grops/ps.cc (ps_output::put_float): Revert change
2484         from 2001-10-04.
2485         Remove trailing zeros.
2487 2003-12-17  Werner LEMBERG  <wl@gnu.org>
2489         Make \? transparent to end-of-sentence recognition.
2491         * src/roff/troff/input.cc (non_interpreted_node): Add
2492         `ends_sentence' member function.
2494 2003-12-16  Werner LEMBERG  <wl@gnu.org>
2496         * doc/groff.texinfo: Document `dt' request correctly.
2497         Other minor typographical improvements.
2499 2003-12-10  Michail Vidiassov  <master@iaas.msu.ru>
2501         * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
2503 2003-12-10  Richard Stallman  <rms@gnu.org>
2505         * LICENSE: Better wording.
2507 2003-12-09  Werner LEMBERG  <wl@gnu.org>
2509         * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
2510         * configure, NEWS: Updated.
2512 2003-12-08  Werner LEMBERG  <wl@gnu.org>
2514         * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
2516 2003-12-07  Bernd Warken  <bwarken@mayn.de>
2518         * LICENSE: Updated.
2520 2003-12-07  Werner LEMBERG  <wl@gnu.org>
2522         * INSTALL: Improved.
2524 2003-12-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
2526         Use path separator character of target platform for compiled-in
2527         default paths.
2529         * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
2530         * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
2531         * configure: Regenerated.
2532         * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
2534 2003-12-05  Werner LEMBERG  <wl@gnu.org>
2536         * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
2537         Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
2539 2003-12-04  Bernd Warken  <bwarken@mayn.de>
2541         * LICENSE: New file.
2543 2003-12-03  Werner LEMBERG  <wl@gnu.org>
2545         * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
2546         ligatures present in AFM files since groff currently only
2547         understands some standard ligatures and nothing else.
2549 2003-12-03  Jeff Conrad  <jeff_conrad@msn.com>
2551         * src/roff/groff/groff.cpp (main): Don't run the spooler if
2552         option -v is given.
2554         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
2555         messages.
2556         Close stdout copy.
2557         Don't use Unix wait flags.
2559 2003-12-02  Werner LEMBERG  <wl@gnu.org>
2561         * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
2562         src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
2563         src/roff/troff/uniuni.cpp: Moved to...
2564         * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
2565         src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
2566         src/libs/libgroff/uniuni.cpp: Here.
2568         * src/include/Makefile.sub.old (HDRS),
2569         src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
2570         src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
2572 2003-12-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
2574         * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
2575         `DEBUG_FILE'.
2576         Updated all users.
2578 2003-12-01  Werner LEMBERG  <wl@gnu.org>
2580         * groff.texinfo: Document special behaviour of `.vs 0'.
2581         Improve documentation of `cflags' request.
2582         * NEWS: Updated.
2584 2003-11-29  Werner LEMBERG  <wl@gnu.org>
2586         * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
2587         * font/devlj4/CORONET: Regenerated.
2589 2003-11-24  Werner LEMBERG  <wl@gnu.org>
2591         * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
2592         if processing hyphenation patterns in traditional mode.
2593         Improve error messages.
2595 2003-11-20  Werner LEMBERG  <wl@gnu.org>
2597         * src/roff/troff/node.cpp (troff_output_file::put_char_width,
2598         troff_output_file::put_char): Fix type of local variable `c'.
2600 2003-11-19  Werner LEMBERG  <wl@gnu.org>
2602         * src/roff/groff/pipeline.c (P): Removed.  Updated all function
2603         declarations.
2604         (i_to_a): Removed.  libgroff already provides this function.
2605         (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
2607 2003-11-18  Keith Marshall  <keith.d.marshall@ntlworld.com>
2609         * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
2610         HAVE_DECL_SYS_LIST.
2612 2003-11-17  Werner LEMBERG  <wl@gnu.org>
2614         * COPYING: Use correct version.
2616 2003-11-11  Werner LEMBERG  <wl@gnu.org>
2618         LynxOS 4.0.0 doesn't declare vfprintf.
2620         * configure.ac: Check for vfprintf.
2621         * configure: Regenerated.
2622         * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
2623         * src/include/config.hin: Regenerated.
2625 2003-11-10  Werner LEMBERG  <wl@gnu.org>
2627         LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
2629         * configure.ac: Check for vsnprintf.
2630         * configure: Regenerated.
2631         * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
2632         `HAVE_VSNPRINTF'.
2633         * src/include/config.hin: Regenerated.
2635 2003-11-09  Werner LEMBERG  <wl@gnu.org>
2637         * aclocal.m4: Updated syntax to autoconf 2.59.
2638         (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
2639         Don't check for gsos2.
2640         (GROFF_SRCDIR, GROFF_BUILDDIR): Removed.  autoconf 2.59 provides
2641         working abs_top_srcdir and abs_top_builddir.
2643         * configure.ac: Updated syntax to autoconf 2.59.
2644         Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
2645         Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
2646         * configure: Regenerated.
2648         * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
2649         s/@groff_top_builddir@/@abs_top_builddir@/.
2651         * src/roff/groff/pipeline.c (xstrsignal):
2652         s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
2654 2003-11-07  Werner LEMBERG  <wl@gnu.org>
2656         * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
2657         make start angle smaller than end angle to circumvent a bug in tpic
2658         handling of some versions of dvipdfm (and dvipdfmx).
2660 2003-10-30  Werner LEMBERG  <wl@gnu.org>
2662         * src/devices/grops/grops.man: Improve section on creating EPS.
2664 2003-10-29  Werner LEMBERG  <wl@gnu.org>
2666         * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
2667         -P-pletter).
2669 2003-10-28  Werner LEMBERG  <wl@gnu.org>
2671         * doc/groff.texinfo: Fix documentation of `.if'.
2673 2003-10-27  Michail Vidiassov  <master@iaas.msu.ru>
2675         * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
2676         the form `uniXXXX' also.
2678 2003-10-27  Werner LEMBERG  <wl@gnu.org>
2680         * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
2681         contrib/pic2graph/pic2graph.sh: Implement secure management of
2682         temporary files.
2683         Pass `-P-pletter' to groff to avoid data outside of the converted
2684         area -- some versions of `convert' (for example 5.3.8) don't check
2685         the bounding box of the image but always use a fixed image size
2686         (letter paper format).
2687         * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
2688         contrib/pic2graph/pic2graph.man: Updated.
2690         * src/roff/groff/groff.man: Document $TMP and $TEMP.
2692 2003-10-26  Werner LEMBERG  <wl@gnu.org>
2694         * src/preproc/pic/troff.cpp (troff_output::simple_circle,
2695         troff_output::simple_ellipse, troff_output::simple_arc,
2696         troff_output::simple_line, troff_output::simple_spline,
2697         troff_output::simple_polygon): Insert a space before arguments.
2698         (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
2699         latter doesn't produce a node, so the following `.sp -1' would do
2700         the wrong thing.
2701         Don't emit `.sp -1' after \M.  This also doesn't produce a token
2702         (and we don't have to care about compatibility mode).
2703         (troff_output::set_color, troff_output::reset_color): Don't emit
2704         `.sp -1' after \M and \m.
2706         * src/roff/troff/input.cpp (old_have_input): New global variable.
2707         (input_stack::get): Handle `old_have_input'.
2708         (process_input_stack) <token::TOKEN_NEWLINE>: Call
2709         `trapping_blank_line' depending on `old_have_input', not
2710         `have_input'.
2712 2003-10-20  Keith Marshall  <keith.d.marshall@ntlworld.com>
2714         * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
2715         (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
2716         default directory names for temporary files.
2717         [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
2719         * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
2720         [__MSDOS__] (run_pipeline): Honour environment variables.
2721         Don't use `tmpnam' but `tempnam' to work around messy
2722         implementation.
2724         * README.MinGW: New file.
2726 2003-10-16  Werner LEMBERG  <wl@gnu.org>
2728         * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
2729         `(*t)->next' without testing validity of `*t'.
2730         (usage): Make it more readable.
2732 2003-10-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
2734         Make html device run under both MS-DOS and Win32.
2736         * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
2737         MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
2738         spawn or fork+exec has to be used, and whether parent must sleep
2739         until the child process terminates.  Used in
2740         `char_buffer::run_output_filter'.
2741         (copyofstdoutfd): Removed.
2742         (char_buffer): Replace `write_file_html' and `write_file_troff'
2743         member functions with `emit_troff_output' and `run_output_filter'.
2744         (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
2745         macros.
2746         (replaceFd): Replaced with...
2747         (set_redirection): New auxiliary function.
2748         (waitForChild): Replaced with...
2749         (save_and_redirect): New auxiliary function for.
2751         (char_buffer::do_html, char_buffer::do_image): Simplified, using new
2752         functions.
2754 2003-10-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
2756         * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
2757         (GROFF_LIBC): New function.
2758         * configure.ac: Call GROFF_LIBC.
2759         Check for `kill'.
2760         * configure: Regenerated.
2762         * src/include/lib.h: Handle __MINGW32__.
2763         * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
2764         Add macro for `pipe'.
2765         Define P_tmpdir.
2767         * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
2768         correctly.
2770         * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
2771         Implement.
2773 2003-10-13  Werner LEMBERG  <wl@gnu.org>
2775         Finally fix change 2003-08-26, based on ideas from Chuck Silvers
2776         <chuq@chuq.com>.
2778         * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
2779         directory.
2781 2003-10-12  Werner LEMBERG  <wl@gnu.org>
2783         * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
2784         src/roff/troff/input.cc (usage): Updated.
2786         * NEWS, doc/groff.texinfo: Updated.
2788 2003-10-12  Peter Miller  <millerp@canb.auug.org.au>
2790         * src/libs/libgroff/searchpath.cpp
2791         (search_path::open_file_cautious): New function which also handles
2792         `-' as stdin and stdout depending on the access mode.
2793         * src/include/searchpath.h (search_path): Updated.
2795         * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
2796         * src/devices/grops/ps.h: Include `searchpath.h'.
2797         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
2798         Open resource file with `include_search_path.open_file_cautious'.
2799         * src/devices/grops/grops.man: Document new `-I' switch.
2801         * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
2802         (main), src/devices/grolj4/lj4.cpp (main),
2803         src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
2805         * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
2806         Replaced with...
2807         (include_search_path): New global variable.
2808         (include_path_append): Removed.
2809         (main): Use `include_search_path.command_line_dir' to handle `-I'.
2810         (do_file): Simplify, using new
2811         `include_search_path.open_file_cautious'.
2813         * src/roff/groff/groff.cpp (print_commands): Accept file handle as
2814         parameter.
2815         (main): Pass arguments to `-I' to both troff and devices.
2816         Improve handling of `-V'.
2817         * src/roff/groff/groff.man: Document changes to -I and -V.
2819         * src/roff/troff/input.cpp (include_search_path): New global
2820         variable.
2821         (next_file, source, ps_bbox_request, transparent_file,
2822         process_input_file): Use new
2823         `include_search_path.open_file_cautious'.
2824         (main) Handle `-I' switch.
2825         * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
2826         Use new `include_search_path.open_file_cautious'.
2827         * src/roff/troff/node.h: New extern symbol `include_search_path'.
2828         * src/roff/troff/troff.man: Document new `-I' switch.
2830 2003-09-15  Ruslan Ermilov  <ru@FreeBSD.org>
2832         Support multiple calls of .Lb in LIBRARY section.
2834         * tmac/doc-common (doc-in-library-section): New register.
2835         (doc-section-library): New string.
2836         (Sh): Set `doc-in-library-section'.
2837         (Rd): Updated.
2838         * tmac/doc-syms (Lb): Insert breaks before and after arguments
2839         if in LIBRARY section.
2840         * tmac/doc.tmac (doc-save-global-vars): Updated.
2841         * NEWS, tmac/groff_mdoc.man: Updated.
2843 2003-09-14  Ruslan Ermilov  <ru@FreeBSD.org>
2845         * tmac/doc-common (doc-default-operating-system): New variable.
2846         (Os): Use it.
2848 2003-09-08  Werner LEMBERG  <wl@gnu.org>
2850         * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
2852 2003-08-31  Werner LEMBERG  <wl@gnu.org>
2854         * contrib/mom/Makefile.sub: Fix last change to make it really work.
2855         * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
2856         (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
2857         $(DEVFILES) are not empty.
2858         * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
2860 2003-08-26  Chuck Silvers  <chuq@chuq.com>
2862         * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
2863         with parallel runs of `make'.
2865 2003-08-23  Stephen Gildea  <http://www.gildea.com/stephen>
2867         * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
2868         insert SORT_SEP.  With certain combinations of sort specifications,
2869         refer sorted entries in the wrong order.  In particular, entries
2870         with a missing field should be be sorted before all entries that
2871         have that field, before refer looks to the next field.
2873 2003-08-23  Werner LEMBERG  <wl@gnu.org>
2875         * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
2876         g++ linker is used.  Reported by Mark J. Reed
2877         <mark.reed@turner.com>.
2879 2003-08-16  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
2881         Add key character `x' to tbl which makes tbl call a user-defined
2882         macro on a table cell.
2884         * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
2885         * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
2886         `set_modifier' after printing the compatibility request.
2887         (set_modifier): Print call to `m->macro' if not empty.
2888         * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
2889         `macro'.
2890         (process_format): Implement cases `x' and `X'.
2891         * src/preproc/tbl/tbl.man, NEWS: Updated.
2893 2003-08-15  Werner LEMBERG  <wl@gnu.org>
2895         * doc/groff.texinfo: Minor fixes.
2897 2003-08-09  Werner LEMBERG  <wl@gnu.org>
2899         * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
2901 2003-08-07  Werner LEMBERG  <wl@gnu.org>
2903         * doc/Makefile.sub: Not all shells expand wildcards in the `for'
2904         argument list to nothing if there is no file to match.  Use `ls' as
2905         a protection, similar to autoconf.
2907         * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
2908         empty argument lists.
2910         * doc/groff.texinfo: Improve documentation how vertical spacing
2911         and line breaks interact.
2912         Other minor fixes.
2914         * tmac/www.tmac: Initialize `www-htmlimage-gap'.
2916 2003-08-03  Werner LEMBERG  <wl@gnu.org>
2918         * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
2919         EPS (using eps2eps or similar programs to compute the bounding box).
2921 2003-07-24  Werner LEMBERG  <wl@gnu.org>
2923         * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
2924         * doc/texinfo.tex: Updated from texinfo 4.6.
2925         * README.CVS: From now on we need texinfo 4.6.
2927 2003-07-23  Werner LEMBERG  <wl@gnu.org>
2929         Add requests `dei1' and `ami1' for completeness.
2931         * src/roff/troff/input.cc (calling_mode): Remove
2932         CALLING_DISABLE_COMP.
2933         (comp_mode): New enumeration.
2934         (do_define_string, define_string, define_nocomp_string,
2935         append_string, append_nocomp_string): Updated.
2936         (do_define_macro): Add third parameter.
2937         (define_macro, define_nocomp_macro, define_indirect_macro,
2938         append_macro, append_nocomp_macro, append_indirect_macro): Updated.
2939         (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
2940         functions.
2941         (ignore): Updated.
2942         (init_input_requests): Add `dei1' and `ami1'.
2944         * tmac/trace.tmac: Handle de1 and am1.
2945         (de): Improve tracing message.
2946         (am): Add missing `do'.
2947         (return): Use de1.
2949         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2950         Document new requests.
2952 2003-07-22  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
2954         Add option -G to .MPIMG to insert a gap between text and the image.
2956         * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
2957         www-finish-left-ll): Updated.
2958         (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
2959         (MPIMG): Make option -L and -R optional.
2960         Implement option -G.
2962 2003-07-22  Gaius Mulley  <gaius@glam.ac.uk>
2964         * src/devices/grohtml/post-html.cpp
2965         (html_printer::do_file_components): Don't use `stdout' as lvalue
2966         since it can be a macro.
2968 2003-07-22  Werner LEMBERG  <wl@gnu.org>
2970         * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
2971         the corresponding test in aclocal.m4.
2973 2003-07-21  Werner LEMBERG  <wl@gnu.org>
2975         * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
2976         names but RGB values directly.  Otherwise pnmtopng depends on
2977         an external file `rgb.txt' which maps colour names to values.
2979 2003-07-20  Werner LEMBERG  <wl@gnu.org>
2981         * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
2982         * configure, src/include/config.hin: Regenerated.
2984         * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
2986 2003-07-19  Werner LEMBERG  <wl@gnu.org>
2988         * PROBLEMS: Add solution for UTF-8 problem with hyphens.
2990 2003-07-18  Werner LEMBERG  <wl@gnu.org>
2992         * *.man: Switch to non-compatibility mode temporarily if GNU
2993         syntax extensions are used in the particular man page.
2995         * PROBLEMS: Add solutions for SGR problems.
2997 2003-07-17  Werner LEMBERG  <wl@gnu.org>
2999         Don't ignore grotty's command line options if \X'tty: sgr ...' is
3000         used to change the drawing scheme.
3002         * src/devives/grotty/tty.cpp (bold_flag_option,
3003         underline_flag_option, italic_flag_option, reverse_flag_option,
3004         bold_underline_mode_option): New global variables.
3005         (update_options): New function.
3006         (tty_printer::special): Call update_options.
3007         (main): Don't set xxx_flag but xxx_flag_option, then call
3008         update_options.
3010 2003-07-14  Werner LEMBERG  <wl@gnu.org>
3012         Make grotty emit proper Unicode box drawing characters for -Tutf8.
3014         * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
3015         values.
3016         (hline_char, vline_char): New global variables.
3017         (tty_printer::tty_printer): Initialize them.
3018         (tty_printer::draw): Emit START_LINE and END_LINE flags for both
3019         horizontal and vertical lines.
3020         (crossings): New global array.
3021         (tty_printer::end_page): Use it to determine the proper crossing
3022         character for -Tutf8.
3024 2003-07-12  Werner LEMBERG  <wl@gnu.org>
3026         * doc/Makefilesub (HTMLDOCFILESALL): New macro.
3027         (HTMLDOCFILES): Revert to `pic.html'.
3028         (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
3030 2003-07-11  Werner LEMBERG  <wl@gnu.org>
3032         * doc/pic.ms: Improve documentation of absolute coordinates.
3033         Document absolute positioning of pictures.
3035         * NEWS: Add new pic capability.
3037 2003-07-09  Hartmut Henkel  <hartmut_henkel@gmx.de>
3039         * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
3040         Rewritten.
3042 2003-07-07  Werner LEMBERG  <wl@gnu.org>
3044         Implement support for dashed and dotted ellipses in pic.  Based on
3045         a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
3047         * src/preproc/pic/common.cpp (common_output::ellipse_arc,
3048         common_output::dashed_ellipse, common_output::dotted_ellipse): New
3049         functions.  Ellipse arcs are approximated with circle arcs.
3050         * src/preproc/pic/common.h (common_output): Updated.
3051         * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
3052         functions.
3053         * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
3055         * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
3057 2003-07-06  Werner LEMBERG  <wl@gnu.org>
3059         Make grotty work on platforms which have unsigned char as the
3060         default for char.  Based on a patch by Thomas Klausner
3061         <wiz@netbsd.org>.
3063         * src/devices/grotty/tty.cpp (schar): New typedef.
3064         Updated calls to declare_ptable and implement_ptable.
3065         (glyph): Use schar for back_color_idx and fore_color_idx.
3066         (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
3067         (tty_printer::tty_color, tty_printer::tty_printer,
3068         tty_printer::color_to_idx, tty_printer::put_color): Updated.
3070 2003-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
3072         * src/roff/nroff/nroff.sh: Add option -d for completeness.
3073         * src/roff/nroff/nroff.man: Updated.
3075 2003-07-05  Werner LEMBERG  <wl@gnu.org>
3077         * NEWS, tmac/groff_www.man: Updated.
3078         * doc/Makefile.sub: Updated.
3080 2003-07-05  Gaius Mulley  <gaius@glam.ac.uk>
3082         Implement support for multiple HTML output files.
3084         * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
3085         -j command line option.
3087         * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
3088         global variables.
3089         (file): New fields `new_output_file', `require_links',
3090         `output_file_name'.
3091         (file::file): Updated.
3092         (files::set_file_name, files::set_links_required,
3093         files::are_links_required, files::is_new_output_file,
3094         files::file_name, files::next_file_name): New functions.
3095         (header_desc): New fields `no_of_level_one_headings',
3096         `header_filename'.
3097         (header_desc::header_desc): Updated.
3098         (header_desc::write_headings): Handle multiple files.
3099         (html_printer::write_header): Save file name in which header occurs.
3100         (html_printer::determine_header_level): Possibly split files on
3101         level one headings.
3102         (html_printer::do_links, html_printer::troff_tag): Updated.
3103         (html_printer::insert_split_file, html_printer::do_job_name,
3104         html_printer::emit_link, html_printer::write_navigation,
3105         html_printer::do_file_components): New functions.
3106         (html_printer::~html_printer): Handle multiple files.
3107         (main): Handle command line option `-j'.
3109         * src/devices/grohtml/grohtml.man: Updated.
3111         * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
3112         which splits file.
3114         * tmac/www.tmac (JOBNAME): New macro.
3115         * tmac/s.tmac (SH-NO-TAG): New macro.
3116         (@SH): Call SH-NO-TAG.
3117         (@NH): Updated.
3119 2003-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
3121         * tmac/groff_mdoc.man: Improve documentation of punctuation
3122         characters.
3124 2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>
3126         * tmac/doc.tmac (Bd): Change to doc-Li-font later.
3128 2003-07-03  Werner LEMBERG  <wl@gnu.org>
3130         * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
3132 2003-07-01  Ruslan Ermilov  <ru@FreeBSD.org>
3134         * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
3135         after `/*' and `*/'.
3136         Fix spacing.
3137         (Fn, Fo): Reduce indentation in synopsis.
3139         * tmac/doc-common (doc-check-depth): New macro.
3140         (doc-end-macro, Sh, Ss): Use it.
3141         (Cd): Fix behaviour in synopsis.
3142         (In): Make it parsed and callable.
3143         If not in the synopsis, represent the C header file enclosed in
3144         angle brackets.
3145         (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
3146         Use minus, not hyphen.
3148         * tmc/groff_mdoc.man: Updated.
3150 2003-07-01  Werner LEMBERG  <wl@gnu.org>
3152         Integrated grap2graph, contributed by Eric S. Raymond.
3154         * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
3155         New files.
3156         * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
3157         contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
3159 2003-07-01  Colin Watson  <cjwatson@debian.org>
3161         * src/xditview/*.c: Add prototypes, fix return types, add includes.
3162         Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
3164 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
3166         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
3168 2003-06-31  Werner LEMBERG  <wl@gnu.org>
3170         * doc/Makefile.sub (CLEANADD): Remove all files created by
3171         running `make groff.{pdf,dvi}'.
3173         * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
3174         src/xditview also.
3176 2003-06-30  Werner LEMBERG  <wl@gnu.org>
3178         * Makefile.in (SHELL): Define as @SHELL@.
3179         (mkinstalldirs): Use $(SHELL).
3180         (MDEFINES): Add $(SHELL).
3181         * Makefile.comm (SHELL): Removed.
3183 2003-06-29  Werner LEMBERG  <wl@gnu.org>
3185         * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
3186         The X11 documentation files use them.
3187         * tmac/groff_ms.man, doc/groff.texinfo: Document them.
3189 2003-06-15  Robert Goulding  <goulding@Princeton.EDU>
3191         * tmac/e.tmac (@C): Handle .ad also.
3193 2003-06-12  Werner LEMBERG  <wl@gnu.org>
3195         * src/preproc/tbl/tbl.man: Document formatting of text blocks.
3197         * src/roff/troff/input.cc (token::next) <handle_escape_char>:
3198         Assign `n' even here.  It is possible to construct a node
3199         immediately following an escape character:
3201           .di xx
3202           \?\\\?a
3203           .br
3204           .di
3205           .xx
3207 2003-06-10  Werner LEMBERG  <wl@gnu.org>
3209         * README.WIN32: Removed.
3210         * MANIFEST: Updated.
3212 2003-06-07  Werner LEMBERG  <wl@gnu.org>
3214         * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
3216 2003-06-05  Werner LEMBERG  <wl@gnu.org>
3218         * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
3219         in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
3221 2003-06-03  Werner LEMBERG  <wl@gnu.org>
3223         * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
3224         is done by the calling function.
3226 2003-05-22  Ruslan Ermilov  <ru@FreeBSD.org>
3228         * tmac/X.tmac: Fix definition of `em'.
3230 2003-05-22  Werner LEMBERG  <wl@gnu.org>
3232         * src/roff/troff/input.cc (return_macro_request): Fix detection of
3233         argument.
3235 2003-05-18  Werner LEMBERG  <wl@gnu.org>
3237         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
3238         to make items work which consist only of a tag.
3240 2003-05-17  Werner LEMBERG  <wl@gnu.org>
3242         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
3243         aren't stretched in a tag (this can fail with unformatted boxes).
3244         Instead, insert a break and go back one line.
3246 2003-05-16  Werner LEMBERG  <wl@gnu.org>
3248         * src/roff/troff/input.cc (return_macro_request): If called with
3249         argument pop macro twice.  We need this to trace `return'.
3251         * tmac/trace.tmac: Handle `return'.
3252         Fix typos.
3254         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3255         Document.
3257 2003-05-15  Larry Kollar  <kollar@alltel.net>
3259         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
3260         registers `FPS', `FVS', and `FPD'.
3262 2003-05-15  Werner LEMBERG  <wl@gnu.org>
3264         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
3265         correctly.
3267 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
3269         * tmac/groff_mdoc.man: Slight improvements.
3271 2003-05-03  Werner LEMBERG  <wl@gnu.org>
3273         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
3274         `doc-header-space' after header line if register `cR' is set.
3276 2003-05-02  Werner LEMBERG  <wl@gnu.org>
3278         * TODO: Updated.
3280 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
3282         * tmac/doc-common (Nd): Use \[em].
3284 2003-05-01  Werner LEMBERG  <wl@gnu.org>
3286         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
3287         doc-footer-space): Initialize to 0.5i.
3288         (doc-setup-page-layout): Don't set doc-header-space and
3289         doc-footer-space.
3291 2003-04-30  Werner LEMBERG  <wl@gnu.org>
3293         * REVISION: Set to 1.
3295         * doc/pic.ms: Document possible problems with `figname'.
3297 2003-04-29  Werner LEMBERG  <wl@gnu.org>
3299 Version 1.19 released
3300 =====================
3302         * VERSION: Set to 1.19.
3303         * REVISION: Set to 0.
3304         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
3306         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
3307         Define charset as `US-ASCII' in html output.
3309         * tmac/www.tmac (ULE): Add missing scaling indicator.
3311         * win32-diffs: Removed.
3313 2003-04-28  Werner LEMBERG  <wl@gnu.org>
3315         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
3316         `.da' and `.boxa'.
3317         Document how to insert discardable whitespace with `.ss'.
3319 2003-04-27  Werner LEMBERG  <wl@gnu.org>
3321         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
3322         work with plain TeX also.
3324         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
3326 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
3328         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
3329         Use a loose DTD.
3331 2003-04-24  Werner LEMBERG  <wl@gnu.org>
3333         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
3334         vbox with positive height and zero depth if in TeX mode.
3336         * NEWS: Document glyph name changes for grodvi and grolj4.
3338 2003-04-23  Werner LEMBERG  <wl@gnu.org>
3340         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
3341         * doc/pic.ms: Fixed.
3343 2003-04-21  Werner LEMBERG  <wl@gnu.org>
3345         HP-UX 10.20 has `snprintf' but it isn't declared.
3347         * configure.ac: Add declaration test for snprintf.
3348         * configure: Regenerated.
3349         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
3350         * src/include/config.hin: Regenerated.
3352 2003-04-19  Werner LEMBERG  <wl@gnu.org>
3354         Add keyword `figname' to pic, specifying the name of the picture
3355         box in TeX mode.  Based on a patch from William J Poser
3356         <wjposer@unagi.cis.upenn.edu>.
3358         * src/preproc/pic/pic.y: New token `FIGNAME'.
3359         (macro_name): New rule of type <str>.
3360         (placeless_element): Handle `FIGNAME'.
3361         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
3362         * src/preproc/pic/main.cpp (graphname): New global variable.
3363         (do_picture): Initialize `graphname'.
3364         * src/preproc/pic/pic.h: Updated.
3365         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
3366         `graphname'.
3367         Simplify TeX code.
3368         (tex_output::text): Beautify output.
3369         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
3370         `shaded' and `outlined' unconditionally.
3371         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
3372         Minor improvements.
3374         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
3375         greater is necessary.
3377 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
3379         Add option -r to soelim to avoid emission of `.lf' lines.
3380         Add option -t to produces TeX comment lines instead of `.lf' lines.
3382         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
3383         and `tex_flag'.
3384         (usage): Updated.
3385         (main): Handle `-r' and `-t'.
3386         (set_location): Handle `raw_flag' and `tex_flag'.
3387         * src/preproc/soelim/soelim.man, NEWS: Updated.
3389 2003-04-17  Werner LEMBERG  <wl@gnu.org>
3391         * tmac/hyphenex.sh: Replaced with...
3392         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
3393         nightmares.
3395         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
3396         if --quiet is used for the configure script.
3397         * configure: Regenerated.
3399 2003-04-16  Werner LEMBERG  <wl@gnu.org>
3401         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
3402         Add `const' to second argument.
3403         (html_printer::add_table_end): Add `const' to argument.
3404         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
3405         `const' to arguments.
3406         * src/devices/grohtml/html-text.h: Updated.
3408         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
3409         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
3410         argument.
3412         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
3413         cast for integer constant.
3415         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
3416         (writeNbytes): Add `const' to first argument.
3417         (writeString): Add `const' to argument.
3418         (char_buffer::can_see): Add `const' to third argument.
3419         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
3420         `const' to argument.
3421         * src/preproc/html/pushback.h: Updated.
3423         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
3424         (include_path_append): Add `const' to argument.
3425         (do_file): Updated.
3427         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
3428         for `value'.
3429         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
3430         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
3431         for `value'.
3432         (unicode_decompose_init::unicode_decompose_init): Updated.
3433         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
3434         for `value'.
3435         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
3436         * src/roff/troff/input.cc (process_startup_file): Add `const' to
3437         argument.
3439         * tmac/hyphenex.sh: Make script more portable by using a here
3440         document.
3442 2003-04-15  Werner LEMBERG  <wl@gnu.org>
3444         Renamed all `*.cc' files to `*.cpp'.
3445         Updated all configuration files, makefiles, and documentation.
3447 2003-04-14  Werner LEMBERG  <wl@gnu.org>
3449         * tmac/hyphenex.sh: Slight improvements.
3451 2003-04-13  Werner LEMBERG  <wl@gnu.org>
3453         * font/devascii/R.proto, font/devcp1037/R.proto,
3454         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
3455         character slots with unnamed glyphs.
3457         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
3458         (an-first): New global variable.
3459         (an-header): Emit vertical space between multiple man pages.
3461 2003-04-11  Werner LEMBERG  <wl@gnu.org>
3463         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
3464         values.
3466 2003-04-10  Werner LEMBERG  <wl@gnu.org>
3468         * PROBLEMS: Revised.
3470 2003-04-10  Bernd Warken  <bwarken@mayn.de>
3472         * doc/webpage.ms: Improved.
3474 2003-04-09  Werner LEMBERG  <wl@gnu.org>
3476         Add register \n[.height] which returns the value of \H.
3477         Add register \n[.slant] which returns the value of \S.
3479         * src/roff/troff/env.cc (init_env_requests): Implement.
3480         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3481         Document.
3483 2003-04-08  Werner LEMBERG  <wl@gnu.org>
3485         * tmac/html.tmac: Move some of the data into html-end.tmac.
3486         Remove most of the character translations for eqn since html fonts
3487         now cover those characters.
3488         Load www.tmac.
3489         * tmac/html-end.tmac: New file.
3490         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
3491         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
3492         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
3494 2003-04-07  Werner LEMBERG  <wl@gnu.org>
3496         * man/groff_out.man: Document negative values of `N' if -Thtml is
3497         used.
3499 2003-04-06  Werner LEMBERG  <wl@gnu.org>
3501         * Makefile.comm (depend.temp): Check location of YTABC.
3503 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3505         * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
3506         binary path.
3507         (groff_bin_path): Rename to GROFF_BIN_PATH.
3508         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3509         * doc/Makefile.in (TROFFBIN): New variable for troff
3510         binary path.
3511         (GROFFBIN): New variable for groff binary path.
3512         (groff_bin_path): Rename to GROFF_BIN_PATH.
3513         (TROFF): Use TROFFBIN.
3514         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3515         * doc/Makefile.sub (GROFFBIN): New variable for groff
3516         binary path.
3517         (groff_bin_path): Rename to GROFF_BIN_PATH.
3518         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3520         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
3521         with INSTALL_SCRIPT.
3522         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
3523         * Makefile.dev (all): Depend on DEVSCRIPTS.
3524         (install_dev): Likewise.
3525         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
3526         scripts.
3527         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
3528         (DEVGENSCRIPTS): New variable to hold generated scripts.
3530 2003-04-05  Werner LEMBERG  <wl@gnu.org>
3532         * src/libs/libdriver/input.cc (IntArray::operator[],
3533         IntArray::get_data): Remove meaningless `const' in return value.
3535         * README.CVS: New file.
3537 2003-04-04  Werner LEMBERG  <wl@gnu.org>
3539         Check for stdint.h in C++, not in C.
3541         * aclocal.m4 (GROFF_STDINT_H): New function,
3542         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
3543         AC_CHECK_HEADERS.
3544         * configure, src/include/config.hin: Regenerated.
3545         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
3548         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
3549         with a negative value, representing the width of the unbreakable
3550         space (only for -Thtml).  grohtml then converts this back to
3551         &nbsp; and uses the value of N as its width.
3553         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3554         unbreakable_space_node::tprint): Emit `N-<width>'.
3555         * src/include/printer.h (printer::set_numbered_char): Make it
3556         virtual.
3557         Make members `font_table' and `nfonts' protected instead of private.
3558         * src/devices/grohtml/post-html.cc
3559         (html_printer::set_numbered_char): New member function.
3562         * src/libs/libgroff/maxfilename.cc:
3563         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
3565         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
3566         emit word marker.
3568 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
3570         * man/roff.man: Small fixes.
3572 2003-04-03  Werner LEMBERG  <wl@gnu.org>
3574         Make groff independent from locale's numeric settings.
3576         * configure.ac: Check for `setlocale'.
3577         * configure, src/include/config.hin: Regenerated.
3579         * src/include/lib.h: Handle HAVE_SETLOCALE.
3581         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
3582         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
3583         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
3586         * doc/groff.texinfo: Change dir category to `Typesetting'.
3587         (Man font macros): Mention that there is no space between arguments
3588         of .BI and friends.
3590         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
3591         (*printer::change_color, *printer::change_fill_color): Add missing
3592         `const'.
3594 2003-04-02  Werner LEMBERG  <wl@gnu.org>
3596         * src/devices/grohtml/html-table.cc (html_table::emit_col,
3597         html_table::is_gap): Compute table widths after converting border
3598         positions to avoid rounding errors.
3600 2003-04-01  Werner LEMBERG  <wl@gnu.org>
3602         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
3603         `space_emitted' properly.
3605 2003-03-31  Werner LEMBERG  <wl@gnu.org>
3607         * src/devices/grohtml/html-table.cc: Fix column width calculation.
3608         (html_table::set_linelength): Don't add 1.
3609         (html_table::add_indent): Don't subtract 1.
3611         * tmac/html.tmac: Set default page offset to zero.
3613 2003-03-30  Werner LEMBERG  <wl@gnu.org>
3615         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
3617         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3618         unbreakable_space_node::tprint): New functions.
3619         (troff_output_file): Make space_char_hmotion_mode::tprint and
3620         unbreakable_space_node::tprint to friends.
3621         * src/roff/troff/node.h: Updated.
3623         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
3624         in the HTML standard).
3626 2003-03-29  Werner LEMBERG  <wl@gnu.org>
3628         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
3629         Otherwise, the following code
3631           .di xxx
3632           .ps 10
3633           a
3634           .br
3635           .di
3636           x\*[xxx]
3638         produces `x a' instead of `xa'.  This is a temporary fix, disabling
3639         font changes in diversions for -Thtml.
3641         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
3642         `HTML-TAG'.
3643         (an-do-tag-html): Merge with ...
3644         (an-do-tag): This macro.
3645         Change code slightly to circumvent grohtml bug.
3646         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
3648         * src/devices/grohtml/html-table.cc (html_table::emit_col,
3649         html_table::is_gap): Round `width' properly.
3651         * tmac/html.tmac: Provide some default layout parameters for
3652         grohtml.
3654         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
3655         command.
3657 2003-03-28  Werner LEMBERG  <wl@gnu.org>
3659         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
3661 2003-03-27  Werner LEMBERG  <wl@gnu.org>
3663         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
3664         defined.
3666 2003-03-20  Werner LEMBERG  <wl@gnu.org>
3668         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
3669         `.vs'.
3670         * doc/groff.texinfo: Updated.
3672 2003-03-19  Werner LEMBERG  <wl@gnu.org>
3674         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
3675         TOKEN_END_TRAP>: Reset `have_input'.
3677 2003-03-18  Werner LEMBERG  <wl@gnu.org>
3679         * src/roff/groff/groff.man: Mention groff_trace man page.
3681 2003-03-16  Werner LEMBERG  <wl@gnu.org>
3683         * Makefile.in (LIBEXT): New variable to indicate the file extension
3684         of library files.  Computed heuristically from $(OBJEXT).
3685         (MDEFINES): Add $(LIBEXT).
3686         * Makefile.lib, Makefile.comm: Use it.
3688         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
3689         overlong lines into smaller chunks.
3690         (get_binary): New function.
3691         (main): Use them.
3692         * src/utils/pfbtops/pfbtops.man: Updated.
3694 2003-03-15  Colin Watson  <cjwatson@debian.org>
3696         * src/roff/groff/groff.man: Minor syntax fix.
3698 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
3700         * src/devices/grops/ps.cc (ps_printer::media_set,
3701         ps_printer::~ps_printer): Handle zero paper width and length.
3703 2003-03-13  Werner LEMBERG  <wl@gnu.org>
3705         Add options -p and -l to grodvi.
3707         * src/devices/grodvi/dvi.cc: Include paper.h.
3708         (landscape_flag, user_paper_length, user_paper_width): New global
3709         variables.
3710         (dvi_printer::begin_page): Emit `papersize' special.
3711         Set color after initialization of `cur_h' and `cur_v'.
3712         (main): Add options `-l' and `-p'.
3713         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
3714         * src/devices/grodvi/grodvi.man, NEWS: Updated.
3716         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
3718 2003-03-12  Werner LEMBERG  <wl@gnu.org>
3720         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
3721         * man/groff_tmac.man: This man page.
3722         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
3723         deprecated.
3725         * tmac/X.tmac: Don't load pspic.tmac.
3727 2003-03-11  Werner LEMBERG  <wl@gnu.org>
3729         Make variable `pr' local to libdriver/input.cc.  Based on a patch
3730         by Bernd Warken <bwarken@mayn.de>.
3732         * src/include/driver.h (pr): Removed.
3734         * src/libs/libdriver/input.cc (pr): New global variable.
3735         (do_file): Deallocate `pr'.
3736         * src/libs/libdriver/printer.cc (pr): Removed.
3738         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
3739         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
3740         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
3741         (main): Don't delete `pr'.
3743 2003-03-10  Werner LEMBERG  <wl@gnu.org>
3745         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
3746         * tmac/papersize.tmac: New file.
3747         * tmac/troffrc: Include `papersize.tmac'.
3748         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
3749         * tmac/an-old.tmac: Set LT to LL by default.
3751         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
3752         doc/groff.texinfo: Updated.
3754         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
3755         bug which caused all odd iso papers to have wrong dimensions.
3757         * src/devices/grops/ps.cc (user_paper_width): New global variable.
3758         (main) <'p'>: Set `user_paper_width' also.
3759         (ps_printer::media_width, ps_printer::media_height): Use values
3760         given with option `-p'.
3762 2003-03-09  Werner LEMBERG  <wl@gnu.org>
3764         * src/include/nonposix.h: Provide default for SET_BINARY.
3766         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
3767         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
3768         unconditionally.
3770         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
3771         (main): Treat \r\n as \n.
3773 2003-03-08  Werner LEMBERG  <wl@gnu.org>
3775         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
3776         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
3778 2003-03-07  Werner LEMBERG  <wl@gnu.org>
3780         Added support to access more than 256 glyphs in Type 1 fonts.
3782         * src/devices/grops/ps.cc (subencoding): New structure.
3783         (style): Add `sub' field.
3784         Updated all users.
3785         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
3786         Add `set_subencoding', `get_subfont' and `encode_subfont' member
3787         functions.
3788         Updated all users.
3789         (ps_printer::set_char): Use `set_subencoding'.
3790         (make_subencoding_name): New function.
3791         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
3792         (ps_printer::~ps_printer): Emit subencoding definitions.
3794         * src/devices/grops/psrm.cc (valid_input_table): New array to
3795         properly support EBCDIC.
3796         (white_space): Add `\f'.
3797         (ps_get_line): Change first argument to be of type `string &'.
3798         Updated all callers.
3799         This allows to get lines of arbitrary length.
3800         Use `valid_input_table'.
3801         Remove warning about non-conforming PS line length.  This seems
3802         not to be of great importance -- for example, dvips don't emit
3803         a warning either.
3804         (PS_LINE_MAX): Removed.
3805         (matches_comment): Change first argument to be of type `string &'.
3807         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
3809         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
3810         %AGL_to_unicode, %default_ligatures): New hash tables.
3811         Read all map entries.
3812         Add unencoded characters.
3813         Check for default ligatures if there are no `L' entries.
3814         Print all kern entries.
3815         Print all characters in charset.
3816         * src/utils/afmtodit/afmtodit.man: Updated.
3818         * font/devps/*: Regerated all fonts.
3820         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
3821         of characters, just use `.trin'.  Otherwise the mapping depends
3822         on the font encoding.
3823         * tmac/ps.tmac: Add `fi' and `fl'.
3824         Improve `Fi' and `Fl'.
3825         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
3826         * tmac/Xps.tmac: Fix `em'.
3828         * NEWS: Updated.
3830 2003-03-04  Werner LEMBERG  <wl@gnu.org>
3832         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
3833         `have_input'.
3835 2003-03-03  Werner LEMBERG  <wl@gnu.org>
3837         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
3839         * font/devps/generate/textmap: Remove entry `similarequal'.
3840         * font/devps/symbolmap: Updated.
3842 2003-03-02  Werner LEMBERG  <wl@gnu.org>
3844         * src/libs/libgroff/font.cc (font::load): Fix error message for
3845         bad character type.
3847         * src/devices/grops/grops.man: Improve documentation of the -b
3848         flag.
3850         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
3851         `ascii' and `cp1047'.
3853 2003-03-01  Werner LEMBERG  <wl@gnu.org>
3855         Document composite glyphs and the `composite' request.
3857         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
3859 2003-02-28  Werner LEMBERG  <wl@gnu.org>
3861         * font/devdvi/generate/ec.map: Add some more Unicode entities.
3862         * font/devdvi/*EC: Updated.
3864         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
3865         * tmac/latin1 (latin1-tr): Undo any previous mapping.
3866         * tmac/troffrc: Load `composite.tmac'.
3867         * tmac/Makefile.sub (NORMALFILES): Updated.
3869         * doc/groff.texinfo (Input Encodings): New section.
3870         * NEWS: Updated.
3872 2003-02-27  Werner LEMBERG  <wl@gnu.org>
3874         * doc/texinfo.tex: New version 2003-02-11.06.
3876         * tmac/doc-common (Dt): Don't emit warning for unknown section.
3877         * tmac/groff_mdoc.man: Fix description of `Dt'.
3879 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
3881         * font/devps/prologue.ps: Fix for included Postscript that does
3882         a setpagedevice -- which is now safely ignored.
3884         * NEWS: Updated.
3886         * src/devices/grops/ps.cc: Now sets the page size in the generated
3887         document.  This is done in two ways: Via a %%-comment for gv and
3888         the like, and via a PageSize and setpagedevice for programs that
3889         understands Postscript proper, like ps2pdf.
3891         * src/devices/grops/ps.h: New broken-flag to avoid page size
3892         definition, if required.
3894         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
3896         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
3897         Not really necessary due to the fix in prologue.ps, but cleaner:
3898         Such information does not belong in an .eps file.
3900         * doc/Makefile.sub: See doc/Makefile.in.
3902 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
3904         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
3905         instead of P1 since the latter is broken in some versions of netpbm.
3906         * configure: Updated.
3908 2003-02-26  Larry Kollar  <kollar@alltel.net>
3910         Make man pages more customizable.
3912         * tmac/an-old.tmac (FT): New register holding footer distance from
3913         bottom.
3914         (HF): New string holding the default heading font.
3915         (TH): Handle registers `IN' and `SN' set on the command line.
3916         Use `FT'.
3917         (PT, BT): New strings to customize header and footer lines.
3918         (an-header, an-footer): Use them.
3919         (SH, SS): Use `HF'.
3920         * tmac/groff_man.man: Document changes.
3922         * doc/groff.texinfo: Document man changes.
3923         Document Ultrix extensions of man.
3925 2003-02-26  Werner LEMBERG  <wl@gnu.org>
3927         * src/roff/troff/input.cc (do_width, do_if_request): Reset
3928         `have_input' after changing back to old environment.
3930         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
3931         function up to be defined before first call.  This is necessary to
3932         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
3934         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
3935         the default font directory also.  Based on a patch from James
3936         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
3937         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
3938         * src/utils/afmtodit/afmtodit.man: Document it.
3940         * NEWS: Updated.
3942         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
3944 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
3946         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
3947         (GROFF_PNMTOPS_NOSETPAGE): New macro.
3948         * configure.ac: Use it.
3949         * configure: Regenerated.
3950         * Makefile.in: Updated.
3952         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
3953         (CLEANADD): Add www.tmac-sed.
3954         (pnmtops_nosetpage): Define default.
3955         (install_data): Handle www.tmac-sed and substitute
3956         @PNMTOPS_NOSETPAGE@.
3957         (stamp-sed): Add www.tmac.
3958         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
3959         It now breaks URLs at suitable places.
3960         (www:substring_ok): New register set by...
3961         (www:@test_substring): New macro.
3962         (www:error): New alias to www-error.
3963         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
3964         New macros.
3965         (URL): Use www:url_breaks.
3966         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
3967         (CDS, CDE): New macros.
3969 2003-02-25  Werner LEMBERG  <wl@gnu.org>
3971         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
3972         buffer overflow.
3974 2003-02-24  Werner LEMBERG  <wl@gnu.org>
3976         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
3977         can be negative also.
3979         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
3980         `int16'.
3981         (read_char_table): Avoid negative ascenders.
3982         (output_charset): Add cast.
3983         * font/devlj4/*: Regenerated.
3985         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
3986         possible.
3988         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
3989         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
3990         of `<>'.
3991         * font/devdvi/*: Regenerated.
3993         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
3994         normal width, while the previously used characters (U+2329 and
3995         U+232A) are classified as wide due to canonical equivalence with the
3996         CJK punctuation characters U+3008 and U+3009.
3998         * font/devutf8/R.proto: Updated.
3999         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
4001         * man/groff_char.man: Simplify handling of table traps by
4002         introducing `start block' and `end block' macros.
4003         (Ns, Ne, 2s, 2e, Ds, De): New macros.
4004         (DL): Make it work with Unix troff also.
4005         Fix code values of `la' and `ra'.
4007         * tmac/dvi.tmac: Define `<>' for CW and CWI.
4009 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
4011         * src/devices/grohtml/post-html.cc (element_list::~element_list):
4012         New destructor, fixing a major memory leak.
4014 2003-02-22  Werner LEMBERG  <wl@gnu.org>
4016         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
4017         to be in conformance with Unicode 3.0 and newer.
4019         * font/devlj4/generate/text.map: Add `Eu'.
4020         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
4021         * font/devlj4/S: Regenerated.
4023         * man/groff_char.man: Completely rewritten.
4025         * doc/groff.texinfo: Fix description of request and macro arguments.
4027 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
4029         Valgrind fixes.
4031         * src/devices/grohtml/html-table.cc (html_table::~html_table):
4032         Deallocate `columns' list.
4033         * src/devices/grohtml/post-html.cc (char_block::~char_block):
4034         New destructor.
4035         (text_glob::text_glob_html, text_glob::text_glob_special,
4036         text_glob::text_glob_line, text_glob::text_glob_auto_image,
4037         text_glob::text_glob_tag): Avoid memory leaks.
4038         (text_glob::remember_table): Free memory before reassigning.
4040 2003-02-19  Werner LEMBERG  <wl@gnu.org>
4042         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
4043         alias `hbar'), the Planck constant over two pi.
4045         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
4046         `+e' for position 34.
4047         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
4048         `u2662' and `u2661'.
4049         * font/devdvi/{MI,S}: Regenerated.
4050         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
4051         * font/devlbp/*: Add `hbar' alias.
4052         * font/devlj4/generate/special.map: Ditto.
4053         * font/devlj4/S: Regenerated.
4054         * font/devps/generate/symbolchars: Add `+e'.
4055         * font/devps/generate/textmap: Fix PS name for `-h'.
4056         Add `hbar' alias.
4057         * font/devps/symbolmap: Regenerated.
4059         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
4061         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
4062         `-h', `hbar'.
4063         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
4064         `-h'.
4066         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
4067         `hbar'.
4068         * tmac/tty-char.tmac: Add `+e'.
4070 2003-02-17  Werner LEMBERG  <wl@gnu.org>
4072         Another round trying to really fix problems with `have_input'.
4074         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
4075         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
4077         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
4078         handling if both foreground and background colors are default.
4080         * doc/groff.texinfo (Debugging): Document .lf differences to
4081         AT&T troff.
4083 2003-02-16  Werner LEMBERG  <wl@gnu.org>
4085         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
4086         null-bytes in created string.
4088         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
4089         alias_macro, lookup_request): Improve warning messages.
4091         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
4092         not `strdup'.
4093         Free `last_image_filename'.
4095         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
4096         `buffer'.
4097         (imageList::createPage, imageList::createImage): Use `free', not
4098         `a_delete'.
4099         (imageItem::~imageItem): Free `imageName'.
4100         (addRegDef): Use `strsave', not `strdup'.
4101         (get_resolution): Free `pathp'.
4103 2003-02-15  Werner LEMBERG  <wl@gnu.org>
4105         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
4106         to `dummy'.
4108 2003-02-14  Werner LEMBERG  <wl@gnu.org>
4110         Add memory management for colors to deallocate unnamed colors
4111         properly.
4113         * src/include/color.h (color): New members `free_list' and `next'.
4114         New member functions `new' and `delete'.
4115         Add destructor.
4116         * src/libs/libgroff/color.cc: Implement it.
4118         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
4119         for array size of new operator.
4121         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
4122         redundant comparison.
4124         * src/roff/troff/input.cc (word_space_node::reread,
4125         hmotion_node::reread): Avoid warning about unused parameter.
4126         (reset_output_registers): Remove redundant parameter.
4127         (define_color): Undo change 2003-02-12.
4129         * src/roff/troff/reg.h: Updated.
4131         * src/roff/troff/node.cc (troff_output_file::really_print_line,
4132         output_file::put_filename, real_output_file::really_put_filename,
4133         ascii_output_file::really_print_line,
4134         break_char_node::get_hyphen_list): Avoid warning about unused
4135         parameter.
4136         (suppress_node::tprint): Updated.
4138         * configure.ac: Check declaration for rand() and srand().
4139         * configure: Regenerated.
4141         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
4142         conditionally.
4143         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
4144         and srand().
4146         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
4147         to avoid compiler warnings.
4149         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
4150         unused.
4152         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
4153         is unused.
4154         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
4155         (unused) parameter.
4156         Updated all callers.
4158         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
4159         is unused.
4160         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
4161         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
4163         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
4164         Parameter is unused.
4165         (html_printer::add_table_end): Define parameter conditionally.
4166         * src/devices/grohtml/output.cc (simple_output::special): Parameter
4167         is unused.
4169         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
4170         (lbp_printer::set_char): Last parameter is unused.
4172         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
4174 2003-02-13  Werner LEMBERG  <wl@gnu.org>
4176         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
4177         Make \D'f ...' move horizontally again for backwards compatibility.
4178         Replace it with \D'Fg ...' where appropriate to avoid dependency
4179         on horizontal resolution.
4181         * src/roff/troff/input.cc (do_get_long_name): New function.
4182         (get_long_name): Call it.
4184         (read_draw_node): Handle `\D'Fx ...' by calling ...
4185         (read_color_draw_node): New function.
4187         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
4188         `end'.
4189         Pass it to `do_get_long_name' which is used instead of
4190         `get_long_name'.
4192         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
4193         unnecessary value guard.
4194         (parse_D_command) <'f'>: Add horizontal shift.
4196         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
4197         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
4198         (FILL_MAX): Removed.
4200         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4201         Updated.
4203 2003-02-12  Werner LEMBERG  <wl@gnu.org>
4205         * src/roff/troff/input.cc (do_name_test, do_expr_test,
4206         do_zero_width): Push `\n' if closing delimiter is missing.
4208         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
4209         <'F'>: Make \F non-transparent at the beginning of line.
4210         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
4211         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
4212         `have_input'.
4214         (define_color): Free color in case of reassignment.
4216         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
4217         @DefescListEnd): Use @Var, not @var.
4218         Fix all calls.
4220         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
4222         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
4223         `shaded' and `outlined' arrays.
4224         (object_spec::object_spec): Initialize `shaded' and `outlined'.
4225         (graphic_object::set_fill_color, graphic_object::set_outline_color):
4226         Use strsave.
4227         (closed_object::set_fill_color): Ditto.
4228         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
4229         instead of strdup.
4230         (troff_output::reset_color): Use a_delete instead of free.
4231         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
4233 2003-02-11  Werner LEMBERG  <wl@gnu.org>
4235         * doc/groff.texinfo: Improve documentation of `ad'.
4236         Document that \D'f...' is dependent on the horizontal resolution.
4237         * man/groff_diff.man: Improve documentation of \D'f...'.
4239         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
4240         compensating \h'...' for \D'f ...' since the latter no longer moves
4241         current position.
4242         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
4244 2003-02-10  Werner LEMBERG  <wl@gnu.org>
4246         Improve error messages for `x F' (and `F') commands.
4248         * src/include/error.h: Add declaration for
4249         `current_source_filename'.
4250         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
4251         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
4252         parameter for source file string.
4253         Updated all callers.
4255         * src/libs/libdriver/input.cc: Add `current_source_filename'.
4256         (remember_source_filename): New function.
4257         (parse_x_command <'F'>, do_file <'F'>): Use it.
4259 2003-02-09  Werner LEMBERG  <wl@gnu.org>
4261         Make grotty not emit warnings about unknown colors more than
4262         necessary.
4264         * src/devices/grotty/tty.cc: Include `ptable.h'.
4265         (TTY_MAX_COLORS): Removed.
4266         (DEFAULT_COLOR_IDX): Defined to -1.
4267         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
4268         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
4269         Change `tty_colors' to be a ptable.
4270         First arg of `put_color' is now `char'.
4271         New functions `make_rgb_string' and `tty_color'.
4272         (tty_printer::tty_printer): Use `tty_color'.
4273         (tty_printer::color_to_idx): Return value is now `char'.
4274         Use `tty_color'.
4276         * src/include/color.h (color): Add `print_color' member function.
4277         * src/libs/libgroff/color.cc (color::print_color): Implement it.
4279 2003-02-08  Werner LEMBERG  <wl@gnu.org>
4281         Valgrind fixes.
4283         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
4284         encoding file.
4286         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
4287         assume that value has been allocated with `new[]', thus use
4288         `a_delete' for deallocation.
4290         * src/libs/libdriver/input.cc (get_integer_arg,
4291         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
4292         where appropriate.
4294         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
4295         * src/libs/libgroff/nametoindex.cc
4296         (character_indexer::named_char_index): Use `new <type>[1]'.
4298         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
4299         <type>[1]'.
4300         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
4301         (split_text): Use `a_delete'.
4303         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
4304         <type>[1]'.
4306         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
4307         harmless memory leak.
4308         (hyphen_trie::read_patterns_file): Initialize `buf'.
4309         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
4310         Initialize `current_fill_color'and `current_glyph_color'.
4311         * src/roff/troff/glyphuni.cc
4312         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
4313         * src/roff/troff/uniuni.cc
4314         (unicode_decompose_init::unicode_decompose_init): Ditto.
4315         * src/roff/troff/uniglyph.cc
4316         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
4318 2003-01-26  Werner LEMBERG  <wl@gnu.org>
4320         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
4321         `access' before calling `unlink'.
4322         (do_file): Handle __EMX__.
4324         * src/include/nonposix.h: Handle __EMX__.
4326         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
4327         (fontpath,tmacpath): Use it.
4328         (MDEFINES): Add it.
4329         Sorted alphabetically.
4331         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
4332         @SEP@.
4333         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
4334         @SEP@.
4336 2003-01-27  Werner LEMBERG  <wl@gnu.org>
4338         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
4339         New files, copied from gnulib.
4340         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
4341         * configure.ac: Updated.
4342         * configure: Regenerated.
4344         * src/include/config.hin: Regenerated.
4345         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
4346         Don't define `strcasecmp' as `strcmp'.
4347         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
4348         Dont define `strncasecmp' as `strncmp'.
4350         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
4351         Removed.
4353 2003-01-26  Werner LEMBERG  <wl@gnu.org>
4355         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
4356         s/unline/unlink/.
4358 2003-01-25  Werner LEMBERG  <wl@gnu.org>
4360         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
4362 2003-01-24  Werner LEMBERG  <wl@gnu.org>
4364         Add US-english hyphenation exceptions (converted from Barbara
4365         Beeton's hyphenation exception log reports which appear irregularly
4366         in TUGBoat).
4368         * tmac/hyphen.us: Updated to latest version.
4369         * tmac/README: Updated.
4370         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
4371         * tmac/troffrc: Load `hyphenex.us'.
4372         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
4373         * doc/groff.texinfo: Updated.
4375 2003-01-23  Werner LEMBERG  <wl@gnu.org>
4377         Improve hyphenation slightly.  This is a first step in redesigning
4378         the hyphenation algorithm to make it more flexible (e.g. allowing
4379         kerns and ligatures between the hyphenation character and the
4380         following character -- while not used normally in English, other
4381         languages like German would benefit).
4383         * src/roff/troff/env.cc (environment::hyphenate_line): Use
4384         assertion instead of if-clause.
4385         Let `get_hyphen_list' return the number of involved characters in
4386         the hyphenation pattern instead of computing it directly (which
4387         often yields too small values).
4388         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
4389         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
4390         parameter.
4392 2003-01-22  Werner LEMBERG  <wl@gnu.org>
4394         Fixing a bug which caused groff to hang if the hyphenation exception
4395         dictionary tried to grow.
4397         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
4398         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
4399         pointer to dictionary.
4401 2003-01-20  Werner LEMBERG  <wl@gnu.org>
4403         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
4404         negative left italic correction.
4405         * src/utils/afmtodit/afmtodit.man: Document it.
4407         * font/devps/generate/Makefile (RFLAG): Add `-m'.
4408         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
4409         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
4411         * NEWS: Updated.
4413 2003-01-16  Werner LEMBERG  <wl@gnu.org>
4415         * NEWS: Updated.
4417 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
4419         * src/preproc/refer/refer.man: Mention REFER environment variable.
4421 2003-01-05  Werner LEMBERG  <wl@gnu.org>
4423         Similar to \[is], the square root glyph (\[sr]) and the square root
4424         extension glyph (\[radicalex]) are now text symbols.  The new
4425         mathematical versions are called \[sqrt] and \[sqrtex],
4426         respectively.
4428         * font/devX*/S: Regenerated.
4429         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
4430         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
4431         * font/devdvi/EX, font/devdvi/S: Regenerated.
4432         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
4433         * font/devlj4/generate/special.map: Add `sqrt'.
4434         * font/devlj4/S: Regenerated.
4435         * font/devps/generate/textmap: Add `sqrt'.
4436         * font/devps/S, font/devps/symbolmap: Regenerated.
4438         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
4439         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
4440         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
4441         overlap horizontally.
4443         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
4444         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
4445         Fix `radicalex'.
4447         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
4448         and `sqrtex' are overlapping glyphs.
4450 2003-01-04  Werner LEMBERG  <wl@gnu.org>
4452         * font/devdvi/generate/texsy.map: Add `is'.
4453         * font/devps/symbolmap: Regenerated.
4454         * font/devdvi/*TC, MI, S: Regenerated.
4456         * tmac/dvi.tmac: Remove `is'.
4458 2003-01-03  Werner LEMBERG  <wl@gnu.org>
4460         `is' is now a text symbol (only relevant for dvi).  The math variant
4461         can be accessed with `integral'.
4463         * font/devX*/S: Regenerated.
4464         * font/devdvi/generate/texex.map: Remove `is'.
4465         * font/devdvi/EX: Updated.
4466         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
4467         * font/devlj4/generate/special.map: Ditto.
4468         * font/devlj4/S: Regenerated.
4469         * font/devps/generate/textmap: Add `integral'.
4470         * font/devps/S: Regenerated.
4472         * tmac/dvi.tmac: Define `is'.
4474         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
4476         * src/preproc/tbl/main.cc (process_format): Fix error message.
4478 2003-01-02  Werner LEMBERG  <wl@gnu.org>
4480         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
4481         * font/devps/textmap: Fix entries for `ne' and `nc'.
4482         * font/devps/symbolmap: Regenerated.
4484         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
4485         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
4486         `38', `58', `78', `-+', `|=', `nc', `ne'.
4488         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
4489         Use `schar' for `aq'.
4490         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
4491         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
4492         * tmac/tty.tmac: Add `ne'.
4494         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
4495         for fallback glyphs.
4497 2002-12-29  Werner LEMBERG  <wl@gnu.org>
4499         Add glyph `|='.
4501         * font/devX*/*: Regenerated.
4502         * font/devdvi/generate/ec.map: Remove `eq'.
4503         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
4504         Assign `|=' to position 39.
4505         * font/devdvi/*EC, S: Regenerated.
4506         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
4507         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
4508         Assign `|=' to position 549.
4509         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
4510         `equalmath'.
4511         Add `uni2243' for `|='.
4513         * tmac/ec.tmac: Add `eq'.
4514         * tmac/dvi.tmac: Add `=~'.
4515         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
4516         `|='.
4518 2002-12-21  Werner LEMBERG  <wl@gnu.org>
4520         * font/devdvi/generate/tc.map: Remove `**'.
4521         * font/devdvi/*TC: Regenerated.
4522         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
4523         `78', `<<', `>>'.
4524         * font/devutf8/NOTES: Updated.
4526         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
4527         Don't give default parameter to `set_macro'.
4528         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
4529         instead of `set_macro'.
4530         (charinfo::setx_macro): Implement it.
4531         (charinfo::set_macro): Don't change `mode'.
4533         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
4534         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
4535         * tmac/dvi.tmac: Define `!=' with `.schar'.
4537 2002-12-20  Werner LEMBERG  <wl@gnu.org>
4539         * font/devX*/S: Regenerated.
4540         * font/devdvi/generate/ec.map: Remove `pl'.
4541         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
4542         * font/devdvi/*{TC,EC}: Regenerated.
4543         * font/devhtml/R.proto: Add `-+'.
4544         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
4545         * font/devlbp/*: Remove `or'.
4546         * font/devlj4/generate/special.map: Remove `or'.
4547         * font/devlj4/S: Regenerated.
4548         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
4549         `seveneighths', `threeeighths'.
4550         Remove `plusmath'.
4551         Replace `minusplus' with `uni2213'.
4552         * font/devps/symbolmap: Regenerated.
4553         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
4554         Add `-+'.
4556         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
4557         function.
4558         * src/roff/troff/node.cc (troff_output_file::put_char_width):
4559         Call glyph_color and fill_color even if tcommand_flag isn't set.
4560         (make_node, node::add_char): Check not ci->is_fallback but
4561         ci->is_normal.
4563         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
4564         * tmac/ec.tmac: Add .rchar entry for `f/'.
4565         Don't remove `12', `14', `34'.
4566         Define `pl' to be always roman.
4567         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
4568         Define `18', `38', `58', `78'.
4569         * tmac/tty.tmac: Add `-+'.
4570         * tmac/dvi.tmac: Define `f/'.
4571         (dvi-frac): Use `f/'.
4572         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
4573         Define `18', `38', `58', `78'.
4575 2002-12-15  Colin Watson  <cjwatson@debian.org>
4577         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
4579 2002-12-10  Werner LEMBERG  <wl@gnu.org>
4581         Add glyph `tno', a textual variant of `no'.
4583         * font/devX*/*: Regenerated.
4584         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
4585         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
4586         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
4587         * font/devdvi/*: Regenerated.
4588         * font/devlbp/*: Add `tno'.
4589         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
4590         * font/devlj4/*: Regenerated.
4591         * font/devps/generate/textmap: Replace `no' with `tno'.
4592         * font/devps/generate/symbolchars: Add `no'.
4593         * font/devps/*: Regenerated.
4595         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
4597         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
4598         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
4600         * NEWS: Updated.
4602         * tmac/dvi.tmac: Replace most `\\' with `\E'.
4603         Add definition for `sd'.
4604         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
4606         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
4608 2002-12-08  Werner LEMBERG  <wl@gnu.org>
4610         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
4611         mode to avoid rounding errors.
4612         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
4614         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
4615         src/roff/troff/troff.man: Improve documentation of -T.
4617 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
4619         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
4620         (run_pipeline) [_WIN32]: Provide working function without `fork'.
4622 2002-12-06  Werner LEMBERG  <wl@gnu.org>
4624         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
4625         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
4626         Scaling Euro.sansserif glyphs down to have the same height as
4627         digits.
4628         Removed unnecessary points; added some extrema.
4630         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4631         Regenerated.
4633 2002-12-04  Werner LEMBERG  <wl@gnu.org>
4635         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
4636         and `Euro.symbol.bold.slanted'.
4637         Improve some glyph offsets and widths.
4638         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4639         Regenerated.
4640         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
4641         typo.
4642         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
4643         direcory.
4645         * tmac/europs.tmac: Updated to new glyph indices.
4646         Use Euro.symbol for font familiy `A'.
4648         * doc/groff.texinfo: Minor improvements.
4650 2002-12-02  Werner LEMBERG  <wl@gnu.org>
4652         * font/devdvi/generate.tc.map: s/%O/%0/.
4653         * font/devdvi/*TC: Regenerated.
4655         * src/roff/troff/div.cc (init_div_requests): Sorted.
4657         * tmac/dvi.tmac: Remove `Ye'.
4658         * tmac/ec.tmac: Remove `Ye'.
4659         Add .rchar entry for `de'.
4661         * man/groff.man, man/groff_diff.man: Document register `.pe'.
4662         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
4663         * NEWS: Updated.
4665 2002-11-30  Werner LEMBERG  <wl@gnu.org>
4667         Add PS font for various Euro glyphs.
4669         * font/devps/generate/freeeuro.sfd: New master font file for
4670         pfaedit.
4671         * font/devps/generate/sfdtopfa.pe: New conversion script for
4672         pfaedit.
4673         * font/devps/generate/Makefile (FONTS): Add `EURO'.
4674         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
4675         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
4676         `freeeuro.sfd'.
4677         * font/devps/EURO: Generated from `freeeuro.afm'.
4678         * font/devps/download: Add `freeuro.pfa'.
4679         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
4680         `freeeuro.pfa'.
4682         * tmac/europs.tmac: New file.
4683         * tmac/ps.tmac: Include `europs.tmac'.
4684         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
4686 2002-11-29  Werner LEMBERG  <wl@gnu.org>
4688         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
4689         * font/devdvi/S: Regenerated.
4690         * font/devhtml/R.proto: Fix `CR' and `ci'.
4691         Add `OK'.
4692         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
4693         Remove `bs'.
4694         * font/devps/symbolmap: Regenerated.
4695         * font/devutf8/R.proto: Fix `CR' and `ci'.
4696         Add `OK'.
4697         * font/devutf8/NOTES: Updated.
4699         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
4700         `ci'.
4701         Add `OK'.
4702         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4704         * tmac/dvi.tmac: Add `lh' and `rh'.
4705         * tmac/Xps.tmac: Fix `lh' and `rh'.
4706         * tmac/X.tmac: Add `OK'.
4707         * tmac/lj4.tmac: Ditto.
4709 2002-11-24  Werner LEMBERG  <wl@gnu.org>
4711         * font/devX*/S: Regenerated.
4712         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
4713         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
4714         * font/devdvi/generate/texsy.map: Remove `or' glyph.
4715         * font/devdvi/S: Regenerated.
4716         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
4717         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
4718         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
4719         `bracketleftbt', `bracketrighttp', `bracketrightex',
4720         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
4721         `braceex', `braceleftex', `bracerightex', `bracerighttp',
4722         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
4723         `rb', and `bv'.
4724         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
4725         * font/devutf8/NOTES: Updated.
4726         * font/devlj4/generate/special.map: Add glyph `braceex'.
4727         * font/devlj4/S: Regenerated.
4729         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
4731 2002-11-14  Werner LEMBERG  <wl@gnu.org>
4733         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
4734         and `vA'.
4735         Fix code for `an'.
4736         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4738         * doc/texinfo.tex: New version from texinfo 4.3.
4739         * doc/groff.texinfo: Updated for texinfo 4.3.
4740         Use @tie{} where appropriate.
4741         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
4742         * font/devdvi/generate/tc.map: Remove `rn'.
4743         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
4744         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
4745         Fix code for `an'.
4746         * font/devX100/*, font/devX100-12/*, font/devX75/*,
4747         font/devX75-12/*: Regenerated.
4749         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
4750         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
4751         Improve definition of `an'.
4752         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
4753         `ru'.
4754         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
4755         * tmac/X.tmac: Add definition for `or'.
4756         * tmac/Xps.tmac: Undo change 2002-11-05.
4757         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
4759 2002-11-11  Werner LEMBERG  <wl@gnu.org>
4761         * src/roff/troff/node.cc (troff_output_file::put_char): Always
4762         call flush_tbuf.
4764 2002-11-10  Werner LEMBERG  <wl@gnu.org>
4766         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
4767         defines a glyph which is searched after the check for fonts declared
4768         with `.special' (and before the check for all mounted special
4769         fonts).  `fschar' defines a glyph for a particular font which is
4770         searched after the check for fonts declared with `.fspecial' (and
4771         before the check for fonts declared with `.special').  `rfschar'
4772         removes glyphs defined with `fschar'.
4774         * src/roff/troff/token.h (char_mode): New enum.
4775         Declare do_define_character.
4776         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
4777         `mode'.
4778         (charinfo::is_fallback): Updated.
4779         (charinfo::is_special): New method.
4780         * src/roff/troff/input.cc (do_define_character): Add and use
4781         optional second parameter used as a prefix for font-specific glyph
4782         names.
4783         (define_character, define_fallback_character): Updated.
4784         (define_special_character): New function.
4785         (init_input_requests): Add `schar'.
4786         (charinfo::charinfo, charinfo::set_macro): Updated.
4787         * src/roff/troff/node.cc: Include `stringclass.h'.
4788         (make_glyph_node): Handle special glyphs defined with `.schar' and
4789         `.fschar'.
4790         (define_font_special_character, remove_font_special_character): New
4791         functions.
4792         (init_node_requests): Sorted.
4793         Add `fschar' and `rfschar'.
4794         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4795         Document new requests.
4797         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
4798         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
4800 2002-11-08  Werner LEMBERG  <wl@gnu.org>
4802         Added new font `SC' (cmtex10) to devdvi.
4804         * devdvi/generate/Makefile (FONTS): Add `SC'.
4805         (SC): New rule.
4806         * devdvi/generate/textex.map: New map file for cmtex.
4807         * devdvi/SC: New.
4808         * devdvi/Makefile.sub (DEVFILES): Updated.
4809         * tmac/dvi.tmac: Add fspecial entries for SC.
4810         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
4811         found before `S' since the font position of `SC' is lower due to the
4812         gaps in DESC's `font' line.
4813         * tmac/ec.tmac: Add a `special' call.
4814         * NEWS: Updated.
4816         * font/devhtml/R.proto: Remove double entry for `ti'.
4817         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
4818         * tmac/tty-char.tmac: Remove entry for `bq'.
4819         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
4820         * tmac/ec.tmac: Don't remove `aq' glyph.
4821         * tmac/X.tmac: Fix entry for `em'.
4822         Add entries for `fo' and `fc'.
4823         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
4825         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
4826         documentation of `special' and `fspecial' requests.
4828 2002-11-05  Werner LEMBERG  <wl@gnu.org>
4830         * font/devascii/R.proto, font/devcp1047/R.proto,
4831         font/devlatin1/R.proto: Remove entry for `.i'.
4832         * font/devdvi/generate/textt.map: Add entry for `ad'.
4833         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
4834         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
4835         We need this for getting kerning values to compose `/l' and `/L'.
4836         * font/devdvi: Regenerated font definition files for CM fonts.
4837         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
4838         * font/devutf8/R.proto: Ditto.
4839         Remove double entry for `ti'.
4841         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
4842         for (groff) ligatures, `la', and `ra'.
4843         Add "'C", "'c", `IJ', and `ij'.
4844         Remove double entry for `ti'.
4845         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
4846         double entries.
4847         Add "'C", "'c", `IJ', and `ij'.
4848         Fix entries for (groff) ligatures, `la', and `ra'.
4850         * tmac/ps.tmac (ps-achar): New macro.
4851         Define "'c" and "'C".
4852         * tmac/tty.tmac: Add entry for `.i'.
4853         * tmac/X.tmac (X-achar): New macro.
4854         Define "'c", "'C", and `:Y'.
4855         Add entries for `IJ' and `ij'.
4856         * tmac/Xps.tmac (Xps-achar): New macro.
4857         Define "'c" and "'C".
4858         Add entries for `IJ' and `ij'.
4859         * tmac/lbp.tmac (lbp-achar): New macro.
4860         Add fallback characters for all groff ligatures and many other
4861         glyphs.
4862         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
4863         Add entries for `/l' and `/L'.
4864         Define "'c" and "'C".
4865         Add entries for `IJ' and `ij'.
4867 2002-11-02  Larry Kollar  <kollar@alltel.net>
4869         * PROBLEMS: Document how to solve Mac OS X compilation problems.
4871 2002-11-02  Werner LEMBERG  <wl@gnu.org>
4873         Adding support for composite glyphs: \[xxx yyy ...] and the
4874         `composite' request.
4876         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
4877         to Unicode-based glyph names.
4878         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
4879         glyph names to groff glyph names.
4880         * src/roff/troff/uniuni.cc: New file for canonically decomposing
4881         Unicode-based glyph names.
4882         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
4883         for handling Unicode glyph names.
4884         * src/roff/troff/input.cc: Include unicode.h.
4885         (composite_glyph_name): New function.
4886         (token::next) <'['>: Handle Unicode glyph names and composite
4887         glyphs.
4888         (composite_dictionary): New dictionary for the `composite' request.
4889         (composite_request): Implement `composite' request.
4890         (init_input_requests): Add `composite'.
4891         Alphabetically sorted.
4892         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
4893         commented out).
4894         (init_env_requests): Alphabetically sorted.
4895         Removed `tas' and `tar' (already commented out).
4896         * src/roff/troff/Makefile.sub: Updated.
4898 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
4900         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
4901         of options.
4903 2002-10-29  Werner LEMBERG  <wl@gnu.org>
4905         Fix computation of .trunc register.  Additionally, its value (and
4906         the value of the .ne register) is now always set before entering the
4907         trap.
4909         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
4910         `needed_space' before calling `space'.
4911         (top_level_diversion::space): Remove special code for 'sp before the
4912         first page.
4913         Call `begin_page' with the discarded space as a parameter.
4914         (top_level_diversion::begin_page): Add optional parameter to set
4915         `truncated_space'.
4916         * src/roff/troff/div.h: Updated.
4918         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
4919         \n[.ne].
4921         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
4922         (LP): Remove superfluous call to `br'.
4923         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
4924         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4926 2002-10-26  Werner LEMBERG  <wl@gnu.org>
4928         * tmac/doc-ditroff: Remove useless switch/variable -rC.
4929         (doc-setup-header): Don't set page register `%'.
4930         * tmac/doc-nroff: Remove variable `C'.
4931         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
4932         (doc-setup-header): Don't set page register `%'.
4933         Don't call `bp'.
4934         * tmac/doc-common (doc-header): Call `ns'.
4935         (doc-paragraph): Protect .sp with .br so that it survives traps
4936         possibly set by the user.
4937         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4939         * tmac/doc*: Replace ' with . for consistency if no effect.
4941 2002-10-26  Werner LEMBERG  <wl@gnu.org>
4943         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
4944         so that it survives traps possibly set by the user.
4946         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
4947         (troff_output_file::set_font): Call flush_tbuf if necessary.
4948         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
4949         flush_tbuf and do_motion only if necessary.
4950         (troff_output_file::start_special,
4951         troff_output_file::put_char_width, troff_output_file::put_char,
4952         troff_output_file::draw): Updated.
4953         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4954         vmotion_node::tprint): Undo change 2002-10-23.
4956 2002-10-25  Werner LEMBERG  <wl@gnu.org>
4958         * tmac/www.tmac (DC): Fix case of overlapping images.
4960 2002-10-23  Werner LEMBERG  <wl@gnu.org>
4962         * src/roff/troff/node.cc (troff_output_file::fill_color,
4963         troff_output_file::glyph_color): Set current color before testing
4964         color_flag.
4965         (troff_output_file::put_char_width, troff_output_file::put_char,
4966         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
4967         before glyph_color.
4968         (troff_output_file::file_color, troff_output_file::glyph_color):
4969         Call do_motion.
4970         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4971         vmotion_node::tprint): Move first, then call fill_color.
4973 2002-10-20  Werner LEMBERG  <wl@gnu.org>
4975         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
4976         possible to use multiple main macro packages.
4978 2002-10-19  Werner LEMBERG  <wl@gnu.org>
4980         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
4981         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
4982         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
4983         is set.
4984         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
4985         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
4987 2002-10-16  Werner LEMBERG  <wl@gnu.org>
4989         * NEWS, doc/webpage.ms: Updated.
4991 2002-10-14  Werner LEMBERG  <wl@gnu.org>
4993         * src/roff/troff/node.cc (troff_output_file::put_char_width,
4994         troff_output_file::put_char, troff_output_file::fill_color,
4995         troff_output_file::glyph_color): Handle case where color pointer
4996         is null.
4998 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
5000         Add the new -r option to grotty.  It is similar to the -i option
5001         except it tells grotty(1) to use the "reverse video" attribute to
5002         render italic fonts.
5004         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
5005         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
5006         (tty_printer::make_underline, tty_printer::put_color,
5007         tty_printer::end_page): Use it.
5008         (main): Add -r switch.
5009         (usage): Updated.
5010         * src/devices/grotty/grotty.man: Document it.
5012 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
5014         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
5015         cast to `unsigned char' to properly read patterns with 8bit
5016         characters.
5018 2002-10-08  Werner LEMBERG  <wl@gnu.org>
5020         * REVISION: Increased to 2.
5022 Version 1.18.1 released
5023 =======================
5025 2002-10-08  Werner LEMBERG  <wl@gnu.org>
5027         * doc/webpage.ms, NEWS: Updated.
5029 2002-10-07  Werner LEMBERG  <wl@gnu.org>
5031         * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
5032         suppress additional whitespace after the header.
5034         * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
5035         with NetBSD.
5037         * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
5039 2002-10-07  Ruslan Ermilov  <ru@FreeBSD.org>
5041         * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
5042         (Dt): Use it to improve language localization (especially Russian
5043         and French).
5045 2002-10-07  Daniel Senderowicz  <daniel@synchrods.com>
5047         * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
5048         * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
5049         drawing commands.
5050         * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
5051         curve type.
5052         Call `picurve' for BSPLINE.
5053         (HGPrintElt): Handle BSPLINE.
5054         * src/preproc/grn/README: Document it.
5056 2002-10-03  Werner LEMBERG  <wl@gnu.org>
5058         * src/roff/troff/node.cc (break_char_node::col): New variable.
5059         Updated constructor.
5060         (space_node::tprint, word_space_node::tprint): Call `fill_color'
5061         unconditionally.
5062         (space_node::space_node): Remove assertion.
5063         (break_char_node::add_self): Pass color argument to space node.
5064         * src/roff/troff/input.cc (token::add_to_node_list, token::process):
5065         Ditto.
5066         * src/roff/troff/env.cc (environment::do_break,
5067         environment::add_padding): Ditto.
5069 2002-10-02  Werner LEMBERG  <wl@gnu.org>
5071         Redesigning color support in troff.  Colors are no longer
5072         represented as separate nodes but are now part of glyph nodes and
5073         friends.  This fixes the current formatting misbehaviour due to the
5074         changes introduced on 2002-09-20.  Some extra code is necessary for
5075         proper grotty support: Without adding color variables to
5076         space-related nodes, the background color would be changed too late.
5078         * src/roff/troff/node.h, src/roff/troff/node.cc:
5079         s/current_pagecolor/current_fill_color/.
5080         s/current_glyphcolor/current_glyph_color/.
5081         (glyph_color_node, fill_color_node): Removed.
5082         (node::get_glyph_color, node::get_fill_color): New virtual member
5083         functions.
5084         (space_node::col): New variable.
5085         Updated constructors of space_node and derived classes accordingly.
5086         (hmotion_node::col): New variable.
5087         Updated constructors of hmotion_node and space_char_hmotion_node
5088         accordingly.
5089         (vmotion_node::col): New variable.
5090         Updated constructor accordingly.
5091         (draw_node::gcol, draw_node::fcol): New variables.
5092         Updated constructor accordingly.
5093         (special_node::gcol, special_node::fcol): New variables.
5094         Updated constructors accordingly.
5095         (troff_output_file::put_char, troff_output_file::put_charwidth,
5096         troff_output_file::draw): Set glyph and fill color.
5097         (troff_output_file::start_special): Set glyph and fill color.
5098         Always set current font.
5099         (troff_output_file::fill_color, troff_output_file::glyph_color):
5100         Don't call `do_motion'.
5101         (glyph_node::gcol, glyph_node::fcol): New variables.
5102         Updated constructors of glyph_node and ligature_node accordingly.
5103         (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
5104         member functions.
5105         (glyph_node::merge_glyph_node,
5106         kern_pair_node::add_discretionary_hyphen,
5107         node::add_discretionary_hyphen): Updated.
5108         (break_char_node::merge_self): Updated.
5109         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
5110         vmotion_node::tprint): Handle color.
5111         (make_glyph_node, make_node, node::add_char): Updated.
5113         * src/roff/troff/env.cc (environment::space_newline,
5114         environment::space, environment::output_line, environment::do_break,
5115         environment::make_tab_node, environment::add_padding, title):
5116         Updated.
5117         (environment_switch, environment_copy): Don't add color nodes.
5119         * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
5120         nothing.
5121         (token::next): Updated.
5122         \m and \M now are as transparent as \s.
5123         (process_input_stack, token::add_to_node_list, token::process,
5124         read_draw_node): Updated.
5125         (charinfo_to_node_list): Don't add color nodes.
5127         * doc/groff.texinfo: Updated.
5129 2002-09-27  Ruslan Ermilov  <ru@FreeBSD.org>
5131         * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
5132         strings.
5134 2002-09-27  Colin Watson  <cjwatson@debian.org>
5136         * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
5138 2002-09-23  Werner LEMBERG  <wl@gnu.org>
5140         * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
5141         appropriate.
5142         (DEFAULT_LINEWIDTH_FACTOR): New macro.
5143         (linewidth_factor): New global variable.
5144         (lbp_printer::set_line_thickness): Fix case for size < 0, using
5145         linewidth_factor.
5146         (long_options): Add -w/--linewidth option.
5147         (usage): Updated.
5148         (main): Handle -w option to set linewidth_factor.
5149         (lbp_printer::lbp_printer): Initialize req_linethickness, not
5150         line_thickness.
5152         * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
5154 2002-09-22  Paco Andrés Verdú  <pandres@dragonet.es>
5156         Fixed a bug in the line thickness setting code.
5158         * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
5159         variable.
5160         (lbp_printer::set_line_thickness): Pass environment as second
5161         parameter.
5162         Implement it actually.
5163         (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
5164         and `set_line_thickness, depending on the current font size.
5166 2002-09-21  Werner LEMBERG  <wl@gnu.org>
5168         Some Debian patches.
5170         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
5171         * src/roff/troff/node.cc (bracket_node::copy): Initialize
5172         `list->last'.
5174 2002-09-20  Werner LEMBERG  <wl@gnu.org>
5176         * configure: Regenerated with autoconf 2.54.
5178 2002-09-20  Werner LEMBERG  <wl@gnu.org>
5180         * src/roff/troff/env.h (environment): Rename cur_glyph_color to
5181         glyph_color.
5182         Rename cur_fill_color to fill_color.
5183         * src/roff/troff/env.cc: Updated.
5185 2002-09-20  Werner LEMBERG  <wl@gnu.org>
5187         * src/roff/troff/env.cc (title): Copy color status after processing
5188         title.
5189         * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
5190         fill color nodes to reset colors properly.
5192         * tmac/www.tmac (DC): Fix color handling.
5194         * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
5195         * doc/groff.texinfo: Fixing documentation of `tl' request.
5196         * doc/webpage.ms: Updated.
5198 2002-09-19  Werner LEMBERG  <wl@gnu.org>
5200         * src/roff/troff/env.cc (environent_switch, environment_copy):
5201         Emit glyph and fill color nodes to initialize colors properly.
5203 2002-09-17  Colin Watson  <cjwatson@debian.org>
5205         * src/roff/troff/env.cc (environment::set_glyph_color,
5206         environment::set_fill_color): Fix typo which prevented \m[] work
5207         correctly.
5209 2002-09-17  Werner LEMBERG  <wl@gnu.org>
5211         Add left and right italic correction to non-slanted PS fonts.  This
5212         is an experimental feature to improve image rendering of grohtml.
5214         * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
5215         ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
5216         * font/devps/*: All non-slanted fonts regenerated.
5217         * NEWS: Updated.
5219 2002-09-16  Werner LEMBERG  <wl@gnu.org>
5221         Add a site-specific font directory.
5223         * Makefile.in (localfontdir, legacyfontdir): New variables.
5224         (fontpath): Use them.
5225         (MDEFINES, uninstall_dirs): Updated.
5226         * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
5227         Remove `FONTPATH' and `MACROPATH'.
5229         * src/roff/troff/troff.man, NEWS: Updated.
5230         * doc/groff.texinfo (Font Directories): New section.
5231         Other minor fixes.
5233         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
5234         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
5235         src/preproc/grn/grn.man: Minor fixes.
5237         * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
5238         Remove unused variable.
5240 2002-09-11  Werner LEMBERG  <wl@gnu.org>
5242         * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
5243         * man/groff_out.man: Fix documentation of 'N'.
5245 2002-09-09  Gaius Mulley  <gaius@glam.ac.uk>
5247         * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
5248         * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
5249         set.
5250         * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
5251         (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
5252         (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
5253         * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
5254         PRE_TAG>: Call `begin' with `FALSE'.
5256 2002-09-09  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5258         * src/libs/libgroff/string.cc (string::extract): Fix position of
5259         terminating null byte.
5261 2002-09-08  Werner LEMBERG  <wl@gnu.org>
5263         Add global option `nospaces' to tbl so that leading and trailing
5264         spaces in data items are ignored.
5266         * src/libs/libgroff/string.cc (string::remove_spaces): New member
5267         function to remove leading and trailing spaces.
5268         * src/include/stringclass.h: Updated.
5270         * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
5272         * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
5273         option.
5274         Fix typo in error messages.
5275         (process_data): Implement `nospaces' option.
5276         * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
5278 2002-09-07  Werner LEMBERG  <wl@gnu.org>
5280         * src/include/config.hin: Add `HAVE_ISATTY'.
5281         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
5282         `fname' member.
5283         * src/libs/libgroff/tmpname.cc: Include `time.h'.
5284         * src/libs/libdriver/input.cc (Char): Add `operator==' and
5285         `operator!=' for `char'.
5286         * doc/groff.texinfo: Replace @ifnottex block for top node with
5287         @ifhtml block.
5289 2002-09-06  Werner LEMBERG  <wl@gnu.org>
5291         * doc/Makefile.in (.texinfo.html): Add -I switch.
5292         * doc/groff.texinfo: Add @ifnottex block for top node to make
5293         translation to HTML work.
5295 2002-09-05  Gaius Mulley  <gaius@glam.ac.uk>
5297         * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
5298         (get_papersize, determine_vertical_offset): Removed.
5299         (char_buffer::do_image): Always specify letter size.
5300         (main): Updated.
5301         (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
5302         -sPAPERSIZE.
5304 2002-09-05  Werner LEMBERG  <wl@gnu.org>
5306         * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
5307         default indentation.
5309 2002-09-04  Gaius Mulley  <gaius@glam.ac.uk>
5311         * src/preproc/html/pre-html.cc (imageList::createPage): Use
5312         -sPAPERSIZE for gs.
5313         (generateImages): Clean up push-back buffer.
5315 2002-09-04  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5317         * doc/groff.texinfo: Minor fixes.
5319 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
5321         * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
5322         (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
5323         (gsPaper): Removed.
5324         (determine_vertical_offset): Use LETTER_LENGTH.
5325         (createPage): Moved to ...
5326         (imageList::createPage): This.
5327         Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
5328         (imageList::getMaxX): New function.
5329         (createImage): Moved to ...
5330         (imageList::createImage): This.
5331         (imageList::createImages): New function.
5332         (generateImages): Read `maxx' directly.
5333         Updated.
5334         (scanArguments): Don't specify `gsPaper' for `-o'.
5335         (makeTempFiles): Call `xtmpfile' with the last argument set to
5336         `TRUE'.
5338 2002-08-24  Werner LEMBERG  <wl@gnu.org>
5340         * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
5341         (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
5342         * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
5343         * src/preproc/html/pushback.cc: Include nonposix.h.
5344         * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
5345         conditionally.
5347 2002-08-23  Werner LEMBERG  <wl@gnu.org>
5349         Use $(OBJEXT) for the object file extension.
5351         * Makefile.comm (.SUFFIXES): Add .obj.
5352         (.cc.obj, .c.obj): New implicit rules.
5353         * Makefile.in (OBJEXT): New variable, initialized from autoconf.
5354         (MDEFINES): Add EXEEXT and OBJEXT.
5355         * */Makefile.sub: s/.o/.$(OBJEXT)/.
5357 2002-08-22  Werner LEMBERG  <wl@gnu.org>
5359         * INSTALL: Mention texinfo 4.2 as a prerequisite.
5361 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
5363         * src/devices/grohtml/post-html.cc (colType): Make enum global to
5364         the file.
5365         (html_printer::update_min_max, html_printer::add_table_end): New
5366         methods.
5367         (html_printer::lookahead_for_tables): Use them.
5368         Reset page offset correctly.
5369         (html_printer::~html_printer): Add creation of creator comment up.
5371 2002-08-20  Werner LEMBERG  <wl@gnu.org>
5373         * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
5374         * man/groff_tmac.man: Fix typos.
5375         * man/groff_font.man: Minor reordering.
5376         * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
5378 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
5380         Avoid endless loops while scanning for tables.
5382         * src/devices/grohtml/post-html.cc (list::insert): Set
5383         ptr->right->left.
5384         (html_printer::next_horiz_pos): Add `text_glob' argument; update
5385         all callers.
5386         Return immediately if that argument is NULL.
5387         (html_printer::calc_nf): Don't test if `g' is NULL.
5388         (html_printer::lookahead_for_tables): Use
5389         `glyphs.move_right_get_data'.
5390         Don't test if `g' is NULL.
5392 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
5394         A better fix, replacing fix 2002-08-15, for increasing SIZE.
5396         * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
5397         a pointer.
5398         (char_block::char_block): Allocate `buffer'.
5399         (char_buffer::add_string): Use it.
5401 2002-08-15  Werner LEMBERG  <wl@gnu.org>
5403         * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
5404         src/devices/grodvi/grodvi.man: Document default line thickness.
5406 2002-08-15  Gaius Mulley  <gaius@glam.ac.uk>
5408         * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
5409         8192.
5411 2002-08-14  Werner LEMBERG  <wl@gnu.org>
5413         * doc/webpage.ms: Updated.
5415 2002-08-09  Werner LEMBERG  <wl@gnu.org>
5417         * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
5418         unbreakable space.
5420 2002-08-08  Aaron Campbell  <aaron@monkey.org>
5422         * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
5423         (&& -> &).
5425 2002-08-08  Werner LEMBERG  <wl@gnu.org>
5427         * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
5428         tok.next().
5429         (read_gray): Ditto.
5430         Don't push back a space but a newline onto the stack.
5432 2002-08-07  Gaius Mulley  <gaius@glam.ac.uk>
5434         Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
5435         inadvertently.
5437         * src/devices/grohtml/post-html.cc (html_printer::end_font,
5438         html_printer::start_font): Handle them.
5439         * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
5440         reset bold and tt.
5441         (html_text::do_bold): Don't reset italic and tt.
5442         (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
5443         * font/devhtml/DESC.proto: Add those fonts.
5444         * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
5446 2002-08-07  Werner LEMBERG  <wl@gnu.org>
5448         * MORE.STUFF: Added gpresent.
5450         * tmac/trace.tmac: Show nesting level by a corresponding amount of
5451         whitespace before printing the logging message.
5453 2002-07-31  Colin Watson  <cjwatson@debian.org>
5455         * src/devices/grohtml/html-table.cc (html_table::finish_row):
5456         Initialize `n' to zero.  This fixes a segfault on ARM.
5458 2002-07-30  Werner LEMBERG  <wl@gnu.org>
5460         * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
5462 2002-07-29  Werner LEMBERG  <wl@gnu.org>
5464         * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
5465         final semicolon.
5467 2002-07-28  Colin Watson  <cjwatson@debian.org>
5469         * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
5470         `.ps'.
5471         (html_printer::html_printer): Initialize `pointsize'.
5473 2002-07-26  Werner LEMBERG  <wl@gnu.org>
5475         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
5476         gnu.png.
5477         (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
5478         (gnu.eps): Add -rle switch to pnmtops.
5479         (distfiles): Add gnu.eps and gnu.png.
5481 2002-07-25  Petter Reinholdtsen  <pere@hungry.com>
5483         * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
5484         Add `operator!='.
5486 2002-07-24  Werner LEMBERG  <wl@gnu.org>
5488         * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
5489         ' \+' but '  *' for sed.
5490         (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
5492 2002-07-23  Werner LEMBERG  <wl@gnu.org>
5494         * doc/groff.texinfo: Document `papersize' keyword.
5495         * NEWS, man/groff_font.man: Updated.
5497 2002-07-23  Colin Watson  <cjwatson@debian.org>
5499         Extend papersize keyword to accept more than a single entry.  The
5500         first valid will be used.
5502         * src/libs/libgroff/font.cc (font::load_desc): Implement it.
5503         (font::scan_papersize): Really skip final newline.
5504         * src/preproc/html/pre-html.cc (get_papersize): Ditto.
5506 2002-07-23  Werner LEMBERG  <wl@gnu.org>
5508         * configure.ac: Test for isatty.
5509         * configure: Regenerated.
5510         * src/include/posix.h: Check HAVE_ISATTY.
5511         * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
5512         * src/utils/lookbib/lookbib.cc: Include posix.h.
5513         Don't declare isatty.
5515 2002-07-21  Werner LEMBERG  <wl@gnu.org>
5517         * NEWS: Add `output' request.
5519         * REVISION: Increased to 1.
5521 Version 1.18.0 released
5522 =======================
5524 2002-07-19  Gaius Mulley  <gaius@glam.ac.uk>
5526         Allow internal glyph indices > 0xFF in grohtml for input characters.
5528         * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
5529         as parameter.
5530         (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
5531         Updated all callers.
5532         (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
5533         (html_printer): Updated.
5535 2002-07-19  Werner LEMBERG  <wl@gnu.org>
5537         * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
5538         * font/devutf8/R.proto: Adding some missing glyphs.
5539         * font/devutf8/NOTES: Updated.
5541         * tmac/dvi.tmac: Add more composite glyphs.
5542         * tmac/html.tmac: Updated.
5544         * man/groff_char.man: Add `sum' and `product' entities.
5546         * NEWS: Updated.
5548 2002-07-18  Gaius Mulley  <gaius@glam.ac.uk>
5550         Improved table, tab, and indenting support.
5552         * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
5553         string_iterator::suppress_newline_flag): Removed.  Updated all
5554         function which have used it.
5556         * src/roff/troff/env.cc: Include `input.h'.
5557         (environment::add_node): Accept 0 as parameter.
5558         (environment::add_html_tag): Add `force' parameter.
5559         Updated all callers.
5560         (environment::add_html_tag_tabs): Ditto.
5561         For the moment, support left-aligned tabs only.
5562         (environment::make_html_tag): New function.
5563         (fill, no_fill): Set .br html tag additionally.
5564         (environment::newline): Emit `eol.ce' or `eol' tag for html.
5565         (environment::add_html_tag_eol): Removed.
5566         (tab_stops::distance_to_next_tab): Add variant for handling 
5567         nextpos'.
5568         (environment::distance_to_next_tab): Ditto.
5569         Updated all callers.
5570         (environment::handle_tab): Handle tabs for html.
5571         
5572         * src/roff/troff/env.h: Updated.
5574         * src/roff/troff/div.cc: Updated all callers of
5575         `environment::add_html_tag'.
5577         * src/devices/grohtml/html-table.cc,
5578         src/devices/grohtml/html-table.h: New files.
5580         * src/devices/grohtml/html-text.cc (html_text): New members
5581         `blank_para' and `start_space'.
5582         (html_text::issue_tag): Don't emit TABLE_TAG.
5583         Handle indentation for PRE_TAG and P_TAG.
5584         (html_text::end_tag): Updated.
5585         (html_text::table_is_void, html_text::issue_table_begin,
5586         html_text::issue_table_end): Removed.
5587         (html_text::do_push): Simplified.
5588         [DEBUGGING]: Small fix.
5589         (html_text::push_para): Add new parameter for indentation; updated
5590         all callers.
5591         Handle PRE_TAG.
5592         (html_text::do_indent, html_text::do_table, html_text::done_table,
5593         html_text::is_in_table): Removed.
5594         (html_text::do_pre): Handle P_TAG also.
5595         (html_text::shutdown): Handle p->indent.
5596         (html_text::check_emit_text): Simplified.
5597         (html_text::do_emittext): Reset `blank_para'.
5598         (html_text::do_para): Add new parameter for indentation; updated
5599         all callers.
5600         (html_text::remove_indent): New function.
5601         (html_text::do_space): Handle verbatim text properly.
5602         (html_text::ever_emitted_text, html_text::starts_with_space,
5603         html_text::remove_para_align): New functions.
5604         (html_text::dump_stack_element, html_text::dump_stack): Updated.
5606         * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
5607         Updated.
5609         * src/devices/grohtml/post-html.cc: Include html-table.h.
5610         (INDENTATION): Removed.
5611         (text_glob): Added many `is_<foo>' functions.
5612         Added table description `tab'.
5613         Added `get_arg',`get_tab_args', `remember_table', and `get_table'
5614         member functions.
5615         (list): Add `insert' and `move_to' member functions.
5616         (page): Add `insert_tag' member function.
5617         (page::dump_page) [DEBUG_TABLES]: Improved.
5618         (html_printer): Add `table' and `max_linelength' elements.
5619         Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
5620         `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
5621         `remove_tabs', `remove_courier_tabs'.
5622         (html_printer::emit_raw): Handle indentation.
5623         (html_printer::do_center, html_printer::write_header): Updated.
5624         (html_printer::is_courier_until_eol): Check for tag.
5625         (html_printer::do_linelength): Handle max_linelength.
5626         (html_printer::do_page_offset, html_printer::do_indentation): Handle
5627         fill_on.
5628         (html_printer::do_tempindent): Updated.
5629         (html_printer::do_indentedparagraph): Removed.
5630         (html_printer::do_indent): Simplified.
5631         (html_printer::do_eol): Use `ever_emitted_text'.
5632         (html_printer::do_flush, html_printer::do_links): Don't call
5633         done_table.
5634         (html_printer::do_break): Handle end_tempindent.
5635         (html_printer::troff_tag): Get argument.
5636         Don't handle `.ip'.
5637         Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
5638         (html_printer::flush_page): Call `lookahead_for_tables'.
5639         Don't call `done_table'.
5640         (html_printer::add_to_sbuf): Always call do_indent.
5642         * src/devices/grohtml/Makefile.sub: Updated.
5644         * tmac/an-old.tmac (TP): Don't handle html device specially.
5645         (an-do-tag-html): New function which will be used instead of
5646         `an-do-tag' if html device is used.
5648         * tmac/html.tmac: Call .po to pass default page offset to grohtml.
5650         * tmac/s.tmac (@IP): Don't handle html device specially.
5651         (@IP-html): New function which will be used instead of `@IP' if
5652         html device is used.
5654         * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
5655         is a hack which will eventually vanish again.
5656         (PIMG): Handle `-C' option correctly if not html.
5657         (HR): Use HTML-NS.
5659 2002-07-17  Werner LEMBERG  <wl@gnu.org>
5661         * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
5663 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
5665         * contrib/pic2graph/pic2graph.*: Use convert(1).
5666         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
5668 2002-07-14  Bernd Warken  <bwarken@mayn.de>
5670         * tmac/groff_trace.man: New file.
5671         * tmac/Makefile.sub: Updated.
5672         * NEWS: Updated.
5674 2002-07-13  Werner LEMBERG  <wl@gnu.org>
5676         * src/roff/groff/groff.man: Add some cross references.
5678 2002-07-12  Werner LEMBERG  <wl@gnu.org>
5680         * src/roff/troff/input.cc (substring_request): Add warnings for
5681         string indices out of range.
5683 2002-07-11  Werner LEMBERG  <wl@gnu.org>
5685         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
5686         * font/devdvi/*EC: Regenerated.
5688 2002-07-10  Bernd Warken  <bwarken@mayn.de>
5690         * man/groff_char.man: Updated and extended.
5692 2002-07-10  Werner LEMBERG  <wl@gnu.org>
5694         * src/roff/troff/input.cc (length_macro): Renamed to...
5695         (length_request): This.
5696         Move call of `tok.next()' to the very end, otherwise the register
5697         value hasn't been updated yet.
5698         (init_input_requests): Updated.
5700 2002-07-09  Werner LEMBERG  <wl@gnu.org>
5702         * src/roff/troff/input.cc (substring_macro): Renamed to...
5703         (substring_request): This.
5704         (init_input_requests): Updated.
5705         * src/roff/troff/request.h: Updated.
5707 2002-07-08  Robert D. Goulding  <goulding@Princeton.EDU>
5709         * src/roff/grog/grog.sh: Fix typo.
5711 2002-07-08  Werner LEMBERG  <wl@gnu.org>
5713         * win32-diffs: Updated.
5715         Handle `papersize' keyword properly in DESC.
5717         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
5718         type.
5719         Updated all callers.
5720         * src/libs/libgroff/paper.cc: Add four more paper formats used by
5721         grolj4.
5722         * src/include/paper.h: Updated.
5724         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
5725         Other minor C syntax fixes.
5726         (papersize, paperlength, paperwidth): Renamed to `user_*'.
5727         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
5728         members.
5729         (lbp_printer::lbp_printer): Pass three arguments.
5730         Set paper dimensions properly.
5731         (make_printer, main): Updated.
5732         (handle_unknown_desc_command): Fix error messages.
5733         (main): Handle papersize keyword in DESC properly.
5735         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
5736         `user_paper_size'.
5737         (lbp_printer::lbp_printer): Pass an argument.
5738         Set paper_size properly.
5739         (handle_unknown_desc_command): Removed.
5740         (make_printer, main): Updated.
5741         * src/devices/grolj4/grolj4.man: Minor documentation fix.
5743         * man/groff_font.man, NEWS: Updated.
5745 2002-07-07  Werner LEMBERG  <wl@gnu.org>
5747         Integrated eqn2graph, contributed by Eric S. Raymond.
5749         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
5750         files.
5751         * Makefile.in, NEWS: Updated.
5753 2002-06-04  Werner LEMBERG  <wl@gnu.org>
5755         Changing the substring request to make it fit better with other
5756         string manipulation functions in other programming languages:
5757         Index 0 is now the first character in the string, and index -1
5758         indicates the last character.  Since this request didn't work
5759         properly anyway in the last release, it doesn't harm too much to
5760         change the syntax.
5762         * src/roff/troff/input.cc (substring_macro): Use loops to get
5763         the real string length (ignoring COMPATIBLE_SAVE and
5764         COMPATIBLE_RESTORE) and offsets.
5765         Implement change described above.
5767         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
5768         (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
5770         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
5772 2002-06-03  Werner LEMBERG  <wl@gnu.org>
5774         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
5775         COMPATIBLE_RESTORE are completely ignored.
5777         * src/roff/troff/input.cc (char_list::set, char_list::get): New
5778         functions.
5779         (macro): `length' field renamed to `len'.
5780         Added new field `empty_macro' (1 if macro is empty), to be used
5781         instead of checking `len'.
5782         Updated all callers.
5783         (macro::empty): Updated.
5784         (macro::length, macro::set, macro::get): New functions.
5785         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5786         Set `empty_macro'.
5787         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
5788         COMPATIBLE_RESTORE pairs.
5789         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5790         * src/roff/troff/request.h: Updated.
5792         * doc/groff.texinfo: Document .chop's behaviour better.
5794 2002-06-02  Werner LEMBERG  <wl@gnu.org>
5796         * doc/pic.ms: Fix documentation for the addition of positions.
5798         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
5800 2002-06-29  Werner LEMBERG  <wl@gnu.org>
5802         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
5804         * src/roff/troff/input.cc (have_string_arg): New global variable.
5805         (read_mode): New enumeration.
5806         (read_escape_name): Use it.  Update all calls.
5807         (read_long_escape_name): Use it.  Update all calls.
5808         Set have_string_arg if appropriate.
5809         (get_char_for_escape_name): Add parameter for handling space
5810         character.
5811         (interpolate_string_with_args, decode_string_args): New functions.
5812         (get_copy, token::next): Call it if necessary.
5813         (interpolate_string): Fix error message.
5815         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5816         Document it.
5818 2002-06-24  Bernd Warken  <bwarken@mayn.de>
5820         * man/groff_tmac.man: Updated and extended.
5822 2002-06-24  Werner LEMBERG  <wl@gnu.org>
5824         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
5826 2002-06-23  Werner LEMBERG  <wl@gnu.org>
5828         * doc/pic.ms: Improve documentation of composite block objects.
5830 2002-06-22  Werner LEMBERG  <wl@gnu.org>
5832         * src/roff/troff/input.cc (init_registers): Add three registers
5833         `seconds', `minutes', and `hours' to hold the current time.
5835         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5836         Updated.
5838 2002-06-20  Werner LEMBERG  <wl@gnu.org>
5840         Make \X accept both `\ ' and `\~', converting them to single space
5841         characters.
5843         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
5844         (token::unstretchable_space): New inline function.
5845         * src/roff/troff/input.cc (token::next, token::delimiter,
5846         token::description, token::add_to_node_list, token::process): Handle
5847         TOKEN_UNSTRETCHABLE_NODE.
5848         (encode_char): Handle tok.stretchable_space and
5849         tok.unstretchable_space.
5851         * NEWS, doc/groff.texinfo: Document it..
5853 2002-06-19  Werner LEMBERG  <wl@gnu.org>
5855         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
5857         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
5858         keyword to enable/disable SGR output.
5859         (tty_printer::change_fill_color): New function.
5860         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
5862         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
5863         call.
5865 2002-06-18  Werner LEMBERG  <wl@gnu.org>
5867         Add a `color' request and a `.color' register to control usage of
5868         colours.
5870         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
5871         (color_flag): This (which is the inverse).
5872         (activate_color): New function.
5873         (main, init_input_requests): Updated.
5874         * src/roff/troff/troff.h, src/roff/troff/node.cc
5875         (troff_output_file::fill_color, troff_output_file::glyph_color):
5876         Updated.
5878         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5879         Document the changes.
5881 2002-06-17  Colin Watson  <cjwatson@debian.org>
5883         Circumvent bug in autoconf 2.53 regarding top_builddir.
5885         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
5886         * Makefile.in, doc/Makefile.in:
5887         s/@top_builddir@/@groff_top_builddir@/.
5888         * configure: Regenerated (with autoconf 2.53).
5890 2002-06-17  Werner LEMBERG  <wl@gnu.org>
5892         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
5893         `paperwidth' and `paperlength' for the `papersize' keyword.
5895 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
5897         * src/devices/grops/grops.man: Add info about Type 42 fonts.
5899 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
5901         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
5902         html_printer::do_linelength, html_printer::do_pageoffset,
5903         html_printer::do_indentation, html_printer::do_tempindent,
5904         html_printer::do_break, html_printer::begin_page): Clear indented
5905         text.
5906         * tmac/html.tmac: Disable hyphenation.
5908 2002-06-15  Werner LEMBERG  <wl@gnu.org>
5910         Don't produce HTML files if utility programs are missing.
5912         * Makefile.in (make_html, make_install_html): New variables.
5913         (MDEFINES): Updated.
5915         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
5916         utility programs.
5917         * configure.ac: Use it.
5918         * configure: Regenerated.
5920         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
5921         (HTMLEXAMPLESFILES): This new variable.
5922         (EXAMPLESIMAGEFILES): Renamed to...
5923         (HTMLEXAMPLEIMAGEFILES): This.
5924         (CLEANADD): Add HTMLEXAMPLEFILES.
5925         (all): Use `make_html'.
5926         (html): New target.
5927         (install_data): Use `make_install_html'.
5928         Move html stuff to...
5929         (install_html): This new target.
5930         (uninstall_sub): Updated.
5932 2002-06-14  Bernd Warken  <bwarken@mayn.de>
5934         * src/roff/grog/Makefile.sub (grog): Renamed to...
5935         (grog.old): This.
5936         (grog): New rule to always install grog.sh as grog.
5938 2002-06-08  Bernd Warken  <bwarken@mayn.de>
5940         * src/roff/grog/grog.pl: Fix typo.
5942 2002-06-07  Werner LEMBERG  <wl@gnu.org>
5944         * doc/groff.texinfo: Add more info on .tr arguments.
5946 2002-06-05  Werner LEMBERG  <wl@gnu.org>
5948         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
5950         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
5951         * configure: Regenerated.
5953 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5955         * src/roff/troff/symbol.cc (table_sizes): Add more values.
5957         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
5959 2002-06-04  Werner LEMBERG  <wl@gnu.org>
5961         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
5962         is not initialized at the time we need it in case `--prefix' hasn't
5963         been set.  Check for `ac_default_prefix' also.
5964         Test for `papersize' keyword also and generalize allowed whitespace.
5965         * configure: Regenerated.
5967         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
5968         `paperlength'.
5970         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
5971         with...
5972         (src_version, src_revision): New variables to avoid overwriting
5973         from parent make process.
5974         (version.cc): Updated.
5976         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
5977         (linebuf, linebufsize): New global variables.
5978         (sys_fatal): Use `fatal' to abort properly.
5979         (get_line): New function.
5980         (get_resolution): Use it.
5981         Improve error messages.
5982         (get_papersize): Check `papersize' also.
5983         Use `get_line'.
5984         Improve error messages.
5986 2002-06-03  Werner LEMBERG  <wl@gnu.org>
5988         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
5989         should be removed only if builddir is not srcdir.
5990         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
5991         (clean): Depend on `mostlyclean'.
5992         (distclean): Depend on `clean'.
5993         (realclean, extraclean): Depend on `distclean'.
5994         (.y.cc, .y.o): Simplified.  The output files are no longer written
5995         to srcdir but to builddir.
5996         * Makefile.in (MDEFINES): Add `version' and `revision'.
5997         (uninstall_dirs): Fix order of directories.
5998         * doc/Makefile.sub (version, revision): Removed.
5999         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
6000         Added `HTMLDOCFILES'.
6001         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
6002         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
6003         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
6004         as prefix.
6006         * doc/texinfo.tex (\authortt): New macro.
6007         (\shortcontt): Define.
6008         (\titlepage): Set \tt to \authortt while defining \authorfont.
6009         (\appendixbox): New macro.
6010         (\chapmacro, \appendixentry): Use \appendixbox to get even
6011         indentation for letters.
6012         (\summarycontents): Set \tt.
6013         (\internalpagesize): Add two arguments for real paper width and
6014         height as needed by pdfTeX.
6015         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
6016         Updated.
6017         (\tempdima, \tempdimb): New temporary dimensions.
6018         (\pagesizesyyy): Updated.
6020 2002-06-02  Werner LEMBERG  <wl@gnu.org>
6022         Adding a new keyword `papersize' to the DESC file format (similar
6023         but not completely identical to grolbp's extension).  grops now has
6024         a -p command line option to override `papersize'.  Finally, grolbp
6025         has been adapted to the new syntax.
6027         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
6028         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
6029         elements.
6030         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
6031         (CCSRCS): Add `paper.cc'.
6033         * src/include/font.h (font): Add `papersize' element.
6034         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
6035         (font::scan_papersize): New function.
6036         (font::load_desc): Use it for handling `papersize' keyword.
6037         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
6039         * src/devices/grops/ps.cc: Include paper.h.
6040         (user_paper_length): New global variable.
6041         (ps_printer): Use paper length as initializer.
6042         (make_printer): Updated.
6043         (main): Handle new `-p' option.
6044         * src/devices/grops/grops.man: Updated.
6046         * src/devices/grolbp/lbp.cc: Include paper.h.
6047         s/papersizes/lbp_papersizes/.
6048         (set_papersize): Use new `papersizes' array.
6049         (handle_unknown_desc_command): Don't handle `papersize'.
6050         (main): Use `font::scan_papersize' for handling `-p' option.
6051         * src/devices/grolbp/grolbp.man: Updated.
6053         * man/groff_font.man: Document `papersize'.
6054         * NEWS: Updated.
6056 2002-05-30  Werner LEMBERG  <wl@gnu.org>
6058         * src/devices/grops/TODO: Updated.
6059         * src/devices/grops/grops.man: More info on paper formats.
6060         * man/groff_font.man: Document `paperheight' and `paperwidth'.
6062 2002-05-29  Werner LEMBERG  <wl@gnu.org>
6064         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
6065         to list only if srcdir != currdir.
6066         (distfiles): New target.
6068         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
6069         (NOMAKEDIRS): New variable.
6070         (DISTDIRS): Use it.
6072 2002-05-26  Werner LEMBERG  <wl@gnu.org>
6074         Add .output request, similar to \! at top-level.
6076         * src/roff/troff/input.cc (transparent): Remove unused declaration.
6077         (output_request): New function.
6078         (init_input_requests): Add it.
6079         Sorted.
6080         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
6081         Document it.
6083         * Makefile.in (MDEFINES): Add INSTALL_INFO.
6084         (prepare_examples): Fix typo.
6085         * doc/groff.texinfo (@direntry): Fix it.
6087 2002-05-25  Werner LEMBERG  <wl@gnu.org>
6089         Including the doc subdir into groff's Makefile system.
6091         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
6092         * configure.ac: Use it.
6093         Generate `doc/Makefile'.
6094         * configure: Regenerated.
6096         * Makefile.in (infodir, INSTALL_INFO): New variables.
6097         (MDEFINES, uninstall_dirs): Updated.
6098         (OTHERDIRS): Add `doc'.
6099         * Makefile.comm (CLEANDIRADD): New variable.
6100         (mostlyclean): Use it.
6102         * doc/Makefile.sub, doc/Makefile.in: New files.
6103         * doc/Makefile: Removed.
6105         * NEWS, INSTALL: Updated.
6107 2002-05-24  Werner LEMBERG  <wl@gnu.org>
6109         * doc/homepage.ms: Renamed to ...
6110         * doc/webpage.ms: This.
6111         Use `.NHR'.
6113 2002-05-23  Werner LEMBERG  <wl@gnu.org>
6115         Integrating the `mom' macro package, contributed by Peter Schaffter
6116         <df191@ncf.ca>.
6118         * contrib/mom/*: New subdirectory tree.
6119         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
6120         be used for documentation files.
6121         (MDEFINES, uninstall_dirs): Use them.
6122         (OTHERDIRS): Add contrib/mom.
6123         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
6124         @HTMLDOCDIR@.
6125         * MANIFEST, NEWS: Updated.
6127 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
6129         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
6130         if at outer level; at start-up we are at outer level.
6132         * src/roff/troff/input.cc (do_suppress): Implement it.
6133         Simplify \O[3].
6135         Add option -p to show progress information.
6136         pre-grohtml will now render only one page at a time, reducing the
6137         size of needed disk resources enormously.
6139         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
6140         (imagePageName): New global variable.
6141         (psPageName, show_progress, currentPageNo): New global variables.
6142         (html_system): Close saved stderr and stdout handles.
6143         (write_end_image): Accept a parameter to control \O escape.
6144         (write_start_image): Adapted to new \O meaning.
6145         (char_buffer::write_upto_newline): Updated.
6146         (createAllPages): Replaced with...
6147         (createPage): This new function to create a single page for images.
6148         It uses `psselect' from the psutils package.
6149         (removeAllPages): Removed.
6150         (createImage): Updated.
6151         Handle progress display.
6152         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
6153         (scanArguments): Add option -p.
6154         (makeTempFiles): Updated to create temp files for psPageName and
6155         imagePageName.
6156         (removeTempFiles): Removed.
6157         (main): Updated.
6159         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
6160         html_printer::write_header): Append `\0' to `buffer'.
6161         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
6162         (main): Handle -p.
6163         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
6164         Handle `text_emitted'.
6165         (html_text::table_is_void): Slightly rewritten.
6166         (stop): New external symbol.
6167         (html_text::do_push) [DEBUGGING]: Use it and simplify.
6168         (html_text::shutdown): Call `dump_stack'.
6169         (html_text::do_space): Rewritten.
6170         * src/devices/grohtml/grohtml.man: Document -p and the need of
6171         `psselect'.
6173         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
6174         new \O syntax.
6175         Call \O[0] if `ps4html' is active.
6176         * tmac/s.tmac (@EQ, @EN): Handle html better.
6177         (@TS, TE): Ditto.
6178         * tmac/html.tmac: Don't use black for background colour.
6180         * src/roff/troff/node.cc: Include `div.h'.
6181         (troff_output_file::really_print_line): Don't use `is_on'. 
6182         (troff_output_file::word_marker, troff_output_file::flush_tbuf
6183         troff_output_file::check_charinfo,
6184         troff_output_file::put_char_width, troff_output_file::put_char,
6185         troff_output_file::determine_line_limits, troff_output_file::draw,
6186         real_output_file::begin_page, glyph_color_node::tprintf,
6187         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
6188         Use `is_on'.
6189         (troff_output_file::really_on): Call `do_motion'.
6190         (suppress_node::tprint): Use `get_page_number' instead of `%'
6191         register.
6192         Call `reset_output_registers' conditionally on `is_on'.
6194         * doc/groff.texinfo: Document new syntax of \O.
6195         * NEWS, man/groff_diff.man: Updated.
6197 2002-05-22  Werner LEMBERG  <wl@gnu.org>
6199         * MORE.STUFF: Add info about David Frey's deroff implementation.
6200         Mention troff.org.
6202 2002-05-16  Werner LEMBERG  <wl@gnu.org>
6204         Pic's `with' attribute now accepts positions.
6206         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
6207         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
6208         conflicts.
6209         (object_spec): Add rule for `WITH' and `position'.
6210         (relative_path): Give `corner' the precedence of `CHOP'.
6211         * src/preproc/pic/object.h (path): New members `pos' and
6212         `is_position'.
6213         * src/preproc/pic/object.cc: Updated initializers of `path'.
6214         (path::follow): Handle `is_position'.
6216         * doc/pic.ms: Completely updated grammar description.
6217         Many typographical improvements.
6219 2002-05-15  Werner LEMBERG  <wl@gnu.org>
6221         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
6222         code of x in range 0-127) also.
6223         * doc/groff.texinfo, man/groff_diff.man: Updated.
6225         Added keywords `north', `south', `east', and `west' for corners
6226         in pic.
6228         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
6229         and WEST.
6230         (yylex): Handle them.
6231         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
6232         (corner): Handle them.
6234 2002-05-14  Werner LEMBERG  <wl@gnu.org>
6236         * src/devices/grops/grops.man: Clarify handling of `download' file.
6238 2002-05-11  Werner LEMBERG  <wl@gnu.org>
6240         Adding `warnscale' and `spreadwarn' requests, based on a patch from
6241         Jeffrey Friedl <jfriedl@yahoo.com>.
6243         * src/roff/troff/input.cc (spread_limit, warn_scale,
6244         warn_scaling_indicator): New global variables.
6245         (warnscale_request, spreadwarn_requests): New functions.
6246         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
6247         (init_input_requests): Updated.
6248         (error_type): Add `OUTPUT_WARNING'.
6249         (do_error): Handle it.
6250         (output_warning): New warning function which shows output location.
6251         * src/roff/troff/env.h (spread_limit): New external variable.
6252         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
6253         `output_warning'.
6254         (distribute_space): Emit warning if added space is larger than
6255         `spread_limit'.
6256         (environment::possibly_break_line): Emit warning if a line can't
6257         be adjusted on both sides.
6259         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
6261 2002-05-08  Werner LEMBERG  <wl@gnu.org>
6263         * src/roff/troff/node.cc (special_node::special_node): Use
6264         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
6265         \X''\% crashes, for example.
6267         * doc/groff.texinfo: Document \! and \? used at top-level.
6269 2002-05-06  Werner LEMBERG  <wl@gnu.org>
6271         * src/preproc/pic/pic.man: Fix some keyword syntax.
6272         Other minor typographical fixes.
6274         * src/roff/groff/groff.man: Fix typos.
6276 2002-05-04  Werner LEMBERG  <wl@gnu.org>
6278         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
6279         (ShortOpt[]): This to avoid problems with refer.
6281         * doc/pic.ms: Fix typo.
6282         Fix pic grammar description.
6284         * tmac/an-old.tmac (ne): Use de1, not de.
6286 2002-05-03  Werner LEMBERG  <wl@gnu.org>
6288         * doc/groff.texinfo: Finished separation of glyphs and characters.
6289         Don't use the string `Appendix' for appendix headers (both in
6290         the text and the table of contents).
6291         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
6292         directories.
6294         Use registers LL and LT (similar to -ms) for controlling the
6295         length of title and line, respectively, in the -man and -mdoc
6296         macro packages.
6298         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
6299         (doc-setup-page-layout): Use \n[LL] and \n[LT].
6300         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
6301         (TH): Use \n[LL].
6302         (an-header, an-p-footer): Use \n[LT].
6303         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
6304         doc/groff.texinfo: Document it.
6306 2002-05-02  Werner LEMBERG  <wl@gnu.org>
6308         * doc/fdl.texi: New file.
6309         * doc/groff.texinfo: Include it.
6310         Define and use @copying.
6311         Starting with separating glyph, symbol, and character.
6313 2002-04-27  Werner LEMBERG  <wl@gnu.org>
6315         * Makefile.in (EXEEXT): Set it.
6316         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
6317         programs.
6319         * src/include/nonposix.h: Define GS_NAME.
6320         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
6322         Some preliminary changes for EMX support under OS/2.
6324         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
6325         __EMX__ similar to __MSDOS__.
6326         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
6328 2002-04-25  Werner LEMBERG  <wl@gnu.org>
6330         * doc/groff.texinfo: Integrated groff_out.man.
6331         Some macro fixes.
6333 2002-04-23  Werner LEMBERG  <wl@gnu.org>
6335         * man/groff_out.man: Minor fixes.
6337 2002-04-23  Werner LEMBERG  <wl@gnu.org>
6339         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
6340         correct page references.
6341         Fixed many index entries.
6343 2002-04-23  Bernd Warken  <bwarken@mayn.de>
6345         * man/roff.man: Enlarged.
6347 2002-04-22  Werner LEMBERG  <wl@gnu.org>
6349         * doc/groff.texinfo: More examples, other fixes.
6351 2002-04-20  Werner LEMBERG  <wl@gnu.org>
6353         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
6354         will now form a chain, e.g.
6356           .pi foo
6357           .pi bar
6359         is now the same as
6361           .pi foo | bar
6363         This is for compatibility with plan 9's troff.
6365         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
6366         with UNIX troff.
6367         * NEWS: Updated.
6369         * doc/groff.texinfo: Add documentation of remaining requests and
6370         registers.
6372 2002-04-19  Werner LEMBERG  <wl@gnu.org>
6374         * doc/groff.texinfo: Add documentation of remaining escapes.
6376         * font/devdvi/generate/tc.map: Remove entry for `sr'.
6377         * font/devdvi/*TC: Regenerated.
6379 2002-04-18  Werner LEMBERG  <wl@gnu.org>
6381         * src/roff/troff/input.cc (token::next): Make \H behave consistently
6382         if not in compatibility mode, i.e., increment relative to the
6383         previous height.
6384         * doc/groff.texinfo: Updated accordingly.
6386 2002-04-17  Werner LEMBERG  <wl@gnu.org>
6388         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
6390 2002-04-16  Bernd Warken  <bwarken@mayn.de>
6392         * src/roff/groff/groff.man: Improve documentation of -P option.
6393         Other minor fixes.
6395 2002-04-15  Werner LEMBERG  <wl@gnu.org>
6397         Add new escape \F to switch font family.
6399         * src/roff/troff/input.cc (token::next): Handle \F.
6400         * src/roff/troff/env.cc (environment::set_family): Handle
6401         `interrupted' flag.
6402         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
6403         Document it.
6405 2002-04-14  Werner LEMBERG  <wl@gnu.org>
6407         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
6408         spaces in tags.
6410 2002-04-13  Werner LEMBERG  <wl@gnu.org>
6412         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
6413         \m[] and \M[], respectively.
6415         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
6416         (symbol::symbol): Handle NULL string and empty string differently.
6417         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
6418         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
6419         Add optional parameter.
6420         Updated calling functions.
6421         (get_copy, do_glyph_color, do_fill_color, token::next): Use
6422         `symbol::is_empty'.
6423         * src/roff/troff/env.cc (environment::set_font): Ditto.
6425         * src/preproc/pic/troff.cc (troff_output::set_fill,
6426         troff_output::reset_color: Updated.
6428         * tmac/www.tmac: Updated.
6430         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
6431         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
6432         Updated.
6434         * tmac/Xps.tmac: Remove some redundant code.
6436         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
6437         tmac/dvi.tmac, man/roff.man, man/groff_out.man, man/groff.man,
6438         man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with
6439         \f[].
6441 2002-04-13  Bernd Warken  <bwarken@mayn.de>
6443         * src/include/printer.h, src/libs/libdriver/printer.cc
6444         (printer::change_fill_color): New member function.
6445         * src/libs/libdriver/input.cc (parse_D_command): Use it.
6447 2002-04-12  Werner LEMBERG  <wl@gnu.org>
6449         * doc/groff.texinfo: Completed pass on gtroff reference.
6451 2002-04-11  Werner LEMBERG  <wl@gnu.org>
6453         * doc/groff.texinfo: More fixes.
6455 2002-04-11  Bernd Warken  <bwarken@mayn.de>
6457         * src/include/color.h: Decorate with `const'.
6458         Use `size_t'.
6459         Include `stddef.h'.
6460         * src/libs/libgroff.color.cc: Decorate with `const'.
6461         Use `size_t'.
6462         (color::color): Initialize members.
6463         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
6464         command according to the documentation.
6466         * man/groff_out.man: Updated.
6467         Minor fixes.
6469 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
6471         * src/preproc/html/pre-html.cc (write_start_image): Remove
6472         redundant output.
6473         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
6475         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
6476         \C'hy' caused an assertion failure.
6478         * src/roff/troff/env.cc (environment::environment): Initialize
6479         `emitted_node'.
6480         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
6482 2002-04-10  Werner LEMBERG  <wl@gnu.org>
6484         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
6485         Document pvs request and .pvs register.
6487 2002-04-09  Werner LEMBERG  <wl@gnu.org>
6489         * doc/groff.texinfo: Improve and fix documentation of diversions
6490         and environments.
6492 2002-04-08  Werner LEMBERG  <wl@gnu.org>
6494         * doc/groff.texinfo: Fix documentation of drawing functions.
6495         Other minor fixes.
6497 2002-04-07  Werner LEMBERG  <wl@gnu.org>
6499         * doc/groff.texinfo: Better documentation of double quotes as
6500         arguments.
6501         Other minor fixes.
6503 2002-04-06  Werner LEMBERG  <wl@gnu.org>
6505         * man/groff_font.man: Document names of special characters better.
6506         * doc/groff.texinfo: Minor improvements.
6508         * tmac/lbp.tmac: Load latin1.tmac.
6509         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
6511         * font/devX*/*: Regenerated (all chars > 0x80 removed).
6513 2002-04-05  Werner LEMBERG  <wl@gnu.org>
6515         * tmac/tty.tmac: Don't use shc request.
6516         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
6517         * NEWS: Updated.
6519         * man/groff_diff.man: Minor fixes.
6521         * font/devlbp/*: Remove all `charXXX' entities.
6523         * src/libs/libgroff/font.cc (font::~font): Deallocate
6524         `special_device_coding'.
6525         (font::load): Use `new' for allocating `special_device_coding'.
6526         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
6527         Removed unused member.
6529 2002-04-05  Werner LEMBERG  <wl@gnu.org>
6531         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
6532         (resource_manager::do_begin_binary,
6533         resource_manager::do_begin_data): Use it.
6535         * doc/texinfo.tex: Updated to version 4.2.
6537         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
6538         (token::zero_width_break): New inline function.
6539         * src/roff/troff/input.cc (token::next): Use it.
6540         (token::description): Updated.
6541         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
6542         (token::add_to_node_list, token::process): Use it.
6543         * NEWS, doc/groff.texinfo: Updated.
6545         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
6546         * tmac/tty.tmac: Add missing backslash.
6548 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
6550         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
6551         `.ps' register instead of `.s' to handle fractional point sizes.
6552         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
6553         limit_box::output): Ditto.
6554         * src/preproc/eqn/other.cc (size_box::compute_metrics,
6555         size_box::output): Ditto.
6556         * src/preproc/eqn/over.cc (over_box::compute_metrics,
6557         over_box::output): Ditto.
6558         * src/preproc/eqn/script.cc (script_box::compute_metrics,
6559         script_box::output): Ditto.
6560         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
6561         sqrt_box::output): Ditto.
6563 2002-04-03  Michael Selway  <mas@ssl.co.uk>
6565         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
6566         Fix typo.
6568 2002-04-03  Werner LEMBERG  <wl@gnu.org>
6570         * doc/homepage.ms: Reduce title size.
6571         * doc/groff.texinfo: Fix documentation of .t register.
6572         Fix handling of colon.
6573         Fix `\' vs. `\\'.
6575         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
6576         only if page length is positive to avoid a loop.
6578         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
6579         tbl.
6581 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
6583         * src/include/nonposix.h, src/roff/groff/pipeline.c:
6584         s/__CYGWIN32__/__CYGWIN__/.
6586 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
6588         * doc/gnu.xpm: New image contributed by Emily Mulley.
6589         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
6590         (homepage.html): Be dependent on gnu.eps.
6591         * doc/homepage.ms: Updated to new image.
6593         * src/devices/grohtml/post-html.cc (html_printer): New member
6594         `sbuf_prev_hpos'.
6595         (html_printer::flush_sbuf, html_printer::set_char): Set it.
6596         (html_printer::sbuf_continuation): Use it.
6598 2002-03-28  Werner LEMBERG  <wl@gnu.org>
6600         * src/libs/libgroff/getopt.c: Updated to latest version.
6602         * tmac/README: More on hyphen.tex license.
6604 2002-03-26  Larry Kollar  <kollar@alltel.net>
6606         * doc/groff.texinfo: Add documentation of most missing requests.
6608 2002-03-25  Werner LEMBERG  <wl@gnu.org>
6610         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
6611         of `+-', `mu', and `di', respectively.
6613         * font/devascii/R.proto, font/devutf8/R.proto,
6614         font/devlatin1/R.proto, font/devhtml/R.proto,
6615         font/devcp1047/R.proto, font/devlpb/*: Add them.
6616         * font/devps/generate/textmap: Ditto.
6617         * font/devps/*: Regenerated.
6618         * font/devlj4/generate/text.map: Add them.
6619         * font/devlj4/*: Regenerated.
6620         * font/devdvi/generate/tc.map: Use them.
6621         * font/devdvi/generate/texsy.map: Add them.
6622         * font/devdvi/*: Regenerated.
6623         * font/devX*/*: Regenerated.
6625         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
6626         tmac/tty-char.tmac: Updated.
6628         * NEWS, man/groff_char.man: Updated.
6630 2002-03-24  Werner LEMBERG  <wl@gnu.org>
6632         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
6633         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
6634         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
6635         we use `.fchar' in dvi.tmac.
6636         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
6637         * tmac/Xps.tmac: Simplify some char definitions.
6638         Add definition for \[f/].
6639         * man/groff_char.man: Updated for new X.tmac.
6641         * tmac/README: New file.
6643 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
6645         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
6646         internal .y.o rule took precendence over the .y.cc rule, compiling
6647         the yacc files with gcc instead of g++.
6649 2002-03-23  Werner LEMBERG  <wl@gnu.org>
6651         * tmac/dvi.tmac: Add replacement font for `CB'.
6653         * tmac/doc.tmac: s/request/macro/ in messages.
6654         (doc-generic-macro): Improve error message.
6655         * tmac/groff_mdoc.man: Minor improvements.
6657 2002-03-22  Werner LEMBERG  <wl@gnu.org>
6659         * doc/groff.texinfo: Document possible conflict between `tr' and
6660         `char' requests.
6662 2002-03-21  Werner LEMBERG  <wl@gnu.org>
6664         Improve handling of hyphenation patterns.  It is now possible to
6665         use most of TeX's pattern files unmodified.  To make the process
6666         more flexible, a new request `hpfcode' has been added which
6667         provides a character code mapping for the `hpf' request.  See
6668         comment before hpf_getc() for more details.
6670         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
6671         functions.
6672         (read_patterns_file): Additional parameter for exception dictionary.
6673         Extended to recognize \pattern, \hyphenation, and \endinput.
6674         (do_hyphenation_patterns_file): Updated.
6675         * src/roff/troff/env.h (hpf_code_table): New extern.
6677         * src/roff/troff/input.cc (hpf_code_table): New array.
6678         (init_hpf_code_table, hyphenation_patterns_file_code): New
6679         functions.
6680         (hyphenation_code): Handle translation from `trin' correctly.
6681         (main, init_input_requests): Updated.
6682         (charinfo::set_translation): Handle hyphenation code also.
6684         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
6685         inline function.
6687         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
6688         char' is used for offsets in hyphenation exceptions.
6690         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
6692         * NEWS, man/groff_diff.man, man/groff.man: Document it.
6694 2002-03-20  Larry Kollar  <kollar@alltel.net>
6696         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
6697         requests.
6699 2002-03-18  Werner LEMBERG  <wl@gnu.org>
6701         * tmac/html.tmac: Fix serious typo.
6703 2002-03-17  Larry Kollar  <kollar@alltel.net>
6705         * doc/groff.texinfo: Add documentation for `writec' request.
6707 2002-03-17  Werner LEMBERG  <wl@gnu.org>
6709         Added request `hpfa' to append hyphenation patterns.
6711         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
6712         parameter `append'.
6713         (hyphenation_patterns_file): Renamed to...
6714         (do_hyphenation_patterns_file): This.
6715         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
6716         functions.
6717         (init_hyphen_requests): Updated.
6718         * NEWS, man/groff.man, man/groff_diff.man: Document it.
6720 2002-03-16  Werner LEMBERG  <wl@gnu.org>
6722         Added request `writec' in analogy to `tmc'.
6724         * src/roff/troff/input.cc (write_request): Renamed to...
6725         (do_write_request): This.
6726         Added one parameter.
6727         (write_request, write_request_continue): New functions.
6728         (init_input_requests): Updated.
6729         * NEWS, man/groff.man, man/groff_diff.man: Document it.
6731         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
6732         5-10000pt.
6733         * NEWS: Document it.
6735 2002-03-15  Werner LEMBERG  <wl@gnu.org>
6737         * man/groff.man: Add writem request.
6739         Add request `trin' (translate input) to make `.asciify' work
6740         correctly.  This is necessary since `charXXX' entity names are no
6741         longer hardcoded in font definition files.
6743         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
6744         `translate_input' members.
6745         (charinfo::set_asciify_code, charinfo::get_asciify_code,
6746         charinfo::set_translation_input): New methods.
6747         (charinfo::set_translation): Add third argument.
6748         * src/roff/troff/input.cc (charinfo:set_translation): Set
6749         `asciify_code'.
6750         (do_translate): Add second argument.
6751         (translate_input): New function.
6752         (init_input_requests): Updated.
6753         * src/roff/troff/node.cc (glyph_node::asciify,
6754         composite_node::asciify): Use `get_asciify_code'.
6756         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
6758         * NEWS, man/groff.man, man/groff_diff.man: Updated.
6760 2002-03-14  Larry Kollar  <kollar@alltel.net>
6762         * doc/groff.texinfo: Improve documentation of .RS and .RE.
6764 2002-03-14  Werner LEMBERG  <wl@gnu.org>
6766         Add a new request `sizes' similar to the `sizes' command in DESC
6767         files.
6769         * src/roff/troff/env.cc (override_sizes): New function.
6770         (init_env_requests): Use it.
6771         * src/roff/troff/token.h: Export `read_string'.
6772         * NEWS, man/groff_diff.man, man/groff.man: Document it.
6774 2002-03-12  Werner LEMBERG  <wl@gnu.org>
6776         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
6778 2002-03-10  Werner LEMBERG  <wl@gnu.org>
6780         * tmac/pspic.tmac: Add support for -Tdvi.
6781         * tmac/dvi.tmac: Include pspic.tmac.
6782         * src/devices/grodvi/grodvi.man: Document it.
6783         * NEWS: Updated.
6785         * font/devlj4/generate/Makefile: Fix URL of metric files.
6787 2002-03-09  Werner LEMBERG  <wl@gnu.org>
6789         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
6791 2002-03-09  Larry Kollar  <kollar@alltel.net>
6793         * tmac/groff_ms.man: Add documentation for RS and RE macros.
6795 2002-03-08  Werner LEMBERG  <wl@gnu.org>
6797         * doc/groff.texinfo: Fixes for texinfo 4.1.
6799 2002-03-07  Werner LEMBERG  <wl@gnu.org>
6801         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
6802         included.
6803         Handle CYGWIN properly.
6805 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
6807         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
6808         * tmac/lbp.tmac: Add some font translations.
6810 2002-03-02  Werner LEMBERG  <wl@gnu.org>
6812         * font/devcp1047/R.proto, font/devlatin1/R.proto,
6813         font/devhtml/R.proto: Remove `charXXX'  entries.
6814         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
6815         where appropriate.
6817         * font/devlj4/generate/text.map: Remove `charXXX' entries.
6818         * font/devlj4/*: Regenerated all font definition files.
6819         * tmac/lj4.tmac: Load latin1.tmac.
6821         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
6822         from 2000-06-17: LJ4 metric files are *not* text files.
6824         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
6825         register to test for EBCDIC.
6827 2002-03-01  Werner LEMBERG  <wl@gnu.org>
6829         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
6830         files (as grops already does).
6831         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
6832         files.
6833         * src/devices/grops/grops.man: Document comment lines in encoding
6834         files.
6836         * tmac/cp1047.tmac: New file.
6837         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
6838         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
6839         * tmac/Makefile.sub (NORMALFILES): Updated.
6841         * tmac/ec.tmac: Don't load latin1.tmac again.
6843         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
6844         font/devps/generate/dingbats.map,
6845         font/devps/generate/dingbats.rmap, font/devps/text.enc,
6846         font/devps/generate/Makefile (symbolmap): Add header comment.
6847         * font/devps/generate/textmap: Ditto.
6848         Remove `charXXX' entries.
6849         * font/devps/symbolmap: Regenerated.
6850         * font/devps/*: Regenerated all font definition files.
6852 2002-02-28  Werner LEMBERG  <wl@gnu.org>
6854         Add color support to grodvi (for drawing colors are currently
6855         translated to gray values).
6857         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
6858         (dvi_printer): Add `cur_color' member.
6859         (dvi_printer::set_color): New function.
6860         (draw_dvi_printer): Remove `fill'.
6861         (draw_dvi_printer::fill_next): Pass environment as parameter.
6862         Update code for new color support translated to gray.
6863         (dvi_printer::set_char): Updated.
6864         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
6865         changes crossing the page border.
6866         (dvi_printer::draw): Updated.
6867         Remove cases `f' and `F'.
6868         * tmac/dvi.tmac: Add color definitions.
6869         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6871         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
6872         used incorrectly.
6874         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
6875         versions of autoconf.
6876         * configure: Updated.
6878         * doc/homepage.ms: Use `.blm'.
6879         * tmac/www.tmac (www-depth): New auxiliary variable.
6880         (www-pop-level): Don't issue HTML tag.
6881         (ULS, ULE, LI): Use absolute indentation.
6883         * src/devices/grops/ps.cc (ps_printer::begin_page,
6884         ps_printer::end_page): Switch forth and back to default color while
6885         starting a new page.
6887 2002-02-27  Werner LEMBERG  <wl@gnu.org>
6889         Add EC and TC fonts to devdvi.
6891         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
6892         * font/devdvi/generate/cork.map: Renamed to...
6893         * font/devdvi/generate/ec.map: This.
6894         Remove entry for `aq'.
6895         * font/devdvi/generate/tc.map: New file.
6896         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
6897         EC and TC fonts.
6898         (FONTS): Updated.
6899         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
6900         * font/devdvi/Makefile.sub (DEVFILES): Updated.
6901         * tmac/ec.tmac: New file.
6902         * tmac/Makefile.sub (NORMALFILES): Updated.
6903         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6904         * man/groff_char.man: Check `ECFONTS' register.
6906         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
6908 2002-02-26  Werner LEMBERG  <wl@gnu.org>
6910         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
6911         * font/devdvi/generate/cork.map: Add 'y and 'Y.
6912         * font/devdvi/*: Updated.
6913         * tmac/dvi.tmac: Formatting.
6915         Add font `HBI' for the dvi output.
6916         Add support for font families `T' and `H'.
6918         * font/devdvi/HBI: New file.
6919         * font/devdvi/B: Renamed to ...
6920         * font/devdvi/TB: This.
6921         * font/devdvi/BI: Renamed to ...
6922         * font/devdvi/TBI: This.
6923         * font/devdvi/I: Renamed to ...
6924         * font/devdvi/TI: This.
6925         * font/devdvi/R: Renamed to ...
6926         * font/devdvi/TR: This.
6927         * font/devdvi/H: Renamed to ...
6928         * font/devdvi/HR: This.
6929         * font/devdvi/Makefile.sub (DEVFILES): Updated.
6930         * font/devdvi/generate/Makefile (HBI): New rule.
6931         (FONTS): Updated.
6932         (R, I, B, BI, H): Renamed to ...
6933         (TR, TI, TB, TBI, HR): This, respectively.
6934         (srcdir): Fixed.
6935         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6936         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
6937         Add `styles' and `family' keywords.
6938         * tmac/dvi.tmac: Alias `H' to `HR'.
6939         Add some fspecial requests for italic fonts.
6940         Add TR and TI as special.
6941         Add support for `_' with font CWI.
6943         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
6944         operator `:'.  Until now, the expression `0:1' would return 2
6945         instead of 1.
6947 2002-02-25  Werner LEMBERG  <wl@gnu.org>
6949         * man/groff_char.man: Added some missing PS glyph names (from the
6950         Adobe Glyph List).
6951         * font/devps/generate/textmap, font/devps/symbolmap: Add
6952         `arrowupdn'.
6954         * doc/groff.texinfo: Minor additions and fixes.
6955         * man/groff_diff.man: Remove documentation of fp request.  This
6956         is already covered in the original troff manual.
6957         Updated to be consistent with other doc files.
6958         * NEWS: Updated.
6960 2002-02-24  Werner LEMBERG  <wl@gnu.org>
6962         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
6963         TTYDEVDIRS.
6964         Define new variable OTHERDEVDIRS (containing `font/devlj4
6965         font/devlbp' if not EBCDIC).
6966         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
6967         (OTHERDEVDIRS): New variable.
6968         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
6969         * configure: Regenerated.
6971         * NEWS, src/devices/grotty/grotty.man: Updated.
6973 2002-02-23  Werner LEMBERG  <wl@gnu.org>
6975         * src/roff/troff/input.cc (do_overstrike, do_bracket,
6976         get_line_arg): Honour input level.
6978         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
6980         * font/*/*: Implement it in all font files.
6981         * font/devps/generate/textmap, font/devps/generate/symbolchars,
6982         * font/devps/symbolmap: Updated.
6983         * font/devlj4/generate/text.map: Updated.
6984         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
6985         * font/devdvi/generate/texmi.map: Updated.
6987         * font/devutf8/R.proto: Remove all `charXXX' entries.
6988         * font/devutf8/NOTES: Updated.
6990         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
6991         version 4.1.0.
6993         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
6995         * NEWS, man/groff_char.man: Updated.
6997 2002-02-21  Phil Lobbes  <phil@perkpartners.com>
6999         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
7001 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7003         * src/roff/grog/grog.pl: Fix computation of $refer.
7005 2002-02-19  Werner LEMBERG  <wl@gnu.org>
7007         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
7008         `snprintf' and `vsnprintf'.
7010         * src/include/htmlindicate.h: Renamed to...
7011         * src/include/htmlhint.h: This.
7012         * src/include/Makefile.sub: Updated.
7013         * src/preproc/eqn/main.cc: Updated.
7015 2002-02-18  Werner LEMBERG  <wl@gnu.org>
7017         * man/roff.man, man/groff_out.man, man/groff.man,
7018         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
7019         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
7021         * win32-diffs: Updated.
7023 2002-02-17  Werner LEMBERG  <wl@gnu.org>
7025         * doc/Makefile (clean): Add *.eps.
7026         (MEMACROS): Removed.
7027         (TFLAG): New variable.
7028         (TROFF): Use it.
7029         Add -ww.
7030         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
7031         (.me.dit): Fixed.
7032         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
7034         * tmac/www.tmac: Use dummy diversion while resetting and disabling
7035         `.tl'.
7036         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
7037         unstripped.
7038         * src/roff/troff/troff.man: Fix order of parameter description.
7040         * NEWS: Updated.
7042 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
7044         Simplify image handling for grohtml.
7045         Fix <p> bug.
7047         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
7048         comment out.
7049         (html_text::dump_stack): Don't emit newline while debugging.
7050         (html_text::do_push) [DEBUGGING]: Print more info.
7051         (html_text::check_emit_text): Fix handling of <p>.
7052         * src/devices/grohtml/html.h: Updated.
7053         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
7054         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
7055         send its data to stderr also.
7056         Update all callers.
7057         (simple_output::space_or_newline) [DEBUGGING]: Removed.
7058         * src/devices/grohtml/post-html.cc (html_printer::do_links,
7059         html_printer::html_printer): Remove `DEBUGGING' conditionals.
7061         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
7062         Removed.
7063         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
7064         is_inline_image): Removed.
7065         (html_begin_suppress, html_end_suppress): Don't take a parameter.
7066         (graphic_start, graphic_end): Removed.
7067         * src/include/htmlindicate.h: Updated.
7068         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
7069         (macroset_template): New global variable.
7070         (makeFileName): Use `macroset_template'.
7071         (write_end_image): Don't take a parameter.
7072         Don't emit newline.
7073         (write_start_image: Don't emit newline.
7074         (char_buffer::write_upto_newline): Updated.
7075         (char_buffer::skip_to_newline): Renamed to ...
7076         (char_buffer::skip_until_newline): This.
7077         Fix code.
7078         (char_buffer::write_file_troff, char_buffer::write_file_html):
7079         Simplified.
7080         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
7081         (removeAllPages): Remove `DEBUGGING' conditionals.
7082         (addRegDef, dump_args): New functions.
7083         (char_buffer::do_html, char_buffer::do_image): Handle
7084         `www-image-template' command line variable.
7085         Add more debugging code.
7086         (addps4html): Removed.
7087         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
7089         * src/preproc/eqn/main.cc: Include `ctype.h'.
7090         (suppress_html): Removed.
7091         (do_file): Updated.
7092         (inline_equation): Use `html_begin_suppress' and
7093         `html_end_suppress'.
7094         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
7095         (troff_output::start_picture, troff_output::finish_picture):
7096         Updated.
7097         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
7098         (process_input_file): Updated.
7100         * src/roff/troff/div.cc (page_number): Set page number only if the
7101         `ps4html' register isn't defined.
7102         * src/roff/troff/input.cc (image_no): New external variable.
7103         (do_suppress): Use it.
7104         * src/roff/troff/node.h (suppress_node::image_id): New member.
7105         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
7106         (suppress_node::suppress_node): Initialize `image_id' member.
7107         (suppress_node::same): Handle `image_id' also.
7108         (suppress_node::copy): Updated.
7109         (last_image_id): New global variable.
7110         (suppress_node::tprint): Use it.
7112         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
7113         HTML-IMAGE-END.
7114         * tmac/pspic.mac (PSPIC): Fix html support.
7115         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
7116         * tmac/www.tmac (www-image-template): Set up.
7117         (HTMLINDEX): Renamed to...
7118         (HX): This.
7119         (BODYCOLOR): Renamed to...
7120         (BCL): This.
7121         (BACKGROUND): Renamed to...
7122         (BGIMG): This.
7123         (URL): Change order of parameters for consistency.
7124         (MAILTO): Renamed to...
7125         (MTO): This.
7126         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
7127         (IMG, PIMG, MPIMG): This.
7128         (HTML-H-BEGIN, HTML-H-END): Renamed to...
7129         (HnS, HnE): This.
7130         (LINKS): Renamed to...
7131         (LK): This.
7132         (LINE): Renamed to...
7133         (HR): This.
7134         (NO-AUTO-RULE): Renamed to...
7135         (NHR): This.
7136         (HTML-TL): Renamed to...
7137         (HTL): This.
7138         (UL-BEGIN, UL-END): Renamed to...
7139         (ULS, ULE): This.
7140         (DROPCAP): Renamed to...
7141         (DC): This.
7142         (TS, TE, EQ, EN): Provide default definitions.
7143         (www-make-unique-name): Updated.
7144         (HTML-IMAGE-INLINE): Fix typo.
7145         * tmac/groff_www.man: Updated.
7147         * doc/Makefile (homepage.html): Add option -r to grohtml.
7148         Use shortened image name.
7149         * doc/groff.texinfo: Updated info on grohtml strings and macros.
7150         * doc/homepage.ms: Updated and extended.
7152 2002-02-14  Werner LEMBERG  <wl@gnu.org>
7154         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
7156         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
7157         SGR_BACK_DEFAULT_COLOR): Replaced with ...
7158         (tty_printer::put_color): Use it.
7159         (ttr_printer::end_page): Simplify.
7161 2002-02-13  Werner LEMBERG  <wl@gnu.org>
7163         * tmac/groff_tmac.man: Moved to...
7164         * man/groff_tmac.man: This place.
7165         * tmac/Makefile.sub, man/Makefile.sub: Updated.
7167 2002-02-12  Werner LEMBERG  <wl@gnu.org>
7169         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
7170         $(COMPILE.c) to not include groff's assert.h.
7172         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
7173         variable.
7174         * NEWS, src/drivers/grotty/grotty.man: Document it.
7176 2002-02-11  Werner LEMBERG  <wl@gnu.org>
7178         * src/libs/snprintf/snprintf.c: Updated to latest version
7179         (2002-02-11).
7181         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
7182         test whether there is `.]' also.
7183         Don't check for spaces after `.['.
7184         * src/roff/grog/grog.sh: Do the same.
7186 2002-02-10  Werner LEMBERG  <wl@gnu.org>
7188         Illegal -> Invalid.
7190         * src/libs/libgroff/illegal.cc: Renamed to ...
7191         * src/libs/libgroff/invalid.cc: This.
7192         (illegal_char_table): Renamed to ...
7193         (invalid_char_table): This.
7194         * src/libs/libgroff/Makefile.sub: Updated.
7195         * win32-diffs: Updated.
7197         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
7198         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
7199         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
7200         font::load), src/preproc/eqn/main.cc (read_line, main),
7201         src/preproc/eqn/lex.cc (file_input::read_line),
7202         src/preproc/pic/lex.cc (file_input::read_line,
7203         simple_file_input::get, simple_file_input::peek),
7204         src/preproc/pic/main.cc (top_input::get, top_input::peek),
7205         src/preproc/pic/pic.man, src/preproc/refer/main.cc
7206         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
7207         do_bib), src/preproc/tbl/main.cc (table_input::get),
7208         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
7209         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
7210         do_zero_width, read_request, encode_char, ps_get_line,
7211         transparent_file, get_char_for_escape_name, transparent_translate,
7212         asciify, input_char_description, read_string, set_string),
7213         src/roff/troff/env.cc (environment::add_html_tag),
7214         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
7216         * src/include/lib.h: Updated.
7218         * src/preproc/eqn/eqn.cc: Removed.
7220         * NEWS: Updated.
7222         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
7224 2002-02-09  Werner LEMBERG  <wl@gnu.org>
7226         * doc/gnu.xpm: New image.
7227         * doc/Makefile (DOCS): Add homepage.ps.
7228         Add rules for converting xpm->png and xpm->eps.
7229         Use `gnu.{xpm,eps}' as image names.
7230         * doc/homepage.ms: Updated.
7232 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
7234         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
7235         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
7236         Remove calls to `B1' and `B2'
7237         (PNG-IMAGE): New macro for inclusion of images in PNG format.
7238         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
7239         auxiliary variables for MARGIN-PNG-IMAGE.
7240         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
7241         auxiliary macros for MARGIN-PNG-IMAGE.
7242         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
7243         the margin.
7244         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
7245         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
7246         (DROPCAP): New macro to produce dropcap characters.
7247         (www-do-image): Renamed back to...
7248         (HTML-DO-IMAGE): This.
7249         Updated all callers.
7251         * doc/Makefile (gnubw.eps): Updated.
7252         * doc/homepage.ms: Updated.
7254 2002-02-08  Werner LEMBERG  <wl@gnu.org>
7256         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
7257         Added `linethick' to table in section `Style Variables'.
7259 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
7261         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
7263 2002-02-07  Werner LEMBERG  <wl@gnu.org>
7265         Adding options -C (compatibility mode) and -c (grotty's old output
7266         scheme) to nroff.
7268         * src/roff/nroff/nroff.sh: Implement it.
7269         Remove `-Wall'.
7270         * NEWS, src/roff/nroff/nroff.man: Updated.
7272         * PROBLEMS: Document bison 1.32 bug.
7274         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
7276         * src/roff/troff/node.cc (make_tfont): Define it earlier.
7277         * src/roff/troff/div.h: Add prototype for `end_diversions'.
7278         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
7279         * src/roff/troff/env.h: Add prototype for `title'.
7281         Adding EBCDIC support to grotty.
7283         * src/devices/grotty/tty.cc (CSI): New macro.
7284         (SGR_*, tty_printer::put_color): Use it.
7286 2002-02-06  Werner LEMBERG  <wl@gnu.org>
7288         Implementing color support in grotty.  The new switch -c activates
7289         the old drawing scheme, disabling color at the same time.  The new
7290         switch `-i' selects italic instead of underlining (SGR only).
7292         * src/devices/grotty/tty.cc (putstring): New define instead of
7293         `fputs'.  Updated all callers.
7294         (old_drawing_scheme): New global variable.
7295         (COLOR_CHANGE): New enum value.
7296         (SGR_*): New defines containing color handling escape sequences.
7297         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
7298         (glyph): New members `back_color_idx' and `fore_color_idx'.
7299         (glyph::order): Add COLOR_CHANGE.
7300         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
7301         `is_underline', `is_bold', `cu_flag', `tty_colors'.
7302         New methods `make_underline', `make_bold', `color_to_idx',
7303         `change_color', `put_color'.
7304         (cu_flag): Moved into `tty_printer' class.
7305         (tty_printer::tty_printer): Initialize colors.
7306         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
7307         tty_printer::draw, tty_printer::end_page): Handle colors also.
7308         (main): Add options `-c' and `-i'.
7309         (usage): Updated.
7310         * NEWS, src/devices/grotty/grotty.man: Updated.
7312         * src/include/errarg.h (errarg): Add support for `unsigned int'.
7313         * src/libs/libgroff/errarg.c: Implement it.
7315         * src/include/printer.h (printer): Add `change_color' method
7316         (currently used by grotty only).
7317         * src/libs/libdriver/printer.cc: Implement it.
7318         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
7319         call to `pr->change_color'.
7321         * src/roff/troff/node.cc (troff_output_file::fill_color,
7322         troff_output_file::glyph_color): Call `do_motion'.
7324         * tmac/tty.tmac: Add color definitions.
7326         * src/roff/groff/groff.man: Minor fixes.
7328 2002-02-05  Bernd Warken  <bwarken@mayn.de>
7330         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
7331         it.  This is a preparation for future changes.
7333 2002-02-05  Werner LEMBERG  <wl@gnu.org>
7335         * src/roff/troff/input.cc (process_input_stack): Fix the case
7336         where leading spaces are followed by \f or \s; previously, an
7337         incorrect space width has been used.
7339         * doc/roff.man (quoted_char): Fix argument.
7340         (comment): Define string.
7342 2002-02-04  Larry Kollar  <kollar@alltel.net>
7344         * doc/groff.texinfo: More fixes.
7346 2002-02-04  Werner LEMBERG  <wl@gnu.org>
7348         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
7349         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
7350         `restore_compatibility' before `output_string' -- the LINE_STRING
7351         register now already contains proper switches from and to
7352         compatibility mode.
7354         * man/groff_char.man: Add Euro symbol.
7355         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
7356         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
7357         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
7358         Other minor fixes.
7360         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
7361         texinfo->pdf.
7362         (.texinfo.html): Add support for texinfo->html.
7364 2002-02-03  Werner LEMBERG  <wl@gnu.org>
7366         Added three new requests `ds1', `as1', and `ami'.  The former two
7367         are equivalent to `ds' and `as' with the difference that
7368         compatibility mode is saved on entry, switched off during string
7369         expansion, and restored on exit.  The latter is the pendant to `dei'
7370         for `am'.
7372         (do_define_string): Use `define_mode' and `calling mode'.
7373         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
7374         end of string, respectively.
7375         (define_string, append_string): Use `calling_mode'.
7376         (define_nocomp_string, append_nocomp_string,
7377         define_string_indirect): New functions.
7378         (init_input_requests): Updated.
7379         * NEWS, man/groff_diff.man, man/groff.man: Document it.
7381         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
7382         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
7383         mm macro package accesses this string register directly.
7384         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
7386         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
7387         compatibility mode.
7389 2002-02-02  Larry Kollar  <kollar@alltel.net>
7391         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
7393 2002-01-31  Werner LEMBERG  <wl@gnu.org>
7395         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
7397 2002-01-31  Bernd Warken  <bwarken@mayn.de>
7399         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
7400         * man/groff_out.man: Revised and updated.
7402 2002-01-30  Bernd Warken  <bwarken@mayn.de>
7404         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
7405         out the unused `{' and `}' commands.  Undefined by default.
7406         (IntArray): Make `data' private.
7407         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
7408         new methods instead.
7409         (skip_line_D, skip_to_end_of_line): New functions.
7410         (get_D_fixed_args): Use `skip_line_D'.
7411         Changed to handle dummy odd arguments by ...
7412         (get_D_fixed_args_odd_dummy): This new function.
7413         (get_D_variable_args): Split some code into ...
7414         (get_possibly_integer_args): This new function.
7415         (send_draw): Use more `const'.
7416         (delete_current_env): New function.
7417         (position_to_end_of_args): Use `size_t'.
7418         Updated.
7419         (send_draw): Updated.
7420         (parse_D_command): Handle `c', `C', and `t' better.
7421         Updated.
7422         (do_file): Updated.
7424 2002-01-29  Werner LEMBERG  <wl@gnu.org>
7426         * NEWS: Revised.
7427         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
7428         @Def...ListEnd which replaces @Def...x.  This is necessary to get
7429         proper HTML output -- see the comment in the file for more
7430         information.
7431         Updated all calls.
7433 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
7435         Fixes to make color changes of 2002-01-21 work with grohtml.
7437         * src/devices/grohtml/post-html.cc (style): Updated.
7438         (html_printer): Remove unused methods.
7439         (html_printer::do_font, html_printer::draw, html_printer::set_char,
7440         html_printer::special): Updated.
7441         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
7442         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
7443         Added some debugging code.
7444         (html_text::start_tag): Updated.
7445         (html_text::do_push): New method.
7446         (html_text::push_para): Call it.
7447         Add method for handling color.
7448         (html_text::do_color): Updated.
7449         (html_text::shutdown): Handle color.
7450         * src/devices/grohtml/html-text.h (tag_definition): New member
7451         `col'.
7452         Updated.
7454 2002-01-28  Werner LEMBERG  <wl@gnu.org>
7456         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
7458 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
7460         Add two switches -a and -g to control the antialiasing bits for
7461         text and graphics, respectively.
7463         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
7464         `-g'.
7465         * src/devices/grohtml/grohtml.man: Document them.
7466         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
7467         New macros.
7468         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
7469         (setupAntiAlias): New function.
7470         (createAllPages): Updated.
7471         (scanArguments): Handle `-a' and `-g'.
7472         (main): Call `setupAntiAlias'.
7473         * NEWS: Updated.
7475 2002-01-27  Werner LEMBERG  <wl@gnu.org>
7477         * doc/groff.texinfo (Def*): Call index function after deffn.
7479         * tmac/html.tmac: Call `nroff' request.
7481 2002-01-26  Larry Kollar  <kollar@alltel.net>
7483         * tmac/groff_ms.man: Add some omissions.
7485 2002-01-25  Larry Kollar  <kollar@alltel.net>
7487         * tmac/groff_ms.man: Typographical improvements.
7489 2002-01-25  Werner LEMBERG  <wl@gnu.org>
7491         * doc/groff.texinfo: Updated version and copyright.
7492         * src/devices/grops/grops.man: Updated.
7494         * tmac/groff_tmac.man: Fix `ig' macro.
7496         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
7497         nroff mode.
7498         Use `.ne' unconditionally everywhere.
7499         (TS): Only insert some vertical space.  Doing a page break is no
7500         longer necessary due to the redefinition of the `ne' request.
7502         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
7503         warning for unknown subcommands but parse and pass them to the
7504         device driver.
7506 2002-01-24  Werner LEMBERG  <wl@gnu.org>
7508         * tmac/groff_www.man, NEWS: Fix typos.
7510 2002-01-21  Werner LEMBERG  <wl@gnu.org>
7512         Complete revision of color support:
7514           Adapt programs to the new libdriver/input.cc.
7516           Color spaces are no longer converted to RGB but transferred as-is
7517           in the troff intermediate output format.
7519           Handle default color gracefully.  troff now supports a `default'
7520           color (which can't be changed).
7522           grops will now use the proper color space functions if available.
7524           Update pic.
7526         Note that currently grohtml doesn't handle colors properly.  This
7527         has to be fixed.
7529         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
7530         (ui_to_a): New function.
7531         * src/include/lib.h: Updated.
7533         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
7534         (color): Simplified; removed all `double' members and methods.
7535         A new array `components' now holds the color parameters.
7536         (color::is_default, color::get_components): New methods.
7537         (color::operator==, color:operator!=): New.
7538         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
7539         to make access to the `components' array more comprehensible.
7540         * src/libs/libgroff/color.cc: Implement new color support.
7541         (atoh): Small fixes.
7542         (color::read_encoding): Simplified for new troff intermediate color
7543         output format.
7544         (default_color): New global variable.
7546         * src/roff/troff/input.cc (default_symbol): New global variable.
7547         (lookup_color): Use it.
7548         (default_black): Removed.
7549         (do_glyph_color, do_fill_color): Simplified.
7550         (define_color): Handle default color.
7551         Improve warnings.
7552         (do_if_request): Handle default color.
7553         * src/roff/troff/env.cc (environment::environment): Initialize
7554         colors with `default_color'.
7555         * src/roff/troff/node.cc (troff_output_file::put): Add method
7556         for `unsigned int'.
7557         (troff_output_file::hex): Removed.
7558         (troff_output_file::fill_color, troff_output_file::glyph_color):
7559         Updated to include/color.h and libdriver/input.cc.
7561         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
7562         fill color properly (identically to the outline color).  \D'f...'
7563         doesn't work any more.
7564         All function calls to it updated.
7566         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
7567         Updated.
7568         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
7569         Updated.
7571         * src/devices/grops/ps.cc (ps_output::put_color): New method.
7572         (ps_printer::sbuf_color): Make a real member instead of pointer.
7573         (ps_printer::fill_color, ps_printer::output_color): Removed.
7574         (ps_printer::ps_printer): Updated.
7575         (ps_printer::set_char): Ditto.
7576         (ps_printer::set_color): Use various color schemes.
7577         Use `put_color' method.
7578         (ps_printer::flush_sbuf): Don't set color.
7579         (ps_printer::fill_path): Take `environment' as parameter.
7580         Simplify color handling.
7581         (ps_printer::set_line_thickness): Renamed to ...
7582         (ps_printer::set_line_thickness_and_color): This (and updated).
7583         (ps_printer::set_color): Change second parameter from `complete'
7584         to `fill' which better describes what it does.
7585         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
7586         and text in the right order.
7587         Updated.
7588         Remove branches for `f' and `F'; this is handled by
7589         libdriver/input.cc.
7590         * src/devices/grops/ps.h: Updated.
7591         * font/devps/prologue (FL): Redefined.
7592         ({F,C}r,k,g: New color functions (with and without filling).
7594         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
7595         * man/groff_diff.man, man/groff.man, man/groff_out.man,
7596         doc/groff.texinfo, NEWS: Updated.
7598 2002-01-20  Bernd Warken  <bwarken@mayn.de>
7600         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
7601         in this file for what has been changed.
7603 2002-01-19  Werner LEMBERG  <wl@gnu.org>
7605         * test-groff: Fix GROFF_FONT_PATH.
7606         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
7607         is read before .TH or .Dd is parsed.
7609 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
7611         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
7612         quadrant boundaries.
7614 2002-01-18  Werner LEMBERG  <wl@gnu.org>
7616         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
7617         applied last patch.
7619 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
7621         * tmac/doc.common: Initialize %I register for the %I macro to
7622         avoid (harmless) warning.
7623         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
7624         when in the SYNOPSIS section.
7626 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
7628         * src/preproc/pic/lex.cc (get_token): Fix typo.
7630 2002-01-17  Werner LEMBERG  <wl@gnu.org>
7632         * devices/grops/ps.cc: Fix incorrectly applied last patch.
7634 2002-01-17  Larry Kollar  <kollar@alltel.net>
7636         * tmac/groff_ms.man: Completely rewritten.
7638 2002-01-16  Werner LEMBERG  <wl@gnu.org>
7640         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
7642 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
7644         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
7645         fill colors.
7646         (ps_printer::draw): Ditto.
7648 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
7650         * tmac/groff_mdoc.man: Minor fixes.
7652 2002-01-13  Werner LEMBERG  <wl@gnu.org>
7654         * man/groff_out.man: Some fixes.
7656 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
7658         * doc/pic.ms: Fix typos.
7660 2002-01-12  Werner LEMBERG  <wl@gnu.org>
7662         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
7664 2002-01-10  Werner LEMBERG  <wl@gnu.org>
7666         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
7667         symbols.
7668         * NEWS: Updated.
7670 2002-01-09  Bernd Warken  <bwarken@mayn.de>
7672         * man/groff_out.man: Revised.
7673         * man/roff.man: Minor fixes.
7674         * src/roff/troff/troff.man: Some reordering.
7676 2002-01-09  Werner LEMBERG  <wl@gnu.org>
7678         * tmac/an-old.tmac: Add dummy macros for equation support.
7680 2002-01-07  Werner LEMBERG  <wl@gnu.org>
7682         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
7684         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
7685         man pages.
7686         * tmac/groff_man.man: Small improvements.
7688 2002-01-07  Bernd Warken  <bwarken@mayn.de>
7690         * man/groff_diff.man: Revised.
7692 2002-01-06  Werner LEMBERG  <wl@gnu.org>
7694         * tmac/www.tmac: Remove extraneous backslash.
7696 2002-01-06  Bernd Warken  <bwarken@mayn.de>
7698         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
7700 2002-01-05  Werner LEMBERG  <wl@gnu.org>
7702         Integrated groffer, contributed by Bernd Warken.
7704         * contrib/groffer/*: New.       
7705         * Makefile.in, NEWS: Updated.
7707 2002-01-04  Werner LEMBERG  <wl@gnu.org>
7709         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
7710         registers defined in macro packages.
7711         Revising the ms part.
7713 2002-01-04  Larry Kollar  <kollar@alltel.net>
7715         * doc/groff.texinfo: Add documentation for ms macros.
7717 2002-01-02  Werner LEMBERG  <wl@gnu.org>
7719         First step in adding PS support for the Euro symbol.  `eu' is the
7720         official Euro logo, `Eu' is a font-specific glyph variant.
7722         * font/devps/text.enc: Add `Euro' at position 9.
7723         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
7724         * font/devps/symbolmap: Regenerated.
7726         * NEWS: Updated.
7728 2002-01-02  Bernd Warken  <bwarken@mayn.de>
7730         * man/roff.man: Revised.
7732 2002-01-01  Bernd Warken  <bwarken@mayn.de>
7734         * src/roff/groff/groff.man: Completely rewritten.
7736 2001-12-31  Werner LEMBERG  <wl@gnu.org>
7738         * doc/Makefile: Updated.
7740 2001-12-30  Werner LEMBERG  <wl@gnu.org>
7742         * tmac/www.tmac: Make all names of internal macros/registers/strings
7743         lowercase, and prepend `www-'.
7744         Other minor changes.
7745         * src/roff/troff/troff.man: Add preprocessor string at BOF.
7747 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
7749         Implement option `-b' in grohtml to set the HTML background colour.
7751         * src/devices/grohtml/post-html.cc (default_background): New global
7752         variable.
7753         (html_printer::html_printer): Initialize `background' to
7754         `default_background'.
7755         (main): Implement option `-b'.
7756         (usage): Updated.
7757         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
7758         of `-b' option.
7759         * src/devices/grohtml/grohtml.man: Updated.
7760         * doc/Makefile (.ms.html): Use `-b'.
7761         * tmac/html.tmac: Don't set background color.
7763         Add new grohtml tag `.html-tl'.
7765         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
7766         member variable.
7767         (title_desc::title_desc): Updated.
7768         (html_printer::troff_tag): Handle `.html-tl'.
7769         (html_printer::write_title): Use `with_h1'.
7770         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
7771         (HTML-TL): New macro.
7773         Add support for unordered lists in HTML.
7775         * tmac/www.tmac (www-level): New auxiliary register.
7776         (www-level1, www-level2, www-level3): New auxiliary strings.
7777         (www-push-level, www-pop-level): New auxiliary macros
7778         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
7780         Miscellaneous.
7782         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
7783         (DEFAULT_VERTICAL_OFFSET): Removed.
7784         (IMAGE_BOARDER_PIXELS): Set to 0.
7785         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
7786         (vertical_offset): Initialize with 0.
7787         (gsPaper): New global variable.
7788         (get_resolution): Scan for and return unsigned int.
7789         (get_papersize): New function to get paper length from devps/DESC.
7790         (determine_vertical_offset): New function.
7791         (createAllPages): Produce gray-level images and use proper page
7792         length.
7793         (createImage): Use `-quiet' option of pnmcrop.
7794         (addZ): Fix passing of `-Z'.
7795         (scanArguments): Fix handling of `-o'.
7796         (main): Call `determine_vertical_offset'.
7797         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
7798         code for `l'.
7800         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
7801         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
7802         glyph descenders properly.
7804         * doc/homepage.ms: Include `gnubw.eps'.
7805         * doc/Makefile (gnubw.eps): New rule.
7806         (homepage.html): Depend on `gnubw.eps'.
7808 2001-12-25  Werner LEMBERG  <wl@gnu.org>
7810         * src/roff/troff/input.cc (default_black): Fix return value.
7812 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
7814         * tmac/doc-common (Dt): Change output of architecture strings.
7815         Do some syntax cleanup.
7816         * tmac/groff_mdoc.man: Updated.
7818 2001-12-23  Werner LEMBERG  <wl@gnu.org>
7820         Adding an `itc' request (input line trap accepting \c).
7822         * src/roff/troff/env.h (environment): New member
7823         `continued_input_trap'.
7824         Make `do_input_trap' a friend function instead of `input_trap'.
7825         * src/roff/troff/env.cc (environment::environment,
7826         environment::copy): Updated.
7827         (environment::newline): Implement it.
7828         (do_input_trap): New function.
7829         (input_trap): Call `do_input_trap'.
7830         (input_trap_continued): New function.
7831         (init_env_requests): Updated.
7832         * src/roff/troff/TODO: Updated.
7834         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
7835         `.it'.
7837         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
7839 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
7841         * tmac/doc-common, tmac/doc-syms: Small updates.
7843 2001-12-22  Colin Watson  <cjwatson@debian.org>
7845         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
7847 2001-12-22  Bernd Warken  <bwarken@mayn.de>
7849         * MANIFEST: New file.
7851 2001-12-22  Werner LEMBERG  <wl@gnu.org>
7853         * src/preproc/grn/grn.man: Updated.
7855 2001-12-22  Solar Designer  <solar@openwall.com>
7857         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
7858         (DBRead): Use it.
7860 2001-12-19  Werner LEMBERG  <wl@gnu.org>
7862         Implement a fallback character request `.fchar'.
7864         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
7865         (is_fallback): New inline function.
7866         * src/roff/troff/input.cc (do_define_character): New function.
7867         (define_character): Call `do_define_character'.
7868         (define_fallback_character): New function.
7869         (init_input_requests): Add `fchar'.
7870         (charinfo::charinfo): Updated.
7871         (charinfo::set_macro): New argument to set `fallback' flag.
7872         * src/roff/troff/node.cc (make_glyph_node, make_node,
7873         node::add_char): Check `fallback' flag.
7874         * NEWS, man/groff_diff.man, man/groff_man: Updated.
7876 2001-12-16  Werner LEMBERG  <wl@gnu.org>
7878         * groff.texinfo: Document exact search algorithm for glyphs.
7880 2001-12-15  Werner LEMBERG  <wl@gnu.org>
7882         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
7883         the left side of $(MANPAGES) rule to make it always non-empty.
7885 2001-12-14  Werner LEMBERG  <wl@gnu.org>
7887         * src/roff/troff/input.cc (default_black): Define default color
7888         `black' if not yet defined.
7890 2001-12-13  Werner LEMBERG  <wl@gnu.org>
7892         Implement new string-valued register `.fn' to return the current
7893         real (internal) font name.
7895         * env.cc (environment::get_font_name_string): New function.
7896         (init_env_requests): Add `.fn' register.
7897         * env.h (environment): Updated.
7898         * node.cc (font_info): Make `get_font_name' a friend.
7899         (get_font_name): New function.
7900         * node.h: Updated.
7902         * man/groff_diff.man, man/groff.man, NEWS: Updated.
7904 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7906         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
7908 2001-12-12  Werner LEMBERG  <wl@gnu.org>
7910         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
7912 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
7914         * man/groff_diff.man: Adding documentation for \O.
7916 2001-12-10  Werner LEMBERG  <wl@gnu.org>
7918         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
7919         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
7921 2001-12-09  Werner LEMBERG  <wl@gnu.org>
7923         * man/roff.man: Revised.
7924         * src/roff/groff/groff.man: Replace man page references with a
7925         pointer to roff.man.
7927 2001-12-09  Bernd Warken  <bwarken@mayn.de>
7929         * man/roff.man: Completely rewritten.
7931 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7933         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
7935 2001-12-05  Werner LEMBERG  <wl@gnu.org>
7937         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
7938         longer used.
7939         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
7940         order of initializers.
7941         * NEWS: Updated.
7943 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
7945         * doc/groff.texinfo: Fix documentation of \O.
7947         * src/devices/grohtml/html-text.cc (html_text::do_indent,
7948         html_text::do_table, html_text::do_emittext, html_text::do_para):
7949         Use `const' for first argument.
7950         (html_text::do_table): Use cast.
7951         * src/devices/grohtml/html-text.h: Updated.
7952         * src/devices/grohtml/output.cc (simple_output::put_string): Add
7953         method for `const string &s'.
7954         * src/devices/grohtml/html.h: Updated.
7955         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
7956         (ANCHOR_TEMPLATE): Modified.
7957         (manufacture_headings): New global variable to handle `-h' option.
7958         (is_subsection): Removed.
7959         (char_buffer::add_string): Add `const' to first argument.
7960         Protect against invalid string argument.
7961         Add method for `const string &s'.
7962         (text_glob): Completely redesigned.
7963         (page): Use `const' for strings and remove string length variable.
7964         (page::add_html): Removed.
7965         (page::add_end_encode): New member function.
7966         (to_unicode): Moved upwards.
7967         (title_desc, header_desc): Updated.
7968         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
7969         definition.
7970         (html_printer::is_bold, html_printer::make_bold): New member
7971         functions.
7972         (html_printer::end_of_line): Updated.
7973         (generate_img_src, html_printer::do_auto_image,
7974         html_printer::do_title, html_printer::write_header,
7975         html_printer::determine_header_level, html_printer::do_heading,
7976         html_printer::do_linelength, html_printer::do_pageoffset,
7977         html_printer::do_indentation, html_printer::do_tempindent,
7978         html_printer::do_indentedparagraph, html_printer::do_break,
7979         html_printer::flush_sbuf, get_html_translation,
7980         html_printer::begin_page, html_printer::special): Rewritten to get
7981         rid of static string length limit.
7982         (html_printer::troff_tag): Added `.no-auto-rule'.
7983         (html_printer::flush_globs): Small fix.
7984         (html_printer::determine_space): Don't compute `space_width'.
7985         (html_printer::translate_to_html): Renamed to ...
7986         (html_printer::emit_html): This (with updates).
7987         (html_printer::write_header): Implement `-h' option.
7988         (html_printer::draw): Remove commented-out code.  Handle `F'
7989         command.
7990         (html_printer::add_char_to_sbuf): Removed.
7991         (html_printer::add_to_sbuf): Rewritten.
7992         (html_printer::sbuf_continuation): Fixed.
7993         (html_printer::seen_backwards_escape, reverse,
7994         html_printer::remove_last_char_from_sbuf): Removed.
7995         (char_translate_to_html, str_translate_to_html): Removed.
7996         (html_printer::overstrike): New function member.
7997         (html_printer::set_char): Use it.
7998         (html_printer::do_body): New function member.
7999         (html_printer::~html_printer): Use it.
8000         (main): Handle `-h' option.
8001         (usage): Updated.
8002         * src/devices/grohtml/grohtml.man: Document -h switch.
8004         * src/preproc/html/pre-html.cc: Include searchpath.h
8005         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
8006         (get_resolution): New function.
8007         (checkImageDir): Use `0777' permissions in mkdir()
8008         (write_start_image): Rewritten to use `\O[5...]'.
8009         (createImage, generateImages): Updated.
8010         (main): Handle `F' and `h' options.
8011         Use `get_resolution'.
8013         * src/roff/troff/input.cc (begin, end, image): Removed.
8014         (do_suppress): Take parameter.
8015         Handle modified syntax of `\O'.
8016         (token::next): Updated.
8017         (init_markup_requests): Removed.
8018         (main): Updated.
8020         * src/roff/troff/div.h: Add declaration for begin_page().
8022         * tmac/color-html.tmac: Removed.  Contents moved to...
8023         * tmac/html.tmac: Here.  Set background color.
8024         * tmac/color.tmac: Removed.  Contents moved to...
8025         * tmac/ps.tmac: Here.
8026         * tmac/www.tmac: Remove the title command when generating images
8027         for html.
8028         (NO_AUTO_RULE): New macro.
8029         (HTML_DO_IMAGE): Use revised `\O' escapes.
8030         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
8032 2001-12-02  Werner LEMBERG  <wl@gnu.org>
8034         * tmac/groff_mdoc.man: Fix typo.
8036 2001-12-01  Colin Watson  <cjwatson@debian.org>
8038         * man/roff.man: Fix typo.
8040 2001-11-29  Werner LEMBERG  <wl@gnu.org>
8042         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
8043         stdlib.h.
8045         * src/roff/troff/input.cc (read_draw_node): Emit error message if
8046         more than one argument to \D'f ...'.
8048         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
8050 2001-11-28  Werner LEMBERG  <wl@gnu.org>
8052         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
8053         loaded only once.
8055         * tmac/groff_man.man: Minor cosmetic fix.
8057 2001-11-27  Werner LEMBERG  <wl@gnu.org>
8059         * src/roff/groff/groff.man, tmac/groff_tmac.man,
8060         tmac/groff_www.man: s/mwww/www/.
8062 2001-11-26  Werner LEMBERG  <wl@gnu.org>
8064         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
8065         * configure: Regenerated.
8066         * win32-diffs: Updated.
8068         * tmac/groff_mwww.tmac: Renamed to ...
8069         * tmac/groff_www.tmac: This.
8070         * tmac/mwww.tmac: Removed.
8071         * NEWS, tmac/Makefile.sub: Updated.
8073 2001-11-21  Werner LEMBERG  <wl@gnu.org>
8075         * doc/groff.texinfo: Improve documentation of the `\v' escape.
8076         Fix explanation of `\D' and `rt'.
8078 2001-11-20  Werner LEMBERG  <wl@gnu.org>
8080         * tmac/an-old.tmac (an-header): Set header length equal to page
8081         width.
8082         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
8083         minor fixes.
8084         * NEWS: Small fix.
8086 2001-11-19  Werner LEMBERG  <wl@gnu.org>
8088         * NEWS, man/Makefile.sub: Updated.
8090 2001-11-19  Bernd Warken  <bwarken@mayn.de>
8092         * man/ditroff.man: New file.
8094 2001-11-17  Werner LEMBERG  <wl@gnu.org>
8096         * man/groff_differences.man: Renamed to ...
8097         * man/groff_diff.man: This.  Updated.
8098         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
8100         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
8101         * src/preproc/html/pushback.cc: This.  Updated.
8102         * src/preproc/html/pushbackbuffer.h: Renamed to ...
8103         * src/preproc/html/pushback.h: This.
8104         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
8105         Updated.
8107         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
8108         * src/libs/libgroff/htmlhint.cc: This.
8109         * src/libs/libgroff/Makefile.sub: Updated.
8111         * tmac/an-old.tmac (an-end): Fix page length.
8113 2001-11-16  Werner LEMBERG  <wl@gnu.org>
8115         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
8116         * man/Makefile.sub: Include groff_differences.man.
8117         * VERSION: Set to 1.18.
8118         * REVISION: Set to 0.
8120 2001-11-16  Bernd Warken  <bwarken@mayn.de>
8122         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
8123         the second dot (or ending macro name) to end a macro.
8124         * doc/groff.texinfo: Doc fix.
8126 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
8128         * tmac/doc-common (doc-header): Handle very long document titles
8129         better.
8131 2001-11-16  Werner LEMBERG  <wl@gnu.org>
8133         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
8135 2001-11-15  Werner LEMBERG  <wl@gnu.org>
8137         * src/roff/troff/troff.man: Revised and split into troff.man and...
8138         * man/groff_differences.man: New file.
8139         * NEWS: Updated.
8141 2001-11-13  Werner LEMBERG  <wl@gnu.org>
8143         * tmac/an-old.tmac (TS, TE): New macros for table support.
8145 2001-11-12  Werner LEMBERG  <wl@gnu.org>
8147         * src/include/lib.h: Provide a fix for emx to not include
8148         groff-getopt.h.
8150 2001-10-27  Werner LEMBERG  <wl@gnu.org>
8152         * src/roff/troff/input.cc (substring_macro): Fix computation of
8153         boundary values.
8155 2001-10-20  Werner LEMBERG  <wl@gnu.org>
8157         Undo change from 2001-08-28.
8159         * src/roff/troff/input.cc (have_input): New global variable.
8160         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
8161         in compatibility mode.
8162         (process_input_stack): Use it.
8164 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
8166         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
8167         being handled as end-of-sentence characters,
8169 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
8171         * src/roff/troff/input.cc (file_iterator): New members
8172         `suppress_newline_flag' and `seen_escape'.
8173         (file_iterator::next_file): Updated.
8174         (file_iterator::fill): Use it.
8175         (string_iterator): New member `suppress_newline_flag'.
8176         (string_iterator::fill): Set it.
8177         (get_color_element): Use MAX_COLOR_VAL.
8178         * src/roff/troff/env.cc (environment): Remove `need_eol'.
8179         (no_fill): Don't set `env->ignore_next_eol'.
8180         (environment::newline): Handle `eol' tag properly.
8181         Emit `eol.ce'.
8182         (environment::add_html_tag): Set `env->ignore_next_eol'.
8183         Don't handle `.ce'.
8184         * src/roff/troff/env.h (environment): Updated.
8186         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
8187         member function.
8188         (html_printer::outstanding_eol): New member function.
8189         (html_printer::do_title): Use new functions.
8190         (html_printer::troff_tag): Test `id_eol_ce'.
8192 2001-10-10  Werner LEMBERG  <wl@gnu.org>
8194         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
8195         files work with -C also.
8197 2001-10-05  Werner LEMBERG  <wl@gnu.org>
8199         * doc/pic.ms: Minor fix.
8200         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
8201         as a valid command line switch.
8202         * src/devices/grohtml/post-html.cc (main): Ditto.
8203         (usage): Updated.
8204         * src/devices/grohtml/grohtml.man: Updated.
8205         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
8207 2001-10-04  Werner LEMBERG  <wl@gnu.org>
8209         Implementing color support in troff, pic, grops, and grohtml.  These
8210         changes are based on a major patch provided by Gaius Mulley
8211         <gaius@glam.ac.uk>.
8213         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
8214         definitions with both hex values and fractions.
8216         New escapes: \m and \M for drawing and background color,
8217         respectively.  This corresponds to the troff output commands `m'
8218         and `DF'.
8220         groff and troff accept command line switch `-c' to disable color
8221         output (which is automatically disabled in compatibility mode).
8223         New scaling indicator `f' for fractions (1f = 65536u).
8225         New conditional operator `m' to test for defined colors with `if'
8226         and `ie'.
8228         New keywords `color' (or `colour', `colored', `coloured'), `outline'
8229         (or `outlined'), and `shaded' added to pic.
8231         * src/include/color.h: New file.
8232         * src/include/driver.h: Include it.
8233         * src/include/printer.h: Include color.h.
8234         (environment): New members `col' and `fill'.
8235         (printer): Remove `adjust_arc_center' member function.
8236         * src/include/Makefile.sub: Updated.
8238         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
8239         `env.fill'.
8240         Handle `m' and `DF' troff commands.
8241         * src/libs/libgroff/color.cc: New file.
8242         * src/libs/libgroff/Makefile.sub: Updated.
8244         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
8245         (stop): Removed.
8246         (createImage): Fix computation of `y2'.
8247         Use `pnmcrop' also.
8248         (buffer::write_file_html): Remove calls to `stop'.
8250         * src/preproc/pic/common.h (common_output): New abstract function
8251         members `set_color', `reset_color', `get_last_filled', and
8252         `get_outline_color'.
8253         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
8254         (object_spec): Add members `shaded' and `outlined'.
8255         * src/preproc/pic/output.h (output): `command' is now abstract.
8256         New function members `set_color', `reset_color', `get_last_filled',
8257         and `get_outline_color'.
8258         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
8259         `outline[d]', and `shaded'.
8260         * src/preproc/pic/object.cc (output::command): Removed.
8261         (output::set_location): Moved to output.h.
8262         (graphic_object): Add protected members `outline_color' and
8263         `color_fill'.
8264         Add member functions `set_outline_color', `get_outline_color', and
8265         `set_fill_color'.
8266         (closed_object): Add member function `set_fill_color'.
8267         Add member `color_fill'.
8268         (graphic_object::print_text): Use `out->set_color' and
8269         `out->reset_color'.
8270         (box_object::print, ellipse_object::print, circle_object::print,
8271         line_object::print, spline_object::print, arc_object::print): Ditto.
8272         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
8273         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
8274         `SHADED', making them `%left'.
8275         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
8276         * src/preproc/pic/tex.cc (tex_output): New dummy function members
8277         `set_color', `reset_color', `get_last_filled', and
8278         `get_outline_color'.
8279         * src/preproc/pic/troff.cc (simple_output): New abstract function
8280         members `set_color', `reset_color', and `get_last_filled'.
8281         (simple_output::polygon, simple_output::circle,
8282         simple_output::ellipse): Use `get_last_filled'.
8283         (troff_output): New members `last_filled' and `last_outlined'.
8284         New function members `set_color', `reset_color', `get_last_filled',
8285         and `get_outline_color'.
8286         (troff_output::finish_picture): Use `reset_color'.
8287         (troff_output::set_fill): Test `last_filled'.
8288         * src/preproc/pic/pic.man: Updated.
8290         * src/roff/groff/groff.cc (main): Implement `-c' option.
8291         (synopsis, help): Updated.
8292         src/roff/groff/groff.man: Updated.
8294         * src/roff/troff/troff.h: Include color.h.
8295         (warning_type): Add WARN_COLOR.
8296         * src/roff/troff/env.h (environment): New members
8297         `{cur,prev}_{glyph,fill}_color'.
8298         New member functions `get_{prev_,}{glyph,fill}_color'.
8299         * src/roff/troff/env.cc: Initialize and implement them.
8300         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
8301         Replace `NULL' with `0' everywhere for consistency.
8302         (lookup_color, default_black, do_glyph_color, do_fill_color,
8303         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
8304         define_color): New functions.
8305         (token::next): Implement \M and \m escapes.
8306         (do_if_request): Implement `m' operator.
8307         (usage): Updated.
8308         (main): Implement `-c' option.
8309         (init_markup_requests): Add `defcolor' request.
8310         (warning_table): Add `color' warning.
8311         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
8312         classes.
8313         * src/roff/troff/node.cc (troff_output_file): New members
8314         `current_{page,glyph}color'.  New member functions `put_hex',
8315         `glyph_color', and `fill_color'.
8316         (glyph_color_node::*, fill_color_node::*): Implement it.
8317         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
8318         (parse_term): Add support for `f'.
8319         * src/roff/troff/troff.man: Updated.
8321         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
8322         entry for `F'.
8323         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
8324         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
8326         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
8327         (tag_definition): Use `void *' for arg1.
8328         (html_text): New member functions `do_color' and `done_color'.
8329         Use `void *' for second parameter of `push_para' member function.
8330         New `push_para' member function with a single parameter.
8331         Use `char *' for parameter of `issue_table_begin' member funtion.
8332         New `issue_color_begin' member function.
8333         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
8334         COLOR_TAG.
8335         (html_text::issue_color_begin): New function.
8336         (html_text::issue_table_begin): Use `char *' for parameter.
8337         (html_text::start_tag, html_text::shutdown,
8338         html_text::check_emit_text): Updated.
8339         (html_text::push_para): Use `void *' for second parameter.
8340         Add same function with only one parameter.
8341         (html_text::do_*): Updated.
8342         (html_text::do_color, html_text::done_color): New functions.
8343         * src/devices/grohtml/post-html.cc (style): New member `col'.
8344         Mew member `style' with 6 parameters.
8345         (style::style, style::operator==): Updated.
8346         (html_printer::do_font): Use it.
8347         (html_printer::draw): Add dummy entry for `F'.
8348         (html_printer::set_char): Updated.
8349         * src/devices/grohtml/grohtml.man: Updated.
8351         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
8352         trailing zeroes removed.
8353         (ps_printer): New members `sbuf_color', `fill_color', and
8354         `output_color'.
8355         Removed member `fill'.
8356         New member function `set_color'.
8357         (ps_printer::ps_printer, ps_printer::set_char): Updated.
8358         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
8359         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
8361         * tmac/color-html.tmac, tmac/color.tmac: New files.
8362         * tmac/troffrc: Include them.
8363         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
8364         * tmac/Makefile.sub: Updated.
8366         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
8367         man/groff.man: Updated.
8368         * font/devps/prologue.ps: Define FC and CO functions.
8370 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
8372         Fix incorrect cropping of images and incorrect handling of special
8373         characters.  Fix handling of file names in \O.
8375         * src/include/geometry.h: New file.
8376         * src/libs/libgroff/geometry.cc: New file.
8377         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
8378         to `geometry.cc'.
8379         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
8380         initial spaces.
8381         (do_suppress): Updated.
8382         * src/roff/troff/node.cc: Include geometry.h.
8383         (troff_output_file::flush_tbuf): Fixed parameters to
8384         `check_output_limits'.
8385         (troff_output_file::check_charinfo): Ditto.
8386         (troff_output_file::determine_line_limits): Add support for `Da'
8387         and `Dl' commands.
8389         * src/devices/grohtml/post-html.cc (str_translate_to_html):
8390         Add new parameter `is_special' to decode special characters from
8391         escape sequences.
8392         (html_printer::do_title, html_printer::do_heading,
8393         html_printer::do_indentedparagraph,
8394         html_printer::translate_to_html, html_printer::special): Updated.
8396 2001-10-03  Werner LEMBERG  <wl@gnu.org>
8398         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
8399         Fix entry for config.h.
8400         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
8401         * tmac/troffrc: Translate nonbreakable space character to `\~'.
8402         * src/preproc/eqn/eqn.man: Document -d command line option.
8404 2001-09-27  Werner LEMBERG  <wl@gnu.org>
8406         * man/groff.man: Use
8408           .ev xxx
8409           .na
8410           .nh
8411           <table>
8412           .ev
8414         instead of the old code (`.ad .hy' after the table) to suppress
8415         incorrect hyphenation for grohtml output.
8417 2001-09-22  Werner LEMBERG  <wl@gnu.org>
8419         * man/groff_font.man, man/groff_out.man: Minor fixes.
8421 2001-09-20  Werner LEMBERG  <wl@gnu.org>
8423         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
8424         Arnold Robbins <arnold@skeeve.com>).
8426 2001-09-09  Werner LEMBERG  <wl@gnu.org>
8428         * configure: Regenerated with autoconf 2.52.
8430         * doc/groff.texinfo: Complete revision of indices.
8432 2001-09-07  Werner LEMBERG  <wl@gnu.org>
8434         * doc/Makefile (clean): Updated to delete all indices.
8436 2001-09-05  Werner LEMBERG  <wl@gnu.org>
8438         * src/roff/troff/troff.man: Remove superfluous line.
8440         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
8441         given on the command line (or rather, if only the default warnings
8442         are set).
8444 2001-09-03  Werner LEMBERG  <wl@gnu.org>
8446         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
8447         use .ne for TTY devices.
8449 2001-08-31  Werner LEMBERG  <wl@gnu.org>
8451         * src/roff/troff/token.h, src/roff/troff/input.cc:
8452         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
8454 2001-08-28  Werner LEMBERG  <wl@gnu.org>
8456         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
8457         * src/roff/troff/input.cc (token::next): Return
8458         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
8459         compatibility mode.
8460         (token::description): Updated.
8461         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
8462         (token::add_to_node_list, token::process): Ignore
8463         TOKEN_TRANSPARENT_ESCAPE.
8465 2001-08-27  Werner LEMBERG  <wl@gnu.org>
8467         * tmac/an-old.tmac: Fix `S' string.
8469 2001-08-26  Werner LEMBERG  <wl@gnu.org>
8471         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
8473 2001-08-25  Werner LEMBERG  <wl@gnu.org>
8475         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
8476         backslashes).
8477         Many other minor fixes.
8479         * configure.ac: Add message at end to inform how to compile
8480         xditview.
8481         * configure: Regenerated.
8483 2001-08-24  Werner LEMBERG  <wl@gnu.org>
8485         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
8486         Updated to latest version of libc.
8488 2001-08-23  Werner LEMBERG  <wl@gnu.org>
8490         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
8491         Autoconf 2.50 and newer can handle this.
8492         * configure: Regenerated.
8494 2001-08-21  Werner LEMBERG  <wl@gnu.org>
8496         * doc/pic.ms: Fix typo.
8497         * src/preproc/tbl/tbl.man: Document case of global options.
8499 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
8501         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
8502         handling of `CR' font.
8504 2001-08-20  Werner LEMBERG  <wl@gnu.org>
8506         Use a config.h file.
8508         * src/include/lib.h: Include config.h.
8509         * All C files: Ditto (if necessary).
8510         * All C++ source and header files: Include lib.h first (if
8511         necessary).
8513         * src/include/config.hin: New file (autogenerated by autoheader).
8514         * stamp-h.in: New file.
8515         * configure.ac: Updated.
8516         * aclocal.m4: Add third parameters to AC_DEFINE macros.
8517         (GROFF_ARRAY_DELETE): Simplified.
8518         * Makefile.sub (DISTCLEANFILES): Updated.
8519         Added targets for remaking config.status, config.hin, config.h,
8520         stamp-h.in, and stamp-h.
8521         * configure: Regenerated.
8523 2001-08-19  Werner LEMBERG  <wl@gnu.org>
8525         * NEWS: Updated.
8527 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
8529         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
8530         (do_sprintf): Use snprintf().
8532 2001-08-18  Werner LEMBERG  <wl@gnu.org>
8534         * src/libs/snprintf/*: Added an snprintf module written by Mark
8535         Martinec.
8536         * src/libs/libgroff/Makefile.sub: Updated.
8537         * configure.ac: Add test for snprintf().
8538         * Makefile.in: Updated.
8539         * configure: Regenerated.
8541         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
8542         uses snprintf().
8544 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
8546         * tmac/doc.tmac (Ex): New implementation.
8547         * tmac/doc-common, tmac/groff_tmac.man: Updated.
8549 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
8551         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
8552         argument.
8553         * tmac/groff_tmac.man: Updated.
8555 2001-08-13  Werner LEMBERG  <wl@gnu.org>
8557         * src/preproc/tbl/tbl.man: Minor documentation update.
8559 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8561         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
8562         * configure.ac: Add declaration test for gettimeofday().
8563         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
8564         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
8565         * configure: Regenerated.
8567 2001-08-11  Werner LEMBERG  <wl@gnu.org>
8569         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
8570         * configure.ac: Add declaration test for strcasecmp().
8571         * Makefile.in: Updated.
8572         * configure: Regenerated.
8573         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
8574         this is necessary because groff's mkstemp.cc is C++.
8575         Add declaration conditionally for strcasecmp().
8577 2001-08-10  Werner LEMBERG  <wl@gnu.org>
8579         Integrated pic2graph, contributed by Eric S. Raymond.
8581         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
8582         files.
8583         * Makefile.in, NEWS: Updated.
8585         * src/preproc/tbl/tbl.man: Revised.
8587 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
8589         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
8591 2001-08-09  Werner LEMBERG  <wl@gnu.org>
8593         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
8594         requests.
8596 2001-08-08  Paul Eggert  <eggert@twinsun.com>
8598         * Makefile.sub (configure): Depend on configure.ac, not
8599         configure.in.
8600         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
8602 2001-08-07  Werner LEMBERG  <wl@gnu.org>
8604         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
8605         fixes.
8607 2001-08-06  Werner LEMBERG  <wl@gnu.org>
8609         * src/roff/troff/troff.man: Improve documentation of -E option.
8611 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
8613         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
8614         Simplified.
8616 2001-07-27  Werner LEMBERG  <wl@gnu.org>
8618         * src/preproc/refer/refer.cc: Undo last change.
8619         * src/devices/grohtml/post-html.cc: Ditto.
8621 2001-07-26  Werner LEMBERG  <wl@gnu.org>
8623         * src/preproc/refer/refer.cc: Include `lib.h'.
8624         * src/devices/grohtml/post-html.cc: Ditto.
8626 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
8628         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
8629         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
8630         * Makefile.in: Comment updated.
8631         * configure: Regenerated.
8633 2001-07-25  Werner LEMBERG  <wl@gnu.org>
8635         * src/preproc/pic/pic.cc: Removed.
8636         * src/preproc/pic/pic_tab.h: Removed.
8637         * src/preproc/refer/label.cc: Removed.
8639         * doc/Makefile (.ms.html): Don't use a file name extension in
8640         argument to grohtml's -I option.
8641         * Makefile.in (dist): Remove CVS directories.
8642         Call `distfiles' target.
8644         * src/devices/grohtml/grohtml.man: Add information about valid
8645         versions of pnmtopng.
8646         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
8647         name instead of number.
8649 2001-07-24  Werner LEMBERG  <wl@gnu.org>
8651         * doc/groff.texinfo: Minor fixes.
8653 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
8655         * doc/Makefile (.ms.html): Put image files into a subdirectory.
8656         (clean): Updated.
8658 2001-07-20  Werner LEMBERG  <wl@gnu.org>
8660         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
8661         * src/libs/libgroff/mkstemp.cc: New file.
8662         * src/libs/libgroff/mksdir.cc: New file.
8663         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
8664         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
8665         * src/libs/libgroff/Makefile.sub: Updated.
8666         * src/include/lib.h: Add mksdir() prototype.
8667         * src/include/posix.h: Define S_IXUSR if not yet defined.
8669         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
8670         (createAllPages): Use mksdir() instead of current code.
8671         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
8672         (main): [!HAVE_MKSTEMP]: Removed.
8674         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
8675         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
8676         macros.
8677         * configure.ac: Add tests for stdint.h, sys/time.h, and
8678         gettimeofday().
8679         Call new GROFF_xxx macros.
8680         * configure: Regenerated.
8681         * Makefile.in: Comments updated.
8683 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
8685         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
8686         instead of current code.
8687         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
8688         * src/roff/groff/groff.cc (possible_command::insert_args): New
8689         function.
8690         (main): Use it for predriver handling instead of insert_arg().
8692 2001-07-19  Werner LEMBERG  <wl@gnu.org>
8694         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
8695         groff also.
8697         * src/include/posix.h: Define S_IWUSR if not yet defined.
8699 2001-07-18  Werner LEMBERG  <wl@gnu.org>
8701         * NEWS: Updated.
8703 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
8705         * tmac/groff_mdoc.man: Document new -width and -column syntax.
8706         Some other minor fixes.
8707         * tmac/an-old.tmac: Add `AT' and `UC' macros.
8709 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
8711         Replace call to `troff' with `groff -Z' to make it aware of
8712         GROFF_BIN_PATH.
8714         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
8715         (troff_command, command_prefix): Removed.
8716         (alterDeviceTo): Use groff.
8717         (addZ): New function.
8718         (char_buffer::do_html): Use it.
8719         (scanArguments): Use TROFF_COMMAND.
8720         (findPrefix): Removed.
8721         (main): Updated.
8722         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
8724 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
8726         * doc/pic.ms: Documentation fixes.
8728 2001-07-17  Werner LEMBERG  <wl@gnu.org>
8730         Replace atexit() with global destructor.
8732         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
8733         (xtmpfile_list_init): New global structure to deallocate
8734         xtmpfile_list on exit.  Its destructor inherits most code from
8735         remove_tmp_files().
8736         (remove_tmp_files): Deleted.
8737         (add_tmp_file): Simplified.
8739 2001-07-16  Werner LEMBERG  <wl@gnu.org>
8741         Replace strdup() with strsave().
8743         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
8744         (set_papersize): Use strsave() and a_delete.
8745         (main): Use strsave().
8746         * src/preproc/html/pre-html.cc (make_message, createAllPages,
8747         removeAllPages): Use strsave() and a_delete.
8749         * configure.ac: Remove test for strdup.
8750         * Makefile.in: Comment updated.
8751         * configure: Regenerated.
8753 2001-07-15  Werner LEMBERG  <wl@gnu.org>
8755         * win32-diffs: Updated.
8757 2001-07-14  Werner LEMBERG  <wl@gnu.org>
8759         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
8760         removing the old one.
8761         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
8763 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
8765         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
8767 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
8769         Merge -xwidth into -width.  Add -xwidth functionality to -column
8770         also.
8772         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
8773         avoid warning.
8774         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
8775         string immediately following a leading dot starts with a valid mdoc
8776         argument.
8777         Add similar code to the -column branch.
8778         (doc-Bl-usage): Updated.
8779         * groff_mdoc.man: s/-xwidth/-width/.
8781 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
8783         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
8784         running into centered or non-formatted text.
8786 2001-07-11  Werner LEMBERG  <wl@gnu.org>
8788         Introduce short and long prefixes to have the selection at run-time
8789         whether there is a 8+3 limit for names of temporary files.
8791         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
8792         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
8793         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
8794         variables.
8795         (temp_init): New global structure to initialize above three
8796         variables.
8797         (xtmptemplate): Use two parameters for long and short prefix.
8798         Simplify code use above three variables.
8799         (xtmpfile): Use long and short prefixes as parameters.
8800         * src/include/lib.h: Updated.
8802         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
8803         with ...
8804         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
8805         (createAllPages, makeTempFiles): Updated.
8807 2001-07-09  Werner LEMBERG  <wl@gnu.org>
8809         * REVISION: Increased to 3.
8811 Version 1.17.2 released
8812 =======================
8814 2001-07-07  Werner LEMBERG  <wl@gnu.org>
8816         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
8817         to size_t.
8819 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
8821         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
8822         Fix synopsis.
8823         * tmac/groff_mdoc.man: Fix synopsis.
8825 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
8827         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
8828         Restore `doc-Pa-font'.
8830 2001-07-04  Werner LEMBERG  <wl@gnu.org>
8832         * src/utils/indxbib/dirnamemax.c: Moved to ...
8833         * src/libs/libgroff/maxfilename.cc: Here.
8834         s/dir_name_max/file_name_max/.
8835         Add copyright.
8836         * src/include/lib.h: Add file_name_max.
8837         * src/utils/indxbib/indxbib.cc: Updated.
8838         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
8839         Updated.
8841         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
8842         as empty.
8843         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
8845         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
8846         REGION_TEMPLATE): New macros.
8847         (createAllPages, makeTempFiles): Use them.
8848         Include `nonposix.h'.
8849         (html_system): New function.
8850         (createAllPages, createImage): Use it.
8851         Use EXE_EXT.
8853         * tmac/www.tmac: Fix typos.
8855 2001-07-03  Werner LEMBERG  <wl@gnu.org>
8857         * tmac/www.tmac: Disable hyphenation in normal text only if output
8858         device is html.
8859         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
8860         * tmac/groff_mwww.man, NEWS: Updated.
8862 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
8864         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
8865         image location.
8867 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
8869         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
8870         doc-display-ps-stack): Implement font and font size stack for
8871         displays.
8873 2001-07-02  Werner LEMBERG  <wl@gnu.org>
8875         * REVISION: Increased to 2.
8876         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
8878         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
8879         beginning of a line.
8880         * src/groff/grog/grog.sh: Ditto.
8882 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
8884         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
8885         make it portable.
8887 2001-06-27  Werner LEMBERG  <wl@gnu.org>
8889         Fix problems with preprocessor string for `man' program.
8891         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
8892         Updated/added copyright.
8893         Moved Emacs's local variable to identify nroff mode to the end of
8894         the file; add local variable if missing.
8896 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
8898         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
8899         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
8900         * configure: Regenerated.
8902 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
8904         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
8905         * configure: Regenerated.
8907 2001-06-24  Werner LEMBERG  <wl@gnu.org>
8909         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
8910         but www.tmac.
8911         * doc/pic.ms: Fix typos.
8913 Version 1.17.1 released
8914 =======================
8916 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
8918         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
8919         * configure: Updated.
8921 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
8923         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
8924         image names.
8925         * src/roff/troff/dic.cc (blank_line): Add html tag.
8927 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
8929         * src/roff/troff/input.cc (do_suppress): Fix typo.
8931 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
8933         Added two new options (-D and -I) to specify image names and a
8934         subdirectory to place the images in.
8936         Change syntax from \\Ox to \\O[x].
8938         * src/devices/grohtml/post-html.cc (main): Add options.
8939         (usage): Updated.
8940         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
8941         Use `NULL' instead of `0' for null string pointers.
8942         (MAX_RETRIES): New macro.
8943         (lengthOfintToStr, intToStr, make_message): New functions.
8944         (makeFileName): Make function static.
8945         Implement -D and -I options.
8946         (checkImageDir): New function.
8947         (write_end_image, write_start_image): Use new syntax of \O.
8948         (createAllPages, removeAllPages): Implement -D and -I options.  Use
8949         make_message().
8950         (createImage): Use make_message().
8951         (addps4html): Add guard for malloc().
8952         (usage, scanArguments): Updated.
8953         (makeTempFiles): Use mkstemp().
8954         (removeTempFiles): Use unlink().
8955         (findPrefix): Add guard for malloc().
8956         (main): Updated.
8957         * src/roff/troff/input.cc (get_delim_file_name): New function to
8958         parse \O.
8959         (do_suppress): Updated to parse new syntax.
8960         * src/devices/grohtml/grohtml.man: Updated.
8961         * tmac/www.tmac: Updated to new syntax.
8963         * NEWS: Updated.
8965 2001-06-15  Werner LEMBERG  <wl@gnu.org>
8967         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
8969         * src/devices/grohtml/grohtml.man: Minor improvements.
8971 2001-06-14  Werner LEMBERG  <wl@gnu.org>
8973         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
8975 2001-06-11  Werner LEMBERG  <wl@gnu.org>
8977         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
8978         line to specify preprocessor options -- mandb 2.3.1 only recognizes
8979         the former.
8980         * src/preproc/grn/grn.man: Add proper '\" string.
8982 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
8984         * test-groff: Don't use PATH but GROFF_BIN_PATH.
8986 2001-06-08  Werner LEMBERG  <wl@gnu.org>
8988         Updated to autoconf 2.50.
8990         * configure.in: Renamed to...
8991         * configure.ac: This.
8992         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
8993         (GROFF_OS390): Updated.
8994         * configure: Regenerated.
8996 2001-05-18  Werner LEMBERG  <wl@gnu.org>
8998         * src/roff/troff/env.c, src/roff/troff/env.h,
8999         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
9000         from 2000-12-21.
9002 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
9004         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
9006 2001-05-16  Werner LEMBERG  <wl@gnu.org>
9008         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
9009         less than or equal zero; set it to 1 then.
9010         * src/roff/troff/node.h (node::node): Initialize `last'.
9012 2001-05-08  Werner LEMBERG  <wl@gnu.org>
9014         * tmac/an-old.tmac: Make predefined strings work in compatibility
9015         mode.
9016         Add troff version guard.
9017         * tmac/doc.tmac: Simplify version guard.
9019 2001-05-07  Werner LEMBERG  <wl@gnu.org>
9021         The .ns and .rs requests are now honoured not only in the top-level
9022         but in all diversions (similar to UNIX troff).
9024         This change is based on a patch from Tadziu Hoffmann
9025         <hoffmann@usm.uni-muenchen.de>.
9027         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
9028         (top_level_diversion): Remove `no_space_mode' member.
9029         * src/roff/troff/div.cc (diversion::diversion,
9030         top_level_diversion::top_level_diversion): Updated.
9031         (macro_diversion::output): Reset `no_space_mode'.
9032         (no_space, restore_spacing): Use `curdiv' unconditionally.
9033         (space_request, blank_line): Check `curdiv->no_space_mode'.
9034         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
9035         `curdiv' unconditionally.
9036         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
9037         Updated.
9039 2001-05-06  Werner LEMBERG  <wl@gnu.org>
9041         Added two new requests `de1' and `am1' which are similar to `de' and
9042         `am' with the difference that compatibility mode is saved on entry,
9043         switched off during macro execution, and restored on exit.
9045         * src/roff/troff/input.h: Added two new special characters
9046         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
9047         * src/roff/troff/input.cc (input_iterator): Added two member
9048         functions `save_compatible_flag' and `get_compatible_flag'.
9049         (input_stack): Ditto.
9050         (string_iterator): Ditto.  Also add private member
9051         `saved_compatible_flag'.
9052         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
9053         (calling_mode): New enumeration.
9054         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
9055         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
9056         (define_macro, define_indirect_macro, append_macro, ignore): Use
9057         `calling_mode'.
9058         (define_nocomp_macro, append_nocomp_macro): New functions.
9059         (init_input_requests): Updated.
9060         (do_request): Rename local variable `saved_compatible_flag' to
9061         `old_compatible_flag'.
9062         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9064         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
9065         public and trap-invoked macros.  As a consequence, the man macros
9066         work in compatibility mode also.
9068 2001-05-06  Solar Designer  <solar@openwall.com>
9070         * Makefile.in: Use $(mandir).
9072 2001-05-06  Alexios Zavras  <zvr@pobox.com>
9074         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
9076 2001-05-05  Werner LEMBERG  <wl@gnu.org>
9078         Added `.ns' number register: Returns 1 in no-space mode (if in
9079         top-level diversion), 0 otherwise.
9081         * src/roff/troff/div.cc (no_space_mode_reg): New class.
9082         (init_div_requests): Updated.
9083         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
9084         Document it.
9086 2001-05-04  Werner LEMBERG  <wl@gnu.org>
9088         * src/roff/nroff/nroff.man: Improved documentation (especially
9089         locales).
9091 2001-05-02  Werner LEMBERG  <wl@gnu.org>
9093         Added `brp' request: This is \p as a request.
9095         * src/roff/troff/env.cc (environment::do_break): Add parameter
9096         `spread'.
9097         (do_break_request): New function (was `break_request').
9098         (break_request): Calls `do_break_request'.
9099         (break_spread_request): New; calls `do_break_request'.
9100         (init_env_requests): Updated.
9101         * src/roff/troff/env.h: Updated.
9102         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9104         * REVISION: Increased to 1.
9105         * win32-diffs: Updated.
9107 2001-05-01  Werner LEMBERG  <wl@gnu.org>
9109         * tmac/an-old.tmac: Fix minor compatibility mode issue.
9110         * tmac/troffrc-end: Make it really work in compatibility mode.
9112 2001-04-27  Werner LEMBERG  <wl@gnu.org>
9114         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
9115         stdlib.h.
9117 2001-04-22  Werner LEMBERG  <wl@gnu.org>
9119         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
9120         latest versions from glibc CVS archive.
9122         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
9123         <c.zeelenberg@hccnet.nl>.
9125 2001-04-21  Werner LEMBERG  <wl@gnu.org>
9127         * configure.in: Move check for mkstemp() to...
9128         * aclocal.m4 (GROFF_MKSTEMP): This new function.
9129         * configure: Regenerated.
9131         * src/include/groff-getopt.h: Don't use variable names in
9132         declarations.
9134         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
9135         * src/devices/grohtml/Makefile.sub,
9136         src/devices/grohtml/post-html.cc: Updated.
9138 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
9140         * configure.in: Add special check for mkstemp().
9141         * src/libs/libgroff/tmpfile.cc: Use it.
9142         * src/utils/indxbib/indxbib.cc: Ditto.
9143         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
9144         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
9145         `const'.
9147 2001-04-20  Bruce Lilly  <blilly@erols.com>
9149         `Version_string' as C++ object was not visible to linker from C
9150         object files.
9151         Add `const' to `Version_string'.
9153         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
9154         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
9155         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
9156         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
9157         (scanArguments), src/preproc/refer/refer.cc (main),
9158         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
9159         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
9160         (main), src/devices/grohtml/post-html.cc (main),
9161         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
9162         (main), src/utils/hpftodit/hpftodit.cc (main),
9163         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
9164         (main), src/utils/lkbib/lkbib.cc (main),
9165         src/utils/addftinfo/addftinfo.cc (main): Implement it.
9167         * src/roff/groff/pipeline.c: Add _UWIN.
9168         * src/include/nonposix.h: Ditto.
9170 2001-04-20  Werner LEMBERG  <wl@gnu.org>
9172         * src/include/lib.h: Use HAVE_STRERROR.
9173         * src/roff/groff/pipeline.c: Ditto.
9174         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
9175         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
9176         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
9177         * win32-diffs: Updated.
9178         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
9180 2001-04-19  Werner LEMBERG  <wl@gnu.org>
9182         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
9183         instead of hardwired `"troff"'.
9184         (char_buffer::read_file): Remove unused variables.
9185         (char_buffer::write_file_troff): Ditto.
9186         (char_buffer::write_file_html): Ditto.
9187         (generateImages): Ditto.
9188         (abs): Removed.
9189         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
9191         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
9193         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
9194         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
9195         index_search_item::search1): Ditto.
9196         * src/roff/troff/node.h (width_list): Reorder members.
9197         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
9198         (lookup_warning): Ditto.
9199         (prepend_string): Commented out.
9200         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
9201         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
9202         * src/preproc/tbl/main.cc (process_format): Ditto.
9203         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
9204         compiler warnings.
9205         * src/preproc/pic/pic.cc: Updated.
9206         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
9207         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
9208         * src/preproc/refer/command.cc (execute_command): Ditto.
9209         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
9210         * src/preproc/refer/token.cc (lookup_token): Ditto.
9211         * src/preproc/soelim/soelim.cc: Ditto.
9212         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
9213         (isHexDigit): Commented out.
9214         (pushBackBuffer::isString): Remove unused variable.
9215         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
9216         warning.
9217         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
9218         resource_manager::read_resource_arg, read_one_of, parse_extensions):
9219         Ditto.
9220         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
9221         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
9222         lookup_paper_size): Ditto.
9223         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
9224         (text_glob, element_list): Reorder members.
9225         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
9226         compiler warning.
9227         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
9228         return value to `void'.
9229         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
9230         of initializers.
9231         * src/devices/grohtml/html.h (simple_output::check_newline,
9232         simple_output::space_or_newline, simple_output::enable_newlines):
9233         Add return value.
9234         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
9235         compiler warnings.
9236         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
9237         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
9238         output_ligatures, output_charset, read_map): Ditto.
9239         * src/utils/lookbib/lookbib.cc (main): Ditto.
9240         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
9241         (do_file): Fix typo (`=' -> `==').
9242         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
9243         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
9245 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
9247         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
9248         Fix usage of GROFF_BIN_PATH.
9249         * src/roff/nroff/nroff.man: Updated.
9251 2001-04-18  Werner LEMBERG  <wl@gnu.org>
9253         * NEWS: Fixing typos.
9254         Updated.
9256 Version 1.17 released
9257 =====================
9259 2001-04-17  Werner LEMBERG  <wl@gnu.org>
9261         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
9262         directory, not in $(srcdir).
9264 2001-04-16  Werner LEMBERG  <wl@gnu.org>
9266         * doc/groff.texinfo: More info on conditionals.
9268 2001-04-15  Werner LEMBERG  <wl@gnu.org>
9270         * doc/groff.texinfo: Added some info about groff internals.
9272         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
9273         about missing special character only if the name is non-null.
9275 2001-04-14  Werner LEMBERG  <wl@gnu.org>
9277         Removing the grohtml-old device driver which is now obsolete.
9279         * src/devices/grohtml-old/*: Removed.
9280         * font/devhtml-old/*: Removed.
9281         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
9282         Remove comments.
9283         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
9284         * test-groff (PATH): Updated.
9285         * tmac/Makefile.sub (NORMALFILES): Updated.
9286         * tmac/an-old.tmac: Remove special code for html-old device.
9287         Replace `html-or-html-old' register with `an-html'.
9288         * tmac/eqnrc: Updated.
9289         * tmac/html-old.tmac: Removed.
9290         * tmac/troffrc, tmac/troffrc-end: Updated.
9291         * tmac/www.tmac: Remove special code for html-old device.
9292         Replace `html-or-html-old' register with `www-html'.
9294         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
9295         src/libs/libgroff/htmlindicate.cc (graphic_end),
9296         include/htmlindicate.h, src/preproc/grn/*.cc,
9297         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
9298         single argument for consistency with rest of source code.
9300         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
9302 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
9304         * src/roff/troff/troff.man: Fixing typos.
9306 2001-04-13  Werner LEMBERG  <wl@gnu.org>
9308         * doc/pic.ms: Fixing many font switches.
9309         * doc/groff.texinfo: Fixes, additions.
9310         * MORE.STUFF: Updated.
9312 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
9314         * src/devices/grohtml/grohtml.man: Updated manual page regarding
9315         simple anchor.
9316         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
9317         cropping of images.
9318         (removeTempFiles): New function to tidy up temporary files.
9319         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
9320         Many fixes to do with the new inline suppress node and image regions
9321         are much tighter.
9322         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
9323         (generate_img_src): New function.
9324         (html_printer::do_auto_image): Utilizes it.
9325         (do_heading, do_title): Include inline images within their contents.
9326         (html_printer::begin_page): Tidied up comments that are issued to
9327         the html output file.
9328         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
9329         than courier.
9330         (text_glob::is_br): New method used by do_heading.
9331         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
9332         equivalent diversion.
9333         * src/include/html-strings.h: Altered image tags to reflect the
9334         inline image node.
9335         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
9336         parameter.
9337         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
9338         it is already inside a pic image.  Only emit tags if the argument
9339         `-Tps:html' is present.
9340         * src/preproc/tbl/main.cc: Changes to reflect additional
9341         `html_end_suppress' parameter.
9342         * src/roff/troff/env.cc: Only emit eol tag if a node has been
9343         emitted since the last eol tag was written.
9344         * src/roff/troff/env.h: New boolean `emitted_node'.
9345         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
9346         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
9347         * src/roff/troff/node.cc (check_charinfo): New method. 
9348         (troff_output_file::determine_line_limits): Alterations to limit
9349         checking.
9350         * tmac/www.tmac: Changes to reflect new suppress nodes.
9351           
9352 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
9354         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
9355         Escape the html_glyph in the buffer.
9356         (str_translate_to_html): Output the unescaped escaped_char.
9357         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
9358         `frame=void', not `frame=none'.  Add `border=0'.
9360 2001-04-12  Werner LEMBERG  <wl@gnu.org>
9362         * PROBLEMS: Add some words on how to avoid wrapper macros.
9364 2001-04-11  Blake McBride  <blake@florida-software.com>
9366         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
9368 2001-04-11  Werner LEMBERG  <wl@gnu.org>
9370         * font/devlbp/Makefile.sub (CLEANADD): Set it.
9371         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
9372         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
9373         * Makefile.sub (DISTCLEANFILES): Here.
9375         * libs/libgroff/new.cc: Include `nonposix.h'.
9376         * win32-diffs: Updated.
9378 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
9380         Added skeleton macro for defunct macros.
9382         Updated documentation.
9384         When inside displays, an empty input line warning should be
9385         suppressed.  If another macro call is put inside a display,
9386         all subsequent empty lines found in that display caused a
9387         warning to be emitted.
9389         * tmac/doc.tmac (doc-defunct-macro): New macro.
9390         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
9391         (doc-restore-global-vars): Fixed typo.
9392         (doc-empty-line): Check the `doc-display-depth' register to
9393         determine whether we are inside display or not.
9395         * tmac/doc-common: Removed `Or' and `Sf' registers.
9396         Moved obsolete `Ds' macro to doc.tmac.
9398         * tmac/groff_mdoc.man: Bump document date.
9399         Document `.Vt' under ``Variable Types''.
9400         Removed documentation for obsolete `.Or' macro.
9402 2001-04-10  Werner LEMBERG  <wl@gnu.org>
9404         * NEWS: Updated.
9405         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
9407 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
9409         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
9410         (usage): Add stream argument. Don't exit.
9411         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
9412         Write --version output to stdout, not stderr.
9413         (usage): Add stream argument. Don't exit.
9414         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
9415         (usage): Add stream argument. Don't exit.
9416         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
9417         constants.
9418         (usage): Add stream argument. Don't exit.
9419         (main): Write --help output to stdout, not stderr.
9420         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
9421         (usage): Add stream argument. Don't exit.
9422         * src/devices/grops/ps.cc (main): Accept --help and --version.
9423         (usage): Add stream argument. Don't exit.
9424         * src/devices/grotty/tty.cc (main): Accept --help and --version.
9425         (usage): Add stream argument. Don't exit.
9426         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
9427         (main): Accept --help and --version.
9428         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
9429         (main): Accept --help and --version.
9430         * src/preproc/html/pre-html.cc (usage): Add stream argument.
9431         (scanArguments): Accept --help and --version.
9432         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
9433         (main): Accept --help and --version.
9434         * src/preproc/refer/refer.cc (main): Accept --help and --version.
9435         (usage): Add stream argument. Don't exit.
9436         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
9437         exit.
9438         (main): Accept --help and --version.
9439         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
9440         (main): Accept --help and --version.
9441         * src/roff/groff/groff.cc (main): Accept --help and --version.
9442         (synopsis): Add stream argument.
9443         (help): Write --help output to stdout, not stderr.
9444         (usage): Add stream argument. Don't exit.
9445         * src/roff/grog/grog.pl: Accept --help and --version.
9446         (help): New sub.
9447         * src/roff/grog/grog.sh: Accept --help and --version.
9448         * src/roff/nroff/nroff.sh: Accept --help and --version.
9449         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
9450         (usage): Add stream argument. Don't exit.
9451         (main): Accept --help and --version.
9452         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
9453         (usage): New function with stream argument, doesn't exit.
9454         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
9455         (usage): New function with stream argument, doesn't exit.
9456         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
9457         (usage): Add stream argument. Don't exit.
9458         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
9459         (main): Accept --help and --version.
9460         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
9461         exit.
9462         (main): Accept --help and --version.
9463         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
9464         (main): Accept --help and --version.
9465         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
9466         (usage): Add stream argument. Don't exit.
9468 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
9470         Fix indentation in SYNOPSIS.
9472         Updated to include changes of latest BSD mdoc version (basically,
9473         the only change is that `.Fn' and `.Fc' put a final semicolon after
9474         a function declaration in the SYNOPSIS section).
9476         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
9477         (doc-in-synopsis-section): New variable.  Updated all related
9478         functions.
9479         (doc-indent-synopsis-active): New register.
9480         (Nd, Fn, Fo): Use it.
9481         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
9482         `.Cd' with long argument line produces indented wrapped lines. 
9483         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
9484         undesirable line break to be output.
9485         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
9486         `.rs'.
9487         (Fn, Fc): Add final `;' to output.
9488         (doc-save-global-vars, doc-restore-global-vars): Updated.
9489         * tmac/doc-common: Remove `Ex' register.
9490         Updated.
9491         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
9492         copyright.
9494 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
9496         * tmac/doc.tmac (Cd): Simplify code.
9497         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
9499 2001-04-06  Werner LEMBERG  <wl@gnu.org>
9501         Implement continuous underlining for nroff mode.  To do that, a new
9502         request in the ditroff language has been added: `x u N' (N is 0
9503         or 1).
9505         \X and \Y are now transparent to end-of-sentence recognition.
9507         * src/include/printer.h (printer): Add `type' parameter to `special'
9508         method.
9509         * src/libs/libdriver/printer.cc (printer::special): Updated.
9510         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
9512         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
9513         specials of type `p'.
9514         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
9515         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
9516         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
9517         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
9518         (glyph::order): New method.
9519         (tty_printer::add_char): Use it.
9520         (tty_printer::special): New method.
9521         (tty_printer::end_page): Implement it.
9523         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
9524         * src/roff/troff/node.cc (special_node::special_node): Add parameter
9525         to set `no_init_string'.
9526         (special_node::tprint_start): Use it.
9527         (special_node::same, special_node::copy): Updated.
9528         (special_node::ends_sentence): New method.
9529         (troff_output_file::start_special): Add parameter to include
9530         inititialization of special conditionally.
9532         * src/roff/troff/env.h (environment): New member `underline_spaces'.
9533         * src/roff/troff/env.cc (do_underline_special): New function.
9534         (environment::set_font): Use it.
9535         (do_underline): Use it.  This was `underline()'.
9536         (underline): Call `do_underline()'.
9537         (continuous_underline): New function which calls `do_underline()'.
9538         (environment::newline): Use `do_underline_special()'.
9539         (init_env_requests): Updated.
9541         * NEWS, man/troff_out.man: Updated.
9543 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
9545         * font/devutf8/R.proto: Fix code of 'shc'.
9547 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
9549         Many fixes.  Diag lists can now be nested also; additionally,
9550         `-compact' and `-offset' are supported.
9552         * tmac/doc.tmac (doc-have-indent): Replaced with ...
9553         (doc-list-have-indent-stackXXX): A new register stack.
9554         (doc-have-diag-list): Removed.
9555         (Bl): Use `doc-list-have-indent-stackXXX'.
9556         (El): Updated.
9557         (doc-diag-list): Use `doc-compact-list-stackXXX'.
9558         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
9559         (doc-set-vertical-and-indent): Ditto.
9560         (doc-next-list-depth): Removed.
9561         (doc-increment-list-stack): Updated.
9562         (doc-decrement-list-stack): Use `doc-list-depth' instead of
9563         `doc-next-list-depth'.
9564         (doc-end-list, doc-end-column-list): Don't use
9565         `doc-increment-list-stack'.
9566         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
9567         (doc-save-global-vars, doc-restore-global-vars): Updated.
9568         * tmac/doc-common: Updated.
9569         * tmac/groff_mdoc.man: Updated.
9570         * NEWS: Fix typo.
9572 2001-04-02  Werner LEMBERG  <wl@gnu.org>
9574         * src/devices/grotty/grotty.man: Fix grammatical error.
9576 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
9578         Remove .Ld from mdoc package; replace it with special handling of
9579         `...'.
9581         * tmac/doc-common: Remove `Ld' register.
9582         Uncomment `doc-volume-ds-*' strings.
9583         Remove `doc-operating-system-default'.
9584         (Os): Updated.
9585         * tmac/doc-syms (Ld): Removed.
9586         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
9587         `...' specially.
9588         * NEWS: Updated.
9590         * tmac/groff_mdoc.man: Many fixes and updates.
9592 2001-03-29  Werner LEMBERG  <wl@gnu.org>
9594         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
9595         Bond <tkb@tkb.mpl.com>.
9596         * tmac/www.tmac: Save compatibility mode.
9598 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
9600         * tmac/groff_mdoc.man: Many fixes.
9602 2001-03-28  Werner LEMBERG  <wl@gnu.org>
9604         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
9605         isn't recognized.
9607 2001-03-27  Werner LEMBERG  <wl@gnu.org>
9609         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
9610         diversion.  This fixes overlong tags.
9612 2001-03-26  Werner LEMBERG  <wl@gnu.org>
9614         * doc/groff.texinfo: Fixed and improved documentation of fonts.
9615         * tmac/doc-syms: Fix error messages.
9616         * tmac/an-old.tmac: Remove incorrect double backslashes.
9618 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
9620         * tmac/Makefile.sub: Strip mdoc.local also
9621         * tmac/strip.sed: Fixed.
9623 2001-03-24  Werner LEMBERG  <wl@gnu.org>
9625         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
9626         selecting the font size.
9627         * tmac/groff_mdoc.man, NEWS: Document it.
9629 2001-03-23  Werner LEMBERG  <wl@gnu.org>
9631         * src/roff/troff/div.cc (save_vertical_space): Add default argument
9632         to `sv' request.
9633         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
9634         argument to restore previous font family.
9635         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
9637         * doc/groff.texinfo: More fixes and additions (mainly for font
9638         manipulating commands).
9640         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
9641         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
9642         * tmac/Makefile.sub, NEWS: Updated.
9644 2001-03-23  Werner LEMBERG  <wl@gnu.org>
9646         Replaced mdoc implementation.  The new version is `state of the
9647         art', using almost all new features of groff 1.17 -- it won't run
9648         with older versions.
9650         * tmac/doc.tmac: Completely rewritten.
9651         * tmac/doc-common: Ditto.
9652         * tmac/doc-nroff: Ditto.
9653         * tmac/doc-ditroff: Ditto.
9654         * tmac/doc-syms: Ditto.
9655         * tmac/mdoc.local: New file.
9656         * tmac/groff_mdoc.samples.man: Replaced with ...
9657         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
9658         * tmac/strip.sed: Updated.
9659         * tmac/Makefile.sub: Updated.
9660         * INSTALL: Updated.
9662         * tmac/groff_man.man: Add `man.local' to the FILES section.
9664 2001-03-22  Werner LEMBERG  <wl@gnu.org>
9666         * doc/groff.texinfo: Added many @noindent.
9667         Replaced @end_Example -> @endExample.
9668         Added info whether registers are r/o.
9669         Many other additions and fixes.
9671 2001-03-21  Werner LEMBERG  <wl@gnu.org>
9673         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
9674         in makeinfo of texinfo 4.0) to be used in @Def* macros.
9675         Improved @Def* macros: Now the exact syntax of request, register,
9676         and escapes is shown.
9677         Added macros for parentheses and brackets to be used in @Def*.
9678         Many fixes and improvements of the documentation.
9680 2001-03-20  Werner LEMBERG  <wl@gnu.org>
9682         * doc/groff.texinfo: Added new index: `st' (for strings).
9683         Added macros @Defstr(x).
9684         Added macro @Example (adding @group).
9685         Other minor improvements.
9687 2001-03-19  Werner LEMBERG  <wl@gnu.org>
9689         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
9690         `rq' for requests.  `fn' is no longer used.
9691         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
9692         Removed @Deffn(x).
9694         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
9695         number with name of man page.
9697 2001-03-19  Larry Kollar  <kollar@alltel.net>
9699         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
9700         consistency.
9702 2001-03-19  Werner LEMBERG  <wl@gnu.org>
9704         * man/groff_font.man: Document `prepro', `postpro', and `print'.
9705         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
9706         * src/devices/grohtml/grohtml.man: Fixing typos.
9708 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
9710         * tmac/s.tmac (@IP): Pass `.ip' html tag.
9711         * tmac/groff_mwww.man: Remove .LINE macro
9712         * tmac/www.tmac (LINE): Add `.ti'.
9714         * src/devices/grohtml/post-html.cc (html_printer): New member
9715         `indent'.
9716         (html_printer::emit_raw): Use it.
9717         (html_printer::do_linelength): Ditto.
9718         (html_printer::do_pageoffset): Ditto.
9719         (html_printer::do_indentation): Ditto.
9720         (html_printer::do_tempindent): Ditto.
9721         (html_printer::do_break): Ditto.
9722         (html_printer::begin_page): Ditto.
9723         (html_printer::do_indentedparagraph): New function.
9724         (html_printer::troff_tag): Handle `.ip'.
9725         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
9726         Add `<td width=...>' handling.
9727         (html_text::do_table): Add parameter.
9728         (html_text::do_indent): Updated.
9729         * src/devices/groohtml/html-text.h: Updated.
9731 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
9733         Introduced simple html tables to implement indentation.
9735         * src/devices/grohtml/html.h (word, word_list): New structures.
9736         (simple_output): Use it.
9737         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
9738         (html_printer): Improve indentation handling.
9739         (html_printer::emit_raw): Set `in_table' element.  Handle
9740         indentation if set.
9741         (html_printer::write_header): Move conditional downwards.
9742         Don't allow whitespace in tags.
9743         (html_printer::do_linelength): Handle line length and indentation
9744         conditionally.
9745         (html_printer::do_pageoffset): Handle indentation conditionally.
9746         (html_printer::do_indentation): Ditto.
9747         (html_printer::do_tempindent): New function member.
9748         (html_printer::do_fill): Take care of indentation.
9749         (html_printer::do_flush): Finish table.
9750         (html_printer::do_links): Ditto.
9751         (html_printer::do_break): New function for handling `.br' and `.ti'.
9752         (html_printer::troff_tag): Use it.
9753         Handle `.ti'.
9754         (html_printer::flush_globs): Fix.
9755         (html_printer::flush_page): Finish table.
9756         (html_printer::html_printer): Fix error message.  Set up
9757         `linelength'.
9758         (html_printer::add_to_sbuf): Remove special handling of character
9759         code 255.
9760         (to_unicode): Remove `stop()'.
9761         (html_printer::write_title): Cleanup.
9762         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
9763         (html_printer::~html_printer): Flush text and end the line.
9764         Use `put_string()'.
9765         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
9766         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
9767         emission of tags.
9768         (html_text::start_tag): Disable newlines.
9769         (html_text::table_is_void): New function.
9770         (html_text::issue_table_begin): Ditto.
9771         (html_text::issue_table_end): Ditto.
9772         (html_text::push_para): Better table handling.
9773         (html_text::do_indent): New function.
9774         (html_text::do_table): Ditto.
9775         (html_text::done_table): Ditto.
9776         (html_text::do_tt): Handle PRE_TAG.
9777         (html_text::is_in_table): New function.
9778         (html_text::check_emit_text): Handle tables.
9779         (html_text::do_emittext): Use `nl()'.
9780         (html_text::do_para): Handle table.
9781         (html_text::remove_def): New function.
9782         * src/devices/grohtml/output.cc (word, word_list): Implement
9783         methods.
9784         (simple_output::end_line): Flush last word.
9785         (simple_output::simple_comment): Ditto.
9786         (simple_output::begin_comment): Recoded.
9787         (simple_output::end_comment): Ditto.
9788         (simple_output::comment_arg): Removed.
9789         (simple_output::check_newline): Improve test and flush last word.
9790         (simple_output::space_or_newline): Improved.
9791         (simple_output::write_newline): Replaced with...
9792         (simple_output::nl): This.
9793         (simple_output::put_raw_char): Flush last word.
9794         (simple_output::check_space): Removed.
9795         (simple_output::put_translated_string): Ditto.
9796         (simple_output::put_string): Simplified.
9797         (simple_output::put_number): Updated.
9798         (simple_output::put_float): Ditto.
9799         (simple_output::put_symbol): Removed.
9800         (simple_output::enable_newlines): Add `check_newline()'.
9801         (simple_output::flush_last_word): New function.
9803         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
9804         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
9806         * tmac/s.tmac (@PP, @IP): Add html conditional code.
9807         * tmac/an-old.tmac (TP): Ditto.
9809 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
9811         * mdate.sh: Make it POSIX compliant.
9813 2001-03-09  Werner LEMBERG  <wl@gnu.org>
9815         Added the `return' request to end a macro immediately.  It simply
9816         pops iterators from the input stack until a macro iterator is found.
9818         * src/roff/troff/input.cc (input_iterator::is_macro,
9819         macro_iterator::is_macro): New member.
9820         (input_return_boundary): New class to signal an immediate return
9821         to while_request().
9822         (input_stack::add_return_boundary, input_stack::is_return_boundary):
9823         New functions.
9824         (input_stack::clear): Use it.
9825         (input_stack::pop_macro): New function.
9826         (while_request): Use `is_return_boundary()'.
9827         (return_macro_request): New function.
9828         (init_input_requests): Use it.
9830         * src/roff/troff/TODO: Updated.
9831         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9833 2001-03-08  Werner LEMBERG  <wl@gnu.org>
9835         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
9836         cleanup.
9838 2001-03-07  Werner LEMBERG  <wl@gnu.org>
9840         Make `\B' more rigid.
9842         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
9843         parameter.
9844         (get_number_rigidly): New function.
9845         * src/roff/troff/input.cc (do_expr_test): Use it.
9846         * src/roff/troff/token.h: Updated.
9848         * src/roff/troff/request.h: Fix typo (init_html_request ->
9849         init_markup_request).
9851 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
9853         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
9854         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
9855         are now `.begin', `.end', `.image'.
9857         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
9858         (html_printer::add_to_sbuf): Changing type of `code' parameter.
9859         Use add_char_to_sbuf().
9860         (to_unicode): New function.
9861         (char_translate_to_html): Changing type of `ch' parameter.
9862         Use `to_unicode()'.
9863         (html_printer::~html_printer): Comment out doctype string.
9864         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
9865         instead of `.html-end'.
9866         (write_start_image): Use `.begin' and `.image' instead of
9867         `.html-begin' and `.html-image'.
9868         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
9869         (html_begin): Renamed to ...
9870         (begin): This.
9871         (html_end): Renamed to ...
9872         (end): This.
9873         (html_image): Renamed to ...
9874         (image): This.
9875         (init_html_requests): Renamed to ...
9876         (init_markup_requests): This.
9877         * tmac/www.tmac: Updated.
9879 2001-02-28  Bram  <bram@avontuur.org>
9881         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
9882         constructor.
9884 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
9886         * doc/meref.me: Fixing some typos.
9888 2001-02-16  Werner LEMBERG  <wl@gnu.org>
9890         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
9891         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
9892         * src/roff/troff/node.h: Updated.
9894 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
9896         * tmac/groff_tmac.man: Fix typo.
9898 2001-02-16  Werner LEMBERG  <wl@gnu.org>
9900         Fixing a bug which prevented proper end-of-sentence recognition
9901         between an `unformatted' box and the following text.  As a
9902         consequence, vertical line distances are no longer preserved in
9903         boxes after a call to `.unformat' -- because boxes aren't
9904         line-oriented (contrary to diversions), this doesn't make sense
9905         anyway.
9907         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
9908         value.
9909         (vertical_size_node::set_unformat_flag): New method.
9910         * src/roff/troff/node.hh: Updated.
9911         * src/roff/troff/input.cc (word_space_node::reread,
9912         hmotion_node::reread): Reset `unformat' flag after usage.
9913         (unformat_macro): Append only if `set_unformat_flag()' returns
9914         non-zero.
9915         * src/roff/troff/troff.man: Updated.
9917 2001-02-15  Werner LEMBERG  <wl@gnu.org>
9919         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
9920         documentation of `asciify' and `unformat' requests.
9922 2001-02-13  Werner LEMBERG  <wl@gnu.org>
9924         Redesigned the `unformat' request.  It is no longer connected with
9925         `asciify' but rather uses new `reread()' methods if the `unformat'
9926         flag is set.  Additionally, the handling of space characters after
9927         unformatting has been fixed so that they retain their width.
9929         * src/roff/troff/node.h (width_list): New structure to store
9930         original widths of spaces.
9931         (node): Added `unformat' member.
9932         Replaced `num_spaces' variable with `orig_width' list.
9933         * src/roff/troff/node.cc (*node::asciify,
9934         asciify_reverse_node_list): Removed `unformat_only' flag and related
9935         code.
9936         (word_space_node::asciify, word_space_node::word_space_node): Use
9937         `orig_width'.
9938         (word_space_node::~word_space_node): New destructor.
9939         (word_space_node::copy): Updated to handle `orig_width'.
9940         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
9941         (*node::merge_space): Update `orig_width' list if necessary.
9942         (*node::set_unformat_flag): New methods to set the `unformat' flag.
9943         * src/roff/troff/enc.cc (environment::space_newline): Use
9944         `width_list'.
9945         (environment::space): Added method to handle space width and
9946         sentence space width as parameters.  Use `width_list'.
9947         (environment::make_tab_node): Updated.
9948         * src/roff/troff/env.h: Updated.
9949         * src/roff/troff/input.cc (word_space_node::reread,
9950         unbreakable_space_node::reread, hmotion_node::reread): New methods
9951         to handle nodes specially if `unformat' flag is set.
9952         (do_asciify_macro): Renamed back to ...
9953         (asciify_macro): This.
9954         (unformat_macro): New implementation to simply set the `unformat'
9955         flag.
9957         * MORE.STUFF: Added more info about deroff.
9959 2001-02-08  Werner LEMBERG  <wl@gnu.org>
9961         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9962         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
9963         and `add_self()' methods to avoid hyphenation.  For example, the
9964         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
9965         soft hyphen after `foo'.  Now the hyphen list is correctly
9966         `foo<ignore><ignore>bar'.
9968 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
9970         * tmac/groff_tmac.man: Fix `BIR' macro.
9972 2001-02-04  Werner LEMBERG  <wl@gnu.org>
9974         A new escape sequence `\:', inserting a zero-width break point.
9976         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
9977         * src/roff/troff/input.cc (get_copy, token::next, asciify):
9978         Implement it.
9979         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
9980         method.
9981         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
9982         and `asciify()' methods.
9983         * src/roff/troff/node.cc (space_node::space_node): Updated.
9984         (space_node::asciify): Handle `was_escape_colon'.
9985         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9987         Handle `\~' similar to other comparable requests.
9989         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
9990         label.
9991         (token::next): Move creation of an unbreakable_space_node to...
9992         (token::add_to_node_list): Here.
9994         Fix a bug which sometimes prevented hyphenation of words connected
9995         with `\~' or `\ ' (and other escape sequences handled as
9996         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
9997         (after a call to the `unformat' request).
9999         * src/roff/troff/env.h (environment::possibly_break_line,
10000         environment::hyphenate_line): Introducing `start_here' parameter.
10001         * src/roff/troff/env.cc (environment::space_newline,
10002         environment::space): Use it.
10003         (environment::possibly_break_line, environment::hyphenate_line):
10004         Implement it.
10005         * src/roff/troff/input.cc (process_input_stack): Use it.
10006         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
10007         space_char_hmotion_node, overstrike_node): Add
10008         `get_hyphenation_type()' method.
10009         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
10010         if `unformat_only' is active.
10012 2001-01-30  Werner LEMBERG  <wl@gnu.org>
10014         Implemented new read-only number register `.linetabs' which
10015         returns 1 if in line-tabs mode, 0 otherwise.
10017         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
10018         * src/roff/troff/env.cc (get_line_tabs): New function.
10019         (init_env_requests): Use it.
10020         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10022         * VERSION, REVISION: Changing to 1.17.0.
10024 2001-01-28  Werner LEMBERG  <wl@gnu.org>
10026         Fixed a bug which prevented hyphenation of words which are finished
10027         with `\)'.
10029         * src/roff/troff/token.h (token): Add enum type
10030         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
10031         * src/roff/troff/input.cc (token::next, token::description,
10032         get_line_arg, token::add_to_node_list, token::process): Use it.
10034 2001-01-27  Werner LEMBERG  <wl@gnu.org>
10036         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
10037         * src/roff/troff/div.cc (do_divert): Use it.
10039         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
10041 2001-01-25  Werner LEMBERG  <wl@gnu.org>
10043         Adding the `linetabs' request.  If set, tab distances are not
10044         computed relative to the input line but relative to the output line.
10046         * src/roff/troff/env.h (environment): New member `line_tabs'.
10047         * src/roff/troff/env.cc (line_tabs_request): Implement request.
10048         (environment::environment, environment::copy): Updated.
10049         (environment::distance_to_next_tab): Use `line_tabs'.
10050         (init_env_requests): Register request.
10051         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
10052         fixes.
10054 2001-01-24  Werner LEMBERG  <wl@gnu.org>
10056         Introducing a new read-only register `.int' which is set to a
10057         positive value if the last output line is interrupted (i.e., if it
10058         contains `\c').
10060         * src/roff/troff/env.cc (init_env_requests): Add it.
10061         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10063 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
10065         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
10066         * src/preproc/html/pre-html.cc (findPrefix): New function which
10067         generates the troff executable name via the system prefix.
10068         * src/preproc/eqn/main.cc: Modified warning message.
10070 2001-01-23  Werner LEMBERG  <wl@gnu.org>
10072         troff's `box' and `boxa' requests didn't preserve temporary
10073         indentation.
10075         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
10076         `saved_target_text_length' members.
10077         * src/roff/troff/div.cc (do_divert): Use them.
10079         Tabs (but not yet leaders and fields) are now handled correctly by
10080         `asciify' request.
10082         * node.h (hmotion_node): Add field `was_tab'.
10083         * env.cc (environment::make_tab_node): Set it.
10084         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
10086         Added new request `unformat' which will, contrary to `asciify',
10087         preserve font information after unformatting (i.e., only nodes
10088         dealing with horizontal space are converted back to input
10089         characters).
10091         * input.cc (asciify_macro): Renamed to ...
10092         (do_asciify_macro): this, having a new parameter `unformat_only'.
10093         (asciify_macro, unformat_macro): New; using do_asciify_macro.
10094         (init_input_requests): Added `unformat'.
10095         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
10096         parameter to control asciification process.
10097         * node.h (*_node::asciify): Ditto.
10098         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10100 2001-01-20  Werner LEMBERG  <wl@gnu.org>
10102         * doc/groff.texinfo: Minor improvement of `.in' documentation.
10104 2001-01-18  Werner LEMBERG  <wl@gnu.org>
10106         * tmac/ps.tmac: Remove call of psold.tmac.
10107         * tmac/psold.tmac: Comment updated.
10108         * tmac/psnew.tmac: Removed since no longer needed.
10109         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
10111         * font/devutf8/R.proto: Adding `shc' glyph.
10112         * font/devutf8/NOTES: Updated.
10114         * test-groff: Updated.
10116 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
10118         First cut of the new html device driver.  Changes to pre-html and
10119         the new grohtml are too numerous to be documented here.
10121         Stuff related to `html' has been renamed to `html-old' and `html2'
10122         stuff has been renamed to `html' (including directories).  The new
10123         html device driver is therefore invoked as `-Thtml'.
10125         Added new `\O' escape to suppress output (needed by html driver).
10127         Added functions and code to pass info about input-level commands
10128         (`.in', `.fl', etc.) to html driver.
10130         Three new functions (.html-begin, .html-end, and .html-image) for
10131         better html handling: `html-begin' will execute the remaining line
10132         if at the outermost nesting level, increasing an internal counter.
10133         `html-end' does the same but decreases the internal counter.
10134         `html_image' puts its arguments into a special node (suppress_node)
10135         to define an image region.
10137         The `output' request has been removed.
10139         * tmac/html-tags.tmac: Removed.
10140         * tmac/arkup.tmac: Updated and renamed to ...
10141         * tmac/www.tmac: New file.
10142         * tmac/markup.tmac Updated and renamed to ...
10143         * tmac/mwww.tmac: New file.
10144         * tmac/Makefile.sub: Updated.
10145         * tmac/an-old.tmac: Updated.
10146         * tmac/eqnrc: Updated.
10147         * tmac/groff_man.man
10148         * tmac/groff_markup.man: Updated and renamed to ...
10149         * tmac/groff_mwww.man: New file.
10150         * tmac/groff_tmac.man: Updated.
10151         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
10152         * tmac/html.tmac: Updated and renamed from html2.tmac.
10153         * tmac/pspic.tmac: Updated html support.
10154         * tmac/s.tmac: Added html output support.
10155         * tmac/troffrc, tmac/troffrc-end: Updated.
10157         * Makefile.in, doc/Makefile: Updated.
10158         * doc/groff.texinfo: Added info about new `\O' escape.
10159         * doc/homepage.ms: Use `MAILTO' macro.
10161         * font/devhtml/DESC.proto: Add `C' font.
10162         * font/devhtml/Makefile.sub: Updated.
10163         * font/devhtml/R.proto: Minor fixes.
10164         * font/devhtml-old/Makefile.sub: Updated.
10166         * src/devices/grohtml-old/Makefile.sub: Updated.
10168         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
10169         method.
10170         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
10171         graphic_start): Add `inline' parameter.  Update.
10172         (html_end_suppress, graphic_end): Update.
10174         * src/include/html-strings.h: New file.
10175         * src/include/htmlindicate.h: Comments updated.
10176         * src/include/printer.h: Updated.
10178         * src/preproc/eqn/main.cc (do_file, main): Updated.
10179         * src/preproc/pic/troff.cc (troff_output::start_picture,
10180         troff_output::finish_picture): Updated.
10181         * src/preproc/tbl/main.cc (process_input_file): Updated.
10183         * src/roff/groff/groff.cc (main): Updated.
10184         Pass device arguments to predrivers also.
10185         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
10186         * src/roff/troff/env.h (environment): Updated.
10187         New elements `need_eol' and `ignore_next_eol' (for html output).
10188         * src/roff/troff/env.cc (environment::environment): Add initializers
10189         for `need_eol' and `ignore_next_eol'.
10190         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
10191         functions.
10192         (point_size, fill, no_fill, center, right_justify, line_length,
10193         indent, temporary_indent, break_request, handle_tab): Use
10194         `add_html_tag()'.
10195         (set_tabs): Use `add_html_tag_tabs()'.
10196         (environment::add_html_tag): Updated.
10197         (environment::do_break): Updated.
10198         * src/roff/troff/div.cc (space_request, flush_output): Use
10199         `environment::add_html_tag()'.
10200         * src/roff/troff/input.cc: Updated.
10201         New variable `html_level' to indicate nested `html-begin' requests.
10202         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
10203         (non_interpreted_char_node, token_node, non_interpreted_node): Add
10204         `force_tprint()' method.
10205         (token::next): Handle `\O'.
10206         (do_suppress): Implement it.
10207         (html_begin, html_end, html_image): New functions.
10208         (init_output_requests): Renamed to ...
10209         (init_html_requests): this.
10210         (main): Use it.
10211         (macro::append_str, macro::append_unsigned, macro::append_int): New
10212         methods.
10213         New variable `output_low_mark_miny' to limit minimal value of y.
10214         (reset_output_registers): Use it.
10215         (output_request): Removed.
10216         (get_output_registers): New function.
10217         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
10218         (*_node): Added `force_tprint()' if necessary.
10219         (special_node): New elements `tf' and `get_tfont()'.
10220         (suppress_node): New class.
10221         * src/roff/troff/node.cc:
10222         New global variables `image_no' and `suppress_start_page'.
10223         (real_output_file): New method `is_on()'.
10224         (troff_output_file): New method `start_special(tfont)'.
10225         (troff_output_file::really_print_line): Use `tprint' conditionally.
10226         (real_output_file::print_line): Updated.
10227         (real_output_file::on): Updated.
10228         (*_node): Added `force_tprint()'.
10229         (special_node::special_node): Initializer updated.
10230         (special_node::same, special_node::copy, special_node::tprint_start):
10231         Updated.
10232         (get_reg_int, get_reg_str): New functions.
10233         (suppress_node::*): New methods.
10234         New global variables last_position, last_image_filename;
10235         (min): New inline function.
10236         * src/roff/troff/reg.h, src/roff/troff/request.h,
10237         src/roff/troff/troff.h: Updated.
10239 2001-01-13  Werner LEMBERG  <wl@gnu.org>
10241         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
10242         documentation of `asciify' request.
10244 2001-01-12  Werner LEMBERG  <wl@gnu.org>
10246         * src/roff/troff/input.cc: Move definition of special characters
10247         like `ESCAPE_TILDE' to ...
10248         * src/roff/troff/input.h: New file.
10249         * src/roff/troff/Makefile.sub (HDRS): Add it.
10251         Extending the .asciify request to `unformat' space characters also.
10253         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
10254         to count input space characters.
10255         Update constructors to take care of it.
10256         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
10257         `ESCAPE_SPACE' instead of normal space.
10258         (word_space_node::asciify): New method.
10259         (unbreakable_space_node::asciify): New method.
10260         (word_space_node::merge_space): New method.
10261         * src/roff/troff/env.cc (environment::space_newline,
10262         environment::space): Add code to initialize `num_spaces' (using the
10263         constructor of `word_space_node').
10264         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
10265         Document it.
10267 2001-01-09  Werner LEMBERG  <wl@gnu.org>
10269         * man/groff_char.man: Use table header traps only conditionally.
10271 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
10273         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
10275 2001-01-08  Werner LEMBERG  <wl@gnu.org>
10277         Introducing the `box' and `boxa' requests which are similar to
10278         `di' resp. `da' but omitting a partially filled line (which is
10279         restored after ending the diversion).
10281         * src/roff/troff/div.h (diversion): Add elements to save partially
10282         filled line.
10283         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
10284         partially filled line.
10285         (divert, divert_append): Updated.
10286         (box, box_append): New functions.
10287         (init_div_requests): Use them.
10288         * src/roff/troff/env.h (environment): do_divert() is now a friend.
10289         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10291         * doc/groff.texinfo: Fix documentation of `lf' request.
10293 2000-12-25  Werner LEMBERG  <wl@gnu.org>
10295         * src/roff/troff/troff.man, NEWS: Document `writem' request.
10297 2000-12-21  Werner LEMBERG  <wl@gnu.org>
10299         Ignore `ss' request if in compatibility mode.
10301         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
10302         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
10303         * src/roff/troff/env.cc (space_size): Use it.
10305         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
10306         `ss' request in nroff mode.
10308         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
10309         changes.
10311 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
10313         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
10315 2000-12-13  Werner LEMBERG  <wl@gnu.org>
10317         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
10318         * src/preproc/eqn/neqn.man: Small fixes and additions.
10320 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
10322         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
10323         Fixing typo.
10325         * src/preproc/eqn/neqn.man: New file.
10327         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
10328         negative' warning.
10330         * tmac/e.tmac: Add `T&' macro.
10331         Fix `indent cannot be negative' warning.
10332         * tmac/s.tmac: Fix `indent cannot be negative' warning.
10334 2000-12-07  Werner LEMBERG  <wl@gnu.org>
10336         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
10338 2000-12-06  Werner LEMBERG  <wl@gnu.org>
10340         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
10341         `alloca' symbol .
10343         * MORE.STUFF: Added info about deroff for djgpp.
10345         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
10346         documentation of -rcR switch.
10348 2000-12-03  Werner LEMBERG  <wl@gnu.org>
10350         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
10351         if -rcR=1 (which is now the default in nroff mode), a single, very
10352         long page is created instead of multiple pages: All `ne' and `wh'
10353         requests are put into conditionals; a new macro `an-end' is added to
10354         be called with `em'.
10356         Some other minor cleanups.
10358         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
10360 2000-12-02  Werner LEMBERG  <wl@gnu.org>
10362         Fixing a bug which prevented hyphenation in words followed
10363         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
10365         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
10366         Adding possibly_break_line().
10367         * src/roff/troff/env.h (environment): Make possibly_break_line()
10368         public.
10370         Make `\~' usable in .tr request.
10372         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
10373         (token): Add stretchable_space().
10374         * src/roff/troff/input.cc (token::next, token::delimiter,
10375         token::description, process_input_stack, do_translate,
10376         add_to_node_list, token::process): Use it.
10377         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
10378         for adjusting the space.
10379         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
10380         for stretchable space.
10381         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
10382         (make_node): Add code for stretchable space.
10383         * src/roff/troff/env.cc (environment::add_char): Use it.
10384         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
10385         (get_copy, token::next, transparent_translate, asciify): Use it.
10387         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
10388         doc/groff.texinfo: Updated.
10389         * man/groff.man: Small reorderings.
10391 2000-11-23  Werner LEMBERG  <wl@gnu.org>
10393         * NEWS: Fixes.
10394         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
10395         option.
10396         * src/roff/troff/input.cc (main): Add `config_macro_path' and
10397         `safer_macro_path' to -M option.
10398         * src/roff/troff/troff.man: Fixes.
10400 2000-11-22  Werner LEMBERG  <wl@gnu.org>
10402         Use safer path (except for config files) if -U isn't specified.  Add
10403         a special macro path (without home and current directory) for config
10404         files.  Add home directory to unsafe path for consistency.  Don't
10405         include the home directory in the font path.
10407         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
10408         `macro_path'.
10409         * src/include/macropath.h: Add `config_macrp_path'.
10410         * src/libs/libgroff/fontfile.cc: Fix font path.
10411         * src/roff/troff/input.cc (process_startup_file): Use
10412         `config_macro_path'.
10413         (main): Select unsafe path if -U is given.
10415         * src/preproc/eqn/main.cc (main): Fixing search path for
10416         configuration file.
10417         * src/preproc/eqn/eqn.man: Updated.
10419         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
10420         Updated.
10422         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
10423         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
10424         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
10425         src/devices/grotty/grotty.man: Updated.
10427         * Makefile.in: Fix comments.
10429 2000-11-17  Werner LEMBERG  <wl@gnu.org>
10431         * tmac/safer.tmac: Empty file added (again) for compatibility
10432         reasons.
10433         * tmac/Makefile.sub: Updated.
10435 2000-11-16  Werner LEMBERG  <wl@gnu.org>
10437         * src/devices/grodvi/dvi.cc (main),
10438         src/devices/grohtml2/post-html.cc (main),
10439         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
10440         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
10441         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
10442         (main), src/preproc/html2/pre-html.cc (main),
10443         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
10444         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
10445         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
10446         (main), src/utils/hpftodit/hpftodit.cc (main),
10447         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
10448         (main), src/utils/lookbib/lookbib.cc (main),
10449         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
10450         (main): Use stdout for -v.
10451         * src/roff/groff/groff.cc (run_commands),
10452         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
10453         to make direct printing to stdout possible.
10454         * src/roff/groff/pipeline.h: Updated.
10456         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
10457         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
10458         * src/utils/afmtodit/afmtodit.man: Updated.
10460         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
10461         (version): New function.
10462         (usage): Updated.
10463         * src/utils/addftinfo/addftinfo.man: Updated.
10465         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
10466         Fixing copyright dates.
10468         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
10469         replacing it.
10471         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
10472         version_string.
10474         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
10476 2000-11-15  Werner LEMBERG  <wl@gnu.org>
10478         In all programs, make -v return immediately with exit status 0 to
10479         be compliant with the GNU standard.
10481         * src/devices/grodvi/dvi.cc (main),
10482         src/devices/grohtml2/post-html.cc (main),
10483         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
10484         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
10485         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
10486         (main), src/preproc/html2/pre-html.cc (main),
10487         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
10488         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
10489         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
10490         (main): Implement it.
10491         * NEWS: Updated.
10493         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
10494         and postprocessors to the -v option.
10496         * src/roff/grog/grog.pl: Implement -v.
10497         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
10498         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
10500         * src/roff/nroff/nroff.sh: Implement -v.
10501         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
10502         * src/roff/nroff/nroff.man: Updated.
10503         
10504         * src/preproc/eqn/main.cc (main): Fix comment typo.
10506         * MORE.STUFF: Added info about djgpp port of grap.
10508 2000-11-14  Werner LEMBERG  <wl@gnu.org>
10510         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
10511         mode (or rather, implemented non-compatibility mode).
10512         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
10514         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
10515         replacing it -- we don't find gxditview otherwise.
10516         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
10518         * src/preproc/pic/depend: Removed.  Unnecessary.
10520         Implemented dummy keyword `solid' in pic for compatibility with
10521         AT&T pic.
10523         * lex.cc (lookup_keyword): Added `solid'.
10524         * pic.y: Added SOLID with dummy rule.
10525         * pic.cc, pic_tab.h: Regenerated.
10526         * doc/pic.ms: Updated.
10528 2000-11-13  Werner LEMBERG  <wl@gnu.org>
10530         For security reasons, don't use the current directory but the home
10531         directory while searching and scanning troffrc and troffrc-end.
10532         Similarly, replace the current directory with the home directory
10533         in the font path.
10535         * Makefile.in (fontpath, tmacpath): Remove current directory.
10537         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
10538         two parameters `add_home' and `add_current'.
10539         (search_path::~search_path, search_path::command_line_dir,
10540         search_path::open_file): Remove tests for `dirs' being zero.
10541         * src/include/searchpath.h: Adjust.
10542         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
10543         `safer_macro_path'.
10544         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
10546         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
10547         * src/roff/troff/input.cc: Use `mac_path', initialized with
10548         `macro_path'.
10549         (process_startup_file): Set `mac_path' to `safer_macro_path'.
10550         * src/roff/troff/env.cc: Use `mac_path'.
10552         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
10554         * NEWS, man/roff.man, src/roff/troff/troff.man,
10555         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
10556         Updated.
10558 2000-11-12  Werner LEMBERG  <wl@gnu.org>
10560         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
10562         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
10563         * configure.in: Fix typo in comment.
10564         * configure: Regenerated.
10566         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
10567         copyright dates.
10569 2000-11-08  Werner LEMBERG  <wl@gnu.org>
10571         Add system tmac directory (/usr/local/lib/groff/site-tmac).
10573         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
10574         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
10575         $(systemtmacdir).
10576         Use @libdir@.
10577         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
10578         * tmac/Makefile.sub (install_data): Create
10579         $(systemtmacdir) and $(localtmacdir).
10580         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
10581         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
10582         NEWS, doc/groff.texinfo: Updated and minor fixes.
10584         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
10585         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
10586         $(systemtmacdir) since the wrapper files are platform-dependent.
10588 2000-11-01  Werner LEMBERG  <wl@gnu.org>
10590         * doc/groff.texinfo: Fix typo.
10592 2000-10-26  Werner LEMBERG  <wl@gnu.org>
10594         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
10595           tmac.doc.old -> doc-old.tmac
10596           tmac.an.old  -> an-old.tmac
10598         * tmac/tmac.*: Moved to ...
10599         * tmac/*.tmac: this.
10600         * tmac/man.local: Fix comment.
10601         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
10602         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
10603         Added some `FILES' sections.  More use of @...@ directives.  Other
10604         minor updates.
10605         * arch/djgpp/README, font/devutf8/NOTES: Updated.
10606         * doc/homepage.ms, doc/groff.texinfo: Updated.
10607         * man/groff.man, man/roff.man: Updated.
10608         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
10609         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
10610         src/devices/grotty/grotty.man: Updated.
10611         * src/preproc/pic/pic.man: Updated.
10612         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
10613         instead of -mdoc.old.
10614         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
10615         * src/roff/nroff/nroff.man: Updated.
10616         * NEWS: Updated.
10618         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
10620         * tmac/mm.diff: Removed -- it has no use now since the mm package
10621         is part of groff.
10623         * tmac/*: Removed trailing spaces.
10625         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
10626         the tmac subdirectory also).
10628         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
10629         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
10630         stuff since it is no longer needed.
10632         * README, PROBLEMS: Updated.
10634 2000-10-25  Werner LEMBERG  <wl@gnu.org>
10636         Invert current behaviour: Search first FOOBAR.tmac, then
10637         tmac.FOOBAR.
10639         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
10640         (open_mac_file, macro_source): Implement it.
10641         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
10642         doc/groff.texinfo, NEWS: Document it.
10644         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
10645         Small documentation improvements.
10647         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
10648         subdirectory also).
10650         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
10652 2000-10-24  Werner LEMBERG  <wl@gnu.org>
10654         Add local tmac directory (groff/site-tmac).
10656         * Makefile.in: Add $(localtmacdir).
10657         (uninstall_dirs): Add $(localtmacdir).
10658         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
10659         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
10660         in $(localtmacdir).  Create $(localtmacdir).
10661         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
10662         Updated and minor fixes.
10664         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
10666         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
10668 2000-10-23  Werner LEMBERG  <wl@gnu.org>
10670         Move hyphen.us to tmac directory.
10672         * src/roff/troff/hyphen.us: Removed.
10673         * src/tmac/hyphen.us: Added.
10674         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
10676         Change installation structure for data files from .../groff/... to
10677         .../groff/<version><revision>/... to be conform with other GNU
10678         programs.
10680         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
10681         doc/Makefile: Implement it.
10682         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
10683         * configure: Updated.
10684         * arch/djgpp/README, font/devutf8/NOTES: Use it.
10685         * NEWS: Document it.
10686         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
10687         @MACRODIR@ instead of hard-coded directories.
10689 2000-10-22  Werner LEMBERG  <wl@gnu.org>
10691         Implement $GROFF_BIN_PATH environment variable (which defaults to
10692         $bindir) used for child programs of groff and similar wrappers.
10694         * gendefs.sh: Improve documentation.
10695         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
10696         src/preproc/eqn/Makefile.sub (neqn),
10697         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
10698         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
10699         $GROFF_BIN_PATH.
10700         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
10701         $GROFF_PATH__ (the latter for communication with troff).
10702         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
10703         set.
10704         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
10705         doc/groff.texinfo: Document it.
10707         * doc/groff.texinfo: Improve documentation of troff's -a option.
10709 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
10711         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
10712         non-intrusive eol marker.
10713         (troff_output_file::determine_line_limits): New function.
10714         (troff_output_file::draw): Use it.
10715         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
10716         output_pending_lines() instead of output_line().
10717         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
10718         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
10719         createImage): Small fixes.
10720         
10721 2000-10-14  Werner LEMBERG  <wl@gnu.org>
10723         Replace tmac.safer with a real secure solution.
10725         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
10726         system_request, pipe_output): Disable requests if in safer mode.
10727         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
10728         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
10729         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
10730         doc/groff.texinfo, src/roff/groff/groff.man,
10731         src/roff/troff/troff.man, arch/djgpp/README: Updated.
10733         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
10734         (resource_manager::output_prolog): Replace setenv() with putenv().
10736 2000-10-09  Werner LEMBERG  <wl@gnu.org>
10738         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
10739         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
10740         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
10741         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
10742         compilation errors with some compilers.  It seems that this code
10743         is no longer necessary -- if yes, it is easy to add some #ifdef's
10744         for that particular old-fashioned compiler.
10746         * MORE.STUFF: Added info about Meta-tbl.
10748         * doc/groff.texinfo: Added more info about `.if "..."..."'.
10750 2000-10-07  Werner LEMBERG  <wl@gnu.org>
10752         Adding a new escape sequence \B'...': If the string between
10753         the delimiters is a valid numeric expression, return the character
10754         `1', and `0' otherwise.  This is an analogon to \A.
10756         * src/roff/troff/input.cc (do_expr_test): Implement it.
10757         (token::next): Use it.
10758         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
10760         * tmac/tmac.trace: Made independent from escape character.
10762 2000-10-06  Werner LEMBERG  <wl@gnu.org>
10764         Adding a new request .dei: define indirect.  The first and second
10765         parameter of .dei are taken from string registers instead directly;
10766         this very special request is needed to make tmac.trace independent
10767         from the escape character (which might even be disabled).
10769         * src/roff/troff/input.cc (do_define_macro): Implement it.
10770         (define_macro_indirect): New function.
10771         (init_input_requests): Use it.
10773         Adding two requests .ecs and .ecr: Save and restore the escape
10774         character.  These two requests are needed to make tmac.trace
10775         independent from the escape character (which might even be
10776         disabled).
10778         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
10779         Implement it.
10780         (init_input_requests): Use it.
10782         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10784 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
10786         Adding a new option -P and new environment variable GROPS_PROLOGUE
10787         to grops, selecting a different prologue file (minor modifications
10788         by WL).
10790         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
10791         src/devices/grops/ps.cc (main): Implement it.
10792         * src/devices/grops/grops.man, NEWS: Document it.
10794 2000-09-22  Werner LEMBERG  <wl@gnu.org>
10796         * INSTALL: Add info about selecting paper format.
10798 2000-09-21  Werner LEMBERG  <wl@gnu.org>
10800         * src/roff/troff/input.cc (main): Fixing compiler warning.
10801         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
10802         strings.h from the former to the latter.
10803         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
10804         stuff from the former to the latter.
10806 2000-09-11  Werner LEMBERG  <wl@gnu.org>
10808         Implementing two new requests .tm1 and .tmc: The former is similar
10809         to .tm but can output leading spaces; its syntax is similar to
10810         defining a string, i.e., a `"' can be used to mark the beginning of
10811         the string to be written to stderr: `.tm1 " test'.  The latter is
10812         similar to .tm1 but doesn't write out a final newline character.
10814         * src/roff/troff/input.cc (terminal1, terminal_continue,
10815         do_terminal): New functions.
10816         (init_input_requests): Use them.
10817         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10819 2000-09-09  Werner LEMBERG  <wl@gnu.org>
10821         * tmac/groff_mdoc.samples.man: Small fixes.
10823 2000-09-08  Werner LEMBERG  <wl@gnu.org>
10825         * tmac/groff_mdoc.man: Fixing typo.
10827 2000-09-02  Werner LEMBERG  <wl@gnu.org>
10829         Implementing a .nop request which does nothing.
10831         * src/roff/troff/input.cc (nop_request): New function.
10832         (init_input_requests): Use it.
10833         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10835 2000-09-01  Werner LEMBERG  <wl@gnu.org>
10837         * doc/groff.texinfo: Added some comments.
10839 2000-08-30  Werner LEMBERG  <wl@gnu.org>
10841         * src/roff/troff/TODO: Updated.
10843 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10845         * doc/groff.texinfo: Fix comment how to compile the DVI file.
10847 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
10849         * font/devps/generate/Makefile (SHELL): Define explicitly to
10850         "/bin/sh", for non-Unix platforms.
10851         (extraclean): Use a more portable "" quoting instead of a
10852         backslash (which doesn't work on DOS/Windows).
10853         
10854         * font/devlj4/generate/Makefile (extraclean): Ditto.
10856         * font/devdvi/generate/Makefile (extraclean): Ditto.
10858 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10860         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
10861         src/roff/troff/troff.man: Document Eli's latest changes.
10863 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
10865         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
10866         macro file names of the form NAME.tmac as well as tmac.NAME.
10868 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10870         * src/include/posix.h: Remove definition of FILENAME_MAX.
10872         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
10873         `sys_fatal' and `stop' function().
10875         * test-groff: Updated.
10877 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
10879         Added the new troff command .output <arg> to suppress output (while
10880         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
10881         registers (for passing the output dimensions to the output device).
10883         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
10884         parameter.
10885         * src/roff/troff/node.h, src/roff/troff/node.cc
10886         (troff_output_file::really_print_line,
10887         ascii_output_file::really_print_line,
10888         supress_output_file::really_print_line): Use `width' parameter.
10889         (troff_output_file::really_on, troff_output_file::really_off,
10890         output_file::on, output_file::off, real_output_file::on,
10891         real_output_file::off, real_output_file::really_on,
10892         real_output_file::really_off): New functions.
10893         (real_output_file:public output_file): New variable `output_on'.
10894         (real_output_file::begin_page, real_output_file::copy_file,
10895         real_output_file::transparent_char, real_output_file::print_line):
10896         Use it.
10897         (real_output_file::print_line): Use check_output_limits.
10898         * src/roff/troff/reg.h, src/roff/troff/request.h,
10899         src/roff/troff/input.cc (assign_registers): New function to remove
10900         two `goto's.
10901         (do_ps_file): Use it.
10902         (check_output_limits, reset_output_registers, output_request,
10903         init_output_requests): New functions.
10904         (init_input_requests): Updated.
10906         Added new grohtml2 device and html2 preprocessor (coding
10907         not yet finished) which will eventually replace grohtml.
10909         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
10910         Updated.
10911         * src/include/htmlindicate.h, src/include/htmlindicate
10912         (html_begin_suppress, html_end_suppress): New functions.
10913         * src/preproc/tbl/main.cc: Use it.
10914         * src/roff/groff/groff.cc: Add support for html2 device (which will
10915         automatically invoke the html2 preprocessor).
10916         * src/roff/troff/input.cc (is_html2): New variable.
10917         * src/roff/troff/troff.h, src/roff/troff/env.h,
10918         src/roff/troff/env.cc (environment::add_html_tag): New function
10919         (uses `is_html2').
10920         (environment::do_break): Use it.
10921         * font/devhtml2/*: New files.
10922         * src/devices/grohtml2: New device.
10923         * src/preproc/html2: New preprocessor.
10924         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
10926 2000-08-23  Werner LEMBERG  <wl@gnu.org>
10928         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
10930 2000-08-22  Werner LEMBERG  <wl@gnu.org>
10932         * src/include/lib.h: Provide a fix for IRIX to not include
10933         groff-getopt.h.
10935 2000-08-18  Werner LEMBERG  <wl@gnu.org>
10937         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
10938         since some non-GNU sed programs can't handle null regexps.
10939         * configure, src/preproc/eqn/Makefile.sub,
10940         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
10942         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
10943         bug (string.h and strings.h are both needed according to latest
10944         POSIX standard).
10946         * MORE.STUFF: Added info about unroff and troffcvt.
10948 2000-08-08  Werner LEMBERG  <wl@gnu.org>
10950         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
10951         used before -ms.
10953         * tmac/tmac.man.old: Remove unused number register.
10955         * tmac.doc: Minor documentation fix.
10957 2000-08-07  Paul Eggert  <eggert@twinsun.com>
10959         * src/roff/groff/pipeline.c (is_system_shell):
10960         Fix typo: "monocased_shell" no longer exists.
10962 2000-08-07  Paul Eggert  <eggert@twinsun.com>
10964         Remove FILENAME_MAX limits.
10966         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
10967         that the argument length is less than FILENAME_MAX.
10968         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
10969         Use struct hack to allocate and free file name.
10970         (struct xtmpfile_list): fname is now part of the structure,
10971         not a pointer to another string.
10973 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
10975         * src/include/posix.h: Add a default value for FILENAME_MAX.
10977 2000-08-06  Paul Eggert  <eggert@twinsun.com>
10979         Add support for new BSD-style man pages (with ".Dd" instead of
10980         ".TH"), so that "groff -man" understands both styles, even
10981         when running "groff -man" on a host whose system man page
10982         macros don't support ".Dd".
10984         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
10985         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
10986         in case the system man macros don't define Dd or TH.
10988         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
10989         * tmac/tmac.an: New one-line file.
10990         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
10992 2000-08-06  Werner LEMBERG  <wl@gnu.org>
10994         * src/roff/troff/troff.man: Fixing typos.
10996 Version 1.16.1 released
10997 =======================
10999 2000-07-31  Werner LEMBERG  <wl@gnu.org>
11001         Preparing release 1.16.1.
11003         * REVISION: Revision number set to 1.
11004         * MORE.STUFF: Added info about port to DOS.
11005         * NEWS, win32-diffs: Updated.
11007         * src/include/nonposix.h: Remove first line -- this file is used
11008         in C also.
11010         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
11011         link to it.
11013 2000-07-30  Werner LEMBERG  <wl@gnu.org>
11015         * doc/texinfo.tex: Update to latest version.
11017 2000-06-28  Paul Eggert  <eggert@twinsun.com>
11019         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
11020         commands that fail.  Don't assume that "export a=b" is valid shell
11021         syntax.  This is needed for Solaris 2.5.1.
11023         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
11024         comment about missing Solaris headers.
11026         * PROBLEMS: Add section about problems with Sun Make and VPATH.
11028 2000-06-25  Werner LEMBERG  <wl@gnu.org>
11030         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
11031         SET_BINARY().
11033         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
11035         * win32-diffs: Updated.
11036         * README.WIN32: Added CRs to make all Windows editors happy.
11038         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
11039         src/roff/groff/pipeline.c).
11041 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
11043         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
11044         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
11046 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
11048         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
11049         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
11050         are binary files.
11051         (main): Support non-Posix systems with several different styles of
11052         slash characters in file names.
11054         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
11055         (main) [SET_BINARY]: Switch stdin into binary mode.
11057         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
11058         (main): Support file names with several possible slash-type
11059         characters, as given by DIR_SEPS[] in nonposix.h.
11060         (main) [__MSDOS__]: If renaming the temporary index file fails
11061         because it has more than one dot in its trunk, replace the dot
11062         with an underscore and try again.
11063         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
11064         Newline.
11065         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
11067         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
11068         (File::File): Open the input file in binary mode.  Strip CR
11069         characters from each CR-LF pair.
11070         (xbasename): Support file names with several possible slash-type
11071         characters, as given by DIR_SEPS[] in nonposix.h.
11073         * src/include/Makefile.sub (HDRS): Add nonposix.h.
11075         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
11076         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
11077         [!_POSIX_VERSION]: Define for traditional Unix systems.
11078         (real_output_file::real_output_file): Remove the MSVC-specific
11079         call to popen, use instead POPEN_WT, appropriately defined on
11080         nonposix.h.  #include nonposix.h.
11081         (real_output_file::~real_output_file): Remove the MSVC-specific
11082         call to pclose, a suitable macro is now defined on nonposix.h.
11083         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
11084         and WEXITSTATUS instead of assuming traditional Unix
11085         interpretation of the status returned by pclose.
11087         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
11088         call to popen, use POPEN_RT instead (appropriately defined on
11089         nonposix.h).  #include nonposix.h.
11090         (ps_bbox_request): Open the PostScript file in binary mode.
11091         Close the file after processing it.
11092         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
11093         nonposix.h.
11095         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
11096         A version of run_pipeline that doesn't use `fork'.
11097         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
11098         (system_shell_name, system_shell_dash_c)
11099         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
11100         the ugliness of testing DOS/Windows file names for equality, and
11101         support both stock shells and ports of Unix shells.
11103         * src/roff/groff/groff.cc: #include nonposix.h.
11104         (BSHELL): Definition moved to nonposix.h.
11105         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
11106         instead of a literal "-c".
11107         (xbasename): Support file names with several possible slash-type
11108         characters, as given by DIR_SEPS[] in nonposix.h.
11109         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
11110         of literal strings.
11112         * src/preproc/soelim/soelim.cc: #include nonposix.h.
11113         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
11115         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
11116         pic_tab.h.
11118         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
11120         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
11121         eqn_tab.h.
11123         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
11125         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
11126         P_tmpdir is defined, use it instead of the literal "/tmp".
11127         (remove_tmp_files, add_tmp_file): New functions.
11128         (xtmpfile): Record temporary files and register an atexit function
11129         to delete them explicitly, instead of relying on the OS to do
11130         that, which doesn't work on non-Unix systems.
11132         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
11133         (search_path::search_path): Use PATH_SEP instead of a literal
11134         colon.
11135         (search_path::command_line_dir): Ditto.
11136         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
11137         to support non-Posix systems.
11139         * src/libs/libbib/search.cc: #include nonposix.h.
11140         (search_list::add_file): Open the file in binary mode.
11142         * src/libs/libbib/linear.cc: #include nonposix.h.
11143         (file_buffer::load): Remove \r characters preceding \n from the
11144         loaded buffer.
11146         * src/libs/libbib/index.cc: #include nonposix.h.
11147         (make_index_search_item): Open index_filename in O_BINARY mode.
11148         (index_search_item_iterator::get_tag): Ditto.  Remove \r
11149         characters before \n characters.
11150         (index_search_item::check_files): Open files in binary mode.
11151         (index_search_item::munge_filename): Support DOS-style file names
11152         with backslashes and drive letters, use IS_ABSOLUTE.
11154         * src/devices/grops/ps.cc: #include nonposix.h.
11155         (main) [SET_BINARY]: Switch stdout to binary mode.
11157         * src/devices/grolj4/lj4.cc: #include nonposix.h.
11158         (main) [SET_BINARY]: Switch stdout to binary mode.
11160         * src/devices/grolbp/lbp.cc: #include nonposix.h
11161         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
11163         * src/devices/grodvi/dvi.cc: #include nonposix.h.
11164         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
11165         nonposix.h).
11166         (main) [SET_BINARY]: Switch stdout to binary mode.
11167         [_MSC_VER]: Remove an explicit call to _setmode.
11169         * src/include/nonposix.h: New file.
11171         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
11172         operation when building with DJGPP.
11173         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
11174         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
11175         ENVSETUP.
11177         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
11178         MS-DOS.
11179         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
11180         etc. can include a semi-colon on DOS/Windows.
11181         (depend.temp): Use depend1.temp instead of depend.temp1, to
11182         prevent files from overerwiting each other on 8+3 filesystems.
11184         * gendef.sh (t): Change definition to work with DOS/Windows.
11186         doc/groff.texinfo: Apart of some typo corrections, I also changed
11187         some index entris, to make them more non-ambiguous, and also put
11188         @ignore around some parts that are not yet written, to allow the
11189         Info output be readable.
11191 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
11193         Replaced specific checks for function declarations with a generic
11194         routine taken from GNU bfd.
11196         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
11197         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
11198         * configure.in: Use it.
11199         * src/devices/grolbp/lbp.cc, src/include/lib.h,
11200         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
11201         src/roff/groff/groff.cc: Use it.
11202         * Makefile.in, configure: Updated.
11204 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
11206         * src/devides/grolbp/lbp.h: Removed unused variables.
11208 2000-05-31  Keith Thompson  <kst@sdsc.edu>
11210         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
11211         strncasecmp().
11213 2000-05-31  Werner LEMBERG  <wl@gnu.org>
11215         * aclocal.m4 (GROFF_SRAND): New function to test the return value
11216         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
11217         * configure.in: Use it.
11218         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
11219         * configure, Makefile.in: Updated.
11221         * configure.in: Add test for strncasecmp().
11222         * src/include/lib.h: Use it.
11224 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
11226         * src/preproc/grn/Makefile.sub: Add MLIB.
11228 2000-05-29  Nix  <nix@esperi.demon.co.uk>
11230         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
11232 2000-05-29  Werner LEMBERG  <wl@gnu.org>
11234         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
11236         * PROBLEMS: Small update.
11238         * src/devices/grolbp/lbp.cc: Various small fixes.
11240 2000-05-28  Keith Thompson  <kst@sdsc.edu>
11242         * src/roff/nroff/nroff.sh: Fix main loop syntax.
11244         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
11246 2000-05-25  Werner LEMBERG  <wl@gnu.org>
11248         * man/roff.man: Removed unused macro.
11250 2000-05-24  Werner LEMBERG  <wl@gnu.org>
11252         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
11253         This is needed e.g. if you do
11254         `make distclean; ./configure; make dist'.
11256 Version 1.16 released
11257 =====================
11259 2000-05-23  Werner LEMBERG  <wl@gnu.org>
11261         Adding font CWI (constant width italic) to devdvi.
11263         * font/devdvi/CWI: New file.
11264         * font/devdvi/generate/Makefile: Add generating rule.
11265         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
11266         tmac/tmac.dvi: Use it.
11267         * NEWS: Announce it.
11269         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
11270         * font/devlj4/generate/Makefile: Cosmetic changes only.
11272         * man/groff.man: Removed most of the redundant description of
11273         special characters (which is in groff_char.man).  Added font
11274         translation CB->CR for devdvi.  Other minor fixes.
11276         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
11277         (registered) symbols.
11279 2000-05-22  Werner LEMBERG  <wl@gnu.org>
11281         * doc/Makefile: Added rule for creating info files.
11283         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
11284         AMS font metrics.
11285         * font/devdvi/generate/Makefile: Fixed dependencies.
11287         * font/devps/*: Regenerated.  Heavy changes for Bookman and
11288         NewCentury Schoolbook!
11289         * font/devps/generate/afmname: Will now run with GNU awk.
11290         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
11291         * font/devps/generate/Makefile: Cosmetic changes only.
11293 2000-05-21  Werner LEMBERG  <wl@gnu.org>
11295         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
11296         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
11297         `.SS' now produces a heading with a smaller size than `.SH'. 
11298         Completely formatted.
11299         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
11301         * man/groff.man: Improved table appearance.  Use of `eo' request
11302         to reduce number of doubled backslashes in macro definitions.
11303         Replacing `\e' with `\(rs'.  Other minor fixes.
11305         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
11306         to have correct line number.
11308         * INSTALL: Small improvement.
11310 2000-05-20  Bernd Warken  <bwarken@mayn.de>
11312         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
11313         WL).
11315 2000-05-19  Bernd Warken  <bwarken@mayn.de>
11317         * man/groff.man: Complete update (with a lot of corrections by WL).
11319 2000-05-18  Werner LEMBERG  <wl@gnu.org>
11321         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
11323         * font/*/*: Implement it.
11324         * man/groff_char.man, NEWS: Document it.
11326         * src/include/unix.h: Removed.  It isn't used.
11328         * doc/groff.texinfo: Slight improvements.
11330 2000-05-17  Werner LEMBERG  <wl@gnu.org>
11332         * README, win32-diffs: Small fixes and improvements.
11334 2000-05-16  Werner LEMBERG  <wl@gnu.org>
11336         * FDL: New file (the Free Documentation License version 1.1).
11338         * doc/groff.texinfo: Added many start-up values for gtroff.
11339         Some structural improvements of the source code.
11341 2000-05-15  Werner LEMBERG  <wl@gnu.org>
11343         * src/roff/troff/input.cc: Added small comment about troffrc-end.
11344         * src/roff/troff/troff.man: Added info about troffrc-end.
11346 2000-05-14  Werner LEMBERG  <wl@gnu.org>
11348         * Makefile.in (EXTRADIRS): Fix typos.
11349         (dist): Handle deletion of old .tar.gz file correctly.
11350         (DISTDIRS): Include all tty output devices.
11352         * doc/groff.texinfo: Adding more cross references; countless other
11353         fixes.
11355 2000-05-13  Werner LEMBERG  <wl@gnu.org>
11357         * MORE.STUFF: Added Robert Marks's utilities.
11359 2000-05-12  Werner LEMBERG  <wl@gnu.org>
11361         Added win32 port contributed by Blake McBride
11362         <blake@florida-software.com>.
11364         * README.WIN32, win32-diffs: New files.
11365         * NEWS: Updated.
11367         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
11368         (tmove, tmove2): Added parentheses to avoid compiler warnings.
11369         (change): Removed unused variables.
11371         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
11372         (savebounds): Changed return value from `int' to `void'.
11373         * src/preproc/grn/hdb.cc: Ditto.
11375         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
11376         final backslash in comment to avoid compiler warning.
11378         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
11380         * doc/groff.texinfo: More fixes.
11382 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
11384         * tmac/tmac.doc: Documentation fix.
11386 2000-05-11  Werner LEMBERG  <wl@gnu.org>
11388         * doc/groff.texinfo: Reading the source code shows up a lot of
11389         omissions and incorrect data...  More conversion to @Deffn macros.
11391 2000-05-10  Werner LEMBERG  <wl@gnu.org>
11393         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
11394         dependency.
11396         * src/roff/troff/request.h: Removing unused `no_break_flag'.
11398 2000-05-09  Werner LEMBERG  <wl@gnu.org>
11400         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
11401         improvements.
11403         * doc/groff.texinfo: Extended history section.  More conversion to
11404         @Deffn macros.  More .tr documentation.
11406 2000-05-07  Werner LEMBERG  <wl@gnu.org>
11408         * doc/groff.texinfo: Completed tab section.  Added info about
11409         fields.
11411 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
11413         * PROBLEMS: Describe configure script fix for OS/390 Unix.
11415 2000-05-05  Werner LEMBERG  <wl@gnu.org>
11417         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
11418         LaTeX 2e).
11419         * NEWS: Document it.
11421         * man/troff.man: Minor optical improvements.
11423 2000-05-03  Werner LEMBERG  <wl@gnu.org>
11425         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
11427         * font/*/*: Implement it.
11428         * man/groff_char.man, NEWS: Document it.
11430 2000-05-02  Werner LEMBERG  <wl@gnu.org>
11432         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
11433         expansion.
11434         * NEWS: Document the three new man pages.
11436         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
11437         * configure: Updated.
11439         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
11441 2000-05-01  Werner LEMBERG  <wl@gnu.org>
11443         Added grap support to grog.
11445         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
11446         * src/roff/grog/grog.man: Document it.
11448         * doc/groff.texinfo, NEWS: Add info about grap support.
11450         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
11451         (with slight fixes by me).
11453         * tmac/groff_tmac.man: New file documenting tmac mechanism.
11454         * tmac/Makefile.sub: Add groff_tmac.man.
11455         * man/roff.man: New file giving overview of roff system.
11456         * man/troff.man: A short reference of troff.
11457         * man/Makefile.sub: Add roff.man and troff.man.
11459 2000-04-30  Werner LEMBERG  <wl@gnu.org>
11461         Added grap support to groff.
11463         * src/roff/groff/groff.cc: Implement it.
11464         * src/roff/groff/groff.man: Document it.
11466         * src/devices/grotty/grotty.man: Add cp1047 device.
11467         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
11468         Ditto.
11469         * src/roff/groff/groff.man: Ditto.
11470         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
11471         * doc/groff.texinfo: Ditto.
11473         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
11474         for cp1047.
11476 2000-04-29  Werner LEMBERG  <wl@gnu.org>
11478         * man/groff_char.man: Add `pc' glyph.
11479         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
11480         * tmac/tmac.tty: Add `pc' glyph.
11481         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
11482         we use cp1047 output device.
11484         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
11485         there are still hardcoded latin1->unicode values in utf8's font
11486         definition files.
11487         * configure: Updated.
11488         * NEWS: Minor clarification.  Updated.
11490         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
11491         Unix.
11493 2000-04-28  Werner LEMBERG  <wl@gnu.org>
11495         Adding EBCDIC code page 1047.
11497         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
11498         font/devcp1047/DESC.proto: New files.
11500         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
11501         either ascii/latin1 or cp1047.
11502         * Makefile.in: Use it.
11503         * configure: Updated.
11505         Replacing and/or adding `md' (mathdot) glyph with `pc'
11506         (periodcentered) in all text fonts.
11508         * font/*/*: Change it.
11510 2000-04-27  Werner LEMBERG  <wl@gnu.org>
11512         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
11514         * configure.in: Add check for strings.h.
11515         * src/include/driver.h: Use HAVE_STRINGS_H.
11516         * src/devices/grolbp/lpb.cc: Remove string.h.
11518         * src/include/groff-getopt.h: New file.  It will be used instead of
11519         getopt.h (to be included in lib.h) to avoid endless problems with
11520         picky C++ compilers.
11521         * src/include/lib.h: Use groff-getopt.h.
11522         * src/include/Makefile.sub: Updated.
11524         * configure: Updated.
11525         * Makefile.in: Updated.
11527         * NEWS: Mention EBCDIC support.
11529 2000-04-26  Werner LEMBERG  <wl@gnu.org>
11531         * TODO: Some additions.
11533 2000-04-25  Werner LEMBERG  <wl@gnu.org>
11535         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
11536         of mso request.
11538 2000-04-23  Werner LEMBERG  <wl@gnu.org>
11540         * src/roff/troff/troff.man: Minor fixes.
11542 2000-04-22  Werner LEMBERG  <wl@gnu.org>
11544         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
11545         `.T' string register and the incompatible definition of the `.T'
11546         number register (compared to Unix troff).
11548         * man/groff_char.man: Add some missing characters.
11549         * font/devutf8/NOTES: Update.
11551 2000-04-21  Werner LEMBERG  <wl@gnu.org>
11553         * src/include/htmlindicate.h, src/include/lib.h,
11554         src/include/posix.h: Fix copyright.
11556         * src/include/Makefile.sub: Update.
11558 2000-04-20  Werner LEMBERG  <wl@gnu.org>
11560         * src/roff/troff/input.cc (input_char_description): Removing
11561         superfluous space char.
11563         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
11565         * doc/groff.texinfo: Document EBCDIC.
11567 2000-04-19  Werner LEMBERG  <wl@gnu.org>
11569         Introducing `shc' as the glyph name for the soft hyphen character.
11571         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
11572         font/devlatin1/R.proto: Use it.
11574         * NEWS: Updated.
11576 2000-04-18  Werner LEMBERG  <wl@gnu.org>
11578         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
11579         dependency on ASCII order.
11581 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
11583         * src/libs/libgroff/illegal.c: Added EBCDIC table.
11584         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
11586         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
11587         to increase portability.
11589 2000-04-15  Werner LEMBERG  <wl@gnu.org>
11591         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
11592         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
11593         the generic `\n' if under OS/390 Unix.
11595         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
11597         * configure: Regenerated.
11599 2000-04-14  Werner LEMBERG  <wl@gnu.org>
11601         * doc/groff.texinfo: More conversions to @Deffn.
11603 2000-04-12  Werner LEMBERG  <wl@gnu.org>
11605         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
11606         with `:'.
11608         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
11610 2000-04-10  Werner LEMBERG  <wl@gnu.org>
11612         * doc/groff.texinfo: More conversions to @Deffn.
11614 2000-04-08  Werner LEMBERG  <wl@gnu.org>
11616         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
11617         Updated to latest version (glibc 2.1.3).
11619 2000-04-07  Werner LEMBERG  <wl@gnu.org>
11621         * doc/Makefile (clean): Include more index files.
11622         Add rule texinfo->dvi.
11624 2000-04-05  Werner LEMBERG  <wl@gnu.org>
11626         * doc/groff.texinfo: Added new index `op' for operators.  More
11627         info on end of sentence characters.  More use of @Deffn.
11629 2000-03-30  Werner LEMBERG  <wl@gnu.org>
11631         * */*.man: Adding a note that a whitespace can be inserted between
11632         a command line option and its parameter -- we are using GNU getopt.
11634         * src/roff/groff/groff.man: Add example of `-m mandoc'.
11636 2000-03-28  Werner LEMBERG  <wl@gnu.org>
11638         Correct anachronism of calling the man macro file with `-man'
11639         instead of `-m man' etc.
11641         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
11642         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
11643         load tmac.<package>.
11645         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
11647         * NEWS: Updated.
11649         * doc/groff.texinfo: Updated.
11651         * tmac/groff_man.man: Copyright added.
11653 2000-03-27  Werner LEMBERG  <wl@gnu.org>
11655         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
11656         typeset the request resp. escape name with a tt font -- due to a
11657         bug in texinfo.tex it is necessary to use the `-e' switch with
11658         texi2dvi.
11660         Improving info about usage of groff units.
11662         Other minor fixes.
11664 2000-03-20  Werner LEMBERG  <wl@gnu.org>
11666         * doc/groff.texinfo: Added section about man macro package
11667         (I've basically taken groff_man.man).  Introducing new indices `ma'
11668         for macros/strings and `gl' for glyph names.  Other minor fixes.
11670         * tmac/groff_man.man: Fixed some typos.
11672 2000-03-19  Werner LEMBERG  <wl@gnu.org>
11674         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
11675         Other minor fixes.
11677         * doc/texinfo.tex: New file.
11679 2000-03-18  Werner LEMBERG  <wl@gnu.org>
11681         * doc/groff.texinfo: Improved section on number registers.  Other
11682         minor updates.
11684 2000-03-16  Werner LEMBERG  <wl@gnu.org>
11686         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
11687         synopsis.
11689         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
11690         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
11691         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
11692         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
11694         * src/preproc/grn/grn.man: Better synopsis; added copyright.
11696         * src/roff/grog/grog.man: Updated copyright date.
11698 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
11700         * configure.in: Added test for strdup.
11702         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
11703         is available.
11705         Replaced dynamic allocation of arrays `[...]' with `new' operator.
11707         Other minor fixes.
11709 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
11711         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
11713 2000-03-11  Werner LEMBERG  <wl@gnu.org>
11715         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
11716         compilers silent.
11717         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
11718         * src/include/lib.h: Remove some spaces.
11720 2000-03-10  Werner LEMBERG  <wl@gnu.org>
11722         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
11723         initializers from arguments (some compilers don't like this).
11725 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
11727         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
11728         used by pic and eqn to tell grohtml where the graphic regions start
11729         and end.
11730         * src/libs/libgroff/Makefile.sub: Use it.
11731         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
11732         graphic_start() and graphic_end() from htmlindicate.cc.
11734 2000-03-09  Werner LEMBERG  <wl@gnu.org>
11736         * tmac/tmac.safer: Will now work correctly in compatibility mode.
11737         * tmac/groff_man.man: More fixes.
11739 2000-03-08  Werner LEMBERG  <wl@gnu.org>
11741         * doc/Makefile: Added texput.log to the `clean' target.
11742         * doc/groff.texinfo: Added info about delimiters for escapes.
11744 2000-03-08  Bernd Warken  <bwarken@mayn.de>
11746         * src/preproc/pic/pic.man: Add info on conversion of pic images to
11747         other graphic formats.
11749 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
11751         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
11752         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
11753         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
11754         files.
11756 2000-03-07  Werner LEMBERG  <wl@gnu.org>
11758         * doc/groff.texinfo: Spelling fixes.
11760 2000-03-06  Werner LEMBERG  <wl@gnu.org>
11762         * tmac/groff_man.man: Completely revised to cover everything in
11763         tmac.an.
11765         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
11766         Other minor fixings.
11767         * src/roff/troff/env.cc (environment_copy): Improve error message and
11768         fix itoa->i_to_a.
11769         * src/roff/troff/TODO: Updated.
11771         * doc/Makefile: Bug fixes -- this is still provisional, though...
11773         * tmac/eqnrc: Small fixes.
11775 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
11777         Adding a request `evc' to copy environments.
11779         * src/roff/troff/env.cc (environment::copy, environment_copy):
11780         Implement it.
11781         * src/roff/troff/env.h: Add prototype.
11783 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
11785         Adding strsep() -- Solaris 8 doesn't have it.
11787         * configure.in: Test it.
11788         * src/devices/grolbp/lbp.cc: Add code.
11790 2000-03-05  Werner LEMBERG  <wl@gnu.org>
11792         * src/roff/troff/div.cc (macro_diversion::output,
11793         top_level_diversion::output): Fixing an incompatibility with
11794         original troff: \x'0' updates the .a register also.  Thanks to
11795         <Andries.Brouwer@cwi.nl> for pointing this out.
11796         * doc/groff.texinfo: Document it.
11798         * Makefile.in: Create Makefile.dep if necessary before calling the
11799         submake process to avoid warning about nonexistent file.
11801         * NEWS, PROJECTS: Updated.
11803 2000-03-04  Werner LEMBERG  <wl@gnu.org>
11805         * tmac/troffrc: Add tmac.lbp.
11807 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
11809         * tmac/tmac.lbp: New file.
11810         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
11811         command.
11813 2000-03-03  Werner LEMBERG  <wl@gnu.org>
11815         * Makefile.in: Fixing $(subdir).
11817         * README, NEWS: Small fixes.
11819         * test-groff: Adding path to grolbp.
11821         * configure.in: The (new) file src/xditview/Imakefile.in will be
11822         also configured -- it is now possible to build gxditview in a
11823         directory different from $srcdir.
11825 2000-03-02  Blake McBride  <blake@florida-software.com>
11827         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
11829         * MORE.STUFF: Added website of bell labs and info about plot2dev.
11831 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
11833         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
11834         files.
11836 2000-02-29  Werner LEMBERG  <wl@gnu.org>
11838         Adding GNU getopt to the groff distribution.
11840         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
11841         New files.
11842         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
11843         * aclocal.a4: Remove GROFF_GETOPT function.
11844         * configure.in, Makefile.in, PROBLEMS: Update.
11845         * src/include/lib.h: Replace getopt tests with getopt.h.
11846         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
11848         * doc/groff.texinfo: Further checking/updating.  Adding more index
11849         entries.
11851         * man/groff_out.man: Fix nroff mode activation (for emacs).
11852         * man/groff_font.man: Add missing ligature.
11854 2000-02-28  Werner LEMBERG  <wl@gnu.org>
11856         * doc/groff.texinfo: Further checking/updating.  Adding more index
11857         entries.
11859         * src/devices/grolbp/grolbp.man: Added a comment line at the
11860         beginning of the file (similar to shell scripts) which indicates
11861         that `tbl' should be used as a preprocessor.
11863 2000-02-27  Blake McBride  <blake@florida-software.com>
11865         Adapting groff to MS Visual C++ 6.0 compiler (tested with
11866         Windows NT 4.0).  Uses _MSC_VER define where necessary.
11868         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
11869         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
11870         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
11871         src/include/lib.h, src/libs/libgroff/errarg.cc,
11872         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
11873         src/preproc/refer/label.y, src/preproc/refer/label.cc,
11874         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
11875         src/roff/troff/div.cc, src/roff/troff/env.cc,
11876         src/roff/troff/input.cc, src/roff/troff/node.cc,
11877         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
11878         if_to_a() to avoid name clashes.
11879         * src/include/posix.h: Don't use unistd.h.
11880         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
11881         clause for integrating non-Unix xtmpfile() code.
11882         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
11883         structure; use "rt" for popen() in pipe_source(); add getpid()
11884         dummy function.
11885         * src/roff/troff/node.cc: Use special versions of popen() in
11886         real_output_file() and pclose() in ~real_output_file().
11888 2000-02-27  Werner LEMBERG  <wl@gnu.org>
11890         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
11891         LBP-8 series laser printers).  This code has been contributed by
11892         Francisco Andrés Verdú <pandres@dragonet.es>.
11894         * src/devices/grolbp/*: The grolbp output device.
11895         * font/devlpb/*: The font description files.
11896         * Makefile.in: Add grolpb and devlbp subdirectories.
11898         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
11899         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
11900         typographic fixes.
11902         * doc/groff.texinfo: Further checking/updating.  Adding more index
11903         entries.
11905         * NEWS: Updated.
11907         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
11909         * man/groff_font.man: Adding info about obsolete DESC keywords.
11910         * src/devices/grolj4/grolj4.man: Documenting additional DESC
11911         keywords.
11913 2000-02-26  Werner LEMBERG  <wl@gnu.org>
11915         * src/preproc/grn/grn.man: Added info about the gremlin file format
11916         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
11918 2000-02-25  Werner LEMBERG  <wl@gnu.org>
11920         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
11921         friends to be non-integer.
11923         * src/preproc/grn/grn.man: Document it.
11925         * doc/groff.texinfo: Further checking/updating.  Adding more index
11926         entries.
11928 2000-02-24  Werner LEMBERG  <wl@gnu.org>
11930         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
11931         line thicknesses to be integer multiples of this value.
11933         * src/preproc/grn/grn.man: Commenting out the -s option -- the
11934         corresponding code doesn't work (yet).
11936         * doc/groff.texinfo: Further checking/updating.  Adding more index
11937         entries.
11939 2000-02-23  Werner LEMBERG  <wl@gnu.org>
11941         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
11942         specify line thickness instead of base units.  The new default
11943         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
11944         thick lines respectively.
11946         Removed unused variable `prevval'.
11948         * src/preproc/grn/grn.man: Updated.
11950 2000-02-22  Werner LEMBERG  <wl@gnu.org>
11952         * src/preproc/grn/main.cc: Slight formatting.
11954         * src/roff/groff/groff.man: Formatting fix.
11955         * src/preproc/grn/grn.man: Ditto.
11957         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
11959         * doc/groff.texinfo: Further checking/updating.
11961 2000-02-21  Werner LEMBERG  <wl@gnu.org>
11963         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
11965         * test-groff: Added grn subdir to path.
11967         * doc/groff.texinfo: Some restructing and other small improvements.
11969         * src/roff/groff/groff.cc (help): Fixed info string.
11971 2000-02-20  Werner LEMBERG  <wl@gnu.org>
11973         * doc/meref.me: Fix description of .GS request.
11975         * src/roff/troff/troff.man: Fixing typo.
11977         Adding the `grn' preprocessor for gremlin graphic files.
11979         * src/preproc/grn/*: This is the Berkeley distribution written by
11980         David Slattengren and Barry Roitblat, adapted to groff by Daniel
11981         Senderowicz and Werner Lemberg.
11983         * doc/grnexampl.{me,g}: A sample for grn.
11985         * Makefile.in: Added subdirectory entry for grn.
11987         * src/roff/groff/groff.cc: Added support for grn.  It can be now
11988         called with the switch `-g'.
11990         * src/roff/groff/groff.man: Updated.
11992         * src/roff/grog/grog.{man,pl,sh}: Updated.
11994         * NEWS: Updated.
11996 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
11998         * src/include/lib.h: Added xtmptemplate and made xtmpfile
11999         parametrically polymorphic.
12001         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
12002         and the alterations to xtmpfile.
12003         xtmpfile can be requested to return the filename created
12004         and asked not to unlink the temp file.  The default behaviour
12005         if parameters are absent is exactly the same as before.
12007 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
12009         A new request `length' is available which returns the length of a
12010         string in a number register:
12012         * src/roff/troff/input.cc (length_macro): Implement it.
12013         * src/roff/troff/input.cc (init_input_requests): Register it.
12015 2000-02-11  Werner LEMBERG  <wl@gnu.org>
12017         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
12018         of the `substring' request.
12020         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
12021         request.
12023         * src/roff/troff/TODO, NEWS: Updated.
12025 2000-02-09  Werner LEMBERG  <wl@gnu.org>
12027         * src/roff/groff/groff.man: Added an example.
12029 2000-02-06  Werner LEMBERG  <wl@gnu.org>
12031         I've considerably modified the directory structure of the
12032         distribution to get a more vertical layout.  For example, the number
12033         of top level directories has been reduced from 42 to 6.
12035         As a consequence, many changes, especially to the makefiles, were
12036         necessary:
12038         * The makefile variables `top_builddir' and `top_srcdir' have been
12039         introduced.  Virtually all relative paths have been replaced with
12040         absolute ones using these two variables.
12042         * Dependencies (in the files `Makefile.dep') are no longer part of
12043         the distribution.  Instead, they are created during a `make install'
12044         in the build directory.
12046         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
12047         make `top_srcdir' and `top_builddir' absolute.
12049         Some other changes:
12051         * Man pages now depend on the files `VERSION' and `REVISION'.
12053         * The added shell script `mkinstalldirs' will replace `mkdir' in
12054         almost all cases.
12056         * VERSION: Version number increased to 1.16.
12058 2000-02-04  Werner LEMBERG  <wl@gnu.org>
12060         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
12062         * Makefile.in: Removed $(tmac_m) since it is no longer needed
12063         (after an update of the mm stuff).
12065         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
12067 2000-02-03  Werner LEMBERG  <wl@gnu.org>
12069         The .psbb request will now also accept Mac PS images (i.e. using LF
12070         as the EOL character).
12072         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
12073         (with slight modifications).
12074         * troff/input.cc (do_ps_file): Use it.
12076         * test-groff: Add grohtml and grolj4 output devices to PATH.
12078 2000-01-30  Werner LEMBERG  <wl@gnu.org>
12080         * NEWS, MORE.STUFF: Updated.
12082 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
12084         Add the `srand' command to pic.
12086         * pic/lex.cc, pic/pic.y: Implement it.
12087         * pic/pic.man: Document it.
12088         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
12090 2000-01-30  Werner LEMBERG  <wl@gnu.org>
12092         Add a new request `.psbb'.  This does exactly what the external
12093         program psbb did.  It scans a PostScript image file for a
12094         %%BoundingBox comment and extracts the bounding box values (in
12095         PostScript units) which are then stored in the four new (read-only)
12096         number registers `llx', `lly', `urx', and `ury'.
12098         This will allow the usage of the .PSPIC macro without worrying
12099         about unsafe behaviour of groff, i.e., it will work without the
12100         `-U' switch of groff.
12102         * troff/input.cc: Implement it.
12103         * tmac/tmac.pspic: Use it.
12104         * troff/troff.man, grops/grops.man, NEWS: Document it.
12105         * psbb/*, Makefile.in: Remove it since it is no longer needed.
12107         This is bloody C code simply adapted from psbb.c!  Any improvements
12108         welcome.
12110 2000-01-29  Werner LEMBERG  <wl@gnu.org>
12112         * man/groff_font.man: Minor clarifications.
12114         * NEWS: Updated.
12116 2000-01-28  Werner LEMBERG  <wl@gnu.org>
12118         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
12120 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
12122         * man/groff_font.man: Brought up to date regarding tcommand
12123         extensions.
12124         * libgroff/font.cc: Handle everything after `--' as a comment
12125         in the font files.
12126         * devps/*: Added comment delimiter inside devps font files.
12128 2000-01-28  Werner LEMBERG  <wl@gnu.org>
12130         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
12131         \fC...\fP (which now works as expected).
12133         * troff/troff.man: Fix typo.
12135 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
12137         Completed the pass_filenames implementation in troff.
12139         * libdriver/input.cc: Will read the new `F' tcommand.
12140         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
12141         * troff/input.cc: Use it.
12143 2000-01-26  Werner LEMBERG  <wl@gnu.org>
12145         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
12146         font will now be updated even if an invalid font is selected.
12148 2000-01-24  Werner LEMBERG  <wl@gnu.org>
12150         * doc/homepage.ms: Updated for new tmac.arkup.
12152         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
12154         * tmac/tmac.arkup: Cleanup.
12156         Added `\&' to .HTML macro to `leave vertical mode', so to say.
12158         Removed obsolete .LINK macro completely.
12160         The macros .URL, .FTP, and .MAILTO now accept a third argument which
12161         will be immediately appended to the second argument (to be used with
12162         punctuation, for example).
12164         Disabled .CDFTP macro temporarily for security reasons.
12166         * tmac/groff_markup.man: Complete revision for latest changes in
12167         tmac.arkup -- note that it does not yet format correctly with
12168         grohtml :-(
12170 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
12172         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
12173         * devutf8/R.proto: Add mappings for wp, lh, rh.
12174         * devutf8/NOTES: Updated.
12176 2000-01-23  Werner LEMBERG  <wl@gnu.org>
12178         * doc/groff.texinfo: Updated version/copyright info.
12180 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
12182         Added support for two new directives in device descriptions:
12183         `pass_filenames' (to pass the input file name to the output device)
12184         and `use_charnames_in_special' (to support e.g. accented characters
12185         in the `X' request).
12187         * include/font.h, troff/charinfo.h: Declare it.
12189         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
12191         * devhtml/DESC: Use it.
12193         * troff/input.cc: New function encoded_char.
12195         * troff/token.h: Add test for `specialness'.
12197 2000-01-21  Werner LEMBERG  <wl@gnu.org>
12199         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
12200         mistake from the list of files to be installed.
12202 2000-01-18  Werner LEMBERG  <wl@gnu.org>
12204         * README: Added info how to apply patches.
12206 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
12208         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
12210 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
12212         * troff/input.cc: Add support for troffrc-end.
12214         * tbl/main.cc: Altered to issue table-start and table-end special
12215         characters if using the html device.
12217         * devhtml/*: Modified font files to incorporate html encoding of
12218         characters.
12220         * tmac/groff_markup.man: New file documenting tmac.arkup.
12222         * tmac/troffrc-end: New file.  This is invoked after all user
12223         specified macros.  Currently used by the html device to include
12224         tmac.html.  Thus no need for users to specify -mhtml anymore.
12226         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
12227         (MAN7): Add groff_markup.man.
12229         * tmac/tmac.an, tmac/tmac.html: Small html updates.
12231         * tmac/troffrc: tmac.arkup will now be called for the html device.
12233         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
12234         extra device specific information about fonts.
12236         * doc/homepage.ms: New file.  It is an example how an HTML home page
12237         could look like with grohtml.
12239         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
12241 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
12243         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
12244         of Im, Re.
12246         * devutf8/NOTES: Updated.
12248 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
12250         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
12251         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
12252         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
12253         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
12254         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
12255         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
12256         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
12257         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
12258         warnings.
12260         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
12262 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
12264         grolj4: Paper size will be searched case-insensitively.
12266         * include/lib.h: Add check for strcasecmp().
12267         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
12268         * configure.in: Check for strcasecmp().
12270 2000-01-11  Werner LEMBERG  <wl@gnu.org>
12272         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
12273         `REVISION'.
12275 2000-01-10  Werner LEMBERG  <wl@gnu.org>
12277         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
12278         revision scheme.
12280         Add a new read-only register, `.Y', which contains the groff
12281         revision.
12283         * troff/input.cc (init_input_requests): Define it.
12284         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
12285         * doc/groff.texinfo, troff/troff.man: Document it.
12287         * libgroff/Makefile.sub (version.cc): Add definition of
12288         `Version_string[]', consisting of `<major>.<minor>.<revision>'
12289         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
12290         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
12291         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
12292         troff/input.cc, pfbtops/pfbtops.c: Use it.
12294 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
12296         Add a revision scheme to the groff package.
12298         * REVISION: New file.
12299         * libgroff/Makefile.sub (version.cc): Use it to define
12300         `revision_string[]'.
12301         * grops/psrm.cc: Use revision_string (converted to an unsigned
12302         integer) in constructor of resource_manager.
12304 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
12306         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
12307         files.
12308         * Makefile.in (DEVDIRS): Add devutf8.
12309         * grotty/tty.cc: Include device.h.
12310         (glyph): Change type of `code' to `unsigned int'.
12311         (tty_printer): New field is_utf8.  Constructor takes device argument.
12312         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
12313         (tty_printer::add_char): Change type of first arg to `unsigned int'.
12314         (tty_printer::put_char): New function.
12315         (tty_printer::end_page): Use put_char() instead of ::putchar().
12316         (make_printer): Pass device to tty_printer constructor.
12317         * nroff.sh: Determine default device by calling 'locale'.  As a
12318         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
12319         Recognize UTF-8 locales.
12320         * tmac/eqnrc: Recognize utf8 like latin1.
12321         * tmac/troffrc: Device utf8 needs tmac.tty.
12323 2000-01-07  Werner LEMBERG  <wl@gnu.org>
12325         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
12327 2000-01-07  Paul Eggert  <eggert@twinsun.com>
12329         Add a new predefined writeable number register, `year',
12330         which contains the current year.
12332         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
12333         * tmac/tmac.s: Use it.
12334         * troff/input.cc (init_registers): Initialize it.
12336 2000-01-06  Werner LEMBERG  <wl@gnu.org>
12338         * PROBLEMS: Fixed typo.
12340 2000-01-04  Paul Eggert  <eggert@twinsun.com>
12342         * PROBLEMS: Add Y2k advice for the yr number register.
12344 2000-01-03  Paul Eggert  <eggert@twinsun.com>
12346         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
12348 2000-01-02  Werner LEMBERG  <wl@gnu.org>
12350         * tmac/tmac.arkup: Slight modification of macros to provide better
12351         appearance for non-HTML formats.
12353 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
12355         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
12356         does not automatically translate to malloc(n) on all OSes
12357         (e.g., SunOS) so do it explicitly.  Also, check the returned
12358         value.
12360 2000-01-01  Werner LEMBERG  <wl@gnu.org>
12362         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
12364         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
12365         expects this variable
12367 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
12369         * doc/Makefile: Added instructions to create HTML and text
12370         versions of some files.
12372 1999-12-31  Werner LEMBERG  <wl@gnu.org>
12374         * Updated INSTALL.gen.
12376         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
12377         better resp. correctly with non-HTML devices.
12379 Version 1.15 released
12380 =====================
12382 1999-12-28  Werner LEMBERG  <wl@gnu.org>
12384         * NEWS, VERSION: Changed to 1.15
12386 1999-12-27  Paul Eggert  <eggert@twinsun.com>
12388         * nroff/nroff.man: -S is safer, not safe.
12390         * groff/groff.cc (main): Use `safer', not `safe', in variable
12391         names.  This does not change the behavior.
12393         * troff/input.cc (main): Likewise.
12395         * nroff/nroff.sh: Likewise.
12397         * troff/input.cc (prepend_string): New function.
12398         (main): Prepend -msafer, so that we check macro libraries for
12399         safety.
12401         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
12403 Version 1.14 released
12404 =====================
12406 1999-12-26  Werner LEMBERG  <wl@gnu.org>
12408         * NEWS, VERSION: Changed to 1.14.
12410 1999-12-24  Werner LEMBERG  <wl@gnu.org>
12412         * refer/refer.cc: Fixing the last fix.
12414 Version 1.13 released
12415 =====================
12417 1999-12-23  Werner LEMBERG  <wl@gnu.org>
12419         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
12420         number disappear.
12422         * NEWS: Updated.
12424         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
12426         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
12427         document conventions, the version number must be a real.
12429 Version 1.12.1 released
12430 =======================
12432 1999-12-22  Werner LEMBERG  <wl@gnu.org>
12434         * VERSION: Changed to 1.12.1.
12436 1999-12-22  Alan Rooks  <arooks@istar.ca>
12438         * refer/refer.cc (do_file): Slight modification to satisfy the
12439         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
12440         UnixWare 7.1.
12442 1999-12-20  Werner LEMBERG  <wl@gnu.org>
12444         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
12445         notices.
12447         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
12448         list of unsafe requests.
12450         * pic/pic.man: Fixed a typo.
12452         * man/groff_out.man: Fixed a typo.
12454 1999-12-18  Werner LEMBERG  <wl@gnu.org>
12456         * Makefile.in: Doc fixes.
12458 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
12460         * groff/groff.cc: Missing `U' option added to getopt().
12462         * troff/troff.man: Missing `U' option added to synopsis.
12464 Version 1.12 released
12465 =====================
12467 1999-12-14  Werner LEMBERG  <wl@gnu.org>
12469         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
12470         to the synopsis.
12472         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
12473         with the more appropriate terms `safer' and `unsafe'.
12475         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
12476         sys_nerr and sys_errlist[].
12478         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
12480         * pic/pic.y, pic/pic.cc: Added check for fmod().
12482 1999-12-13  Werner LEMBERG  <wl@gnu.org>
12484         * VERSION: Changed to 1.12.
12486         Here some patches from various sources; most of them taken from
12487         the Debian distribution.
12489         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
12490         tmac/Makefile.sub: New files copied directly from the NetBSD
12491         distribution.  Probably, some additional adaptation later on is
12492         necessary...
12494         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
12495         of unsafe requests.
12497         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
12498         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
12499         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
12500         (`-S') is now the default.
12502         * README, NEWS: Updated.
12504 1999-12-09  Werner LEMBERG  <wl@gnu.org>
12506         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
12508         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
12510 1999-12-06  Werner LEMBERG  <wl@gnu.org>
12512         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
12513         grief than relief today.  Additionally, it is against the GNU
12514         coding standards.
12516         * configure: Recreated.
12518 1999-12-05  Werner LEMBERG  <wl@gnu.org>
12520         * configure.in: Added GROFF_LIBM.
12522         * configure: Recreated.
12524         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
12525         necessary.
12527         * Makefile.in: Added definition of $(LIBM).
12529         * Makefile.comm (LIBM): Removed.
12531         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
12533 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
12535         * doc/Makefile: Added rule for generation pic.html.
12537         (clean): Files produced by grohtml will be removed also.
12539         * doc/pic.ms: Small fix.
12541         * tmac/tmac.html: Fixed suppression of headers.
12543 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
12545         * tmac/tmac.html: Fixing horizontal arrows.
12547         Turning off hyphenation.
12549         * tmac/tmac.an: Improved support for grohtml; better indentation,
12550         no footers/headers.
12552 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
12554         * tmac/tmac.arkup: Added CDFTP macro
12556         * tmac/tmac.html: All headers are turned off for ms, me, and mm
12557         macros.
12559         * tmac/troffrc: Some additions for HTML stuff.
12561 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
12563         * tmac/tmac.html: Small changes.
12565 1999-09-26  Werner LEMBERG  <wl@gnu.org>
12567         * doc/groff.texinfo: Minor fixes.
12569 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
12571         * devhtml/TR: Changed spacewidth to 3.
12573         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
12575         * tmac/tmac.html: Moved markup macros to tmap.arkup.
12577         * tmac/tmac.arkup: New file.
12579         * grohtml/ChangeLog: New file.
12581 1999-09-16  Werner LEMBERG  <wl@gnu.org>
12583         * doc/groff.texinfo (Common Features): Added Copying chapter.
12584         Changed format to @smallbook.
12586 1999-09-15  Werner LEMBERG  <wl@gnu.org>
12588         * NEWS: Added info about groff.texinfo.
12590         * doc/groff.texinfo: Will now compile (using texi2dvi) without
12591         warning messages.
12593 1999-09-14  Werner LEMBERG  <wl@gnu.org>
12595         * groff/groff.man: More updates.
12597 1999-09-13  Werner LEMBERG  <wl@gnu.org>
12599         * doc/groff.texinfo: New file.  This manual is still very
12600         rudimentary.  It has been originally contributed by Trent
12601         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
12602         additions by me.
12604         * INSTALL: Added information about the `doc' subdir
12606         * troff/troff.man: Minor fixes.
12608         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
12609         reordered options.
12611         * troff/input.cc (usage): Added missing `-ffam' to usage message.
12613         * Makefile.in (dist): groff-$(version).tar.gz must be removed
12614         also, otherwise it is included itself in another call of `make
12615         dist'.
12617         * groff/groff.cc (synopsis): Removed superfluous space.
12619         * PROJECTS, PROBLEMS, NEWS: Updated.
12621         * VERSION: Updated to 1.12beta.
12623         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
12625         * README: Updated: Included documentation about CVS repository,
12626         mailing lists, and daily snapshots.
12628         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
12630 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
12632         * tmac/tmac.an: If the tag didn't fit into the space that the
12633         macro `TP' specifies, the rest of the tag went into the space for
12634         the next line.
12636 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
12638         * grolj4/lj4.cc: Added duplex printing (option `-d').
12640         * grolj4/grolj4.man: Document duplex printing.
12642 1999-09-12  Werner LEMBERG  <wl@gnu.org>
12644         * doc/Makefile (pic.ps): Fixed rule which caused problems with
12645         non-GNUish sed programs.
12647         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
12648         definition.
12650         * configure.in (LIBS): Added `-lc'
12652         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
12654         * pic/tex.cc (solid_arc): Casting M_PI to double.
12656         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
12658         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
12659         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
12660         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
12662         * groff/groff_man.man: New file.  This manual page was originally
12663         written for the Debian GNU/Linux system by Susan G. Kleinmann
12664         <sgk@debian.org>.
12666         * eqn/list.cc (list_box::compute_metrics,
12667         list_box::compute_sublist_width): Removed variable declaration to
12668         avoid shadowing warnings.
12670         * grops/psrm.cc (resource_manager::process_file): Ditto.
12672         * tfmtodit/tfmtodit.cc (main): Ditto.
12674         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
12675         to avoid shadowing warnings.
12677         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
12678         shadowing loop variable.
12680         * groff/groff.man, troff/troff.man: Added doc about grohtml.
12682 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
12684         New grohtml frontend to convert groff input to html.
12686         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
12688         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
12690         * tmac/eqnrc: Added html device.
12692         * tmac/tmac.html: New file.
12694         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
12695         (troff_output::start_picture, troff_output::finish_picture),
12696         tbl/main.cc (process_input_file):
12697         Surrounded output with `graphics_start' and `graphics_end' so that
12698         the html driver can identify non-text portions.
12700         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
12701         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
12702         grotty/tty.ps (tty_printer::set_char): Additional parameter
12703         `name'.
12705         * include/printer.h: Class printer: New function
12706         set_char_and_width; new variables (is_char_named, is_named_set,
12707         named_command, named_char_s, named_char_n) to hold information
12708         about named characters -- needed by the html driver.
12710         * libdriver/printer.cc (printer::set_ascii_char,
12711         printer::set_special_char): Use set_char_and_width.
12713         * devhtml/*: New device files for html driver.
12715         * grohtml/*: New driver grohtml.
12717 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
12719         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
12720         default strings.
12722 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
12724         * libgroff/string.cc (search): Small fix to test against NULL
12725         pointer.
12727 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
12729         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
12730         \b'abc') were stacked in reverse order when processed in a
12731         diversion.
12733         * troff/node.h: Added `*last' to struct `node' to make the above
12734         fix work.
12736         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
12737         The default scale for the 'f' and 't' graphics functions were 'm'
12738         rather than 'u' (i.e., no scaling).
12740 1999-09-11  Peter Miller  <peterm@jna.com.au>
12742         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
12743         do_file), soelim/soelim.man: Added `-I file' option to soelim,
12744         defining include paths.
12746         * soelim/soelim.cc (include_path_append): New function.
12748 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
12750         * tbl/main.cc (process_options): Unix (at least Documenter's
12751         Workbench) tbl allows arbitrary non-alpha characters between
12752         options.
12754 1999-09-11  Paul Eggert  <eggert@twinsun.com>
12756         Y2k fixes.  Don't assume that the current year precedes 2000.
12758         * doc/meref.me: Add \n(y2, \n(y4.
12760         * tmac/doc-common (Yr): New number register.
12761         (Dd): Don't assume current year precedes 2000.
12763         * tmac/tmac.e (td): Likewise.
12764         (y2, y4): New number registers.
12766         * pic/pic.man: Update reference for pic paper to May, 1991
12767         version.
12769 1999-09-11  Werner LEMBERG  <wl@gnu.org>
12771         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12772         Removed quotation marks which prevented correct expansion of
12773         $(tmac_wrap).
12775         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
12777 1999-09-10  Werner LEMBERG  <wl@gnu.org>
12779         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
12780         `config.cache'.
12782         * Removed configure.old.
12784 1999-08-31  Werner LEMBERG  <wl@gnu.org>
12786         * VERSION: Updated to 1.11.1
12788 1999-05-27  Werner LEMBERG  <wl@gnu.org>
12790         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
12792         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12793         added quotations around $(tmac_wrap) to avoid syntax error if
12794         variable is empty.
12796         * configure: Newly generated using autoconf 2.13.
12798         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
12800 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
12802         * README, PROJECTS, NEWS, INSTALL, VERSION, 
12803         doc/Makefile. doc/pic.ms, groff/groff.man:
12804         Prepare for 1.11 release.  No code changes.
12805         Documentation for pic added (doc/pic.ms).
12807 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
12809         * Version 1.10 released.
12811 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
12813         * afmtodit/afmtodit.pl: Avoid comment on first line.
12815 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
12817         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
12818         * configure.in: Call it.
12820         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
12821         (distfiles): Doesn't depend on config.log or config.cache.
12823 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
12825         * grog/grog.sh: Use print "" rather than print in END rule.
12827 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
12829         * tbl/main.cc (process_data): Don't give error for excess data
12830         entries that are comments.
12832 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
12834         * tbl/main.cc (process_data): Fix case where new for-scope rules
12835         silently change meaning of code.
12837 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
12839         * troff/env.cc (hyphenate): Loop over all consecutive sequences
12840         of non-zero hyphenation codes.
12842 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
12844         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
12846 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
12848         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
12850 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
12852         * tmac/tmac.andoc: Make it work in compatibility mode.
12854         * refer/token.h (token_info::is_range_sep): New function.
12855         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
12856         * refer/ref.cc (reference::output): More sophisticated check for
12857         multiple pages.
12859         * devps/prologue.ps (MANUAL): New procedure.
12860         * grops/ps.cc (main): New -m option.
12861         (usage): Include -m.
12862         (ps_printer::~ps_printer): Implement -m.
12864         * aclocal.m4 (GROFF_G): New macro.
12865         * configure.in: Call it.
12866         * Makefile.in (g): Provided by configure.
12868         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
12870         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
12871         translations.
12873         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
12874         (tmac_m, tmac_s): Deleted.
12875         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
12876         tmac_s_prefix): New variables.
12877         (MDEFINES): Change accordingly.
12878         * Makefile.comm (.man.n): Use new TMAC_* variables.
12879         * configure.in (GROFF_TMAC): Call.
12880         * aclocal.m4 (GROFF_TMAC): Define.
12881         * tmac/Makefile.sub (stamp_wrap): New target.
12882         (install_data, uninstall_sub): Handle macro wrapping.
12884 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
12886         * tbl/main.cc (main): Ignore -T option.
12888 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
12890         * devlj4/generate/special.map: Add definition of \(nb.
12892         * tmac/tmac.dvi: Add definition of \(nb.
12894         * troff/dictionary.c (dictionary::dictionary): association::v gets
12895         initialized by association::association.
12897         * tmac/Makefile.sub: Avoid using temporary files when installing.
12899         * troff/env.cc (environment::set_font): Make bad font number a
12900         warning.
12902         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
12904         * Makefile.in (datadir): Use share rather than lib.
12906         * groff/groff.cc (basename): Rename to xbasename.
12908 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
12910         * Makefile (CCLIBS): Don't use.
12911         * Makefile.ccpg: Likewise.
12913         * acgroff.m4: Rename to...
12914         * aclocal.m4: Modify extensively for autoconf 2.
12915         * configure.in: Likewise.
12916         * Makefile.in: Likewise.
12918         * groff/pipeline.c (const): Declare as empty if __STDC__ not
12919         defined.
12920         (xstrsignal): Check for definition of NSIG. Conditionalize
12921         on SYS_SIGLIST_DECLARED.  Make return type const.
12923 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
12925         * troff/input.cc (interpolate_macro): Rephrase missing space
12926         warning.
12928 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
12930         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
12931         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
12932         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
12933         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
12934         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
12935         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
12936         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
12937         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
12938         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
12939         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
12940         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
12941         Fix 'for' scoping.
12943 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
12945         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
12946         string_iterator.
12947         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
12948         file.
12949         (macro_iterator::macro_iterator): Add additional argument.
12951 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
12953         * troff/div.cc (vertical_size::vertical_size): In place of integer
12954         specifying line spacing use cunits specifying post vertical
12955         space.
12956         (macro_diversion::output, top_level_diversion::output): Likewise.
12957         * troff/div.h: Change declarations accordingly.
12958         * troff/env.cc (pending_output_line): Replace ls field by post_vs
12959         field.
12960         (pending_output_line::pending_output_line,
12961         pending_output_line::output, environment::output,
12962         environment::output_line, environment::output_title,
12963         environment::hyphenate_line):  In place of
12964         integer specifying line spacing use cunits specifying post vertical
12965         space.
12966         (environment::environment): Add post_vertical_spacing and
12967         prev_post_vertical_spacing arguments.
12968         (environment::get_post_vertical_spacing): New function.
12969         (environment::total_post_vertical_spacing): New function.
12970         (environment::post_vertical_spacing): New function.
12971         (init_env_requests): Initialize pvs request and .pvs register.
12972         * troff/env.h: Change declarations.
12974 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
12976         * tmac/tmac.pspic: Immediately remove the temporary file.
12978 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
12980         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
12981         height is specified.
12983 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
12985         * tbl/table.c (struct vertical rule, class table_entry): Use int
12986         not short for start_row and end_row.
12988 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
12990         * troff/input.cc (trapping_blank_line, blank_line_macro): New
12991         functions.
12992         (diverted_space_node::reread, process_input_stack): Call
12993         trapping_blank_line() rather than blank_line().
12994         (init_input_requests): Bind "blm" to blank_line_macro().
12996         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
12998 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
13000         * troff/env.cc (environment::possibly_break_line): Require that
13001         width total excluding width of final space node be greater than
13002         the target text length.
13004 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
13006         * troff/node.cc (kern_pair_node::vertical_extent): New function.
13008 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
13010         * troff/node.cc (charinfo_node): New class.
13011         (glyph_node, composite_node): Derive from charinfo_node.  Change
13012         member functions accordingly.
13014 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
13016         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
13018 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
13020         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
13022         * devps/generate/textmap (notsubset): Add.
13024         * tmac/tmac.a4: New file.
13026 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
13028         * pic/main.cc (had_parse_error): New variable.
13029         (do_picture, do_whole_file): Set had_parse_error if yyparse()
13030         returns non-zero.
13031         (main): Return 1 if had_parse_error is true.
13033 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
13035         * grolj4/lj4.cc (main): Avoid use of strtoul.
13037 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
13039         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
13040         iso_8859_1 or $LESSCHARSET is latin1.
13042 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
13044         * hpftodit: New directory.
13045         * Makefile.in (CCPROGDIRS): Add hpftodit.
13046         * devlj4/generate: New directory.
13048 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
13050         * configure.in: Don't use AC_VFORK.
13051         * groff/pipeline.c (run_pipeline): Use fork() always.
13053 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
13055         * grops/ps.cc (main): Use %1 not %s in error message for -w.
13057         * Makefile.in (CCPROGDIRS): Add grolj4.
13058         (DEVDIRS): Add devlj4.
13059         * grolj4, devlj4: New directories.
13060         * tmac/troffrc: Handle lj4.
13061         * tmac/tmac.lj4: New file.
13063 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
13065         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
13067 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
13069         * troff/input.cc (do_if_request): At end of second string, switch
13070         environments before getting next token.
13072 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
13074         * devps/psstrip.sed: Split rule that strips whitespace on either
13075         side of delimiters.
13077 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
13079         * troff/node.h (font_family::make_definition): Add return value to
13080         declaration.  * troff/symbol.h (symbol::operator==,
13081         symbol::operator!=): Likewise.
13083 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
13085         * groff/groff.cc (main, help, synopsis): Handle -S.
13086         (possible_command::insert_arg): New function.
13088         * tmac/tmac.safer: New file.
13089         * tmac/msafer.man: New file.
13090         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
13092 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
13094         * pic/pic.h, pic/main.cc (safer_flag): New variable.
13095         * pic/pic.y (placeless_element): Avoid unsafe operations if
13096         `safer_flag' is set.
13097         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
13099 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
13101         * eqn/lex.cc (get_token): Put call to add_context() in block to
13102         work around Sun C++ 4.0 bug.
13104         * include/stringclass.h (operator +): Use ?: instead of `if' to
13105         work around Sun C++ 4.0 bug.
13107 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
13109         * tbl/main.cc (process_format): Accept - as a synonym for the _
13110         key letter.
13112         * libbib/index.cc (minus_one): Don't declare as const.
13114 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
13116         * troff/input.cc (get_char_for_escape_name): Push back a newline.
13118 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
13120         * troff/input.cc (write_macro_request): New function.
13121         (init_input_requests): Bind write_macro_request to writem.
13123 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
13125         * tmac/tmac.s (@EN): Turn filling back on even if there was no
13126         equation.
13128         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
13130         * tmac/tmac.s (@TS): Renamed from TS.
13131         (TS): Call LP then TS again.
13132         (cov*ab-init): Alias @TS to TS.
13134         * tmac/tmac.s: Allow QP or RS to initialize.
13136         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
13137         Move initializations of PS and LL here.
13138         (par@init): Don't initialize HY.  Avoid changing environment 0.
13139         (par*env-init): Don't all par@reset.
13141 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
13143         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
13145 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
13147         * Makefile.in (MDEFINES): Add LDFLAGS.
13148         (LDFLAGS): Add definition line.
13150 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
13152         * troff/input.cc (get_optional_char): Split off error check into...
13153         (check_missing_character): New function.
13154         * troff/token.h: Declare it.
13155         * troff/env.cc (margin_character): Don't call get_optional_char.
13156         Only call tok.next() after making the node.
13158         * include/lib.h (getopt): Make 2nd argument char *const *.
13160 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
13162         * nroff/conftest.sh: Deleted.
13164 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
13166         * pic/make-dos-dist: Deleted.
13168 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
13170         * devps/psstrip.sed: Strip comments before stripping trailing
13171         white space.
13173 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
13175         * Version 1.09 released.
13177 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
13179         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
13181 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
13183         * libgroff/font.cc (font::load_desc): Fix typo in error message.
13185 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
13187         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
13188         about returning without a value.
13190         * troff/charinfo.h (charinfo::get_special_translation): Cast
13191         TRANSLATE_NONE to int.
13193         * refer/token.cc (lookup_token, store_token): Remove bogus loop
13194         test.  Fix test so that it works with n unsigned.
13196         * pic/pic.y (defaults_table): Fully bracket initializer.
13197         * pic/lex.cc (lookup_keyword): Likewise.
13198         * eqn/lex.cc (token_table, def_table): Likewise.
13199         * eqn/box.cc (param_table): Likewise.
13200         * troff/input.cc (warning_table): Likewise.
13201         * libgroff/font.cc (table): Likewise.
13202         * grops/ps.cc (ps_printer::special): Likewise.
13203         * grops/psrm.cc (resource_manager::process_file): Likewise.
13204         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
13205         * refer/command.cc (command_table): Likewise.
13206         * addftinfo/addftinfo.cc (param_table): Likewise.
13208         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
13209         about temp's being unused.
13210         (unused): New function.
13212         * groff/pipeline.cc: Declare c_fatal.
13214         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
13215         uchar.
13217         * libbib/index.cc (index_search_item::load): Prevent compiler
13218         warnings about fd_closer's being unused.
13219         (unused): New function.
13221 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
13223         * troff/input.cc (copy_mode_error): Make `prefix' static.
13224         Fix typo.
13226         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
13227         defined.
13228         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
13229         HAVE_CC_OSFCN_H and modify accordingly.
13231         * troff/input.cc (init_charset_table): radicalex overlaps
13232         horizontally.
13234         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
13235         udodo!hans@relay.NL.net).
13236         * groff/configure.in: Call it.
13238         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
13239         * groff/configure.in: Call it.
13240         * include/lib.h: Conditionalize declaration of pclose.
13242         * troff/div.cc (last_page_number): New global variable.
13243         (top_level_diversion::begin_page): Exit if we just printed the
13244         last page.
13245         * troff/div.h (last_page_number): Declare it.
13246         * troff/input.cc (parse_output_page_list): Set last_page_number.
13248         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
13249         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
13250         tmac/tmac.X: Likewise.
13251         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
13252         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
13254 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
13256         * tmac/doc-ditroff (hK): Remove groff specific code which
13257         prevented page-breaks between separate manual entries.  If this is
13258         the first page, don't set the page number to 1.
13260         * acgroff.m4 (GROFF_POSIX): New macro.
13261         * configure.in: Use it.
13263         * troff/node.cc (class real_output_file,
13264         real_output_file::real_output_file,
13265         real_output_file::~real_output_file): Conditionalize use of
13266         popen/pclose on POPEN_MISSING.
13267         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
13268         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
13269         (pipe_source): Similarily.
13271         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
13273         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
13274         presence of declarations by trying to compile example with
13275         conflicting declarations.  (gcc only gives a warning for missing
13276         declarations.)
13278 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
13280         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
13281         (from Ulrich Lauther).
13283 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
13285         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
13287 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
13289         * indxbib/indxbib.cc (write_hash_table): Add code for case where
13290         pointers and ints have different sizes.
13292 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
13294         * tmac/tmac.s (par*env-init): Call par@reset.
13296 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
13298         * tmac/tmac.s (@IP): Switch to a new environment when diverting
13299         tag.
13300         (par*push-tag-env, par*pop-tag-env): New macros.
13302 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
13304         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
13305         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
13307         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
13308         comment.  Include <time.h>.
13310 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
13312         * grops/ps.cc (is_small_h, is_small_v): Deleted.
13313         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
13314         lines.
13316 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
13318         * troff/input.cc (read_request): Only print a prompt if reading
13319         from the terminal.  Also clearerr on EOF if reading from the
13320         terminal.  Declare isatty.
13322 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
13324         * refer/label.y: Rename map_t to map_func and extractor_t to
13325         extractor_func.
13327 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
13329         * include/assert.h: Don't use volatile.
13330         * libgroff/assert.cc: Likewise.
13332 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
13334         * troff/input.cc (abort_request): Look at character in tok before
13335         calling get_copy().
13337 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
13339         * troff/troff.h (NO_RETURN): Deleted.
13340         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
13341         * troff/input.cc (exit_troff): Likewise
13343         * Makefile.in: Remove `Making ...' messages since GNU make now
13344         gives these. 
13346         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
13348 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
13350         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
13351         to constant 1 inch.
13353 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
13355         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
13357 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
13359         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
13360         MARK_REG if there was no left delimiter.
13362 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
13364         * pic/troff.cc (troff_output::text): Set line thickness to
13365         relative before outputting text.
13367         * tmac/tmac.e (@k): Don't zero ?T.
13368         ((z): Likewise.
13370 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
13372         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
13374 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
13376         * troff/input.cc (decode_args): Warn about unquoted tabs (from
13377         Paul Eggert).
13379 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
13381         * troff/input.cc (ignoring): New variable.
13382         (ignore): Set ignoring during call to do_define_macro.
13383         (do_define_macro): Clear ignoring before interpolating terminating
13384         macro.
13385         (copy_mode_error): New function.
13386         (get_char_for_escape_name, read_long_escape_name,
13387         interpolate_arg): Use copy_mode_error.
13388         (warning_table): Add WARN_IG.
13389         * troff/troff.h (WARN_IG): Declare.
13390         (WARN_TOTAL): Change accordingly.
13392         * groff/pipeline.c (strsignal): Rename to xstrsignal.
13393         * groff/groff.cc (strsignal): Delete declaration.
13395 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
13397         * troff/div.cc (page_offset): Use 'm' as default scaling.
13399 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
13401         * nroff/nroff.sh: Ignore -u.
13403 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
13405         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
13407 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
13409         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
13410         drawing box.
13411         (B2): With -Tascii, leave additional vertical space before
13412         and after. Ensure that the left and right indent is restored to
13413         what it was even if the point size changes.  Don't call
13414         par@finish. Change the indent, line length and title length
13415         directly.  With -Tascii, make the width of the box 1n less.
13416         (B1): Remember 1n at the current point size.  Don't call
13417         par@reset.  Change the indent, line length and title length
13418         directly.  Ensure that the temporary indent is preserved.
13419         (par*box-mark-top): Turn off no spacing mode.
13421 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
13423         * Makefile.in (dist): Use .gz suffix.
13425 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
13427         * troff/input.cc (main): Add return 0.
13428         * pic/main.cc (main): Use return instead of exit.
13429         * tbl/main.cc (main): Likewise.
13430         * eqn/main.cc (main): Likewise.
13431         * grops/ps.cc (main): Likewise.
13432         * grotty/tty.cc (main): Likewise.
13433         * groff/groff.cc (main): Likewise.
13434         * grodvi/dvi.cc (main): Likewise.
13435         * refer/refer.cc (main): Likewise.
13436         * indxbib/indxbib.cc (main): Likewise.
13437         * lkbib/lkbib.cc (main): Likewise.
13438         * soelim/soelim.cc (main): Likewise.
13439         * addftinfo/addftinfo.cc (main): Likewise.
13440         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
13441         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
13443         * troff/token.h (process_input_stack): Don't declare as static.
13444         * troff/input.cc: Likewise.
13446         * troff/node.c (invalidate_fontno): Make it a static member of
13447         class font_family.  Change callers.
13448         * troff/node.c: Change declaration.
13450         * tbl/main.cc (struct input_entry_format): Add explicit public
13451         specifier.
13452         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
13453         struct double_hline_stuff): Likewise.
13454         * tbl/table.h (struct entry_format): Likewise.
13455         * pic/object.h (struct saved_state): Likewise.
13457         * include/stringclass.h: Add forward declarations of friend
13458         functions that are later declared as inline.  Don't include inline
13459         specifier in friend declaration.
13461         * libgroff/lib.h: Declare popen and pclose.
13462         * acgroff.m4 (GROFF_POPEN): New macro.
13463         * configure.in: Call it.
13465         * include/lib.h (PI): New constant. Undef first if necessary.
13466         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
13467         * grops/ps.cc (degrees, radians): Likewise.
13468         * libgroff/font.cc (font::get_skew): Likewise.
13470         * grops/ps.cc (is_ascii): New function.
13471         (ps_output::put_string): Use is_ascii.  Use csprint rather than
13472         isprint.
13473         (ps_printer::define_encoding): Use csspace.
13474         * libgroff/strtol.c (ISASCII): New macro.
13475         (strtol): Cast arguments to is*() and tolower() to unsigned char.
13476         Use ISASCII rather than isascii.
13477         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
13478         * libgroff/cset.cc: Likewise.
13479         * libdriver/input.cc: Include cset.h.
13480         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
13481         than isdigit().
13483         * refer/refer.cc (main): Use %ld rather than %d for longs.
13485         * libbib/index.cc (index_search_item_iterator::get_tag): Use
13486         S_ISREG macro.
13488         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
13490 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
13492         * troff/input.cc (hyphenation_code): Skip white space between
13493         char/code pairs.
13495 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
13497         * tbl/table.h (table::entry_list_tailp): New member.
13498         (table::table): Initialize it.
13499         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
13500         behaviour.
13502 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
13504         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
13505         with negative horizontal positions. Remove casts of glyph::hpos to
13506         int.
13507         (USHRT_MAX): Delete definition.
13508         (SHRT_MAX, SHRT_MIN): New definitions.
13509         (glyph::hpos): Change type to short.
13510         (tty_printer::end_page): Output multiple backspaces if necessary.
13511          Remove casts of glyph::hpos to int.
13512         
13513 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
13515         * tmac/tmac.s (@RT): New definition.
13517 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
13519         * refer/refer.cc (do_file): Make sure current_filename is set when
13520         filename is "-".
13522         * pic/common.cc (common_output::dot_line): Handle zero length
13523         lines.
13525 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
13527         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
13528         (par@init): Initialize \n[HY].
13530 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
13532         * troff/dictionary.cc (dictionary::remove): Continue when
13533         r < j < i.
13535 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
13537         * Makefile.com (.y.cc): Avoid ending up with two versions of
13538         $(YTABH).
13540 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
13542         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
13543         (\(,C): Likewise.  Also fix typo.
13545 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
13547         * lib.h: Delete extraneous semi-colon.
13549         * Add pso request: `so' from a pipe.
13550         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
13551         (file_iterator::close): New function.
13552         (file_iterator::~file_iterator, file_iterator::next_file): Use
13553         file_iterator::close.
13554         (file_iterator::backtrace): Say `process' rather than `file' when
13555         the stream is popened.
13556         (pipe_source): New function.
13557         (init_input_requests): Bind ".pso" to pipe_source.
13559 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
13561         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
13563         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
13564         digits in lower case.
13566 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
13568         * Version 1.08 released.
13570         * Makefile.in (dist): Insert || true after ln -s commands that
13571         might fail.
13573         * mm: Update to mm 1.16.
13575         * acgroff.m4 (GROFF_CSH_HACK): New macro.
13576         * configure.in: Call GROFF_CSH_HACK.  Substitute for
13577         SH_SCRIPT_SED_CMD.
13578         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
13579         MDEFINES.
13580         * nroff/Makefile.sub (nroff): New target.
13581         (install_data): Install nroff.
13582         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
13583         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
13585 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
13587         * eqn/Makefile.sub (neqn): Add chmod +x.
13589         * grog/Makefile.sub (grog): Remove spurious semi-colon.
13591 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
13593         * troff/input.cc (string_iterator::string_iterator()): Initialize
13594         lineno and count.
13596 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
13598         * troff/div.cc (macro_diversion::space,
13599         top_level_diversion::space): Don't set high_water_mark.
13600         (macro_diversion::output, top_level_diversion::output): Don't
13601         include post line space in high water mark.
13603 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
13605         * eqn/eqn.y: Don't define YYDEBUG.
13606         * pic/pic.y: Likewise.
13608 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
13610         * tmac/tmac.e ([3): Add space after comma following editors.
13611         Change double spaces to single spaces.
13612         ([4): Change double spaces to single spaces.
13614         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
13615         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
13616         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
13617         after %!PS-Adobe- (for Newsprint).
13619         * troff/div.cc (top_level_diversion::begin_page): When
13620         before_first_page is 1, set page_number to 1.
13622 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
13624         * eqn/box.cc (box::top_level): Protect equation with \&.
13626 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
13628         * groff/groff.cc (possible_command::set_name): Delete old name.
13630         * groff/groff.cc (possible_command::~possible_command): Use
13631         a_delete.
13633         * troff/node.cc (troff_output_file::begun_page): New member.
13634         (troff_output_file::troff_output_file): Initialize it.
13635         (troff_output_file::really_begin_page): Only output V command if a
13636         page has been begun.
13638         * pic/pic.y (placeless_element): Delete argument to PRINT after
13639         use.
13641 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
13643         * Make wrapman work.
13644         * troff/div.h (class top_level_diversion): Replace
13645         first_page_begun by before_first_page (with opposite sense).
13646         * Change first_page_begun to before_first_page inverting sense.
13647         * troff/div.cc (class nl_reg): New class.
13648         (init_div_requests): Use class nl_reg for \n(nl.
13649         (top_level_diversion::begin_page): Don't call
13650         output_file::begin_page if before_first_page is 2;
13651         reset before_first_page afterwards.  If have_next_page_number is
13652         false, then always increment page_number.
13653         * tmac/tmac.an: Set traps within TH rather than at the top-level.
13654         Restore compatibility mode after loading, and then disable
13655         compatibility mode in TH.
13657 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
13659         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
13660         past last line.
13661         * troff/node.h (output_file::trailer): Declare.
13662         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
13663         * troff/node.cc (output_file::trailer): New function.
13664         (troff_output_file::~troff_output_file): Move most code into...
13665         (troff_output_file::trailer): New function.
13666         (class troff_output_file): Delete page_length member. Declare
13667         trailer().
13668         (troff_output_file::really_begin_page): Use current page length
13669         for final V command.
13671         * tbl/main.cc (struct options): New decimal_point_char member.
13672         (options::options): Initialize this.
13673         (process_options): Implement decimalpoint option.
13674         (process_data): Pass decimal_point_char option to table::table.
13675         * tbl/table.h (class table): New decimal_point_char member.
13676         (table::table): Add additional argument.
13677         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
13678         second argument specifying decimal point character.  Use this
13679         instead of '.'.
13680         (table::table): Initialize decimal_point_char.
13681         (table::add_entry): Change call to find_dot.
13683         * troff/input.cc (get_copy, token::next): Implement \V.
13684         (interpolate_environment_variable): New function.
13686 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
13688         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
13689         * pic/pic.y: Likewise.
13691         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
13692         Add casts to int.
13693         * refer/ref.cc (reference::insert_field, reference::delete_field):
13694         Likewise.
13695         * troff/number.cc (parse_term): Likewise.
13697         * acgroff.m4 (GROFF_PROG_YACC): New macro.
13698         * configure.in: Use GROFF_PROG_YACC.
13700         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
13701         and g++.
13702         * Makefile.in (OPTIMIZE): New define.
13703         (DEBUG): Empty by default.
13704         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
13706         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
13707         (GROFF_ARRAY_DELETE): Likewise.
13708         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
13710         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
13712         * devps/psstrip.sed: Use different delimiter on last line (so that
13713         it works with BSD 4.4 sed.)
13715 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
13717         * devps/psstrip.sed: Delete comments.
13719         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
13720         optind, opterr, optarg.
13721         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
13722         opterr, optarg.
13724 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
13726         * Makefile.in (check): Dummy target.
13728 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
13730         * Version 1.07 released.
13732         * Integrate mm 1.11.
13734         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
13735         where start_col was meant.
13737 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
13739         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
13741 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
13743         * troff/input.cc (token::next): Make \z\o'...' and similar things
13744         work.
13746         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
13747         constants.
13748         (environment): Add margin_character_flags member.
13749         * env.cc (environment::environment(symbol),
13750         environment::environment(const environment *): Initialize
13751         margin_character_flags.
13752         (margin_character): Rewrite.
13753         (environment::output_line): Add a margin character if
13754         margin_character_flags is non-zero.  Turn off the
13755         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
13756         zero, use margin_character_node without copying and then set
13757         margin_character_node to 0.
13759         * devps/DESC.in: Change minimum size to 1000.
13761 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
13763         * troff/symbol.h (symbol::hash): Change return type to unsigned
13764         long.
13765         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
13766         Add casts to int.
13768         * test-groff: Use -r rather than -x.
13770         * grops/psfig.diff: Include in distribution again.
13772 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
13774         * Makefile.in (dist): Use gzip.
13776 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
13778         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
13779         unistd.h as well as in stdlib.h.
13780         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
13781         defined; otherwise include <sys/types.h> and <unistd.h> if
13782         UNISTD_H_DECLARES_GETOPT is defined.
13784         * configure.in: use builtin(include, ... rather than include(...
13785         * configure: Regenerate with autoconf 1.3.
13787         * libdriver/print.cc (printer::adjust_arc_center): Use new
13788         algorithm suggested by Andy Fyfe.
13790         * libdriver/printer.cc (printer::adjust_arc_center): New function.
13791         * include/printer.h: Declare this.
13792         * grops/ps.cc (ps_printer::draw): Use it.
13793         * grodvi/dvi.cc (dvi_printer::draw): Use it.
13795 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
13797         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
13799 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
13801         * eqn/main.cc (main): Handle "eqn -".
13803 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
13805         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
13807         * mm: Integrate version 1.08.
13809         * pic/troff.cc (troff_output::finish_picture): Set
13810         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
13811         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
13812         if it's not defined. Check whether the register is non-zero rather
13813         than whether it's not defined.
13814         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
13816         * indxbib/indxbib.cc: Move all signal handling into...
13817         * indxbib/signal.c: New file.
13818         * configure.in: Call AC_RETSIGTYPE.
13820         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
13821         * configure.in: Call GROFF_STRUCT_EXCEPTION.
13822         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
13824         * troff/input.cc (token::token, token::operator=): Work round SGI
13825         C++ bug.
13826         * pic/object.cc (position::position): Likewise.
13828 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
13830         * pic/pic.h: Move declaration of hypot().
13832 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
13834         * pic/pic.h: Declare hypot().
13836         * pic/pic.h: Define M_PI if necessary.
13838 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
13840         * tmac/tmac.e (re): Add alternative version that doesn't use groff
13841         `.ta T' feature.
13843         * devps/prologue.ps (RE): Handle the possibility that the old font
13844         doesn't have a FontName entry.
13846 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
13848         * tmac/tmac.e (fam): Redefine to set family in environment 2.
13849         (@C): Use @fam not fam.
13851 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
13853         * lookbib/lookbib.cc (main): Change type of start to const char *.
13854         * lkbib/lkbib.cc (main): Likewise.
13856         * eqn/lex.cc (definition::definition): Don't use member
13857         initializer syntax for members of anonymous unions.
13859         * troff/input.cc (input_stack::backtrace): Change type of to const
13860         char *.
13862 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
13864         * include/stringclass.h (class string): Declare inline friend
13865         functions as inline in class declaration.
13866         * troff/hvunits.h (class hunits, class vunits): Likewise.
13867         * include/refid.h (class reference_id): Likewise
13868         * troff/troff.h (points_to_units(units), scale(units, double)):
13869         Delete declarations.
13870         * libdriver/input.cc (get_char): Delete declaration.
13871         * include/lib.h: Change 2nd argument of getopt from const char **
13872         to char **.
13873         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
13874         char **' before assigning to a `const char **'.
13875         * tbl/table.cc: Delete extra declarations of prints().
13877 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
13879         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
13880         char **' before assigning to a `const char **'.
13882         * libgroff/errarg.cc (errarg::errarg): Don't use member
13883         initializer syntax for members of anonymous unions.
13885 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
13887         * mm: Integrate version 1.07.
13889 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
13891         * troff/input.c (translate2): Rename to
13892         (translate_no_transparent).
13893         (init_input_requests): Rename tr2 to trnt.
13895 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
13897         * troff/charinfo.h (class charinfo): Add transparent_translate field.
13898         (charinfo::set_translation, charinfo::set_special_translation):
13899         Add second argument that specifies value for
13900         transparent_translate.
13901         (charinfo::get_translation, charinfo::get_special_translation):
13902         Add optional second argument that specifies whether translation is
13903         being used for transparent throughput.
13904         * troff/input.cc (charinfo::set_translation,
13905         charinfo::set_special_translation): Handle second argument.
13906         (charinfo::charinfo): Initialize transparent_translate.
13907         (translate): Split main part off into
13908         (do_translate): New function.  Pass argument saying whether
13909         translation applies to transparent throughput.
13910         (translate2): New request.
13911         (init_input_requests): Bind translate2 to `tr2'.
13913 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
13915         * tbl/table.h (class table): Add `nokeep' flag.
13916         * tbl/main.cc (process_options): Handle `nokeep' option.
13917         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
13918         table::do_bottom): Don't output keep/release macro definitions or
13919         calls when `nokeep' option has been specified.
13921 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
13923         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
13925 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
13927         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
13928         block_entry::divert, alphabetic_block_entry::divert): Add extra
13929         argument giving column separation.
13930         (table::compute_widths): Pass column separation to
13931         table_entry::divert().
13932         (block_entry::do_divert): If an entry spans multiple columns and a
13933         minimumum width has been specified for each column, then set the
13934         line length to the sum of the widths (plus possibly the column
13935         separations).
13937         * troff/input.cc (set_escape_char): Don't set the escape_char
13938         until after calling has_arg().
13940 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
13942         * tbl/table.cc (table::do_top): Add missing \s0 for double box
13943         case.
13945         * tbl/table.cc (table::print_double_hline): Avoid extra new line
13946         in case where r > nrows - 1.
13948         * tbl/table.cc (BODY_HEIGHT): Deleted.
13949         (LINE_SEP): New definition.
13950         (table::print_single_hline, table::print_double_hline,
13951         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
13952         table::do_row, table::do_top): Use LINE_SEP space before a line
13953         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
13955         * tbl/table.cc (text_entry::print_contents): New function.
13956         (text_string_name, right_text_string_name): Deleted.
13957         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
13958         (simple_text_entry::do_width, numeric_text_entry::do_width,
13959         alphabetic_text_entry::do_width): Don't store the contents of the
13960         entry in a string.
13961         (left_text_entry::simple_print, right_text_entry::simple_print,
13962         center_text_entry::simple_print,
13963         alphabetic_text_entry::simple_print,
13964         numeric_text_entry::simple_print): Print the entry directly
13965         instead of using the stored string.
13967 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
13969         * devps/Makefile: Strip PostScript files.
13970         * devps/prologue: Rename to...
13971         * devps/prologue.ps.
13972         * devps/psstrip.sed: New file.
13973         * devps/download: Use .pfa rather than .ps for installed versions
13974         of fonts.
13976 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
13978         * troff/env.cc (input_trap): Give a warning if the argument is out
13979         of range.
13981         * troff/env.cc (adjust): Treat negative argument as missing. Round
13982         argument > 5 down to 5.
13984         * troff/env.cc (center, right_justify): Make negative argument zero.
13986         * troff/div.cc (page_offset, vertical_position_traps): Treat
13987         invalid argument as missing.
13988         * troff/env.cc (line_spacing, line_length, title_length, indent,
13989         underline, hyphen_line_max_request, control_char,
13990         no_break_control_char, widow_control_request, adjust, input_trap,
13991         point_size): Likewise.
13992         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
13993         constant_space): Likewise.
13994         * troff/input.cc (compatible, shift, warn_request,
13995         set_escape_char): Likewise.
13997         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
13998         * tbl/table.cc (table::table): Likewise.
14000         * Makefile.dev (install_dev): depends on $(DEVFILES).
14002 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
14004         * devX75, devX75-12, devX100, devX100-12: New directories.
14005         * Makefile.in: Add these to DEVDIRS.
14007         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
14008         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
14009         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
14010         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
14011         targets.
14012         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
14013         (uninstall): New target.
14014         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
14015         uninstall_prog, uninstall_dev): New targets.
14017         * troff/div.cc (return_request): Treat an invalid argument as
14018         missing.
14020 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
14022         * tmac/tmac.e ((f): Set up the environment even when there's a
14023         current diversion.  Transperently throughput a call to @N.
14024         (@N): New macro.
14026 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
14028         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
14029         up to vertical resolution.
14031         * tbl/table.cc (table::do_row): Change row number after printing
14032         stuff list.
14034         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
14036 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
14038         * Rename CHANGES to NEWS.
14040 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
14042         * libgroff/new.cc (operator new): Avoid calling malloc(0).
14044 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
14046         * man.ultrix: Removed.
14048 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
14050         * Makefile.comm (extraclean): Delete files whose names begin with
14051         `='.
14053         * pic/troff.cc (troff_output::text): Fix typo in implementation of
14054         aligned text.
14056 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
14058         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
14059         * troff/div.cc (page_length, need_space, space_request): Treat
14060         invalid optional argument as missing.
14061         * troff/env.cc (number_lines): If the first argument is present
14062         but not a number, turn on line numbering, don't change the next
14063         line number and parse the remaining arguments.
14065         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
14067 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
14069         * eqn/box.h: Change declaration accordingly.
14070         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
14071         the specified size was bad but don't give an error.  Check for
14072         overflow.
14073         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
14074         * eqn/lex (do_size): Likewise.
14076 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
14078         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
14079         compatible headers.
14081 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
14083         * tbl/table.cc (table::init_output): Improve error message when
14084         table won't fit on one page.
14086 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
14088         * pic/troff.cc (troff_output::start_picture): Generate line
14089         containing a horizontal motion equal to the width of the picture.
14091         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
14092         using GROFF_COMMAND_PREFIX environment variable.
14094 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
14096         * mdate.sh: Use $NF rather than $(NF).
14098 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
14100         * pic/main.cc (main):  Use %1 not %c in argument to warning.
14102         * eqn/main.cc (main): Output code to check that geqn was given the
14103         correct -T option.
14105 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
14107         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
14108         `ln -s ../Makefile .; make; rm -f Makefile'.
14110         * troff/hyphen: Rename to...
14111         * troff/hyphen.us:
14112         * troff/input.cc (main): Delete -H option. Don't call
14113         read_hyphen_file().
14114         * troff/env.cc: Include searchpath.h and macropath.h.
14115         (exception_dictionary): Deleted.
14116         (ht): Deleted.
14117         (read_hyphen_file): Deleted.
14118         (hyphenation_language): New struct.
14119         (class trie, class hyphen_trie): Move declarations up.
14120         (trie_node::~trie_node): Deleted.
14121         (trie::delete_trie_node): New function.
14122         (trie::do_delete): New pure virtual function.
14123         (hyphen_trie::do_delete): New function.
14124         (trie::~trie): New function.
14125         (hyphen_trie::~hyphen_trie): New function.
14126         (trie::clear): No need to chcek that tp is not 0.
14127         (current_language, language_dictionary): New variables.
14128         (hyphen_word): Give an error if no current language.  Use
14129         exceptions dictionary in current language.
14130         (hyphen_trie::read_patterns_file): Find file using macro_path.
14131         Allow comments (starting with %) in patterns file.  Don't make it
14132         a fatal error if the file can't be found.
14133         (hyphenate): Return if no current language.  Get the exceptions
14134         dictionary and the hyphenation patterns from the current language.
14135         (set_hyphenation_language): New variable.
14136         (hyphenation_patterns_file): New function.
14137         (hyphenation_language_reg): New class.
14138         (hyphenation_language_reg::get_string): New function.
14139         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
14140         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
14141         register.
14142         * groff/groff.cc (main, help, synopsis): Delete -H option.
14143         * include/Makefile.sub: Don't define HYPHENFILE.
14144         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
14145         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
14146         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
14147         hyphenation patterns.
14149 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
14151         * eqn/neqn.sh: New file.
14152         * eqn/Makefile.sub: Handle neqn.sh.
14154         * eqn/eqn.h: Declare `nroff' variable.
14155         * eqn/box.cc (param_table): Add `nroff' param.
14156         (nroff): Define it.
14157         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
14158         variable.
14159         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
14161         * troff/troff.h (WARN_FONT): New warning.
14162         (WARN_TOTAL): Change accordingly.
14163         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
14164         (warning_table): Add WARN_FONT.
14165         * troff/node.cc (mount_font_no_translate): Pass argument to
14166         font::load_font.  If this is non-zero, give a warning.
14167         Don't give an error message when accessing a font that has already
14168         been found to be invalid.
14169         * include/font.h (font::load, font::load_font): Add additional
14170         optional argument which suppresses error message if the font is
14171         not found.
14172         * libgroff/font.cc (font::load_font): Handle additional argument.
14173         (font::load): Add additional argument. If this is non-null, set it
14174         to 1 and don't give error message.
14176         * include/printer.h (printer::end_page): Add argument giving
14177         length of page.
14178         * libdriver/input.cc (do_file): Pass this.
14179         * grops/ps.cc (ps_printer::end_page): Add argument.
14180         * grodvi/dvi.cc (dvi_printer::end_page,
14181         draw_dvi_printer::end_page): Add argument.
14182         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
14183         columns_per_page members. New member nlines.
14184         (DEFAULT_LINES_PER_PAGE): Deleted.
14185         (tty_printer::tty_printer): Don't compute lines_per_page from
14186         font::paperlength. Don't compute columns_per_page from
14187         font::paperwidth.
14188         (tty_printer::add_char): Don't check horizontal position against
14189         columns_per_page. Grow glyphs vector if neccessary.
14190         (tty_printer::end_page): Add argument giving page_length in units.
14191         Discard lines past end of page.
14193 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
14195         * tmac/tmac.tty-char: Fix definition of \(/l.
14197         * tmac/tmac.X: Define \(en.
14199 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
14201         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
14202         lpq, then use lp rather than lpr.
14204         * tmac/tmac.s (par@reset): Don't call `ad'.
14205         (par*env-init): Call `ad'.
14207 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
14209         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
14210         date.
14212         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
14213         * indxbib/indxbib.cc: Likewise.
14215 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
14217         * libgroff/putenv.c: New file.
14218         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
14219         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
14220         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
14221         stdlib.h with AC_HAVE_HEADERS.
14223 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
14225         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
14226         does not exist.
14228 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
14230         * eqn/box.cc (gsize): Make it an int.
14231         (set_gsize): Parse argument handling increment or decrement.
14232         (box::top_level): Convert gsize to a string.
14234         * troff/input.cc (exit_troff): Make buf unsigned char [].
14235         Call to make_temp_iterator casts buf to char*.
14237         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
14239         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
14240         * Makefile.cpg (depend.temp): Likewise.
14242         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
14244         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
14246 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
14248         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
14250 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
14252         * Version 1.06 released.
14254         * Integrate mm 1.04.
14256 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
14258         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
14260 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
14262         * afmtodit/afmtodit.pl: Add -n option that disables generation of
14263         ligatures command.
14264         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
14265         afmtodit. Regenerate.
14267         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
14268         @f back past the current position.
14270         * tmac/tmac.e: Change calls to @R so that comments are not part of
14271         arguments.
14273 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
14275         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
14277         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
14278         check that we can link a call to a function declared in <stdio.h>.
14279         (GROFF_UNISTD_H): New macro.
14280         * configure.in: Call it.
14281         * Makefile.in: Document it.
14282         * include/posix.h: New file.
14283         * troff/troff.h: Don't include <osfcn.h>
14284         * troff/input.cc: Include posix.h.
14285         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
14286         osfcn.h.
14287         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
14288         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
14289         <fcntl.h>.
14290         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
14291         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
14292         * libbib/search.cc (O_RDONLY): Delete definition.
14293         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
14294         Don't include <osfcn.h>.
14296         * acgroff.m4 (GROFF_TIME_T): New macro.
14297         * configure.in: Call it.
14298         * Makefile.in: Document it.
14300         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
14301         * configure.in: Call it.
14302         * Makefile.in: Document -DTRADITIONAL_CPP.
14303         * include/ptable.h: Don't include generic.h.
14304         (name2): Define it.
14306         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
14307         Afterwards remove [T1 and [T2.
14308         (ref*spec!0, ref*spec!2): Use T1 rather than T.
14309         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
14310         (ref*add-T2): Renamed from ref*add-T.
14311         (ref*add-T1): New macro.
14313 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
14315         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
14317         * libbib/index.cc: Include <fcntl.h>.
14318         (O_RDONLY): Define if necessary.
14319         (make_index_search_item, index_search_item_iterator::get_tag,
14320         index_search_item::check_files): Use O_RDONLY.
14321         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
14322         (O_RDONLY): Define if necessary.
14323         (search_list::add_file): Use O_RDONLY.
14324         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
14325         <sys/stat.h>.
14326         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
14327         (main): Use these.
14329         * libbib/index.cc (S_ISREG): Define it if necessary.
14330         (index_search_item::load): Use S_ISREG.
14332         * include/driver.h: Include <errno.h>.
14334 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
14336         * eqn/box.cc (body_height): Increase default value to 85.
14337         (body_depth): Increase default value to 35.
14339 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
14341         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
14342         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
14343         protected from expansion with \E.
14345         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
14347         * Makefile (Makefile): New target.
14349         * Makefile.sub (configure, distfiles): New targets.
14351         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
14352         construct.
14354 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
14356         * eqn/box.cc (param_table): Add body_height and body_depth.
14358         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
14360 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
14362         * psbb/Makefile.sub: Don't link with libgroff.a.
14364         * acgroff.m4 (GROFF_PUTENV): New macro.
14365         * configure.in: Call GROFF_PUTENV.
14366         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
14367         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
14368         is defined.
14370         * troff/env.cc (distribute_space): Rename force_forward argument
14371         to force_reverse.  Reverse the list if force_reverse is true.
14373 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
14375         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
14377         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
14378         height or depth to be negative.  Guard against SUP_RAISE quantity
14379         being negative.
14381 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
14383         * devps/generate/textmap: Add `an' (arrowhorizex).
14384         * tmac/tmac.ps: \(an overlaps horizontally.
14385         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
14387         * devps/symbolchars: Add arrowverttp, arrowvertbt.
14388         * devps/textmap: Add arrowvertex.
14389         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
14390         updownarrow delimiters.
14391         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
14393         * tbl/table.cc (simple_entry::position_vertically,
14394         block_entry::position_vertically):  For a centered entry, perform
14395         the motion in two stages.
14397         * refer/refer.cc (split_punct): Don't call lookup_token if there
14398         is no token.
14400 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
14402         * troff/input.cc (token::next): Delete token_node after copying
14403         token.
14405         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
14406         cur_point_size.
14408         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
14410         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
14412 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
14414         * grops/ps.cc (usage): -b option takes an argument.
14416         * devps/prologue (PLG): New procedure.
14417         * grops/ps.cc (main, usage): New -g option.
14418         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
14419         length using PLG.
14421 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
14423         * include/cset.h: Include <limits.h> if we have it.
14425         * libgroff/illegal.cc: New file.
14426         * include/lib.h (illegal_input_char): Use table.
14427         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
14428         * pic/lex.cc (ARG1): Renumber to 14.
14429         * eqn/lex.cc (ARG1): Likewise.
14431         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
14432         (eg 1.05.90) correctly.
14434 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
14436         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
14437         Rename $r and $R registers to $v and $V.
14438         ($r, $R): Initialize to 0.
14439         (@v, @V): New macros.
14440         (sz): Call @v.
14441         (@M): Call @V.
14443         * troff/input.cc (main, usage): Add -R option that says not to
14444         load troffrc.
14445         * eqn/main.cc (main, usage): Rename -n to -R.
14447 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
14449         * devps/DESC.in: Leave font positions 5-9 blank.
14450         * devdvi/DESC.in: Likewise.
14452         * grog/grog.pl: Handle `.PS <file' correctly.
14454         * troff/input.cc (input_stack::push): Improve error message when
14455         input stack limit exceeded.
14457 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
14459         * refer/refer.cc (main): Fix typo in handling of `a' option.
14461         * refer/refer.cc (do_bib): In state START after a newline remain
14462         in state START.
14464         * groff/groff.sh: Deleted.
14465         * groff/Makefile.sub: Delete handling of groff.sh.
14467         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
14468         to determine whether to use \X'ps:...'.
14469         * tmac/troffrc: Set 0p register to 0.
14470         * tmac/tmac.ps: Set 0p register to 1.
14472         * groff/groff.cc: Support -X option. Give warning for -TXps and
14473         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
14474         * tmac/troffrc: Support -r.X=1.
14476         * pic/troff.cc (troff_output::dot): Don't test
14477         zero_length_line_flag.
14479 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
14481         * include/lib.h: Declare getopt() and friends unless
14482         STDLIB_H_DECLARES_GETOPT is defined.
14484         * doc/chars.tr: Delete.
14485         * man/groff_char.man: New file.
14487 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
14489         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
14490         user has changed register format.
14492 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
14494         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
14495         `postpro' command in DESC file.  Get spooler command from `print'
14496         command in DESC file.  Execute spooler command with /bin/sh.
14498         * groff/groff.cc: Split Unix-specific parts into...
14499         * groff/pipeline.c: New file.
14501         * LICENSE: Delete.
14502         * COPYING: New file.
14503         * all files: Update copyright notices.
14505         * Rearrange files.  Redo Makefiles.  Use autoconf.
14507 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
14509         * troff/input.c (charinfo_to_node_list): Interpret character
14510         definition with escape_char of `\'.
14512 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
14514         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
14515         Define INT_DIGITS as big enough for 64-bit integer.
14516         * lib/strtol.c: Don't include lib.h.
14517         * lib/lib.h: Delete ifdef __cplusplus stuff.
14519 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
14521         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
14522         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
14523         get DESC from current directory.
14525 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
14527         * tbl/main.c (main): Always reset the line number when reading
14528         from stdin.
14530         * tbl/table.c (table::print_single_hline, table::print_double_hline,
14531         table::define_bottom_macro, table::do_row, table::do_top): Round
14532         vertical spacing up to vertical resolution.
14534 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
14536         * ps/ps.h (enum resource_type): Avoid comma at end of
14537         enumerator-list.
14538         * dvi/dvi.c (class dvi_printer): Likewise.
14539         * dvi/tfmtodit.c (gf::load): Likewise.
14540         * refer/label.y (struct expression): Likewise.
14541         * refer/refer.c (class label_processing_state): Likewise.
14542         * refer/indxbib.c (do_file): Likewise.
14543         * troff/troff.c (enum warning_type): Likewise.
14544         * tbl/main.c (process_data): Likewise.
14545         * troff/charinfo.h (class charinfo):
14547 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
14549         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
14551 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
14553         * groff.c: Move to new groff subdirectory.
14554         * groff/Makefile: New file.
14555         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
14557         * man/mdate.sh: Use ls -L if supported.
14559         * Consolidate all header files produced by gendef into lib/defs.h.
14560         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
14561         Don't include path.h.
14562         * lib/Makefile (path.h): Don't generate.
14563         * troff/input.c: Include defs.h. Don't include config.h.
14564         * troff/Makefile (config.h): Don't generate.
14565         * refer/index.h: Don't include suffix.h.
14566         * refer/index.c: Include defs.h.
14567         * refer/indxbib.c: Include defs.h.
14568         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
14569         defs.h.
14570         * refer/Makefile (suffix.h, path.h): Don't generate.
14571         * groff.c: Don't include config.h. Include defs.h.
14572         * Makefile (config.h): Don't generate.
14573         (lib/defs.h): Generate.
14574         (topclean): Remove lib/defs.h.
14576 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
14578         * lib/malloc.c, lib/getpagesize.h: Deleted.
14579         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
14580         related stuff.
14581         * lib/Makefile: Delete malloc-related stuff.
14582         * lib/new.c: Workaround COOKIE_BUG if necessary.
14584         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
14585         needed header files directly.
14586         * refer/refer.h: Omit definition of DEFAULT_INDEX.
14587         * Makefile: Include definition of DEFAULT_INDEX in path.h.
14589 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
14591         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
14592         argument.
14593         * lib/font (font::load_desc, font::load): Don't split argument of
14594         unknown command.
14595         (font::handle_unknown_font_command): Change type.
14596         * ps/ps.c (ps_font::handle_unknown_font_command,
14597         handle_unknown_desc_command): Change type.
14598         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
14600 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
14602         * lib/font.h (font::handle_unknown_font_command): Add file and
14603         line arguments.
14604         * lib/font.c (font::handle_unknown_font_command):
14605         * ps/ps.c (ps_font::handle_unknown_font_command):
14606         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
14607         lineno arguments.  Use _with_file_and_line functions for error
14608         reporting.
14610         * lib/fontfile.c (font::unknown_desc_command_handler): New static
14611         data member.
14612         * lib/font.c (font::set_unknown_desc_command_handler): New
14613         function.
14614         (font::load_desc): For unknown commands, call
14615         unknown_desc_command_handler if not null.
14616         * lib/font.h (class font): Declare them.
14617         (FONT_COMMAND_HANDLER): New typedef.
14618         * ps/ps.c (handle_unknown_desc_command): New function.
14619         (main): Set bflag if we had a -b option. Call
14620         font::set_unknown_desc_command_handler.
14621         (broken.h): Don't include.
14622         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
14623         submake 
14624         * ps/devps/Makefile: Add `broken' command to DESC file using
14625         BROKEN_SPOOLER_FLAGS.
14627         * macros/tmac.e ([, ]): Add as synonyms for { and }.
14629         * macros/tmac.e ($p): Only exdent if \$3 > 0.
14631         * macros/tmac.e (@R, @S): New macros.
14632         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
14633         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
14634         Declare $H, $[0-9], .. macros with @S.
14635         Declare |0, |1, |2, |3 strings with @S.
14637         * macros/tmac.e (@S): Rename to @U.
14639         * macros/tmac.e (@z): Define @b and bp as empty instead of
14640         deleting them,
14642         * macros/tmac.e (@m): Deleted.
14643         (@h): Don't call @m.
14644         (@z): Don't set @m trap.
14646         * macros/tmac.e ($h, $f): Define |z as empty string.
14648         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
14649         (@q): Likewise.
14651         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
14652         removing them.
14653         ()f): Likewise for * register.
14655         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
14656         argument is missing, don't change $R.  Call sr with three
14657         arguments when initializing.
14659 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
14661         * macros/tmac.e (sr): New macro.
14662         Initialize $r and $R using sr.
14664         * macros/tmac.e (,): Delete \*(#[.
14666         * troff/env.c (set_tabs): Read the tab type even if the position
14667         is bad.  Allow the position of the first tab stop to be negative.
14669 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
14671         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
14672         _POSIX_VERSION.
14673         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
14674         rather than -DPATHCONF_MISSING.
14675         * Makefile: Get rid of PATHCONF_MISSING.
14677         * refer/map.c: New file.
14678         * refer/index.c: Interface to mmap through map.c.  Rename map_size
14679         to map_len.
14680         * refer/Makefile: Handle map.c.
14681         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
14683 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
14685         * Makefile: RANLIB should be `true' if there is no ranlib.
14686         * lib/Makefile (libgroff.a): Simplify.
14687         * driver/Makefile (libdriver.a): Simplify.
14689         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
14690         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
14691         defined.
14693 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
14695         * troff/env.c (compare_ranges): Declare as extern "C".
14697         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
14699         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
14701 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
14703         * pic/troff.c (troff_output::text): Merge in grops_output::text,
14704         but conditionalize use of \X based on \*(.T.
14705         (grops_output::*): Deleted.
14706         * pic/output.h: Delete declaration of make_grops_output.
14707         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
14708         by default. -n sets it to 0.
14709         (usage): Corresponding changes.
14710         * groff.c (main): Don't pass -x or -p to pic.
14711         * groff.sh: Likewise.
14713         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
14714         to be non-zero.
14716         * ps/devps/afmtodit: Change calculation of asc_boundary and
14717         desc_boundary.  Make these bounds inclusive.
14718         * ps/devps: Regenerate font files.
14720 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
14722         * macros/tmac.latin1: New file.
14723         * macros/tmac.tty-char: Use tmac.latin1.
14724         (tmac.tty-tr): Deleted.
14725         * macros/Makefile: Install tmac.latin1.
14726         * macros/tmac.dvi: Use tmac.latin1.
14727         * macros/troffrc: Translate \[char160] onto no-break space here.
14728         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
14730 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
14732         * macros/tmac.Xps: Use `do' request.
14734         * macros/tmac.ps: Use `do' request.
14736         * macros/tmac.e (@C): Use `do' request.
14738         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
14739         * macros/Makefile: Install tmac.X*.
14741         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
14742         * tty/Makefile: Don't install tmac.tty*.
14743         * macros/Makefile: Install tmac.tty*.
14745         * dvi/tmac.dvi: Move to macros.
14746         * dvi/Makefile: Don't install tmac.dvi.
14747         * macros/Makefile: Install tmac.dvi.
14749         * ps/tmac.ps*: Move to macros.
14750         * ps/Makefile: Don't install tmac.ps*.
14751         * macros/Makefile: Install tmac.ps*.
14753         * eqn/box.c: Provide draw_lines parameter corresponding to -D
14754         option.
14755         * macros/eqnrc: Set draw_lines parameter based on device.
14756         * groff.c: Don't pass -D flag to eqn.
14757         * groff.sh: Likewise.
14758         * eqn/main.c: Warn about use of -D.
14760         * troff/input.c (process_startup_file): New function.
14761         (main): Call process_startup_file().
14762         * macros/troffrc: New file.
14763         * macros/Makefile: Install troffrc.
14764         * groff.c (main): Don't pass extra -m option to troff. For a 
14765         pseudo device pass the name of the pseudo device to troff using
14766         -d.
14767         * groff.sh: Likewise.
14768         * groff.c (possible_command::prepend_arg): Deleted.
14770         * troff/input.c (do_request): New function.
14771         (init_input_requests): Bind "do" to do_request.
14773         * eqn/main.c (main): Instead of loading eqnchar from device directory,
14774         load eqnrc from macro directory.
14775         * macros/eqnrc: New file.
14776         * macros/Makefile: Install eqnrc.
14777         * ps/devps/eqnchar: Deleted.
14778         * ps/devps/Makefile: Don't install eqnchar.
14779         * dvi/devdvi/eqnchar: Deleted.
14780         * dvi/devdvi/Makefile: Don't install eqnchar.
14781         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
14782         variable optM.
14784         * lib/device.[ch]: New files.
14785         * lib/font.h (font::set_device_name, font::get_device_name):
14786         Deleted.
14787         * lib/fontfile.c: Use device.h.
14788         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
14789         * troff/input.c: Delete definition of `device'.
14790         (main): Don't initialize device.
14791         * troff/troff.h: Include device.h rather than declaring device.
14792         * troff/Makefile: No need to handle DEVICE.
14793         * driver/input.c: Include device.h. Don't use
14794         font::{set,get}_device_name.
14795         * groff.c, Makefile: Rename device.h to config.h.
14796         * groff.c: Use library device variable.
14797         * eqn/main.c: Use library device variable.
14798         * eqn/Makefile: No need to handle DEVICE.
14800         * lib/searchpath.[ch]: New files.
14801         * lib/Makefile: Handle searchpath.[ch].
14802         * troff/input.c (open_file, init_dirs): Deleted.
14803         (macro_dirs): Deleted.
14804         (open_mac_file, macro_source): Use class search_path.
14805         (add_string, struct string_list): Move definition.
14806         (main): Change -M option to use macro_path. Delete call to
14807         init_dirs().
14808         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
14809         Rewrite to use class search_path.
14810         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
14811         * lib/Makefile: fontfile.c depends on searchpath.h.
14812         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
14813         MACROPATH.
14814         * lib/macropath.[ch]: New files.
14815         * troff/Makefile: No need to handle MACROPATH.
14817         * troff/input.c: Delete DUMP code.
14818         * lib/fontfile.c, lib/font.h: Delete
14819         font::forget_command_line_font_dirs.
14821         * troff/input.c (push_token): New function.
14822         (handle_first_page_transition): Use push_token().
14823         (process_input_stack): Change handling of a space at the beginning
14824         of the line.
14826 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
14828         * troff/input.c (font_dirs): Delete unused variable.
14830         * eqn/lex.c (do_set): Correct error messages.
14832 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
14834         * troff/input.c (do_define_string): Allow the string name to be
14835         followed immediately by a tab.
14836         (define_character): Likewise.
14838 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
14840         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
14841         be negative.
14843         * troff/input.c (input_iterator::is_file): New virtual function.
14844         (file_iterator::is_file): New function.
14845         (input_stack::end_file): New function.
14846         (input_stack::next_file): Handle the situation where there is no
14847         file on the input stack correctly.  Avoid making two passes over
14848         the input stack.
14849         (next_file): Make the filename optional; in this case call
14850         input_stack::end_file().
14852 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
14854         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
14855         produce a real _ charater when the current font is CW and _
14856         otherwise.
14858         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
14859         expression to work around gcc 2.2 bug.
14861 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
14863         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
14865         * troff/env.c (environment::add_padding): New function.
14866         (environment::add_char): Use add_padding().
14867         (environment::space): Likewise.
14868         (environment::wrap_up_field): Add some padding if there is none
14869         and there's no current tab.
14870         * troff/env.h: Declare environment::add_padding.
14872 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
14874         * pic/pic.y: undef fmod and rand before declaring them.
14876 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
14878         * troff/input.c (main): If the DESC file specifies a font name of
14879         0, then leave the corresponding font position empty.
14881         * nroff.sh: New file.
14882         * Makefile (install.nobin): Install nroff.sh.
14884         * tty/devlatin1/R.proto: Add ao as synonym for de.
14885         * tty/tmac.tty-char: Define ao as o.
14887         * tty/dev{ascii,latin1}/R.proto: Add aq.
14888         * tty/tmac.tty-char: Delete definition of aq.
14890 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
14892         * troff/input.c (init_charset_table): Don't translate 0240.
14893         * ps/tmac.ps: Translate char160 to space.
14894         * dvi/tmac.dvi: Likewise.
14895         * tty/tmac.tty: Likewise.
14897 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
14899         * dvi/tmac.dvi: Add support for all Latin-1 characters.
14901         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
14902         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
14903         \(oe, \(r?, \(r!.
14905         * tty/tmac.tty-char: Add \(ah.
14907         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
14908         No need to define \(FM and \(!/. Conditionalize all character
14909         definitions.
14911         * ps/devps/lgreekmap: Add +h, +f, +p.
14913         * ps/tmac.psnew: New file.
14914         * ps/Makefile: Install tmac.psnew.
14916         * troff/input.c (charinfo_to_node_list): Don't ever interpret
14917         character definitions in compatible mode.
14919         * troff/input.c (remove_character): New function.
14920         (init_input_requests): Bind remove_character to "rchar".
14922         * ps/tmac.psold: New file.
14923         * ps/Makefile: Install tmac.psold.
14924         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
14925         characters into tmac.psold.  Make these definitions unconditional.
14927         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
14929         * ps/tmac.ps: Don't define \('c and \('C.
14931         * ps/devps/textmap: Move Greek characters to...
14932         * ps/devps/symbolchars:
14934 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
14936         * ps/devps/text.enc: Add quotesingle.
14937         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
14938         * tty/tmac.tty-char: Likewise.
14939         * dvi/devdvi/texmi.map: Add +h, +f, +p.
14940         * dvi/devdvi/texi.map: Add Fn.
14941         * dvi/devdvi/msam.map: Add lz.
14942         * dvi/tmac.dvi: Handle Bq, bq, aq.
14944         * pic/lex.c (get_token): Recognize 'th.
14945         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
14947 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
14949         * ps/devps/textmap: Move di, mu, +- to...
14950         * ps/devps/symbolchars:
14952         * macros/tmac.s (@XS): Don't call par@reset or fi.
14953         (XA): Call LP. Turn off adjustment. Reduce line length.
14955         * macros/tmac.s: Initially alias XS to LP.
14956         (XS): Rename to @XS.
14957         (cov*ab-init): Alias XS to @XS.
14959 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
14961         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
14962         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
14963         (token::is_size, token::changes_env): Deleted.
14964         * troff/number.c (parse_term): No need to process \s explicitly.
14965         Call tok.next() only after scale indicator has been processed.
14966         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
14967         \f etc explicitly.
14968         (token::next): Handle \s, \f, \S, \H immediately rather than
14969         returning them as tokens.
14970         (token::operator==, token::description, token::add_to_node_list,
14971         token::process): Remove handling of deleted tokens.
14973         * troff/env.c (environment::add_char): When adding padding
14974         indicator character, call start_line() if necessary.
14976 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
14978         * ps/devps/afmtodit: Don't output 0 kerns.
14980         * ps/devps/afmtodit: Remove directory from name of encoding in
14981         font description file.
14983         * ps/devps/afmtodit: Improve error messages.
14985         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
14987         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
14988         * ps/devps/FontMakefile: Deleted.
14989         * ps/devps/afmname: New file.
14991         * ps/devps/symbol.sed: New file.
14992         * ps/devps/symbol.diff: Deleted.
14993         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
14994         Generate zapfdr.afm from zapfd.afm.
14996         * tty/tmac.tty (tty-char): Prefix definition with ".
14998         * macros/tmac.an (TP): Don't start a diversion if one has already
14999         been started.
15001         * tty/tmac.tty-char: Add Latin-1 characters.
15003         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
15005 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
15007         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
15008         Move declaration of struct horizontal_span.
15010         * tbl/table.c (table::table): Initialize span_list.
15011         (table::~table): Delete span_list.
15013         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
15015         * ps/devps/Makefile: Avoid dependency on GNU make.
15017         * ps/tmac.ps: Check that character does not already exist before
15018         defining it.
15020         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
15021         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
15022         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
15023         files.
15025         * tty/tmac.tty-char: New file.
15026         * tty/Makefile: Install tmac.tty-char.
15027         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
15028         tmac.tty-char.
15030         * tty/tmac.tty: Fix definition of \(34.
15032         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
15033         bracket-drawing characters onto |. Add *o.
15035         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
15036         only if current_field.
15038         * troff/dictionary.c (dictionary::lookup): Free old_table after
15039         rehashing. 
15041 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
15043         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
15044         whose glyphs are identical to glyphs of some Roman character.
15046         * tty/devlatin1/R.proto (bu): Deleted.
15047         * tty/devascii/R.proto (bu): Deleted.
15048         * tty/tmac.tty: Add definition of \(bu.
15050         * eqn/main.c (do_file): Pass FILE as argument.
15051         (main): Automatically load eqnchar.  New options -F and -n.
15052         Pass do_file an opened FILE.
15053         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
15054         No need to include font.h.
15055         * groff.sh: Likewise.  Don't need to use - for standard input.
15056         Prefix files with -- if first file starts with -.
15058         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
15060         * troff/env.c (environment::possibly_break_line): Don't set line
15061         to 0 across call to output_line().  Don't call output_line() until
15062         after discarding nodes after break.
15064 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
15066         * request.h (macro::empty): Declare it.
15067         * input.c (macro::empty): New method.
15068         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
15069         macro is empty.
15071 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
15073         * troff/env.c (environment::start_field): Decrement space_total
15074         when a space is frozen.
15076 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
15078         * macros/tmac.an (R): Delete macro.
15080         * troff/input.c (get_copy, token::next): Support \# (like \" but
15081         newline is ignored).
15083         * troff/input.c (token::next): Fix error message in 'Y' case.
15085 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
15087         * eqn/delim.c (define_extensible_string): Recognize any prefix of
15088         a delimiter name.
15090 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
15092         * c++test.c: Include <osfcn.h>.
15094         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
15095         <errno.h> doesn't.
15097 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
15099         * tbl/table.c (table::divide_span): Don't count column separation
15100         if expand was specified.
15102         * tbl/main.c (process_format): Don't ignore width specs in
15103         continued format.  Give warning for changing equal widths or
15104         column separation in continued format.
15105         (process_data): Set column separation, minimum width, equal
15106         columns at end of table.
15108 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
15110         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
15111         node::add_discretionary_hyphen): Use soft_hyphen_char.
15112         (set_soft_hyphen_char): New function.
15113         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
15115         * Makefile (c++tested): Give more helpful message if test fails.
15117 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
15119         * troff/input.c (init_charset_table): Translate 0240 to
15120         an unbreakable space.
15122         * troff/token.h (token::hyphen_indicator): New function.
15123         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
15124         translation.
15125         * troff/input.c (translate): Allow translation to \%.
15126         * troff/node.c (node::add_char): Handle
15127         TRANSLATE_HYPHEN_INDICATOR.     
15128         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
15130         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
15131         for \(hy.
15133         * tty/devlatin1/R.proto: \(hy and - should print as 055.
15135 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
15137         * groff.c (run_commands): If the last command gets a SIGPIPE send
15138         a SIGPIPE to all children than haven't yet terminated.  When
15139         command terminates, set pid field to -1.
15141 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
15143         * groff.c (main): Pass an appropriate -filename option to gxditview.
15145 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
15147         * Makefile.bd (install): Remove existing program before copying.
15149         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
15150         programs which have Unix counterparts to be installed with
15151         user-specified prefix.
15153         * troff/input.c (exit_troff): Don't check if exit_started.
15154         (exit_request): Don't call exit_troff if exit_started.
15156         * Makefile.bd (install.mm): Rename to install.dwbmm.
15158 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
15160         * driver/input.c (do_file): Add missing break for '#' case.
15162 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
15164         * troff/input.c (input_stack::clear):  Clear past any boundaries and
15165         then add the boundaries back.
15167         * troff/input.c (exit_troff): Return immediately if already
15168         exiting.
15170         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
15171         end macro.
15172         (pg*end-page): If the text has ended and there are no more
15173         footnotes or keeps, exit.
15175         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
15177         * troff/input.c (init_charset_table): Make \(rq transparent by
15178         default.
15180         * macros/tmac.an: Define lq and rq strings.
15182         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
15184 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
15186         * troff/env.c (environment::final_break): New function.
15187         (environment::newline): Set prev_line_interrupted to 2 if
15188         exit_started.
15189         * troff/env.h: Declare environment::final_break.
15190         * troff/input.c (exit_troff): Call environment::final_break()
15191         instead of environment::do_break().
15193         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
15194         doesn't already exist.
15195         * macros/man.local: New file.
15196         * macros/tmac.an: Load man.local.
15197         * macros/man.ultrix: New file.
15199 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
15201         * troff/input.c (exit_groff): Rename to...
15202         (exit_troff): New function.
15204         * troff/div.c (exit_started, done_end_macro,
15205         seen_last_page_ejector): New global variables.
15206         (began_page_in_end_macro): New static variable.
15207         (exit_flag): Deleted.
15208         (top_level_diversion::top_level_diversion): Initialize
15209         last_page_count.
15210         (top_level_diversion): More elaborate test for whether
15211         cleanup_and_exit() should be called.
15212         Set began_page_in_end_macro if the end macro isn't yet finished.
15213         * troff/div.h (top_level_diversion::last_page_count): New data
15214         member.
15215         (top_level_diversion::set_last_page): New function.
15216         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
15217         * troff/env.c (do_break): Zero prev_line_interrupted.
15218         * troff/input.c (exit_flag): Delete declaration.
15219         (LAST_PAGE_EJECTOR): New magic cookie.
15220         (token::next): Handle LAST_PAGE_EJECTOR.
15221         (exit_groff): Set exit_started and done_end_macro instead of
15222         exit_flag.  Call top_level_diversion::set_last_page.  Push a
15223         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
15224         another ejection after setting seen_last_page_ejector.
15226 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
15228         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
15230         * macros/tmac.e (TH): Make sure there's room for the initial
15231         header.
15233         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
15234         Set FVS in points rather than units.
15236 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
15238         * troff/div.c (top_level_diversion::add_trap): Don't consider the
15239         position of empty slots.
15241 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
15243         * ps/devps/S: Fix height and depth of parenrightex.
15244         * ps/devps/symbol.diff: Regenerate.
15246 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
15248         * tmac.e (u): Do underlining as in -mgs.
15250 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
15252         * tty/tty.c (tty_printer::end_page): If overstriking is
15253         suppressed, still turn overstruck horizontal and vertical lines
15254         into +.
15256         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
15257         2.1.
15259         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
15261 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
15263         * Version 1.05 released.
15265 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
15267         * tty/tty.c: Instead of keeping an array of glyphs and then
15268         sorting it, keep a ordered linked list of glyphs for each line.
15270         * driver/driver.h: Include stddef.h.
15272         * tty/tty.c (compare_glyph):
15273         * refer/refer.c (rcompare):
15274         * troff/env.c (compare_ranges): Arguments of qsort comparison
15275         function should be const void *.
15277         * troff/number.c (parse_term):
15278         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
15279         switch statement.
15281         * refer/label.y (consider_authors): Don't access variables
15282         constructed under a condition outside that condition: put braces
15283         round for statement containing declaration; redeclare use of same
15284         variable later.
15286         * pic/pic.y (text_expr): Delete production that allows
15287         parenthesised text_expr.
15288         (expr): Allow a conditional_expr to appear in parentheses.
15289         (conditional_expr): Rename to any_expr.
15291         * mm: Install new version 1.01 from jh.
15293         * lib/font.c (font::get_width): Cache scaled widths.
15294         (font::font): Initialize widths_cache.
15295         (font::~font): Destroy widths_cache.
15296         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
15298 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
15300         * c++test.c, c++test.ref: New files.
15301         * Makefile: Check that the C++ compiler works.
15303         * ps/tmac.pspic (PSPIC): Do a break.
15305         * ps/tmac.ps: Move definition of PSPIC into...
15306         * ps/tmac.pspic: New file.
15307         (PSPIC): Draw box around picture, but make it invisible to grops.
15308         * ps/tmac.ps: Load tmac.pspic.
15309         * ps/Makefile: Install tmac.pspic.
15311 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
15313         * lib/font.c (scale_round): If n is negative,
15314         subtract .5 before truncating floating point result.
15316         * lib/fontfile.c: Include <errno.h>.
15318 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
15320         * driver/input.c (get_char): Inline. Don't update current_lineno.
15321         Change callers to up date current_lineno if necessary.
15322         Use get_char() instead of getc(current_file).
15324 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
15326         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
15328 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
15330         * tty/tty.c (tmac.tty): Define \(rg as (R).
15332 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
15334         * lib/lib.h: New define a_delete.
15335         * Use a_delete instead of delete when deleting an array of objects
15336         without destructors.
15338         * lib/lib.h: Rename adelete to ad_delete.
15339         * Change uses of adelete.
15341 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
15343         * eqn/eqn.y: Include lib.h.
15345         * troff/node.c (grow_font_table): Delete old_font_table.
15347         * mm: Install new version from jh.
15349 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
15351         * tbl/table.h (format_type): Make global instead of local to class
15352         entry_format.  Prefix enumerators with FORMAT_.
15353         * tbl/table.c, tbl/main.c: Corresponding changes.
15354         * refer/token.h (token_type): Make global.  Prefix enumerators
15355         with TOKEN_.
15356         * refer/token.[ch]: Corresponding changes.
15357         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
15359         * troff/div.c (node::set_vertical_size): Don't name argument.
15361 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
15363         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
15364         * lib/lib.h: Define adelete accordingly.
15365         * pic/object.c (graphic_object::graphic_object):
15366         * tbl/main.c (format::~format):
15367         * tbl/table.c (table::~table):
15368         * refer/ref.c (reference::~reference, reference::merge,
15369         reference::insert_field, reference::delete_field): Use adelete.
15371         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
15372         * refer/token.h:
15373         * tbl/table.h: Corresponding changes.
15375         * common.c (common_output::dashed_arc, common_output::dotted_arc):
15376         Ensure total_angle is positive.
15378 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
15380         * refer/ref.c (reference::merge, reference::insert_field,
15381         reference::delete_field): Avoid delete[0].
15383         * refer/token.c (init_special_chars): Move calls to cmupper
15384         outside calls to init_two_char_letter to work around bug in gcc
15385         2.0.
15387 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
15389         * lib/new.c (operator new): Use __builtin_new for g++.
15391         * pic/object.c (graphic_object::~graphic_object):  Don't use
15392         delete [] on 0.
15394         * pic/object.c (output::compute_scale): Initialize max_width and
15395         max_height.
15397 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
15399         * troff/input.c (write_request): Call fflush.
15401         * troff/node.h (class composite_node): Move declaration to node.c
15402         * troff/input.c (charinfo_to_node): Rename to ...
15403         (charinfo_to_node_list): Return node list rather than composite
15404         node.
15405         * troff/node.c (make_composite_node): New function.
15406         (make_node, add_char): Call make_composite_node instead of
15407         charinfo_to_node.
15408         (class composite_node): Add a tfont * member.  Delete font_size
15409         member.
15410         (composite_node::composite_node, composite_node::copy,
15411         composite_node::size): Corresponding changes.
15412         (composite_node::tprint): Provide constant spacing, emboldening
15413         and track kerning as specified in tfont.
15414         (composite_node::width): Change width calculation accordingly.
15415         * troff/env.h (environment::composite): New member.
15416         (environment::is_composite, environment::set_composite): New
15417         functions.
15418         * troff/env.c (environment::environment): Initialize composite.
15419         * troff/input.c (charinfo_to_node): Call
15420         environment::set_composite.
15421         * troff/node.c (make_composite_node, make_glyph_node): Use the
15422         plain version of the tfont if the environment is composite.
15424         * troff/node.c (font_info::get_space_width): Additional argument
15425         giving space_size.  Handle constant space correctly. Scale by
15426         space_size unless constant spaced.
15427         (env_sentence_space_width): New function.
15428         * troff/node.h: Declare it.
15429         * troff/env.h (environment::get_space_size,
15430         environment::get_sentence_space_size,
15431         environment::get_narrow_space_width,
15432         environment::get_half_narrow_space_width): Make inline.
15433         (environment::get_space_width): Make inline.  Just call
15434         env_space_width.
15435         * troff/env.c: Delete definitions for funtions made inline.
15436         (environment::space_newline, environment::space): Use
15437         env_sentence_space_width(). Don't scale by space_size.
15438         * troff/node.h: Move declarations of env*space_width() functions
15439         into env.h.
15441 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
15443         * macros/tmac.s (PS): Don't try to set negative indent.
15445 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
15447         * pic/pic.y: Fix min function.
15449 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
15451         * man/mdate.sh: Clear LANGUAGE.
15453 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
15455         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
15456         * pic/lex.c: New COMMAND keyword.
15457         * pic/pic.y (print_args, print_arg): New rules.
15458         (placeless_element): Use print_args for PRINT.
15459         New COMMAND element.
15461 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
15463         * troff/input.c (terminal): Handle missing argument correctly.
15465         * pic/pic.y (text_expr): New rule.
15467         * pic/pic.y: Implement := operator.
15469 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
15471         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
15472         mdoc.
15474 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
15476         * ps/devps/dingbatsrmap: Include this in the distribution.
15478         * macros/tmac.doc: Replace with new version from 2nd Networking
15479         Release. Fix loading of doc-* files.
15480         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
15481         * macros/tmac.doc.old: New file.  Apply fixes that had been
15482         applied to old tmac.doc.
15483         * macros/tmac.andoc: Check that we're running under groff.
15484         * macros/Makefile: Rework.
15486 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
15488         * tbl/table.h (format_type): 
15489         * refer/token.h (token_type): If NESTED_TYPES is defined, use
15490         typedef to make these types visible at file scope.
15491         * Makefile: Add NESTED_TYPES configuration option.
15493         * troff/div.c (mark): At the top level use the value of
15494         nl_reg_contents rather than the current vertical position.
15496 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
15498         * tty/tty.c: Implement \D for horizontal or vertical lines.
15499         (tty_printer::set_char): Use vec_used+2 as serial number.
15500         Don't allow size of vector to exceed USHRT_MAX-2.
15501         Split off part into...
15502         (tty_printer::add_char): New function.
15503         (tty_printer::draw): New function.
15504         (compare_glyph): Handle equal serial numbers.
15505         (tty_printer::end_page): Handle overstruck characters from \D.
15506         (main, usage): Implement -d option.
15508 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
15510         * tbl/main.c (process_format):
15511         * eqn/text.c (split_text):
15512         * troff/input.c (token::next): Use inner block for declarations
15513         with initializers in switch statement.
15515 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
15517         * pic/common.c (common_output::dash_line): Cope with zero-length
15518         lines.
15520 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
15522         * Version 1.04 released.
15524 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
15526         * macros/tmac.an (TH): Define a macro an-init to define variables
15527         based on command line arguments.
15528         (an-header): Call it.
15530 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
15532         * Makefile (install.mm): Rename to install.dwbmm.
15534         * Makefile: Integrate mm.
15535         * mm: New directory.
15537 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
15539         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
15540         <sys/types.h>.
15542         * pic/troff.c (troff_output::simple_spline,
15543         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
15544         shadowing parameter.
15546         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
15548         * lib/ptable.h: Add explicit casts when converting from unsigned
15549         long to unsigned.
15551         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
15552         * dvi/devdvi/Makefile: Install SA, SB.
15554         * refer/indxbib.c: Add declaration of mktemp.
15556         * refer/lookbib.c: Add declaration of isatty.
15558 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
15560         * pic/lex.c (interpolate_macro_with_args):  While collecting
15561         arguments, keep track of whether we're in a string.
15563 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
15565         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
15566         down with \v, so as to avoid problems with top of page trap
15567         setting no space mode.
15569 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
15571         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
15573 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
15575         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
15576         Improve error message.
15578 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
15580         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
15581         printf("%03o");
15583 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
15585         * groff.c (possible_command::execp): Always use _exit() after a
15586         failed exec.
15588         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
15589         NO_SYS_WAIT_H   configuration options.
15590         * groff.c: Use these options.  Use POSIX-style macros to extract
15591         fields from the status returned by wait().
15593 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
15595         * tbl/table.c (table::compute_separation_factor): Allow the
15596         separation factor to drop to 0.
15598 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
15600         * refer/search.c: Include <errno.h>.
15602 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
15604         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
15606         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
15607         C++. 
15609         * pic/lex.c (input_stack::bol): Move definition out of class body.
15611         * pic/main.c: On MSDOS munge argv[0].
15613         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
15615         * lib/ptable.c (hash_string): Use unsigned long rather than
15616         unsigned.
15617         (next_ptable_size): Use unsigned rather than int.  Give an error
15618         message if we've hit the largest table size.
15619         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
15620         table size.
15622         * pic/object.h (object_spec): Make flags unsigned long.  Declare
15623         flags as const unisgned long rather than as enums.
15625         * pic/output.c: Deleted.
15627         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
15629         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
15630         Add additional argument.
15631         (line_entry::note_double_vrule_on_{left,right}): Set value of
15632         douvle_vrule_on_{right,left} flag according to argument.
15633         (simple_line_entry::simple_print,
15634         simple_line_entry::double_line_print): If adjacent to double vrule
15635         on a corner extend rather than shorten the rule by half the double
15636         vrule sep.
15638         * troff/number.c (parse_term): In checking for overflow, handle the
15639         case where the current horizontal position is negative.
15641 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
15643         * pic/object.c (draw_arrow): Check for object having zero length.
15645 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
15647         * eqn/main.c (do_file): Split off inline equation handling into...
15648         (inline_equation): New function.  Search for starting delimiter
15649         using...
15650         (delim_search): New function. Don't recognize a delimiter that
15651         occurs in the name of an escape sequence, number register, string
15652         etc.
15654 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
15656         * eqn/delim.c (delim_box::compute_metrics): Don't call
15657         define_extensible_string if left is 0.
15658         (delim_box::output):  Don't print the left delimiter if left is 0.
15659         (delim_box::debug_print): Check for left == 0 before calling printf.
15661 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
15663         * troff/Makefile (majorminor.c): Include only digits in
15664         minor_version.
15666 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
15668         * refer/dirnamemax.c: new file.
15669         * refer/genlimits.c: Deleted.
15670         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
15671         Don't check path length.
15672         * refer/Makefile: Add dir_name_max.o; delete genlimits.
15673         * Makefile: Add PATHCONF_MISSING option.
15675         * refer/indxbib.c (get_cwd): New function.
15676         (main): Use get_cwd().
15677         * lib/getcwd.c: New file.
15678         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
15679         GETCWD in SUBFLAGS.
15680         * lib/Makefile: Compile getcwd.o.
15682         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
15683         userdict.
15685         * refer/indxbib.c (main): Check success of mktemp.
15687         * lib/tmpfile.c: New file.
15688         * lib/Makefile: Add tmpfile.c.
15689         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
15690         * ps/ps.h: Delete declaration of mktemp().
15691         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
15692         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
15693         * driver/driver.h: No need now to include errno.h.
15695         * everywhere: Set errno to 0 before calling fopen().
15697         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
15698         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
15699         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
15701 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
15703         * troff/env.h (translate_space_to_dummy): Declare it.
15704         * troff/env.c (environment::space_newline, environment::space):
15705         If translate_space_to_dummy is set then make the width of spaces 0.
15706         * troff/input.c (translate): If the second character of a
15707         translation is a space, translate to unbreakable space.  If the
15708         first character is a space, set or clear translate_space_to_dummy
15709         according to whether the second character is \&.  Weird!
15711 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
15713         * groff.c (run_commands): Don't use non-zero exit code because a
15714         command gets SIGPIPE.
15716         * groff.c, groff.sh: Use -mXps with -TXps.
15718         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
15719         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
15720         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
15721         (ps_printer::special): New specials invis and endinvis.
15722         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
15723         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
15724         (ps_printer::end_page): Check that invis_count == 0.
15725         (ps_printer::invis_count): New member.
15726         (ps_printer::ps_printer): Initialize invis_count to 0.
15728         * troff/env.c (environment::hyphenate_line): Hyphenation
15729         indicator at beginning of word inhibits splitting after -, \(em
15730         etc.
15732         * pic/pic.y (element): Allow another element to follow } without
15733         any intervening separator.
15735 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
15737         * pic/lex.c (get_delimited): Allow tabs before delimiter.
15739 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
15741         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
15742         declaration of wait() in header files.
15743         * Makefile: Get rid of -DHAVE_UNION_WAIT.
15745         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
15747         * lib/lib.h: Declare return type of strerror as char *.
15749         * man/Makefile: Add g flag to sed substitutions.
15750         * Makefile (shgroff, bindist): Likewise.
15752 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
15754         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
15755         * ps/devps/prologue (PBEGIN): Define showpage after pushing
15756         userdict.
15758 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
15760         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
15761         userdict.
15763 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
15765         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
15766         group.
15768 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
15770         * troff/input.c (define_number_reg):  If currently undefined,
15771         don't define it if the argument is an invalid expression.
15773         * Makefile: Ignore return value of `if' commands without `else'
15774         parts.
15776         * Makefile: Split up CPPDEFINES into a series of separate
15777         configuration options.
15779         * troff/input.c (init_registers): Use time_t instead of long
15780         unless LONG_FOR_TIME_T is defined.  Use returned result rather
15781         than passing pointer.
15782         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
15784         * lib/Makefile (fontpath.h): Use gendef.
15786 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
15788         * troff/input.c (input_iterator::shift): Delete argument name.
15789         * troff/node.c (suppress_output_file::really_begin_page,
15790         suppress_output_file::really_transparent_char, node::ascii_print,
15791         node::tprint): Delete names of unused arguments.
15793 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
15795         * refer/label.y (string):  Pass $4 to command_error.
15797 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
15799         * Version 1.03 released.
15801 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
15803         * Makefile: Pass definition of SHELL in SUBFLAGS.
15805         * gendef: New file.
15806         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
15807         ps/Makefile: Use gendef to construct header files that are
15808         constructed from the Makefile.
15810         * macros/Makefile: make all should build stripped version of tmac.e.
15812         * refer/Makefile (clean): Remove y.output.
15814 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
15816         * ps/pfbtops.c (main): Add -v option which prints out a version
15817         number.
15818         * ps/Makefile (pfbtops): Link with libgroff.a.
15820 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
15822         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
15823         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
15825         * refer/lkbib.c (main): Always terminate reference with blank
15826         line.
15827         * refer/lookbib.c (main): Likewise.
15829         * refer/linear.c (file_buffer::load): Check that the file is not a
15830         binary file.
15832         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
15833         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
15834         Delete second inclusion of <sys/param.h>.
15836 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
15838         * troff/token.h (token::special): Deleted.
15840         * tbl/main.c (process_format): Rework so that opt->tab_char is
15841         recognized only when appropriate.
15843         * ps/Makefile (clean): Remove pfbtops.
15845 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
15847         * lib/font.c (text_file::next): Don't return if we have got a
15848         blank line.
15850 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
15852         * refer/refer.c (store_reference): Get hash code from old_table[i]
15853         when rehashing the table.
15855 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
15857         * eqn/box.c (box::top_level): Save size and prev size using \R and
15858         restore it afterwards. Set the size to the size at the beginning
15859         of the line.
15860         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
15861         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
15863         * refer/Makefile (limits.h): Use ./genlimits.
15865 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
15867         * refer/index.c: Delete declarations of stat() and fstat().
15869 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
15871         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
15873 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
15875         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
15877 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
15879         * troff/input.c (token::get_char): Handle \e.
15881         * refer/linear.c: Delete declarations of fstat() and stat().
15883 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
15885         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
15886         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
15888 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
15890         * troff/input.c (do_define_macro): Improve error handling for end
15891         of file while defining macro.
15893 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
15895         * eqn/box.h: Fix declaration of set_gsize.
15896         * eqn/box.c (set_gsize): Make argument const char *.
15897         (gsize): Declare as char *.
15898         * eqn/main.c (main): Don't convert gsize to int.
15899         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
15901         * Version 1.02 released.
15903 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
15905         * macros/tmac.andoc: New file.
15906         * macros/Makefile: Install tmac.andoc.
15908         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
15909         operator new and delete on OP_DELETE_BROKEN not being defined.
15910         * Makefile: Mention OP_DELETE_BROKEN.
15912 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
15914         * Makefile (bindist): Pass SUBFLAGS.
15916 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
15918         * Makefile, groff.c: Pass definitions to groff.c via device.h.
15920         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
15921         parameter.
15923         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
15925         * ps/ps.h, ps/psrm.c: Make comment_table and
15926         header_comment_table local to resource_manager::process_file.
15928         * groff.sh: With -TXps pass -printCommand option to gxditview.
15930         * groff.c (possible_command::print): Implement using
15931         append_arg_to_string.
15933         * xditview: Merge in new implementation with own ChangeLog.
15935 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
15937         * groff.c (main): Implement PRINT_OPTION.
15938         (append_arg_to_string): New command.
15939         (device_table): Set PRINT_OPTION flag for Xps.
15941 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
15943         * troff/groff.h: Rename to troff.h.
15945         * pic/lex.c (lookup_keyword, docmp): New functions.
15946         (get_token): Use new lookup_keyword.
15947         Don't include key.h.
15948         * pic/key.[ch], pic/pic.gperf: Deleted.
15949         * pic/Makefile: Remove gperf stuff.
15951         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
15952         into output.h.
15953         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
15955         * troff/Makefile, troff/node.c: Move definition of
15956         STORE_WIDTH into node.c.
15958         * etc/grog.pl, etc/grog.sh: Support -mdoc.
15960 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
15962         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
15963         dvi/devdvi/texb.map: Add lq and rq.
15964         dvi/devdvi: Regenerate fonts.
15965         * ps/devps/textmap: Add lq and rq.
15966         * ps/devps: Regenerate fonts.
15967         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
15968         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
15970         * pic/object.c (position_rectangle): When checking radius
15971         cope with possiblity that width or height is negative.
15972         (box_object::box_object): Have separate xrad and yrad with
15973         signs matching signs of dim components.
15974         (box_object::{north,south}_{east,west}): Use xrad and yrad.
15975         (box_object::print): With rounded boxes use absolute values
15976         for dim and rad arguments.
15978         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
15979         in fontpath.h.
15981         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
15983         * various files: Add explicit destructors to keep Saber CC +d
15984         happy.
15986 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
15988         * eqn/box.c (box::top_level): Restore fonts correctly after
15989         font changes in line containing inline equation.  Also
15990         restore previous font as well as current font.
15991         * eqn/pbox.h: Define necessary string and register names.
15993         * troff/input.c (token::next): Case 'R' calls do_register.
15994         (do_register): New function.
15996 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
15998         * groff.c, groff.sh: Support Xps device.  Allow each device
15999         to have a pseudo_name and a real_name.
16001         * groff.c (run_commands): Don't print `Broken pipe' messages.
16003         * ps/pfbtops.c: New file.
16004         * ps/Makefile: Add pfbtops.
16006         * troff/number.c (parse_term): Improved error message.
16008 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
16010         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
16012         * Makefile: Integrate refer.
16013         * refer: New directory.
16014         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
16015         man/lkbib.man: New files.
16016         * man/Makefile: Support refer man pages.
16018         * lib/lib.h: Declare is_prime.
16019         * lib/prime.c: New file.
16021         * troff/input.c (macro_source): New function.
16022         (init_input_requests): Bind "mso" to macro_source.
16024         * troff/env.c (environment::possibly_break_line): Maintain
16025         pointer to pointer to node to be split in ndp so as to avoid
16026         using address of freed node.
16028         * troff/env.c (environment::hyphenate_line): Maintain pointer to
16029         pointer to first node to be hyphenated in startp so as to
16030         avoid using address of freed node.
16032         * troff/env.c (class trie, class hyphen_trie): Make the
16033         elements of the trie be of type char not unsigned char.
16034         Declare arguments to be const char* instead of unsigned char *.
16035         
16036         * troff/env.c (hyphenate): Initialize hbuf[0].
16038         * troff/input.c (set_string): Declare p to be char * and cast
16039         *p to unsigned char when necessary.
16041         * troff/input.c (do_define_macro): Declare s to be const
16042         char*. Cast element to unisgned char when necessary, Declare
16043         d to be an int.  Handle EOF better.
16045         * troff/Makefile, troff/input.c: Different scheme for passing
16046         definitions of MACROPATH, HYPHENFILE and DEVICE.
16048 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
16050         * tty/devascii/R.proto: Delete entry for em.
16051         * tty/devlatin1/R.proto: Likewise.
16053 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
16055         * troff/input.c (translate): Stop when we get a space. Treat eof
16056         like newline.
16058         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
16060 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
16062         * tbl/main.c (process_format): A font name following a `f'
16063         modifier that starts with a digit can be only one character long.
16064         Also deal with EOF on the second character of the font name.
16066 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
16068         * troff/input.c (token::next): Turn \~ into an
16069         unbreakable_space_node.
16070         * troff/node.c (unbreakable_space_node): New class.
16071         * troff/node.h: Declare it.
16073 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
16075         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
16076         it's >= 0, before outputting it as a single byte.
16078 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
16080         * lib/font.c: Make font_char_metric::code an int.
16081         (font::get_code): Change return type to int.
16082         (font::load): Allow code to be arbitrary integer.
16083         * lib/font.h (font::get_code): Change return type to int.
16084         (font::number_to_index): Change argument type to int.
16085         * troff/input.c (token::next):  In case 'N', allow any value.
16086         Store value in token::val.
16087         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
16088         (token::get_char, token::add_to_node_list, token::process): Get
16089         number from val.
16090         (charinfo::set_number): Change argument to int.
16091         (charinfo::get_number):  Require that NUMBERED flag be set.
16092         (get_charinfo_by_number): Store numbered characters not between 0
16093         and 255 in a dictionary.
16094         * troff/charinfo.h (get_charinfo_by_number): Change argument type
16095         to int.
16096         (charinfo::number): Change type to int.
16097         (charinfo::set_number): Change type of set_number to int.
16098         * troff/node.c (troff_output_file::put_char_width,
16099         troff_output_file::put_char): Test whether character is numbered
16100         using charinfo::numbered().
16101         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
16102         values of num.
16103         * lib/nametoindex.c: New implementation to cope with arbitrary
16104         number characters.
16106         * troff/input.c (token::operator==): Test val for
16107         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
16108         TOKEN_SIZE.
16110         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
16111         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
16113 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
16115         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
16116         variable.
16118         * all Makefiles: rm targets of cp and >.
16120         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
16121         it.
16123         * eqn/lex.c (def_table): Add dollar.
16125 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
16127         * troff/input.c (do_width): Push back newline before closing delim
16128         like do_bracket.
16130 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
16132         * groff.c (possible_command::prepend_arg): New function.
16133         (main): Prepend device -m option.
16134         * groff.sh: Put device -m options before command-line options.
16136 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
16138         * macros/tmac.an (IP): Quote argument to TP.
16140         * ps/ps.c (main): New option -b, which sets...
16141         (broken_flags): New variable.
16142         (ps_printer::~ps_printer): Incorporate the setup section in the
16143         prolog if (broken_flags & NO_SETUP_SECTION).
16144         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
16145         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
16146         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
16147         ps_printer::print_needed_font_comment,
16148         ps_printer::print_supplied_font_comment,
16149         ps_printer::print_include_font_comments,
16150         ps_printer::lookup_doc_font, ps_printer::download_fonts,
16151         ps_printer::read_download_file, read_document_fonts, add_font,
16152         skip_line, parse_fonts_arg, document_font::document_font,
16153         document_font::~document_font, document_font::download,
16154         ps_output::include_file):  Deleted.
16155         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
16156         rather than %!PS-Adobe-2.0.  Make calls to
16157         resource_manager::need_font for each font that we used. Replace
16158         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
16159         print_supplied_font_comment, print_needed_font_comment by call to
16160         resource_manager::print_header_comments. Output %%Orientation
16161         comment. Output %%Requirements: numcopies comment if ncopies > 1.
16162         Don't output the prolog directly.  Instead call
16163         resource_manager::output_prolog.  Only define #copies when ncopies
16164         > 1.  Delete calls to print_include_font_comments  and
16165         download_fonts.  Add call to resource_manager::document_setup.
16166         (ps_printer::do_file): Call resource_manager::import_file instead
16167         of including it ourselves.
16168         (ps_printer::do_import): Likewise.  Also don't call
16169         merge_import_fonts. Push userdict on the dictionary stack before
16170         and pop it afterwards.
16171         Move declaration of ps_output into ps.h.
16172         * ps/psrm.c: New file implementing resource_manager class.
16173         * ps/ps.h: New file declaring ps_output and resource_manager
16174         classes.
16175         * ps/devps/zapfdr.ps:
16176         * ps/devps/symbolsl.ps:
16177         * ps/devps/prologue:  Use 3.0 conventions.
16178         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
16179         Add default definition of BROKEN_SPOOLER_FLAGS.
16180         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
16181         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
16183 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
16185         * etc/grog.pl: New file.
16186         * Makefile (GROG): New variable.
16187         Add GROG to SUBFLAGS.
16188         * etc/Makefile (GROG): New variable.
16189         (install.nobin): Install $(GROG) rather than grog.sh.
16191 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
16193         * eqn/special.c (special_box::compute_metrics): Make the input and
16194         output strings the same.  Get the new height and depth from the
16195         predefined height and depth registers.  Also make subscript kern
16196         and skew available.
16197         (special_box::compute_subscript_kern, special_box::compute_skew):
16198         New functions.
16200         * eqn/box.c (pointer_box::compute_skew,
16201         simple_box::compute_metrics, box::top_level)
16202         * eqn/text.c (prime_box::compute_metrics,
16203         prime_box::comput_subscript_kern)
16204         * eqn/limit.c (limit_box::compute_metrics):
16205         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
16206         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
16207         negative numbers in `nr' requests with a leading 0.
16209 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
16211         * eqn/special.c: New file.
16212         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
16213         Add new rule for simple.
16214         * eqn/lex.c (token_table): Add SPECIAL.
16215         * eqn/box.h: Declare make_special_box.
16216         * eqn/Makefile: Add special.[co].
16218 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
16220         * ps/devps/prologue: Possibly set packing to true while defining.
16221         Create grops dictionary here.  Initialize local variables before
16222         defining procedures.
16223         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
16224         the dictionary stack. Set strokeadjust and overprint to false if
16225         the relevant operators are defined.
16226         (PEND): New procedure.
16227         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
16228         prologue.  Do everything else in the setup section.
16229         (ps_printer::do_import): Just call PBEGIN and PEND around the
16230         picture. Also push userdict before, and pop it afterwards.
16232 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
16234         * troff/node.c (bracket_node::tprint): Brackets were being printed
16235         1m too low.
16237         * macros/tmac.an (SH, SS): Set fill mode.
16239 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
16241         * troff/div.c (top_level_diversion::begin_page): Set
16242         high_water_mark to 0.
16244 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
16246         * man/mdate.sh: New file.
16247         * man/mdate.c: Deleted.
16248         * man/Makefile: Use mdate.sh instead of mdate.
16249         (mdate): Deleted.
16251         * eqn/lex.c (do_gsize): Supply missing argument to error message.
16253 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
16255         * man/mdate.c: New file.
16256         * man/*.man: Replace modification date by @MDATE@.
16257         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
16258         (mdate): New target.
16260         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
16261         Remove illegal input characters.
16263 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
16265         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
16267 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
16269         * troff/div.c (begin_page): Change behaviour when
16270         !first_page_begun and !break_flag.
16272         * troff/input.c (do_name_test): Return 0 if argument is empty.
16274         * troff/input.c (read_long_escape_name): Require closing ] to be
16275         at same input level as opening [.
16277         * troff/input.c (read_increment_and_escape_name): New function.
16278         (get_copy, process_input_stack): Use this for \n.
16280 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
16282         * troff/div.c (top_level_diversion::begin_page): Ignore the
16283         current value of page_number if !first_page_begun.
16285         * groff.c (main): Fix declaration of buf.
16287         * troff/input.c (do_name_test): New function.
16288         (token::next): Implement \A.
16289         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
16290         (token::description, token::add_to_node_list, token::process):
16291         Handle TOKEN_ESCAPE.
16292         * troff/token.h: New token TOKEN_ESCAPE.
16294 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
16296         * pic/main.c (do_picture): Allow space before and after filename
16297         following `<'.  Check that the filename is not empty.
16299 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
16301         * Version 1.01 released. 
16303         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
16305         * dvi/tmac.dvi: ftr HR to H.
16307         * macros/tmac.e: Round up computation of $r.
16309         * xditview/tmac.X:  Don't give up completely in compatibility mode.
16310         Use \n(.s instead of \n[.s].
16312         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
16313         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
16314         Add u to factors inside \s[...]. Rename frac to dvi-frac.
16315         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
16316         short names in the char definitions.
16318         * ps/tmac.ps: Don't give up completely in compatibility mode.
16319         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
16320         quote in front of \n(.s. Add u to factors inside \s[...].
16322 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
16324         * tty/tmac.tty: Call the nroff request.
16326         * macros/tmac.e ((x, )x):  Better definitions that work properly
16327         in a diversion.
16328         (@0, @1): Helper macros for (x.
16330         * macros/tmac.e ($s, hl): Use \l rather than \D.
16332         * tty/tmac.tty: Make it work better in compatibility mode.
16333         (pchar): Rename to tty-char.
16335         * macros/tmac.e (@E): New macro.
16336         (r, i, b, rb, bi): Use @E.
16338         * macros/tmac.e (@F): Don't use (;...) syntax.
16340         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
16341         it was modified for groff.
16343         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
16345         * macros/tmac.e (<., .>): Removed.
16346         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
16348         * macros/tmac.e: Remove check that groff is being used.
16350         * macros/tmac.e (@C): Change families only if using groff; turn
16351         compatibility mode off while changing familes. Save compatibility
16352         mode before changing families and restore it afterwards.
16354         * macros/tmac.e (@h): Remove test for offset + line length.
16356         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
16357         (lo, th, ac): Define to call @S instead of using als.
16359         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
16360         the ratio of the vertical spacing to the point size in units
16361         expressed as a percentage.  Use these instead of $10r and $10R,
16362         Delete $10r and $10R.
16364         * lib/font.c (font::load): In default computation of space_width,
16365         divide by sizescale.  Use scale_round.
16367         * macros/tmac.an (TP): Don't call `nf'.
16368         (an-do-tag): Don't call `fi'.
16370 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
16372         * troff/input.c (process_input_stack): Handle the case where
16373         spaces at the beginning of an input line are followed by a
16374         newline.
16376 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
16378         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
16379         * groff.sh: Use pic -x with the dvi device.
16381         * dvi/devdvi/FontMakefile (H): Don't use -s.
16383         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
16384         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
16385         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
16386         in FONTS.
16388 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
16390         * ps/psfig.diff: New file.
16391         * ps/tmac.psfig: New file.
16393 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
16395         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
16396         (]-): Don't call ref*do-tl.
16398         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
16400         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
16401         (fn@do-FS): Rename to fn*do-FS.
16403         * troff/input.c (transparent_translate): New function.
16404         (process_input_stack): Apply transparent_translate before calling
16405         diversion::transparent_output(unsigned char).
16407 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
16409         * troff/input.c (do_define_macro): Define the macro before calling
16410         skip_line.
16412         * xditview/Makefile: Add DEVICES variable.  Change install target
16413         to use this.
16415 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
16417         * groff.c (run_commands): Handle the possibility that there are
16418         child processes other than those forked by us.
16420 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
16422         * lib/string.c (string::append): New function.
16423         * lib/stringclass.h: Declare it.
16425 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
16427         * eqn/main.c (main): New option -N which sets
16428         no_newline_in_delim_flag. 
16429         (do_file): If no_newline_in_delim_flag is set don't allow newlines
16430         in delimiters.
16431         * groff.c (main): Pass -N on to eqn.
16432         (help, synopsis): Mention -N.
16433         * groff.sh: Implement -N.
16435 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
16437         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
16438         (]-): Call ref*do-tl if ref*need-tl is non-zero.
16439         (XP): Allow as initializer.
16441 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
16443         * troff/env.c (environment::wrap_up_field): If field_spaces are
16444         non-zero and we have a current_tab, subtract padding from
16445         tab_distance.  If this makes tab_distance <= 0, use the next tab
16446         stop instead.  If there isn't any next tab or it's a left tab,
16447         wrap up the current tab.
16448         (environment::start_field): Initialize tab_precedes_field.
16449         (environment::wrap_up_tab): If there's a current field, update
16450         pre_field_width, field_distance and tab_precedes_field.
16451         * troff/env.h (environment::tab_precedes_field): New member.
16453 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
16455         * ps/ps.c (ps_printer::do_file): New function.
16456         (ps_printer::special): Bind to `file' special.
16457         (ps_printer::do_exec): Set ndefined_styles to 0.
16459 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
16461         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
16462         Avoid stripping first character from the start of unrecognized
16463         escapes.  Use lex_error instead of error to report errors.
16464         * eqn/lex.c (get_token): Rework handling of escapes.
16465         (lex_error): Move declaration into...
16466         * eqn/eqn.h.
16468         * xditview/xditview.c (main): Make -page option work.
16470         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
16472 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
16474         * macros/tmac.s (B2): Correct size of box.
16476 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
16478         * macros/tmac.s (B2): Postpone drawing the box until in the
16479         top-level diversion.
16481         * tty/tmac.tty: Add font translations for C, CR, CW.
16483         * groff.c (synopsis, help): Document -i.
16484         * groff.sh: Implement -i.
16486         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
16487         Simplify the construction of SN.
16489         * troff/number.c (parse_term): Give `|' a higher precedence.
16490         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
16491         accordingly.
16493         * macros/tmac.s (B2): Use par@finish instead of par@reset.
16495 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
16497         * lib/string.c (string::move): New function.
16498         * lib/stringclass.h: Declare it.
16500 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
16502         * troff/env.c (distribute_space): Add optional argument
16503         `force_forward'.
16504         (environment::wrap_up_field): Call distribute_space with
16505         `force_forward' argument of 1.
16507 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
16509         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
16510         Inline it.  Move reallocation into...
16511         (string::grow1): New function.
16512         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
16513         dependencies to include library header files.
16514         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
16516 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
16518         * macros/tmac.s (@NH): Use the same number registers than -ms does
16519         for the heading level counters.  Use the same string that -ms does
16520         for the number for this heading.
16522 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
16524         * lib/new.c (operator new): Cast result of malloc to char *.
16526         * troff/input.c (spring_trap, lookup_request): Add assert that nm
16527         is not null.
16529 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
16531         * groff.c (main): Support -i.
16533 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
16535         * pic/pic.h: Include <osfcn.h>.
16537         * ps/ps.c: Add declaration of mktemp.
16539         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
16540         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
16541         argument as union wait *.
16542         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
16543         argument to union wait *.
16545 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
16547         * tty/tmac.tty: Add definition of \(co.
16549         * pic/object.c (make_arc): Only increase radius when radius
16550         strictly less than d.
16551         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
16552         more than once.
16554         * troff/env.c (environment::environment(symbol),
16555         environment::environment(const environment *)):  Initialize
16556         input_trap_count.
16558 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
16560         * tbl/main.c (main): Add exit(0).
16562         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
16564         * pic/main.c (main):
16565         * eqn/main.c (main):
16566         * tbl/main.c (main):
16567         * etc/soelim.c (main):
16568         * driver/printer.c (printer::~printer):
16569         * troff/node.c (real_output_file::~real_output_file,
16570         real_output_file::flush):  Check for errors on stdout.
16572         * most files: Add 1991 to copyright notice.
16574         * macros/tmac.s: Don't test \n(.x and \n(.y.
16576         * troff/input.c (token::next): Rename `escape_char' label to
16577         `handle_escape_char' and `normal_char' label to
16578         `handle_normal_char'.
16580 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
16582         * groff.c (main, synopsis, help): Support -a option.
16583         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
16584         to trflags while parsing options.
16586 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
16588         * troff/number.c (parse_term): With `m', `M' and `n' scale
16589         indicators, convert scale factor to hunits before scaling.
16591 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
16593         * lib/font.c (scale_round): Better test for overflow when n is
16594         negative.
16596 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
16598         * tbl/main.c (process_format): Add second argument of type
16599         options*. Change callers.  Allow opt->tab_char as well as '\t'
16600         between format items.
16602 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
16604         * macros/tmac.an (PD): With no arguments, make sure register PD is
16605         at least \n[.V].
16606         (TH): Call PD with no argument, instead of setting register PD
16607         directly.
16609 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
16611         * Version 1.00 released.
16613 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
16615         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
16617         * dvi/devdvi/DESC: Mount CW instead of CR.
16619         * dvi/tmac.dvi: Add definition of \(tm.
16621         * dvi/devdvi/texsy.map: Add lh, and rh.
16622         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
16623         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
16625         * dvi/devdvi/FontMakefile: Generate H from cmss10.
16626         * dvi/devdvi/Makefile: Install H.
16627         * dvi/devdvi/H: New file.
16629 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
16631         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
16632         be 0.
16634 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
16636         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
16638         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
16640         * macros/tmac.s (@EN): Handle the case where the equation is empty
16641         but the label is not.
16643 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
16645         * troff/groff.h: New warning category WARN_SPACE.
16646         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
16647         WARN_SPACE to warning_table.
16648         (interpolate_macro): Give a warning of type WARN_SPACE if the name
16649         is longer than two characters and is not defined, but the first
16650         two characters do make a defined name.
16652         * PROBLEMS: New file.
16654         * CHANGES: New file.
16655         * README-0.6, README-1.00: Deleted.
16657         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
16658         * xditview/devX75/Makefile: Make devX75-12.
16659         * xditview/devX100/Makefile: Make devX100-12.
16661         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
16662         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
16664 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
16666         * README-0.7: Rename to README-1.00.
16668         * macros/tmac.pic: New file.
16669         * macros/Makefile (install.nobin): Install tmac.pic.
16671 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
16673         * troff/env.c (hyphen_word): Correct the test for whether the
16674         token is a hyphen.  Reset npos to 0.
16676         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
16678 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
16680         * macros/tmac.s (ds*common-end): Call par*reset.
16681         (PE): Likewise.
16682         (par@reset-indent): Deleted.
16684         * macros/tmac.s (@IP): Divert the label.
16686 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
16688         * xditview/draw.c (setGC): Use a line width of .1m rather than
16689         .04m by default; round rather than truncate value.
16691         * tbl/table.c (class empty_entry): New class.
16692         (empty_entry::empty_entry, empty_entry::line_type): New functions.
16693         (table::add_entry): Represent empty entries by objects of type
16694         empty_entry.
16695         (table_entry::line_type): Return -1.
16696         (table::determine_row_type): Ignore entries with line_type 0.
16697         Treat type -1 as non-lines.
16699 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
16701         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
16702         macros/tmac.s: Rename \(-d to \(Sd.
16704 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
16706         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
16707         * xditview/libXdvi/DviChar.c: Likewise.
16708         * dvi/devdvi/texsy.map: Add `<<', `>>'.
16710 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
16712         * troff/div.c (top_level_diversion::begin_page): Call
16713         init_output() if the_output is 0.
16715 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
16717         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
16718         ESCAPE_c.
16719         (get_copy): Turn \E into ESCAPE_E.
16720         (token::process, asciify): Handle ESCAPE_E.
16722         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
16723         (RD): New macro.
16724         (DS): Implement `.DS R'.
16726 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
16728         * macros/tmac.s (FS): New macro.
16730         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
16732         * macros/tmac.s (cov*tl-init): Remove after first execution
16733         instead of aliasing to @nop.  Call top of page macro explicitly
16734         instead of setting trap; call @init first.  Set pg@top as top of
16735         page macro.
16736         (cov*auto-init): Deleted.  Set cov*tl-init instead of
16737         cov*auto-init as top of page trap. 
16738         (TL, LP): Do a break instead of calling cov*tl-init.
16739         (cov*print): With RP format but no TL, alias FS and FE to @FS and
16740         @FE; in this case also give a warning and always start another
16741         page. No need to set pg@top here.
16742         (cov*tl-init): Rename to cov*first-page-init.
16744         * macros/tmac.s (RP): Do `.pn 0'.
16745         (cov*tl-init): With RP format don't do `.pn 0'.
16747         * macros/tmac.s (pg@cs-top): Set no space mode.
16749         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
16750         (cov*ab-init): Alias TL, AU and AI to these.
16752 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
16754         * macros/tmac.s (@EQ): Move the space before the equation into @EN
16755         (@EN): Do nothing unless \n[dl] is > 0.
16757 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
16759         * pic/object.c (ellipse_object::radius): New function.
16761         * VERSION: Change version to 0.7.
16763         * tbl/table.c (block_entry::do_divert): Declare return type as
16764         void.
16765         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
16767 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
16769         * troff/column.c: New file.
16770         * troff/Makefile: Corresponding changes.
16772         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
16773         Friend of vunits.
16775         * troff/div.c (top_level_diversion::space): If the space causes
16776         the first-page transition and springs a trap, truncate the space
16777         to 0.
16779 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
16781         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
16782         the document.
16784         * pic/troff.c (troff_output::line_thickness,
16785         troff_output::set_fill): Do a horizontal motion to compensate for
16786         the width of the \D escape sequence.
16788 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
16790         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
16791         (not X75).
16793         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
16794         to printf.
16796         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
16797         Supply empty definition.
16798         (text_entry::simple_print, simple_text_entry::simple_print):
16799         Delete declarations.
16800         (table::add_entry): Represent empty entries by objects of type
16801         `simple_entry'.
16803 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
16805         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
16807         * tbl/table.c (left_text_entry::add_tab): New function.
16809         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
16810         initialize like LP.
16812 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
16814         * troff/env.c (environment::start_field): Give an error message if
16815         there is no next tab.
16817 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
16819         * troff/env.c (hyphenate): Skip initial elements with zero
16820         hyphenation code.
16822         * macros/tmac.s (par@init): Keep VS in points rather than units.
16824 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
16826         * pic/main.c (main): Implement `-c' option.
16827         * pic/output.h: Declare make_tpic_output().
16828         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
16829         protected.
16830         (tpic_output): New class.
16831         (tpic_output::tpic_output, tpic_output::set_pen_size,
16832         tpic_output::command, make_tpic_output): New functions.
16834 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
16836         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
16837         if they're not already defined.
16838         * tbl/table.c (init_output): Don't test \n(.g.
16840         * troff/input.c (do_if_request): Delete `g' condition. Recognize
16841         `d', `r' and `c' conditions even in compatibility mode.
16843 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
16845         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
16846         box.
16848 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
16850         * troff/env.h (environment::prev_line_interrupted): New member.
16851         (environment::get_prev_line_interrupted): New function.
16852         * troff/env.c (environment::newline): Set prev_line_interrupted.
16853         (environment::environment(const environment *),
16854         environment::environment(symbol)): Initialize
16855         prev_line_interrupted.
16856         * troff/input.c (process_input_stack): Don't give special
16857         treatment to space and newline at the beginning of the line if the
16858         previous line was interrupted.
16860 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
16862         * eqn/eqn.y: Disallow PRIME by itself.
16863         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
16864         PRIME.
16865         (def_table): Remove definition of '.  Define prime to be `.
16867         * eqn/eqn.y: Split off part of rule `script' into a new rule
16868         `nonsup'.
16870 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
16872         * macros/tmac.s ({, }): New string aliases.
16874 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
16876         * README-0.7: New file.
16878 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
16880         * macros/tmac.s: New file.
16881         * man/groff_ms.man: New file.
16882         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
16883         * Makefile.bd: Similarily.
16884         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
16885         definition of TMAC_S.
16886         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
16887         * macros/TODO: New file.
16889 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
16891         * troff/env.c (right_justify): New function.
16892         (init_env_requests): Bind this to request "rj".
16893         (center_lines): Set right_justify_lines to 0. If we get a bad
16894         integer, center 1 line.
16895         (environment::environment(symbol), environment::environment(const
16896         environment *)): Initialize right_justify_lines.
16897         (environment::get_right_justify_lines): New function.
16898         (init_env_requests): Bind this to number_register ".rj".
16900         * troff/env.c (environment::choose_breakpoint): Implement
16901         hyphenation_margin and hyphenation_space.
16902         (environment::get_hyphenation_space,
16903         environment::get_hyphenation_margin): New functions.
16904         (init_env_requests): Bind these to .hys and .hym.
16905         (hyphenation_space_request, hyphenation_margin_request): New
16906         functions
16907         (init_env_requests): Bind these to hys and hym.
16908         (environment::environment(symbol), environment::environment(const
16909         environment *)): Initialize hyphenation_margin and
16910         hyphenation_space.
16911         * troff/env.h: Corresponding changes to class environment.
16913 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
16915         * troff/div.c (blank_line): Always do a break.
16917         * eqn/box.c (do_text): Turn off escapes while appending text to
16918         string.
16920 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
16922         * troff/input.c (while_break_request, while_continue_request): New
16923         functions.
16924         (init_input_requests): Bind these to "break" and "continue".
16925         (while_depth, while_break_flag): New variables.
16926         (while_request): Update while_depth.  Break out of loop if
16927         while_break_flag is set.
16929 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
16931         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
16932         rather than 0.
16934 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
16936         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
16938         * stringify: New file.
16939         * Makefile (groff.o): Use stringify.
16941         * xditview/tmac.X: Remove definition of \(rn.
16942         * xditview/libXdvi/DviChar.c: Remove radicalex from
16943         Adobe_symbol_map.
16945 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
16947         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
16948         (alphabetic_block_entry::alphabetic_block_entry,
16949         alphabetic_block_entry::divert, alphabetic_block_entry::print):
16950         New functions.
16951         (block_entry::divert): Split off body into ...
16952         (block_entry::do_divert): If the block is alphabetic, subtract 2n
16953         from the line length; also update the span width to dl+2n, and the
16954         alphabetic span width to dl.
16956         * driver/input.c (do_file):  While reading argument to D command,
16957         when expanding buffer, multiply szp by sizeof(int) rather than 2
16958         in the argument to memcpy.
16960         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
16961         width of alphabetic columns.
16963 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
16965         * troff/node.c (lookup_family): Supply second argument to lookup.
16967         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
16968         search, return immediately if v is 0.
16970         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
16971         (troff_output::start_picture): Set this reg.
16972         (troff_output::end_picture): Remove this reg
16973         * eqn/box.c (box::extra_space): Don't produce `\x's if
16974         EQN_NO_EXTRA_SPACE_REG is defined.
16976         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
16977         * eqn/text.c (split_text): Map ' to \(fm when it's the first
16978         character.
16980 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
16982         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
16983         requests.
16985         * troff/div.c (top_level_diversion::top_level_diversion):
16986         Initialize page_number to 0.
16988 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
16990         * groff/troff (environment::environment(const environment *)):
16991         Initialize name to e->name, rather than "anonymous".
16993 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
16995         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
16996         requested_page.  Split middle part into ...
16997         (FindPage): New function.
16998         (SetValues): If we don't yet know the last page, and the requested
16999         page is greater than the current page, call FindPage.
17000         Update the font_map_string before doing this.
17002         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
17003         Translate \(lh and \(rh into left and right double arrows.
17005         * troff/node.c (class hyphen_inhibitor_node): New class.
17006         (hyphen_inhibitor_node::hyphen_inhibitor_node,
17007         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
17008         hyphen_inhibitor_node::type,
17009         hyphen_inhibitor_node::get_hyphenation_type): New functions.
17010         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
17011         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
17012         word.
17014 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
17016         * troff/node.h (dummy_node::get_hyphenation_type,
17017         transparent_dummy_node::get_hyphenation_type):  Declare them.
17018         * troff/node.c: (dummy_node::get_hyphenation_type,
17019         transparent_dummy_node::get_hyphenation_type): New functions.
17021 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
17023         * xditview/libXdvi/draw.c: If M_PI not defined after including
17024         math.h, then define it.
17026         * xditview/Makefile: Add definition of AR. Pass it to the submake
17027         in libXdvi.
17028         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
17030 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
17032         * troff/dictionary.h (object_dictionary::alias): Declare return
17033         value as int.
17034         * troff/dictionary.c (object_dictionary::alias): Return non-zero
17035         if the old name was defined.
17036         * troff/input.c (alias_macro): Give a warning if the old name was
17037         not defined.
17038         * troff/reg.c (alias_reg): Likewise.
17040 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
17042         * troff/input.c (token::next): Delete implementation of \R.
17044         * macros/Makefile: Strip comments from tmac.e while installing it.
17046         * troff/input.c: New variable `nroff_mode'.
17047         (troff_request, nroff_request): New functions.
17048         (init_input_requests): Bind `troff' and `nroff' to troff_request
17049         and nroff_request.
17050         (do_if_request): Compute results of t and n conditions from
17051         nroff_mode.
17053         * text/text.c (split_text): Fix typo in >=.
17055         * eqn/lex.c: Add definition of `==' to def_table.
17057 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
17059         * pic/tex.c (tex_output::start_picture): Change the definitions of
17060         \graph and \graphtemp so that they work properly with Plain TeX.
17062         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
17063         argument to `ar' is not less than the first.
17065         * pic/pic.y: Allow a comma between elements of the variable list
17066         in the argument to `reset'.
17068         * pic/object.c (arc_object::arc_object): Fix computation of
17069         radius.
17071         * eqn/main.c (main): Add exit(0).
17073 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
17075         * troff/div.c (begin_page): Test no_space_mode after doing the
17076         break, but still push the page ejector cookie before doing the
17077         break.  Also set the next page number after doing the break.
17078         
17079         * xditview/xditview.c (NewFile): Don't set the title and icon name
17080         if this is the first file and its name is `-'.
17081         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
17082         the X75 and X100 devices.
17083         (main): If a device has the XT_OPTION flag set and there's exactly
17084         one file argument, pass the driver -xrm and -title options to set
17085         the icon name and window title to the name of the file.
17087         * troff/env.c (environment_switch): If there was an argument but
17088         it wasn't a valid number or name, then pop an environment but
17089         don't give an error message on underflow.
17091         * troff/number.c (start_number): Correct spelling in error message.
17093         * troff/input.c (token::delimiter): Don't print an error message
17094         if err is false.
17096         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
17097         ParseDrawFunction if dw->display_enable is true.
17099 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
17101         * pic/pic.y: Parse text positioning like normal attributes, so as
17102         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
17103         positioning attribute.
17105 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
17107         * tbl/main.c (process_data): When in state START while reading a
17108         text block, don't change to state MIDDLE if c is a newline.
17110 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
17112         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
17113         so as to avoid shadowing parameter.
17115 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
17117         * tbl/table.c (trim_space): Deleted.
17118         (table::add_entry): Don't call trim_space.
17120 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
17122         * VERSION: Change version to 0.6.
17124         * troff/number.c (parse_expr): Make == work.
17126 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
17128         * man/grog.man: New file.
17129         * man/Makefile: Add grog.n to MAN1PAGES.
17130         * etc/grog.sh: New file.
17131         * etc/Makefile: Install grog.sh as grog.
17133 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
17135         * troff/input.c (token::next): Implement \E.
17137 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
17139         * xditview/tmac.X: Change font translations to match tmac.ps.
17141         * troff/input.c (non_empty_name_warning): Don't give a warning if
17142         `\{' terminates the name.
17144 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
17146         * ps/devps/symbol.diff: New file.
17147         * ps/devps/FontMakefile: Mention symbol.diff.
17149 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
17151         * troff/node.c (font_position): Use get_long_name to read the
17152         external_name.
17154         * troff/env.c (environment_switch): If we get a number that's < 0
17155         or >= NENVIRONMENTS, treat it like a name.
17156         Change NENVIRONMENTS to 10.
17158         * troff/groff.h: Remove definition of FONTS_MAX.
17159         * troff/node.h (class font_family): Make map a pointer instead of
17160         an array. Add a map_size member. Make it a class. Make nm const
17161         and public. Make invalidate_fontno a friend.
17162         * troff/node.c: Define font_table_size. Make font_info a pointer
17163         rather than an array.
17164         (class troff_output_file): Allocate font_position dynamically. Add
17165         nfont_positions member.
17166         (troff_output_file::set_font): Grow font_position if necessary.
17167         (troff_output_file::~troff_output_file): Delete font_position.
17168         (troff_output_file::troff_output_file): Allocate font_position.
17169         (grow_font_table): New function.
17170         (troff_output_file::really_begin_page,
17171         troff_output_file:really_copy_page): Use nfont_positions rather
17172         than FONTS_MAX.
17173         (mount_font_no_translate, mount_style): Call grow_font_table if
17174         necessary.
17175         (font_family::font_family): Allocate map.
17176         (font_family::make_definite): Grow map if necessary. Use
17177         font_table_size instead of FONTS_MAX.
17178         (font_family::~font_family): New function.
17179         (invalidate_fontno): Use font_family::map_size.
17180         (get_fontno, env_space_width, env_half_narrow_space_width,
17181         env_narrow_space_width, symbol_fotno, is_good_fontno,
17182         get_bold_fontno, make_glyph_node): Use font_table_size rather than
17183         FONTS_MAX.
17184         (next_available_font_position): Never return 0.
17186 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
17188         * ps/tmac.ps: Add font translations for compatibility with dpost.
17190 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
17192         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
17193         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
17194         Move definitions baseline_sep, shift_down, column_sep,
17195         matrix_side_sep into...
17196         * eqn/box.c: Add them to param_table.
17197         * eqn/pbox.h: Add declarations to pbox.h.
17199         * troff/input.c (set_string): Cast value to unsigned char *.
17201         * troff/token.h (process_input_stack): Declare it static before
17202         declaring it a friend.
17204 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
17206         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
17207         and bottom.
17208         * dvi/devdvi/EX: Regenerate.
17210         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
17211         transparent.
17213 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
17215         * eqn/lex.c: In defaults_table, make definition of `dot' call
17216         `dot_def'.  Don't explicitly make it roman.  Similarily for other
17217         accents.
17219         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
17220         argument.
17221         (for_input::get, for_input::peek): Use this.
17222         (do_for): Add by_is_multiplicative argument.
17223         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
17224         Change semantic value of optional_by to be a double plus a flag
17225         saying whethet the by clause is multiplicative.
17227         * eqn/lex.c (get_delimited_text): Remember location of start of
17228         definition.  Improve error handling when EOF is encountered.
17230         * lib/font.h: Rename handle_x_command to
17231         handle_unknown_font_command.
17232         * lib/font.c (font::load): Call handle_unknown_font_command for
17233         any unknown command in the font description file.  Don't call
17234         handle_x_command. Include the name of the command in the argv.
17235         Improve message for unknown command after kernpairs or charset
17236         command.
17237         * ps/ps.c (ps_font::handle_x_command): Rename to
17238         handle_unknown_font_command.  Remove message about `x download'
17239         command.  Give error message for wrong number of arguments.
17240         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
17241         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
17242         handle_unknown_font_command. Give an error message for wrong
17243         number of arguments.  Rename design_size to designsize.
17244         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
17245         checksum', `designsize' instead of `design_size'.
17247 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
17249         * eqn/*.[chy]: Change underaccent to uaccent.
17251         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
17252         give it the same precedence as ACCENT.
17253         * eqn/other.c (make_underaccent_box): New function.
17254         * eqn/box.h: Declare it.
17255         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
17256         def_table.
17258 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
17260         * pic/pic.y (reset_all): New function. Called in rule for RESET.
17261         (parse_init): Call reset_all.
17262         (define_variable): When defining scale reset only those
17263         pre-defined variables that are scaled.
17264         (defaults_table): Add `scale' as non-scaled value.
17266         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
17267         together with the text; allow any number of positioning words;
17268         allow center as a positioning word.
17270         * pic/object.c (output::compute_scale): Get picture maximum height
17271         and width from variables called maxpswid and maxpsht.
17272         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
17274 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
17276         * pic/object.c (object_spec::make_text): Multiply textht by number
17277         of text items.
17279         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
17280         occur.
17281         (do_sprintf): New function.
17282         (pic.gperf): Add sprintf token.
17283         (text, sprintf): New rules.
17285         * pic/pic.y: `rand()' with no arguments returns a random number
17286         in the range [0,1).
17288         * pic/pic.y: Allow a bare expression to be an attribute: change
17289         precedences to support this.  Change optional_ordinal rule to
17290         optional_ordinal_last to avoid reduce/reduce conflict.
17291         * pic/object.c (object_spec::object_spec): Initialize direction.
17293         * pic/pic.y: Implement ^ operator meaning exponentiation.
17295         * troff/node.h: Add default argument to mount_font.
17296         * troff/node.c (font_position): Read an optional third argument
17297         giving the external_name.
17298         (mount_font): Add optional argument giving the external_name.
17299         (mount_font_not_translate): Have additional argument giving
17300         external name.  Use this name to load the font.  Pass both names
17301         to font_info::font_info.
17302         (font_info::font_info): Have additional argument giving
17303         external_name.
17304         (class tfont): New member external_name.
17305         (font_info::get_tfont): Use external name to construct tfont_spec.
17307 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
17309         * eqn/lex.c (init_table): Add argument giving device.  Define
17310         name of device to be "1".
17311         (do_ifdef): Counts as true if the argument has been defined with
17312         `define'.
17313         * eqn/main.c (main): Call init_table with device argument. Make
17314         device local to main.
17315         * eqn/eqn.h: Change declaration of init_table. Remove declaration
17316         of device.
17318         * pic/lex.c (get_delimited): Allow text to be delimited by
17319         matching {}s.  Don't recognize ending delimiter within a string.
17321         * troff/input.c (get_delim_name): New function.
17322         (token::next): Implement \C.
17324         * lib/font.c (font::load): Grok ---.  Add an alias for each
17325         character based on its code.
17326         (font::get_code_width): Deleted.
17327         * lib/font.h (class font): Declare font::number_to_index().
17328         Remove declaration of font::get_code_width.
17329         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
17330         to indices of named characters.
17331         (font::number_to_index): New function.
17332         * troff/input.c (font::number_to_index): New function.
17333         (get_charinfo_by_number, charinfo::get_number,
17334         charinfo::set_number): New functions.
17335         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
17336         (token::process, token::description, token::get_char,
17337         token::add_to_node_list, token::operator==): Handle
17338         TOKEN_NUMBERED_CHAR.
17339         * troff/charinfo.h: Declare get_charinfo_by_number,
17340         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
17341         charinfo class.
17342         (charinfo::numbered): New function.
17343         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
17344         * troff/env.h (class environment): Remove declaration of ...
17345         * troff/env.c (environment::make_numbered_char_node): Deleted.
17346         * troff/node.c (make_numbered_node): Deleted.
17347         (class numbered_glyph_node): Remove.
17348         (troff_output_file::put_char_width, troff_output_file::put_char):
17349         Handle numbered chars.
17350         (troff_output_file::numbered_char): Removed.
17351         (tfont::get_code_width): Removed.
17352         (make_glyph_node): Don't search special fonts for numbered
17353         characters.
17354         * troff/node.h: Remove declaration of make_numbered_node.
17355         * driver/input.c (do_file): Handle N command.
17356         * driver/printer.h: Add declaration of ...
17357         * driver/printer.c (printer::set_numbered_char): New function.
17358         * dvi/tfmtodit.c (main): Generate unnamed entries.
17359         * ps/devps/afmtodit: Likewise.
17360         * xditview/xtotroff.c (MapFont): Likewise.
17361         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
17363         * tbl/main.c (process_format): If multiple widths are specified
17364         for a column but all the widths are the same, don't give an error
17365         message.
17367         * tbl/table.c (table::do_row): If the current row is all lines and
17368         the stuff doesn't contains a line, mark the top of the row after
17369         printing stuff before the row.  If the current row is not all
17370         lines and the stuff doesn't contain a line, don't unnecessarily
17371         mark the top of the row before printing the stuff.
17372         
17373 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
17375         * troff/groff.h: Remove MAX_PATH.
17376         * troff/input.c (open_file): Dynamically allocate space for the
17377         path.
17378         (open_mac_file, process_macro_file): Corresponding changes.
17380 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
17382         * troff/node.h (class output_file): Make copy_file pure.  Add
17383         vspace method ifdef COLUMN. Add is_printing method.
17384         * troff/node.c: Add class printing_reg. Add class
17385         real_output_file. Derive other output_file classes from
17386         real_output_file; in these classes rename begin_page to
17387         really_begin_page, print_line to really_print_line, copy_file to
17388         really_copy_file, transparent_char to really_transparent_char.
17389         Move output_file::flush to real_output_file. Add printing member
17390         to class output_file.
17391         * troff/div.h: Remove printing member from top_level_diversion.
17392         Add vspace member function to class diversion ifdef COLUMN. Add
17393         some declarations ifdef COLUMN.
17394         * troff/div.c (top_level_diversion::copy_file,
17395         top_level_diversion::transparent_output,
17396         top_level_diversion::output): Don't test printing member before
17397         output.
17398         * troff/input.c: Handle initial variable_space_request ifdef
17399         COLUMN.
17400         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
17401         but comment it out.
17403 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
17405         * troff/div.c (diversion::need): Make any space forced.  If we
17406         sprung a trap, set truncated_space to minus the distance to the
17407         trap and set needed_space to the amount that was needed.
17408         (top_level_diversion::space): A forced space turns no_space_mode
17409         off.
17410         (class constant_vunits_reg): New class.
17411         (init_div_requests): Implement number registers .trunc and .ne
17412         using constant_vunits_reg.
17413         (class truncated_space_reg): Deleted.   
17415         * troff/div.h: Don't have a no_space_mode member in diversion.
17416         Instead have it in top_level_diversion.
17417         * troff/div.c (diversion::diversion): Don't initialize
17418         no_space_mode.
17419         (top_level_diversion::top_level_diversion): Initialize
17420         no_space_mode.
17421         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
17422         (macro_diversion::output): Don't clear no_space_mode.
17424         * troff/input.c (diverted_space_node::reread): Don't call
17425         environment::do_break.  In fill mode, act like a blank line.
17426         (diverted_copy_file_node::reread): Don't call
17427         environment::do_break.
17429         * troff/div.c (blank_line): New function.
17430         * troff/div.h: Declare it.
17431         * troff/input.c (process_input_stack): Call it.
17433         * troff/div.c (truncated_space_reg::get_string): New function.
17434         (init_div_requests): Bind to .trunc.
17435         (space_request, top_level_diversion::space,
17436         top_level_diversion::output, macro_diversion::space,
17437         macro_diversion::output): Update truncated_space.
17438         (macro_diversion::output): Redo calculations when trap sprung.
17439         (macro_diversion::output, macro_diversion::space): No need for
17440         trap_flag.
17442         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
17443         after truncating post line spacing.
17445 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
17447         * ps/devps/prologue (MF, SF): Make them work even if setfont is
17448         defined as a procedure rather than as an operator.
17450 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
17452         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
17454 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
17456         * troff/div.c (top_level_diversion::output): Merge
17457         output_file::print_line and output_file::end_of_line member
17458         functions.
17459         * troff/div.h (class output_file):
17460         * troff/node.c (troff_output_file::print_line,
17461         troff_output_file::end_of_line, output_file::end_of_line,
17462         ascii_output_file::print_line, suppress_output_file::print_line):
17463         Corresponding changes.  
17465 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
17467         * troff/input.c (token::next): Don't give a warning for `\.'.
17469         * troff/env.c (environment::get_center_lines): New function.
17470         (init_env_requests): Bind number register .ce to it.
17471         * troff/env.h: Declare it.
17472         * tbl/table.c (table::init_output): Define reset macro to restore
17473         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
17474         Then do .ce 0.
17475         (table::print): If center option not given, then imply center
17476         option if SAVED_CENTER_REG > 0.
17478 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
17480         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
17481         Troff.ps from DOWNLOAD.
17482         
17483         * troff/Makefile: Change comment in DEFINES to avoid confusing
17484         System V make.
17486         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
17487         code.  Don't try to catch errors with stopped.
17488         (check_line_lengths): New function.
17489         * ps/devps/prologue (EXEC): Deleted.
17490         (EBEGIN, EEND): New procedures.
17492 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
17494         * troff/input.c: Include request.h before node.h.
17495         * troff/node.c: Likewise.
17496         * troff/env.c: Likewise.
17497         * troff/div.c: Likewise.
17498         * troff/node.h (class special_node): Store argument as a macro
17499         rather than a char *.
17500         * troff/node.c (special_node::special_node, special_node::copy):
17501         Grok this.
17502         (special_node::~special_node): Deleted.
17503         (special_node::tprint): Deleted.
17504         (special_node::tprint_start, special_node::tprint_end,
17505         special_node::tprint_char): New functions.
17506         (troff_output_file::special): Deleted.
17507         (troff_output_file::start_special, troff_output_file::end_special,
17508         troff_output_file::special_char): New functions.
17509         * troff/input.c (special_node::tprint): New function.
17510         (do_special): Use macro not char *.
17511         (do_transparent_macro): Deleted.
17512         (token::next): Don't call do_transparent_macro.
17514         * troff/input.c (token::next): Add 'Y' case.
17515         (do_transparent_macro): New function.
17516         * troff/node.c (troff_output_file::special): Handle newlines with
17517         argument using new continuation convention.
17518         * driver/input.c (get_string): Cope with continuation convention.
17519         (do_file): Don't call skip_line after calling get_string(1).
17520         * ps/ps.c (ps_printer::special, ps_printer::do_import,
17521         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
17522         arg.
17523         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
17524         with +.
17526 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
17528         * troff/input.c (asciify): By default, illegal input characters
17529         should return empty string.
17531         * troff/input.c (copy_file): Handle first page transition like title.
17532         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
17534         * troff/input.c (token::next): Improve error message for EOF after
17535         escape character.
17536         (input_char_description): New function.
17537         (get_char_for_escape_name): Use input_char_description.
17538         (token::next): Warn about unrecognized escape sequences.
17539         (warning_table): Add WARN_ESCAPE.
17540         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
17541         accordingly.
17543         * troff/token.h: Remove declaration of process_input_stack.
17545         * troff/input.c: Remove declaration of init_hyphen_requests.
17546         * troff/request.h: Correct spelling in declaration of same.
17548         * troff/input.c (token::next): Check whether escape_char is 0.
17550 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
17552         * groff.c (main, usage, help): Implement -P and -L options.
17553         * groff.sh: Likewise.
17555         * troff/input.c (token::next): Use some gotos to avoid code
17556         duplication.
17558         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
17559         Avoid calling symbol::symbol if name empty.
17561 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
17563         * troff/input.c (init_input_requests): Make \n(.x return the major
17564         version number and \n(.y return the minor version number.
17565         * troff/Makefile: Construct file majorminor.c defining
17566         major_version and minor_version automatically from ../VERSION.
17568         * troff/node.c (class glyph_node): Make operator new and operator
17569         delete public.
17570         (class ligature_node): Similarily.
17572         * troff/input.c (operator==(const macro &, const macro &)): New
17573         function.
17574         (non_interpreted_node::same): Use this.
17575         (string_iterator::string_iterator): Make macro& argument const.
17577         * troff/input.c (input_iterator::get): New function. Don't make
17578         asciify_macro or class non_interpreted_node friends of class
17579         input_iterator.
17580         (non_interpreted_node::interpret): Use input_iterator::get.
17581         (asciify_macro): Likewise.
17583         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
17584         ~non_interpreted_node): Deleted.
17585         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
17586         Deleted.
17588         * troff/symbol.h: Make all symbol member functions const.
17590         * lib/strtol.c: New file.
17591         * lib/Makefile: Add strtol.c.
17592         * Makefile: Define STRTOL as strtol.o to include strtol in
17593         libgroff.a.
17595 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
17597         * pic/troff.c (troff_output::simple_circle): Divide by scale.
17599 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
17601         * troff/input.c (do_special): Use input_level.
17603         * troff/token.h (TOKEN_BACKSPACE): New token.
17604         (token::backspace): New function.
17605         * troff/input.c (token::description, token::next, token::process):
17606         Grok TOKEN_BACKSPACE.
17607         (do_special): Turn TOKEN_BACKSPACE back into \b.
17609         * troff/token.h (token::leader): New function.
17610         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
17612         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
17614         * troff/input.c (do_special): Use token::description in error
17615         message.
17617 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
17619         * troff/input.c (decode_args): Combine quoted and
17620         quote_input_level variables. Make it a for (;;) loop.
17622         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
17624         * troff/input.c (read_long_escape_name): The test for whether to
17625         expand buffer was off by 1.
17626         (read_string): Similarily.
17628 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
17630         * troff/input.c: Use `const int' rather than `static const int'.
17632         * troff/div.h (diversion::copy_file): Declare as pure virtual.
17633         (macro_diversion::copy_file): New function.
17634         * troff/node.h: New class diverted_copy_file_node.
17635         * troff/node.c: Implement it.
17636         * troff/input.c (copy_file): Use diversion::copy_file. Handle
17637         first page transition by pushing a diverted_copy_file_node.
17638         * troff/input.c (token::next, process_input_stack): Don't handle
17639         COPY_FILE_REQUEST.
17641 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
17643         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
17644         whether space widths need adjusting.
17646         * troff/charinfo.h: Generalize translated_to_space to
17647         special_translation so as to allow translation to \&.
17648         * troff/input.c (translate): Allow translation to \&.
17649         (charinfo::*): Corresponding changes.
17650         * troff/node.c (make_node, node::add_char): Corresponding changes.
17651         * troff/node.h (dummy_node::dummy_node): Allow optional first
17652         argument.
17654         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
17655         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
17656         TOKEN_REQUEST.
17657         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
17658         TOKEN_REQUEST with an argument of TITLE_REQUEST.
17659         (token::process): Grok that.
17660         * troff/input.c (copy_file): Handle first page transition like
17661         title by pushing a COPY_FILE_REQUEST cookie.
17662         (token::next, process_input_stack): Grok that.
17663         * troff/node.h (output_file::copy_file): Add x and y arguments.
17664         Make it non-pure.
17665         * troff/div.c (top_level_diversion::copy_file): Supply them.
17666         * troff/node.c (troff_output_file::copy_file): Add x and y
17667         arguments; moveto specified position.  Invalidate font_position
17668         array after copying file.
17669         (output_file::copy_file): New function.
17670         (suppressed_output_file::copy_file, ascii_output::copy_file):
17671         Removed.
17672         * troff/input.c (transparent_file): New function.
17673         (init_input_requests): Bind to "trf".
17674         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
17675         (process_input_stack): Likewise.
17677         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
17679         * troff/node.c (init_node_requests): New number registers .kern
17680         pointing to global_kern_mode, and .lg pointing to
17681         global_ligature_mode.
17683         * troff/node.c (ligature): Don't change it if we get a bad
17684         integer.
17686         * troff/input.c (do_define_string): Don't strip tabs.
17688         * troff/input.c (asciify_macro): Make the string_iterator auto.
17690         * troff/node.c (init_font_requests): Rename to...
17691         (init_node_requests):
17692         * troff/node.h: Change declaration.
17693         * troff/input.c (main): Change call.
17695         * troff/input.c (node::reread, diverted_space_node::reread): New
17696         methods.
17697         (process_input_stack): Call reread rather than
17698         get_diverted_space_node.
17699         * troff/node.c (node::get_diverted_space_node,
17700         diverted_space_node::get_diverted_space_node): Removed.
17701         * troff/node.h: Declare reread methods instead of
17702         get_diverted_space_node methods. Make `n' member private.
17703         * troff/input.c: (token::diverted_space): Removed.
17704         * troff/token.h: Removed declaration.
17705         
17707 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
17709         * eqn/script.c (script_box::compute_metrics): Don't let
17710         SUP_RAISE_FORMAT become negative.
17712         * tbl/table.c (table::do_row): Entries that don't end in the
17713         this row shouldn't make the row non-blank.
17714         
17715         * tbl/table.c (table::make_columns_equal): Only set the width of
17716         columns which are marked as equal.
17717         
17718         * tbl/main.c (process_data): Before issuing excess data error,
17719         if last character was a newline unget it; then get it again after
17720         the error.  Also include the contents of the entry in the message.
17722         * groff.c: New file.
17723         * Makefile: Build groff from groff.c.  Make it possible to use
17724         either groff.sh or groff.c as groff.
17725         * Makefile.bd: Similarily.
17727 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
17729         * groff.sh: Don't delay expansion of $@ in assignment to files.
17730         Remove occurrences of \".
17732 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
17734         * all Makefiles: Simplify and rearrange.
17736         * Makefile: Handle fmod like malloc.
17737         * lib/Makefile: Similarily.
17738         * lib/fmod.c: Remove #ifdef NEED_FMOD.
17740         * Makefile: Rename OPTIMISE to OPTIMIZE.
17742         * groff.sh: Remove assignment to PATH.
17743         * Makefile: Remove SHPATH variable.
17744         * Makefile.bd: Similarily.
17746         * groff.sh: Add -V option to print the pipeline instead of
17747         executing it.
17749 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
17751         * lib/font.c: Split off file searching into ...
17752         * lib/fontfile.c: New file.
17754         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
17756 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
17758         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
17759         Also change misleading comment.
17760         (table::do_vspan): Change similarily misleading comment.
17761         * tbl/main.c (process_data): A format row with an explicit `s'
17762         uses up a data line, even if all the other columns are `_' or `='.
17764         * troff/input.c (token::description): Fix description of
17765         TOKEN_DUMMY and TOKEN_EMPTY.
17767 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
17769         * groff.sh: Fix description of -Z in help message.
17771 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
17773         * pic/object.c (object_spec::make_object): Allow negative and zero
17774         line thicknesses.
17775         * pic/pic.y: Give linethick default value of -1.0.
17776         * pic/troff.c (troff_output::troff_output): Initialize
17777         last_line_thickness to BAD_THICKNESS.
17778         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
17779         (troff_output::line_thickness): Canonicalize negative thicknesses
17780         to RELATIVE_THICKNESS.
17781         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
17782         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
17783         to -1.0.
17784         (tex_output::start_picture): Set pen_size to -2.0.
17786         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
17787         0, then use 0 linewidth.
17788         (ps_printer::ps_printer): Initialize line_thickness to -1.
17790         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
17792         * ps/devps/symbolchars: Remove `or'.
17793         * ps/tmac.ps: Implement \(or with .char.
17795         * ps/devps/symbolchars: Move most characters into textmap.
17796         * ps/devps/textmap: Add names for troff bracket characters. Remove
17797         ul, ru, br, bv.
17799         * ps/devps/TSymbol.ps: Removed.
17800         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
17801         * ps/tmac.ps: Do with .char what TSymbol did.
17802         * ps/devps/download: Remove TSymbol.
17804         * ps/devps/T: Removed.
17805         * ps/devps/Troff.ps: Removed.
17806         * ps/devps/Troff.afm: Removed.
17807         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
17808         * ps/devps/download: Remove Troff.
17809         * ps/devps/FontMakefile: Remove T target.
17810         * ps/devps/DESC-A4: Remove T from font list.
17811         * ps/devps/DESC-letter: Likewise.
17813         * troff/input.c (macro_to_node): Rename to ...
17814         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
17815         character's definition while processing it.
17816         * troff/node.c (node::add_char, make_node): Change calls to
17817         macro_to_node accordingly.
17819         * troff/input.c (token::next): Translate \_ to \(ul.
17821         * tty/devascii/R.proto: Add `|'.
17822         * tty/devlatin1/R.proto: Likewise.
17824 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
17826         * man: Put the version number in all the man pages.
17828 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
17830         * Makefile.bd: New file.
17831         * README.bd: New file.
17833         * VERSION: New file.
17834         * lib/version.c: Removed.
17835         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
17836         in clean target.
17838         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
17839         environment variable.
17841         * all Makefiles: Split install target into install.bin for
17842         binaries, and install.nobin for everything else.
17843         * Makefile: Add bindist target.
17845         * man/afmtodit.man: New file.
17846         * man/Makefile: Add afmtodit.n to MAN1PAGES.
17847         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
17848         in BINDIR.
17849         * ps/Makefile: Pass BINDIR to make install in devps.
17851         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
17852         the space character.
17854         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
17856 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
17858         * ps/ps.c: Redo font downloading.
17859         * ps/devps/download: New file.
17860         * ps/devps/Makefile: Add download to DEVICEFILES.
17861         * ps/devps/afmtodit: Remove -d option.
17862         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
17863         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
17864         * ps/devps/zapfdr.ps: Likewise.
17865         * ps/devps/TSymbol.ps: Likewise.
17867 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
17869         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
17871 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
17873         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
17874         then strip the first line if it starts with %.
17875         * Makefile: Add a comment about this.
17877         * man/tfmtodit.man: New file.
17878         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
17879         * dvi/Makefile: Install tfmtodit in BINDIR.
17881         * dvi/tfmtodit.c (usage): Mention -v option.
17883 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
17885         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
17886         * troff/node.c (troff_output_file::transparent_char): Don't call
17887         flush_tbuf.
17889         * eqn: Add check_tabs method to most box classes.
17890         * eqn/box.c (box::top_level): Call check_tabs.
17892         * eqn/script.c (script_box::output): Use \Z.
17893         * eqn/limit.c (limit_box::output): Use \Z.
17895         * eqn/box.c (box::top_level): Use itoa.
17897 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
17899         * dvi/tmac.dvi: Add font translations for CR, C, TT.
17900         * dvi/devdvi/Makefile: Don't make links to CW.
17902         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
17903         HX, HD.
17904         * xditview/tmac.X: Likewise.
17906         * troff/node.c: Add font translation feature.
17907         (get_font_translation): New function.
17908         (symbol_fontno): Translate the font name.
17909         (mount_font_no_translate): Rename to mount_font to this.
17910         (mount_font): New function.
17911         (font_family::make_definite): Call mount_font_no_translate instead
17912         of mount_font.
17913         (mount_style): Translate the font name.
17914         (font_translate): New function.
17915         (init_font_requests): Bind "ftr" to font_translate.
17917         * ps/devps/prologue (SN): New procedure that rounds a position to
17918         the nearest (pixel + (.25,.25)).
17919         (DL): Use SN to round endpoints.
17921         * lib/version.c: Changed version to 0.5.
17923 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
17925         * Makefile: Move definition of PAGE to the very beginning, so that
17926         people are less likely to miss it.
17928 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
17930         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
17932         * troff/env.c (environment::choose_breakpoint): Make `can't find
17933         breakpoint' error a warning of type WARN_BREAK.  Change message to
17934         `can't break line'.
17935         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
17936         code 040000.
17937         * troff/input.c: Add WARN_BREAK to warning_table.  Include
17938         WARN_BREAK in DEFAULT_WARNING_MASK.
17940         * tty/tmac.tty: Add definition of \(+-.
17942         * groff.sh: Remove `--' option to set command.
17944         * dvi/devdvi/texsy.map: Remove duplicate md entry.
17946         * ps/devps/eqnchar: Better definition of cdot using md.
17947         * dvi/devdvi/eqnchar:  Likewise.
17948         * xditview/devX100/eqnchar:  Likewise.
17949         * xditview/devX75/eqnchar: Likewise.
17950         * eqn/lex.c: Add definition of cdot.
17952 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
17954         * troff/input.c (get_optional_char): New function.
17955         * troff/input.c (set_page_character): Use get_optional_char(),
17956         rather than has_arg() and tok.get_char(1).
17957         * troff/env.c (tab_character, leader_character, hyphen_char,
17958         field_characters): Likewise.
17959         (margin_character): Likewise.  Also always delete the
17960         margin_character_node.
17962         * troff/input.c (token::get_char): Use token::description.
17964         * troff/input.c (has_arg): Don't skip over tab and \}.
17965         * troff/number.c (start_number): Give a warning if the number
17966         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
17968 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
17970         * troff/input.c (empty_name_warning, non_empty_name_warning): New
17971         functions.
17972         (get_name, get_long_name): Use these.  Rename `warn' argument to
17973         `required'.
17975         * troff/node.c (get_fontno): Test that the symbol is not null.
17977         * troff/input.c (token::description): New function.
17978         * troff/number.c (parse_term): Use token::description in `numeric
17979         expression expected' message.
17980         * troff/groff.h: Add WARN_MISSING.
17981         * troff/number.c (start_number): New function.
17982         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
17983         get_incr_number): Use start_number().
17984         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
17985         default.
17986         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
17987         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
17988         token::descripion.
17989         * troff/input.c (token::get_char): Use WARN_MISSING.
17990         * troff/input.c (token::delimiter): Use token::description.
17991         * troff/env.c (environment_switch): Back out Aug 3 change.
17992         * troff/input.c (has_arg): Skip over \}s and tabs but give a
17993         warning.
17994         * troff/token.h (token::tab): New function.
17995         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
17996         * troff/reg.c (alter_format): Likewise.
17997         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
17999 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
18001         * troff (most files): Redo warnings. Divide warnings into various
18002         categories; warning() has an additional first argument indicating
18003         the category it falls into.
18004         * troff/input.c (main): -w now takes an argument. New option -W.
18005         (enable_warning, disable_warning): New functions.
18007         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
18008         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
18010 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
18012         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
18013         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
18014         * xditview/devX75/eqnchar: Likewise.
18015         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
18017         * eqn/other.c: When bar or over applies to a single character
18018         don't produce an overline_box or an underline_box. Instead produce
18019         an accent_box or an underaccent_box, with the accent a line
18020         whose width is accent_width.  New classes underaccent_box,
18021         overline_char_box and underline_char_box.
18022         * eqn/box.h: Move overline_box, underline_box, accent_box class
18023         declarations into eqn/other.c. Add declarations of
18024         make_underline_box, make_overline_box, make_accent_box.
18025         * eqn/eqn.y: Call make_overline_box, make_underline_box
18026         make_accent_box instead of constructors.
18027         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
18029         * eqn/other.c: Add accent_box::~accent_box.
18030         * eqn/box.h: Declare it.
18032         * groff.sh: With -Tps, use eqn -D.
18034         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
18035         rather than \l.
18036         (underline_box::output): Similarily.
18037         (accent_box::output): Use \Z.
18039         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
18040         bit smaller.)
18042 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
18044         * troff/div.c (top_level_diversion::transparent_output(unsigned
18045         char)): Use asciify.
18046         * troff/input.c (asciify): Don't make it static.
18047         * troff/token.h (asciify): Declare it.
18048         
18049         * troff/input.c (get_name, get_long_name, token::get_char,
18050         token::delimiter): Add an extra default argument which says
18051         whether a warning should be printed.
18052         * troff: Pass a non-zero argument to one of these rather than
18053         printing a warning directly.
18055 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
18057         * troff: Consistently use symbol::is_null.
18059         * troff/dictionary.h: Move some inline functions into
18060         dictionary.c.
18062         * troff/request.h: Move inline functions into input.c.
18063         (request_or_macro::invoke): Make it pure.
18065         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
18066         * troff/input.c (init_input_requests): Use class constant_int_reg.
18067         (class compatible_reg): Deleted.
18068         * troff/div.c (init_div_requests): Use class constant_int_reg.
18069         (class last_post_line_extra_space_reg): Deleted.
18071         * troff/env.c (tab_character): Don't change the tab character if
18072         we get an invalid argument.
18073         (hyphen_char): Similarily.
18075         * troff/reg.c (alter_format): Check that nm is not null.
18077         * Makefile, groff.sh: Make it possible to customize the commands
18078         used for printing PostScript and dvi files. Also make it possible
18079         to customize the path used by groff.sh.
18081         * eqn/eqn.y: Make `left' right associative.
18083 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
18085         * pic/pic.h: Added definition of M_SQRT2 for those systems that
18086         don't have it.
18088         * pic/pic.h: Removed definition of INT_MAX.
18090         * troff/node.c (italic_corrected_node::vertical_extent): Omit
18091         `return'.
18093         * troff/input.c (token::next):  Handle \R like \n.
18095 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
18097         * ps/tmac.pc (PSPIC): Simplify.
18099         * troff/env.c (tab_stops::to_string):
18100         * pic/pic.y (object_type_name):
18101         * pic/troff.c (simple_output::line):
18102         * pic/tex.c (tex_output::spline):
18103         * pic/object.c (object_spec::make_object):
18104         * tbl/main.c (process_data):  Add cases to switch statements to
18105         avoid cfront warnings. (Some of these are spurious, since the
18106         switch already has a default case.)
18108         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
18109         `ps-'.  Don't test systat; instead check number of arguments to
18110         ps-bb.
18112 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
18114         * macros/tmac.e: Do not decrease the page offset by 0.5i.
18116         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
18117         Unlink the file as soon as we have opened it, so that we don't
18118         have to bother with signal handlers.
18119         (handler): Deleted.
18120         (fatal_error_exit): Deleted.
18121         (main): Don't call signal.
18123         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
18124         can be ignored.
18125         * dvi/devdvi/Makefile: Use the -k option with S and MI.
18127         * pic/pic.y:  If there is a label, or an nth construction before
18128         the first `.' in the argument to `with', ignore it and generate a
18129         warning.
18130         * pic/lex.c (lex_warning): New function.
18132         * tbl/table.c (table::init_output): In section keep and release
18133         macro, use 0 indent when diverting and the correct indent when
18134         rereading.
18136         * troff/input.c (interpolate_number_format): Do not interpolate
18137         anything if the number register is not defined.
18139         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
18141 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
18143         * ps/devps/prologue (PICTURE): Set components of graphics state to
18144         their default values.
18146         * ps/devps/text.enc: Add trademark
18147         * ps/devps/textmap: Add names for club, spade, heart, diamond,
18148         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
18149         * ps/devps/symbolchars: Add names for summation and product.
18151         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
18152         suchthat. Add pp. Add upper-case letters.
18154         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
18155         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
18156         Upsilon.
18158         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
18159         rA (right angle bracket) to ra.  Introduce names for double-headed
18160         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
18161         * ps/devps/textmap: Likewise for ps device.
18162         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
18163         * tty/devascii/R.proto: Rename lA to la and rA to ra.
18164         * tty/devascii/R.proto: Likewise.
18165         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
18166         \(uA, \(dA.
18167         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
18169         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
18171         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
18172         def_table.
18174 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
18176         * troff/div.c (when_request): Use symbol::is_null rather than
18177         has_arg to determine whether we have an argument.
18178         (change_trap): Remove the trap if we get an invalid number. Give
18179         an error if we don't get at least the macro name.
18180         (diversion_trap): Remove trap if we get an invalid name or number.
18182         * troff/env.c (environment_switch): Pop if we get an invalid
18183         symbol or numeric expression.
18185         * troff/input.c (do_define_macro):  If EOF is encoutered while
18186         defining the macro, do tok.next() before returning.
18188         * troff/token.h (has_arg): Move definition from here, to ...
18189         * troff/input.c (has_arg): ... here
18191         * troff/env.c (space_size): Do nothing if we get an invalid argument.
18192         * troff/input.c (shift): Likewise.
18194         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
18195         for `.c'.
18197         * pic/troff.c (troff_output::start_picture):  Comment out calls to
18198         `..'.
18200         * eqn/main.c (do_file): Subtract 1 from current_lineno if
18201         interpret_lf_args succeeds.
18203         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
18204         \\.  This avoids problems with \$N.
18206         * groff.sh: Pass -C to preprocessors.
18208         * lib/lf.c (interpret_lf_args):  Be more flexible.
18210         * tbl/main.c (main): Add -C option.
18211         (table_input::get): Do not recognize TE if followed by character
18212         other than a space or newline unless -C option given.
18213         (process_input_file): Likewise for lf, TS.
18214         (process_data): Likewise for lf in text blocks.
18216         * eqn/main.c (main): Add -C option.
18217         (do_file): Don't recognize EQ, EN or lf if followed by character
18218         other than space or newline unless -C option given.
18219         * eqn/lex.c (file_input::read_line): Similarily.
18220         * eqn/eqn.h: Declare compatible_flag.
18222         * etc/soelim.c (main): Add -C option.
18223         (interpret_lf_args): Use version in libgroff.
18224         (do_file):
18226         * pic/main.c (main): Add -C option, which sets compatible_flag.
18227         (top_input::get), (top_input::peek):  If -C option not given,
18228         do not recognize .PS/.PE/.PF/.lf if followed by a character
18229         other than space or newline.
18230         * pic/lex.c (file_input::read_line): Similarily.
18231         * pic/pic.h: Add declaration of compatible_flag.
18233 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
18235         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
18237         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
18238         derived from node.  New class space_char_hmotion_node.
18239         * troff/input.c (asciify_macro): New function.
18240         * troff/input.c (init_input_requests): New request `asciify' bound
18241         to asciify_macro.
18242         * macros/mm.diff: New file.
18243         * Makefile:  In install.mm target use `patch' to apply
18244         macros/mm.diff.
18246         * troff/input.c (macro::print_size): Just print the size in bytes.
18248         * troff/div.c (return_request): Correct the argument
18249         interpretation.
18251 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
18253         * troff/node.h (class composite_node): Add sz member.
18254         * troff/node.c (composite_node::size): Return sz.
18255         * troff/input.c (macro_to_node):  Use the initial size in the
18256         environment as the size of the composite_node.
18258         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
18259         default.
18261 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
18263         * troff/div.c (change_trap): If we get a bad number expression,
18264         do nothing.
18266 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
18268         * lib/matherr.c (matherr): Define this only if math.h defines
18269         TLOSS.
18271 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
18273         * troff/div.c (macro_diversion::distance_to_next_trap): If there
18274         no diversion trap return vunits(INT_MAX - vresolution).
18276 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
18278         * troff/input.c (do_zero_width): New implementation that doesn't
18279         use a temporary environment. Use instead:
18280         (token::add_to_node_list): New function.
18281         * troff/env.c (environment::get_prev_char_height),
18282         (environment::get_prev_char_height),
18283         (environment::get_prev_char_skew): New functions.
18284         (environment::get_prev_char): New function.
18285         (environment::get_prev_char_width): Change to use get_prev_char.
18286         (init_env_request): Implement new registers .cht, .cdp, .csk.
18287         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
18288         \Z being processed in a separate environment.
18290 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
18292         * tbl/table.c: Removed TABLE_BOTTOM_REG.
18294         * tbl/table.c (table::init_output): In the section release macro,
18295         give a warning message if the section won't fit on one page.
18297         * tbl/table.c (table::do_top): Emit table keep only if table is
18298         boxed.
18299         (table::do_bottom): Likewise for table release.
18300         (table::table), (table::add_vertical_rule):  Remove reference to
18301         keep member.
18302         * tbl/table.h: Remove keep member.
18304         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
18305         SECTION_RELEASE_MACRO, if there's not enough space before the next
18306         trap to output the diversion, call T# ourselves, set
18307         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
18308         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
18309         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
18310         vertical position and return to it before turning traps on again.
18311         
18312 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
18314         * troff/node.c, troff/node.h: In classes derived from node,
18315         replace prev_char_width method by last_char_node method.
18316         * troff/env.c (environment::get_prev_char_width): Use
18317         node::last_char_node rather than node::get_prev_char_width.
18319         * Makefile: Added comment about -fno-inline on 68030-based
18320         Apollos.
18322         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
18323         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
18324         expressions using sizeof to int.
18325         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
18327         * macros/tmac.e (TS):  Don't move @f back past the current
18328         position.
18330 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
18332         * ps/ps.c (main): Buffer stderr.
18333         * dvi/dvi.c (main): Likewise.
18334         * tty/tty.c (main): Likewise.
18336         * ps/ps.c (ps_printer::do_import): Improve error handling.
18338         * troff/input.c (abort_request): Use asciify.
18340         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
18341         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
18342         type of first argument int rather than char.  This works around a
18343         bug on the 68030 based Apollo using g++ 1.37.1.
18345         * tbl/table.h (class table): Add `keep' member.
18346         * tbl/table.c (table::table): Initialize `keep'.
18347         (table::add_vertical_rule): Set `keep' to 1.
18348         (table::do_top): Only emit table keep macro is `keep' is non-zero.
18349         (table::do_bottom): Likewise for table release macro.
18350         (table::do_row): Emit section keep macro even if the row is 0.
18352 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
18354         * macros/tmac.e (@C): Preserve the font family across the change
18355         in environments.
18357 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
18359         * lib/font.c: Initialize font::hor and font::vert to 1.
18360         (font::load_desc): Check the values of font::hor and font::vert.
18362         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
18363         be included in a C compilation.
18364         (iftoa): Use INT_DIGITS. Include lib.h.
18365         (itoa): Likewise.
18366         (as_string): Likewise.
18367         * tbl/table.c: Removed definition of INT_DIGITS.
18368         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
18369         * troff/input.c (input_input_requests): Likewise.
18370         * ps/ps.c (make_encoding_name): Likewise.
18371         (ps_printer::set_style): Likewise.
18372         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
18374         * tty/devascii/R.proto: Map fm onto '.
18375         * tty/devlatin1/R.proto: Likewise.
18377 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
18379         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
18380         argument to \w is at a different input level.
18382         * tbl/table.c (table::init_output): Define a new macro
18383         REPEATED_VPT_MACRO, like vpt but if in a diversion also
18384         transparently outputs itself.
18385         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
18386         vpt.
18387         (table::do_row): Likewise.
18389         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
18390         TRANSPARENT_STRING_NAME.
18392         * tbl/table.c (table::init_output): In the table release macro
18393         print an error message and don't produce any output if after
18394         issuing the need request the table still will not fit.  Also
18395         remove the diversion after bringing it back.
18397         * tbl/table.c (table::init_output): Define a new macro
18398         REPEATED_MARK_MACRO, like mk but if in a diversion also
18399         transparently outputs itself.
18400         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
18401         is necessary because .TH might not call .T#.
18402         (table::do_top): Likewise TOP_REG.
18403         (table::define_bottom_macro): If TOP_REG is no longer valid, use
18404         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
18405         table header might contain just the two top rules.
18407 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
18409         * troff/div.c: Implement new request `ptr' to print all traps.
18411         * troff/env.c (init_env_requests): Implement `.tabs' reg with
18412         init_string_env_reg.
18413         * troff/env.c (class tab_reg): Deleted.
18415 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
18417         * troff/div.c: New number register .pn returns the number of the
18418         next page as set by the pn request.
18420         * macros/tmac.an: Redid headers and footers.  Number each manual
18421         entry starting from 1 unless \nC is > 0, like Sun.  Added an
18422         optional 5th argument to .TH which specifies the manual name and
18423         appears in the center of the header.  Understand the X, P and D
18424         registers like Sun.
18426 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
18428         * troff/env.c (init_env_requests): New number register `.lt' to
18429         return the title length.
18431         * troff/node.h (class transparent_dummy_node): New class.
18432         * troff/node.c (class transparent_dummy_node): Provide member
18433         functions. 
18434         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
18435         than a dummy_node.
18437         * troff/input.c (token::next): New escape sequence \).
18438         * troff/input.c (get_copy): Recognize \) in copy mode.
18440         * troff/input.c (input_stack::clear): New function.
18441         * troff/input.c (exit_request): Use input_stack::clear.
18443         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
18444         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
18446         * troff/env.c: Move set_page_character to input.c.  Move
18447         page_character to input.c also.
18448         * troff/env.c (title): Split off the reading of the parts of the
18449         title into read_title_parts.
18450         * troff/input.c (read_title_parts): New function.  Check the
18451         input_level when testing whether a token matches the delimiter.
18453         * troff/input.c (exit_request): New function.
18454         * troff/input.c (init_input_requests): Bind ex request to
18455         exit_request rather than exit_groff.
18457         * troff/input.c (exit_groff): Call tok.next() before
18458         process_input_stack().
18460 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
18462         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
18463         * troff/env.h: ditto.
18464         * troff/input.c: ditto.
18466         * troff/env.c (environment::is_empty): Test pending_lines.
18468         * troff/env.c (environment::have_pending_lines): Removed.
18470         * troff/input.c: Add request to flush pending lines from the
18471         environment.
18473         * troff/env.c, troff/env.h: Add automatic widow control feature.
18475         * troff/input.c (exit_groff):  Do process_input_stack() after
18476         do_break() but before setting exit_flag to 2.
18478         * troff/input.c: Remove FLUSH_PENDING_LINES and
18479         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
18480         environment after END_TRAP token seen, but only if there aren't
18481         any more traps still unfinished.
18482         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
18484 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
18486         * troff/env.c: Rename the `retain_size' member of class
18487         pending_output_line to `no_fill'.
18489         * troff/env.c (title): When the line is output, make the
18490         retain_size argument !fill.
18492         * troff/node.h: Add `hyphenated' member to struct breakpoint.
18493         * troff/node.c (space_node::get_breakpoints),
18494         (dbreak_node::get_breakpoints):  Fill this in.
18495         * troff/env.c:  Allow specification of maximum number of
18496         consecutive hyphenated lines.
18498         * troff/env.c (environment::is_empty): Add test for !current_tab.
18500 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
18502         * troff/env.c (environment::hyphenate_line): Don't completely give
18503         up if the word is not to be hyphenated; continue so that breaks
18504         can be made at break_char_node's.
18506         * lib/lib.h: Only define INT_MAX if it's not already defined;
18507         undef INT_MIN if it's already defined.
18509         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
18511         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
18512         This works around a bug in AT&T C++ 2.0 used with an ANSI C
18513         compiler.
18514         
18515         * macros/tmac.an (an-header): Set no-space mode.
18517         * macros/tmac.an (TH): Start a new page if necessary.
18519         * Started using ChangeLog at version 0.4.
18521 Local Variables:
18522 version-control: never
18523 coding: latin-1
18524 End: